Debian Codegraph @

configure

raw
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 6.3.0.
5 #
6 # Report bugs to <[email protected] (see https://gmplib.org/manual/Reporting-Bugs.html)>.
7 #
8 #
9 #
10 # Copyright 1996-2022 Free Software Foundation, Inc.
11 #
12 # This file is part of the GNU MP Library.
13 #
14 # The GNU MP Library is free software; you can redistribute it and/or modify
15 # it under the terms of either:
16 #
17 # * the GNU Lesser General Public License as published by the Free
18 # Software Foundation; either version 3 of the License, or (at your
19 # option) any later version.
20 #
21 # or
22 #
23 # * the GNU General Public License as published by the Free Software
24 # Foundation; either version 2 of the License, or (at your option) any
25 # later version.
26 #
27 # or both in parallel, as here.
28 #
29 # The GNU MP Library is distributed in the hope that it will be useful, but
30 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
31 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
32 # for more details.
33 #
34 # You should have received copies of the GNU General Public License and the
35 # GNU Lesser General Public License along with the GNU MP Library. If not,
36 # see https://www.gnu.org/licenses/.
37 #
38 #
39 #
40 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
41 #
42 #
43 # This configure script is free software; the Free Software Foundation
44 # gives unlimited permission to copy, distribute and modify it.
45 ## -------------------- ##
46 ## M4sh Initialization. ##
47 ## -------------------- ##
48
49 # Be more Bourne compatible
50 DUALCASE=1; export DUALCASE # for MKS sh
51 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
52 emulate sh
53 NULLCMD=:
54 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
55 # is contrary to our usage. Disable this feature.
56 alias -g '${1+"$@"}'='"$@"'
57 setopt NO_GLOB_SUBST
58 else
59 case `(set -o) 2>/dev/null` in #(
60 *posix*) :
61 set -o posix ;; #(
62 *) :
63 ;;
64 esac
65 fi
66
67
68 as_nl='
69 '
70 export as_nl
71 # Printing a long string crashes Solaris 7 /usr/bin/printf.
72 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
73 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
74 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
75 # Prefer a ksh shell builtin over an external printf program on Solaris,
76 # but without wasting forks for bash or zsh.
77 if test -z "$BASH_VERSION$ZSH_VERSION" \
78 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
79 as_echo='print -r --'
80 as_echo_n='print -rn --'
81 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
82 as_echo='printf %s\n'
83 as_echo_n='printf %s'
84 else
85 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
86 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
87 as_echo_n='/usr/ucb/echo -n'
88 else
89 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
90 as_echo_n_body='eval
91 arg=$1;
92 case $arg in #(
93 *"$as_nl"*)
94 expr "X$arg" : "X\\(.*\\)$as_nl";
95 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
96 esac;
97 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
98 '
99 export as_echo_n_body
100 as_echo_n='sh -c $as_echo_n_body as_echo'
101 fi
102 export as_echo_body
103 as_echo='sh -c $as_echo_body as_echo'
104 fi
105
106 # The user is always right.
107 if test "${PATH_SEPARATOR+set}" != set; then
108 PATH_SEPARATOR=:
109 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
110 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
111 PATH_SEPARATOR=';'
112 }
113 fi
114
115
116 # IFS
117 # We need space, tab and new line, in precisely that order. Quoting is
118 # there to prevent editors from complaining about space-tab.
119 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
120 # splitting by setting IFS to empty value.)
121 IFS=" "" $as_nl"
122
123 # Find who we are. Look in the path if we contain no directory separator.
124 as_myself=
125 case $0 in #((
126 *[\\/]* ) as_myself=$0 ;;
127 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in $PATH
129 do
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
133 done
134 IFS=$as_save_IFS
135
136 ;;
137 esac
138 # We did not find ourselves, most probably we were run as `sh COMMAND'
139 # in which case we are not to be found in the path.
140 if test "x$as_myself" = x; then
141 as_myself=$0
142 fi
143 if test ! -f "$as_myself"; then
144 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
145 exit 1
146 fi
147
148 # Unset variables that we do not need and which cause bugs (e.g. in
149 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
150 # suppresses any "Segmentation fault" message there. '((' could
151 # trigger a bug in pdksh 5.2.14.
152 for as_var in BASH_ENV ENV MAIL MAILPATH
153 do eval test x\${$as_var+set} = xset \
154 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
155 done
156 PS1='$ '
157 PS2='> '
158 PS4='+ '
159
160 # NLS nuisances.
161 LC_ALL=C
162 export LC_ALL
163 LANGUAGE=C
164 export LANGUAGE
165
166 # CDPATH.
167 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
168
169 # Use a proper internal environment variable to ensure we don't fall
170 # into an infinite loop, continuously re-executing ourselves.
171 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
172 _as_can_reexec=no; export _as_can_reexec;
173 # We cannot yet assume a decent shell, so we have to provide a
174 # neutralization value for shells without unset; and this also
175 # works around shells that cannot unset nonexistent variables.
176 # Preserve -v and -x to the replacement shell.
177 BASH_ENV=/dev/null
178 ENV=/dev/null
179 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
180 case $- in # ((((
181 *v*x* | *x*v* ) as_opts=-vx ;;
182 *v* ) as_opts=-v ;;
183 *x* ) as_opts=-x ;;
184 * ) as_opts= ;;
185 esac
186 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
187 # Admittedly, this is quite paranoid, since all the known shells bail
188 # out after a failed `exec'.
189 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
190 as_fn_exit 255
191 fi
192 # We don't want this to propagate to other subprocesses.
193 { _as_can_reexec=; unset _as_can_reexec;}
194 if test "x$CONFIG_SHELL" = x; then
195 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
196 emulate sh
197 NULLCMD=:
198 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
199 # is contrary to our usage. Disable this feature.
200 alias -g '\${1+\"\$@\"}'='\"\$@\"'
201 setopt NO_GLOB_SUBST
202 else
203 case \`(set -o) 2>/dev/null\` in #(
204 *posix*) :
205 set -o posix ;; #(
206 *) :
207 ;;
208 esac
209 fi
210 "
211 as_required="as_fn_return () { (exit \$1); }
212 as_fn_success () { as_fn_return 0; }
213 as_fn_failure () { as_fn_return 1; }
214 as_fn_ret_success () { return 0; }
215 as_fn_ret_failure () { return 1; }
216
217 exitcode=0
218 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
219 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
220 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
221 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
222 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
223
224 else
225 exitcode=1; echo positional parameters were not saved.
226 fi
227 test x\$exitcode = x0 || exit 1
228 test -x / || exit 1"
229 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
230 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
231 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
232 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
233 test \$(( 1 + 1 )) = 2 || exit 1
234
235 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
236 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
237 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
238 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
239 PATH=/empty FPATH=/empty; export PATH FPATH
240 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
241 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
242 if (eval "$as_required") 2>/dev/null; then :
243 as_have_required=yes
244 else
245 as_have_required=no
246 fi
247 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
248
249 else
250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
251 as_found=false
252 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
253 do
254 IFS=$as_save_IFS
255 test -z "$as_dir" && as_dir=.
256 as_found=:
257 case $as_dir in #(
258 /*)
259 for as_base in sh bash ksh sh5; do
260 # Try only shells that exist, to save several forks.
261 as_shell=$as_dir/$as_base
262 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
263 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
264 CONFIG_SHELL=$as_shell as_have_required=yes
265 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
266 break 2
267 fi
268 fi
269 done;;
270 esac
271 as_found=false
272 done
273 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
274 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
275 CONFIG_SHELL=$SHELL as_have_required=yes
276 fi; }
277 IFS=$as_save_IFS
278
279
280 if test "x$CONFIG_SHELL" != x; then :
281 export CONFIG_SHELL
282 # We cannot yet assume a decent shell, so we have to provide a
283 # neutralization value for shells without unset; and this also
284 # works around shells that cannot unset nonexistent variables.
285 # Preserve -v and -x to the replacement shell.
286 BASH_ENV=/dev/null
287 ENV=/dev/null
288 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
289 case $- in # ((((
290 *v*x* | *x*v* ) as_opts=-vx ;;
291 *v* ) as_opts=-v ;;
292 *x* ) as_opts=-x ;;
293 * ) as_opts= ;;
294 esac
295 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
296 # Admittedly, this is quite paranoid, since all the known shells bail
297 # out after a failed `exec'.
298 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
299 exit 255
300 fi
301
302 if test x$as_have_required = xno; then :
303 $as_echo "$0: This script requires a shell more modern than all"
304 $as_echo "$0: the shells that I found on your system."
305 if test x${ZSH_VERSION+set} = xset ; then
306 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
307 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
308 else
309 $as_echo "$0: Please tell [email protected] and
310 $0: [email protected] (see
311 $0: https://gmplib.org/manual/Reporting-Bugs.html) about
312 $0: your system, including any error possibly output before
313 $0: this message. Then install a modern shell, or manually
314 $0: run the script under such a shell if you do have one."
315 fi
316 exit 1
317 fi
318 fi
319 fi
320 SHELL=${CONFIG_SHELL-/bin/sh}
321 export SHELL
322 # Unset more variables known to interfere with behavior of common tools.
323 CLICOLOR_FORCE= GREP_OPTIONS=
324 unset CLICOLOR_FORCE GREP_OPTIONS
325
326 ## --------------------- ##
327 ## M4sh Shell Functions. ##
328 ## --------------------- ##
329 # as_fn_unset VAR
330 # ---------------
331 # Portably unset VAR.
332 as_fn_unset ()
333 {
334 { eval $1=; unset $1;}
335 }
336 as_unset=as_fn_unset
337
338 # as_fn_set_status STATUS
339 # -----------------------
340 # Set $? to STATUS, without forking.
341 as_fn_set_status ()
342 {
343 return $1
344 } # as_fn_set_status
345
346 # as_fn_exit STATUS
347 # -----------------
348 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
349 as_fn_exit ()
350 {
351 set +e
352 as_fn_set_status $1
353 exit $1
354 } # as_fn_exit
355
356 # as_fn_mkdir_p
357 # -------------
358 # Create "$as_dir" as a directory, including parents if necessary.
359 as_fn_mkdir_p ()
360 {
361
362 case $as_dir in #(
363 -*) as_dir=./$as_dir;;
364 esac
365 test -d "$as_dir" || eval $as_mkdir_p || {
366 as_dirs=
367 while :; do
368 case $as_dir in #(
369 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
370 *) as_qdir=$as_dir;;
371 esac
372 as_dirs="'$as_qdir' $as_dirs"
373 as_dir=`$as_dirname -- "$as_dir" ||
374 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
375 X"$as_dir" : 'X\(//\)[^/]' \| \
376 X"$as_dir" : 'X\(//\)$' \| \
377 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
378 $as_echo X"$as_dir" |
379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
380 s//\1/
381 q
382 }
383 /^X\(\/\/\)[^/].*/{
384 s//\1/
385 q
386 }
387 /^X\(\/\/\)$/{
388 s//\1/
389 q
390 }
391 /^X\(\/\).*/{
392 s//\1/
393 q
394 }
395 s/.*/./; q'`
396 test -d "$as_dir" && break
397 done
398 test -z "$as_dirs" || eval "mkdir $as_dirs"
399 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
400
401
402 } # as_fn_mkdir_p
403
404 # as_fn_executable_p FILE
405 # -----------------------
406 # Test if FILE is an executable regular file.
407 as_fn_executable_p ()
408 {
409 test -f "$1" && test -x "$1"
410 } # as_fn_executable_p
411 # as_fn_append VAR VALUE
412 # ----------------------
413 # Append the text in VALUE to the end of the definition contained in VAR. Take
414 # advantage of any shell optimizations that allow amortized linear growth over
415 # repeated appends, instead of the typical quadratic growth present in naive
416 # implementations.
417 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
418 eval 'as_fn_append ()
419 {
420 eval $1+=\$2
421 }'
422 else
423 as_fn_append ()
424 {
425 eval $1=\$$1\$2
426 }
427 fi # as_fn_append
428
429 # as_fn_arith ARG...
430 # ------------------
431 # Perform arithmetic evaluation on the ARGs, and store the result in the
432 # global $as_val. Take advantage of shells that can avoid forks. The arguments
433 # must be portable across $(()) and expr.
434 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
435 eval 'as_fn_arith ()
436 {
437 as_val=$(( $* ))
438 }'
439 else
440 as_fn_arith ()
441 {
442 as_val=`expr "$@" || test $? -eq 1`
443 }
444 fi # as_fn_arith
445
446
447 # as_fn_error STATUS ERROR [LINENO LOG_FD]
448 # ----------------------------------------
449 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
450 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
451 # script with STATUS, using 1 if that was 0.
452 as_fn_error ()
453 {
454 as_status=$1; test $as_status -eq 0 && as_status=1
455 if test "$4"; then
456 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
457 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
458 fi
459 $as_echo "$as_me: error: $2" >&2
460 as_fn_exit $as_status
461 } # as_fn_error
462
463 if expr a : '\(a\)' >/dev/null 2>&1 &&
464 test "X`expr 00001 : '.*\(...\)'`" = X001; then
465 as_expr=expr
466 else
467 as_expr=false
468 fi
469
470 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
471 as_basename=basename
472 else
473 as_basename=false
474 fi
475
476 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
477 as_dirname=dirname
478 else
479 as_dirname=false
480 fi
481
482 as_me=`$as_basename -- "$0" ||
483 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
484 X"$0" : 'X\(//\)$' \| \
485 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
486 $as_echo X/"$0" |
487 sed '/^.*\/\([^/][^/]*\)\/*$/{
488 s//\1/
489 q
490 }
491 /^X\/\(\/\/\)$/{
492 s//\1/
493 q
494 }
495 /^X\/\(\/\).*/{
496 s//\1/
497 q
498 }
499 s/.*/./; q'`
500
501 # Avoid depending upon Character Ranges.
502 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
503 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
504 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
505 as_cr_digits='0123456789'
506 as_cr_alnum=$as_cr_Letters$as_cr_digits
507
508
509 as_lineno_1=$LINENO as_lineno_1a=$LINENO
510 as_lineno_2=$LINENO as_lineno_2a=$LINENO
511 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
512 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
513 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
514 sed -n '
515 p
516 /[$]LINENO/=
517 ' <$as_myself |
518 sed '
519 s/[$]LINENO.*/&-/
520 t lineno
521 b
522 :lineno
523 N
524 :loop
525 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
526 t loop
527 s/-\n.*//
528 ' >$as_me.lineno &&
529 chmod +x "$as_me.lineno" ||
530 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
531
532 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
533 # already done that, so ensure we don't try to do so again and fall
534 # in an infinite loop. This has already happened in practice.
535 _as_can_reexec=no; export _as_can_reexec
536 # Don't try to exec as it changes $[0], causing all sort of problems
537 # (the dirname of $[0] is not the place where we might find the
538 # original and so on. Autoconf is especially sensitive to this).
539 . "./$as_me.lineno"
540 # Exit status is that of the last command.
541 exit
542 }
543
544 ECHO_C= ECHO_N= ECHO_T=
545 case `echo -n x` in #(((((
546 -n*)
547 case `echo 'xy\c'` in
548 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
549 xy) ECHO_C='\c';;
550 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
551 ECHO_T=' ';;
552 esac;;
553 *)
554 ECHO_N='-n';;
555 esac
556
557 rm -f conf$$ conf$$.exe conf$$.file
558 if test -d conf$$.dir; then
559 rm -f conf$$.dir/conf$$.file
560 else
561 rm -f conf$$.dir
562 mkdir conf$$.dir 2>/dev/null
563 fi
564 if (echo >conf$$.file) 2>/dev/null; then
565 if ln -s conf$$.file conf$$ 2>/dev/null; then
566 as_ln_s='ln -s'
567 # ... but there are two gotchas:
568 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
569 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
570 # In both cases, we have to default to `cp -pR'.
571 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
572 as_ln_s='cp -pR'
573 elif ln conf$$.file conf$$ 2>/dev/null; then
574 as_ln_s=ln
575 else
576 as_ln_s='cp -pR'
577 fi
578 else
579 as_ln_s='cp -pR'
580 fi
581 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
582 rmdir conf$$.dir 2>/dev/null
583
584 if mkdir -p . 2>/dev/null; then
585 as_mkdir_p='mkdir -p "$as_dir"'
586 else
587 test -d ./-p && rmdir ./-p
588 as_mkdir_p=false
589 fi
590
591 as_test_x='test -x'
592 as_executable_p=as_fn_executable_p
593
594 # Sed expression to map a string onto a valid CPP name.
595 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
596
597 # Sed expression to map a string onto a valid variable name.
598 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
599
600 SHELL=${CONFIG_SHELL-/bin/sh}
601
602
603 test -n "$DJDIR" || exec 7<&0 </dev/null
604 exec 6>&1
605
606 # Name of the host.
607 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
608 # so uname gets run too.
609 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
610
611 #
612 # Initializations.
613 #
614 ac_default_prefix=/usr/local
615 ac_clean_files=
616 ac_config_libobj_dir=.
617 LIBOBJS=
618 cross_compiling=no
619 subdirs=
620 MFLAGS=
621 MAKEFLAGS=
622
623 # Identity of this package.
624 PACKAGE_NAME='GNU MP'
625 PACKAGE_TARNAME='gmp'
626 PACKAGE_VERSION='6.3.0'
627 PACKAGE_STRING='GNU MP 6.3.0'
628 PACKAGE_BUGREPORT='[email protected] (see https://gmplib.org/manual/Reporting-Bugs.html)'
629 PACKAGE_URL='http://www.gnu.org/software/gmp/'
630
631 ac_unique_file="gmp-impl.h"
632 # Factoring default headers for most tests.
633 ac_includes_default="\
634 #include <stdio.h>
635 #ifdef HAVE_SYS_TYPES_H
636 # include <sys/types.h>
637 #endif
638 #ifdef HAVE_SYS_STAT_H
639 # include <sys/stat.h>
640 #endif
641 #ifdef STDC_HEADERS
642 # include <stdlib.h>
643 # include <stddef.h>
644 #else
645 # ifdef HAVE_STDLIB_H
646 # include <stdlib.h>
647 # endif
648 #endif
649 #ifdef HAVE_STRING_H
650 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
651 # include <memory.h>
652 # endif
653 # include <string.h>
654 #endif
655 #ifdef HAVE_STRINGS_H
656 # include <strings.h>
657 #endif
658 #ifdef HAVE_INTTYPES_H
659 # include <inttypes.h>
660 #endif
661 #ifdef HAVE_STDINT_H
662 # include <stdint.h>
663 #endif
664 #ifdef HAVE_UNISTD_H
665 # include <unistd.h>
666 #endif"
667
668 ac_subst_vars='am__EXEEXT_FALSE
669 am__EXEEXT_TRUE
670 LTLIBOBJS
671 LIBOBJS
672 LEXLIB
673 LEX_OUTPUT_ROOT
674 LEX
675 YFLAGS
676 YACC
677 LIBREADLINE
678 WITH_READLINE_01
679 LIBCURSES
680 HAVE_STACK_T_01
681 HAVE_SYS_RESOURCE_H_01
682 HAVE_SIGSTACK_01
683 HAVE_SIGALTSTACK_01
684 HAVE_SIGACTION_01
685 HAVE_GETTIMEOFDAY_01
686 HAVE_GETRUSAGE_01
687 HAVE_CPUTIME_01
688 HAVE_CLOCK_01
689 TUNE_SQR_OBJ
690 gmp_srclinks
691 mpn_objs_in_libgmp
692 mpn_objects
693 GMP_LIMB_BITS
694 M4
695 TUNE_LIBS
696 TAL_OBJECT
697 LIBM
698 ENABLE_STATIC_FALSE
699 ENABLE_STATIC_TRUE
700 LT_SYS_LIBRARY_PATH
701 OTOOL64
702 OTOOL
703 LIPO
704 NMEDIT
705 DSYMUTIL
706 MANIFEST_TOOL
707 RANLIB
708 ac_ct_AR
709 LN_S
710 LD
711 FGREP
712 SED
713 LIBTOOL
714 LIBGMP_DLL
715 OBJDUMP
716 DLLTOOL
717 AS
718 NM
719 ac_ct_DUMPBIN
720 DUMPBIN
721 AR
722 ASMFLAGS
723 EGREP
724 GREP
725 CXXCPP
726 WANT_CXX_FALSE
727 WANT_CXX_TRUE
728 ac_ct_CXX
729 CXXFLAGS
730 CXX
731 CCAS
732 LIBM_FOR_BUILD
733 U_FOR_BUILD
734 EXEEXT_FOR_BUILD
735 CPP_FOR_BUILD
736 CC_FOR_BUILD
737 CPP
738 OBJEXT
739 EXEEXT
740 ac_ct_CC
741 CPPFLAGS
742 LDFLAGS
743 CFLAGS
744 CC
745 DEFN_LONG_LONG_LIMB
746 CALLING_CONVENTIONS_OBJS
747 SPEED_CYCLECOUNTER_OBJ
748 LIBGMPXX_LDFLAGS
749 LIBGMP_LDFLAGS
750 GMP_LDFLAGS
751 HAVE_HOST_CPU_FAMILY_powerpc
752 HAVE_HOST_CPU_FAMILY_power
753 ABI
754 GMP_NAIL_BITS
755 MAINT
756 MAINTAINER_MODE_FALSE
757 MAINTAINER_MODE_TRUE
758 AM_BACKSLASH
759 AM_DEFAULT_VERBOSITY
760 AM_DEFAULT_V
761 AM_V
762 am__untar
763 am__tar
764 AMTAR
765 am__leading_dot
766 SET_MAKE
767 AWK
768 mkdir_p
769 MKDIR_P
770 INSTALL_STRIP_PROGRAM
771 STRIP
772 install_sh
773 MAKEINFO
774 AUTOHEADER
775 AUTOMAKE
776 AUTOCONF
777 ACLOCAL
778 VERSION
779 PACKAGE
780 CYGPATH_W
781 am__isrc
782 INSTALL_DATA
783 INSTALL_SCRIPT
784 INSTALL_PROGRAM
785 host_os
786 host_vendor
787 host_cpu
788 host
789 build_os
790 build_vendor
791 build_cpu
792 build
793 target_alias
794 host_alias
795 build_alias
796 LIBS
797 ECHO_T
798 ECHO_N
799 ECHO_C
800 DEFS
801 mandir
802 localedir
803 libdir
804 psdir
805 pdfdir
806 dvidir
807 htmldir
808 infodir
809 docdir
810 oldincludedir
811 includedir
812 localstatedir
813 sharedstatedir
814 sysconfdir
815 datadir
816 datarootdir
817 libexecdir
818 sbindir
819 bindir
820 program_transform_name
821 prefix
822 exec_prefix
823 PACKAGE_URL
824 PACKAGE_BUGREPORT
825 PACKAGE_STRING
826 PACKAGE_VERSION
827 PACKAGE_TARNAME
828 PACKAGE_NAME
829 PATH_SEPARATOR
830 SHELL'
831 ac_subst_files=''
832 ac_user_opts='
833 enable_option_checking
834 enable_silent_rules
835 enable_maintainer_mode
836 enable_assert
837 enable_alloca
838 enable_cxx
839 enable_assembly
840 enable_fft
841 enable_old_fft_full
842 enable_nails
843 enable_profiling
844 with_readline
845 enable_fat
846 enable_minithres
847 enable_fake_cpuid
848 enable_shared
849 enable_static
850 with_pic
851 enable_fast_install
852 with_aix_soname
853 with_gnu_ld
854 with_sysroot
855 enable_libtool_lock
856 '
857 ac_precious_vars='build_alias
858 host_alias
859 target_alias
860 ABI
861 CC
862 CFLAGS
863 LDFLAGS
864 LIBS
865 CPPFLAGS
866 CPP
867 CC_FOR_BUILD
868 CPP_FOR_BUILD
869 CXX
870 CXXFLAGS
871 CCC
872 CXXCPP
873 LT_SYS_LIBRARY_PATH
874 M4
875 YACC
876 YFLAGS'
877
878
879 # Initialize some variables set by options.
880 ac_init_help=
881 ac_init_version=false
882 ac_unrecognized_opts=
883 ac_unrecognized_sep=
884 # The variables have the same names as the options, with
885 # dashes changed to underlines.
886 cache_file=/dev/null
887 exec_prefix=NONE
888 no_create=
889 no_recursion=
890 prefix=NONE
891 program_prefix=NONE
892 program_suffix=NONE
893 program_transform_name=s,x,x,
894 silent=
895 site=
896 srcdir=
897 verbose=
898 x_includes=NONE
899 x_libraries=NONE
900
901 # Installation directory options.
902 # These are left unexpanded so users can "make install exec_prefix=/foo"
903 # and all the variables that are supposed to be based on exec_prefix
904 # by default will actually change.
905 # Use braces instead of parens because sh, perl, etc. also accept them.
906 # (The list follows the same order as the GNU Coding Standards.)
907 bindir='${exec_prefix}/bin'
908 sbindir='${exec_prefix}/sbin'
909 libexecdir='${exec_prefix}/libexec'
910 datarootdir='${prefix}/share'
911 datadir='${datarootdir}'
912 sysconfdir='${prefix}/etc'
913 sharedstatedir='${prefix}/com'
914 localstatedir='${prefix}/var'
915 includedir='${prefix}/include'
916 oldincludedir='/usr/include'
917 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
918 infodir='${datarootdir}/info'
919 htmldir='${docdir}'
920 dvidir='${docdir}'
921 pdfdir='${docdir}'
922 psdir='${docdir}'
923 libdir='${exec_prefix}/lib'
924 localedir='${datarootdir}/locale'
925 mandir='${datarootdir}/man'
926
927 ac_prev=
928 ac_dashdash=
929 for ac_option
930 do
931 # If the previous option needs an argument, assign it.
932 if test -n "$ac_prev"; then
933 eval $ac_prev=\$ac_option
934 ac_prev=
935 continue
936 fi
937
938 case $ac_option in
939 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940 *=) ac_optarg= ;;
941 *) ac_optarg=yes ;;
942 esac
943
944 # Accept the important Cygnus configure options, so we can diagnose typos.
945
946 case $ac_dashdash$ac_option in
947 --)
948 ac_dashdash=yes ;;
949
950 -bindir | --bindir | --bindi | --bind | --bin | --bi)
951 ac_prev=bindir ;;
952 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953 bindir=$ac_optarg ;;
954
955 -build | --build | --buil | --bui | --bu)
956 ac_prev=build_alias ;;
957 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958 build_alias=$ac_optarg ;;
959
960 -cache-file | --cache-file | --cache-fil | --cache-fi \
961 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962 ac_prev=cache_file ;;
963 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965 cache_file=$ac_optarg ;;
966
967 --config-cache | -C)
968 cache_file=config.cache ;;
969
970 -datadir | --datadir | --datadi | --datad)
971 ac_prev=datadir ;;
972 -datadir=* | --datadir=* | --datadi=* | --datad=*)
973 datadir=$ac_optarg ;;
974
975 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976 | --dataroo | --dataro | --datar)
977 ac_prev=datarootdir ;;
978 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980 datarootdir=$ac_optarg ;;
981
982 -disable-* | --disable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986 as_fn_error $? "invalid feature name: $ac_useropt"
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
990 *"
991 "enable_$ac_useropt"
992 "*) ;;
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
995 esac
996 eval enable_$ac_useropt=no ;;
997
998 -docdir | --docdir | --docdi | --doc | --do)
999 ac_prev=docdir ;;
1000 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001 docdir=$ac_optarg ;;
1002
1003 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004 ac_prev=dvidir ;;
1005 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006 dvidir=$ac_optarg ;;
1007
1008 -enable-* | --enable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error $? "invalid feature name: $ac_useropt"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017 "enable_$ac_useropt"
1018 "*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=\$ac_optarg ;;
1023
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1032
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1036
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1043
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1048
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1054
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1061
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1066
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1071
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1078
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1083
1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
1085 | --localstate | --localstat | --localsta | --localst | --locals)
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089 localstatedir=$ac_optarg ;;
1090
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1095
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1099
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1102 no_create=yes ;;
1103
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1107
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1116
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1121
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1128
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1135
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
1151 program_transform_name=$ac_optarg ;;
1152
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1157
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1162
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1166
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
1171 sbindir=$ac_optarg ;;
1172
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
1182 sharedstatedir=$ac_optarg ;;
1183
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
1187 site=$ac_optarg ;;
1188
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1193
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1200
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1205
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1208
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1211
1212 -with-* | --with-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid package name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1220 *"
1221 "with_$ac_useropt"
1222 "*) ;;
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1225 esac
1226 eval with_$ac_useropt=\$ac_optarg ;;
1227
1228 -without-* | --without-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error $? "invalid package name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1236 *"
1237 "with_$ac_useropt"
1238 "*) ;;
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1241 esac
1242 eval with_$ac_useropt=no ;;
1243
1244 --x)
1245 # Obsolete; use --with-x.
1246 with_x=yes ;;
1247
1248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249 | --x-incl | --x-inc | --x-in | --x-i)
1250 ac_prev=x_includes ;;
1251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253 x_includes=$ac_optarg ;;
1254
1255 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257 ac_prev=x_libraries ;;
1258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260 x_libraries=$ac_optarg ;;
1261
1262 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1263 Try \`$0 --help' for more information"
1264 ;;
1265
1266 *=*)
1267 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268 # Reject names that are not valid shell variable names.
1269 case $ac_envvar in #(
1270 '' | [0-9]* | *[!_$as_cr_alnum]* )
1271 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1272 esac
1273 eval $ac_envvar=\$ac_optarg
1274 export $ac_envvar ;;
1275
1276 *)
1277 # FIXME: should be removed in autoconf 3.0.
1278 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1282 ;;
1283
1284 esac
1285 done
1286
1287 if test -n "$ac_prev"; then
1288 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289 as_fn_error $? "missing argument to $ac_option"
1290 fi
1291
1292 if test -n "$ac_unrecognized_opts"; then
1293 case $enable_option_checking in
1294 no) ;;
1295 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1296 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297 esac
1298 fi
1299
1300 # Check all directory arguments for consistency.
1301 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302 datadir sysconfdir sharedstatedir localstatedir includedir \
1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304 libdir localedir mandir
1305 do
1306 eval ac_val=\$$ac_var
1307 # Remove trailing slashes.
1308 case $ac_val in
1309 */ )
1310 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311 eval $ac_var=\$ac_val;;
1312 esac
1313 # Be sure to have absolute directory names.
1314 case $ac_val in
1315 [\\/$]* | ?:[\\/]* ) continue;;
1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317 esac
1318 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1319 done
1320
1321 # There might be people who depend on the old broken behavior: `$host'
1322 # used to hold the argument of --host etc.
1323 # FIXME: To remove some day.
1324 build=$build_alias
1325 host=$host_alias
1326 target=$target_alias
1327
1328 # FIXME: To remove some day.
1329 if test "x$host_alias" != x; then
1330 if test "x$build_alias" = x; then
1331 cross_compiling=maybe
1332 elif test "x$build_alias" != "x$host_alias"; then
1333 cross_compiling=yes
1334 fi
1335 fi
1336
1337 ac_tool_prefix=
1338 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339
1340 test "$silent" = yes && exec 6>/dev/null
1341
1342
1343 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344 ac_ls_di=`ls -di .` &&
1345 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346 as_fn_error $? "working directory cannot be determined"
1347 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348 as_fn_error $? "pwd does not report name of working directory"
1349
1350
1351 # Find the source files, if location was not specified.
1352 if test -z "$srcdir"; then
1353 ac_srcdir_defaulted=yes
1354 # Try the directory containing this script, then the parent directory.
1355 ac_confdir=`$as_dirname -- "$as_myself" ||
1356 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357 X"$as_myself" : 'X\(//\)[^/]' \| \
1358 X"$as_myself" : 'X\(//\)$' \| \
1359 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360 $as_echo X"$as_myself" |
1361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\/\)[^/].*/{
1366 s//\1/
1367 q
1368 }
1369 /^X\(\/\/\)$/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\).*/{
1374 s//\1/
1375 q
1376 }
1377 s/.*/./; q'`
1378 srcdir=$ac_confdir
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 srcdir=..
1381 fi
1382 else
1383 ac_srcdir_defaulted=no
1384 fi
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1387 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1388 fi
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 ac_abs_confdir=`(
1391 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1392 pwd)`
1393 # When building in place, set srcdir=.
1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
1395 srcdir=.
1396 fi
1397 # Remove unnecessary trailing slashes from srcdir.
1398 # Double slashes in file names in object file debugging info
1399 # mess up M-x gdb in Emacs.
1400 case $srcdir in
1401 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402 esac
1403 for ac_var in $ac_precious_vars; do
1404 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_env_${ac_var}_value=\$${ac_var}
1406 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408 done
1409
1410 #
1411 # Report the --help message.
1412 #
1413 if test "$ac_init_help" = "long"; then
1414 # Omit some internal or obsolete options to make the list less imposing.
1415 # This message is too long to be a string in the A/UX 3.1 sh.
1416 cat <<_ACEOF
1417 \`configure' configures GNU MP 6.3.0 to adapt to many kinds of systems.
1418
1419 Usage: $0 [OPTION]... [VAR=VALUE]...
1420
1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422 VAR=VALUE. See below for descriptions of some of the useful variables.
1423
1424 Defaults for the options are specified in brackets.
1425
1426 Configuration:
1427 -h, --help display this help and exit
1428 --help=short display options specific to this package
1429 --help=recursive display the short help of all the included packages
1430 -V, --version display version information and exit
1431 -q, --quiet, --silent do not print \`checking ...' messages
1432 --cache-file=FILE cache test results in FILE [disabled]
1433 -C, --config-cache alias for \`--cache-file=config.cache'
1434 -n, --no-create do not create output files
1435 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1436
1437 Installation directories:
1438 --prefix=PREFIX install architecture-independent files in PREFIX
1439 [$ac_default_prefix]
1440 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1441 [PREFIX]
1442
1443 By default, \`make install' will install all the files in
1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446 for instance \`--prefix=\$HOME'.
1447
1448 For better control, use the options below.
1449
1450 Fine tuning of the installation directories:
1451 --bindir=DIR user executables [EPREFIX/bin]
1452 --sbindir=DIR system admin executables [EPREFIX/sbin]
1453 --libexecdir=DIR program executables [EPREFIX/libexec]
1454 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1455 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1456 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root [DATAROOTDIR/doc/gmp]
1466 --htmldir=DIR html documentation [DOCDIR]
1467 --dvidir=DIR dvi documentation [DOCDIR]
1468 --pdfdir=DIR pdf documentation [DOCDIR]
1469 --psdir=DIR ps documentation [DOCDIR]
1470 _ACEOF
1471
1472 cat <<\_ACEOF
1473
1474 Program names:
1475 --program-prefix=PREFIX prepend PREFIX to installed program names
1476 --program-suffix=SUFFIX append SUFFIX to installed program names
1477 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1478
1479 System types:
1480 --build=BUILD configure for building on BUILD [guessed]
1481 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1482 _ACEOF
1483 fi
1484
1485 if test -n "$ac_init_help"; then
1486 case $ac_init_help in
1487 short | recursive ) echo "Configuration of GNU MP 6.3.0:";;
1488 esac
1489 cat <<\_ACEOF
1490
1491 Optional Features:
1492 --disable-option-checking ignore unrecognized --enable/--with options
1493 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1494 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1495 --enable-silent-rules less verbose build output (undo: "make V=1")
1496 --disable-silent-rules verbose build output (undo: "make V=0")
1497 --enable-maintainer-mode
1498 enable make rules and dependencies not useful (and
1499 sometimes confusing) to the casual installer
1500 --enable-assert enable ASSERT checking [default=no]
1501 --enable-alloca how to get temp memory [default=reentrant]
1502 --enable-cxx enable C++ support [default=no]
1503 --enable-assembly enable the use of assembly loops [default=yes]
1504 --enable-fft enable FFTs for multiplication [default=yes]
1505 --enable-old-fft-full enable old mpn_mul_fft_full for multiplication
1506 [default=no]
1507 --enable-nails use nails on limbs [default=no]
1508 --enable-profiling build with profiler support [default=no]
1509 --enable-fat build fat libraries on systems that support it
1510 [default=no]
1511 --enable-minithres choose minimal thresholds for testing [default=no]
1512 --enable-fake-cpuid enable GMP_CPU_TYPE faking cpuid [default=no]
1513 --enable-shared[=PKGS] build shared libraries [default=yes]
1514 --enable-static[=PKGS] build static libraries [default=yes]
1515 --enable-fast-install[=PKGS]
1516 optimize for fast installation [default=yes]
1517 --disable-libtool-lock avoid locking (might break parallel builds)
1518
1519 Optional Packages:
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1522 --with-readline readline support in demo programs [default=detect]
1523 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1524 both]
1525 --with-aix-soname=aix|svr4|both
1526 shared library versioning (aka "SONAME") variant to
1527 provide on AIX, [default=aix].
1528 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1529 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1530 compiler's sysroot if not specified).
1531
1532 Some influential environment variables:
1533 ABI desired ABI (for processors supporting more than one ABI)
1534 CC C compiler command
1535 CFLAGS C compiler flags
1536 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1537 nonstandard directory <lib dir>
1538 LIBS libraries to pass to the linker, e.g. -l<library>
1539 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1540 you have headers in a nonstandard directory <include dir>
1541 CPP C preprocessor
1542 CC_FOR_BUILD
1543 build system C compiler
1544 CPP_FOR_BUILD
1545 build system C preprocessor
1546 CXX C++ compiler command
1547 CXXFLAGS C++ compiler flags
1548 CXXCPP C++ preprocessor
1549 LT_SYS_LIBRARY_PATH
1550 User-defined run-time library search path.
1551 M4 m4 macro processor
1552 YACC The `Yet Another Compiler Compiler' implementation to use.
1553 Defaults to the first program found out of: `bison -y', `byacc',
1554 `yacc'.
1555 YFLAGS The list of arguments that will be passed by default to $YACC.
1556 This script will default YFLAGS to the empty string to avoid a
1557 default value of `-d' given by some make applications.
1558
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1561
1562 Report bugs to <[email protected] (see https://gmplib.org/manual/Reporting-Bugs.html)>.
1563 GNU MP home page: <http://www.gnu.org/software/gmp/>.
1564 General help using GNU software: <http://www.gnu.org/gethelp/>.
1565 _ACEOF
1566 ac_status=$?
1567 fi
1568
1569 if test "$ac_init_help" = "recursive"; then
1570 # If there are subdirs, report their specific --help.
1571 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572 test -d "$ac_dir" ||
1573 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1574 continue
1575 ac_builddir=.
1576
1577 case "$ac_dir" in
1578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 *)
1580 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581 # A ".." for each directory in $ac_dir_suffix.
1582 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583 case $ac_top_builddir_sub in
1584 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586 esac ;;
1587 esac
1588 ac_abs_top_builddir=$ac_pwd
1589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir=$ac_top_build_prefix
1592
1593 case $srcdir in
1594 .) # We are building in place.
1595 ac_srcdir=.
1596 ac_top_srcdir=$ac_top_builddir_sub
1597 ac_abs_top_srcdir=$ac_pwd ;;
1598 [\\/]* | ?:[\\/]* ) # Absolute name.
1599 ac_srcdir=$srcdir$ac_dir_suffix;
1600 ac_top_srcdir=$srcdir
1601 ac_abs_top_srcdir=$srcdir ;;
1602 *) # Relative name.
1603 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604 ac_top_srcdir=$ac_top_build_prefix$srcdir
1605 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606 esac
1607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608
1609 cd "$ac_dir" || { ac_status=$?; continue; }
1610 # Check for guested configure.
1611 if test -f "$ac_srcdir/configure.gnu"; then
1612 echo &&
1613 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614 elif test -f "$ac_srcdir/configure"; then
1615 echo &&
1616 $SHELL "$ac_srcdir/configure" --help=recursive
1617 else
1618 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619 fi || ac_status=$?
1620 cd "$ac_pwd" || { ac_status=$?; break; }
1621 done
1622 fi
1623
1624 test -n "$ac_init_help" && exit $ac_status
1625 if $ac_init_version; then
1626 cat <<\_ACEOF
1627 GNU MP configure 6.3.0
1628 generated by GNU Autoconf 2.69
1629
1630 Copyright (C) 2012 Free Software Foundation, Inc.
1631 This configure script is free software; the Free Software Foundation
1632 gives unlimited permission to copy, distribute and modify it.
1633
1634
1635
1636 Copyright 1996-2022 Free Software Foundation, Inc.
1637
1638 This file is part of the GNU MP Library.
1639
1640 The GNU MP Library is free software; you can redistribute it and/or modify
1641 it under the terms of either:
1642
1643 * the GNU Lesser General Public License as published by the Free
1644 Software Foundation; either version 3 of the License, or (at your
1645 option) any later version.
1646
1647 or
1648
1649 * the GNU General Public License as published by the Free Software
1650 Foundation; either version 2 of the License, or (at your option) any
1651 later version.
1652
1653 or both in parallel, as here.
1654
1655 The GNU MP Library is distributed in the hope that it will be useful, but
1656 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1657 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1658 for more details.
1659
1660 You should have received copies of the GNU General Public License and the
1661 GNU Lesser General Public License along with the GNU MP Library. If not,
1662 see https://www.gnu.org/licenses/.
1663
1664 _ACEOF
1665 exit
1666 fi
1667
1668 ## ------------------------ ##
1669 ## Autoconf initialization. ##
1670 ## ------------------------ ##
1671
1672 # ac_fn_c_try_compile LINENO
1673 # --------------------------
1674 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1675 ac_fn_c_try_compile ()
1676 {
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 rm -f conftest.$ac_objext
1679 if { { ac_try="$ac_compile"
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_compile") 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; } && {
1695 test -z "$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 } && test -s conftest.$ac_objext; 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_compile
1709
1710 # ac_fn_c_try_cpp LINENO
1711 # ----------------------
1712 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_cpp ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_cpp conftest.$ac_ext"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1729 fi
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } > conftest.i && {
1732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 }; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740 ac_retval=1
1741 fi
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1744
1745 } # ac_fn_c_try_cpp
1746
1747 # ac_fn_cxx_try_compile LINENO
1748 # ----------------------------
1749 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_cxx_try_compile ()
1751 {
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 rm -f conftest.$ac_objext
1754 if { { ac_try="$ac_compile"
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_compile") 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; } && {
1770 test -z "$ac_cxx_werror_flag" ||
1771 test ! -s conftest.err
1772 } && test -s conftest.$ac_objext; 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_compile
1784
1785 # ac_fn_cxx_try_cpp LINENO
1786 # ------------------------
1787 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1788 ac_fn_cxx_try_cpp ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 if { { ac_try="$ac_cpp conftest.$ac_ext"
1792 case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1799 ac_status=$?
1800 if test -s conftest.err; then
1801 grep -v '^ *+' conftest.err >conftest.er1
1802 cat conftest.er1 >&5
1803 mv -f conftest.er1 conftest.err
1804 fi
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } > conftest.i && {
1807 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1808 test ! -s conftest.err
1809 }; then :
1810 ac_retval=0
1811 else
1812 $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1814
1815 ac_retval=1
1816 fi
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 as_fn_set_status $ac_retval
1819
1820 } # ac_fn_cxx_try_cpp
1821
1822 # ac_fn_c_try_link LINENO
1823 # -----------------------
1824 # Try to link conftest.$ac_ext, and return whether this succeeded.
1825 ac_fn_c_try_link ()
1826 {
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 rm -f conftest.$ac_objext conftest$ac_exeext
1829 if { { ac_try="$ac_link"
1830 case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_link") 2>conftest.err
1837 ac_status=$?
1838 if test -s conftest.err; then
1839 grep -v '^ *+' conftest.err >conftest.er1
1840 cat conftest.er1 >&5
1841 mv -f conftest.er1 conftest.err
1842 fi
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } && {
1845 test -z "$ac_c_werror_flag" ||
1846 test ! -s conftest.err
1847 } && test -s conftest$ac_exeext && {
1848 test "$cross_compiling" = yes ||
1849 test -x conftest$ac_exeext
1850 }; then :
1851 ac_retval=0
1852 else
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1855
1856 ac_retval=1
1857 fi
1858 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1859 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1860 # interfere with the next link command; also delete a directory that is
1861 # left behind by Apple's compiler. We do this before executing the actions.
1862 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864 as_fn_set_status $ac_retval
1865
1866 } # ac_fn_c_try_link
1867
1868 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1869 # -------------------------------------------------------
1870 # Tests whether HEADER exists and can be compiled using the include files in
1871 # INCLUDES, setting the cache variable VAR accordingly.
1872 ac_fn_c_check_header_compile ()
1873 {
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if eval \${$3+:} false; then :
1878 $as_echo_n "(cached) " >&6
1879 else
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1882 $4
1883 #include <$2>
1884 _ACEOF
1885 if ac_fn_c_try_compile "$LINENO"; then :
1886 eval "$3=yes"
1887 else
1888 eval "$3=no"
1889 fi
1890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891 fi
1892 eval ac_res=\$$3
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896
1897 } # ac_fn_c_check_header_compile
1898
1899 # ac_fn_c_try_run LINENO
1900 # ----------------------
1901 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1902 # that executables *can* be run.
1903 ac_fn_c_try_run ()
1904 {
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 if { { ac_try="$ac_link"
1907 case "(($ac_try" in
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1910 esac
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_link") 2>&5
1914 ac_status=$?
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1917 { { case "(($ac_try" in
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1920 esac
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_try") 2>&5
1924 ac_status=$?
1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926 test $ac_status = 0; }; }; then :
1927 ac_retval=0
1928 else
1929 $as_echo "$as_me: program exited with status $ac_status" >&5
1930 $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1932
1933 ac_retval=$ac_status
1934 fi
1935 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937 as_fn_set_status $ac_retval
1938
1939 } # ac_fn_c_try_run
1940
1941 # ac_fn_c_check_func LINENO FUNC VAR
1942 # ----------------------------------
1943 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1944 ac_fn_c_check_func ()
1945 {
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if eval \${$3+:} false; then :
1950 $as_echo_n "(cached) " >&6
1951 else
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1954 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1956 #define $2 innocuous_$2
1957
1958 /* System header to define __stub macros and hopefully few prototypes,
1959 which can conflict with char $2 (); below.
1960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1961 <limits.h> exists even on freestanding compilers. */
1962
1963 #ifdef __STDC__
1964 # include <limits.h>
1965 #else
1966 # include <assert.h>
1967 #endif
1968
1969 #undef $2
1970
1971 /* Override any GCC internal prototype to avoid an error.
1972 Use char because int might match the return type of a GCC
1973 builtin and then its argument prototype would still apply. */
1974 #ifdef __cplusplus
1975 extern "C"
1976 #endif
1977 char $2 ();
1978 /* The GNU C library defines this for functions which it implements
1979 to always fail with ENOSYS. Some functions are actually named
1980 something starting with __ and the normal name is an alias. */
1981 #if defined __stub_$2 || defined __stub___$2
1982 choke me
1983 #endif
1984
1985 int
1986 main ()
1987 {
1988 return $2 ();
1989 ;
1990 return 0;
1991 }
1992 _ACEOF
1993 if ac_fn_c_try_link "$LINENO"; then :
1994 eval "$3=yes"
1995 else
1996 eval "$3=no"
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext \
1999 conftest$ac_exeext conftest.$ac_ext
2000 fi
2001 eval ac_res=\$$3
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005
2006 } # ac_fn_c_check_func
2007
2008 # ac_fn_cxx_try_link LINENO
2009 # -------------------------
2010 # Try to link conftest.$ac_ext, and return whether this succeeded.
2011 ac_fn_cxx_try_link ()
2012 {
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 rm -f conftest.$ac_objext conftest$ac_exeext
2015 if { { ac_try="$ac_link"
2016 case "(($ac_try" in
2017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2018 *) ac_try_echo=$ac_try;;
2019 esac
2020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2021 $as_echo "$ac_try_echo"; } >&5
2022 (eval "$ac_link") 2>conftest.err
2023 ac_status=$?
2024 if test -s conftest.err; then
2025 grep -v '^ *+' conftest.err >conftest.er1
2026 cat conftest.er1 >&5
2027 mv -f conftest.er1 conftest.err
2028 fi
2029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2030 test $ac_status = 0; } && {
2031 test -z "$ac_cxx_werror_flag" ||
2032 test ! -s conftest.err
2033 } && test -s conftest$ac_exeext && {
2034 test "$cross_compiling" = yes ||
2035 test -x conftest$ac_exeext
2036 }; then :
2037 ac_retval=0
2038 else
2039 $as_echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2041
2042 ac_retval=1
2043 fi
2044 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2045 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2046 # interfere with the next link command; also delete a directory that is
2047 # left behind by Apple's compiler. We do this before executing the actions.
2048 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050 as_fn_set_status $ac_retval
2051
2052 } # ac_fn_cxx_try_link
2053
2054 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2055 # -------------------------------------------------------
2056 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2057 # the include files in INCLUDES and setting the cache variable VAR
2058 # accordingly.
2059 ac_fn_c_check_header_mongrel ()
2060 {
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 if eval \${$3+:} false; then :
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064 $as_echo_n "checking for $2... " >&6; }
2065 if eval \${$3+:} false; then :
2066 $as_echo_n "(cached) " >&6
2067 fi
2068 eval ac_res=\$$3
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070 $as_echo "$ac_res" >&6; }
2071 else
2072 # Is the header compilable?
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2074 $as_echo_n "checking $2 usability... " >&6; }
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2077 $4
2078 #include <$2>
2079 _ACEOF
2080 if ac_fn_c_try_compile "$LINENO"; then :
2081 ac_header_compiler=yes
2082 else
2083 ac_header_compiler=no
2084 fi
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2087 $as_echo "$ac_header_compiler" >&6; }
2088
2089 # Is the header present?
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2091 $as_echo_n "checking $2 presence... " >&6; }
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2094 #include <$2>
2095 _ACEOF
2096 if ac_fn_c_try_cpp "$LINENO"; then :
2097 ac_header_preproc=yes
2098 else
2099 ac_header_preproc=no
2100 fi
2101 rm -f conftest.err conftest.i conftest.$ac_ext
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2103 $as_echo "$ac_header_preproc" >&6; }
2104
2105 # So? What about this header?
2106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2107 yes:no: )
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2109 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2111 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2112 ;;
2113 no:yes:* )
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2115 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2117 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2119 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2121 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2123 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2124 ( $as_echo "## -------------------------------------------------------------------------------------- ##
2125 ## Report this to [email protected] (see https://gmplib.org/manual/Reporting-Bugs.html) ##
2126 ## -------------------------------------------------------------------------------------- ##"
2127 ) | sed "s/^/$as_me: WARNING: /" >&2
2128 ;;
2129 esac
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2131 $as_echo_n "checking for $2... " >&6; }
2132 if eval \${$3+:} false; then :
2133 $as_echo_n "(cached) " >&6
2134 else
2135 eval "$3=\$ac_header_compiler"
2136 fi
2137 eval ac_res=\$$3
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139 $as_echo "$ac_res" >&6; }
2140 fi
2141 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2142
2143 } # ac_fn_c_check_header_mongrel
2144
2145 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2146 # ---------------------------------------------
2147 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2148 # accordingly.
2149 ac_fn_c_check_decl ()
2150 {
2151 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2152 as_decl_name=`echo $2|sed 's/ *(.*//'`
2153 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2155 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2156 if eval \${$3+:} false; then :
2157 $as_echo_n "(cached) " >&6
2158 else
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2161 $4
2162 int
2163 main ()
2164 {
2165 #ifndef $as_decl_name
2166 #ifdef __cplusplus
2167 (void) $as_decl_use;
2168 #else
2169 (void) $as_decl_name;
2170 #endif
2171 #endif
2172
2173 ;
2174 return 0;
2175 }
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2178 eval "$3=yes"
2179 else
2180 eval "$3=no"
2181 fi
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 fi
2184 eval ac_res=\$$3
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186 $as_echo "$ac_res" >&6; }
2187 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2188
2189 } # ac_fn_c_check_decl
2190
2191 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2192 # -------------------------------------------
2193 # Tests whether TYPE exists after having included INCLUDES, setting cache
2194 # variable VAR accordingly.
2195 ac_fn_c_check_type ()
2196 {
2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2199 $as_echo_n "checking for $2... " >&6; }
2200 if eval \${$3+:} false; then :
2201 $as_echo_n "(cached) " >&6
2202 else
2203 eval "$3=no"
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2206 $4
2207 int
2208 main ()
2209 {
2210 if (sizeof ($2))
2211 return 0;
2212 ;
2213 return 0;
2214 }
2215 _ACEOF
2216 if ac_fn_c_try_compile "$LINENO"; then :
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2219 $4
2220 int
2221 main ()
2222 {
2223 if (sizeof (($2)))
2224 return 0;
2225 ;
2226 return 0;
2227 }
2228 _ACEOF
2229 if ac_fn_c_try_compile "$LINENO"; then :
2230
2231 else
2232 eval "$3=yes"
2233 fi
2234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235 fi
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237 fi
2238 eval ac_res=\$$3
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240 $as_echo "$ac_res" >&6; }
2241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2242
2243 } # ac_fn_c_check_type
2244
2245 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2246 # ----------------------------------------------------
2247 # Tries to find if the field MEMBER exists in type AGGR, after including
2248 # INCLUDES, setting cache variable VAR accordingly.
2249 ac_fn_c_check_member ()
2250 {
2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2253 $as_echo_n "checking for $2.$3... " >&6; }
2254 if eval \${$4+:} false; then :
2255 $as_echo_n "(cached) " >&6
2256 else
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2259 $5
2260 int
2261 main ()
2262 {
2263 static $2 ac_aggr;
2264 if (ac_aggr.$3)
2265 return 0;
2266 ;
2267 return 0;
2268 }
2269 _ACEOF
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271 eval "$4=yes"
2272 else
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2275 $5
2276 int
2277 main ()
2278 {
2279 static $2 ac_aggr;
2280 if (sizeof ac_aggr.$3)
2281 return 0;
2282 ;
2283 return 0;
2284 }
2285 _ACEOF
2286 if ac_fn_c_try_compile "$LINENO"; then :
2287 eval "$4=yes"
2288 else
2289 eval "$4=no"
2290 fi
2291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292 fi
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 fi
2295 eval ac_res=\$$4
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2297 $as_echo "$ac_res" >&6; }
2298 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2299
2300 } # ac_fn_c_check_member
2301
2302 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2303 # ---------------------------------------------------------
2304 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2305 # the include files in INCLUDES and setting the cache variable VAR
2306 # accordingly.
2307 ac_fn_cxx_check_header_mongrel ()
2308 {
2309 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2310 if eval \${$3+:} false; then :
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2312 $as_echo_n "checking for $2... " >&6; }
2313 if eval \${$3+:} false; then :
2314 $as_echo_n "(cached) " >&6
2315 fi
2316 eval ac_res=\$$3
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2318 $as_echo "$ac_res" >&6; }
2319 else
2320 # Is the header compilable?
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2322 $as_echo_n "checking $2 usability... " >&6; }
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h. */
2325 $4
2326 #include <$2>
2327 _ACEOF
2328 if ac_fn_cxx_try_compile "$LINENO"; then :
2329 ac_header_compiler=yes
2330 else
2331 ac_header_compiler=no
2332 fi
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2335 $as_echo "$ac_header_compiler" >&6; }
2336
2337 # Is the header present?
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2339 $as_echo_n "checking $2 presence... " >&6; }
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h. */
2342 #include <$2>
2343 _ACEOF
2344 if ac_fn_cxx_try_cpp "$LINENO"; then :
2345 ac_header_preproc=yes
2346 else
2347 ac_header_preproc=no
2348 fi
2349 rm -f conftest.err conftest.i conftest.$ac_ext
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2351 $as_echo "$ac_header_preproc" >&6; }
2352
2353 # So? What about this header?
2354 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2355 yes:no: )
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2357 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2359 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2360 ;;
2361 no:yes:* )
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2363 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2365 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2367 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2369 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2371 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2372 ( $as_echo "## -------------------------------------------------------------------------------------- ##
2373 ## Report this to [email protected] (see https://gmplib.org/manual/Reporting-Bugs.html) ##
2374 ## -------------------------------------------------------------------------------------- ##"
2375 ) | sed "s/^/$as_me: WARNING: /" >&2
2376 ;;
2377 esac
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2379 $as_echo_n "checking for $2... " >&6; }
2380 if eval \${$3+:} false; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 eval "$3=\$ac_header_compiler"
2384 fi
2385 eval ac_res=\$$3
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2387 $as_echo "$ac_res" >&6; }
2388 fi
2389 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2390
2391 } # ac_fn_cxx_check_header_mongrel
2392
2393 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2394 # ---------------------------------------------
2395 # Tests whether TYPE exists after having included INCLUDES, setting cache
2396 # variable VAR accordingly.
2397 ac_fn_cxx_check_type ()
2398 {
2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2401 $as_echo_n "checking for $2... " >&6; }
2402 if eval \${$3+:} false; then :
2403 $as_echo_n "(cached) " >&6
2404 else
2405 eval "$3=no"
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407 /* end confdefs.h. */
2408 $4
2409 int
2410 main ()
2411 {
2412 if (sizeof ($2))
2413 return 0;
2414 ;
2415 return 0;
2416 }
2417 _ACEOF
2418 if ac_fn_cxx_try_compile "$LINENO"; then :
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2421 $4
2422 int
2423 main ()
2424 {
2425 if (sizeof (($2)))
2426 return 0;
2427 ;
2428 return 0;
2429 }
2430 _ACEOF
2431 if ac_fn_cxx_try_compile "$LINENO"; then :
2432
2433 else
2434 eval "$3=yes"
2435 fi
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 fi
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439 fi
2440 eval ac_res=\$$3
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2444
2445 } # ac_fn_cxx_check_type
2446
2447 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2448 # --------------------------------------------
2449 # Tries to find the compile-time value of EXPR in a program that includes
2450 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2451 # computed
2452 ac_fn_c_compute_int ()
2453 {
2454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2455 if test "$cross_compiling" = yes; then
2456 # Depending upon the size, compute the lo and hi bounds.
2457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458 /* end confdefs.h. */
2459 $4
2460 int
2461 main ()
2462 {
2463 static int test_array [1 - 2 * !(($2) >= 0)];
2464 test_array [0] = 0;
2465 return test_array [0];
2466
2467 ;
2468 return 0;
2469 }
2470 _ACEOF
2471 if ac_fn_c_try_compile "$LINENO"; then :
2472 ac_lo=0 ac_mid=0
2473 while :; do
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h. */
2476 $4
2477 int
2478 main ()
2479 {
2480 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2481 test_array [0] = 0;
2482 return test_array [0];
2483
2484 ;
2485 return 0;
2486 }
2487 _ACEOF
2488 if ac_fn_c_try_compile "$LINENO"; then :
2489 ac_hi=$ac_mid; break
2490 else
2491 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2492 if test $ac_lo -le $ac_mid; then
2493 ac_lo= ac_hi=
2494 break
2495 fi
2496 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2497 fi
2498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2499 done
2500 else
2501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2502 /* end confdefs.h. */
2503 $4
2504 int
2505 main ()
2506 {
2507 static int test_array [1 - 2 * !(($2) < 0)];
2508 test_array [0] = 0;
2509 return test_array [0];
2510
2511 ;
2512 return 0;
2513 }
2514 _ACEOF
2515 if ac_fn_c_try_compile "$LINENO"; then :
2516 ac_hi=-1 ac_mid=-1
2517 while :; do
2518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2519 /* end confdefs.h. */
2520 $4
2521 int
2522 main ()
2523 {
2524 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2525 test_array [0] = 0;
2526 return test_array [0];
2527
2528 ;
2529 return 0;
2530 }
2531 _ACEOF
2532 if ac_fn_c_try_compile "$LINENO"; then :
2533 ac_lo=$ac_mid; break
2534 else
2535 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2536 if test $ac_mid -le $ac_hi; then
2537 ac_lo= ac_hi=
2538 break
2539 fi
2540 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2541 fi
2542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2543 done
2544 else
2545 ac_lo= ac_hi=
2546 fi
2547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2548 fi
2549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550 # Binary search between lo and hi bounds.
2551 while test "x$ac_lo" != "x$ac_hi"; do
2552 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2555 $4
2556 int
2557 main ()
2558 {
2559 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2560 test_array [0] = 0;
2561 return test_array [0];
2562
2563 ;
2564 return 0;
2565 }
2566 _ACEOF
2567 if ac_fn_c_try_compile "$LINENO"; then :
2568 ac_hi=$ac_mid
2569 else
2570 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2571 fi
2572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2573 done
2574 case $ac_lo in #((
2575 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2576 '') ac_retval=1 ;;
2577 esac
2578 else
2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h. */
2581 $4
2582 static long int longval () { return $2; }
2583 static unsigned long int ulongval () { return $2; }
2584 #include <stdio.h>
2585 #include <stdlib.h>
2586 int
2587 main ()
2588 {
2589
2590 FILE *f = fopen ("conftest.val", "w");
2591 if (! f)
2592 return 1;
2593 if (($2) < 0)
2594 {
2595 long int i = longval ();
2596 if (i != ($2))
2597 return 1;
2598 fprintf (f, "%ld", i);
2599 }
2600 else
2601 {
2602 unsigned long int i = ulongval ();
2603 if (i != ($2))
2604 return 1;
2605 fprintf (f, "%lu", i);
2606 }
2607 /* Do not output a trailing newline, as this causes \r\n confusion
2608 on some platforms. */
2609 return ferror (f) || fclose (f) != 0;
2610
2611 ;
2612 return 0;
2613 }
2614 _ACEOF
2615 if ac_fn_c_try_run "$LINENO"; then :
2616 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2617 else
2618 ac_retval=1
2619 fi
2620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2621 conftest.$ac_objext conftest.beam conftest.$ac_ext
2622 rm -f conftest.val
2623
2624 fi
2625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2626 as_fn_set_status $ac_retval
2627
2628 } # ac_fn_c_compute_int
2629 cat >config.log <<_ACEOF
2630 This file contains any messages produced by compilers while
2631 running configure, to aid debugging if configure makes a mistake.
2632
2633 It was created by GNU MP $as_me 6.3.0, which was
2634 generated by GNU Autoconf 2.69. Invocation command line was
2635
2636 $ $0 $@
2637
2638 _ACEOF
2639 exec 5>>config.log
2640 {
2641 cat <<_ASUNAME
2642 ## --------- ##
2643 ## Platform. ##
2644 ## --------- ##
2645
2646 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2647 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2648 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2649 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2650 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2651
2652 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2653 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2654
2655 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2656 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2657 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2658 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2659 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2660 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2661 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2662
2663 _ASUNAME
2664
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2667 do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 $as_echo "PATH: $as_dir"
2671 done
2672 IFS=$as_save_IFS
2673
2674 } >&5
2675
2676 cat >&5 <<_ACEOF
2677
2678
2679 ## ----------- ##
2680 ## Core tests. ##
2681 ## ----------- ##
2682
2683 _ACEOF
2684
2685
2686 # Keep a trace of the command line.
2687 # Strip out --no-create and --no-recursion so they do not pile up.
2688 # Strip out --silent because we don't want to record it for future runs.
2689 # Also quote any args containing shell meta-characters.
2690 # Make two passes to allow for proper duplicate-argument suppression.
2691 ac_configure_args=
2692 ac_configure_args0=
2693 ac_configure_args1=
2694 ac_must_keep_next=false
2695 for ac_pass in 1 2
2696 do
2697 for ac_arg
2698 do
2699 case $ac_arg in
2700 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2702 | -silent | --silent | --silen | --sile | --sil)
2703 continue ;;
2704 *\'*)
2705 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2706 esac
2707 case $ac_pass in
2708 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2709 2)
2710 as_fn_append ac_configure_args1 " '$ac_arg'"
2711 if test $ac_must_keep_next = true; then
2712 ac_must_keep_next=false # Got value, back to normal.
2713 else
2714 case $ac_arg in
2715 *=* | --config-cache | -C | -disable-* | --disable-* \
2716 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2717 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2718 | -with-* | --with-* | -without-* | --without-* | --x)
2719 case "$ac_configure_args0 " in
2720 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2721 esac
2722 ;;
2723 -* ) ac_must_keep_next=true ;;
2724 esac
2725 fi
2726 as_fn_append ac_configure_args " '$ac_arg'"
2727 ;;
2728 esac
2729 done
2730 done
2731 { ac_configure_args0=; unset ac_configure_args0;}
2732 { ac_configure_args1=; unset ac_configure_args1;}
2733
2734 # When interrupted or exit'd, cleanup temporary files, and complete
2735 # config.log. We remove comments because anyway the quotes in there
2736 # would cause problems or look ugly.
2737 # WARNING: Use '\'' to represent an apostrophe within the trap.
2738 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2739 trap 'exit_status=$?
2740 # Save into config.log some information that might help in debugging.
2741 {
2742 echo
2743
2744 $as_echo "## ---------------- ##
2745 ## Cache variables. ##
2746 ## ---------------- ##"
2747 echo
2748 # The following way of writing the cache mishandles newlines in values,
2749 (
2750 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2751 eval ac_val=\$$ac_var
2752 case $ac_val in #(
2753 *${as_nl}*)
2754 case $ac_var in #(
2755 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2756 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2757 esac
2758 case $ac_var in #(
2759 _ | IFS | as_nl) ;; #(
2760 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2761 *) { eval $ac_var=; unset $ac_var;} ;;
2762 esac ;;
2763 esac
2764 done
2765 (set) 2>&1 |
2766 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2767 *${as_nl}ac_space=\ *)
2768 sed -n \
2769 "s/'\''/'\''\\\\'\'''\''/g;
2770 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2771 ;; #(
2772 *)
2773 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2774 ;;
2775 esac |
2776 sort
2777 )
2778 echo
2779
2780 $as_echo "## ----------------- ##
2781 ## Output variables. ##
2782 ## ----------------- ##"
2783 echo
2784 for ac_var in $ac_subst_vars
2785 do
2786 eval ac_val=\$$ac_var
2787 case $ac_val in
2788 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2789 esac
2790 $as_echo "$ac_var='\''$ac_val'\''"
2791 done | sort
2792 echo
2793
2794 if test -n "$ac_subst_files"; then
2795 $as_echo "## ------------------- ##
2796 ## File substitutions. ##
2797 ## ------------------- ##"
2798 echo
2799 for ac_var in $ac_subst_files
2800 do
2801 eval ac_val=\$$ac_var
2802 case $ac_val in
2803 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2804 esac
2805 $as_echo "$ac_var='\''$ac_val'\''"
2806 done | sort
2807 echo
2808 fi
2809
2810 if test -s confdefs.h; then
2811 $as_echo "## ----------- ##
2812 ## confdefs.h. ##
2813 ## ----------- ##"
2814 echo
2815 cat confdefs.h
2816 echo
2817 fi
2818 test "$ac_signal" != 0 &&
2819 $as_echo "$as_me: caught signal $ac_signal"
2820 $as_echo "$as_me: exit $exit_status"
2821 } >&5
2822 rm -f core *.core core.conftest.* &&
2823 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2824 exit $exit_status
2825 ' 0
2826 for ac_signal in 1 2 13 15; do
2827 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2828 done
2829 ac_signal=0
2830
2831 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2832 rm -f -r conftest* confdefs.h
2833
2834 $as_echo "/* confdefs.h */" > confdefs.h
2835
2836 # Predefined preprocessor variables.
2837
2838 cat >>confdefs.h <<_ACEOF
2839 #define PACKAGE_NAME "$PACKAGE_NAME"
2840 _ACEOF
2841
2842 cat >>confdefs.h <<_ACEOF
2843 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2844 _ACEOF
2845
2846 cat >>confdefs.h <<_ACEOF
2847 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2848 _ACEOF
2849
2850 cat >>confdefs.h <<_ACEOF
2851 #define PACKAGE_STRING "$PACKAGE_STRING"
2852 _ACEOF
2853
2854 cat >>confdefs.h <<_ACEOF
2855 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2856 _ACEOF
2857
2858 cat >>confdefs.h <<_ACEOF
2859 #define PACKAGE_URL "$PACKAGE_URL"
2860 _ACEOF
2861
2862
2863 # Let the site file select an alternate cache file if it wants to.
2864 # Prefer an explicitly selected file to automatically selected ones.
2865 ac_site_file1=NONE
2866 ac_site_file2=NONE
2867 if test -n "$CONFIG_SITE"; then
2868 # We do not want a PATH search for config.site.
2869 case $CONFIG_SITE in #((
2870 -*) ac_site_file1=./$CONFIG_SITE;;
2871 */*) ac_site_file1=$CONFIG_SITE;;
2872 *) ac_site_file1=./$CONFIG_SITE;;
2873 esac
2874 elif test "x$prefix" != xNONE; then
2875 ac_site_file1=$prefix/share/config.site
2876 ac_site_file2=$prefix/etc/config.site
2877 else
2878 ac_site_file1=$ac_default_prefix/share/config.site
2879 ac_site_file2=$ac_default_prefix/etc/config.site
2880 fi
2881 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2882 do
2883 test "x$ac_site_file" = xNONE && continue
2884 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2886 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2887 sed 's/^/| /' "$ac_site_file" >&5
2888 . "$ac_site_file" \
2889 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2891 as_fn_error $? "failed to load site script $ac_site_file
2892 See \`config.log' for more details" "$LINENO" 5; }
2893 fi
2894 done
2895
2896 if test -r "$cache_file"; then
2897 # Some versions of bash will fail to source /dev/null (special files
2898 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2899 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2901 $as_echo "$as_me: loading cache $cache_file" >&6;}
2902 case $cache_file in
2903 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2904 *) . "./$cache_file";;
2905 esac
2906 fi
2907 else
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2909 $as_echo "$as_me: creating cache $cache_file" >&6;}
2910 >$cache_file
2911 fi
2912
2913 # Check that the precious variables saved in the cache have kept the same
2914 # value.
2915 ac_cache_corrupted=false
2916 for ac_var in $ac_precious_vars; do
2917 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2918 eval ac_new_set=\$ac_env_${ac_var}_set
2919 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2920 eval ac_new_val=\$ac_env_${ac_var}_value
2921 case $ac_old_set,$ac_new_set in
2922 set,)
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2924 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2925 ac_cache_corrupted=: ;;
2926 ,set)
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2928 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2929 ac_cache_corrupted=: ;;
2930 ,);;
2931 *)
2932 if test "x$ac_old_val" != "x$ac_new_val"; then
2933 # differences in whitespace do not lead to failure.
2934 ac_old_val_w=`echo x $ac_old_val`
2935 ac_new_val_w=`echo x $ac_new_val`
2936 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2938 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2939 ac_cache_corrupted=:
2940 else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2942 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2943 eval $ac_var=\$ac_old_val
2944 fi
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2946 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2948 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2949 fi;;
2950 esac
2951 # Pass precious variables to config.status.
2952 if test "$ac_new_set" = set; then
2953 case $ac_new_val in
2954 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2955 *) ac_arg=$ac_var=$ac_new_val ;;
2956 esac
2957 case " $ac_configure_args " in
2958 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2959 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2960 esac
2961 fi
2962 done
2963 if $ac_cache_corrupted; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2967 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2968 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2969 fi
2970 ## -------------------- ##
2971 ## Main body of script. ##
2972 ## -------------------- ##
2973
2974 ac_ext=c
2975 ac_cpp='$CPP $CPPFLAGS'
2976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992 # If --target is not used then $target_alias is empty, but if say
2993 # "./configure athlon-pc-freebsd3.5" is used, then all three of
2994 # $build_alias, $host_alias and $target_alias are set to
2995 # "athlon-pc-freebsd3.5".
2996 #
2997 if test -n "$target_alias" && test "$target_alias" != "$host_alias"; then
2998 as_fn_error $? "--target is not appropriate for GMP
2999 Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
3000 explicitly. Use --host if cross-compiling (see \"Installing GMP\" in the
3001 manual for more on this)." "$LINENO" 5
3002 fi
3003
3004 gmp_configm4="config.m4"
3005 gmp_tmpconfigm4=cnfm4.tmp
3006 gmp_tmpconfigm4i=cnfm4i.tmp
3007 gmp_tmpconfigm4p=cnfm4p.tmp
3008 rm -f $gmp_tmpconfigm4 $gmp_tmpconfigm4i $gmp_tmpconfigm4p
3009
3010 # CONFIG_TOP_SRCDIR is a path from the mpn builddir to the top srcdir.
3011 # The pattern here tests for an absolute path the same way as
3012 # _AC_OUTPUT_FILES in autoconf acgeneral.m4.
3013 case $srcdir in
3014 [\\/]* | ?:[\\/]* ) tmp="$srcdir" ;;
3015 *) tmp="../$srcdir" ;;
3016 esac
3017 echo "define(<CONFIG_TOP_SRCDIR>,<\`$tmp'>)" >>$gmp_tmpconfigm4
3018
3019 # All CPUs use asm-defs.m4
3020 echo "include(CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4')" >>$gmp_tmpconfigm4i
3021
3022
3023 ac_aux_dir=
3024 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3025 if test -f "$ac_dir/install-sh"; then
3026 ac_aux_dir=$ac_dir
3027 ac_install_sh="$ac_aux_dir/install-sh -c"
3028 break
3029 elif test -f "$ac_dir/install.sh"; then
3030 ac_aux_dir=$ac_dir
3031 ac_install_sh="$ac_aux_dir/install.sh -c"
3032 break
3033 elif test -f "$ac_dir/shtool"; then
3034 ac_aux_dir=$ac_dir
3035 ac_install_sh="$ac_aux_dir/shtool install -c"
3036 break
3037 fi
3038 done
3039 if test -z "$ac_aux_dir"; then
3040 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3041 fi
3042
3043 # These three variables are undocumented and unsupported,
3044 # and are intended to be withdrawn in a future Autoconf release.
3045 # They can cause serious problems if a builder's source tree is in a directory
3046 # whose full name contains unusual characters.
3047 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3048 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3049 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3050
3051
3052 # Make sure we can run config.sub.
3053 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3054 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3055
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3057 $as_echo_n "checking build system type... " >&6; }
3058 if ${ac_cv_build+:} false; then :
3059 $as_echo_n "(cached) " >&6
3060 else
3061 ac_build_alias=$build_alias
3062 test "x$ac_build_alias" = x &&
3063 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3064 test "x$ac_build_alias" = x &&
3065 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3066 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3067 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3068
3069 fi
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3071 $as_echo "$ac_cv_build" >&6; }
3072 case $ac_cv_build in
3073 *-*-*) ;;
3074 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3075 esac
3076 build=$ac_cv_build
3077 ac_save_IFS=$IFS; IFS='-'
3078 set x $ac_cv_build
3079 shift
3080 build_cpu=$1
3081 build_vendor=$2
3082 shift; shift
3083 # Remember, the first character of IFS is used to create $*,
3084 # except with old shells:
3085 build_os=$*
3086 IFS=$ac_save_IFS
3087 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3088
3089
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3091 $as_echo_n "checking host system type... " >&6; }
3092 if ${ac_cv_host+:} false; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 if test "x$host_alias" = x; then
3096 ac_cv_host=$ac_cv_build
3097 else
3098 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3099 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3100 fi
3101
3102 fi
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3104 $as_echo "$ac_cv_host" >&6; }
3105 case $ac_cv_host in
3106 *-*-*) ;;
3107 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3108 esac
3109 host=$ac_cv_host
3110 ac_save_IFS=$IFS; IFS='-'
3111 set x $ac_cv_host
3112 shift
3113 host_cpu=$1
3114 host_vendor=$2
3115 shift; shift
3116 # Remember, the first character of IFS is used to create $*,
3117 # except with old shells:
3118 host_os=$*
3119 IFS=$ac_save_IFS
3120 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3121
3122
3123
3124 am__api_version='1.15'
3125
3126 # Find a good install program. We prefer a C program (faster),
3127 # so one script is as good as another. But avoid the broken or
3128 # incompatible versions:
3129 # SysV /etc/install, /usr/sbin/install
3130 # SunOS /usr/etc/install
3131 # IRIX /sbin/install
3132 # AIX /bin/install
3133 # AmigaOS /C/install, which installs bootblocks on floppy discs
3134 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3135 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3136 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3137 # OS/2's system install, which has a completely different semantic
3138 # ./install, which can be erroneously created by make from ./install.sh.
3139 # Reject install programs that cannot install multiple files.
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3141 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3142 if test -z "$INSTALL"; then
3143 if ${ac_cv_path_install+:} false; then :
3144 $as_echo_n "(cached) " >&6
3145 else
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3148 do
3149 IFS=$as_save_IFS
3150 test -z "$as_dir" && as_dir=.
3151 # Account for people who put trailing slashes in PATH elements.
3152 case $as_dir/ in #((
3153 ./ | .// | /[cC]/* | \
3154 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3155 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3156 /usr/ucb/* ) ;;
3157 *)
3158 # OSF1 and SCO ODT 3.0 have their own names for install.
3159 # Don't use installbsd from OSF since it installs stuff as root
3160 # by default.
3161 for ac_prog in ginstall scoinst install; do
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3164 if test $ac_prog = install &&
3165 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3166 # AIX install. It has an incompatible calling convention.
3167 :
3168 elif test $ac_prog = install &&
3169 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3170 # program-specific install script used by HP pwplus--don't use.
3171 :
3172 else
3173 rm -rf conftest.one conftest.two conftest.dir
3174 echo one > conftest.one
3175 echo two > conftest.two
3176 mkdir conftest.dir
3177 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3178 test -s conftest.one && test -s conftest.two &&
3179 test -s conftest.dir/conftest.one &&
3180 test -s conftest.dir/conftest.two
3181 then
3182 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3183 break 3
3184 fi
3185 fi
3186 fi
3187 done
3188 done
3189 ;;
3190 esac
3191
3192 done
3193 IFS=$as_save_IFS
3194
3195 rm -rf conftest.one conftest.two conftest.dir
3196
3197 fi
3198 if test "${ac_cv_path_install+set}" = set; then
3199 INSTALL=$ac_cv_path_install
3200 else
3201 # As a last resort, use the slow shell script. Don't cache a
3202 # value for INSTALL within a source directory, because that will
3203 # break other packages using the cache if that directory is
3204 # removed, or if the value is a relative name.
3205 INSTALL=$ac_install_sh
3206 fi
3207 fi
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3209 $as_echo "$INSTALL" >&6; }
3210
3211 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3212 # It thinks the first close brace ends the variable substitution.
3213 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3214
3215 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3216
3217 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3218
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3220 $as_echo_n "checking whether build environment is sane... " >&6; }
3221 # Reject unsafe characters in $srcdir or the absolute working directory
3222 # name. Accept space and tab only in the latter.
3223 am_lf='
3224 '
3225 case `pwd` in
3226 *[\\\"\#\$\&\'\`$am_lf]*)
3227 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3228 esac
3229 case $srcdir in
3230 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3231 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3232 esac
3233
3234 # Do 'set' in a subshell so we don't clobber the current shell's
3235 # arguments. Must try -L first in case configure is actually a
3236 # symlink; some systems play weird games with the mod time of symlinks
3237 # (eg FreeBSD returns the mod time of the symlink's containing
3238 # directory).
3239 if (
3240 am_has_slept=no
3241 for am_try in 1 2; do
3242 echo "timestamp, slept: $am_has_slept" > conftest.file
3243 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3244 if test "$*" = "X"; then
3245 # -L didn't work.
3246 set X `ls -t "$srcdir/configure" conftest.file`
3247 fi
3248 if test "$*" != "X $srcdir/configure conftest.file" \
3249 && test "$*" != "X conftest.file $srcdir/configure"; then
3250
3251 # If neither matched, then we have a broken ls. This can happen
3252 # if, for instance, CONFIG_SHELL is bash and it inherits a
3253 # broken ls alias from the environment. This has actually
3254 # happened. Such a system could not be considered "sane".
3255 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3256 alias in your environment" "$LINENO" 5
3257 fi
3258 if test "$2" = conftest.file || test $am_try -eq 2; then
3259 break
3260 fi
3261 # Just in case.
3262 sleep 1
3263 am_has_slept=yes
3264 done
3265 test "$2" = conftest.file
3266 )
3267 then
3268 # Ok.
3269 :
3270 else
3271 as_fn_error $? "newly created file is older than distributed files!
3272 Check your system clock" "$LINENO" 5
3273 fi
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3275 $as_echo "yes" >&6; }
3276 # If we didn't sleep, we still need to ensure time stamps of config.status and
3277 # generated files are strictly newer.
3278 am_sleep_pid=
3279 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3280 ( sleep 1 ) &
3281 am_sleep_pid=$!
3282 fi
3283
3284 rm -f conftest.file
3285
3286 test "$program_prefix" != NONE &&
3287 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3288 # Use a double $ so make ignores it.
3289 test "$program_suffix" != NONE &&
3290 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3291 # Double any \ or $.
3292 # By default was `s,x,x', remove it if useless.
3293 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3294 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3295
3296 # Expand $ac_aux_dir to an absolute path.
3297 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3298
3299 if test x"${MISSING+set}" != xset; then
3300 case $am_aux_dir in
3301 *\ * | *\ *)
3302 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3303 *)
3304 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3305 esac
3306 fi
3307 # Use eval to expand $SHELL
3308 if eval "$MISSING --is-lightweight"; then
3309 am_missing_run="$MISSING "
3310 else
3311 am_missing_run=
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3313 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3314 fi
3315
3316 if test x"${install_sh+set}" != xset; then
3317 case $am_aux_dir in
3318 *\ * | *\ *)
3319 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3320 *)
3321 install_sh="\${SHELL} $am_aux_dir/install-sh"
3322 esac
3323 fi
3324
3325 # Installed binaries are usually stripped using 'strip' when the user
3326 # run "make install-strip". However 'strip' might not be the right
3327 # tool to use in cross-compilation environments, therefore Automake
3328 # will honor the 'STRIP' environment variable to overrule this program.
3329 if test "$cross_compiling" != no; then
3330 if test -n "$ac_tool_prefix"; then
3331 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3332 set dummy ${ac_tool_prefix}strip; ac_word=$2
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3334 $as_echo_n "checking for $ac_word... " >&6; }
3335 if ${ac_cv_prog_STRIP+:} false; then :
3336 $as_echo_n "(cached) " >&6
3337 else
3338 if test -n "$STRIP"; then
3339 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3340 else
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH
3343 do
3344 IFS=$as_save_IFS
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 break 2
3351 fi
3352 done
3353 done
3354 IFS=$as_save_IFS
3355
3356 fi
3357 fi
3358 STRIP=$ac_cv_prog_STRIP
3359 if test -n "$STRIP"; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3361 $as_echo "$STRIP" >&6; }
3362 else
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3365 fi
3366
3367
3368 fi
3369 if test -z "$ac_cv_prog_STRIP"; then
3370 ac_ct_STRIP=$STRIP
3371 # Extract the first word of "strip", so it can be a program name with args.
3372 set dummy strip; ac_word=$2
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374 $as_echo_n "checking for $ac_word... " >&6; }
3375 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3376 $as_echo_n "(cached) " >&6
3377 else
3378 if test -n "$ac_ct_STRIP"; then
3379 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3380 else
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH
3383 do
3384 IFS=$as_save_IFS
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3388 ac_cv_prog_ac_ct_STRIP="strip"
3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 break 2
3391 fi
3392 done
3393 done
3394 IFS=$as_save_IFS
3395
3396 fi
3397 fi
3398 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3399 if test -n "$ac_ct_STRIP"; then
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3401 $as_echo "$ac_ct_STRIP" >&6; }
3402 else
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404 $as_echo "no" >&6; }
3405 fi
3406
3407 if test "x$ac_ct_STRIP" = x; then
3408 STRIP=":"
3409 else
3410 case $cross_compiling:$ac_tool_warned in
3411 yes:)
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3414 ac_tool_warned=yes ;;
3415 esac
3416 STRIP=$ac_ct_STRIP
3417 fi
3418 else
3419 STRIP="$ac_cv_prog_STRIP"
3420 fi
3421
3422 fi
3423 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3424
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3426 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3427 if test -z "$MKDIR_P"; then
3428 if ${ac_cv_path_mkdir+:} false; then :
3429 $as_echo_n "(cached) " >&6
3430 else
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3433 do
3434 IFS=$as_save_IFS
3435 test -z "$as_dir" && as_dir=.
3436 for ac_prog in mkdir gmkdir; do
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3439 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3440 'mkdir (GNU coreutils) '* | \
3441 'mkdir (coreutils) '* | \
3442 'mkdir (fileutils) '4.1*)
3443 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3444 break 3;;
3445 esac
3446 done
3447 done
3448 done
3449 IFS=$as_save_IFS
3450
3451 fi
3452
3453 test -d ./--version && rmdir ./--version
3454 if test "${ac_cv_path_mkdir+set}" = set; then
3455 MKDIR_P="$ac_cv_path_mkdir -p"
3456 else
3457 # As a last resort, use the slow shell script. Don't cache a
3458 # value for MKDIR_P within a source directory, because that will
3459 # break other packages using the cache if that directory is
3460 # removed, or if the value is a relative name.
3461 MKDIR_P="$ac_install_sh -d"
3462 fi
3463 fi
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3465 $as_echo "$MKDIR_P" >&6; }
3466
3467 for ac_prog in gawk mawk nawk awk
3468 do
3469 # Extract the first word of "$ac_prog", so it can be a program name with args.
3470 set dummy $ac_prog; ac_word=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if ${ac_cv_prog_AWK+:} false; then :
3474 $as_echo_n "(cached) " >&6
3475 else
3476 if test -n "$AWK"; then
3477 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3478 else
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3481 do
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3486 ac_cv_prog_AWK="$ac_prog"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 break 2
3489 fi
3490 done
3491 done
3492 IFS=$as_save_IFS
3493
3494 fi
3495 fi
3496 AWK=$ac_cv_prog_AWK
3497 if test -n "$AWK"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3499 $as_echo "$AWK" >&6; }
3500 else
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3503 fi
3504
3505
3506 test -n "$AWK" && break
3507 done
3508
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3510 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3511 set x ${MAKE-make}
3512 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3513 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3514 $as_echo_n "(cached) " >&6
3515 else
3516 cat >conftest.make <<\_ACEOF
3517 SHELL = /bin/sh
3518 all:
3519 @echo '@@@%%%=$(MAKE)=@@@%%%'
3520 _ACEOF
3521 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3522 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3523 *@@@%%%=?*=@@@%%%*)
3524 eval ac_cv_prog_make_${ac_make}_set=yes;;
3525 *)
3526 eval ac_cv_prog_make_${ac_make}_set=no;;
3527 esac
3528 rm -f conftest.make
3529 fi
3530 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3532 $as_echo "yes" >&6; }
3533 SET_MAKE=
3534 else
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3537 SET_MAKE="MAKE=${MAKE-make}"
3538 fi
3539
3540 rm -rf .tst 2>/dev/null
3541 mkdir .tst 2>/dev/null
3542 if test -d .tst; then
3543 am__leading_dot=.
3544 else
3545 am__leading_dot=_
3546 fi
3547 rmdir .tst 2>/dev/null
3548
3549 # Check whether --enable-silent-rules was given.
3550 if test "${enable_silent_rules+set}" = set; then :
3551 enableval=$enable_silent_rules;
3552 fi
3553
3554 case $enable_silent_rules in # (((
3555 yes) AM_DEFAULT_VERBOSITY=0;;
3556 no) AM_DEFAULT_VERBOSITY=1;;
3557 *) AM_DEFAULT_VERBOSITY=1;;
3558 esac
3559 am_make=${MAKE-make}
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3561 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3562 if ${am_cv_make_support_nested_variables+:} false; then :
3563 $as_echo_n "(cached) " >&6
3564 else
3565 if $as_echo 'TRUE=$(BAR$(V))
3566 BAR0=false
3567 BAR1=true
3568 V=1
3569 am__doit:
3570 @$(TRUE)
3571 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3572 am_cv_make_support_nested_variables=yes
3573 else
3574 am_cv_make_support_nested_variables=no
3575 fi
3576 fi
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3578 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3579 if test $am_cv_make_support_nested_variables = yes; then
3580 AM_V='$(V)'
3581 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3582 else
3583 AM_V=$AM_DEFAULT_VERBOSITY
3584 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3585 fi
3586 AM_BACKSLASH='\'
3587
3588 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3589 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3590 # is not polluted with repeated "-I."
3591 am__isrc=' -I$(srcdir)'
3592 # test to see if srcdir already configured
3593 if test -f $srcdir/config.status; then
3594 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3595 fi
3596 fi
3597
3598 # test whether we have cygpath
3599 if test -z "$CYGPATH_W"; then
3600 if (cygpath --version) >/dev/null 2>/dev/null; then
3601 CYGPATH_W='cygpath -w'
3602 else
3603 CYGPATH_W=echo
3604 fi
3605 fi
3606
3607
3608 # Define the identity of the package.
3609 PACKAGE='gmp'
3610 VERSION='6.3.0'
3611
3612
3613 cat >>confdefs.h <<_ACEOF
3614 #define PACKAGE "$PACKAGE"
3615 _ACEOF
3616
3617
3618 cat >>confdefs.h <<_ACEOF
3619 #define VERSION "$VERSION"
3620 _ACEOF
3621
3622 # Some tools Automake needs.
3623
3624 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3625
3626
3627 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3628
3629
3630 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3631
3632
3633 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3634
3635
3636 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3637
3638 # For better backward compatibility. To be removed once Automake 1.9.x
3639 # dies out for good. For more background, see:
3640 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3641 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3642 mkdir_p='$(MKDIR_P)'
3643
3644 # We need awk for the "check" target (and possibly the TAP driver). The
3645 # system "awk" is bad on some platforms.
3646 # Always define AMTAR for backward compatibility. Yes, it's still used
3647 # in the wild :-( We should find a proper way to deprecate it ...
3648 AMTAR='$${TAR-tar}'
3649
3650
3651 # We'll loop over all known methods to create a tar archive until one works.
3652 _am_tools='gnutar pax cpio none'
3653
3654 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3655
3656
3657
3658
3659
3660
3661 # POSIX will say in a future version that running "rm -f" with no argument
3662 # is OK; and we want to be able to make that assumption in our Makefile
3663 # recipes. So use an aggressive probe to check that the usage we want is
3664 # actually supported "in the wild" to an acceptable degree.
3665 # See automake bug#10828.
3666 # To make any issue more visible, cause the running configure to be aborted
3667 # by default if the 'rm' program in use doesn't match our expectations; the
3668 # user can still override this though.
3669 if rm -f && rm -fr && rm -rf; then : OK; else
3670 cat >&2 <<'END'
3671 Oops!
3672
3673 Your 'rm' program seems unable to run without file operands specified
3674 on the command line, even when the '-f' option is present. This is contrary
3675 to the behaviour of most rm programs out there, and not conforming with
3676 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3677
3678 Please tell [email protected] about your system, including the value
3679 of your $PATH and any error possibly output before this message. This
3680 can help us improve future automake versions.
3681
3682 END
3683 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3684 echo 'Configuration will proceed anyway, since you have set the' >&2
3685 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3686 echo >&2
3687 else
3688 cat >&2 <<'END'
3689 Aborting the configuration process, to ensure you take notice of the issue.
3690
3691 You can download and install GNU coreutils to get an 'rm' implementation
3692 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3693
3694 If you want to complete the configuration process using your problematic
3695 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3696 to "yes", and re-run configure.
3697
3698 END
3699 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3700 fi
3701 fi
3702
3703 ac_config_headers="$ac_config_headers config.h:config.in"
3704
3705
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3707 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3708 # Check whether --enable-maintainer-mode was given.
3709 if test "${enable_maintainer_mode+set}" = set; then :
3710 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3711 else
3712 USE_MAINTAINER_MODE=no
3713 fi
3714
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3716 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3717 if test $USE_MAINTAINER_MODE = yes; then
3718 MAINTAINER_MODE_TRUE=
3719 MAINTAINER_MODE_FALSE='#'
3720 else
3721 MAINTAINER_MODE_TRUE='#'
3722 MAINTAINER_MODE_FALSE=
3723 fi
3724
3725 MAINT=$MAINTAINER_MODE_TRUE
3726
3727
3728
3729
3730 # Check whether --enable-assert was given.
3731 if test "${enable_assert+set}" = set; then :
3732 enableval=$enable_assert; case $enableval in
3733 yes|no) ;;
3734 *) as_fn_error $? "bad value $enableval for --enable-assert, need yes or no" "$LINENO" 5 ;;
3735 esac
3736 else
3737 enable_assert=no
3738 fi
3739
3740
3741 if test "$enable_assert" = "yes"; then
3742
3743 $as_echo "#define WANT_ASSERT 1" >>confdefs.h
3744
3745 want_assert_01=1
3746 else
3747 want_assert_01=0
3748 fi
3749
3750 echo "define(<WANT_ASSERT>,$want_assert_01)" >> $gmp_tmpconfigm4
3751
3752
3753
3754 # Check whether --enable-alloca was given.
3755 if test "${enable_alloca+set}" = set; then :
3756 enableval=$enable_alloca; case $enableval in
3757 alloca|malloc-reentrant|malloc-notreentrant) ;;
3758 yes|no|reentrant|notreentrant) ;;
3759 debug) ;;
3760 *)
3761 as_fn_error $? "bad value $enableval for --enable-alloca, need one of:
3762 yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" "$LINENO" 5 ;;
3763 esac
3764 else
3765 enable_alloca=reentrant
3766 fi
3767
3768
3769
3770 # IMPROVE ME: The default for C++ is disabled. The tests currently
3771 # performed below for a working C++ compiler are not particularly strong,
3772 # and in general can't be expected to get the right setup on their own. The
3773 # most significant problem is getting the ABI the same. Defaulting CXXFLAGS
3774 # to CFLAGS takes only a small step towards this. It's also probably worth
3775 # worrying whether the C and C++ runtimes from say gcc and a vendor C++ can
3776 # work together. Some rather broken C++ installations were encountered
3777 # during testing, and though such things clearly aren't GMP's problem, if
3778 # --enable-cxx=detect were to be the default then some careful checks of
3779 # which, if any, C++ compiler on the system is up to scratch would be
3780 # wanted.
3781 #
3782 # Check whether --enable-cxx was given.
3783 if test "${enable_cxx+set}" = set; then :
3784 enableval=$enable_cxx; case $enableval in
3785 yes|no|detect) ;;
3786 *) as_fn_error $? "bad value $enableval for --enable-cxx, need yes/no/detect" "$LINENO" 5 ;;
3787 esac
3788 else
3789 enable_cxx=no
3790 fi
3791
3792
3793
3794 # Check whether --enable-assembly was given.
3795 if test "${enable_assembly+set}" = set; then :
3796 enableval=$enable_assembly; case $enableval in
3797 yes|no) ;;
3798 *) as_fn_error $? "bad value $enableval for --enable-assembly, need yes or no" "$LINENO" 5 ;;
3799 esac
3800 else
3801 enable_assembly=yes
3802 fi
3803
3804
3805
3806 # Check whether --enable-fft was given.
3807 if test "${enable_fft+set}" = set; then :
3808 enableval=$enable_fft; case $enableval in
3809 yes|no) ;;
3810 *) as_fn_error $? "bad value $enableval for --enable-fft, need yes or no" "$LINENO" 5 ;;
3811 esac
3812 else
3813 enable_fft=yes
3814 fi
3815
3816
3817 if test "$enable_fft" = "yes"; then
3818
3819 $as_echo "#define WANT_FFT 1" >>confdefs.h
3820
3821 fi
3822
3823
3824 # Check whether --enable-old-fft-full was given.
3825 if test "${enable_old_fft_full+set}" = set; then :
3826 enableval=$enable_old_fft_full; case $enableval in
3827 yes|no) ;;
3828 *) as_fn_error $? "bad value $enableval for --enable-old-fft-full, need yes or no" "$LINENO" 5 ;;
3829 esac
3830 else
3831 enable_old_fft_full=no
3832 fi
3833
3834
3835 if test "$enable_old_fft_full" = "yes"; then
3836
3837 $as_echo "#define WANT_OLD_FFT_FULL 1" >>confdefs.h
3838
3839 fi
3840
3841
3842 # Check whether --enable-nails was given.
3843 if test "${enable_nails+set}" = set; then :
3844 enableval=$enable_nails; case $enableval in
3845 yes|no|[02468]|[0-9][02468]) ;;
3846 *[13579])
3847 as_fn_error $? "bad value $enableval for --enable-nails, only even nail sizes supported" "$LINENO" 5 ;;
3848 *)
3849 as_fn_error $? "bad value $enableval for --enable-nails, need yes/no/number" "$LINENO" 5 ;;
3850 esac
3851 else
3852 enable_nails=no
3853 fi
3854
3855
3856 case $enable_nails in
3857 yes) GMP_NAIL_BITS=2 ;;
3858 no) GMP_NAIL_BITS=0 ;;
3859 *) GMP_NAIL_BITS=$enable_nails ;;
3860 esac
3861
3862
3863
3864 # Check whether --enable-profiling was given.
3865 if test "${enable_profiling+set}" = set; then :
3866 enableval=$enable_profiling; case $enableval in
3867 no|prof|gprof|instrument) ;;
3868 *) as_fn_error $? "bad value $enableval for --enable-profiling, need no/prof/gprof/instrument" "$LINENO" 5 ;;
3869 esac
3870 else
3871 enable_profiling=no
3872 fi
3873
3874
3875 case $enable_profiling in
3876 prof)
3877
3878 $as_echo "#define WANT_PROFILING_PROF 1" >>confdefs.h
3879
3880 ;;
3881 gprof)
3882
3883 $as_echo "#define WANT_PROFILING_GPROF 1" >>confdefs.h
3884
3885 ;;
3886 instrument)
3887
3888 $as_echo "#define WANT_PROFILING_INSTRUMENT 1" >>confdefs.h
3889
3890 ;;
3891 esac
3892
3893
3894 echo "define(<WANT_PROFILING>,<\`$enable_profiling'>)" >> $gmp_tmpconfigm4
3895
3896
3897 # -fomit-frame-pointer is incompatible with -pg on some chips
3898 if test "$enable_profiling" = gprof; then
3899 fomit_frame_pointer=
3900 else
3901 fomit_frame_pointer="-fomit-frame-pointer"
3902 fi
3903
3904
3905
3906 # Check whether --with-readline was given.
3907 if test "${with_readline+set}" = set; then :
3908 withval=$with_readline; case $withval in
3909 yes|no|detect) ;;
3910 *) as_fn_error $? "bad value $withval for --with-readline, need yes/no/detect" "$LINENO" 5 ;;
3911 esac
3912 else
3913 with_readline=detect
3914 fi
3915
3916
3917
3918 # Check whether --enable-fat was given.
3919 if test "${enable_fat+set}" = set; then :
3920 enableval=$enable_fat; case $enableval in
3921 yes|no) ;;
3922 *) as_fn_error $? "bad value $enableval for --enable-fat, need yes or no" "$LINENO" 5 ;;
3923 esac
3924 else
3925 enable_fat=no
3926 fi
3927
3928
3929
3930 # Check whether --enable-minithres was given.
3931 if test "${enable_minithres+set}" = set; then :
3932 enableval=$enable_minithres; case $enableval in
3933 yes|no) ;;
3934 *) as_fn_error $? "bad value $enableval for --enable-minithres, need yes or no" "$LINENO" 5 ;;
3935 esac
3936 else
3937 enable_minithres=no
3938 fi
3939
3940
3941
3942 # Check whether --enable-fake-cpuid was given.
3943 if test "${enable_fake_cpuid+set}" = set; then :
3944 enableval=$enable_fake_cpuid; case $enableval in
3945 yes|no) ;;
3946 *) as_fn_error $? "bad value $enableval for --enable-fake-cpuid, need yes or no" "$LINENO" 5 ;;
3947 esac
3948 else
3949 enable_fake_cpuid=no
3950 fi
3951
3952
3953 if test "$enable_fake_cpuid" = "yes"; then
3954
3955 $as_echo "#define WANT_FAKE_CPUID 1" >>confdefs.h
3956
3957 fi
3958
3959
3960 if test $enable_fat = yes && test $enable_assembly = no ; then
3961 as_fn_error $? "when doing a fat build, disabling assembly will not work" "$LINENO" 5
3962 fi
3963
3964 if test $enable_fake_cpuid = yes && test $enable_fat = no ; then
3965 as_fn_error $? "--enable-fake-cpuid requires --enable-fat" "$LINENO" 5
3966 fi
3967
3968
3969 tmp_host=`echo $host_cpu | sed 's/\./_/'`
3970 cat >>confdefs.h <<_ACEOF
3971 #define HAVE_HOST_CPU_$tmp_host 1
3972 _ACEOF
3973
3974
3975 echo "define_not_for_expansion(\`HAVE_HOST_CPU_$tmp_host')" >> $gmp_tmpconfigm4p
3976
3977
3978
3979
3980
3981
3982 # Table of compilers, options, and mpn paths. This code has various related
3983 # purposes
3984 #
3985 # - better default CC/CFLAGS selections than autoconf otherwise gives
3986 # - default CC/CFLAGS selections for extra CPU types specific to GMP
3987 # - a few tests for known bad compilers
3988 # - choice of ABIs on suitable systems
3989 # - selection of corresponding mpn search path
3990 #
3991 # After GMP specific searches and tests, the standard autoconf AC_PROG_CC is
3992 # called. User selections of CC etc are respected.
3993 #
3994 # Care is taken not to use macros like AC_TRY_COMPILE during the GMP
3995 # pre-testing, since they of course depend on AC_PROG_CC, and also some of
3996 # them cache their results, which is not wanted.
3997 #
3998 # The ABI selection mechanism is unique to GMP. All that reaches autoconf
3999 # is a different selection of CC/CFLAGS according to the best ABI the system
4000 # supports, and/or what the user selects. Naturally the mpn assembler code
4001 # selected is very dependent on the ABI.
4002 #
4003 # The closest the standard tools come to a notion of ABI is something like
4004 # "sparc64" which encodes a CPU and an ABI together. This doesn't seem to
4005 # scale well for GMP, where exact CPU types like "ultrasparc2" are wanted,
4006 # separate from the ABI used on them.
4007 #
4008 #
4009 # The variables set here are
4010 #
4011 # cclist the compiler choices
4012 # xx_cflags flags for compiler xx
4013 # xx_cflags_maybe flags for compiler xx, if they work
4014 # xx_cppflags cpp flags for compiler xx
4015 # xx_cflags_optlist list of sets of optional flags
4016 # xx_cflags_yyy set yyy of optional flags for compiler xx
4017 # xx_ldflags -Wc,-foo flags for libtool linking with compiler xx
4018 # ar_flags extra flags for $AR
4019 # nm_flags extra flags for $NM
4020 # limb limb size, can be "longlong"
4021 # path mpn search path
4022 # extra_functions extra mpn functions
4023 # fat_path fat binary mpn search path [if fat binary desired]
4024 # fat_functions fat functions
4025 # fat_thresholds fat thresholds
4026 #
4027 # Suppose xx_cflags_optlist="arch", then flags from $xx_cflags_arch are
4028 # tried, and the first flag that works will be used. An optlist like "arch
4029 # cpu optimize" can be used to get multiple independent sets of flags tried.
4030 # The first that works from each will be used. If no flag in a set works
4031 # then nothing from that set is added.
4032 #
4033 # For multiple ABIs, the scheme extends as follows.
4034 #
4035 # abilist set of ABI choices
4036 # cclist_aa compiler choices in ABI aa
4037 # xx_aa_cflags flags for xx in ABI aa
4038 # xx_aa_cflags_maybe flags for xx in ABI aa, if they work
4039 # xx_aa_cppflags cpp flags for xx in ABI aa
4040 # xx_aa_cflags_optlist list of sets of optional flags in ABI aa
4041 # xx_aa_cflags_yyy set yyy of optional flags for compiler xx in ABI aa
4042 # xx_aa_ldflags -Wc,-foo flags for libtool linking
4043 # ar_aa_flags extra flags for $AR in ABI aa
4044 # nm_aa_flags extra flags for $NM in ABI aa
4045 # limb_aa limb size in ABI aa, can be "longlong"
4046 # path_aa mpn search path in ABI aa
4047 # extra_functions_aa extra mpn functions in ABI aa
4048 #
4049 # As a convenience, the unadorned xx_cflags (etc) are used for the last ABI
4050 # in ablist, if an xx_aa_cflags for that ABI isn't given. For example if
4051 # abilist="64 32" then $cc_64_cflags will be used for the 64-bit ABI, but
4052 # for the 32-bit either $cc_32_cflags or $cc_cflags is used, whichever is
4053 # defined. This makes it easy to add some 64-bit compilers and flags to an
4054 # unadorned 32-bit set.
4055 #
4056 # limb=longlong (or limb_aa=longlong) applies to all compilers within that
4057 # ABI. It won't work to have some needing long long and some not, since a
4058 # single instantiated gmp.h will be used by both.
4059 #
4060 # SPEED_CYCLECOUNTER, cyclecounter_size and CALLING_CONVENTIONS_OBJS are
4061 # also set here, with an ABI suffix.
4062 #
4063 #
4064 #
4065 # A table-driven approach like this to mapping cpu type to good compiler
4066 # options is a bit of a maintenance burden, but there's not much uniformity
4067 # between options specifications on different compilers. Some sort of
4068 # separately updatable tool might be cute.
4069 #
4070 # The use of lots of variables like this, direct and indirect, tends to
4071 # obscure when and how various things are done, but unfortunately it's
4072 # pretty much the only way. If shell subroutines were portable then actual
4073 # code like "if this .. do that" could be written, but attempting the same
4074 # with full copies of GMP_PROG_CC_WORKS etc expanded at every point would
4075 # hugely bloat the output.
4076
4077
4078
4079
4080 # abilist needs to be non-empty, "standard" is just a generic name here
4081 abilist="standard"
4082
4083 # FIXME: We'd like to prefer an ANSI compiler, perhaps by preferring
4084 # c89 over cc here. But note that on HP-UX c89 provides a castrated
4085 # environment, and would want to be excluded somehow. Maybe
4086 # AC_PROG_CC_STDC already does enough to stick cc into ANSI mode and
4087 # we don't need to worry.
4088 #
4089 cclist="gcc cc"
4090
4091 gcc_cflags="-O2 -pedantic"
4092 gcc_64_cflags="-O2 -pedantic"
4093 cc_cflags="-O"
4094 cc_64_cflags="-O"
4095
4096 SPEED_CYCLECOUNTER_OBJ=
4097 cyclecounter_size=2
4098
4099 HAVE_HOST_CPU_FAMILY_power=0
4100
4101 HAVE_HOST_CPU_FAMILY_powerpc=0
4102
4103
4104 case $host in
4105
4106 alpha*-*-*)
4107 $as_echo "#define HAVE_HOST_CPU_FAMILY_alpha 1" >>confdefs.h
4108
4109 case $host_cpu in
4110 alphaev5* | alphapca5*)
4111 path="alpha/ev5 alpha" ;;
4112 alphaev67 | alphaev68 | alphaev7*)
4113 path="alpha/ev67 alpha/ev6 alpha" ;;
4114 alphaev6)
4115 path="alpha/ev6 alpha" ;;
4116 *)
4117 path="alpha" ;;
4118 esac
4119 if test "$enable_assembly" = "yes" ; then
4120 extra_functions="cntlz"
4121 fi
4122 gcc_cflags_optlist="asm cpu oldas" # need asm ahead of cpu, see below
4123 gcc_cflags_maybe="-mieee"
4124 gcc_cflags_oldas="-Wa,-oldas" # see GMP_GCC_WA_OLDAS.
4125
4126 # gcc 2.7.2.3 doesn't know any -mcpu= for alpha, apparently.
4127 # gcc 2.95 knows -mcpu= ev4, ev5, ev56, pca56, ev6.
4128 # gcc 3.0 adds nothing.
4129 # gcc 3.1 adds ev45, ev67 (but ev45 is the same as ev4).
4130 # gcc 3.2 adds nothing.
4131 #
4132 # gcc version "2.9-gnupro-99r1" under "-O2 -mcpu=ev6" strikes internal
4133 # compiler errors too easily and is rejected by GMP_PROG_CC_WORKS. Each
4134 # -mcpu=ev6 below has a fallback to -mcpu=ev56 for this reason.
4135 #
4136 case $host_cpu in
4137 alpha) gcc_cflags_cpu="-mcpu=ev4" ;;
4138 alphaev5) gcc_cflags_cpu="-mcpu=ev5" ;;
4139 alphaev56) gcc_cflags_cpu="-mcpu=ev56" ;;
4140 alphapca56 | alphapca57)
4141 gcc_cflags_cpu="-mcpu=pca56" ;;
4142 alphaev6) gcc_cflags_cpu="-mcpu=ev6 -mcpu=ev56" ;;
4143 alphaev67 | alphaev68 | alphaev7*)
4144 gcc_cflags_cpu="-mcpu=ev67 -mcpu=ev6 -mcpu=ev56" ;;
4145 esac
4146
4147 # gcc version "2.9-gnupro-99r1" on alphaev68-dec-osf5.1 has been seen
4148 # accepting -mcpu=ev6, but not putting the assembler in the right mode
4149 # for what it produces. We need to do this for it, and need to do it
4150 # before testing the -mcpu options.
4151 #
4152 # On old versions of gcc, which don't know -mcpu=, we believe an
4153 # explicit -Wa,-mev5 etc will be necessary to put the assembler in
4154 # the right mode for our .asm files and longlong.h asm blocks.
4155 #
4156 # On newer versions of gcc, when -mcpu= is known, we must give a -Wa
4157 # which is at least as high as the code gcc will generate. gcc
4158 # establishes what it needs with a ".arch" directive, our command line
4159 # option seems to override that.
4160 #
4161 # gas prior to 2.14 doesn't accept -mev67, but -mev6 seems enough for
4162 # ctlz and cttz (in 2.10.0 at least).
4163 #
4164 # OSF `as' accepts ev68 but stupidly treats it as ev4. -arch only seems
4165 # to affect insns like ldbu which are expanded as macros when necessary.
4166 # Insns like ctlz which were never available as macros are always
4167 # accepted and always generate their plain code.
4168 #
4169 case $host_cpu in
4170 alpha) gcc_cflags_asm="-Wa,-arch,ev4 -Wa,-mev4" ;;
4171 alphaev5) gcc_cflags_asm="-Wa,-arch,ev5 -Wa,-mev5" ;;
4172 alphaev56) gcc_cflags_asm="-Wa,-arch,ev56 -Wa,-mev56" ;;
4173 alphapca56 | alphapca57)
4174 gcc_cflags_asm="-Wa,-arch,pca56 -Wa,-mpca56" ;;
4175 alphaev6) gcc_cflags_asm="-Wa,-arch,ev6 -Wa,-mev6" ;;
4176 alphaev67 | alphaev68 | alphaev7*)
4177 gcc_cflags_asm="-Wa,-arch,ev67 -Wa,-mev67 -Wa,-arch,ev6 -Wa,-mev6" ;;
4178 esac
4179
4180 # It might be better to ask "cc" whether it's Cray C or DEC C,
4181 # instead of relying on the OS part of $host. But it's hard to
4182 # imagine either of those compilers anywhere except their native
4183 # systems.
4184 #
4185
4186 echo "include_mpn(\`alpha/alpha-defs.m4')" >> $gmp_tmpconfigm4i
4187
4188 case $host in
4189 *-cray-unicos*)
4190 cc_cflags="-O" # no -g, it silently disables all optimizations
4191
4192 echo "include_mpn(\`alpha/unicos.m4')" >> $gmp_tmpconfigm4i
4193
4194 # Don't perform any assembly syntax tests on this beast.
4195 gmp_asm_syntax_testing=no
4196 ;;
4197 *-*-osf*)
4198
4199 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
4200
4201 cc_cflags=""
4202 cc_cflags_optlist="opt cpu"
4203
4204 # not sure if -fast works on old versions, so make it optional
4205 cc_cflags_opt="-fast -O2"
4206
4207 # DEC C V5.9-005 knows ev4, ev5, ev56, pca56, ev6.
4208 # Compaq C V6.3-029 adds ev67.
4209 #
4210 case $host_cpu in
4211 alpha) cc_cflags_cpu="-arch~ev4~-tune~ev4" ;;
4212 alphaev5) cc_cflags_cpu="-arch~ev5~-tune~ev5" ;;
4213 alphaev56) cc_cflags_cpu="-arch~ev56~-tune~ev56" ;;
4214 alphapca56 | alphapca57)
4215 cc_cflags_cpu="-arch~pca56~-tune~pca56" ;;
4216 alphaev6) cc_cflags_cpu="-arch~ev6~-tune~ev6" ;;
4217 alphaev67 | alphaev68 | alphaev7*)
4218 cc_cflags_cpu="-arch~ev67~-tune~ev67 -arch~ev6~-tune~ev6" ;;
4219 esac
4220 ;;
4221 *)
4222
4223 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
4224
4225 ;;
4226 esac
4227
4228 case $host in
4229 *-*-unicos*)
4230 # tune/alpha.asm assumes int==4bytes but unicos uses int==8bytes
4231 ;;
4232 *)
4233 SPEED_CYCLECOUNTER_OBJ=alpha.lo
4234 cyclecounter_size=1 ;;
4235 esac
4236 ;;
4237
4238
4239 # Cray vector machines.
4240 # This must come after alpha* so that we can recognize present and future
4241 # vector processors with a wildcard.
4242 *-cray-unicos*)
4243 gmp_asm_syntax_testing=no
4244 cclist="cc"
4245 # We used to have -hscalar0 here as a workaround for miscompilation of
4246 # mpz/import.c, but let's hope Cray fixes their bugs instead, since
4247 # -hscalar0 causes disastrously poor code to be generated.
4248 cc_cflags="-O3 -hnofastmd -htask0 -Wa,-B"
4249 path="cray"
4250 ;;
4251
4252
4253 arm*-*-* | aarch64*-*-* | applem[1-9]-*-*)
4254 abilist="32"
4255 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4256 gcc_cflags_optlist="arch fpmode neon tune"
4257 gcc_64_cflags_optlist="arch tune"
4258 gcc_testlist="gcc-arm-umodsi"
4259 gcc_64_testlist=""
4260 CALLING_CONVENTIONS_OBJS='arm32call.lo arm32check.lo'
4261 CALLING_CONVENTIONS_OBJS_64=""
4262 cclist_64="gcc cc"
4263 any_32_testlist="sizeof-void*-4"
4264 any_64_testlist="sizeof-void*-8"
4265
4266 # This is needed for clang, which is not content with flags like -mfpu=neon
4267 # alone.
4268 case $host in
4269 *-*-*eabi)
4270 gcc_cflags_fpmode="-mfloat-abi=softfp" ;;
4271 *-*-*eabihf)
4272 gcc_cflags_fpmode="-mfloat-abi=hard" ;;
4273 *-*-mingw*)
4274 limb_64=longlong ;;
4275 esac
4276
4277 # FIXME: We make mandatory compiler options optional here. We should
4278 # either enforce them, or organise to strip paths as the corresponding
4279 # options fail.
4280 case $host_cpu in
4281 armxscale | arm7ej | arm9te | arm9e* | arm10* | armv5*)
4282 path="arm/v5 arm"
4283 gcc_cflags_arch="-march=armv5"
4284 ;;
4285 armsa1 | arm7t* | arm9t* | armv4t*)
4286 path="arm"
4287 gcc_cflags_arch="-march=armv4"
4288 ;;
4289 arm1156 | armv6t2*)
4290 path="arm/v6t2 arm/v6 arm/v5 arm"
4291 gcc_cflags_arch="-march=armv6t2"
4292 ;;
4293 arm11* | armv6*)
4294 path="arm/v6 arm/v5 arm"
4295 gcc_cflags_arch="-march=armv6"
4296 ;;
4297 armcortexa5 | armv7*)
4298 path="arm/v7a/cora5 arm/v6t2 arm/v6 arm/v5 arm"
4299 gcc_cflags_arch="-march=armv7-a"
4300 gcc_cflags_tune="-mtune=cortex-a5"
4301 ;;
4302 armcortexa5neon)
4303 path="arm/neon arm/v7a/cora5 arm/v6t2 arm/v6 arm/v5 arm"
4304 gcc_cflags_neon="-mfpu=neon"
4305 gcc_cflags_arch="-march=armv7-a"
4306 gcc_cflags_tune="-mtune=cortex-a5"
4307 ;;
4308 armcortexa7)
4309 path="arm/v7a/cora7 arm/v6t2 arm/v6 arm/v5 arm"
4310 gcc_cflags_arch="-march=armv7ve -march=armv7-a"
4311 gcc_cflags_tune="-mtune=cortex-a7"
4312 ;;
4313 armcortexa7neon)
4314 path="arm/neon arm/v7a/cora7 arm/v6t2 arm/v6 arm/v5 arm"
4315 gcc_cflags_arch="-march=armv7ve -march=armv7-a"
4316 gcc_cflags_neon="-mfpu=neon"
4317 gcc_cflags_tune="-mtune=cortex-a7"
4318 ;;
4319 armcortexa8)
4320 path="arm/v7a/cora8 arm/v6t2 arm/v6 arm/v5 arm"
4321 gcc_cflags_arch="-march=armv7-a"
4322 gcc_cflags_tune="-mtune=cortex-a8"
4323 ;;
4324 armcortexa8neon)
4325 path="arm/neon arm/v7a/cora8 arm/v6t2 arm/v6 arm/v5 arm"
4326 gcc_cflags_arch="-march=armv7-a"
4327 gcc_cflags_neon="-mfpu=neon"
4328 gcc_cflags_tune="-mtune=cortex-a8"
4329 ;;
4330 armcortexa9)
4331 path="arm/v7a/cora9 arm/v6t2 arm/v6 arm/v5 arm"
4332 gcc_cflags_arch="-march=armv7-a"
4333 gcc_cflags_tune="-mtune=cortex-a9"
4334 ;;
4335 armcortexa9neon)
4336 path="arm/neon arm/v7a/cora9 arm/v6t2 arm/v6 arm/v5 arm"
4337 gcc_cflags_arch="-march=armv7-a"
4338 gcc_cflags_neon="-mfpu=neon"
4339 gcc_cflags_tune="-mtune=cortex-a9"
4340 ;;
4341 armcortexa15)
4342 path="arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm"
4343 gcc_cflags_arch="-march=armv7ve -march=armv7-a"
4344 gcc_cflags_tune="-mtune=cortex-a15 -mtune=cortex-a9"
4345 ;;
4346 armcortexa15neon)
4347 path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm"
4348 gcc_cflags_arch="-march=armv7ve -march=armv7-a"
4349 gcc_cflags_neon="-mfpu=neon"
4350 gcc_cflags_tune="-mtune=cortex-a15 -mtune=cortex-a9"
4351 ;;
4352 armcortexa12 | armcortexa17)
4353 path="arm/v7a/cora17 arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm"
4354 gcc_cflags_arch="-march=armv7ve -march=armv7-a"
4355 gcc_cflags_tune="-mtune=cortex-a15 -mtune=cortex-a9"
4356 ;;
4357 armcortexa12neon | armcortexa17neon)
4358 path="arm/v7a/cora17/neon arm/v7a/cora15/neon arm/neon arm/v7a/cora17 arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm"
4359 gcc_cflags_arch="-march=armv7ve -march=armv7-a"
4360 gcc_cflags_neon="-mfpu=neon"
4361 gcc_cflags_tune="-mtune=cortex-a15 -mtune=cortex-a9"
4362 ;;
4363 armcortexa53 | armcortexa53neon | armcortexa55 | armcortexa55neon)
4364 abilist="64 32"
4365 path="arm/neon arm/v7a/cora9 arm/v6t2 arm/v6 arm/v5 arm"
4366 path_64="arm64/cora53 arm64"
4367 gcc_cflags_arch="-march=armv8-a"
4368 gcc_cflags_neon="-mfpu=neon"
4369 gcc_cflags_tune="-mtune=cortex-a53"
4370 ;;
4371 armcortexa57 | armcortexa57neon)
4372 abilist="64 32"
4373 path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm"
4374 path_64="arm64/cora57 arm64"
4375 gcc_cflags_arch="-march=armv8-a"
4376 gcc_cflags_neon="-mfpu=neon"
4377 gcc_cflags_tune="-mtune=cortex-a57"
4378 ;;
4379 armcortexa7[2-9] | armcortexa7[2-9]neon)
4380 abilist="64 32"
4381 path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm"
4382 path_64="arm64/cora57 arm64"
4383 gcc_cflags_arch="-march=armv8-a"
4384 gcc_cflags_neon="-mfpu=neon"
4385 gcc_cflags_tune="-mtune=cortex-a72 -mtune=cortex-a57"
4386 ;;
4387 armexynosm1)
4388 abilist="64 32"
4389 path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm"
4390 path_64="arm64"
4391 gcc_cflags_arch="-march=armv8-a"
4392 gcc_cflags_neon="-mfpu=neon"
4393 gcc_cflags_tune="-mtune=exynosm1"
4394 ;;
4395 armthunderx)
4396 abilist="64 32"
4397 path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm"
4398 path_64="arm64"
4399 gcc_cflags_arch="-march=armv8-a"
4400 gcc_cflags_neon="-mfpu=neon"
4401 gcc_cflags_tune="-mtune=thunderx"
4402 ;;
4403 armxgene1)
4404 abilist="64 32"
4405 path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm"
4406 path_64="arm64/xgene1 arm64"
4407 gcc_cflags_arch="-march=armv8-a"
4408 gcc_cflags_neon="-mfpu=neon"
4409 gcc_cflags_tune="-mtune=xgene1"
4410 ;;
4411 aarch64*)
4412 abilist="64 32"
4413 path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm"
4414 path_64="arm64"
4415 gcc_cflags_arch="-march=armv8-a"
4416 gcc_cflags_neon="-mfpu=neon"
4417 gcc_cflags_tune=""
4418 ;;
4419 applem[1-9]*)
4420 abilist="64"
4421 path_64="arm64/applem1 arm64"
4422 gcc_cflags_arch="-march=armv8-a"
4423 gcc_cflags_neon="-mfpu=neon"
4424 gcc_cflags_tune=""
4425 CALLING_CONVENTIONS_OBJS=""
4426 ;;
4427 *)
4428 path="arm"
4429 gcc_cflags_arch="-march=armv4"
4430
4431 echo "define(<NOTHUMB>,1)" >> $gmp_tmpconfigm4
4432
4433 ;;
4434 esac
4435 ;;
4436
4437
4438 # Fujitsu
4439 f30[01]-fujitsu-sysv*)
4440 cclist="gcc vcc"
4441 # FIXME: flags for vcc?
4442 vcc_cflags="-g"
4443 path="fujitsu"
4444 ;;
4445
4446
4447 hppa*-*-*)
4448 # HP cc (the one sold separately) is K&R by default, but AM_C_PROTOTYPES
4449 # will add "-Ae", or "-Aa -D_HPUX_SOURCE", to put it into ansi mode, if
4450 # possible.
4451 #
4452 # gcc for hppa 2.0 can be built either for 2.0n (32-bit) or 2.0w
4453 # (64-bit), but not both, so there's no option to choose the desired
4454 # mode, we must instead detect which of the two it is. This is done by
4455 # checking sizeof(long), either 4 or 8 bytes respectively. Do this in
4456 # ABI=1.0 too, in case someone tries to build that with a 2.0w gcc.
4457 #
4458 gcc_cflags_optlist="arch"
4459 gcc_testlist="sizeof-long-4"
4460 SPEED_CYCLECOUNTER_OBJ=hppa.lo
4461 cyclecounter_size=1
4462
4463 # FIXME: For hppa2.0*, path should be "pa32/hppa2_0 pa32/hppa1_1 pa32".
4464 # (Can't remember why this isn't done already, have to check what .asm
4465 # files are available in each and how they run on a typical 2.0 cpu.)
4466 #
4467 case $host_cpu in
4468 hppa1.0*) path="pa32" ;;
4469 hppa7000*) path="pa32/hppa1_1 pa32" ;;
4470 hppa2.0* | hppa64)
4471 path="pa32/hppa2_0 pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
4472 *) # default to 7100
4473 path="pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
4474 esac
4475
4476 # gcc 2.7.2.3 knows -mpa-risc-1-0 and -mpa-risc-1-1
4477 # gcc 2.95 adds -mpa-risc-2-0, plus synonyms -march=1.0, 1.1 and 2.0
4478 #
4479 # We don't use -mpa-risc-2-0 in ABI=1.0 because 64-bit registers may not
4480 # be saved by the kernel on an old system. Actually gcc (as of 3.2)
4481 # only adds a few float instructions with -mpa-risc-2-0, so it would
4482 # probably be safe, but let's not take the chance. In any case, a
4483 # configuration like --host=hppa2.0 ABI=1.0 is far from optimal.
4484 #
4485 case $host_cpu in
4486 hppa1.0*) gcc_cflags_arch="-mpa-risc-1-0" ;;
4487 *) # default to 7100
4488 gcc_cflags_arch="-mpa-risc-1-1" ;;
4489 esac
4490
4491 case $host_cpu in
4492 hppa1.0*) cc_cflags="+O2" ;;
4493 *) # default to 7100
4494 cc_cflags="+DA1.1 +O2" ;;
4495 esac
4496
4497 case $host in
4498 hppa2.0*-*-* | hppa64-*-*)
4499 cclist_20n="gcc cc"
4500 abilist="2.0n 1.0"
4501 path_20n="pa64"
4502 limb_20n=longlong
4503 any_20n_testlist="sizeof-long-4"
4504 SPEED_CYCLECOUNTER_OBJ_20n=hppa2.lo
4505 cyclecounter_size_20n=2
4506
4507 # -mpa-risc-2-0 is only an optional flag, in case an old gcc is
4508 # used. Assembler support for 2.0 is essential though, for our asm
4509 # files.
4510 gcc_20n_cflags="$gcc_cflags"
4511 gcc_20n_cflags_optlist="arch"
4512 gcc_20n_cflags_arch="-mpa-risc-2-0 -mpa-risc-1-1"
4513 gcc_20n_testlist="sizeof-long-4 hppa-level-2.0"
4514
4515 cc_20n_cflags="+DA2.0 +e +O2 -Wl,+vnocompatwarnings"
4516 cc_20n_testlist="hpc-hppa-2-0"
4517
4518 # ABI=2.0w is available for hppa2.0w and hppa2.0, but not for
4519 # hppa2.0n, on the assumption that that the latter indicates a
4520 # desire for ABI=2.0n.
4521 case $host in
4522 hppa2.0n-*-*) ;;
4523 *)
4524 # HPUX 10 and earlier cannot run 2.0w. Not sure about other
4525 # systems (GNU/Linux for instance), but lets assume they're ok.
4526 case $host in
4527 *-*-hpux[1-9] | *-*-hpux[1-9].* | *-*-hpux10 | *-*-hpux10.*) ;;
4528 *) abilist="2.0w $abilist" ;;
4529 esac
4530
4531 cclist_20w="gcc cc"
4532 gcc_20w_cflags="$gcc_cflags -mpa-risc-2-0"
4533 cc_20w_cflags="+DD64 +O2"
4534 cc_20w_testlist="hpc-hppa-2-0"
4535 path_20w="pa64"
4536 any_20w_testlist="sizeof-long-8"
4537 SPEED_CYCLECOUNTER_OBJ_20w=hppa2w.lo
4538 cyclecounter_size_20w=2
4539 ;;
4540 esac
4541 ;;
4542 esac
4543 ;;
4544
4545
4546 ia64*-*-* | itanium-*-* | itanium2-*-*)
4547 abilist="64"
4548
4549 echo "include_mpn(\`ia64/ia64-defs.m4')" >> $gmp_tmpconfigm4i
4550
4551 SPEED_CYCLECOUNTER_OBJ=ia64.lo
4552 any_32_testlist="sizeof-long-4"
4553
4554 case $host_cpu in
4555 itanium) path="ia64/itanium ia64" ;;
4556 itanium2) path="ia64/itanium2 ia64" ;;
4557 *) path="ia64" ;;
4558 esac
4559
4560 gcc_64_cflags_optlist="tune"
4561 gcc_32_cflags_optlist=$gcc_64_cflags_optlist
4562
4563 # gcc pre-release 3.4 adds -mtune itanium and itanium2
4564 case $host_cpu in
4565 itanium) gcc_cflags_tune="-mtune=itanium" ;;
4566 itanium2) gcc_cflags_tune="-mtune=itanium2" ;;
4567 esac
4568
4569 case $host in
4570 *-*-linux*)
4571 cclist="gcc icc"
4572 icc_cflags="-no-gcc"
4573 icc_cflags_optlist="opt"
4574 # Don't use -O3, it is for "large data sets" and also miscompiles GMP.
4575 # But icc miscompiles GMP at any optimization level, at higher levels
4576 # it miscompiles more files...
4577 icc_cflags_opt="-O2 -O1"
4578 icc_cflags_opt_maybe="-fp-model~precise"
4579 ;;
4580
4581 *-*-hpux*)
4582 # HP cc sometimes gets internal errors if the optimization level is
4583 # too high. GMP_PROG_CC_WORKS detects this, the "_opt" fallbacks
4584 # let us use whatever seems to work.
4585 #
4586 abilist="32 64"
4587 any_64_testlist="sizeof-long-8"
4588
4589 cclist_32="gcc cc"
4590 path_32="ia64"
4591 cc_32_cflags=""
4592 cc_32_cflags_optlist="opt"
4593 cc_32_cflags_opt="+O2 +O1"
4594 gcc_32_cflags="$gcc_cflags -milp32"
4595 limb_32=longlong
4596 SPEED_CYCLECOUNTER_OBJ_32=ia64.lo
4597 cyclecounter_size_32=2
4598
4599 # Must have +DD64 in CPPFLAGS to get the right __LP64__ for headers,
4600 # but also need it in CFLAGS for linking programs, since automake
4601 # only uses CFLAGS when linking, not CPPFLAGS.
4602 # FIXME: Maybe should use cc_64_ldflags for this, but that would
4603 # need GMP_LDFLAGS used consistently by all the programs.
4604 #
4605 cc_64_cflags="+DD64"
4606 cc_64_cppflags="+DD64"
4607 cc_64_cflags_optlist="opt"
4608 cc_64_cflags_opt="+O2 +O1"
4609 gcc_64_cflags="$gcc_cflags -mlp64"
4610 ;;
4611 esac
4612 ;;
4613
4614
4615 # Motorola 68k
4616 #
4617 m68k-*-* | m68[0-9][0-9][0-9]-*-*)
4618 $as_echo "#define HAVE_HOST_CPU_FAMILY_m68k 1" >>confdefs.h
4619
4620
4621 echo "include_mpn(\`m68k/m68k-defs.m4')" >> $gmp_tmpconfigm4i
4622
4623 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4624 gcc_cflags_optlist="arch"
4625
4626 # gcc 2.7.2 knows -m68000, -m68020, -m68030, -m68040.
4627 # gcc 2.95 adds -mcpu32, -m68060.
4628 # FIXME: Maybe "-m68020 -mnobitfield" would suit cpu32 on 2.7.2.
4629 #
4630 case $host_cpu in
4631 m68020) gcc_cflags_arch="-m68020" ;;
4632 m68030) gcc_cflags_arch="-m68030" ;;
4633 m68040) gcc_cflags_arch="-m68040" ;;
4634 m68060) gcc_cflags_arch="-m68060 -m68000" ;;
4635 m68360) gcc_cflags_arch="-mcpu32 -m68000" ;;
4636 *) gcc_cflags_arch="-m68000" ;;
4637 esac
4638
4639 # FIXME: m68k/mc68020 looks like it's ok for cpu32, but this wants to be
4640 # tested. Will need to introduce an m68k/cpu32 if m68k/mc68020 ever uses
4641 # the bitfield instructions.
4642 case $host_cpu in
4643 m680[234]0 | m68360) path="m68k/mc68020 m68k" ;;
4644 *) path="m68k" ;;
4645 esac
4646 ;;
4647
4648
4649 # Motorola 88k
4650 m88k*-*-*)
4651 path="m88k"
4652 ;;
4653 m88110*-*-*)
4654 gcc_cflags="$gcc_cflags -m88110"
4655 path="m88k/mc88110 m88k"
4656 ;;
4657
4658
4659 loongarch64-*-*)
4660 path="loongarch/64"
4661 ;;
4662
4663
4664 # IRIX 5 and earlier can only run 32-bit o32.
4665 #
4666 # IRIX 6 and up always has a 64-bit mips CPU can run n32 or 64. n32 is
4667 # preferred over 64, but only because that's been the default in past
4668 # versions of GMP. The two are equally efficient.
4669 #
4670 # Linux kernel 2.2.13 arch/mips/kernel/irixelf.c has a comment about not
4671 # supporting n32 or 64.
4672 #
4673 # For reference, libtool (eg. 1.5.6) recognises the n32 ABI and knows the
4674 # right options to use when linking (both cc and gcc), so no need for
4675 # anything special from us.
4676 #
4677 mips*-*-*)
4678 abilist="o32"
4679 gcc_cflags_optlist="abi"
4680 gcc_cflags_abi="-mabi=32 -m32"
4681 gcc_testlist="gcc-mips-o32"
4682 path="mips32"
4683 cc_cflags="-O2 -o32" # no -g, it disables all optimizations
4684 # this suits both mips32 and mips64
4685
4686 echo "include_mpn(\`mips32/mips-defs.m4')" >> $gmp_tmpconfigm4i
4687
4688
4689 case $host in
4690 mips64*-*-* | mipsisa64*-*-* | mips*-*-irix[6789]*)
4691 abilist="n32 64 o32"
4692
4693 cclist_n32="gcc cc"
4694 gcc_n32_cflags_optlist="abi"
4695 gcc_n32_cflags="$gcc_cflags"
4696 gcc_n32_cflags_abi="-mabi=n32 -mn32"
4697 cc_n32_cflags="-O2 -n32" # no -g, it disables all optimizations
4698 limb_n32=longlong
4699
4700 cclist_64="gcc cc"
4701 gcc_64_cflags_optlist="abi"
4702 gcc_64_cflags="$gcc_cflags"
4703 gcc_64_cflags_abi="-mabi=64 -m64"
4704 gcc_64_ldflags="-Wc,-mabi=64"
4705 cc_64_cflags="-O2 -64" # no -g, it disables all optimizations
4706 cc_64_ldflags="-Wc,-64"
4707
4708 case $host_cpu in
4709 mips64r[6789]* | mipsisa64r[6789]*)
4710 path_n32="mips64/r6 mips64"
4711 path_64="mips64/r6 mips64"
4712 ;;
4713 *)
4714 path_n32="mips64/hilo mips64"
4715 path_64="mips64/hilo mips64"
4716 ;;
4717 esac
4718
4719 ;;
4720 esac
4721 ;;
4722
4723
4724 # Darwin (powerpc-apple-darwin1.3) has it's hacked gcc installed as cc.
4725 # Our usual "gcc in disguise" detection means gcc_cflags etc here gets
4726 # used.
4727 #
4728 # The darwin pre-compiling preprocessor is disabled with -no-cpp-precomp
4729 # since it doesn't like "__attribute__ ((mode (SI)))" etc in gmp-impl.h,
4730 # and so always ends up running the plain preprocessor anyway. This could
4731 # be done in CPPFLAGS rather than CFLAGS, but there's not many places
4732 # preprocessing is done separately, and this is only a speedup, the normal
4733 # preprocessor gets run if there's any problems.
4734 #
4735 # We used to use -Wa,-mppc with gcc, but can't remember exactly why.
4736 # Presumably it was for old versions of gcc where -mpowerpc doesn't put
4737 # the assembler in the right mode. In any case -Wa,-mppc is not good, for
4738 # instance -mcpu=604 makes recent gcc use -m604 to get access to the
4739 # "fsel" instruction, but a -Wa,-mppc overrides that, making code that
4740 # comes out with fsel fail.
4741 #
4742 # (Note also that the darwin assembler doesn't accept "-mppc", so any
4743 # -Wa,-mppc was used only if it worked. The right flag on darwin would be
4744 # "-arch ppc" or some such, but that's already the default.)
4745 #
4746 powerpc*-*-* | power[3-9]-*-* | power1[0-9]-*-*)
4747 $as_echo "#define HAVE_HOST_CPU_FAMILY_powerpc 1" >>confdefs.h
4748
4749 HAVE_HOST_CPU_FAMILY_powerpc=1
4750 abilist="32"
4751 cclist="gcc cc"
4752 cc_cflags="-O2"
4753 gcc_32_cflags_maybe="-m32"
4754 gcc_cflags_optlist="precomp subtype asm cpu"
4755 gcc_cflags_precomp="-no-cpp-precomp"
4756 gcc_cflags_subtype="-force_cpusubtype_ALL" # for vmx on darwin
4757 gcc_cflags_asm=""
4758 gcc_cflags_cpu=""
4759 vmx_path=""
4760
4761 # grab this object, though it's not a true cycle counter routine
4762 SPEED_CYCLECOUNTER_OBJ=powerpc.lo
4763 cyclecounter_size=0
4764
4765 case $host_cpu in
4766 powerpc740 | powerpc750)
4767 path="powerpc32/750 powerpc32" ;;
4768 powerpc7400 | powerpc7410)
4769 path="powerpc32/vmx powerpc32/750 powerpc32" ;;
4770 powerpc74[45]?)
4771 path="powerpc32/vmx powerpc32" ;;
4772 *)
4773 path="powerpc32" ;;
4774 esac
4775
4776 case $host_cpu in
4777 powerpc401) gcc_cflags_cpu="-mcpu=401" ;;
4778 powerpc403) gcc_cflags_cpu="-mcpu=403"
4779 xlc_cflags_arch="-qarch=403 -qarch=ppc" ;;
4780 powerpc405) gcc_cflags_cpu="-mcpu=405" ;;
4781 powerpc505) gcc_cflags_cpu="-mcpu=505" ;;
4782 powerpc601) gcc_cflags_cpu="-mcpu=601"
4783 xlc_cflags_arch="-qarch=601 -qarch=ppc" ;;
4784 powerpc602) gcc_cflags_cpu="-mcpu=602"
4785 xlc_cflags_arch="-qarch=602 -qarch=ppc" ;;
4786 powerpc603) gcc_cflags_cpu="-mcpu=603"
4787 xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
4788 powerpc603e) gcc_cflags_cpu="-mcpu=603e -mcpu=603"
4789 xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
4790 powerpc604) gcc_cflags_cpu="-mcpu=604"
4791 xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
4792 powerpc604e) gcc_cflags_cpu="-mcpu=604e -mcpu=604"
4793 xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
4794 powerpc620) gcc_cflags_cpu="-mcpu=620" ;;
4795 powerpc630) gcc_cflags_cpu="-mcpu=630"
4796 xlc_cflags_arch="-qarch=pwr3"
4797 cpu_path="p3 p3-p7" ;;
4798 powerpc740) gcc_cflags_cpu="-mcpu=740" ;;
4799 powerpc7400 | powerpc7410)
4800 gcc_cflags_asm="-Wa,-maltivec"
4801 gcc_cflags_cpu="-mcpu=7400 -mcpu=750" ;;
4802 powerpc74[45]?)
4803 gcc_cflags_asm="-Wa,-maltivec"
4804 gcc_cflags_cpu="-mcpu=7450" ;;
4805 powerpc750) gcc_cflags_cpu="-mcpu=750" ;;
4806 powerpc801) gcc_cflags_cpu="-mcpu=801" ;;
4807 powerpc821) gcc_cflags_cpu="-mcpu=821" ;;
4808 powerpc823) gcc_cflags_cpu="-mcpu=823" ;;
4809 powerpc860) gcc_cflags_cpu="-mcpu=860" ;;
4810 powerpc970) gcc_cflags_cpu="-mtune=970"
4811 xlc_cflags_arch="-qarch=970 -qarch=pwr3"
4812 vmx_path="powerpc64/vmx"
4813 cpu_path="p4 p3-p7" ;;
4814 power4) gcc_cflags_cpu="-mcpu=power4"
4815 xlc_cflags_arch="-qarch=pwr4"
4816 cpu_path="p4 p3-p7" ;;
4817 power5) gcc_cflags_cpu="-mcpu=power5 -mcpu=power4"
4818 xlc_cflags_arch="-qarch=pwr5"
4819 cpu_path="p5 p4 p3-p7" ;;
4820 power6) gcc_cflags_cpu="-mcpu=power6"
4821 xlc_cflags_arch="-qarch=pwr6"
4822 cpu_path="p6 p3-p7" ;;
4823 power7) gcc_cflags_cpu="-mcpu=power7 -mcpu=power5"
4824 xlc_cflags_arch="-qarch=pwr7 -qarch=pwr5"
4825 cpu_path="p7 p5 p4 p3-p7" ;;
4826 power8) gcc_cflags_cpu="-mcpu=power8 -mcpu=power7 -mcpu=power5"
4827 xlc_cflags_arch="-qarch=pwr8 -qarch=pwr7 -qarch=pwr5"
4828 cpu_path="p8 p7 p5 p4 p3-p7" ;;
4829 power9) gcc_cflags_cpu="-mcpu=power9 -mcpu=power8 -mcpu=power7 -mcpu=power5"
4830 xlc_cflags_arch="-qarch=pwr9 -qarch=pwr8 -qarch=pwr7 -qarch=pwr5"
4831 cpu_path="p9 p8 p7 p5 p4 p3-p7" ;;
4832 power10) gcc_cflags_cpu="-mcpu=power10 -mcpu=power9 -mcpu=power8 -mcpu=power7 -mcpu=power5"
4833 xlc_cflags_arch="-qarch=pwr10 -qarch=pwr9 -qarch=pwr8 -qarch=pwr7 -qarch=pwr5"
4834 cpu_path="p9 p8 p7 p5 p4 p3-p7" ;;
4835 esac
4836
4837 case $host in
4838 *-*-aix*)
4839 cclist="gcc xlc cc"
4840 gcc_32_cflags_maybe="-maix32"
4841 xlc_cflags="-O2 -qmaxmem=20000"
4842 xlc_cflags_optlist="arch"
4843 xlc_32_cflags_maybe="-q32"
4844 ar_32_flags="-X32"
4845 nm_32_flags="-X32"
4846 esac
4847
4848 case $host in
4849 powerpc64-*-* | powerpc64le-*-* | powerpc620-*-* | powerpc630-*-* | powerpc970-*-* | power[3-9]-*-* | power1[0-9]-*-*)
4850 case $host in
4851 *-*-aix*)
4852 # On AIX a true 64-bit ABI is available.
4853 # Need -Wc to pass object type flags through to the linker.
4854 abilist="mode64 $abilist"
4855 cclist_mode64="gcc xlc"
4856 gcc_mode64_cflags="$gcc_cflags -maix64 -mpowerpc64"
4857 gcc_mode64_cflags_optlist="cpu"
4858 gcc_mode64_ldflags="-Wc,-maix64"
4859 xlc_mode64_cflags="-O2 -q64 -qmaxmem=20000"
4860 xlc_mode64_cflags_optlist="arch"
4861 xlc_mode64_ldflags="-Wc,-q64"
4862 # Must indicate object type to ar and nm
4863 ar_mode64_flags="-X64"
4864 nm_mode64_flags="-X64"
4865 path_mode64=""
4866 p=""
4867 for i in $cpu_path
4868 do path_mode64="${path_mode64}powerpc64/mode64/$i "
4869 path_mode64="${path_mode64}powerpc64/$i "
4870 p="${p} powerpc32/$i "
4871 done
4872 path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64"
4873 path="$p $path"
4874 # grab this object, though it's not a true cycle counter routine
4875 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
4876 cyclecounter_size_mode64=0
4877 ;;
4878 *-*-darwin*)
4879 # On Darwin we can use 64-bit instructions with a longlong limb,
4880 # but the chip still in 32-bit mode.
4881 # In theory this can be used on any OS which knows how to save
4882 # 64-bit registers in a context switch.
4883 #
4884 # Note that we must use -mpowerpc64 with gcc, since the
4885 # longlong.h macros expect limb operands in a single 64-bit
4886 # register, not two 32-bit registers as would be given for a
4887 # long long without -mpowerpc64. In theory we could detect and
4888 # accommodate both styles, but the proper 64-bit registers will
4889 # be fastest and are what we really want to use.
4890 #
4891 # One would think -mpowerpc64 would set the assembler in the right
4892 # mode to handle 64-bit instructions. But for that, also
4893 # -force_cpusubtype_ALL is needed.
4894 #
4895 # Do not use -fast for Darwin, it actually adds options
4896 # incompatible with a shared library.
4897 #
4898 abilist="mode64 mode32 $abilist"
4899 gcc_cflags_opt="-O2 -O1" # will this become used?
4900 cclist_mode32="gcc"
4901 gcc_mode32_cflags_maybe="-m32"
4902 gcc_mode32_cflags="-mpowerpc64"
4903 gcc_mode32_cflags_optlist="subtype cpu opt"
4904 gcc_mode32_cflags_subtype="-force_cpusubtype_ALL"
4905 gcc_mode32_cflags_opt="-O2 -O1"
4906 limb_mode32=longlong
4907 cclist_mode64="gcc"
4908 gcc_mode64_cflags="-m64"
4909 gcc_mode64_cflags_optlist="cpu opt"
4910 gcc_mode64_cflags_opt="-O2 -O1"
4911 path_mode64=""
4912 path_mode32=""
4913 p=""
4914 for i in $cpu_path
4915 do path_mode64="${path_mode64}powerpc64/mode64/$i "
4916 path_mode64="${path_mode64}powerpc64/$i "
4917 path_mode32="${path_mode32}powerpc64/mode32/$i "
4918 path_mode32="${path_mode32}powerpc64/$i "
4919 p="${p} powerpc32/$i "
4920 done
4921 path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64"
4922 path_mode32="${path_mode32}powerpc64/mode32 $vmx_path powerpc64"
4923 path="$p $path"
4924 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
4925 cyclecounter_size_mode64=0
4926 any_mode64_testlist="sizeof-long-8"
4927 ;;
4928 *-*-linux* | *-*-*bsd*)
4929 # On GNU/Linux, assume the processor is in 64-bit mode. Some
4930 # environments have a gcc that is always in 64-bit mode, while
4931 # others require -m64, hence the use of cflags_maybe. The
4932 # sizeof-long-8 test checks the mode is right (for the no option
4933 # case).
4934 #
4935 # -mpowerpc64 is not used, since it should be the default in
4936 # 64-bit mode. (We need its effect for the various longlong.h
4937 # asm macros to be right of course.)
4938 #
4939 # gcc64 was an early port of gcc to 64-bit mode, but should be
4940 # obsolete before too long. We prefer plain gcc when it knows
4941 # 64-bits.
4942 #
4943 abilist="mode64 mode32 $abilist"
4944 cclist_mode32="gcc"
4945 gcc_mode32_cflags_maybe="-m32"
4946 gcc_mode32_cflags="-mpowerpc64"
4947 gcc_mode32_cflags_optlist="cpu opt"
4948 gcc_mode32_cflags_opt="-O2 -O1"
4949 limb_mode32=longlong
4950 cclist_mode64="gcc gcc64"
4951 gcc_mode64_cflags_maybe="-m64"
4952 gcc_mode64_cflags_optlist="cpu opt"
4953 gcc_mode64_cflags_opt="-O2 -O1"
4954 path_mode64=""
4955 path_mode32=""
4956 p=""
4957 for i in $cpu_path
4958 do path_mode64="${path_mode64}powerpc64/mode64/$i "
4959 path_mode64="${path_mode64}powerpc64/$i "
4960 path_mode32="${path_mode32}powerpc64/mode32/$i "
4961 path_mode32="${path_mode32}powerpc64/$i "
4962 p="${p} powerpc32/$i "
4963 done
4964 path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64"
4965 path_mode32="${path_mode32}powerpc64/mode32 $vmx_path powerpc64"
4966 path="$p $path"
4967 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
4968 cyclecounter_size_mode64=0
4969 any_mode64_testlist="sizeof-long-8"
4970 ;;
4971 esac
4972 ;;
4973 esac
4974 ;;
4975
4976
4977 # POWER 32-bit
4978 power-*-* | power[12]-*-* | power2sc-*-*)
4979 $as_echo "#define HAVE_HOST_CPU_FAMILY_power 1" >>confdefs.h
4980
4981 HAVE_HOST_CPU_FAMILY_power=1
4982 cclist="gcc"
4983 if test "$enable_assembly" = "yes" ; then
4984 extra_functions="udiv_w_sdiv"
4985 fi
4986 path="power"
4987
4988 # gcc 2.7.2 knows rios1, rios2, rsc
4989 #
4990 # -mcpu=rios2 can tickle an AIX assembler bug (see GMP_PROG_CC_WORKS) so
4991 # there needs to be a fallback to just -mpower.
4992 #
4993 gcc_cflags_optlist="cpu"
4994 case $host in
4995 power-*-*) gcc_cflags_cpu="-mcpu=power -mpower" ;;
4996 power1-*-*) gcc_cflags_cpu="-mcpu=rios1 -mpower" ;;
4997 power2-*-*) gcc_cflags_cpu="-mcpu=rios2 -mpower" ;;
4998 power2sc-*-*) gcc_cflags_cpu="-mcpu=rsc -mpower" ;;
4999 esac
5000 case $host in
5001 *-*-aix*)
5002 cclist="gcc xlc"
5003 xlc_cflags="-O2 -qarch=pwr -qmaxmem=20000"
5004 ;;
5005 esac
5006 ;;
5007
5008
5009 # RISC-V
5010 riscv64-*-*)
5011 cclist="gcc"
5012 path="riscv/64"
5013 ;;
5014
5015
5016 # IBM System/390 and z/Architecture
5017 s390-*-* | z900esa-*-* | z990esa-*-* | z9esa-*-* | z1[0-6]esa-*-* | z196esa-*-* | s390x-*-* | z900-*-* | z990-*-* | z9-*-* | z1[0-6]-*-* | z196-*-*)
5018 abilist="32"
5019 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
5020 gcc_cflags_optlist="arch"
5021 path="s390_32"
5022 path_64="s390_64"
5023 if test "$enable_assembly" = "yes" ; then
5024 extra_functions="udiv_w_sdiv"
5025 fi
5026 gcc_32_cflags_maybe="-m31"
5027
5028 unset cpu
5029 case $host_cpu in
5030 s390)
5031 ;;
5032 z900 | z900esa)
5033 cpu="z900"
5034 gcc_cflags_arch="-march=$cpu"
5035 extra_functions=""
5036 ;;
5037 z990 | z990esa)
5038 cpu="z990"
5039 gcc_cflags_arch="-march=$cpu"
5040 extra_functions=""
5041 ;;
5042 z9 | z9esa)
5043 cpu="z9"
5044 gcc_cflags_arch="-march=$cpu"
5045 extra_functions=""
5046 ;;
5047 z10 | z10esa)
5048 cpu="z10"
5049 gcc_cflags_arch="-march=$cpu"
5050 extra_functions=""
5051 ;;
5052 z196 | z196esa)
5053 cpu="z196"
5054 gcc_cflags_arch="-march=$cpu"
5055 extra_functions=""
5056 ;;
5057 z13 | z13esa)
5058 cpu="z13"
5059 gcc_cflags_arch="-march=$cpu"
5060 extra_functions=""
5061 path_64="s390_64/z13 $path_64"
5062 ;;
5063 z14 | z14esa)
5064 cpu="z14"
5065 gcc_cflags_arch="-march=$cpu -march=z13"
5066 extra_functions=""
5067 path_64="s390_64/z14 s390_64/z13 $path_64"
5068 ;;
5069 z15 | z15esa)
5070 cpu="z15"
5071 gcc_cflags_arch="-march=$cpu -march=arch13 -march=z14 -march=z13"
5072 extra_functions=""
5073 path_64="s390_64/z15 s390_64/z14 s390_64/z13 $path_64"
5074 ;;
5075 z16 | z16esa)
5076 cpu="z16"
5077 gcc_cflags_arch="-march=$cpu -march=arch14 -march=z15 -march=arch13 -march=z14 -march=z13"
5078 extra_functions=""
5079 path_64="s390_64/z16 s390_64/z15 s390_64/z14 s390_64/z13 $path_64"
5080 ;;
5081 esac
5082
5083 if test x"$cpu" != x ; then
5084 cat >>confdefs.h <<_ACEOF
5085 #define HAVE_HOST_CPU_s390_$cpu 1
5086 _ACEOF
5087
5088 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
5089
5090 path="s390_32/esame s390_32"
5091 fi
5092
5093 case $host in
5094 s390x-*-* | z900-*-* | z990-*-* | z9-*-* | z1[0-6]-*-* | z196-*-*)
5095 abilist="64 32"
5096 cclist_64="gcc"
5097 gcc_64_cflags_optlist="arch"
5098 gcc_64_cflags="$gcc_cflags -m64"
5099 extra_functions=""
5100 ;;
5101 esac
5102 ;;
5103
5104
5105 sh-*-*) path="sh" ;;
5106 sh[2-4]-*-*) path="sh/sh2 sh" ;;
5107
5108
5109 *sparc*-*-*)
5110 # sizeof(long)==4 or 8 is tested, to ensure we get the right ABI. We've
5111 # had various bug reports where users have set CFLAGS for their desired
5112 # mode, but not set our ABI. For some reason it's sparc where this
5113 # keeps coming up, presumably users there are accustomed to driving the
5114 # compiler mode that way. The effect of our testlist setting is to
5115 # reject ABI=64 in favour of ABI=32 if the user has forced the flags to
5116 # 32-bit mode.
5117 #
5118 abilist="32"
5119 cclist="gcc acc cc"
5120 any_testlist="sizeof-long-4"
5121
5122 echo "include_mpn(\`sparc32/sparc-defs.m4')" >> $gmp_tmpconfigm4i
5123
5124
5125 case $host_cpu in
5126 sparcv8 | microsparc | turbosparc)
5127 path="sparc32/v8 sparc32" ;;
5128 supersparc)
5129 path="sparc32/v8/supersparc sparc32/v8 sparc32" ;;
5130 sparc64 | sparcv9* | ultrasparc | ultrasparc[234]*)
5131 path="sparc32/v9 sparc32/v8 sparc32" ;;
5132 ultrasparct[12345])
5133 path="sparc32/ultrasparct1 sparc32/v8 sparc32" ;;
5134 *)
5135 path="sparc32" ;;
5136 esac
5137
5138 # gcc 2.7.2 doesn't know about v9 and doesn't pass -xarch=v8plus to the
5139 # assembler. Add it explicitly since the solaris assembler won't accept
5140 # our sparc32/v9 asm code without it. gas accepts -xarch=v8plus too, so
5141 # it can be in the cflags unconditionally (though gas doesn't need it).
5142 #
5143 # gcc -m32 is needed to force 32-bit mode on a dual-ABI system, but past
5144 # gcc doesn't know that flag, hence cflags_maybe. Note that -m32 cannot
5145 # be done through the optlist since the plain cflags would be run first
5146 # and we don't want to require the default mode (whatever it is) works.
5147 #
5148 # Note it's gcc_32_cflags_maybe and not gcc_cflags_maybe because the
5149 # latter would be used in the 64-bit ABI on systems like "*bsd" where
5150 # abilist="64" only.
5151 #
5152 gcc_32_cflags_maybe="-m32"
5153 gcc_cflags_optlist="cpu asm"
5154
5155 # gcc 2.7.2 knows -mcypress, -msupersparc, -mv8, -msparclite.
5156 # gcc 2.95 knows -mcpu= v7, hypersparc, sparclite86x, f930, f934,
5157 # sparclet, tsc701, v9, ultrasparc. A warning is given that the
5158 # plain -m forms will disappear.
5159 # gcc 3.3 adds ultrasparc3.
5160 #
5161 case $host_cpu in
5162 supersparc*)
5163 gcc_cflags_cpu="-mcpu=supersparc -msupersparc"
5164 gcc_cflags_asm="-Wa,-Av8 -Wa,-xarch=v8";;
5165 sparcv8 | microsparc* | turbosparc | hypersparc*)
5166 gcc_cflags_cpu="-mcpu=v8 -mv8"
5167 gcc_cflags_asm="-Wa,-Av8 -Wa,-xarch=v8";;
5168 sparc64 | sparcv9*)
5169 gcc_cflags_cpu="-mcpu=v9"
5170 gcc_32_cflags_asm="-Wa,-Av8 -Wa,-xarch=v8plus"
5171 gcc_64_cflags_asm="-Wa,-Av9 -Wa,-xarch=v9";;
5172 ultrasparc1 | ultrasparc2*)
5173 gcc_cflags_cpu="-mcpu=ultrasparc -mcpu=v9"
5174 gcc_32_cflags_asm="-Wa,-Av8plusa -Wa,-xarch=v8plusa"
5175 gcc_64_cflags_asm="-Wa,-Av9a -Wa,-xarch=v9a";;
5176 ultrasparc[34])
5177 gcc_cflags_cpu="-mcpu=ultrasparc3 -mcpu=ultrasparc -mcpu=v9"
5178 gcc_32_cflags_asm="-Wa,-Av8plusb -Wa,-xarch=v8plusb"
5179 gcc_64_cflags_asm="-Wa,-Av9b -Wa,-xarch=v9b";;
5180 ultrasparct[12])
5181 gcc_cflags_cpu="-mcpu=niagara -mcpu=v9"
5182 gcc_32_cflags_asm="-Wa,-Av8plusc -Wa,-xarch=v8plusc"
5183 gcc_64_cflags_asm="-Wa,-Av9c -Wa,-xarch=v9c";;
5184 ultrasparct3)
5185 gcc_cflags_cpu="-mcpu=niagara3 -mcpu=niagara -mcpu=v9"
5186 gcc_32_cflags_asm="-Wa,-Av8plusd -Wa,-xarch=v8plusd"
5187 gcc_64_cflags_asm="-Wa,-Av9d -Wa,-xarch=v9d";;
5188 ultrasparct[45])
5189 gcc_cflags_cpu="-mcpu=niagara4 -mcpu=niagara3 -mcpu=niagara -mcpu=v9"
5190 gcc_32_cflags_asm="-Wa,-Av8plusd -Wa,-xarch=v8plusd"
5191 gcc_64_cflags_asm="-Wa,-Av9d -Wa,-xarch=v9d";;
5192 *)
5193 gcc_cflags_cpu="-mcpu=v7 -mcypress"
5194 gcc_cflags_asm="";;
5195 esac
5196
5197 # SunPRO cc and acc, and SunOS bundled cc
5198 case $host in
5199 *-*-solaris* | *-*-sunos*)
5200 # Note no -g, it disables all optimizations.
5201 cc_cflags=
5202 cc_cflags_optlist="opt arch cpu"
5203
5204 # SunOS <= 4 cc doesn't know -xO3, fallback to -O2.
5205 cc_cflags_opt="-xO3 -O2"
5206
5207 # SunOS cc doesn't know -xarch, apparently always generating v7
5208 # code, so make this optional
5209 case $host_cpu in
5210 sparcv8 | microsparc* | supersparc* | turbosparc | hypersparc*)
5211 cc_cflags_arch="-xarch=v8";;
5212 ultrasparct[345])
5213 cc_cflags_arch="-xarch=v8plusd" ;;
5214 sparc64 | sparcv9* | ultrasparc*)
5215 cc_cflags_arch="-xarch=v8plus" ;;
5216 *)
5217 cc_cflags_arch="-xarch=v7" ;;
5218 esac
5219
5220 # SunOS cc doesn't know -xchip and doesn't seem to have an equivalent.
5221 # SunPRO cc 5 recognises -xchip=generic, old, super, super2, micro,
5222 # micro2, hyper, hyper2, powerup, ultra, ultra2, ultra2i.
5223 # SunPRO cc 6 adds -xchip=ultra2e, ultra3cu.
5224 #
5225 case $host_cpu in
5226 supersparc*) cc_cflags_cpu="-xchip=super" ;;
5227 microsparc*) cc_cflags_cpu="-xchip=micro" ;;
5228 turbosparc) cc_cflags_cpu="-xchip=micro2" ;;
5229 hypersparc*) cc_cflags_cpu="-xchip=hyper" ;;
5230 ultrasparc) cc_cflags_cpu="-xchip=ultra" ;;
5231 ultrasparc2) cc_cflags_cpu="-xchip=ultra2 -xchip=ultra" ;;
5232 ultrasparc2i) cc_cflags_cpu="-xchip=ultra2i -xchip=ultra2 -xchip=ultra" ;;
5233 ultrasparc3) cc_cflags_cpu="-xchip=ultra3 -xchip=ultra" ;;
5234 ultrasparc4) cc_cflags_cpu="-xchip=ultra4 -xchip=ultra3 -xchip=ultra" ;;
5235 ultrasparct1) cc_cflags_cpu="-xchip=ultraT1" ;;
5236 ultrasparct2) cc_cflags_cpu="-xchip=ultraT2 -xchip=ultraT1" ;;
5237 ultrasparct3) cc_cflags_cpu="-xchip=ultraT3 -xchip=ultraT2" ;;
5238 ultrasparct4) cc_cflags_cpu="-xchip=T4" ;;
5239 ultrasparct5) cc_cflags_cpu="-xchip=T5 -xchip=T4" ;;
5240 *) cc_cflags_cpu="-xchip=generic" ;;
5241 esac
5242 esac
5243
5244 case $host_cpu in
5245 sparc64 | sparcv9* | ultrasparc*)
5246 case $host in
5247 # Solaris 6 and earlier cannot run ABI=64 since it doesn't save
5248 # registers properly, so ABI=32 is left as the only choice.
5249 #
5250 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
5251
5252 # BSD sparc64 ports are 64-bit-only systems, so ABI=64 is the only
5253 # choice. In fact they need no special compiler flags, gcc -m64
5254 # is the default, but it doesn't hurt to add it. v9 CPUs always
5255 # use the sparc64 port, since the plain 32-bit sparc ports don't
5256 # run on a v9.
5257 #
5258 *-*-*bsd*) abilist="64" ;;
5259
5260 # For all other systems, we try both 64 and 32.
5261 #
5262 # GNU/Linux sparc64 has only recently gained a 64-bit user mode.
5263 # In the past sparc64 meant a v9 cpu, but there were no 64-bit
5264 # operations in user mode. We assume that if "gcc -m64" works
5265 # then the system is suitable. Hopefully even if someone attempts
5266 # to put a new gcc and/or glibc on an old system it won't run.
5267 #
5268 *) abilist="64 32" ;;
5269 esac
5270
5271 case $host_cpu in
5272 ultrasparc | ultrasparc2 | ultrasparc2i)
5273 path_64="sparc64/ultrasparc1234 sparc64" ;;
5274 ultrasparc[34])
5275 path_64="sparc64/ultrasparc34 sparc64/ultrasparc1234 sparc64" ;;
5276 ultrasparct[12])
5277 path_64="sparc64/ultrasparct1 sparc64" ;;
5278 ultrasparct3)
5279 path_64="sparc64/ultrasparct3 sparc64" ;;
5280 ultrasparct[45])
5281 path_64="sparc64/ultrasparct45 sparc64/ultrasparct3 sparc64" ;;
5282 *)
5283 path_64="sparc64"
5284 esac
5285
5286 cclist_64="gcc"
5287 any_64_testlist="sizeof-long-8"
5288
5289 # gcc -mptr64 is probably implied by -m64, but we're not sure if
5290 # this was always so. On Solaris in the past we always used both
5291 # "-m64 -mptr64".
5292 #
5293 # gcc -Wa,-xarch=v9 is thought to be necessary in some cases on
5294 # solaris, but it would seem likely that if gcc is going to generate
5295 # 64-bit code it will have to add that option itself where needed.
5296 # An extra copy of this option should be harmless though, but leave
5297 # it until we're sure. (Might want -xarch=v9a or -xarch=v9b for the
5298 # higher cpu types instead.)
5299 #
5300 gcc_64_cflags="$gcc_cflags -m64"
5301 gcc_64_cflags_maybe="-mptr64"
5302 gcc_64_ldflags="-Wc,-m64"
5303 gcc_64_cflags_optlist="cpu asm"
5304
5305 case $host in
5306 *-*-solaris*)
5307 # Sun cc.
5308 #
5309 # We used to have -fast and some fixup options here, but it
5310 # recurrently caused problems with miscompilation. Of course,
5311 # -fast is documented as miscompiling things for the sake of speed.
5312 #
5313 cclist_64="$cclist_64 cc"
5314 cc_64_cflags_optlist="cpu"
5315 case $host_cpu in
5316 ultrasparct[345])
5317 cc_64_cflags="$cc_64_cflags -xO3 -xarch=v9d" ;;
5318 *)
5319 cc_64_cflags="-xO3 -xarch=v9" ;;
5320 esac
5321 ;;
5322 esac
5323
5324 # using the v9 %tick register
5325 SPEED_CYCLECOUNTER_OBJ_32=sparcv9.lo
5326 SPEED_CYCLECOUNTER_OBJ_64=sparcv9.lo
5327 cyclecounter_size_32=2
5328 cyclecounter_size_64=2
5329 ;;
5330 esac
5331 ;;
5332
5333
5334 # VAX
5335 vax*-*-*elf*)
5336 # Use elf conventions (i.e., '%' register prefix, no global prefix)
5337 #
5338
5339 echo "include_mpn(\`vax/elf.m4')" >> $gmp_tmpconfigm4i
5340
5341 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
5342 path="vax"
5343 if test "$enable_assembly" = "yes" ; then
5344 extra_functions="udiv_w_sdiv"
5345 fi
5346 ;;
5347 vax*-*-*)
5348 # Default to aout conventions (i.e., no register prefix, '_' global prefix)
5349 #
5350 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
5351 path="vax"
5352 if test "$enable_assembly" = "yes" ; then
5353 extra_functions="udiv_w_sdiv"
5354 fi
5355 ;;
5356
5357
5358 # AMD and Intel x86 configurations, including AMD64
5359 #
5360 # Rumour has it gcc -O2 used to give worse register allocation than just
5361 # -O, but lets assume that's no longer true.
5362 #
5363 # -m32 forces 32-bit mode on a bi-arch 32/64 amd64 build of gcc. -m64 is
5364 # the default in such a build (we think), so -m32 is essential for ABI=32.
5365 # This is, of course, done for any $host_cpu, not just x86_64, so we can
5366 # get such a gcc into the right mode to cross-compile to say i486-*-*.
5367 #
5368 # -m32 is not available in gcc 2.95 and earlier, hence cflags_maybe to use
5369 # it when it works. We check sizeof(long)==4 to ensure we get the right
5370 # mode, in case -m32 has failed not because it's an old gcc, but because
5371 # it's a dual 32/64-bit gcc without a 32-bit libc, or whatever.
5372 #
5373 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | jaguar*-*-* | bulldozer*-*-* | piledriver*-*-* | steamroller*-*-* | excavator*-*-* | zen*-*-* | pentium4-*-* | atom-*-* | silvermont-*-* | goldmont-*-* | tremont-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-* | nehalem*-*-* | westmere*-*-* | sandybridge*-*-* | ivybridge*-*-* | haswell*-*-* | broadwell*-*-* | skylake*-*-* | kabylake*-*-* | icelake*-*-* | tigerlake*-*-* | rocketlake*-*-* | alderlake*-*-* | raptorlake*-*-*)
5374 abilist="32"
5375 cclist="gcc icc cc"
5376 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
5377 gcc_32_cflags_maybe="-m32"
5378 icc_cflags="-no-gcc"
5379 icc_cflags_optlist="opt"
5380 icc_cflags_opt="-O3 -O2 -O1"
5381 icc_cflags_opt_maybe="-fp-model~precise"
5382 any_32_testlist="sizeof-long-4"
5383 gcc_cflags_optlist="cpu arch noavx"
5384 CALLING_CONVENTIONS_OBJS='x86call.lo x86check$U.lo'
5385
5386 # Availability of rdtsc is checked at run-time.
5387 SPEED_CYCLECOUNTER_OBJ=pentium.lo
5388
5389 # Set to "yes" below on a per-cpu basis. We do that in order to allow for
5390 # a relevant warning to be output when using a CPU with mulx on a system
5391 # which cannot assemble it.
5392 x86_have_mulx=no
5393
5394 # gcc 2.7.2 only knows i386 and i486, using -m386 or -m486. These
5395 # represent -mcpu= since -m486 doesn't generate 486 specific insns.
5396 # gcc 2.95 adds k6, pentium and pentiumpro, and takes -march= and -mcpu=.
5397 # gcc 3.0 adds athlon.
5398 # gcc 3.1 adds k6-2, k6-3, pentium-mmx, pentium2, pentium3, pentium4,
5399 # athlon-tbird, athlon-4, athlon-xp, athlon-mp.
5400 # gcc 3.2 adds winchip2.
5401 # gcc 3.3 adds winchip-c6.
5402 # gcc 3.3.1 from mandrake adds k8 and knows -mtune.
5403 # gcc 3.4 adds c3, c3-2, k8, and deprecates -mcpu in favour of -mtune.
5404 #
5405 # In gcc 2.95.[0123], -march=pentiumpro provoked a stack slot bug in an
5406 # old version of mpz/powm.c. Seems to be fine with the current code, so
5407 # no need for any restrictions on that option.
5408 #
5409 # -march=pentiumpro can fail if the assembler doesn't know "cmov"
5410 # (eg. solaris 2.8 native "as"), so always have -march=pentium after
5411 # that as a fallback.
5412 #
5413 # -march=pentium4 and -march=k8 enable SSE2 instructions, which may or
5414 # may not be supported by the assembler and/or the OS, and is bad in gcc
5415 # prior to 3.3. The tests will reject these if no good, so fallbacks
5416 # like "-march=pentium4 -mno-sse2" are given to try also without SSE2.
5417 # Note the relevant -march types are listed in the optflags handling
5418 # below, be sure to update there if adding new types emitting SSE2.
5419 #
5420 # -mtune is used at the start of each cpu option list to give something
5421 # gcc 3.4 will use, thereby avoiding warnings from -mcpu. -mcpu forms
5422 # are retained for use by prior gcc. For example pentium has
5423 # "-mtune=pentium -mcpu=pentium ...", the -mtune is for 3.4 and the
5424 # -mcpu for prior. If there's a brand new choice in 3.4 for a chip,
5425 # like k8 for x86_64, then it can be the -mtune at the start, no need to
5426 # duplicate anything.
5427 #
5428 case $host_cpu in
5429 i386*)
5430 gcc_cflags_cpu="-mtune=i386 -mcpu=i386 -m386"
5431 gcc_cflags_arch="-march=i386"
5432 path="x86"
5433 ;;
5434 i486*)
5435 gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486"
5436 gcc_cflags_arch="-march=i486"
5437 path="x86/i486 x86"
5438 ;;
5439 i586 | pentium)
5440 gcc_cflags_cpu="-mtune=pentium -mcpu=pentium -m486"
5441 gcc_cflags_arch="-march=pentium"
5442 path="x86/pentium x86"
5443 ;;
5444 pentiummmx)
5445 gcc_cflags_cpu="-mtune=pentium-mmx -mcpu=pentium-mmx -mcpu=pentium -m486"
5446 gcc_cflags_arch="-march=pentium-mmx -march=pentium"
5447 path="x86/pentium/mmx x86/pentium x86/mmx x86"
5448 ;;
5449 i686 | pentiumpro)
5450 gcc_cflags_cpu="-mtune=pentiumpro -mcpu=pentiumpro -mcpu=i486 -m486"
5451 gcc_cflags_arch="-march=pentiumpro -march=pentium"
5452 path="x86/p6 x86"
5453 ;;
5454 pentium2)
5455 gcc_cflags_cpu="-mtune=pentium2 -mcpu=pentium2 -mcpu=pentiumpro -mcpu=i486 -m486"
5456 gcc_cflags_arch="-march=pentium2 -march=pentiumpro -march=pentium"
5457 path="x86/p6/mmx x86/p6 x86/mmx x86"
5458 ;;
5459 pentium3)
5460 gcc_cflags_cpu="-mtune=pentium3 -mcpu=pentium3 -mcpu=pentiumpro -mcpu=i486 -m486"
5461 gcc_cflags_arch="-march=pentium3 -march=pentiumpro -march=pentium"
5462 path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
5463 ;;
5464 pentiumm)
5465 gcc_cflags_cpu="-mtune=pentium3 -mcpu=pentium3 -mcpu=pentiumpro -mcpu=i486 -m486"
5466 gcc_cflags_arch="-march=pentium3 -march=pentiumpro -march=pentium"
5467 path="x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
5468 ;;
5469 k6)
5470 gcc_cflags_cpu="-mtune=k6 -mcpu=k6 -mcpu=i486 -m486"
5471 gcc_cflags_arch="-march=k6"
5472 path="x86/k6/mmx x86/k6 x86/mmx x86"
5473 ;;
5474 k62)
5475 gcc_cflags_cpu="-mtune=k6-2 -mcpu=k6-2 -mcpu=k6 -mcpu=i486 -m486"
5476 gcc_cflags_arch="-march=k6-2 -march=k6"
5477 path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86/mmx x86"
5478 ;;
5479 k63)
5480 gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486"
5481 gcc_cflags_arch="-march=k6-3 -march=k6"
5482 path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86/mmx x86"
5483 ;;
5484 geode)
5485 gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486"
5486 gcc_cflags_arch="-march=k6-3 -march=k6"
5487 path="x86/geode x86/k6/k62mmx x86/k6/mmx x86/k6 x86/mmx x86"
5488 ;;
5489 athlon)
5490 # Athlon instruction costs are close to P6 (3 cycle load latency,
5491 # 4-6 cycle mul, 40 cycle div, pairable adc, etc) so if gcc doesn't
5492 # know athlon (eg. 2.95.2 doesn't) then fall back on pentiumpro.
5493 gcc_cflags_cpu="-mtune=athlon -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
5494 gcc_cflags_arch="-march=athlon -march=pentiumpro -march=pentium"
5495 path="x86/k7/mmx x86/k7 x86/mmx x86"
5496 ;;
5497 i786 | pentium4)
5498 # pentiumpro is the primary fallback when gcc doesn't know pentium4.
5499 # This gets us cmov to eliminate branches. Maybe "athlon" would be
5500 # a possibility on gcc 3.0.
5501 #
5502 gcc_cflags_cpu="-mtune=pentium4 -mcpu=pentium4 -mcpu=pentiumpro -mcpu=i486 -m486"
5503 gcc_cflags_arch="-march=pentium4 -march=pentium4~-mno-sse2 -march=pentiumpro -march=pentium"
5504 gcc_64_cflags_cpu="-mtune=nocona"
5505 path="x86/pentium4/sse2 x86/pentium4/mmx x86/pentium4 x86/mmx x86"
5506 path_64="x86_64/pentium4 x86_64"
5507 ;;
5508 viac32)
5509 # Not sure of the best fallbacks here for -mcpu.
5510 # c3-2 has sse and mmx, so pentium3 is good for -march.
5511 gcc_cflags_cpu="-mtune=c3-2 -mcpu=c3-2 -mcpu=i486 -m486"
5512 gcc_cflags_arch="-march=c3-2 -march=pentium3 -march=pentiumpro -march=pentium"
5513 path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
5514 ;;
5515 viac3*)
5516 # Not sure of the best fallbacks here.
5517 gcc_cflags_cpu="-mtune=c3 -mcpu=c3 -mcpu=i486 -m486"
5518 gcc_cflags_arch="-march=c3 -march=pentium-mmx -march=pentium"
5519 path="x86/pentium/mmx x86/pentium x86/mmx x86"
5520 ;;
5521 athlon64 | k8 | x86_64)
5522 gcc_cflags_cpu="-mtune=k8 -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
5523 gcc_cflags_arch="-march=k8 -march=k8~-mno-sse2 -march=athlon -march=pentiumpro -march=pentium"
5524 path="x86/k8 x86/k7/mmx x86/k7 x86/mmx x86"
5525 path_64="x86_64/k8 x86_64"
5526 ;;
5527 k10)
5528 gcc_cflags_cpu="-mtune=amdfam10 -mtune=k8"
5529 gcc_cflags_arch="-march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5530 path="x86/k10 x86/k8 x86/k7/mmx x86/k7 x86/mmx x86"
5531 path_64="x86_64/k10 x86_64/k8 x86_64"
5532 ;;
5533 bobcat)
5534 gcc_cflags_cpu="-mtune=btver1 -mtune=amdfam10 -mtune=k8"
5535 gcc_cflags_arch="-march=btver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5536 path="x86/bt1 x86/k7/mmx x86/k7 x86/mmx x86"
5537 path_64="x86_64/bt1 x86_64/k10 x86_64/k8 x86_64"
5538 ;;
5539 jaguar | jaguarnoavx)
5540 gcc_cflags_cpu="-mtune=btver2 -mtune=btver1 -mtune=amdfam10 -mtune=k8"
5541 gcc_cflags_arch="-march=btver2 -march=btver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5542 path="x86/bt2 x86/bt1 x86/k7/mmx x86/k7 x86/mmx x86"
5543 path_64="x86_64/bt2 x86_64/bt1 x86_64/k10 x86_64/k8 x86_64"
5544 ;;
5545 bulldozer | bd1 | bulldozernoavx | bd1noavx)
5546 gcc_cflags_cpu="-mtune=bdver1 -mtune=amdfam10 -mtune=k8"
5547 gcc_cflags_arch="-march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5548 path="x86/bd1 x86/k7/mmx x86/k7 x86/mmx x86"
5549 path_64="x86_64/bd1 x86_64/k10 x86_64/k8 x86_64"
5550 ;;
5551 piledriver | bd2 | piledrivernoavx | bd2noavx)
5552 gcc_cflags_cpu="-mtune=bdver2 -mtune=bdver1 -mtune=amdfam10 -mtune=k8"
5553 gcc_cflags_arch="-march=bdver2 -march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5554 path="x86/bd2 x86/bd1 x86/k7/mmx x86/k7 x86/mmx x86"
5555 path_64="x86_64/bd2 x86_64/bd1 x86_64/k10 x86_64/k8 x86_64"
5556 ;;
5557 steamroller | bd3 | steamrollernoavx | bd3noavx)
5558 gcc_cflags_cpu="-mtune=bdver3 -mtune=bdver2 -mtune=bdver1 -mtune=amdfam10 -mtune=k8"
5559 gcc_cflags_arch="-march=bdver3 -march=bdver2 -march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5560 path="x86/bd3 x86/bd2 x86/bd1 x86/k7/mmx x86/k7 x86/mmx x86"
5561 path_64="x86_64/bd3 x86_64/bd2 x86_64/bd1 x86_64/k10 x86_64/k8 x86_64"
5562 ;;
5563 excavator | bd4 | excavatornoavx | bd4noavx)
5564 gcc_cflags_cpu="-mtune=bdver4 -mtune=bdver3 -mtune=bdver2 -mtune=bdver1 -mtune=amdfam10 -mtune=k8"
5565 gcc_cflags_arch="-march=bdver4 -march=bdver3 -march=bdver2 -march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5566 path="x86/bd4 x86/bd3 x86/bd2 x86/bd1 x86/k7/mmx x86/k7 x86/mmx x86"
5567 path_64="x86_64/bd4 x86_64/bd3 x86_64/bd2 x86_64/bd1 x86_64/k10 x86_64/k8 x86_64"
5568 x86_have_mulx=yes
5569 ;;
5570 zen | zennoavx)
5571 gcc_cflags_cpu="-mtune=znver1 -mtune=amdfam10 -mtune=k8"
5572 gcc_cflags_arch="-march=znver1 -march=amdfam10 -march=k8"
5573 path="x86/k7/mmx x86/k7 x86/mmx x86"
5574 x86_have_mulx=yes
5575 path_64="x86_64/zen x86_64"
5576 ;;
5577 zen2 | zen2noavx)
5578 gcc_cflags_cpu="-mtune=znver2 -mtune=znver1 -mtune=amdfam10 -mtune=k8"
5579 gcc_cflags_arch="-march=znver2 -march=znver1 -march=amdfam10 -march=k8"
5580 path="x86/k7/mmx x86/k7 x86/mmx x86"
5581 x86_have_mulx=yes
5582 path_64="x86_64/zen2 x86_64/zen x86_64"
5583 ;;
5584 zen3 | zen3noavx | zen4 | zen4noavx)
5585 gcc_cflags_cpu="-mtune=znver3 -mtune=znver2 -mtune=znver1 -mtune=amdfam10 -mtune=k8"
5586 gcc_cflags_arch="-march=znver3 -march=znver2 -march=znver1 -march=amdfam10 -march=k8"
5587 path="x86/k7/mmx x86/k7 x86/mmx x86"
5588 x86_have_mulx=yes
5589 path_64="x86_64/zen3 x86_64/zen2 x86_64/zen x86_64"
5590 ;;
5591 core2)
5592 gcc_cflags_cpu="-mtune=core2 -mtune=k8"
5593 gcc_cflags_arch="-march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
5594 path="x86/core2 x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
5595 path_64="x86_64/core2 x86_64"
5596 ;;
5597 corei | coreinhm | coreiwsm | nehalem | westmere)
5598 gcc_cflags_cpu="-mtune=nehalem -mtune=corei7 -mtune=core2 -mtune=k8"
5599 gcc_cflags_arch="-march=nehalem -march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
5600 path="x86/coreinhm x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
5601 path_64="x86_64/coreinhm x86_64/core2 x86_64"
5602 ;;
5603 coreisbr | coreisbrnoavx | coreiibr | coreiibrnoavx | \
5604 sandybridge | sandybridgenoavx | ivybridge | ivybridgenoavx)
5605 gcc_cflags_cpu="-mtune=sandybridge -mtune=corei7 -mtune=core2"
5606 gcc_cflags_arch="-march=sandybridge -march=corei7 -march=core2 -march=core2~-mno-sse2"
5607 path="x86/coreisbr x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
5608 path_64="x86_64/coreisbr x86_64/coreinhm x86_64/core2 x86_64"
5609 ;;
5610 coreihwl | coreihwlnoavx | haswell | haswellnoavx)
5611 gcc_cflags_cpu="-mtune=haswell -mtune=corei7 -mtune=core2"
5612 gcc_cflags_arch="-march=haswell -march=corei7 -march=core2 -march=core2~-mno-sse2"
5613 path="x86/coreihwl x86/coreisbr x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
5614 path_64="x86_64/coreihwl x86_64/coreisbr x86_64/coreinhm x86_64/core2 x86_64"
5615 x86_have_mulx=yes
5616 ;;
5617 coreibwl | coreibwlnoavx | broadwell | broadwellnoavx)
5618 gcc_cflags_cpu="-mtune=broadwell -mtune=haswell -mtune=corei7 -mtune=core2"
5619 gcc_cflags_arch="-march=broadwell -march=haswell -march=corei7 -march=core2 -march=core2~-mno-sse2"
5620 path="x86/coreihwl x86/coreisbr x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
5621 path_64="x86_64/coreibwl x86_64/coreihwl x86_64/coreisbr x86_64/coreinhm x86_64/core2 x86_64"
5622 # extra_functions_64="missing" # enable for bmi2/adx simulation
5623 x86_have_mulx=yes
5624 ;;
5625 skylake | skylakenoavx | kabylake | kabylakenoavx)
5626 gcc_cflags_cpu="-mtune=skylake -mtune=broadwell -mtune=haswell -mtune=corei7 -mtune=core2"
5627 # Don't pass -march=skylake for now as then some compilers emit AVX512.
5628 gcc_cflags_arch="-march=broadwell -march=haswell -march=corei7 -march=core2 -march=core2~-mno-sse2"
5629 path="x86/coreihwl x86/coreisbr x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
5630 path_64="x86_64/skylake x86_64/coreibwl x86_64/coreihwl x86_64/coreisbr x86_64/coreinhm x86_64/core2 x86_64"
5631 # extra_functions_64="missing" # enable for bmi2/adx simulation
5632 x86_have_mulx=yes
5633 ;;
5634 icelake | icelakenoavx | tigerlake | tigerlakenoavx | \
5635 rocketlake | rocketlakenoavx)
5636 gcc_cflags_cpu="-mtune=icelake-client -mtune=skylake -mtune=broadwell -mtune=haswell"
5637 gcc_cflags_arch="-march=icelake-client -march=skylake -march=broadwell -march=haswell"
5638 path="x86/coreihwl x86/coreisbr x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
5639 path_64="x86_64/icelake x86_64/skylake x86_64/coreibwl x86_64/coreihwl x86_64/coreisbr x86_64/coreinhm x86_64/core2 x86_64"
5640 # extra_functions_64="missing" # enable for bmi2/adx simulation
5641 x86_have_mulx=yes
5642 ;;
5643 alderlake | alderlakenoavx | raptorlake | raptorlakenoavx)
5644 gcc_cflags_cpu="-mtune=alderlake -mtune=icelake-client -mtune=skylake -mtune=broadwell -mtune=haswell"
5645 gcc_cflags_arch="-march=alderlake -march=skylake -march=broadwell -march=haswell"
5646 path="x86/coreihwl x86/coreisbr x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
5647 path_64="x86_64/alderlake x86_64/icelake x86_64/skylake x86_64/coreibwl x86_64/coreihwl x86_64/coreisbr x86_64/coreinhm x86_64/core2 x86_64"
5648 # extra_functions_64="missing" # enable for bmi2/adx simulation
5649 x86_have_mulx=yes
5650 ;;
5651 atom) # in-order pipeline atom
5652 gcc_cflags_cpu="-mtune=atom -mtune=pentium3"
5653 gcc_cflags_arch="-march=atom -march=pentium3"
5654 path="x86/atom/sse2 x86/atom/mmx x86/atom x86/mmx x86"
5655 path_64="x86_64/atom x86_64"
5656 ;;
5657 silvermont) # out-of-order pipeline atom
5658 gcc_cflags_cpu="-mtune=slm -mtune=atom -mtune=pentium3"
5659 gcc_cflags_arch="-march=slm -march=atom -march=pentium3"
5660 path="x86/silvermont x86/atom/sse2 x86/atom/mmx x86/atom x86/mmx x86"
5661 path_64="x86_64/silvermont x86_64/atom x86_64"
5662 ;;
5663 goldmont) # out-of-order pipeline atom
5664 gcc_cflags_cpu="-mtune=slm -mtune=atom -mtune=pentium3"
5665 gcc_cflags_arch="-march=slm -march=atom -march=pentium3"
5666 path="x86/goldmont x86/atom/sse2 x86/atom/mmx x86/atom x86/mmx x86"
5667 path_64="x86_64/goldmont x86_64/silvermont x86_64/atom x86_64"
5668 ;;
5669 tremont) # out-of-order pipeline atom
5670 gcc_cflags_cpu="-mtune=slm -mtune=atom -mtune=pentium3"
5671 gcc_cflags_arch="-march=slm -march=atom -march=pentium3"
5672 path="x86/goldmont x86/atom/sse2 x86/atom/mmx x86/atom x86/mmx x86"
5673 path_64="x86_64/tremont x86_64/goldmont x86_64/silvermont x86_64/atom x86_64"
5674 ;;
5675 nano)
5676 gcc_cflags_cpu="-mtune=nano"
5677 gcc_cflags_arch="-march=nano"
5678 path="x86/nano x86/mmx x86"
5679 path_64="x86_64/nano x86_64"
5680 ;;
5681 *)
5682 gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486"
5683 gcc_cflags_arch="-march=i486"
5684 path="x86"
5685 path_64="x86_64"
5686 ;;
5687 esac
5688
5689 case $host in
5690 # Disable AVX if the CPU part tells us AVX is unavailable, but also
5691 # unconditionally for NetBSD where they don't work but OSXSAVE is set
5692 # to claim the contrary.
5693 *noavx-*-* | *-*-netbsd*)
5694 gcc_cflags_noavx="-mno-avx"
5695
5696 echo "define(<GMP_AVX_NOT_REALLY_AVAILABLE>,1)" >> $gmp_tmpconfigm4
5697
5698 ;;
5699 esac
5700
5701 case $host in
5702 athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | jaguar*-*-* | bulldozer*-*-* | piledriver*-*-* | steamroller*-*-* | excavator*-*-* | zen*-*-* | pentium4-*-* | atom-*-* | silvermont-*-* | goldmont-*-* | tremont-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-* | nehalem*-*-* | westmere*-*-* | sandybridge*-*-* | ivybridge*-*-* | haswell*-*-* | broadwell*-*-* | skylake*-*-* | kabylake*-*-* | icelake*-*-* | tigerlake*-*-* | rocketlake*-*-* | alderlake*-*-* | raptorlake*-*-*)
5703 cclist_64="gcc cc"
5704 gcc_64_cflags="$gcc_cflags -m64"
5705 gcc_64_cflags_optlist="cpu arch noavx"
5706 CALLING_CONVENTIONS_OBJS_64='amd64call.lo amd64check$U.lo'
5707 SPEED_CYCLECOUNTER_OBJ_64=x86_64.lo
5708 cyclecounter_size_64=2
5709
5710 cclist_x32="gcc cc"
5711 gcc_x32_cflags="$gcc_cflags -mx32"
5712 gcc_x32_cflags_optlist="$gcc_64_cflags_optlist"
5713 CALLING_CONVENTIONS_OBJS_x32="$CALLING_CONVENTIONS_OBJS_64"
5714 SPEED_CYCLECOUNTER_OBJ_x32="$SPEED_CYCLECOUNTER_OBJ_64"
5715 cyclecounter_size_x32="$cyclecounter_size_64"
5716 path_x32="$path_64"
5717 limb_x32=longlong
5718 any_x32_testlist="sizeof-long-4"
5719
5720 abilist="64 x32 32"
5721 if test "$enable_assembly" = "yes" ; then
5722 extra_functions_64="$extra_functions_64 invert_limb_table"
5723 extra_functions_x32=$extra_functions_64
5724 fi
5725
5726 case $host in
5727 *-*-solaris*)
5728 # Sun cc.
5729 cc_64_cflags="-xO3 -m64"
5730 ;;
5731 *-*-mingw* | *-*-msys | *-*-cygwin)
5732 limb_64=longlong
5733 CALLING_CONVENTIONS_OBJS_64=""
5734
5735 $as_echo "#define HOST_DOS64 1" >>confdefs.h
5736
5737 GMP_NONSTD_ABI_64=DOS64
5738 ;;
5739 esac
5740 ;;
5741 esac
5742 ;;
5743
5744
5745 # Special CPU "none" used to select generic C, now this is obsolete.
5746 none-*-*)
5747 enable_assembly=no
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the \"none\" host is obsolete, use --disable-assembly" >&5
5749 $as_echo "$as_me: WARNING: the \"none\" host is obsolete, use --disable-assembly" >&2;}
5750 ;;
5751
5752 esac
5753
5754 # mingw can be built by the cygwin gcc if -mno-cygwin is added. For
5755 # convenience add this automatically if it works. Actual mingw gcc accepts
5756 # -mno-cygwin too, but of course is the default. mingw only runs on the
5757 # x86s, but allow any CPU here so as to catch "none" too.
5758 #
5759 case $host in
5760 *-*-mingw* | *-*-msys)
5761 gcc_cflags_optlist="$gcc_cflags_optlist nocygwin"
5762 gcc_cflags_nocygwin="-mno-cygwin"
5763 ;;
5764 esac
5765
5766
5767 CFLAGS_or_unset=${CFLAGS-'(unset)'}
5768 CPPFLAGS_or_unset=${CPPFLAGS-'(unset)'}
5769
5770 cat >&5 <<EOF
5771 User:
5772 ABI=$ABI
5773 CC=$CC
5774 CFLAGS=$CFLAGS_or_unset
5775 CPPFLAGS=$CPPFLAGS_or_unset
5776 MPN_PATH=$MPN_PATH
5777 GMP:
5778 abilist=$abilist
5779 cclist=$cclist
5780 EOF
5781
5782
5783 test_CFLAGS=${CFLAGS+set}
5784 test_CPPFLAGS=${CPPFLAGS+set}
5785
5786 for abi in $abilist; do
5787 abi_last="$abi"
5788 done
5789
5790 # If the user specifies an ABI then it must be in $abilist, after that
5791 # $abilist is restricted to just that choice.
5792 #
5793 if test -n "$ABI"; then
5794 found=no
5795 for abi in $abilist; do
5796 if test $abi = "$ABI"; then found=yes; break; fi
5797 done
5798 if test $found = no; then
5799 as_fn_error $? "ABI=$ABI is not among the following valid choices: $abilist" "$LINENO" 5
5800 fi
5801 abilist="$ABI"
5802 fi
5803
5804 found_compiler=no
5805
5806 for abi in $abilist; do
5807
5808 echo "checking ABI=$abi"
5809
5810 # Suppose abilist="64 32", then for abi=64, will have abi1="_64" and
5811 # abi2="_64". For abi=32, will have abi1="_32" and abi2="". This is how
5812 # $gcc_cflags becomes a fallback for $gcc_32_cflags (the last in the
5813 # abilist), but there's no fallback for $gcc_64_cflags.
5814 #
5815 abi1=`echo _$abi | sed 's/[.]//g'`
5816 if test $abi = $abi_last; then abi2=; else abi2="$abi1"; fi
5817
5818 # Compiler choices under this ABI
5819 eval cclist_chosen=\"\$cclist$abi1\"
5820 test -n "$cclist_chosen" || eval cclist_chosen=\"\$cclist$abi2\"
5821
5822 # If there's a user specified $CC then don't use a list for
5823 # $cclist_chosen, just a single value for $ccbase.
5824 #
5825 if test -n "$CC"; then
5826
5827 # The first word of $CC, stripped of any directory. For instance
5828 # CC="/usr/local/bin/gcc -pipe" will give "gcc".
5829 #
5830 for ccbase in $CC; do break; done
5831 ccbase=`echo $ccbase | sed 's:.*/::'`
5832
5833 # If this $ccbase is in $cclist_chosen then it's a compiler we know and
5834 # we can do flags defaulting with it. If not, then $cclist_chosen is
5835 # set to "unrecognised" so no default flags are used.
5836 #
5837 # "unrecognised" is used to avoid bad effects with eval if $ccbase has
5838 # non-symbol characters. For instance ccbase=my+cc would end up with
5839 # something like cflags="$my+cc_cflags" which would give
5840 # cflags="+cc_cflags" rather than the intended empty string for an
5841 # unknown compiler.
5842 #
5843 found=unrecognised
5844 for i in $cclist_chosen; do
5845 if test "$ccbase" = $i; then
5846 found=$ccbase
5847 break
5848 fi
5849 done
5850 cclist_chosen=$found
5851 fi
5852
5853 for ccbase in $cclist_chosen; do
5854
5855 # When cross compiling, look for a compiler with the $host_alias as a
5856 # prefix, the same way that AC_CHECK_TOOL does. But don't do this to a
5857 # user-selected $CC.
5858 #
5859 # $cross_compiling will be yes/no/maybe at this point. Do the host
5860 # prefixing for "maybe" as well as "yes".
5861 #
5862 if test "$cross_compiling" != no && test -z "$CC"; then
5863 cross_compiling_prefix="${host_alias}-"
5864 fi
5865
5866 for ccprefix in $cross_compiling_prefix ""; do
5867
5868 cc="$CC"
5869 test -n "$cc" || cc="$ccprefix$ccbase"
5870
5871 # If the compiler is gcc but installed under another name, then change
5872 # $ccbase so as to use the flags we know for gcc. This helps for
5873 # instance when specifying CC=gcc272 on Debian GNU/Linux, or the
5874 # native cc which is really gcc on NeXT or MacOS-X.
5875 #
5876 # FIXME: There's a slight misfeature here. If cc is actually gcc but
5877 # gcc is not a known compiler under this $abi then we'll end up
5878 # testing it with no flags and it'll work, but chances are it won't be
5879 # in the right mode for the ABI we desire. Let's quietly hope this
5880 # doesn't happen.
5881 #
5882 if test $ccbase != gcc; then
5883 cat >conftest.c <<EOF
5884 #if ! defined (__GNUC__) || defined (__INTEL_COMPILER)
5885 choke me
5886 #endif
5887 EOF
5888 gmp_compile="$cc -c conftest.c >&5"
5889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5890 (eval $gmp_compile) 2>&5
5891 ac_status=$?
5892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5893 test $ac_status = 0; }; then
5894 rm -f conftest*
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $cc is gcc" >&5
5896 $as_echo_n "checking whether $cc is gcc... " >&6; }
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5898 $as_echo "yes" >&6; }
5899 ccbase=gcc
5900 else
5901 rm -f conftest*
5902 :
5903 fi
5904
5905 fi
5906
5907 # Similarly if the compiler is IBM xlc but invoked as cc or whatever
5908 # then change $ccbase and make the default xlc flags available.
5909 if test $ccbase != xlc; then
5910 gmp_command="$cc 2>&1 | grep xlc >/dev/null"
5911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_command\""; } >&5
5912 (eval $gmp_command) 2>&5
5913 ac_status=$?
5914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5915 test $ac_status = 0; }; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $cc is xlc" >&5
5917 $as_echo_n "checking whether $cc is xlc... " >&6; }
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5919 $as_echo "yes" >&6; }
5920 ccbase=xlc
5921 else
5922 :
5923 fi
5924
5925 fi
5926
5927 # acc was Sun's first unbundled compiler back in the SunOS days, or
5928 # something like that, but today its man page says it's not meant to
5929 # be used directly (instead via /usr/ucb/cc). The options are pretty
5930 # much the same as the main SunPRO cc, so share those configs.
5931 #
5932 case $host in
5933 *sparc*-*-solaris* | *sparc*-*-sunos*)
5934 if test "$ccbase" = acc; then ccbase=cc; fi ;;
5935 esac
5936
5937 for tmp_cflags_maybe in yes no; do
5938 eval cflags=\"\$${ccbase}${abi1}_cflags\"
5939 test -n "$cflags" || eval cflags=\"\$${ccbase}${abi2}_cflags\"
5940
5941 if test "$tmp_cflags_maybe" = yes; then
5942 # don't try cflags_maybe when the user set CFLAGS
5943 if test "$test_CFLAGS" = set; then continue; fi
5944 eval cflags_maybe=\"\$${ccbase}${abi1}_cflags_maybe\"
5945 test -n "$cflags_maybe" || eval cflags_maybe=\"\$${ccbase}${abi2}_cflags_maybe\"
5946 # don't try cflags_maybe if there's nothing set
5947 if test -z "$cflags_maybe"; then continue; fi
5948 cflags="$cflags_maybe $cflags"
5949 fi
5950
5951 # Any user CFLAGS, even an empty string, takes precedence
5952 if test "$test_CFLAGS" = set; then cflags=$CFLAGS; fi
5953
5954 # Any user CPPFLAGS, even an empty string, takes precedence
5955 eval cppflags=\"\$${ccbase}${abi1}_cppflags\"
5956 test -n "$cppflags" || eval cppflags=\"\$${ccbase}${abi2}_cppflags\"
5957 if test "$test_CPPFLAGS" = set; then cppflags=$CPPFLAGS; fi
5958
5959 # --enable-profiling adds -p/-pg even to user-specified CFLAGS.
5960 # This is convenient, but it's perhaps a bit naughty to modify user
5961 # CFLAGS.
5962 case "$enable_profiling" in
5963 prof) cflags="$cflags -p" ;;
5964 gprof) cflags="$cflags -pg" ;;
5965 instrument) cflags="$cflags -finstrument-functions" ;;
5966 esac
5967
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags" >&5
5969 $as_echo_n "checking compiler $cc $cflags $cppflags... " >&6; }
5970 gmp_prog_cc_works=yes
5971
5972 # first see a simple "main()" works, then go on to other checks
5973 if test "$gmp_prog_cc_works" = yes; then
5974 # remove anything that might look like compiler output to our "||" expression
5975 rm -f conftest* a.out b.out a.exe a_out.exe
5976 cat >conftest.c <<EOF
5977
5978 int main () { return 0; }
5979 EOF
5980 echo "Test compile: " >&5
5981 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5983 (eval $gmp_compile) 2>&5
5984 ac_status=$?
5985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5986 test $ac_status = 0; }; then
5987 cc_works_part=yes
5988 if test "$cross_compiling" = no; then
5989 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5991 (eval $ac_try) 2>&5
5992 ac_status=$?
5993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5994 test $ac_status = 0; }; }; then :;
5995 else
5996 cc_works_part=norun
5997 fi
5998 fi
5999 else
6000 cc_works_part=no
6001 fi
6002 if test "$cc_works_part" != yes; then
6003 echo "failed program was:" >&5
6004 cat conftest.c >&5
6005 fi
6006 rm -f conftest* a.out b.out a.exe a_out.exe
6007 case $cc_works_part in
6008 yes)
6009
6010 ;;
6011 no)
6012 gmp_prog_cc_works="no"
6013 ;;
6014 norun)
6015 gmp_prog_cc_works="no, program does not run"
6016 ;;
6017 esac
6018 fi
6019
6020
6021
6022
6023 if test "$gmp_prog_cc_works" = yes; then
6024 # remove anything that might look like compiler output to our "||" expression
6025 rm -f conftest* a.out b.out a.exe a_out.exe
6026 cat >conftest.c <<EOF
6027 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
6028 (without -maix64), hence detecting an unusable compiler */
6029 void *g() { return (void *) 0; }
6030 void *f() { return g(); }
6031
6032 int main () { return 0; }
6033 EOF
6034 echo "Test compile: function pointer return" >&5
6035 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6037 (eval $gmp_compile) 2>&5
6038 ac_status=$?
6039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6040 test $ac_status = 0; }; then
6041 cc_works_part=yes
6042 if test "$cross_compiling" = no; then
6043 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6045 (eval $ac_try) 2>&5
6046 ac_status=$?
6047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6048 test $ac_status = 0; }; }; then :;
6049 else
6050 cc_works_part=norun
6051 fi
6052 fi
6053 else
6054 cc_works_part=no
6055 fi
6056 if test "$cc_works_part" != yes; then
6057 echo "failed program was:" >&5
6058 cat conftest.c >&5
6059 fi
6060 rm -f conftest* a.out b.out a.exe a_out.exe
6061 case $cc_works_part in
6062 yes)
6063
6064 ;;
6065 no)
6066 gmp_prog_cc_works="no, function pointer return"
6067 ;;
6068 norun)
6069 gmp_prog_cc_works="no, function pointer return, program does not run"
6070 ;;
6071 esac
6072 fi
6073
6074
6075
6076
6077 if test "$gmp_prog_cc_works" = yes; then
6078 # remove anything that might look like compiler output to our "||" expression
6079 rm -f conftest* a.out b.out a.exe a_out.exe
6080 cat >conftest.c <<EOF
6081 /* The following provokes an invalid instruction syntax from i386 gcc
6082 -march=pentiumpro on Solaris 2.8. The native sun assembler
6083 requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
6084 least) doesn't know. */
6085 int n;
6086 int cmov () { return (n >= 0 ? n : 0); }
6087
6088 int main () { return 0; }
6089 EOF
6090 echo "Test compile: cmov instruction" >&5
6091 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6093 (eval $gmp_compile) 2>&5
6094 ac_status=$?
6095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6096 test $ac_status = 0; }; then
6097 cc_works_part=yes
6098 if test "$cross_compiling" = no; then
6099 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6101 (eval $ac_try) 2>&5
6102 ac_status=$?
6103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6104 test $ac_status = 0; }; }; then :;
6105 else
6106 cc_works_part=norun
6107 fi
6108 fi
6109 else
6110 cc_works_part=no
6111 fi
6112 if test "$cc_works_part" != yes; then
6113 echo "failed program was:" >&5
6114 cat conftest.c >&5
6115 fi
6116 rm -f conftest* a.out b.out a.exe a_out.exe
6117 case $cc_works_part in
6118 yes)
6119
6120 ;;
6121 no)
6122 gmp_prog_cc_works="no, cmov instruction"
6123 ;;
6124 norun)
6125 gmp_prog_cc_works="no, cmov instruction, program does not run"
6126 ;;
6127 esac
6128 fi
6129
6130
6131
6132
6133 if test "$gmp_prog_cc_works" = yes; then
6134 # remove anything that might look like compiler output to our "||" expression
6135 rm -f conftest* a.out b.out a.exe a_out.exe
6136 cat >conftest.c <<EOF
6137 /* The following provokes a linker invocation problem with gcc 3.0.3
6138 on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630
6139 option causes gcc to incorrectly select the 32-bit libgcc.a, not
6140 the 64-bit one, and consequently it misses out on the __fixunsdfdi
6141 helper (double -> uint64 conversion). */
6142 double d;
6143 unsigned long gcc303 () { return (unsigned long) d; }
6144
6145 int main () { return 0; }
6146 EOF
6147 echo "Test compile: double -> ulong conversion" >&5
6148 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6150 (eval $gmp_compile) 2>&5
6151 ac_status=$?
6152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6153 test $ac_status = 0; }; then
6154 cc_works_part=yes
6155 if test "$cross_compiling" = no; then
6156 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6158 (eval $ac_try) 2>&5
6159 ac_status=$?
6160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6161 test $ac_status = 0; }; }; then :;
6162 else
6163 cc_works_part=norun
6164 fi
6165 fi
6166 else
6167 cc_works_part=no
6168 fi
6169 if test "$cc_works_part" != yes; then
6170 echo "failed program was:" >&5
6171 cat conftest.c >&5
6172 fi
6173 rm -f conftest* a.out b.out a.exe a_out.exe
6174 case $cc_works_part in
6175 yes)
6176
6177 ;;
6178 no)
6179 gmp_prog_cc_works="no, double -> ulong conversion"
6180 ;;
6181 norun)
6182 gmp_prog_cc_works="no, double -> ulong conversion, program does not run"
6183 ;;
6184 esac
6185 fi
6186
6187
6188
6189
6190 if test "$gmp_prog_cc_works" = yes; then
6191 # remove anything that might look like compiler output to our "||" expression
6192 rm -f conftest* a.out b.out a.exe a_out.exe
6193 cat >conftest.c <<EOF
6194 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
6195 the assembler doesn't know hppa 2.0 instructions. fneg is a 2.0
6196 instruction, and a negation like this comes out using it. */
6197 double fneg_data;
6198 unsigned long fneg () { return -fneg_data; }
6199
6200 int main () { return 0; }
6201 EOF
6202 echo "Test compile: double negation" >&5
6203 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6205 (eval $gmp_compile) 2>&5
6206 ac_status=$?
6207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6208 test $ac_status = 0; }; then
6209 cc_works_part=yes
6210 if test "$cross_compiling" = no; then
6211 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6213 (eval $ac_try) 2>&5
6214 ac_status=$?
6215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6216 test $ac_status = 0; }; }; then :;
6217 else
6218 cc_works_part=norun
6219 fi
6220 fi
6221 else
6222 cc_works_part=no
6223 fi
6224 if test "$cc_works_part" != yes; then
6225 echo "failed program was:" >&5
6226 cat conftest.c >&5
6227 fi
6228 rm -f conftest* a.out b.out a.exe a_out.exe
6229 case $cc_works_part in
6230 yes)
6231
6232 ;;
6233 no)
6234 gmp_prog_cc_works="no, double negation"
6235 ;;
6236 norun)
6237 gmp_prog_cc_works="no, double negation, program does not run"
6238 ;;
6239 esac
6240 fi
6241
6242
6243
6244
6245 if test "$gmp_prog_cc_works" = yes; then
6246 # remove anything that might look like compiler output to our "||" expression
6247 rm -f conftest* a.out b.out a.exe a_out.exe
6248 cat >conftest.c <<EOF
6249 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
6250 (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
6251 those instructions. Not sure how much of the gmp code will come out
6252 wanting sse2, but it's easiest to reject an option we know is bad. */
6253 double ftod_data;
6254 float ftod () { return (float) ftod_data; }
6255
6256 int main () { return 0; }
6257 EOF
6258 echo "Test compile: double -> float conversion" >&5
6259 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6261 (eval $gmp_compile) 2>&5
6262 ac_status=$?
6263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6264 test $ac_status = 0; }; then
6265 cc_works_part=yes
6266 if test "$cross_compiling" = no; then
6267 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6269 (eval $ac_try) 2>&5
6270 ac_status=$?
6271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6272 test $ac_status = 0; }; }; then :;
6273 else
6274 cc_works_part=norun
6275 fi
6276 fi
6277 else
6278 cc_works_part=no
6279 fi
6280 if test "$cc_works_part" != yes; then
6281 echo "failed program was:" >&5
6282 cat conftest.c >&5
6283 fi
6284 rm -f conftest* a.out b.out a.exe a_out.exe
6285 case $cc_works_part in
6286 yes)
6287
6288 ;;
6289 no)
6290 gmp_prog_cc_works="no, double -> float conversion"
6291 ;;
6292 norun)
6293 gmp_prog_cc_works="no, double -> float conversion, program does not run"
6294 ;;
6295 esac
6296 fi
6297
6298
6299
6300
6301 if test "$gmp_prog_cc_works" = yes; then
6302 # remove anything that might look like compiler output to our "||" expression
6303 rm -f conftest* a.out b.out a.exe a_out.exe
6304 cat >conftest.c <<EOF
6305 /* The following provokes an internal compiler error from gcc version
6306 "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
6307 values being spilled into floating point registers. The problem doesn't
6308 show up all the time, but has occurred enough in GMP for us to reject
6309 this compiler+flags. */
6310 #include <string.h> /* for memcpy */
6311 struct try_t
6312 {
6313 char dst[2];
6314 char size;
6315 long d0, d1, d2, d3, d4, d5, d6;
6316 char overlap;
6317 };
6318 struct try_t param[6];
6319 int
6320 param_init ()
6321 {
6322 struct try_t *p;
6323 memcpy (p, &param[ 2 ], sizeof (*p));
6324 memcpy (p, &param[ 2 ], sizeof (*p));
6325 p->size = 2;
6326 memcpy (p, &param[ 1 ], sizeof (*p));
6327 p->dst[0] = 1;
6328 p->overlap = 2;
6329 memcpy (p, &param[ 3 ], sizeof (*p));
6330 p->dst[0] = 1;
6331 p->overlap = 8;
6332 memcpy (p, &param[ 4 ], sizeof (*p));
6333 memcpy (p, &param[ 4 ], sizeof (*p));
6334 p->overlap = 8;
6335 memcpy (p, &param[ 5 ], sizeof (*p));
6336 memcpy (p, &param[ 5 ], sizeof (*p));
6337 memcpy (p, &param[ 5 ], sizeof (*p));
6338 return 0;
6339 }
6340
6341 int main () { return 0; }
6342 EOF
6343 echo "Test compile: gnupro alpha ev6 char spilling" >&5
6344 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6346 (eval $gmp_compile) 2>&5
6347 ac_status=$?
6348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6349 test $ac_status = 0; }; then
6350 cc_works_part=yes
6351 if test "$cross_compiling" = no; then
6352 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6353 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6354 (eval $ac_try) 2>&5
6355 ac_status=$?
6356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6357 test $ac_status = 0; }; }; then :;
6358 else
6359 cc_works_part=norun
6360 fi
6361 fi
6362 else
6363 cc_works_part=no
6364 fi
6365 if test "$cc_works_part" != yes; then
6366 echo "failed program was:" >&5
6367 cat conftest.c >&5
6368 fi
6369 rm -f conftest* a.out b.out a.exe a_out.exe
6370 case $cc_works_part in
6371 yes)
6372
6373 ;;
6374 no)
6375 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling"
6376 ;;
6377 norun)
6378 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run"
6379 ;;
6380 esac
6381 fi
6382
6383
6384
6385
6386 # __builtin_alloca is not available everywhere, check it exists before
6387 # seeing that it works
6388 if test "$gmp_prog_cc_works" = yes; then
6389 # remove anything that might look like compiler output to our "||" expression
6390 rm -f conftest* a.out b.out a.exe a_out.exe
6391 cat >conftest.c <<EOF
6392 int k; int foo () { __builtin_alloca (k); }
6393 EOF
6394 echo "Test compile: __builtin_alloca availability" >&5
6395 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6397 (eval $gmp_compile) 2>&5
6398 ac_status=$?
6399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6400 test $ac_status = 0; }; then
6401 cc_works_part=yes
6402 if test "$cross_compiling" = no; then
6403 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6405 (eval $ac_try) 2>&5
6406 ac_status=$?
6407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6408 test $ac_status = 0; }; }; then :;
6409 else
6410 cc_works_part=norun
6411 fi
6412 fi
6413 else
6414 cc_works_part=no
6415 fi
6416 if test "$cc_works_part" != yes; then
6417 echo "failed program was:" >&5
6418 cat conftest.c >&5
6419 fi
6420 rm -f conftest* a.out b.out a.exe a_out.exe
6421 case $cc_works_part in
6422 yes)
6423 if test "$gmp_prog_cc_works" = yes; then
6424 # remove anything that might look like compiler output to our "||" expression
6425 rm -f conftest* a.out b.out a.exe a_out.exe
6426 cat >conftest.c <<EOF
6427 /* The following provokes an internal compiler error from Itanium HP-UX cc
6428 under +O2 or higher. We use this sort of code in mpn/generic/mul_fft.c. */
6429 int k;
6430 int foo ()
6431 {
6432 int i, **a;
6433 a = __builtin_alloca (k);
6434 for (i = 0; i <= k; i++)
6435 a[i] = __builtin_alloca (1 << i);
6436 }
6437
6438 int main () { return 0; }
6439 EOF
6440 echo "Test compile: alloca array" >&5
6441 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6443 (eval $gmp_compile) 2>&5
6444 ac_status=$?
6445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6446 test $ac_status = 0; }; then
6447 cc_works_part=yes
6448 if test "$cross_compiling" = no; then
6449 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6451 (eval $ac_try) 2>&5
6452 ac_status=$?
6453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6454 test $ac_status = 0; }; }; then :;
6455 else
6456 cc_works_part=norun
6457 fi
6458 fi
6459 else
6460 cc_works_part=no
6461 fi
6462 if test "$cc_works_part" != yes; then
6463 echo "failed program was:" >&5
6464 cat conftest.c >&5
6465 fi
6466 rm -f conftest* a.out b.out a.exe a_out.exe
6467 case $cc_works_part in
6468 yes)
6469
6470 ;;
6471 no)
6472 gmp_prog_cc_works="no, alloca array"
6473 ;;
6474 norun)
6475 gmp_prog_cc_works="no, alloca array, program does not run"
6476 ;;
6477 esac
6478 fi
6479
6480
6481
6482 ;;
6483 no)
6484
6485 ;;
6486 norun)
6487
6488 ;;
6489 esac
6490 fi
6491
6492
6493 if test "$gmp_prog_cc_works" = yes; then
6494 # remove anything that might look like compiler output to our "||" expression
6495 rm -f conftest* a.out b.out a.exe a_out.exe
6496 cat >conftest.c <<EOF
6497 /* The following provokes an internal error from the assembler on
6498 power2-ibm-aix4.3.1.0. gcc -mrios2 compiles to nabs+fcirz, and this
6499 results in "Internal error related to the source program domain".
6500
6501 For reference it seems to be the combination of nabs+fcirz which is bad,
6502 not either alone. This sort of thing occurs in mpz/get_str.c with the
6503 way double chars_per_bit_exactly is applied in MPN_SIZEINBASE. Perhaps
6504 if that code changes to a scaled-integer style then we won't need this
6505 test. */
6506
6507 double fp[1];
6508 int x;
6509 int f ()
6510 {
6511 int a;
6512 a = (x >= 0 ? x : -x);
6513 return a * fp[0];
6514 }
6515
6516 int main () { return 0; }
6517 EOF
6518 echo "Test compile: abs int -> double conversion" >&5
6519 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6521 (eval $gmp_compile) 2>&5
6522 ac_status=$?
6523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6524 test $ac_status = 0; }; then
6525 cc_works_part=yes
6526 if test "$cross_compiling" = no; then
6527 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6529 (eval $ac_try) 2>&5
6530 ac_status=$?
6531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6532 test $ac_status = 0; }; }; then :;
6533 else
6534 cc_works_part=norun
6535 fi
6536 fi
6537 else
6538 cc_works_part=no
6539 fi
6540 if test "$cc_works_part" != yes; then
6541 echo "failed program was:" >&5
6542 cat conftest.c >&5
6543 fi
6544 rm -f conftest* a.out b.out a.exe a_out.exe
6545 case $cc_works_part in
6546 yes)
6547
6548 ;;
6549 no)
6550 gmp_prog_cc_works="no, abs int -> double conversion"
6551 ;;
6552 norun)
6553 gmp_prog_cc_works="no, abs int -> double conversion, program does not run"
6554 ;;
6555 esac
6556 fi
6557
6558
6559
6560
6561 if test "$gmp_prog_cc_works" = yes; then
6562 # remove anything that might look like compiler output to our "||" expression
6563 rm -f conftest* a.out b.out a.exe a_out.exe
6564 cat >conftest.c <<EOF
6565 /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
6566 Extracted from tests/mpn/t-iord_u.c. Causes Apple's gcc 3.3 build 1640 and
6567 1666 to segfault with e.g., -O2 -mpowerpc64. */
6568
6569 #if defined (__GNUC__) && ! defined (__cplusplus)
6570 typedef unsigned long long t1;typedef t1*t2;
6571 void g(){}
6572 void h(){}
6573 static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
6574 {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;}
6575 void f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
6576 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();}}
6577 #else
6578 int dummy;
6579 #endif
6580
6581 int main () { return 0; }
6582 EOF
6583 echo "Test compile: long long reliability test 1" >&5
6584 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6586 (eval $gmp_compile) 2>&5
6587 ac_status=$?
6588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6589 test $ac_status = 0; }; then
6590 cc_works_part=yes
6591 if test "$cross_compiling" = no; then
6592 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6594 (eval $ac_try) 2>&5
6595 ac_status=$?
6596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597 test $ac_status = 0; }; }; then :;
6598 else
6599 cc_works_part=norun
6600 fi
6601 fi
6602 else
6603 cc_works_part=no
6604 fi
6605 if test "$cc_works_part" != yes; then
6606 echo "failed program was:" >&5
6607 cat conftest.c >&5
6608 fi
6609 rm -f conftest* a.out b.out a.exe a_out.exe
6610 case $cc_works_part in
6611 yes)
6612
6613 ;;
6614 no)
6615 gmp_prog_cc_works="no, long long reliability test 1"
6616 ;;
6617 norun)
6618 gmp_prog_cc_works="no, long long reliability test 1, program does not run"
6619 ;;
6620 esac
6621 fi
6622
6623
6624
6625
6626 if test "$gmp_prog_cc_works" = yes; then
6627 # remove anything that might look like compiler output to our "||" expression
6628 rm -f conftest* a.out b.out a.exe a_out.exe
6629 cat >conftest.c <<EOF
6630 /* The following provokes an internal compiler error on powerpc-apple-darwin.
6631 Extracted from mpz/cfdiv_q_2exp.c. Causes Apple's gcc 3.3 build 1640 and
6632 1666 to get an ICE with -O1 -mpowerpc64. */
6633
6634 #if defined (__GNUC__) && ! defined (__cplusplus)
6635 int g();
6636 void 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();}
6637 int g(){return 0;}
6638 #else
6639 int dummy;
6640 #endif
6641
6642 int main () { return 0; }
6643 EOF
6644 echo "Test compile: long long reliability test 2" >&5
6645 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6647 (eval $gmp_compile) 2>&5
6648 ac_status=$?
6649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6650 test $ac_status = 0; }; then
6651 cc_works_part=yes
6652 if test "$cross_compiling" = no; then
6653 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6655 (eval $ac_try) 2>&5
6656 ac_status=$?
6657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6658 test $ac_status = 0; }; }; then :;
6659 else
6660 cc_works_part=norun
6661 fi
6662 fi
6663 else
6664 cc_works_part=no
6665 fi
6666 if test "$cc_works_part" != yes; then
6667 echo "failed program was:" >&5
6668 cat conftest.c >&5
6669 fi
6670 rm -f conftest* a.out b.out a.exe a_out.exe
6671 case $cc_works_part in
6672 yes)
6673
6674 ;;
6675 no)
6676 gmp_prog_cc_works="no, long long reliability test 2"
6677 ;;
6678 norun)
6679 gmp_prog_cc_works="no, long long reliability test 2, program does not run"
6680 ;;
6681 esac
6682 fi
6683
6684
6685
6686
6687 if test "$gmp_prog_cc_works" = yes; then
6688 # remove anything that might look like compiler output to our "||" expression
6689 rm -f conftest* a.out b.out a.exe a_out.exe
6690 cat >conftest.c <<EOF
6691 /* Provokes an ICE on i386-freebsd with the FreeBSD-hacked gcc, under
6692 -O2 -march=amdfam10. We call helper functions here "open" and "close" in
6693 order for linking to succeed. */
6694
6695 #if defined (__GNUC__) && ! defined (__cplusplus)
6696 int open(int*,int*,int);void*close(int);void g(int*rp,int*up,int un){
6697 __builtin_expect(un<=0x7f00,1)?__builtin_alloca(un):close(un);if(__builtin_clzl
6698 (up[un])){open(rp,up,un);while(1){if(rp[un-1]!=0)break;un--;}}}
6699 #else
6700 int dummy;
6701 #endif
6702
6703 int main () { return 0; }
6704 EOF
6705 echo "Test compile: freebsd hacked gcc" >&5
6706 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6708 (eval $gmp_compile) 2>&5
6709 ac_status=$?
6710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6711 test $ac_status = 0; }; then
6712 cc_works_part=yes
6713 if test "$cross_compiling" = no; then
6714 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6716 (eval $ac_try) 2>&5
6717 ac_status=$?
6718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6719 test $ac_status = 0; }; }; then :;
6720 else
6721 cc_works_part=norun
6722 fi
6723 fi
6724 else
6725 cc_works_part=no
6726 fi
6727 if test "$cc_works_part" != yes; then
6728 echo "failed program was:" >&5
6729 cat conftest.c >&5
6730 fi
6731 rm -f conftest* a.out b.out a.exe a_out.exe
6732 case $cc_works_part in
6733 yes)
6734
6735 ;;
6736 no)
6737 gmp_prog_cc_works="no, freebsd hacked gcc"
6738 ;;
6739 norun)
6740 gmp_prog_cc_works="no, freebsd hacked gcc, program does not run"
6741 ;;
6742 esac
6743 fi
6744
6745
6746
6747
6748 if test "$gmp_prog_cc_works" = yes; then
6749 # remove anything that might look like compiler output to our "||" expression
6750 rm -f conftest* a.out b.out a.exe a_out.exe
6751 cat >conftest.c <<EOF
6752 /* The following is mis-compiled by HP ia-64 cc version
6753 cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
6754 under "cc +O3", both in +DD32 and +DD64 modes. The mpn_lshift_com gets
6755 inlined and its return value somehow botched to be 0 instead of 1. This
6756 arises in the real mpn_lshift_com in mul_fft.c. A lower optimization
6757 level, like +O2 seems ok. This code needs to be run to show the problem,
6758 but that's fine, the offending cc is a native-only compiler so we don't
6759 have to worry about cross compiling. */
6760
6761 #if ! defined (__cplusplus)
6762 unsigned long
6763 lshift_com (rp, up, n, cnt)
6764 unsigned long *rp;
6765 unsigned long *up;
6766 long n;
6767 unsigned cnt;
6768 {
6769 unsigned long retval, high_limb, low_limb;
6770 unsigned tnc;
6771 long i;
6772 tnc = 8 * sizeof (unsigned long) - cnt;
6773 low_limb = *up++;
6774 retval = low_limb >> tnc;
6775 high_limb = low_limb << cnt;
6776 for (i = n - 1; i != 0; i--)
6777 {
6778 low_limb = *up++;
6779 *rp++ = ~(high_limb | (low_limb >> tnc));
6780 high_limb = low_limb << cnt;
6781 }
6782 return retval;
6783 }
6784 int
6785 main ()
6786 {
6787 unsigned long cy, rp[2], up[2];
6788 up[0] = ~ 0L;
6789 up[1] = 0;
6790 cy = lshift_com (rp, up, 2L, 1);
6791 if (cy != 1L)
6792 return 1;
6793 return 0;
6794 }
6795 #else
6796 int
6797 main ()
6798 {
6799 return 0;
6800 }
6801 #endif
6802
6803 EOF
6804 echo "Test compile: mpn_lshift_com optimization" >&5
6805 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6807 (eval $gmp_compile) 2>&5
6808 ac_status=$?
6809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6810 test $ac_status = 0; }; then
6811 cc_works_part=yes
6812 if test "$cross_compiling" = no; then
6813 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6815 (eval $ac_try) 2>&5
6816 ac_status=$?
6817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6818 test $ac_status = 0; }; }; then :;
6819 else
6820 cc_works_part=norun
6821 fi
6822 fi
6823 else
6824 cc_works_part=no
6825 fi
6826 if test "$cc_works_part" != yes; then
6827 echo "failed program was:" >&5
6828 cat conftest.c >&5
6829 fi
6830 rm -f conftest* a.out b.out a.exe a_out.exe
6831 case $cc_works_part in
6832 yes)
6833
6834 ;;
6835 no)
6836 gmp_prog_cc_works="no, mpn_lshift_com optimization"
6837 ;;
6838 norun)
6839 gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run"
6840 ;;
6841 esac
6842 fi
6843
6844
6845
6846 if test "$gmp_prog_cc_works" = yes; then
6847 # remove anything that might look like compiler output to our "||" expression
6848 rm -f conftest* a.out b.out a.exe a_out.exe
6849 cat >conftest.c <<EOF
6850 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
6851 "icc -O3", After several calls, the function writes partial garbage to
6852 the result vector. Perhaps relates to the chk.a.nc insn. This code needs
6853 to be run to show the problem, but that's fine, the offending cc is a
6854 native-only compiler so we don't have to worry about cross compiling. */
6855
6856 #if ! defined (__cplusplus)
6857 #include <stdlib.h>
6858 void
6859 lshift_com (rp, up, n, cnt)
6860 unsigned long *rp;
6861 unsigned long *up;
6862 long n;
6863 unsigned cnt;
6864 {
6865 unsigned long high_limb, low_limb;
6866 unsigned tnc;
6867 long i;
6868 up += n;
6869 rp += n;
6870 tnc = 8 * sizeof (unsigned long) - cnt;
6871 low_limb = *--up;
6872 high_limb = low_limb << cnt;
6873 for (i = n - 1; i != 0; i--)
6874 {
6875 low_limb = *--up;
6876 *--rp = ~(high_limb | (low_limb >> tnc));
6877 high_limb = low_limb << cnt;
6878 }
6879 *--rp = ~high_limb;
6880 }
6881 int
6882 main ()
6883 {
6884 unsigned long *r, *r2;
6885 unsigned long a[88 + 1];
6886 long i;
6887 for (i = 0; i < 88 + 1; i++)
6888 a[i] = ~0L;
6889 r = calloc (10000, sizeof (unsigned long));
6890 r2 = r;
6891 for (i = 0; i < 528; i += 23)
6892 {
6893 lshift_com (r2, a,
6894 i / (8 * sizeof (unsigned long)) + 1,
6895 i % (8 * sizeof (unsigned long)));
6896 r2 += 88 + 1;
6897 }
6898 if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
6899 r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
6900 abort ();
6901 free (r);
6902 return 0;
6903 }
6904 #else
6905 int
6906 main ()
6907 {
6908 return 0;
6909 }
6910 #endif
6911
6912 EOF
6913 echo "Test compile: mpn_lshift_com optimization 2" >&5
6914 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6916 (eval $gmp_compile) 2>&5
6917 ac_status=$?
6918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6919 test $ac_status = 0; }; then
6920 cc_works_part=yes
6921 if test "$cross_compiling" = no; then
6922 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6924 (eval $ac_try) 2>&5
6925 ac_status=$?
6926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6927 test $ac_status = 0; }; }; then :;
6928 else
6929 cc_works_part=norun
6930 fi
6931 fi
6932 else
6933 cc_works_part=no
6934 fi
6935 if test "$cc_works_part" != yes; then
6936 echo "failed program was:" >&5
6937 cat conftest.c >&5
6938 fi
6939 rm -f conftest* a.out b.out a.exe a_out.exe
6940 case $cc_works_part in
6941 yes)
6942
6943 ;;
6944 no)
6945 gmp_prog_cc_works="no, mpn_lshift_com optimization 2"
6946 ;;
6947 norun)
6948 gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run"
6949 ;;
6950 esac
6951 fi
6952
6953
6954
6955
6956 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
6957 # by recent versions of gcc.
6958 #
6959 if test "$gmp_prog_cc_works" = yes; then
6960 case $host in
6961 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*)
6962 # this problem only arises in PIC code, so don't need to test when
6963 # --disable-shared. We don't necessarily have $enable_shared set to
6964 # yes at this point, it will still be unset for the default (which is
6965 # yes); hence the use of "!= no".
6966 if test "$enable_shared" != no; then
6967 echo "Testing gcc GOT with eax emitted" >&5
6968 cat >conftest.c <<\EOF
6969 int foo;
6970 int bar () { return foo; }
6971 EOF
6972 tmp_got_emitted=no
6973 gmp_compile="$cc $cflags $cppflags -fPIC -S conftest.c >&5 2>&1"
6974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6975 (eval $gmp_compile) 2>&5
6976 ac_status=$?
6977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6978 test $ac_status = 0; }; then
6979 if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
6980 tmp_got_emitted=yes
6981 fi
6982 fi
6983 rm -f conftest.*
6984 echo "Result: $tmp_got_emitted" >&5
6985 if test "$tmp_got_emitted" = yes; then
6986 echo "Testing gas GOT with eax good" >&5
6987 cat >conftest.awk <<\EOF
6988 BEGIN {
6989 want[0] = "001"
6990 want[1] = "043"
6991 want[2] = "105"
6992 want[3] = "147"
6993 want[4] = "211"
6994 want[5] = "253"
6995 want[6] = "315"
6996 want[7] = "357"
6997
6998 want[8] = "005"
6999 want[9] = "002"
7000 want[10] = "000"
7001 want[11] = "000"
7002 want[12] = "000"
7003
7004 want[13] = "376"
7005 want[14] = "334"
7006 want[15] = "272"
7007 want[16] = "230"
7008 want[17] = "166"
7009 want[18] = "124"
7010 want[19] = "062"
7011 want[20] = "020"
7012
7013 result = "yes"
7014 }
7015 {
7016 for (f = 2; f <= NF; f++)
7017 {
7018 for (i = 0; i < 20; i++)
7019 got[i] = got[i+1];
7020 got[20] = $f;
7021
7022 found = 1
7023 for (i = 0; i < 21; i++)
7024 if (got[i] != want[i])
7025 {
7026 found = 0
7027 break
7028 }
7029 if (found)
7030 {
7031 result = "no"
7032 exit
7033 }
7034 }
7035 }
7036 END {
7037 print result
7038 }
7039 EOF
7040 cat >conftest.s <<\EOF
7041 .text
7042 .byte 1, 35, 69, 103, 137, 171, 205, 239
7043 addl $_GLOBAL_OFFSET_TABLE_, %eax
7044 .byte 254, 220, 186, 152, 118, 84, 50, 16
7045 EOF
7046 tmp_got_good=yes
7047 gmp_compile="$cc $cflags $cppflags -fPIC -o conftest.o -c conftest.s >&5 2>&1"
7048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7049 (eval $gmp_compile) 2>&5
7050 ac_status=$?
7051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7052 test $ac_status = 0; }; then
7053 tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
7054 fi
7055 rm -f conftest.*
7056 echo "Result: $tmp_got_good" >&5
7057 if test "$tmp_got_good" = no; then
7058 gmp_prog_cc_works="no, bad gas GOT with eax"
7059 else
7060 :
7061 fi
7062
7063 else
7064 :
7065 fi
7066
7067 fi
7068 ;;
7069 esac
7070 fi
7071
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
7073 $as_echo "$gmp_prog_cc_works" >&6; }
7074 case $gmp_prog_cc_works in
7075 yes)
7076
7077 ;;
7078 *)
7079 continue
7080 ;;
7081 esac
7082
7083
7084 # If we're supposed to be using a "long long" for a limb, check that
7085 # it works.
7086 eval limb_chosen=\"\$limb$abi1\"
7087 test -n "$limb_chosen" || eval limb_chosen=\"\$limb$abi2\"
7088 if test "$limb_chosen" = longlong; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags has long long" >&5
7090 $as_echo_n "checking compiler $cc $cflags $cppflags has long long... " >&6; }
7091 cat >conftest.c <<EOF
7092 long long foo;
7093 long long bar () { return foo; }
7094 int main () { return 0; }
7095 EOF
7096 gmp_prog_cc_works=no
7097 gmp_compile="$cc $cflags $cppflags -c conftest.c >&5"
7098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7099 (eval $gmp_compile) 2>&5
7100 ac_status=$?
7101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7102 test $ac_status = 0; }; then
7103 gmp_prog_cc_works=yes
7104 else
7105 echo "failed program was:" >&5
7106 cat conftest.c >&5
7107 fi
7108 rm -f conftest* a.out b.out a.exe a_out.exe
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
7110 $as_echo "$gmp_prog_cc_works" >&6; }
7111 if test $gmp_prog_cc_works = yes; then
7112 :
7113 else
7114 continue
7115 fi
7116
7117 fi
7118
7119 # The tests to perform on this $cc, if any
7120 eval testlist=\"\$${ccbase}${abi1}_testlist\"
7121 test -n "$testlist" || eval testlist=\"\$${ccbase}${abi2}_testlist\"
7122 test -n "$testlist" || eval testlist=\"\$any${abi1}_testlist\"
7123 test -n "$testlist" || eval testlist=\"\$any${abi2}_testlist\"
7124
7125 testlist_pass=yes
7126 for tst in $testlist; do
7127 case $tst in
7128 hpc-hppa-2-0) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HP compiler $cc is good for 64-bits" >&5
7129 $as_echo_n "checking whether HP compiler $cc is good for 64-bits... " >&6; }
7130 # Bad compiler output:
7131 # ccom: HP92453-01 G.10.32.05 HP C Compiler
7132 # Good compiler output:
7133 # ccom: HP92453-01 A.10.32.30 HP C Compiler
7134 # Let A.10.32.30 or higher be ok.
7135 echo >conftest.c
7136 gmp_tmp_vs=`$cc -V -c -o conftest.$OBJEXT conftest.c 2>&1 | grep "^ccom:"`
7137 echo "Version string: $gmp_tmp_vs" >&5
7138 rm conftest*
7139 gmp_tmp_v1=`echo $gmp_tmp_vs | sed 's/.* .\.\([0-9]*\).*/\1/'`
7140 gmp_tmp_v2=`echo $gmp_tmp_vs | sed 's/.* .\..*\.\(.*\)\..* HP C.*/\1/'`
7141 gmp_tmp_v3=`echo $gmp_tmp_vs | sed 's/.* .\..*\..*\.\(.*\) HP C.*/\1/'`
7142 echo "Version number: $gmp_tmp_v1.$gmp_tmp_v2.$gmp_tmp_v3" >&5
7143 if test -z "$gmp_tmp_v1"; then
7144 gmp_hpc_64bit=not-applicable
7145 else
7146 gmp_compare_ge=no
7147 if test -n "$gmp_tmp_v1"; then
7148 if test "$gmp_tmp_v1" -gt 10; then
7149 gmp_compare_ge=yes
7150 else
7151 if test "$gmp_tmp_v1" -eq 10; then
7152 if test -n "$gmp_tmp_v2"; then
7153 if test "$gmp_tmp_v2" -gt 32; then
7154 gmp_compare_ge=yes
7155 else
7156 if test "$gmp_tmp_v2" -eq 32; then
7157 if test -n "$gmp_tmp_v3" && test "$gmp_tmp_v3" -ge 30; then
7158 gmp_compare_ge=yes
7159 fi
7160
7161 fi
7162 fi
7163 fi
7164
7165 fi
7166 fi
7167 fi
7168
7169
7170 gmp_hpc_64bit=$gmp_compare_ge
7171 fi
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_hpc_64bit" >&5
7173 $as_echo "$gmp_hpc_64bit" >&6; }
7174 if test $gmp_hpc_64bit = yes; then
7175 :
7176 else
7177 testlist_pass=no
7178 fi
7179 ;;
7180 gcc-arm-umodsi) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ARM gcc unsigned division works" >&5
7181 $as_echo_n "checking whether ARM gcc unsigned division works... " >&6; }
7182 tmp_version=`$cc --version`
7183 echo "$tmp_version" >&5
7184 case $tmp_version in
7185 2.95 | 2.95.[123])
7186 testlist_pass=no
7187 gmp_gcc_arm_umodsi_result="no, gcc 2.95.[0123]" ;;
7188 *)
7189 :
7190 gmp_gcc_arm_umodsi_result=yes ;;
7191 esac
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_gcc_arm_umodsi_result" >&5
7193 $as_echo "$gmp_gcc_arm_umodsi_result" >&6; }
7194 ;;
7195 gcc-mips-o32) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports o32" >&5
7196 $as_echo_n "checking whether gcc supports o32... " >&6; }
7197 echo 'int x;' >conftest.c
7198 echo "$cc -mabi=32 -c conftest.c" >&5
7199 if $cc -mabi=32 -c conftest.c >conftest.out 2>&1; then
7200 result=yes
7201 else
7202 cat conftest.out >&5
7203 if grep "cc1: Invalid option \`abi=32'" conftest.out >/dev/null; then
7204 result=yes
7205 else
7206 result=no
7207 fi
7208 fi
7209 rm -f conftest.*
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7211 $as_echo "$result" >&6; }
7212 if test $result = yes; then
7213 :
7214 else
7215 testlist_pass=no
7216 fi
7217 ;;
7218 hppa-level-2.0) { $as_echo "$as_me:${as_lineno-$LINENO}: checking $cc $cflags assembler knows hppa 2.0" >&5
7219 $as_echo_n "checking $cc $cflags assembler knows hppa 2.0... " >&6; }
7220 result=no
7221 cat >conftest.s <<EOF
7222 .level 2.0
7223 EOF
7224 gmp_compile="$cc $cflags -c conftest.s >&5 2>&1"
7225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7226 (eval $gmp_compile) 2>&5
7227 ac_status=$?
7228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7229 test $ac_status = 0; }; then
7230 result=yes
7231 else
7232 echo "failed program was" >&5
7233 cat conftest.s >&5
7234 fi
7235 rm -f conftest*
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7237 $as_echo "$result" >&6; }
7238 if test "$result" = yes; then
7239 :
7240 else
7241 testlist_pass=no
7242 fi
7243 ;;
7244 sizeof*) echo "configure: testlist $tst" >&5
7245 gmp_sizeof_type=`echo "$tst" | sed 's/sizeof-\([a-z\*]*\).*/\1/'`
7246 gmp_sizeof_want=`echo "$tst" | sed 's/sizeof-[a-z\*]*-\([0-9]*\).*/\1/'`
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want" >&5
7248 $as_echo_n "checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want... " >&6; }
7249 cat >conftest.c <<EOF
7250 int
7251 main ()
7252 {
7253 static int test_array [1 - 2 * (long) (sizeof ($gmp_sizeof_type) != $gmp_sizeof_want)];
7254 test_array[0] = 0;
7255 return 0;
7256 }
7257 EOF
7258 gmp_c_testlist_sizeof=no
7259 gmp_compile="$cc $cflags -c conftest.c >&5"
7260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7261 (eval $gmp_compile) 2>&5
7262 ac_status=$?
7263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7264 test $ac_status = 0; }; then
7265 gmp_c_testlist_sizeof=yes
7266 fi
7267 rm -f conftest*
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_c_testlist_sizeof" >&5
7269 $as_echo "$gmp_c_testlist_sizeof" >&6; }
7270 if test $gmp_c_testlist_sizeof = yes; then
7271 :
7272 else
7273 testlist_pass=no
7274 fi
7275 ;;
7276 esac
7277 if test $testlist_pass = no; then break; fi
7278 done
7279
7280 if test $testlist_pass = yes; then
7281 found_compiler=yes
7282 break
7283 fi
7284 done
7285
7286 if test $found_compiler = yes; then break; fi
7287 done
7288
7289 if test $found_compiler = yes; then break; fi
7290 done
7291
7292 if test $found_compiler = yes; then break; fi
7293 done
7294
7295
7296 # If we recognised the CPU, as indicated by $path being set, then insist
7297 # that we have a working compiler, either from our $cclist choices or from
7298 # $CC. We can't let AC_PROG_CC look around for a compiler because it might
7299 # find one that we've rejected (for not supporting the modes our asm code
7300 # demands, etc).
7301 #
7302 # If we didn't recognise the CPU (and this includes host_cpu=none), then
7303 # fall through and let AC_PROG_CC look around for a compiler too. This is
7304 # mostly in the interests of following a standard autoconf setup, after all
7305 # we've already tested cc and gcc adequately (hopefully). As of autoconf
7306 # 2.50 the only thing AC_PROG_CC really adds is a check for "cl" (Microsoft
7307 # C on MS-DOS systems).
7308 #
7309 if test $found_compiler = no && test -n "$path"; then
7310 as_fn_error $? "could not find a working compiler, see config.log for details" "$LINENO" 5
7311 fi
7312
7313 case $host in
7314 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | jaguar*-*-* | bulldozer*-*-* | piledriver*-*-* | steamroller*-*-* | excavator*-*-* | zen*-*-* | pentium4-*-* | atom-*-* | silvermont-*-* | goldmont-*-* | tremont-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-* | nehalem*-*-* | westmere*-*-* | sandybridge*-*-* | ivybridge*-*-* | haswell*-*-* | broadwell*-*-* | skylake*-*-* | kabylake*-*-* | icelake*-*-* | tigerlake*-*-* | rocketlake*-*-* | alderlake*-*-* | raptorlake*-*-*)
7315 # If the user asked for a fat build, override the path and flags set above
7316 if test $enable_fat = yes; then
7317 gcc_cflags_cpu=""
7318 gcc_cflags_arch=""
7319
7320 fat_functions="add_n addmul_1 bdiv_dbm1c com cnd_add_n cnd_sub_n
7321 copyd copyi dive_1 divrem_1
7322 gcd_11 lshift lshiftc mod_1 mod_1_1 mod_1_1_cps mod_1_2
7323 mod_1_2_cps mod_1_4 mod_1_4_cps mod_34lsub1 mode1o mul_1
7324 mul_basecase mullo_basecase pre_divrem_1 pre_mod_1 redc_1
7325 redc_2 rshift sqr_basecase sub_n submul_1"
7326
7327 if test "$abi" = 32; then
7328 extra_functions="$extra_functions fat fat_entry"
7329 path="x86/fat x86"
7330 fat_path="x86 x86/fat x86/i486
7331 x86/k6 x86/k6/mmx x86/k6/k62mmx
7332 x86/k7 x86/k7/mmx
7333 x86/k8 x86/k10 x86/bt1 x86/bd1
7334 x86/pentium x86/pentium/mmx
7335 x86/p6 x86/p6/mmx x86/p6/p3mmx x86/p6/sse2
7336 x86/pentium4 x86/pentium4/mmx x86/pentium4/sse2
7337 x86/core2 x86/coreinhm x86/coreisbr
7338 x86/goldmont x86/silvermont
7339 x86/atom x86/atom/mmx x86/atom/sse2 x86/nano"
7340 fi
7341
7342 if test "$abi" = 64; then
7343 gcc_64_cflags=""
7344 extra_functions_64="$extra_functions_64 fat fat_entry"
7345 path_64="x86_64/fat x86_64"
7346 fat_path="x86_64 x86_64/fat
7347 x86_64/k8 x86_64/k10 x86_64/bd1 x86_64/bt1 x86_64/bt2 x86_64/zen
7348 x86_64/pentium4 x86_64/core2 x86_64/coreinhm x86_64/coreisbr
7349 x86_64/coreihwl x86_64/coreibwl x86_64/skylake x86_64/atom
7350 x86_64/silvermont x86_64/goldmont x86_64/nano"
7351 fat_functions="$fat_functions addmul_2 addlsh1_n addlsh2_n sublsh1_n"
7352 fi
7353
7354 fat_thresholds="MUL_TOOM22_THRESHOLD MUL_TOOM33_THRESHOLD
7355 SQR_TOOM2_THRESHOLD SQR_TOOM3_THRESHOLD
7356 BMOD_1_TO_MOD_1_THRESHOLD"
7357 fi
7358 ;;
7359 esac
7360
7361
7362 if test $found_compiler = yes; then
7363
7364 # If we're creating CFLAGS, then look for optional additions. If the user
7365 # set CFLAGS then leave it alone.
7366 #
7367 if test "$test_CFLAGS" != set; then
7368 eval optlist=\"\$${ccbase}${abi1}_cflags_optlist\"
7369 test -n "$optlist" || eval optlist=\"\$${ccbase}${abi2}_cflags_optlist\"
7370
7371 for opt in $optlist; do
7372 eval optflags=\"\$${ccbase}${abi1}_cflags_${opt}\"
7373 test -n "$optflags" || eval optflags=\"\$${ccbase}${abi2}_cflags_${opt}\"
7374 test -n "$optflags" || eval optflags=\"\$${ccbase}_cflags_${opt}\"
7375
7376 for flag in $optflags; do
7377
7378 # ~ represents a space in an option spec
7379 flag=`echo "$flag" | tr '~' ' '`
7380
7381 case $flag in
7382 -march=pentium4 | -march=k8)
7383 # For -march settings which enable SSE2 we exclude certain bad
7384 # gcc versions and we need an OS knowing how to save xmm regs.
7385 #
7386 # This is only for ABI=32, any 64-bit gcc is good and any OS
7387 # knowing x86_64 will know xmm.
7388 #
7389 # -march=k8 was only introduced in gcc 3.3, so we shouldn't need
7390 # the GMP_GCC_PENTIUM4_SSE2 check (for gcc 3.2 and prior). But
7391 # it doesn't hurt to run it anyway, sharing code with the
7392 # pentium4 case.
7393 #
7394 if test "$abi" = 32; then
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc is good for sse2" >&5
7396 $as_echo_n "checking whether gcc is good for sse2... " >&6; }
7397 case `$cc $cflags $cppflags -dumpversion` in
7398 3.[012] | 3.[012].*) result=no ;;
7399 *) result=yes ;;
7400 esac
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7402 $as_echo "$result" >&6; }
7403 if test "$result" = yes; then
7404 :
7405 else
7406 continue
7407 fi
7408
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the operating system supports XMM registers" >&5
7410 $as_echo_n "checking whether the operating system supports XMM registers... " >&6; }
7411 if ${gmp_cv_os_x86_xmm+:} false; then :
7412 $as_echo_n "(cached) " >&6
7413 else
7414 if test "$build" = "$host"; then
7415 # remove anything that might look like compiler output to our "||" expression
7416 rm -f conftest* a.out b.out a.exe a_out.exe
7417 cat >conftest.s <<EOF
7418 .text
7419 main:
7420 _main:
7421 .globl main
7422 .globl _main
7423 .byte 0x0f, 0x57, 0xc0
7424 xorl %eax, %eax
7425 ret
7426 EOF
7427 gmp_compile="$cc $cflags $cppflags conftest.s -o conftest >&5"
7428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7429 (eval $gmp_compile) 2>&5
7430 ac_status=$?
7431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7432 test $ac_status = 0; }; then
7433 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7435 (eval $ac_try) 2>&5
7436 ac_status=$?
7437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7438 test $ac_status = 0; }; }; then
7439 gmp_cv_os_x86_xmm=yes
7440 else
7441 gmp_cv_os_x86_xmm=no
7442 fi
7443 else
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Oops, cannot compile test program" >&5
7445 $as_echo "$as_me: WARNING: Oops, cannot compile test program" >&2;}
7446 fi
7447 rm -f conftest*
7448 fi
7449
7450 if test -z "$gmp_cv_os_x86_xmm"; then
7451 case $host_os in
7452 freebsd[123] | freebsd[123].*)
7453 gmp_cv_os_x86_xmm=no ;;
7454 freebsd*)
7455 gmp_cv_os_x86_xmm=yes ;;
7456 *)
7457 gmp_cv_os_x86_xmm=probably ;;
7458 esac
7459 fi
7460
7461 fi
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_os_x86_xmm" >&5
7463 $as_echo "$gmp_cv_os_x86_xmm" >&6; }
7464
7465 if test "$gmp_cv_os_x86_xmm" = probably; then
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not certain of OS support for xmm when cross compiling." >&5
7467 $as_echo "$as_me: WARNING: Not certain of OS support for xmm when cross compiling." >&2;}
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&5
7469 $as_echo "$as_me: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&2;}
7470 fi
7471
7472 case $gmp_cv_os_x86_xmm in
7473 no)
7474 continue
7475 ;;
7476 *)
7477
7478 ;;
7479 esac
7480
7481 fi
7482 ;;
7483 -no-cpp-precomp)
7484 # special check, avoiding a warning
7485 if test "$ccbase" = gcc; then
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags -no-cpp-precomp" >&5
7487 $as_echo_n "checking compiler $cc $cflags -no-cpp-precomp... " >&6; }
7488 result=no
7489 cat >conftest.c <<EOF
7490 int main () { return 0; }
7491 EOF
7492 gmp_compile="$cc $cflags -no-cpp-precomp conftest.c >conftest.out 2>&1"
7493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7494 (eval $gmp_compile) 2>&5
7495 ac_status=$?
7496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7497 test $ac_status = 0; }; then
7498 if grep "unrecognized option.*-no-cpp-precomp" conftest.out >/dev/null; then : ;
7499 else
7500 result=yes
7501 fi
7502 fi
7503 cat conftest.out >&5
7504 rm -f conftest* a.out b.out a.exe a_out.exe
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7506 $as_echo "$result" >&6; }
7507 if test "$result" = yes; then
7508 cflags="$cflags $flag"
7509 break
7510 else
7511 continue
7512 fi
7513 fi
7514
7515 ;;
7516 -Wa,-m*)
7517 case $host in
7518 alpha*-*-*)
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler $cc $cflags $flag" >&5
7520 $as_echo_n "checking assembler $cc $cflags $flag... " >&6; }
7521 result=no
7522 cat >conftest.c <<EOF
7523 int main () {}
7524 EOF
7525 gmp_compile="$cc $cflags $flag -c conftest.c >conftest.out 2>&1"
7526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7527 (eval $gmp_compile) 2>&5
7528 ac_status=$?
7529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7530 test $ac_status = 0; }; then
7531 if grep "Unknown CPU identifier" conftest.out >/dev/null; then : ;
7532 else
7533 result=yes
7534 fi
7535 fi
7536 cat conftest.out >&5
7537 rm -f conftest*
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7539 $as_echo "$result" >&6; }
7540 if test "$result" = yes; then
7541 :
7542 else
7543 continue
7544 fi
7545
7546 ;;
7547 esac
7548 ;;
7549 -Wa,-oldas)
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cc $cflags $cppflags -Wa,-oldas" >&5
7551 $as_echo_n "checking for $cc $cflags $cppflags -Wa,-oldas... " >&6; }
7552 result=no
7553 cat >conftest.c <<EOF
7554 EOF
7555 echo "with empty conftest.c" >&5
7556 gmp_compile="$cc $cflags $cppflags -c conftest.c >&5 2>&1"
7557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7558 (eval $gmp_compile) 2>&5
7559 ac_status=$?
7560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7561 test $ac_status = 0; }; then : ;
7562 else
7563 # empty fails
7564 gmp_compile="$cc $cflags $cppflags -Wa,-oldas -c conftest.c >&5 2>&1"
7565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7566 (eval $gmp_compile) 2>&5
7567 ac_status=$?
7568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7569 test $ac_status = 0; }; then
7570 # but with -Wa,-oldas it works
7571 result=yes
7572 fi
7573 fi
7574 rm -f conftest*
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7576 $as_echo "$result" >&6; }
7577 if test "$result" = yes; then
7578 cflags="$cflags $flag"
7579 break
7580 else
7581 continue
7582 fi
7583
7584 ;;
7585 esac
7586
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags $flag" >&5
7588 $as_echo_n "checking compiler $cc $cflags $cppflags $flag... " >&6; }
7589 gmp_prog_cc_works=yes
7590
7591 # first see a simple "main()" works, then go on to other checks
7592 if test "$gmp_prog_cc_works" = yes; then
7593 # remove anything that might look like compiler output to our "||" expression
7594 rm -f conftest* a.out b.out a.exe a_out.exe
7595 cat >conftest.c <<EOF
7596
7597 int main () { return 0; }
7598 EOF
7599 echo "Test compile: " >&5
7600 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7602 (eval $gmp_compile) 2>&5
7603 ac_status=$?
7604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7605 test $ac_status = 0; }; then
7606 cc_works_part=yes
7607 if test "$cross_compiling" = no; then
7608 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7610 (eval $ac_try) 2>&5
7611 ac_status=$?
7612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7613 test $ac_status = 0; }; }; then :;
7614 else
7615 cc_works_part=norun
7616 fi
7617 fi
7618 else
7619 cc_works_part=no
7620 fi
7621 if test "$cc_works_part" != yes; then
7622 echo "failed program was:" >&5
7623 cat conftest.c >&5
7624 fi
7625 rm -f conftest* a.out b.out a.exe a_out.exe
7626 case $cc_works_part in
7627 yes)
7628
7629 ;;
7630 no)
7631 gmp_prog_cc_works="no"
7632 ;;
7633 norun)
7634 gmp_prog_cc_works="no, program does not run"
7635 ;;
7636 esac
7637 fi
7638
7639
7640
7641
7642 if test "$gmp_prog_cc_works" = yes; then
7643 # remove anything that might look like compiler output to our "||" expression
7644 rm -f conftest* a.out b.out a.exe a_out.exe
7645 cat >conftest.c <<EOF
7646 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
7647 (without -maix64), hence detecting an unusable compiler */
7648 void *g() { return (void *) 0; }
7649 void *f() { return g(); }
7650
7651 int main () { return 0; }
7652 EOF
7653 echo "Test compile: function pointer return" >&5
7654 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7656 (eval $gmp_compile) 2>&5
7657 ac_status=$?
7658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7659 test $ac_status = 0; }; then
7660 cc_works_part=yes
7661 if test "$cross_compiling" = no; then
7662 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7664 (eval $ac_try) 2>&5
7665 ac_status=$?
7666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7667 test $ac_status = 0; }; }; then :;
7668 else
7669 cc_works_part=norun
7670 fi
7671 fi
7672 else
7673 cc_works_part=no
7674 fi
7675 if test "$cc_works_part" != yes; then
7676 echo "failed program was:" >&5
7677 cat conftest.c >&5
7678 fi
7679 rm -f conftest* a.out b.out a.exe a_out.exe
7680 case $cc_works_part in
7681 yes)
7682
7683 ;;
7684 no)
7685 gmp_prog_cc_works="no, function pointer return"
7686 ;;
7687 norun)
7688 gmp_prog_cc_works="no, function pointer return, program does not run"
7689 ;;
7690 esac
7691 fi
7692
7693
7694
7695
7696 if test "$gmp_prog_cc_works" = yes; then
7697 # remove anything that might look like compiler output to our "||" expression
7698 rm -f conftest* a.out b.out a.exe a_out.exe
7699 cat >conftest.c <<EOF
7700 /* The following provokes an invalid instruction syntax from i386 gcc
7701 -march=pentiumpro on Solaris 2.8. The native sun assembler
7702 requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
7703 least) doesn't know. */
7704 int n;
7705 int cmov () { return (n >= 0 ? n : 0); }
7706
7707 int main () { return 0; }
7708 EOF
7709 echo "Test compile: cmov instruction" >&5
7710 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7712 (eval $gmp_compile) 2>&5
7713 ac_status=$?
7714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7715 test $ac_status = 0; }; then
7716 cc_works_part=yes
7717 if test "$cross_compiling" = no; then
7718 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7720 (eval $ac_try) 2>&5
7721 ac_status=$?
7722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7723 test $ac_status = 0; }; }; then :;
7724 else
7725 cc_works_part=norun
7726 fi
7727 fi
7728 else
7729 cc_works_part=no
7730 fi
7731 if test "$cc_works_part" != yes; then
7732 echo "failed program was:" >&5
7733 cat conftest.c >&5
7734 fi
7735 rm -f conftest* a.out b.out a.exe a_out.exe
7736 case $cc_works_part in
7737 yes)
7738
7739 ;;
7740 no)
7741 gmp_prog_cc_works="no, cmov instruction"
7742 ;;
7743 norun)
7744 gmp_prog_cc_works="no, cmov instruction, program does not run"
7745 ;;
7746 esac
7747 fi
7748
7749
7750
7751
7752 if test "$gmp_prog_cc_works" = yes; then
7753 # remove anything that might look like compiler output to our "||" expression
7754 rm -f conftest* a.out b.out a.exe a_out.exe
7755 cat >conftest.c <<EOF
7756 /* The following provokes a linker invocation problem with gcc 3.0.3
7757 on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630
7758 option causes gcc to incorrectly select the 32-bit libgcc.a, not
7759 the 64-bit one, and consequently it misses out on the __fixunsdfdi
7760 helper (double -> uint64 conversion). */
7761 double d;
7762 unsigned long gcc303 () { return (unsigned long) d; }
7763
7764 int main () { return 0; }
7765 EOF
7766 echo "Test compile: double -> ulong conversion" >&5
7767 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7769 (eval $gmp_compile) 2>&5
7770 ac_status=$?
7771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7772 test $ac_status = 0; }; then
7773 cc_works_part=yes
7774 if test "$cross_compiling" = no; then
7775 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7777 (eval $ac_try) 2>&5
7778 ac_status=$?
7779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7780 test $ac_status = 0; }; }; then :;
7781 else
7782 cc_works_part=norun
7783 fi
7784 fi
7785 else
7786 cc_works_part=no
7787 fi
7788 if test "$cc_works_part" != yes; then
7789 echo "failed program was:" >&5
7790 cat conftest.c >&5
7791 fi
7792 rm -f conftest* a.out b.out a.exe a_out.exe
7793 case $cc_works_part in
7794 yes)
7795
7796 ;;
7797 no)
7798 gmp_prog_cc_works="no, double -> ulong conversion"
7799 ;;
7800 norun)
7801 gmp_prog_cc_works="no, double -> ulong conversion, program does not run"
7802 ;;
7803 esac
7804 fi
7805
7806
7807
7808
7809 if test "$gmp_prog_cc_works" = yes; then
7810 # remove anything that might look like compiler output to our "||" expression
7811 rm -f conftest* a.out b.out a.exe a_out.exe
7812 cat >conftest.c <<EOF
7813 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
7814 the assembler doesn't know hppa 2.0 instructions. fneg is a 2.0
7815 instruction, and a negation like this comes out using it. */
7816 double fneg_data;
7817 unsigned long fneg () { return -fneg_data; }
7818
7819 int main () { return 0; }
7820 EOF
7821 echo "Test compile: double negation" >&5
7822 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7824 (eval $gmp_compile) 2>&5
7825 ac_status=$?
7826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7827 test $ac_status = 0; }; then
7828 cc_works_part=yes
7829 if test "$cross_compiling" = no; then
7830 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7832 (eval $ac_try) 2>&5
7833 ac_status=$?
7834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7835 test $ac_status = 0; }; }; then :;
7836 else
7837 cc_works_part=norun
7838 fi
7839 fi
7840 else
7841 cc_works_part=no
7842 fi
7843 if test "$cc_works_part" != yes; then
7844 echo "failed program was:" >&5
7845 cat conftest.c >&5
7846 fi
7847 rm -f conftest* a.out b.out a.exe a_out.exe
7848 case $cc_works_part in
7849 yes)
7850
7851 ;;
7852 no)
7853 gmp_prog_cc_works="no, double negation"
7854 ;;
7855 norun)
7856 gmp_prog_cc_works="no, double negation, program does not run"
7857 ;;
7858 esac
7859 fi
7860
7861
7862
7863
7864 if test "$gmp_prog_cc_works" = yes; then
7865 # remove anything that might look like compiler output to our "||" expression
7866 rm -f conftest* a.out b.out a.exe a_out.exe
7867 cat >conftest.c <<EOF
7868 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
7869 (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
7870 those instructions. Not sure how much of the gmp code will come out
7871 wanting sse2, but it's easiest to reject an option we know is bad. */
7872 double ftod_data;
7873 float ftod () { return (float) ftod_data; }
7874
7875 int main () { return 0; }
7876 EOF
7877 echo "Test compile: double -> float conversion" >&5
7878 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7880 (eval $gmp_compile) 2>&5
7881 ac_status=$?
7882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7883 test $ac_status = 0; }; then
7884 cc_works_part=yes
7885 if test "$cross_compiling" = no; then
7886 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7888 (eval $ac_try) 2>&5
7889 ac_status=$?
7890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7891 test $ac_status = 0; }; }; then :;
7892 else
7893 cc_works_part=norun
7894 fi
7895 fi
7896 else
7897 cc_works_part=no
7898 fi
7899 if test "$cc_works_part" != yes; then
7900 echo "failed program was:" >&5
7901 cat conftest.c >&5
7902 fi
7903 rm -f conftest* a.out b.out a.exe a_out.exe
7904 case $cc_works_part in
7905 yes)
7906
7907 ;;
7908 no)
7909 gmp_prog_cc_works="no, double -> float conversion"
7910 ;;
7911 norun)
7912 gmp_prog_cc_works="no, double -> float conversion, program does not run"
7913 ;;
7914 esac
7915 fi
7916
7917
7918
7919
7920 if test "$gmp_prog_cc_works" = yes; then
7921 # remove anything that might look like compiler output to our "||" expression
7922 rm -f conftest* a.out b.out a.exe a_out.exe
7923 cat >conftest.c <<EOF
7924 /* The following provokes an internal compiler error from gcc version
7925 "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
7926 values being spilled into floating point registers. The problem doesn't
7927 show up all the time, but has occurred enough in GMP for us to reject
7928 this compiler+flags. */
7929 #include <string.h> /* for memcpy */
7930 struct try_t
7931 {
7932 char dst[2];
7933 char size;
7934 long d0, d1, d2, d3, d4, d5, d6;
7935 char overlap;
7936 };
7937 struct try_t param[6];
7938 int
7939 param_init ()
7940 {
7941 struct try_t *p;
7942 memcpy (p, &param[ 2 ], sizeof (*p));
7943 memcpy (p, &param[ 2 ], sizeof (*p));
7944 p->size = 2;
7945 memcpy (p, &param[ 1 ], sizeof (*p));
7946 p->dst[0] = 1;
7947 p->overlap = 2;
7948 memcpy (p, &param[ 3 ], sizeof (*p));
7949 p->dst[0] = 1;
7950 p->overlap = 8;
7951 memcpy (p, &param[ 4 ], sizeof (*p));
7952 memcpy (p, &param[ 4 ], sizeof (*p));
7953 p->overlap = 8;
7954 memcpy (p, &param[ 5 ], sizeof (*p));
7955 memcpy (p, &param[ 5 ], sizeof (*p));
7956 memcpy (p, &param[ 5 ], sizeof (*p));
7957 return 0;
7958 }
7959
7960 int main () { return 0; }
7961 EOF
7962 echo "Test compile: gnupro alpha ev6 char spilling" >&5
7963 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7965 (eval $gmp_compile) 2>&5
7966 ac_status=$?
7967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7968 test $ac_status = 0; }; then
7969 cc_works_part=yes
7970 if test "$cross_compiling" = no; then
7971 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7973 (eval $ac_try) 2>&5
7974 ac_status=$?
7975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7976 test $ac_status = 0; }; }; then :;
7977 else
7978 cc_works_part=norun
7979 fi
7980 fi
7981 else
7982 cc_works_part=no
7983 fi
7984 if test "$cc_works_part" != yes; then
7985 echo "failed program was:" >&5
7986 cat conftest.c >&5
7987 fi
7988 rm -f conftest* a.out b.out a.exe a_out.exe
7989 case $cc_works_part in
7990 yes)
7991
7992 ;;
7993 no)
7994 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling"
7995 ;;
7996 norun)
7997 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run"
7998 ;;
7999 esac
8000 fi
8001
8002
8003
8004
8005 # __builtin_alloca is not available everywhere, check it exists before
8006 # seeing that it works
8007 if test "$gmp_prog_cc_works" = yes; then
8008 # remove anything that might look like compiler output to our "||" expression
8009 rm -f conftest* a.out b.out a.exe a_out.exe
8010 cat >conftest.c <<EOF
8011 int k; int foo () { __builtin_alloca (k); }
8012 EOF
8013 echo "Test compile: __builtin_alloca availability" >&5
8014 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
8015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
8016 (eval $gmp_compile) 2>&5
8017 ac_status=$?
8018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8019 test $ac_status = 0; }; then
8020 cc_works_part=yes
8021 if test "$cross_compiling" = no; then
8022 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
8023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8024 (eval $ac_try) 2>&5
8025 ac_status=$?
8026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8027 test $ac_status = 0; }; }; then :;
8028 else
8029 cc_works_part=norun
8030 fi
8031 fi
8032 else
8033 cc_works_part=no
8034 fi
8035 if test "$cc_works_part" != yes; then
8036 echo "failed program was:" >&5
8037 cat conftest.c >&5
8038 fi
8039 rm -f conftest* a.out b.out a.exe a_out.exe
8040 case $cc_works_part in
8041 yes)
8042 if test "$gmp_prog_cc_works" = yes; then
8043 # remove anything that might look like compiler output to our "||" expression
8044 rm -f conftest* a.out b.out a.exe a_out.exe
8045 cat >conftest.c <<EOF
8046 /* The following provokes an internal compiler error from Itanium HP-UX cc
8047 under +O2 or higher. We use this sort of code in mpn/generic/mul_fft.c. */
8048 int k;
8049 int foo ()
8050 {
8051 int i, **a;
8052 a = __builtin_alloca (k);
8053 for (i = 0; i <= k; i++)
8054 a[i] = __builtin_alloca (1 << i);
8055 }
8056
8057 int main () { return 0; }
8058 EOF
8059 echo "Test compile: alloca array" >&5
8060 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
8061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
8062 (eval $gmp_compile) 2>&5
8063 ac_status=$?
8064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8065 test $ac_status = 0; }; then
8066 cc_works_part=yes
8067 if test "$cross_compiling" = no; then
8068 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
8069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8070 (eval $ac_try) 2>&5
8071 ac_status=$?
8072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8073 test $ac_status = 0; }; }; then :;
8074 else
8075 cc_works_part=norun
8076 fi
8077 fi
8078 else
8079 cc_works_part=no
8080 fi
8081 if test "$cc_works_part" != yes; then
8082 echo "failed program was:" >&5
8083 cat conftest.c >&5
8084 fi
8085 rm -f conftest* a.out b.out a.exe a_out.exe
8086 case $cc_works_part in
8087 yes)
8088
8089 ;;
8090 no)
8091 gmp_prog_cc_works="no, alloca array"
8092 ;;
8093 norun)
8094 gmp_prog_cc_works="no, alloca array, program does not run"
8095 ;;
8096 esac
8097 fi
8098
8099
8100
8101 ;;
8102 no)
8103
8104 ;;
8105 norun)
8106
8107 ;;
8108 esac
8109 fi
8110
8111
8112 if test "$gmp_prog_cc_works" = yes; then
8113 # remove anything that might look like compiler output to our "||" expression
8114 rm -f conftest* a.out b.out a.exe a_out.exe
8115 cat >conftest.c <<EOF
8116 /* The following provokes an internal error from the assembler on
8117 power2-ibm-aix4.3.1.0. gcc -mrios2 compiles to nabs+fcirz, and this
8118 results in "Internal error related to the source program domain".
8119
8120 For reference it seems to be the combination of nabs+fcirz which is bad,
8121 not either alone. This sort of thing occurs in mpz/get_str.c with the
8122 way double chars_per_bit_exactly is applied in MPN_SIZEINBASE. Perhaps
8123 if that code changes to a scaled-integer style then we won't need this
8124 test. */
8125
8126 double fp[1];
8127 int x;
8128 int f ()
8129 {
8130 int a;
8131 a = (x >= 0 ? x : -x);
8132 return a * fp[0];
8133 }
8134
8135 int main () { return 0; }
8136 EOF
8137 echo "Test compile: abs int -> double conversion" >&5
8138 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
8139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
8140 (eval $gmp_compile) 2>&5
8141 ac_status=$?
8142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8143 test $ac_status = 0; }; then
8144 cc_works_part=yes
8145 if test "$cross_compiling" = no; then
8146 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
8147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8148 (eval $ac_try) 2>&5
8149 ac_status=$?
8150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8151 test $ac_status = 0; }; }; then :;
8152 else
8153 cc_works_part=norun
8154 fi
8155 fi
8156 else
8157 cc_works_part=no
8158 fi
8159 if test "$cc_works_part" != yes; then
8160 echo "failed program was:" >&5
8161 cat conftest.c >&5
8162 fi
8163 rm -f conftest* a.out b.out a.exe a_out.exe
8164 case $cc_works_part in
8165 yes)
8166
8167 ;;
8168 no)
8169 gmp_prog_cc_works="no, abs int -> double conversion"
8170 ;;
8171 norun)
8172 gmp_prog_cc_works="no, abs int -> double conversion, program does not run"
8173 ;;
8174 esac
8175 fi
8176
8177
8178
8179
8180 if test "$gmp_prog_cc_works" = yes; then
8181 # remove anything that might look like compiler output to our "||" expression
8182 rm -f conftest* a.out b.out a.exe a_out.exe
8183 cat >conftest.c <<EOF
8184 /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
8185 Extracted from tests/mpn/t-iord_u.c. Causes Apple's gcc 3.3 build 1640 and
8186 1666 to segfault with e.g., -O2 -mpowerpc64. */
8187
8188 #if defined (__GNUC__) && ! defined (__cplusplus)
8189 typedef unsigned long long t1;typedef t1*t2;
8190 void g(){}
8191 void h(){}
8192 static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
8193 {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;}
8194 void f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
8195 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();}}
8196 #else
8197 int dummy;
8198 #endif
8199
8200 int main () { return 0; }
8201 EOF
8202 echo "Test compile: long long reliability test 1" >&5
8203 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
8204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
8205 (eval $gmp_compile) 2>&5
8206 ac_status=$?
8207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8208 test $ac_status = 0; }; then
8209 cc_works_part=yes
8210 if test "$cross_compiling" = no; then
8211 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
8212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8213 (eval $ac_try) 2>&5
8214 ac_status=$?
8215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8216 test $ac_status = 0; }; }; then :;
8217 else
8218 cc_works_part=norun
8219 fi
8220 fi
8221 else
8222 cc_works_part=no
8223 fi
8224 if test "$cc_works_part" != yes; then
8225 echo "failed program was:" >&5
8226 cat conftest.c >&5
8227 fi
8228 rm -f conftest* a.out b.out a.exe a_out.exe
8229 case $cc_works_part in
8230 yes)
8231
8232 ;;
8233 no)
8234 gmp_prog_cc_works="no, long long reliability test 1"
8235 ;;
8236 norun)
8237 gmp_prog_cc_works="no, long long reliability test 1, program does not run"
8238 ;;
8239 esac
8240 fi
8241
8242
8243
8244
8245 if test "$gmp_prog_cc_works" = yes; then
8246 # remove anything that might look like compiler output to our "||" expression
8247 rm -f conftest* a.out b.out a.exe a_out.exe
8248 cat >conftest.c <<EOF
8249 /* The following provokes an internal compiler error on powerpc-apple-darwin.
8250 Extracted from mpz/cfdiv_q_2exp.c. Causes Apple's gcc 3.3 build 1640 and
8251 1666 to get an ICE with -O1 -mpowerpc64. */
8252
8253 #if defined (__GNUC__) && ! defined (__cplusplus)
8254 int g();
8255 void 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();}
8256 int g(){return 0;}
8257 #else
8258 int dummy;
8259 #endif
8260
8261 int main () { return 0; }
8262 EOF
8263 echo "Test compile: long long reliability test 2" >&5
8264 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
8265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
8266 (eval $gmp_compile) 2>&5
8267 ac_status=$?
8268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8269 test $ac_status = 0; }; then
8270 cc_works_part=yes
8271 if test "$cross_compiling" = no; then
8272 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
8273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8274 (eval $ac_try) 2>&5
8275 ac_status=$?
8276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8277 test $ac_status = 0; }; }; then :;
8278 else
8279 cc_works_part=norun
8280 fi
8281 fi
8282 else
8283 cc_works_part=no
8284 fi
8285 if test "$cc_works_part" != yes; then
8286 echo "failed program was:" >&5
8287 cat conftest.c >&5
8288 fi
8289 rm -f conftest* a.out b.out a.exe a_out.exe
8290 case $cc_works_part in
8291 yes)
8292
8293 ;;
8294 no)
8295 gmp_prog_cc_works="no, long long reliability test 2"
8296 ;;
8297 norun)
8298 gmp_prog_cc_works="no, long long reliability test 2, program does not run"
8299 ;;
8300 esac
8301 fi
8302
8303
8304
8305
8306 if test "$gmp_prog_cc_works" = yes; then
8307 # remove anything that might look like compiler output to our "||" expression
8308 rm -f conftest* a.out b.out a.exe a_out.exe
8309 cat >conftest.c <<EOF
8310 /* Provokes an ICE on i386-freebsd with the FreeBSD-hacked gcc, under
8311 -O2 -march=amdfam10. We call helper functions here "open" and "close" in
8312 order for linking to succeed. */
8313
8314 #if defined (__GNUC__) && ! defined (__cplusplus)
8315 int open(int*,int*,int);void*close(int);void g(int*rp,int*up,int un){
8316 __builtin_expect(un<=0x7f00,1)?__builtin_alloca(un):close(un);if(__builtin_clzl
8317 (up[un])){open(rp,up,un);while(1){if(rp[un-1]!=0)break;un--;}}}
8318 #else
8319 int dummy;
8320 #endif
8321
8322 int main () { return 0; }
8323 EOF
8324 echo "Test compile: freebsd hacked gcc" >&5
8325 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
8326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
8327 (eval $gmp_compile) 2>&5
8328 ac_status=$?
8329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8330 test $ac_status = 0; }; then
8331 cc_works_part=yes
8332 if test "$cross_compiling" = no; then
8333 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
8334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8335 (eval $ac_try) 2>&5
8336 ac_status=$?
8337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8338 test $ac_status = 0; }; }; then :;
8339 else
8340 cc_works_part=norun
8341 fi
8342 fi
8343 else
8344 cc_works_part=no
8345 fi
8346 if test "$cc_works_part" != yes; then
8347 echo "failed program was:" >&5
8348 cat conftest.c >&5
8349 fi
8350 rm -f conftest* a.out b.out a.exe a_out.exe
8351 case $cc_works_part in
8352 yes)
8353
8354 ;;
8355 no)
8356 gmp_prog_cc_works="no, freebsd hacked gcc"
8357 ;;
8358 norun)
8359 gmp_prog_cc_works="no, freebsd hacked gcc, program does not run"
8360 ;;
8361 esac
8362 fi
8363
8364
8365
8366
8367 if test "$gmp_prog_cc_works" = yes; then
8368 # remove anything that might look like compiler output to our "||" expression
8369 rm -f conftest* a.out b.out a.exe a_out.exe
8370 cat >conftest.c <<EOF
8371 /* The following is mis-compiled by HP ia-64 cc version
8372 cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
8373 under "cc +O3", both in +DD32 and +DD64 modes. The mpn_lshift_com gets
8374 inlined and its return value somehow botched to be 0 instead of 1. This
8375 arises in the real mpn_lshift_com in mul_fft.c. A lower optimization
8376 level, like +O2 seems ok. This code needs to be run to show the problem,
8377 but that's fine, the offending cc is a native-only compiler so we don't
8378 have to worry about cross compiling. */
8379
8380 #if ! defined (__cplusplus)
8381 unsigned long
8382 lshift_com (rp, up, n, cnt)
8383 unsigned long *rp;
8384 unsigned long *up;
8385 long n;
8386 unsigned cnt;
8387 {
8388 unsigned long retval, high_limb, low_limb;
8389 unsigned tnc;
8390 long i;
8391 tnc = 8 * sizeof (unsigned long) - cnt;
8392 low_limb = *up++;
8393 retval = low_limb >> tnc;
8394 high_limb = low_limb << cnt;
8395 for (i = n - 1; i != 0; i--)
8396 {
8397 low_limb = *up++;
8398 *rp++ = ~(high_limb | (low_limb >> tnc));
8399 high_limb = low_limb << cnt;
8400 }
8401 return retval;
8402 }
8403 int
8404 main ()
8405 {
8406 unsigned long cy, rp[2], up[2];
8407 up[0] = ~ 0L;
8408 up[1] = 0;
8409 cy = lshift_com (rp, up, 2L, 1);
8410 if (cy != 1L)
8411 return 1;
8412 return 0;
8413 }
8414 #else
8415 int
8416 main ()
8417 {
8418 return 0;
8419 }
8420 #endif
8421
8422 EOF
8423 echo "Test compile: mpn_lshift_com optimization" >&5
8424 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
8425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
8426 (eval $gmp_compile) 2>&5
8427 ac_status=$?
8428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8429 test $ac_status = 0; }; then
8430 cc_works_part=yes
8431 if test "$cross_compiling" = no; then
8432 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
8433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8434 (eval $ac_try) 2>&5
8435 ac_status=$?
8436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8437 test $ac_status = 0; }; }; then :;
8438 else
8439 cc_works_part=norun
8440 fi
8441 fi
8442 else
8443 cc_works_part=no
8444 fi
8445 if test "$cc_works_part" != yes; then
8446 echo "failed program was:" >&5
8447 cat conftest.c >&5
8448 fi
8449 rm -f conftest* a.out b.out a.exe a_out.exe
8450 case $cc_works_part in
8451 yes)
8452
8453 ;;
8454 no)
8455 gmp_prog_cc_works="no, mpn_lshift_com optimization"
8456 ;;
8457 norun)
8458 gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run"
8459 ;;
8460 esac
8461 fi
8462
8463
8464
8465 if test "$gmp_prog_cc_works" = yes; then
8466 # remove anything that might look like compiler output to our "||" expression
8467 rm -f conftest* a.out b.out a.exe a_out.exe
8468 cat >conftest.c <<EOF
8469 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
8470 "icc -O3", After several calls, the function writes partial garbage to
8471 the result vector. Perhaps relates to the chk.a.nc insn. This code needs
8472 to be run to show the problem, but that's fine, the offending cc is a
8473 native-only compiler so we don't have to worry about cross compiling. */
8474
8475 #if ! defined (__cplusplus)
8476 #include <stdlib.h>
8477 void
8478 lshift_com (rp, up, n, cnt)
8479 unsigned long *rp;
8480 unsigned long *up;
8481 long n;
8482 unsigned cnt;
8483 {
8484 unsigned long high_limb, low_limb;
8485 unsigned tnc;
8486 long i;
8487 up += n;
8488 rp += n;
8489 tnc = 8 * sizeof (unsigned long) - cnt;
8490 low_limb = *--up;
8491 high_limb = low_limb << cnt;
8492 for (i = n - 1; i != 0; i--)
8493 {
8494 low_limb = *--up;
8495 *--rp = ~(high_limb | (low_limb >> tnc));
8496 high_limb = low_limb << cnt;
8497 }
8498 *--rp = ~high_limb;
8499 }
8500 int
8501 main ()
8502 {
8503 unsigned long *r, *r2;
8504 unsigned long a[88 + 1];
8505 long i;
8506 for (i = 0; i < 88 + 1; i++)
8507 a[i] = ~0L;
8508 r = calloc (10000, sizeof (unsigned long));
8509 r2 = r;
8510 for (i = 0; i < 528; i += 23)
8511 {
8512 lshift_com (r2, a,
8513 i / (8 * sizeof (unsigned long)) + 1,
8514 i % (8 * sizeof (unsigned long)));
8515 r2 += 88 + 1;
8516 }
8517 if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
8518 r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
8519 abort ();
8520 free (r);
8521 return 0;
8522 }
8523 #else
8524 int
8525 main ()
8526 {
8527 return 0;
8528 }
8529 #endif
8530
8531 EOF
8532 echo "Test compile: mpn_lshift_com optimization 2" >&5
8533 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
8534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
8535 (eval $gmp_compile) 2>&5
8536 ac_status=$?
8537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8538 test $ac_status = 0; }; then
8539 cc_works_part=yes
8540 if test "$cross_compiling" = no; then
8541 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
8542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8543 (eval $ac_try) 2>&5
8544 ac_status=$?
8545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8546 test $ac_status = 0; }; }; then :;
8547 else
8548 cc_works_part=norun
8549 fi
8550 fi
8551 else
8552 cc_works_part=no
8553 fi
8554 if test "$cc_works_part" != yes; then
8555 echo "failed program was:" >&5
8556 cat conftest.c >&5
8557 fi
8558 rm -f conftest* a.out b.out a.exe a_out.exe
8559 case $cc_works_part in
8560 yes)
8561
8562 ;;
8563 no)
8564 gmp_prog_cc_works="no, mpn_lshift_com optimization 2"
8565 ;;
8566 norun)
8567 gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run"
8568 ;;
8569 esac
8570 fi
8571
8572
8573
8574
8575 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
8576 # by recent versions of gcc.
8577 #
8578 if test "$gmp_prog_cc_works" = yes; then
8579 case $host in
8580 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*)
8581 # this problem only arises in PIC code, so don't need to test when
8582 # --disable-shared. We don't necessarily have $enable_shared set to
8583 # yes at this point, it will still be unset for the default (which is
8584 # yes); hence the use of "!= no".
8585 if test "$enable_shared" != no; then
8586 echo "Testing gcc GOT with eax emitted" >&5
8587 cat >conftest.c <<\EOF
8588 int foo;
8589 int bar () { return foo; }
8590 EOF
8591 tmp_got_emitted=no
8592 gmp_compile="$cc $cflags $cppflags $flag -fPIC -S conftest.c >&5 2>&1"
8593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
8594 (eval $gmp_compile) 2>&5
8595 ac_status=$?
8596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8597 test $ac_status = 0; }; then
8598 if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
8599 tmp_got_emitted=yes
8600 fi
8601 fi
8602 rm -f conftest.*
8603 echo "Result: $tmp_got_emitted" >&5
8604 if test "$tmp_got_emitted" = yes; then
8605 echo "Testing gas GOT with eax good" >&5
8606 cat >conftest.awk <<\EOF
8607 BEGIN {
8608 want[0] = "001"
8609 want[1] = "043"
8610 want[2] = "105"
8611 want[3] = "147"
8612 want[4] = "211"
8613 want[5] = "253"
8614 want[6] = "315"
8615 want[7] = "357"
8616
8617 want[8] = "005"
8618 want[9] = "002"
8619 want[10] = "000"
8620 want[11] = "000"
8621 want[12] = "000"
8622
8623 want[13] = "376"
8624 want[14] = "334"
8625 want[15] = "272"
8626 want[16] = "230"
8627 want[17] = "166"
8628 want[18] = "124"
8629 want[19] = "062"
8630 want[20] = "020"
8631
8632 result = "yes"
8633 }
8634 {
8635 for (f = 2; f <= NF; f++)
8636 {
8637 for (i = 0; i < 20; i++)
8638 got[i] = got[i+1];
8639 got[20] = $f;
8640
8641 found = 1
8642 for (i = 0; i < 21; i++)
8643 if (got[i] != want[i])
8644 {
8645 found = 0
8646 break
8647 }
8648 if (found)
8649 {
8650 result = "no"
8651 exit
8652 }
8653 }
8654 }
8655 END {
8656 print result
8657 }
8658 EOF
8659 cat >conftest.s <<\EOF
8660 .text
8661 .byte 1, 35, 69, 103, 137, 171, 205, 239
8662 addl $_GLOBAL_OFFSET_TABLE_, %eax
8663 .byte 254, 220, 186, 152, 118, 84, 50, 16
8664 EOF
8665 tmp_got_good=yes
8666 gmp_compile="$cc $cflags $cppflags $flag -fPIC -o conftest.o -c conftest.s >&5 2>&1"
8667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
8668 (eval $gmp_compile) 2>&5
8669 ac_status=$?
8670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8671 test $ac_status = 0; }; then
8672 tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
8673 fi
8674 rm -f conftest.*
8675 echo "Result: $tmp_got_good" >&5
8676 if test "$tmp_got_good" = no; then
8677 gmp_prog_cc_works="no, bad gas GOT with eax"
8678 else
8679 :
8680 fi
8681
8682 else
8683 :
8684 fi
8685
8686 fi
8687 ;;
8688 esac
8689 fi
8690
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
8692 $as_echo "$gmp_prog_cc_works" >&6; }
8693 case $gmp_prog_cc_works in
8694 yes)
8695 cflags="$cflags $flag"
8696 break
8697 ;;
8698 *)
8699
8700 ;;
8701 esac
8702
8703 done
8704 done
8705 fi
8706
8707 ABI="$abi"
8708 CC="$cc"
8709 CFLAGS="$cflags"
8710 CPPFLAGS="$cppflags"
8711
8712 # Could easily have this in config.h too, if desired.
8713 ABI_nodots=`echo $ABI | sed 's/\./_/'`
8714
8715 echo "define_not_for_expansion(\`HAVE_ABI_$ABI_nodots')" >> $gmp_tmpconfigm4p
8716
8717
8718 eval GMP_NONSTD_ABI=\"\$GMP_NONSTD_ABI_$ABI_nodots\"
8719
8720 # GMP_LDFLAGS substitution, selected according to ABI.
8721 # These are needed on libgmp.la and libmp.la, but currently not on
8722 # convenience libraries like tune/libspeed.la or mpz/libmpz.la.
8723 #
8724 eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
8725 test -n "$GMP_LDFLAGS" || eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
8726
8727
8728
8729
8730 # extra_functions, selected according to ABI
8731 eval tmp=\"\$extra_functions$abi1\"
8732 test -n "$tmp" || eval tmp=\"\$extra_functions$abi2\"
8733 extra_functions="$tmp"
8734
8735
8736 # Cycle counter, selected according to ABI.
8737 #
8738 eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi1\"
8739 test -n "$tmp" || eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi2\"
8740 SPEED_CYCLECOUNTER_OBJ="$tmp"
8741 eval tmp=\"\$cyclecounter_size$abi1\"
8742 test -n "$tmp" || eval tmp=\"\$cyclecounter_size$abi2\"
8743 cyclecounter_size="$tmp"
8744
8745 if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
8746
8747 cat >>confdefs.h <<_ACEOF
8748 #define HAVE_SPEED_CYCLECOUNTER $cyclecounter_size
8749 _ACEOF
8750
8751 fi
8752
8753
8754
8755 # Calling conventions checking, selected according to ABI.
8756 #
8757 eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi1\"
8758 test -n "$tmp" || eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi2\"
8759 if test "$enable_assembly" = "yes"; then
8760 CALLING_CONVENTIONS_OBJS="$tmp"
8761 else
8762 CALLING_CONVENTIONS_OBJS=""
8763 fi
8764
8765 if test -n "$CALLING_CONVENTIONS_OBJS"; then
8766
8767 $as_echo "#define HAVE_CALLING_CONVENTIONS 1" >>confdefs.h
8768
8769 fi
8770
8771
8772 fi
8773
8774
8775 # If the user gave an MPN_PATH, use that verbatim, otherwise choose
8776 # according to the ABI and add "generic".
8777 #
8778 if test -n "$MPN_PATH"; then
8779 path="$MPN_PATH"
8780 else
8781 eval tmp=\"\$path$abi1\"
8782 test -n "$tmp" || eval tmp=\"\$path$abi2\"
8783 path="$tmp generic"
8784 fi
8785
8786
8787 # Long long limb setup for gmp.h.
8788 case $limb_chosen in
8789 longlong) DEFN_LONG_LONG_LIMB="#define _LONG_LONG_LIMB 1" ;;
8790 *) DEFN_LONG_LONG_LIMB="/* #undef _LONG_LONG_LIMB */" ;;
8791 esac
8792
8793
8794
8795 # The C compiler and preprocessor, put into ANSI mode if possible.
8796 ac_ext=c
8797 ac_cpp='$CPP $CPPFLAGS'
8798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8801 if test -n "$ac_tool_prefix"; then
8802 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
8803 set dummy ${ac_tool_prefix}gcc; ac_word=$2
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805 $as_echo_n "checking for $ac_word... " >&6; }
8806 if ${ac_cv_prog_CC+:} false; then :
8807 $as_echo_n "(cached) " >&6
8808 else
8809 if test -n "$CC"; then
8810 ac_cv_prog_CC="$CC" # Let the user override the test.
8811 else
8812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813 for as_dir in $PATH
8814 do
8815 IFS=$as_save_IFS
8816 test -z "$as_dir" && as_dir=.
8817 for ac_exec_ext in '' $ac_executable_extensions; do
8818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8819 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8821 break 2
8822 fi
8823 done
8824 done
8825 IFS=$as_save_IFS
8826
8827 fi
8828 fi
8829 CC=$ac_cv_prog_CC
8830 if test -n "$CC"; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8832 $as_echo "$CC" >&6; }
8833 else
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835 $as_echo "no" >&6; }
8836 fi
8837
8838
8839 fi
8840 if test -z "$ac_cv_prog_CC"; then
8841 ac_ct_CC=$CC
8842 # Extract the first word of "gcc", so it can be a program name with args.
8843 set dummy gcc; ac_word=$2
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8845 $as_echo_n "checking for $ac_word... " >&6; }
8846 if ${ac_cv_prog_ac_ct_CC+:} false; then :
8847 $as_echo_n "(cached) " >&6
8848 else
8849 if test -n "$ac_ct_CC"; then
8850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8851 else
8852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8853 for as_dir in $PATH
8854 do
8855 IFS=$as_save_IFS
8856 test -z "$as_dir" && as_dir=.
8857 for ac_exec_ext in '' $ac_executable_extensions; do
8858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8859 ac_cv_prog_ac_ct_CC="gcc"
8860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8861 break 2
8862 fi
8863 done
8864 done
8865 IFS=$as_save_IFS
8866
8867 fi
8868 fi
8869 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8870 if test -n "$ac_ct_CC"; then
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8872 $as_echo "$ac_ct_CC" >&6; }
8873 else
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8875 $as_echo "no" >&6; }
8876 fi
8877
8878 if test "x$ac_ct_CC" = x; then
8879 CC=""
8880 else
8881 case $cross_compiling:$ac_tool_warned in
8882 yes:)
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8885 ac_tool_warned=yes ;;
8886 esac
8887 CC=$ac_ct_CC
8888 fi
8889 else
8890 CC="$ac_cv_prog_CC"
8891 fi
8892
8893 if test -z "$CC"; then
8894 if test -n "$ac_tool_prefix"; then
8895 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
8896 set dummy ${ac_tool_prefix}cc; ac_word=$2
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8898 $as_echo_n "checking for $ac_word... " >&6; }
8899 if ${ac_cv_prog_CC+:} false; then :
8900 $as_echo_n "(cached) " >&6
8901 else
8902 if test -n "$CC"; then
8903 ac_cv_prog_CC="$CC" # Let the user override the test.
8904 else
8905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906 for as_dir in $PATH
8907 do
8908 IFS=$as_save_IFS
8909 test -z "$as_dir" && as_dir=.
8910 for ac_exec_ext in '' $ac_executable_extensions; do
8911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8912 ac_cv_prog_CC="${ac_tool_prefix}cc"
8913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8914 break 2
8915 fi
8916 done
8917 done
8918 IFS=$as_save_IFS
8919
8920 fi
8921 fi
8922 CC=$ac_cv_prog_CC
8923 if test -n "$CC"; then
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8925 $as_echo "$CC" >&6; }
8926 else
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928 $as_echo "no" >&6; }
8929 fi
8930
8931
8932 fi
8933 fi
8934 if test -z "$CC"; then
8935 # Extract the first word of "cc", so it can be a program name with args.
8936 set dummy cc; ac_word=$2
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8938 $as_echo_n "checking for $ac_word... " >&6; }
8939 if ${ac_cv_prog_CC+:} false; then :
8940 $as_echo_n "(cached) " >&6
8941 else
8942 if test -n "$CC"; then
8943 ac_cv_prog_CC="$CC" # Let the user override the test.
8944 else
8945 ac_prog_rejected=no
8946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8947 for as_dir in $PATH
8948 do
8949 IFS=$as_save_IFS
8950 test -z "$as_dir" && as_dir=.
8951 for ac_exec_ext in '' $ac_executable_extensions; do
8952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8953 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
8954 ac_prog_rejected=yes
8955 continue
8956 fi
8957 ac_cv_prog_CC="cc"
8958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8959 break 2
8960 fi
8961 done
8962 done
8963 IFS=$as_save_IFS
8964
8965 if test $ac_prog_rejected = yes; then
8966 # We found a bogon in the path, so make sure we never use it.
8967 set dummy $ac_cv_prog_CC
8968 shift
8969 if test $# != 0; then
8970 # We chose a different compiler from the bogus one.
8971 # However, it has the same basename, so the bogon will be chosen
8972 # first if we set CC to just the basename; use the full file name.
8973 shift
8974 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8975 fi
8976 fi
8977 fi
8978 fi
8979 CC=$ac_cv_prog_CC
8980 if test -n "$CC"; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8982 $as_echo "$CC" >&6; }
8983 else
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8986 fi
8987
8988
8989 fi
8990 if test -z "$CC"; then
8991 if test -n "$ac_tool_prefix"; then
8992 for ac_prog in cl.exe
8993 do
8994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997 $as_echo_n "checking for $ac_word... " >&6; }
8998 if ${ac_cv_prog_CC+:} false; then :
8999 $as_echo_n "(cached) " >&6
9000 else
9001 if test -n "$CC"; then
9002 ac_cv_prog_CC="$CC" # Let the user override the test.
9003 else
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 for as_dir in $PATH
9006 do
9007 IFS=$as_save_IFS
9008 test -z "$as_dir" && as_dir=.
9009 for ac_exec_ext in '' $ac_executable_extensions; do
9010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9011 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9013 break 2
9014 fi
9015 done
9016 done
9017 IFS=$as_save_IFS
9018
9019 fi
9020 fi
9021 CC=$ac_cv_prog_CC
9022 if test -n "$CC"; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9024 $as_echo "$CC" >&6; }
9025 else
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9028 fi
9029
9030
9031 test -n "$CC" && break
9032 done
9033 fi
9034 if test -z "$CC"; then
9035 ac_ct_CC=$CC
9036 for ac_prog in cl.exe
9037 do
9038 # Extract the first word of "$ac_prog", so it can be a program name with args.
9039 set dummy $ac_prog; ac_word=$2
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9041 $as_echo_n "checking for $ac_word... " >&6; }
9042 if ${ac_cv_prog_ac_ct_CC+:} false; then :
9043 $as_echo_n "(cached) " >&6
9044 else
9045 if test -n "$ac_ct_CC"; then
9046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9047 else
9048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049 for as_dir in $PATH
9050 do
9051 IFS=$as_save_IFS
9052 test -z "$as_dir" && as_dir=.
9053 for ac_exec_ext in '' $ac_executable_extensions; do
9054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9055 ac_cv_prog_ac_ct_CC="$ac_prog"
9056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9057 break 2
9058 fi
9059 done
9060 done
9061 IFS=$as_save_IFS
9062
9063 fi
9064 fi
9065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9066 if test -n "$ac_ct_CC"; then
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
9068 $as_echo "$ac_ct_CC" >&6; }
9069 else
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071 $as_echo "no" >&6; }
9072 fi
9073
9074
9075 test -n "$ac_ct_CC" && break
9076 done
9077
9078 if test "x$ac_ct_CC" = x; then
9079 CC=""
9080 else
9081 case $cross_compiling:$ac_tool_warned in
9082 yes:)
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9085 ac_tool_warned=yes ;;
9086 esac
9087 CC=$ac_ct_CC
9088 fi
9089 fi
9090
9091 fi
9092
9093
9094 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9096 as_fn_error $? "no acceptable C compiler found in \$PATH
9097 See \`config.log' for more details" "$LINENO" 5; }
9098
9099 # Provide some information about the compiler.
9100 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
9101 set X $ac_compile
9102 ac_compiler=$2
9103 for ac_option in --version -v -V -qversion; do
9104 { { ac_try="$ac_compiler $ac_option >&5"
9105 case "(($ac_try" in
9106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107 *) ac_try_echo=$ac_try;;
9108 esac
9109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9110 $as_echo "$ac_try_echo"; } >&5
9111 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9112 ac_status=$?
9113 if test -s conftest.err; then
9114 sed '10a\
9115 ... rest of stderr output deleted ...
9116 10q' conftest.err >conftest.er1
9117 cat conftest.er1 >&5
9118 fi
9119 rm -f conftest.er1 conftest.err
9120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9121 test $ac_status = 0; }
9122 done
9123
9124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125 /* end confdefs.h. */
9126
9127 int
9128 main ()
9129 {
9130
9131 ;
9132 return 0;
9133 }
9134 _ACEOF
9135 ac_clean_files_save=$ac_clean_files
9136 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
9137 # Try to create an executable without -o first, disregard a.out.
9138 # It will help us diagnose broken compilers, and finding out an intuition
9139 # of exeext.
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
9141 $as_echo_n "checking whether the C compiler works... " >&6; }
9142 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
9143
9144 # The possible output files:
9145 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
9146
9147 ac_rmfiles=
9148 for ac_file in $ac_files
9149 do
9150 case $ac_file in
9151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
9152 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
9153 esac
9154 done
9155 rm -f $ac_rmfiles
9156
9157 if { { ac_try="$ac_link_default"
9158 case "(($ac_try" in
9159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9160 *) ac_try_echo=$ac_try;;
9161 esac
9162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9163 $as_echo "$ac_try_echo"; } >&5
9164 (eval "$ac_link_default") 2>&5
9165 ac_status=$?
9166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9167 test $ac_status = 0; }; then :
9168 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
9169 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
9170 # in a Makefile. We should not override ac_cv_exeext if it was cached,
9171 # so that the user can short-circuit this test for compilers unknown to
9172 # Autoconf.
9173 for ac_file in $ac_files ''
9174 do
9175 test -f "$ac_file" || continue
9176 case $ac_file in
9177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
9178 ;;
9179 [ab].out )
9180 # We found the default executable, but exeext='' is most
9181 # certainly right.
9182 break;;
9183 *.* )
9184 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
9185 then :; else
9186 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
9187 fi
9188 # We set ac_cv_exeext here because the later test for it is not
9189 # safe: cross compilers may not add the suffix if given an `-o'
9190 # argument, so we may need to know it at that point already.
9191 # Even if this section looks crufty: it has the advantage of
9192 # actually working.
9193 break;;
9194 * )
9195 break;;
9196 esac
9197 done
9198 test "$ac_cv_exeext" = no && ac_cv_exeext=
9199
9200 else
9201 ac_file=''
9202 fi
9203 if test -z "$ac_file"; then :
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9205 $as_echo "no" >&6; }
9206 $as_echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.$ac_ext >&5
9208
9209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9211 as_fn_error 77 "C compiler cannot create executables
9212 See \`config.log' for more details" "$LINENO" 5; }
9213 else
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9215 $as_echo "yes" >&6; }
9216 fi
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
9218 $as_echo_n "checking for C compiler default output file name... " >&6; }
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
9220 $as_echo "$ac_file" >&6; }
9221 ac_exeext=$ac_cv_exeext
9222
9223 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
9224 ac_clean_files=$ac_clean_files_save
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
9226 $as_echo_n "checking for suffix of executables... " >&6; }
9227 if { { ac_try="$ac_link"
9228 case "(($ac_try" in
9229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9231 esac
9232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9233 $as_echo "$ac_try_echo"; } >&5
9234 (eval "$ac_link") 2>&5
9235 ac_status=$?
9236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9237 test $ac_status = 0; }; then :
9238 # If both `conftest.exe' and `conftest' are `present' (well, observable)
9239 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
9240 # work properly (i.e., refer to `conftest.exe'), while it won't with
9241 # `rm'.
9242 for ac_file in conftest.exe conftest conftest.*; do
9243 test -f "$ac_file" || continue
9244 case $ac_file in
9245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
9246 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
9247 break;;
9248 * ) break;;
9249 esac
9250 done
9251 else
9252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9254 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
9255 See \`config.log' for more details" "$LINENO" 5; }
9256 fi
9257 rm -f conftest conftest$ac_cv_exeext
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
9259 $as_echo "$ac_cv_exeext" >&6; }
9260
9261 rm -f conftest.$ac_ext
9262 EXEEXT=$ac_cv_exeext
9263 ac_exeext=$EXEEXT
9264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9265 /* end confdefs.h. */
9266 #include <stdio.h>
9267 int
9268 main ()
9269 {
9270 FILE *f = fopen ("conftest.out", "w");
9271 return ferror (f) || fclose (f) != 0;
9272
9273 ;
9274 return 0;
9275 }
9276 _ACEOF
9277 ac_clean_files="$ac_clean_files conftest.out"
9278 # Check that the compiler produces executables we can run. If not, either
9279 # the compiler is broken, or we cross compile.
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
9281 $as_echo_n "checking whether we are cross compiling... " >&6; }
9282 if test "$cross_compiling" != yes; then
9283 { { ac_try="$ac_link"
9284 case "(($ac_try" in
9285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9286 *) ac_try_echo=$ac_try;;
9287 esac
9288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9289 $as_echo "$ac_try_echo"; } >&5
9290 (eval "$ac_link") 2>&5
9291 ac_status=$?
9292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9293 test $ac_status = 0; }
9294 if { ac_try='./conftest$ac_cv_exeext'
9295 { { case "(($ac_try" in
9296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9297 *) ac_try_echo=$ac_try;;
9298 esac
9299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9300 $as_echo "$ac_try_echo"; } >&5
9301 (eval "$ac_try") 2>&5
9302 ac_status=$?
9303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9304 test $ac_status = 0; }; }; then
9305 cross_compiling=no
9306 else
9307 if test "$cross_compiling" = maybe; then
9308 cross_compiling=yes
9309 else
9310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9312 as_fn_error $? "cannot run C compiled programs.
9313 If you meant to cross compile, use \`--host'.
9314 See \`config.log' for more details" "$LINENO" 5; }
9315 fi
9316 fi
9317 fi
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
9319 $as_echo "$cross_compiling" >&6; }
9320
9321 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
9322 ac_clean_files=$ac_clean_files_save
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
9324 $as_echo_n "checking for suffix of object files... " >&6; }
9325 if ${ac_cv_objext+:} false; then :
9326 $as_echo_n "(cached) " >&6
9327 else
9328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329 /* end confdefs.h. */
9330
9331 int
9332 main ()
9333 {
9334
9335 ;
9336 return 0;
9337 }
9338 _ACEOF
9339 rm -f conftest.o conftest.obj
9340 if { { ac_try="$ac_compile"
9341 case "(($ac_try" in
9342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9343 *) ac_try_echo=$ac_try;;
9344 esac
9345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9346 $as_echo "$ac_try_echo"; } >&5
9347 (eval "$ac_compile") 2>&5
9348 ac_status=$?
9349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9350 test $ac_status = 0; }; then :
9351 for ac_file in conftest.o conftest.obj conftest.*; do
9352 test -f "$ac_file" || continue;
9353 case $ac_file in
9354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
9355 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
9356 break;;
9357 esac
9358 done
9359 else
9360 $as_echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.$ac_ext >&5
9362
9363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9365 as_fn_error $? "cannot compute suffix of object files: cannot compile
9366 See \`config.log' for more details" "$LINENO" 5; }
9367 fi
9368 rm -f conftest.$ac_cv_objext conftest.$ac_ext
9369 fi
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
9371 $as_echo "$ac_cv_objext" >&6; }
9372 OBJEXT=$ac_cv_objext
9373 ac_objext=$OBJEXT
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
9375 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
9376 if ${ac_cv_c_compiler_gnu+:} false; then :
9377 $as_echo_n "(cached) " >&6
9378 else
9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h. */
9381
9382 int
9383 main ()
9384 {
9385 #ifndef __GNUC__
9386 choke me
9387 #endif
9388
9389 ;
9390 return 0;
9391 }
9392 _ACEOF
9393 if ac_fn_c_try_compile "$LINENO"; then :
9394 ac_compiler_gnu=yes
9395 else
9396 ac_compiler_gnu=no
9397 fi
9398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9399 ac_cv_c_compiler_gnu=$ac_compiler_gnu
9400
9401 fi
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
9403 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
9404 if test $ac_compiler_gnu = yes; then
9405 GCC=yes
9406 else
9407 GCC=
9408 fi
9409 ac_test_CFLAGS=${CFLAGS+set}
9410 ac_save_CFLAGS=$CFLAGS
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
9412 $as_echo_n "checking whether $CC accepts -g... " >&6; }
9413 if ${ac_cv_prog_cc_g+:} false; then :
9414 $as_echo_n "(cached) " >&6
9415 else
9416 ac_save_c_werror_flag=$ac_c_werror_flag
9417 ac_c_werror_flag=yes
9418 ac_cv_prog_cc_g=no
9419 CFLAGS="-g"
9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h. */
9422
9423 int
9424 main ()
9425 {
9426
9427 ;
9428 return 0;
9429 }
9430 _ACEOF
9431 if ac_fn_c_try_compile "$LINENO"; then :
9432 ac_cv_prog_cc_g=yes
9433 else
9434 CFLAGS=""
9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h. */
9437
9438 int
9439 main ()
9440 {
9441
9442 ;
9443 return 0;
9444 }
9445 _ACEOF
9446 if ac_fn_c_try_compile "$LINENO"; then :
9447
9448 else
9449 ac_c_werror_flag=$ac_save_c_werror_flag
9450 CFLAGS="-g"
9451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9452 /* end confdefs.h. */
9453
9454 int
9455 main ()
9456 {
9457
9458 ;
9459 return 0;
9460 }
9461 _ACEOF
9462 if ac_fn_c_try_compile "$LINENO"; then :
9463 ac_cv_prog_cc_g=yes
9464 fi
9465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9466 fi
9467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9468 fi
9469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9470 ac_c_werror_flag=$ac_save_c_werror_flag
9471 fi
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
9473 $as_echo "$ac_cv_prog_cc_g" >&6; }
9474 if test "$ac_test_CFLAGS" = set; then
9475 CFLAGS=$ac_save_CFLAGS
9476 elif test $ac_cv_prog_cc_g = yes; then
9477 if test "$GCC" = yes; then
9478 CFLAGS="-g -O2"
9479 else
9480 CFLAGS="-g"
9481 fi
9482 else
9483 if test "$GCC" = yes; then
9484 CFLAGS="-O2"
9485 else
9486 CFLAGS=
9487 fi
9488 fi
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
9490 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
9491 if ${ac_cv_prog_cc_c89+:} false; then :
9492 $as_echo_n "(cached) " >&6
9493 else
9494 ac_cv_prog_cc_c89=no
9495 ac_save_CC=$CC
9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9498 #include <stdarg.h>
9499 #include <stdio.h>
9500 struct stat;
9501 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
9502 struct buf { int x; };
9503 FILE * (*rcsopen) (struct buf *, struct stat *, int);
9504 static char *e (p, i)
9505 char **p;
9506 int i;
9507 {
9508 return p[i];
9509 }
9510 static char *f (char * (*g) (char **, int), char **p, ...)
9511 {
9512 char *s;
9513 va_list v;
9514 va_start (v,p);
9515 s = g (p, va_arg (v,int));
9516 va_end (v);
9517 return s;
9518 }
9519
9520 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
9521 function prototypes and stuff, but not '\xHH' hex character constants.
9522 These don't provoke an error unfortunately, instead are silently treated
9523 as 'x'. The following induces an error, until -std is added to get
9524 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
9525 array size at least. It's necessary to write '\x00'==0 to get something
9526 that's true only with -std. */
9527 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
9528
9529 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
9530 inside strings and character constants. */
9531 #define FOO(x) 'x'
9532 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
9533
9534 int test (int i, double x);
9535 struct s1 {int (*f) (int a);};
9536 struct s2 {int (*f) (double a);};
9537 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9538 int argc;
9539 char **argv;
9540 int
9541 main ()
9542 {
9543 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
9544 ;
9545 return 0;
9546 }
9547 _ACEOF
9548 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
9549 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9550 do
9551 CC="$ac_save_CC $ac_arg"
9552 if ac_fn_c_try_compile "$LINENO"; then :
9553 ac_cv_prog_cc_c89=$ac_arg
9554 fi
9555 rm -f core conftest.err conftest.$ac_objext
9556 test "x$ac_cv_prog_cc_c89" != "xno" && break
9557 done
9558 rm -f conftest.$ac_ext
9559 CC=$ac_save_CC
9560
9561 fi
9562 # AC_CACHE_VAL
9563 case "x$ac_cv_prog_cc_c89" in
9564 x)
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9566 $as_echo "none needed" >&6; } ;;
9567 xno)
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9569 $as_echo "unsupported" >&6; } ;;
9570 *)
9571 CC="$CC $ac_cv_prog_cc_c89"
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
9573 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
9574 esac
9575 if test "x$ac_cv_prog_cc_c89" != xno; then :
9576
9577 fi
9578
9579 ac_ext=c
9580 ac_cpp='$CPP $CPPFLAGS'
9581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9584
9585 ac_ext=c
9586 ac_cpp='$CPP $CPPFLAGS'
9587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
9591 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
9592 if ${am_cv_prog_cc_c_o+:} false; then :
9593 $as_echo_n "(cached) " >&6
9594 else
9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596 /* end confdefs.h. */
9597
9598 int
9599 main ()
9600 {
9601
9602 ;
9603 return 0;
9604 }
9605 _ACEOF
9606 # Make sure it works both with $CC and with simple cc.
9607 # Following AC_PROG_CC_C_O, we do the test twice because some
9608 # compilers refuse to overwrite an existing .o file with -o,
9609 # though they will create one.
9610 am_cv_prog_cc_c_o=yes
9611 for am_i in 1 2; do
9612 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
9613 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
9614 ac_status=$?
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); } \
9617 && test -f conftest2.$ac_objext; then
9618 : OK
9619 else
9620 am_cv_prog_cc_c_o=no
9621 break
9622 fi
9623 done
9624 rm -f core conftest*
9625 unset am_i
9626 fi
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
9628 $as_echo "$am_cv_prog_cc_c_o" >&6; }
9629 if test "$am_cv_prog_cc_c_o" != yes; then
9630 # Losing compiler, so override with the script.
9631 # FIXME: It is wrong to rewrite CC.
9632 # But if we don't then we get into trouble of one sort or another.
9633 # A longer-term fix would be to have automake use am__CC in this case,
9634 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
9635 CC="$am_aux_dir/compile $CC"
9636 fi
9637 ac_ext=c
9638 ac_cpp='$CPP $CPPFLAGS'
9639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9642
9643
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
9645 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
9646 if ${ac_cv_prog_cc_c99+:} false; then :
9647 $as_echo_n "(cached) " >&6
9648 else
9649 ac_cv_prog_cc_c99=no
9650 ac_save_CC=$CC
9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9653 #include <stdarg.h>
9654 #include <stdbool.h>
9655 #include <stdlib.h>
9656 #include <wchar.h>
9657 #include <stdio.h>
9658
9659 // Check varargs macros. These examples are taken from C99 6.10.3.5.
9660 #define debug(...) fprintf (stderr, __VA_ARGS__)
9661 #define showlist(...) puts (#__VA_ARGS__)
9662 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
9663 static void
9664 test_varargs_macros (void)
9665 {
9666 int x = 1234;
9667 int y = 5678;
9668 debug ("Flag");
9669 debug ("X = %d\n", x);
9670 showlist (The first, second, and third items.);
9671 report (x>y, "x is %d but y is %d", x, y);
9672 }
9673
9674 // Check long long types.
9675 #define BIG64 18446744073709551615ull
9676 #define BIG32 4294967295ul
9677 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
9678 #if !BIG_OK
9679 your preprocessor is broken;
9680 #endif
9681 #if BIG_OK
9682 #else
9683 your preprocessor is broken;
9684 #endif
9685 static long long int bignum = -9223372036854775807LL;
9686 static unsigned long long int ubignum = BIG64;
9687
9688 struct incomplete_array
9689 {
9690 int datasize;
9691 double data[];
9692 };
9693
9694 struct named_init {
9695 int number;
9696 const wchar_t *name;
9697 double average;
9698 };
9699
9700 typedef const char *ccp;
9701
9702 static inline int
9703 test_restrict (ccp restrict text)
9704 {
9705 // See if C++-style comments work.
9706 // Iterate through items via the restricted pointer.
9707 // Also check for declarations in for loops.
9708 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
9709 continue;
9710 return 0;
9711 }
9712
9713 // Check varargs and va_copy.
9714 static void
9715 test_varargs (const char *format, ...)
9716 {
9717 va_list args;
9718 va_start (args, format);
9719 va_list args_copy;
9720 va_copy (args_copy, args);
9721
9722 const char *str;
9723 int number;
9724 float fnumber;
9725
9726 while (*format)
9727 {
9728 switch (*format++)
9729 {
9730 case 's': // string
9731 str = va_arg (args_copy, const char *);
9732 break;
9733 case 'd': // int
9734 number = va_arg (args_copy, int);
9735 break;
9736 case 'f': // float
9737 fnumber = va_arg (args_copy, double);
9738 break;
9739 default:
9740 break;
9741 }
9742 }
9743 va_end (args_copy);
9744 va_end (args);
9745 }
9746
9747 int
9748 main ()
9749 {
9750
9751 // Check bool.
9752 _Bool success = false;
9753
9754 // Check restrict.
9755 if (test_restrict ("String literal") == 0)
9756 success = true;
9757 char *restrict newvar = "Another string";
9758
9759 // Check varargs.
9760 test_varargs ("s, d' f .", "string", 65, 34.234);
9761 test_varargs_macros ();
9762
9763 // Check flexible array members.
9764 struct incomplete_array *ia =
9765 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
9766 ia->datasize = 10;
9767 for (int i = 0; i < ia->datasize; ++i)
9768 ia->data[i] = i * 1.234;
9769
9770 // Check named initializers.
9771 struct named_init ni = {
9772 .number = 34,
9773 .name = L"Test wide string",
9774 .average = 543.34343,
9775 };
9776
9777 ni.number = 58;
9778
9779 int dynamic_array[ni.number];
9780 dynamic_array[ni.number - 1] = 543;
9781
9782 // work around unused variable warnings
9783 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
9784 || dynamic_array[ni.number - 1] != 543);
9785
9786 ;
9787 return 0;
9788 }
9789 _ACEOF
9790 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
9791 do
9792 CC="$ac_save_CC $ac_arg"
9793 if ac_fn_c_try_compile "$LINENO"; then :
9794 ac_cv_prog_cc_c99=$ac_arg
9795 fi
9796 rm -f core conftest.err conftest.$ac_objext
9797 test "x$ac_cv_prog_cc_c99" != "xno" && break
9798 done
9799 rm -f conftest.$ac_ext
9800 CC=$ac_save_CC
9801
9802 fi
9803 # AC_CACHE_VAL
9804 case "x$ac_cv_prog_cc_c99" in
9805 x)
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9807 $as_echo "none needed" >&6; } ;;
9808 xno)
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9810 $as_echo "unsupported" >&6; } ;;
9811 *)
9812 CC="$CC $ac_cv_prog_cc_c99"
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
9814 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
9815 esac
9816 if test "x$ac_cv_prog_cc_c99" != xno; then :
9817
9818 fi
9819
9820
9821 ac_ext=c
9822 ac_cpp='$CPP $CPPFLAGS'
9823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9827 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9828 # On Suns, sometimes $CPP names a directory.
9829 if test -n "$CPP" && test -d "$CPP"; then
9830 CPP=
9831 fi
9832 if test -z "$CPP"; then
9833 if ${ac_cv_prog_CPP+:} false; then :
9834 $as_echo_n "(cached) " >&6
9835 else
9836 # Double quotes because CPP needs to be expanded
9837 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9838 do
9839 ac_preproc_ok=false
9840 for ac_c_preproc_warn_flag in '' yes
9841 do
9842 # Use a header file that comes with gcc, so configuring glibc
9843 # with a fresh cross-compiler works.
9844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9845 # <limits.h> exists even on freestanding compilers.
9846 # On the NeXT, cc -E runs the code through the compiler's parser,
9847 # not just through cpp. "Syntax error" is here to catch this case.
9848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849 /* end confdefs.h. */
9850 #ifdef __STDC__
9851 # include <limits.h>
9852 #else
9853 # include <assert.h>
9854 #endif
9855 Syntax error
9856 _ACEOF
9857 if ac_fn_c_try_cpp "$LINENO"; then :
9858
9859 else
9860 # Broken: fails on valid input.
9861 continue
9862 fi
9863 rm -f conftest.err conftest.i conftest.$ac_ext
9864
9865 # OK, works on sane cases. Now check whether nonexistent headers
9866 # can be detected and how.
9867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9868 /* end confdefs.h. */
9869 #include <ac_nonexistent.h>
9870 _ACEOF
9871 if ac_fn_c_try_cpp "$LINENO"; then :
9872 # Broken: success on invalid input.
9873 continue
9874 else
9875 # Passes both tests.
9876 ac_preproc_ok=:
9877 break
9878 fi
9879 rm -f conftest.err conftest.i conftest.$ac_ext
9880
9881 done
9882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9883 rm -f conftest.i conftest.err conftest.$ac_ext
9884 if $ac_preproc_ok; then :
9885 break
9886 fi
9887
9888 done
9889 ac_cv_prog_CPP=$CPP
9890
9891 fi
9892 CPP=$ac_cv_prog_CPP
9893 else
9894 ac_cv_prog_CPP=$CPP
9895 fi
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9897 $as_echo "$CPP" >&6; }
9898 ac_preproc_ok=false
9899 for ac_c_preproc_warn_flag in '' yes
9900 do
9901 # Use a header file that comes with gcc, so configuring glibc
9902 # with a fresh cross-compiler works.
9903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9904 # <limits.h> exists even on freestanding compilers.
9905 # On the NeXT, cc -E runs the code through the compiler's parser,
9906 # not just through cpp. "Syntax error" is here to catch this case.
9907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9908 /* end confdefs.h. */
9909 #ifdef __STDC__
9910 # include <limits.h>
9911 #else
9912 # include <assert.h>
9913 #endif
9914 Syntax error
9915 _ACEOF
9916 if ac_fn_c_try_cpp "$LINENO"; then :
9917
9918 else
9919 # Broken: fails on valid input.
9920 continue
9921 fi
9922 rm -f conftest.err conftest.i conftest.$ac_ext
9923
9924 # OK, works on sane cases. Now check whether nonexistent headers
9925 # can be detected and how.
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9928 #include <ac_nonexistent.h>
9929 _ACEOF
9930 if ac_fn_c_try_cpp "$LINENO"; then :
9931 # Broken: success on invalid input.
9932 continue
9933 else
9934 # Passes both tests.
9935 ac_preproc_ok=:
9936 break
9937 fi
9938 rm -f conftest.err conftest.i conftest.$ac_ext
9939
9940 done
9941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9942 rm -f conftest.i conftest.err conftest.$ac_ext
9943 if $ac_preproc_ok; then :
9944
9945 else
9946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9948 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9949 See \`config.log' for more details" "$LINENO" 5; }
9950 fi
9951
9952 ac_ext=c
9953 ac_cpp='$CPP $CPPFLAGS'
9954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9957
9958
9959 #if test "$ac_cv_prog_cc_c99" = no; then
9960 # AC_MSG_ERROR([Cannot find a C99 capable compiler])
9961 #fi
9962
9963 # The C compiler on the build system, and associated tests.
9964
9965 if test -n "$CC_FOR_BUILD"; then
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $CC_FOR_BUILD" >&5
9967 $as_echo_n "checking build system compiler $CC_FOR_BUILD... " >&6; }
9968 # remove anything that might look like compiler output to our "||" expression
9969 rm -f conftest* a.out b.out a.exe a_out.exe
9970 cat >conftest.c <<EOF
9971 int
9972 main ()
9973 {
9974 return 0;
9975 }
9976 EOF
9977 gmp_compile="$CC_FOR_BUILD conftest.c"
9978 cc_for_build_works=no
9979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9980 (eval $gmp_compile) 2>&5
9981 ac_status=$?
9982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9983 test $ac_status = 0; }; then
9984 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
9985 cc_for_build_works=yes
9986 fi
9987 fi
9988 rm -f conftest* a.out b.out a.exe a_out.exe
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
9990 $as_echo "$cc_for_build_works" >&6; }
9991 if test "$cc_for_build_works" = yes; then
9992 :
9993 else
9994 as_fn_error $? "Specified CC_FOR_BUILD doesn't seem to work" "$LINENO" 5
9995 fi
9996
9997 elif test -n "$HOST_CC"; then
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $HOST_CC" >&5
9999 $as_echo_n "checking build system compiler $HOST_CC... " >&6; }
10000 # remove anything that might look like compiler output to our "||" expression
10001 rm -f conftest* a.out b.out a.exe a_out.exe
10002 cat >conftest.c <<EOF
10003 int
10004 main ()
10005 {
10006 return 0;
10007 }
10008 EOF
10009 gmp_compile="$HOST_CC conftest.c"
10010 cc_for_build_works=no
10011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
10012 (eval $gmp_compile) 2>&5
10013 ac_status=$?
10014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10015 test $ac_status = 0; }; then
10016 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
10017 cc_for_build_works=yes
10018 fi
10019 fi
10020 rm -f conftest* a.out b.out a.exe a_out.exe
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
10022 $as_echo "$cc_for_build_works" >&6; }
10023 if test "$cc_for_build_works" = yes; then
10024 CC_FOR_BUILD=$HOST_CC
10025 else
10026 as_fn_error $? "Specified HOST_CC doesn't seem to work" "$LINENO" 5
10027 fi
10028
10029 else
10030 for i in "$CC" "$CC $CFLAGS $CPPFLAGS" cc gcc c89 c99; do
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $i" >&5
10032 $as_echo_n "checking build system compiler $i... " >&6; }
10033 # remove anything that might look like compiler output to our "||" expression
10034 rm -f conftest* a.out b.out a.exe a_out.exe
10035 cat >conftest.c <<EOF
10036 int
10037 main ()
10038 {
10039 return 0;
10040 }
10041 EOF
10042 gmp_compile="$i conftest.c"
10043 cc_for_build_works=no
10044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
10045 (eval $gmp_compile) 2>&5
10046 ac_status=$?
10047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10048 test $ac_status = 0; }; then
10049 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
10050 cc_for_build_works=yes
10051 fi
10052 fi
10053 rm -f conftest* a.out b.out a.exe a_out.exe
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
10055 $as_echo "$cc_for_build_works" >&6; }
10056 if test "$cc_for_build_works" = yes; then
10057 CC_FOR_BUILD=$i
10058 break
10059 else
10060 :
10061 fi
10062
10063 done
10064 if test -z "$CC_FOR_BUILD"; then
10065 as_fn_error $? "Cannot find a build system compiler" "$LINENO" 5
10066 fi
10067 fi
10068
10069
10070
10071
10072
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system preprocessor" >&5
10074 $as_echo_n "checking for build system preprocessor... " >&6; }
10075 if test -z "$CPP_FOR_BUILD"; then
10076 if ${gmp_cv_prog_cpp_for_build+:} false; then :
10077 $as_echo_n "(cached) " >&6
10078 else
10079 cat >conftest.c <<EOF
10080 #define FOO BAR
10081 EOF
10082 for i in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"; do
10083 gmp_compile="$i conftest.c"
10084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
10085 (eval $gmp_compile) 2>&5
10086 ac_status=$?
10087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10088 test $ac_status = 0; } >&5 2>&1; then
10089 gmp_cv_prog_cpp_for_build=$i
10090 break
10091 fi
10092 done
10093 rm -f conftest* a.out b.out a.exe a_out.exe
10094 if test -z "$gmp_cv_prog_cpp_for_build"; then
10095 as_fn_error $? "Cannot find build system C preprocessor." "$LINENO" 5
10096 fi
10097
10098 fi
10099
10100 CPP_FOR_BUILD=$gmp_cv_prog_cpp_for_build
10101 fi
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
10103 $as_echo "$CPP_FOR_BUILD" >&6; }
10104
10105
10106
10107
10108
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
10110 $as_echo_n "checking for build system executable suffix... " >&6; }
10111 if ${gmp_cv_prog_exeext_for_build+:} false; then :
10112 $as_echo_n "(cached) " >&6
10113 else
10114 cat >conftest.c <<EOF
10115 int
10116 main ()
10117 {
10118 return 0;
10119 }
10120 EOF
10121 for i in .exe ,ff8 ""; do
10122 gmp_compile="$CC_FOR_BUILD conftest.c -o conftest$i"
10123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
10124 (eval $gmp_compile) 2>&5
10125 ac_status=$?
10126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10127 test $ac_status = 0; }; then
10128 if (./conftest) 2>&5; then
10129 gmp_cv_prog_exeext_for_build=$i
10130 break
10131 fi
10132 fi
10133 done
10134 rm -f conftest*
10135 if test "${gmp_cv_prog_exeext_for_build+set}" != set; then
10136 as_fn_error $? "Cannot determine executable suffix" "$LINENO" 5
10137 fi
10138
10139 fi
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_exeext_for_build" >&5
10141 $as_echo "$gmp_cv_prog_exeext_for_build" >&6; }
10142 EXEEXT_FOR_BUILD=$gmp_cv_prog_exeext_for_build
10143
10144
10145
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build system compiler is ANSI" >&5
10147 $as_echo_n "checking whether build system compiler is ANSI... " >&6; }
10148 if ${gmp_cv_c_for_build_ansi+:} false; then :
10149 $as_echo_n "(cached) " >&6
10150 else
10151 cat >conftest.c <<EOF
10152 int
10153 main (int argc, char **argv)
10154 {
10155 return 0;
10156 }
10157 EOF
10158 gmp_compile="$CC_FOR_BUILD conftest.c"
10159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
10160 (eval $gmp_compile) 2>&5
10161 ac_status=$?
10162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10163 test $ac_status = 0; }; then
10164 gmp_cv_c_for_build_ansi=yes
10165 else
10166 gmp_cv_c_for_build_ansi=no
10167 fi
10168 rm -f conftest* a.out b.out a.exe a_out.exe
10169
10170 fi
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_for_build_ansi" >&5
10172 $as_echo "$gmp_cv_c_for_build_ansi" >&6; }
10173 if test "$gmp_cv_c_for_build_ansi" = yes; then
10174 U_FOR_BUILD=
10175 else
10176 U_FOR_BUILD=_
10177
10178 fi
10179
10180
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system compiler math library" >&5
10182 $as_echo_n "checking for build system compiler math library... " >&6; }
10183 if ${gmp_cv_check_libm_for_build+:} false; then :
10184 $as_echo_n "(cached) " >&6
10185 else
10186 cat >conftest.c <<EOF
10187 #include <math.h>
10188 int
10189 main ()
10190 {
10191 return 0;
10192 }
10193 double d;
10194 double
10195 foo ()
10196 {
10197 return log (d);
10198 }
10199 EOF
10200 gmp_compile="$CC_FOR_BUILD conftest.c -lm"
10201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
10202 (eval $gmp_compile) 2>&5
10203 ac_status=$?
10204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10205 test $ac_status = 0; }; then
10206 gmp_cv_check_libm_for_build=-lm
10207 else
10208 gmp_cv_check_libm_for_build=no
10209 fi
10210 rm -f conftest* a.out b.out a.exe a_out.exe
10211
10212 fi
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_check_libm_for_build" >&5
10214 $as_echo "$gmp_cv_check_libm_for_build" >&6; }
10215 case $gmp_cv_check_libm_for_build in
10216 yes) LIBM_FOR_BUILD=-lm
10217 ;;
10218 no) LIBM_FOR_BUILD= ;;
10219 *) LIBM_FOR_BUILD=$gmp_cv_check_libm_for_build ;;
10220 esac
10221
10222
10223
10224 # How to assemble, used with CFLAGS etc, see mpn/Makeasm.am.
10225 # Using the compiler is a lot easier than figuring out how to invoke the
10226 # assembler directly.
10227 #
10228 test -n "$CCAS" || CCAS="$CC -c"
10229
10230
10231
10232 # The C++ compiler, if desired.
10233 want_cxx=no
10234 if test $enable_cxx != no; then
10235 test_CXXFLAGS=${CXXFLAGS+set}
10236 ac_ext=cpp
10237 ac_cpp='$CXXCPP $CPPFLAGS'
10238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10241 if test -z "$CXX"; then
10242 if test -n "$CCC"; then
10243 CXX=$CCC
10244 else
10245 if test -n "$ac_tool_prefix"; then
10246 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10247 do
10248 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10249 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10251 $as_echo_n "checking for $ac_word... " >&6; }
10252 if ${ac_cv_prog_CXX+:} false; then :
10253 $as_echo_n "(cached) " >&6
10254 else
10255 if test -n "$CXX"; then
10256 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10257 else
10258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259 for as_dir in $PATH
10260 do
10261 IFS=$as_save_IFS
10262 test -z "$as_dir" && as_dir=.
10263 for ac_exec_ext in '' $ac_executable_extensions; do
10264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10265 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10267 break 2
10268 fi
10269 done
10270 done
10271 IFS=$as_save_IFS
10272
10273 fi
10274 fi
10275 CXX=$ac_cv_prog_CXX
10276 if test -n "$CXX"; then
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10278 $as_echo "$CXX" >&6; }
10279 else
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281 $as_echo "no" >&6; }
10282 fi
10283
10284
10285 test -n "$CXX" && break
10286 done
10287 fi
10288 if test -z "$CXX"; then
10289 ac_ct_CXX=$CXX
10290 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10291 do
10292 # Extract the first word of "$ac_prog", so it can be a program name with args.
10293 set dummy $ac_prog; ac_word=$2
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10295 $as_echo_n "checking for $ac_word... " >&6; }
10296 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
10297 $as_echo_n "(cached) " >&6
10298 else
10299 if test -n "$ac_ct_CXX"; then
10300 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10301 else
10302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303 for as_dir in $PATH
10304 do
10305 IFS=$as_save_IFS
10306 test -z "$as_dir" && as_dir=.
10307 for ac_exec_ext in '' $ac_executable_extensions; do
10308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10309 ac_cv_prog_ac_ct_CXX="$ac_prog"
10310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10311 break 2
10312 fi
10313 done
10314 done
10315 IFS=$as_save_IFS
10316
10317 fi
10318 fi
10319 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10320 if test -n "$ac_ct_CXX"; then
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10322 $as_echo "$ac_ct_CXX" >&6; }
10323 else
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10325 $as_echo "no" >&6; }
10326 fi
10327
10328
10329 test -n "$ac_ct_CXX" && break
10330 done
10331
10332 if test "x$ac_ct_CXX" = x; then
10333 CXX="g++"
10334 else
10335 case $cross_compiling:$ac_tool_warned in
10336 yes:)
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10339 ac_tool_warned=yes ;;
10340 esac
10341 CXX=$ac_ct_CXX
10342 fi
10343 fi
10344
10345 fi
10346 fi
10347 # Provide some information about the compiler.
10348 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10349 set X $ac_compile
10350 ac_compiler=$2
10351 for ac_option in --version -v -V -qversion; do
10352 { { ac_try="$ac_compiler $ac_option >&5"
10353 case "(($ac_try" in
10354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355 *) ac_try_echo=$ac_try;;
10356 esac
10357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10358 $as_echo "$ac_try_echo"; } >&5
10359 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10360 ac_status=$?
10361 if test -s conftest.err; then
10362 sed '10a\
10363 ... rest of stderr output deleted ...
10364 10q' conftest.err >conftest.er1
10365 cat conftest.er1 >&5
10366 fi
10367 rm -f conftest.er1 conftest.err
10368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10369 test $ac_status = 0; }
10370 done
10371
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10373 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10374 if ${ac_cv_cxx_compiler_gnu+:} false; then :
10375 $as_echo_n "(cached) " >&6
10376 else
10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378 /* end confdefs.h. */
10379
10380 int
10381 main ()
10382 {
10383 #ifndef __GNUC__
10384 choke me
10385 #endif
10386
10387 ;
10388 return 0;
10389 }
10390 _ACEOF
10391 if ac_fn_cxx_try_compile "$LINENO"; then :
10392 ac_compiler_gnu=yes
10393 else
10394 ac_compiler_gnu=no
10395 fi
10396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10397 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10398
10399 fi
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10401 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10402 if test $ac_compiler_gnu = yes; then
10403 GXX=yes
10404 else
10405 GXX=
10406 fi
10407 ac_test_CXXFLAGS=${CXXFLAGS+set}
10408 ac_save_CXXFLAGS=$CXXFLAGS
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10410 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10411 if ${ac_cv_prog_cxx_g+:} false; then :
10412 $as_echo_n "(cached) " >&6
10413 else
10414 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10415 ac_cxx_werror_flag=yes
10416 ac_cv_prog_cxx_g=no
10417 CXXFLAGS="-g"
10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10419 /* end confdefs.h. */
10420
10421 int
10422 main ()
10423 {
10424
10425 ;
10426 return 0;
10427 }
10428 _ACEOF
10429 if ac_fn_cxx_try_compile "$LINENO"; then :
10430 ac_cv_prog_cxx_g=yes
10431 else
10432 CXXFLAGS=""
10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h. */
10435
10436 int
10437 main ()
10438 {
10439
10440 ;
10441 return 0;
10442 }
10443 _ACEOF
10444 if ac_fn_cxx_try_compile "$LINENO"; then :
10445
10446 else
10447 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10448 CXXFLAGS="-g"
10449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450 /* end confdefs.h. */
10451
10452 int
10453 main ()
10454 {
10455
10456 ;
10457 return 0;
10458 }
10459 _ACEOF
10460 if ac_fn_cxx_try_compile "$LINENO"; then :
10461 ac_cv_prog_cxx_g=yes
10462 fi
10463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10464 fi
10465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10466 fi
10467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10468 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10469 fi
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10471 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10472 if test "$ac_test_CXXFLAGS" = set; then
10473 CXXFLAGS=$ac_save_CXXFLAGS
10474 elif test $ac_cv_prog_cxx_g = yes; then
10475 if test "$GXX" = yes; then
10476 CXXFLAGS="-g -O2"
10477 else
10478 CXXFLAGS="-g"
10479 fi
10480 else
10481 if test "$GXX" = yes; then
10482 CXXFLAGS="-O2"
10483 else
10484 CXXFLAGS=
10485 fi
10486 fi
10487 ac_ext=c
10488 ac_cpp='$CPP $CPPFLAGS'
10489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10492
10493
10494 echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&5
10495 cxxflags_ac_prog_cxx=$CXXFLAGS
10496 cxxflags_list=ac_prog_cxx
10497
10498 # If the user didn't specify $CXXFLAGS, then try $CFLAGS, with -g removed
10499 # if AC_PROG_CXX thinks that doesn't work. $CFLAGS stands a good chance
10500 # of working, eg. on a GNU system where CC=gcc and CXX=g++.
10501 #
10502 if test "$test_CXXFLAGS" != set; then
10503 cxxflags_cflags=$CFLAGS
10504 cxxflags_list="cflags $cxxflags_list"
10505 if test "$ac_prog_cxx_g" = no; then
10506 cxxflags_cflags=`echo "$cxxflags_cflags" | sed -e 's/ -g //' -e 's/^-g //' -e 's/ -g$//'`
10507 fi
10508 fi
10509
10510 # See if the C++ compiler works. If the user specified CXXFLAGS then all
10511 # we're doing is checking whether AC_PROG_CXX succeeded, since it doesn't
10512 # give a fatal error, just leaves CXX set to a default g++. If on the
10513 # other hand the user didn't specify CXXFLAGS then we get to try here our
10514 # $cxxflags_list alternatives.
10515 #
10516 # Automake includes $CPPFLAGS in a C++ compile, so we do the same here.
10517 #
10518 for cxxflags_choice in $cxxflags_list; do
10519 eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice\"
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS" >&5
10521 $as_echo_n "checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS... " >&6; }
10522 gmp_prog_cxx_works=yes
10523
10524 # start with a plain "main()", then go on to further checks
10525 if test "$gmp_prog_cxx_works" = yes; then
10526 # remove anything that might look like compiler output to our "||" expression
10527 rm -f conftest* a.out b.out a.exe a_out.exe
10528 cat >conftest.cc <<EOF
10529
10530 int main (void) { return 0; }
10531 EOF
10532 echo "Test compile: " >&5
10533 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
10534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
10535 (eval $gmp_cxxcompile) 2>&5
10536 ac_status=$?
10537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10538 test $ac_status = 0; }; then
10539 if test "$cross_compiling" = no; then
10540 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
10541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10542 (eval $ac_try) 2>&5
10543 ac_status=$?
10544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10545 test $ac_status = 0; }; }; then :;
10546 else
10547 gmp_prog_cxx_works="no, program does not run"
10548 fi
10549 fi
10550 else
10551 gmp_prog_cxx_works="no"
10552 fi
10553 case $gmp_prog_cxx_works in
10554 no*)
10555 echo "failed program was:" >&5
10556 cat conftest.cc >&5
10557 ;;
10558 esac
10559 rm -f conftest* a.out b.out a.exe a_out.exe
10560 fi
10561
10562
10563 if test "$gmp_prog_cxx_works" = yes; then
10564 # remove anything that might look like compiler output to our "||" expression
10565 rm -f conftest* a.out b.out a.exe a_out.exe
10566 cat >conftest.cc <<EOF
10567 namespace foo { }
10568 using namespace foo;
10569
10570 int main (void) { return 0; }
10571 EOF
10572 echo "Test compile: namespace" >&5
10573 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
10574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
10575 (eval $gmp_cxxcompile) 2>&5
10576 ac_status=$?
10577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10578 test $ac_status = 0; }; then
10579 if test "$cross_compiling" = no; then
10580 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
10581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10582 (eval $ac_try) 2>&5
10583 ac_status=$?
10584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10585 test $ac_status = 0; }; }; then :;
10586 else
10587 gmp_prog_cxx_works="no, namespace, program does not run"
10588 fi
10589 fi
10590 else
10591 gmp_prog_cxx_works="no, namespace"
10592 fi
10593 case $gmp_prog_cxx_works in
10594 no*)
10595 echo "failed program was:" >&5
10596 cat conftest.cc >&5
10597 ;;
10598 esac
10599 rm -f conftest* a.out b.out a.exe a_out.exe
10600 fi
10601
10602
10603 # GMP requires the standard C++ iostream classes
10604 if test "$gmp_prog_cxx_works" = yes; then
10605 # remove anything that might look like compiler output to our "||" expression
10606 rm -f conftest* a.out b.out a.exe a_out.exe
10607 cat >conftest.cc <<EOF
10608 /* This test rejects g++ 2.7.2 which doesn't have <iostream>, only a
10609 pre-standard iostream.h. */
10610 #include <iostream>
10611
10612 /* This test rejects OSF 5.1 Compaq C++ in its default pre-standard iostream
10613 mode, since that mode puts cout in the global namespace, not "std". */
10614 void someoutput (void) { std::cout << 123; }
10615
10616 int main (void) { return 0; }
10617 EOF
10618 echo "Test compile: std iostream" >&5
10619 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
10620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
10621 (eval $gmp_cxxcompile) 2>&5
10622 ac_status=$?
10623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10624 test $ac_status = 0; }; then
10625 if test "$cross_compiling" = no; then
10626 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
10627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10628 (eval $ac_try) 2>&5
10629 ac_status=$?
10630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10631 test $ac_status = 0; }; }; then :;
10632 else
10633 gmp_prog_cxx_works="no, std iostream, program does not run"
10634 fi
10635 fi
10636 else
10637 gmp_prog_cxx_works="no, std iostream"
10638 fi
10639 case $gmp_prog_cxx_works in
10640 no*)
10641 echo "failed program was:" >&5
10642 cat conftest.cc >&5
10643 ;;
10644 esac
10645 rm -f conftest* a.out b.out a.exe a_out.exe
10646 fi
10647
10648
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cxx_works" >&5
10650 $as_echo "$gmp_prog_cxx_works" >&6; }
10651 case $gmp_prog_cxx_works in
10652 yes)
10653 want_cxx=yes
10654 break
10655 ;;
10656 *)
10657
10658 ;;
10659 esac
10660
10661 done
10662
10663 # If --enable-cxx=yes but a C++ compiler can't be found, then abort.
10664 if test $want_cxx = no && test $enable_cxx = yes; then
10665 as_fn_error $? "C++ compiler not available, see config.log for details" "$LINENO" 5
10666 fi
10667 fi
10668
10669 if test $want_cxx = yes; then
10670 WANT_CXX_TRUE=
10671 WANT_CXX_FALSE='#'
10672 else
10673 WANT_CXX_TRUE='#'
10674 WANT_CXX_FALSE=
10675 fi
10676
10677
10678 # FIXME: We're not interested in CXXCPP for ourselves, but if we don't do it
10679 # here then AC_PROG_LIBTOOL will AC_REQUIRE it (via _LT_AC_TAGCONFIG) and
10680 # hence execute it unconditionally, and that will fail if there's no C++
10681 # compiler (and no generic /lib/cpp).
10682 #
10683 if test $want_cxx = yes; then
10684 ac_ext=cpp
10685 ac_cpp='$CXXCPP $CPPFLAGS'
10686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10690 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10691 if test -z "$CXXCPP"; then
10692 if ${ac_cv_prog_CXXCPP+:} false; then :
10693 $as_echo_n "(cached) " >&6
10694 else
10695 # Double quotes because CXXCPP needs to be expanded
10696 for CXXCPP in "$CXX -E" "/lib/cpp"
10697 do
10698 ac_preproc_ok=false
10699 for ac_cxx_preproc_warn_flag in '' yes
10700 do
10701 # Use a header file that comes with gcc, so configuring glibc
10702 # with a fresh cross-compiler works.
10703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10704 # <limits.h> exists even on freestanding compilers.
10705 # On the NeXT, cc -E runs the code through the compiler's parser,
10706 # not just through cpp. "Syntax error" is here to catch this case.
10707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h. */
10709 #ifdef __STDC__
10710 # include <limits.h>
10711 #else
10712 # include <assert.h>
10713 #endif
10714 Syntax error
10715 _ACEOF
10716 if ac_fn_cxx_try_cpp "$LINENO"; then :
10717
10718 else
10719 # Broken: fails on valid input.
10720 continue
10721 fi
10722 rm -f conftest.err conftest.i conftest.$ac_ext
10723
10724 # OK, works on sane cases. Now check whether nonexistent headers
10725 # can be detected and how.
10726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727 /* end confdefs.h. */
10728 #include <ac_nonexistent.h>
10729 _ACEOF
10730 if ac_fn_cxx_try_cpp "$LINENO"; then :
10731 # Broken: success on invalid input.
10732 continue
10733 else
10734 # Passes both tests.
10735 ac_preproc_ok=:
10736 break
10737 fi
10738 rm -f conftest.err conftest.i conftest.$ac_ext
10739
10740 done
10741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10742 rm -f conftest.i conftest.err conftest.$ac_ext
10743 if $ac_preproc_ok; then :
10744 break
10745 fi
10746
10747 done
10748 ac_cv_prog_CXXCPP=$CXXCPP
10749
10750 fi
10751 CXXCPP=$ac_cv_prog_CXXCPP
10752 else
10753 ac_cv_prog_CXXCPP=$CXXCPP
10754 fi
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10756 $as_echo "$CXXCPP" >&6; }
10757 ac_preproc_ok=false
10758 for ac_cxx_preproc_warn_flag in '' yes
10759 do
10760 # Use a header file that comes with gcc, so configuring glibc
10761 # with a fresh cross-compiler works.
10762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10763 # <limits.h> exists even on freestanding compilers.
10764 # On the NeXT, cc -E runs the code through the compiler's parser,
10765 # not just through cpp. "Syntax error" is here to catch this case.
10766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h. */
10768 #ifdef __STDC__
10769 # include <limits.h>
10770 #else
10771 # include <assert.h>
10772 #endif
10773 Syntax error
10774 _ACEOF
10775 if ac_fn_cxx_try_cpp "$LINENO"; then :
10776
10777 else
10778 # Broken: fails on valid input.
10779 continue
10780 fi
10781 rm -f conftest.err conftest.i conftest.$ac_ext
10782
10783 # OK, works on sane cases. Now check whether nonexistent headers
10784 # can be detected and how.
10785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10786 /* end confdefs.h. */
10787 #include <ac_nonexistent.h>
10788 _ACEOF
10789 if ac_fn_cxx_try_cpp "$LINENO"; then :
10790 # Broken: success on invalid input.
10791 continue
10792 else
10793 # Passes both tests.
10794 ac_preproc_ok=:
10795 break
10796 fi
10797 rm -f conftest.err conftest.i conftest.$ac_ext
10798
10799 done
10800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10801 rm -f conftest.i conftest.err conftest.$ac_ext
10802 if $ac_preproc_ok; then :
10803
10804 else
10805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10807 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
10808 See \`config.log' for more details" "$LINENO" 5; }
10809 fi
10810
10811 ac_ext=c
10812 ac_cpp='$CPP $CPPFLAGS'
10813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10816
10817 fi
10818
10819
10820 # Path setups for Cray, according to IEEE or CFP. These must come after
10821 # deciding the compiler.
10822 #
10823
10824
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
10826 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
10827 if ${ac_cv_path_GREP+:} false; then :
10828 $as_echo_n "(cached) " >&6
10829 else
10830 if test -z "$GREP"; then
10831 ac_path_GREP_found=false
10832 # Loop through the user's path and test for each of PROGNAME-LIST
10833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10834 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10835 do
10836 IFS=$as_save_IFS
10837 test -z "$as_dir" && as_dir=.
10838 for ac_prog in grep ggrep; do
10839 for ac_exec_ext in '' $ac_executable_extensions; do
10840 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
10841 as_fn_executable_p "$ac_path_GREP" || continue
10842 # Check for GNU ac_path_GREP and select it if it is found.
10843 # Check for GNU $ac_path_GREP
10844 case `"$ac_path_GREP" --version 2>&1` in
10845 *GNU*)
10846 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
10847 *)
10848 ac_count=0
10849 $as_echo_n 0123456789 >"conftest.in"
10850 while :
10851 do
10852 cat "conftest.in" "conftest.in" >"conftest.tmp"
10853 mv "conftest.tmp" "conftest.in"
10854 cp "conftest.in" "conftest.nl"
10855 $as_echo 'GREP' >> "conftest.nl"
10856 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10857 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10858 as_fn_arith $ac_count + 1 && ac_count=$as_val
10859 if test $ac_count -gt ${ac_path_GREP_max-0}; then
10860 # Best one so far, save it but keep looking for a better one
10861 ac_cv_path_GREP="$ac_path_GREP"
10862 ac_path_GREP_max=$ac_count
10863 fi
10864 # 10*(2^10) chars as input seems more than enough
10865 test $ac_count -gt 10 && break
10866 done
10867 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10868 esac
10869
10870 $ac_path_GREP_found && break 3
10871 done
10872 done
10873 done
10874 IFS=$as_save_IFS
10875 if test -z "$ac_cv_path_GREP"; then
10876 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10877 fi
10878 else
10879 ac_cv_path_GREP=$GREP
10880 fi
10881
10882 fi
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
10884 $as_echo "$ac_cv_path_GREP" >&6; }
10885 GREP="$ac_cv_path_GREP"
10886
10887
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
10889 $as_echo_n "checking for egrep... " >&6; }
10890 if ${ac_cv_path_EGREP+:} false; then :
10891 $as_echo_n "(cached) " >&6
10892 else
10893 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10894 then ac_cv_path_EGREP="$GREP -E"
10895 else
10896 if test -z "$EGREP"; then
10897 ac_path_EGREP_found=false
10898 # Loop through the user's path and test for each of PROGNAME-LIST
10899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10900 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10901 do
10902 IFS=$as_save_IFS
10903 test -z "$as_dir" && as_dir=.
10904 for ac_prog in egrep; do
10905 for ac_exec_ext in '' $ac_executable_extensions; do
10906 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10907 as_fn_executable_p "$ac_path_EGREP" || continue
10908 # Check for GNU ac_path_EGREP and select it if it is found.
10909 # Check for GNU $ac_path_EGREP
10910 case `"$ac_path_EGREP" --version 2>&1` in
10911 *GNU*)
10912 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10913 *)
10914 ac_count=0
10915 $as_echo_n 0123456789 >"conftest.in"
10916 while :
10917 do
10918 cat "conftest.in" "conftest.in" >"conftest.tmp"
10919 mv "conftest.tmp" "conftest.in"
10920 cp "conftest.in" "conftest.nl"
10921 $as_echo 'EGREP' >> "conftest.nl"
10922 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10923 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10924 as_fn_arith $ac_count + 1 && ac_count=$as_val
10925 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10926 # Best one so far, save it but keep looking for a better one
10927 ac_cv_path_EGREP="$ac_path_EGREP"
10928 ac_path_EGREP_max=$ac_count
10929 fi
10930 # 10*(2^10) chars as input seems more than enough
10931 test $ac_count -gt 10 && break
10932 done
10933 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10934 esac
10935
10936 $ac_path_EGREP_found && break 3
10937 done
10938 done
10939 done
10940 IFS=$as_save_IFS
10941 if test -z "$ac_cv_path_EGREP"; then
10942 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10943 fi
10944 else
10945 ac_cv_path_EGREP=$EGREP
10946 fi
10947
10948 fi
10949 fi
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
10951 $as_echo "$ac_cv_path_EGREP" >&6; }
10952 EGREP="$ac_cv_path_EGREP"
10953
10954
10955 case $host_cpu in
10956 c90 | t90)
10957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958 /* end confdefs.h. */
10959 #ifdef _CRAYIEEE
10960 yes
10961 #endif
10962 _ACEOF
10963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10964 $EGREP "yes" >/dev/null 2>&1; then :
10965 add_path="cray/ieee"
10966 else
10967 add_path="cray/cfp"; extra_functions="mulwwc90"
10968 fi
10969 rm -f conftest*
10970
10971 ;;
10972 j90 | sv1)
10973 add_path="cray/cfp"; extra_functions="mulwwj90"
10974 ;;
10975 esac
10976
10977
10978
10979 if test -z "$MPN_PATH"; then
10980 path="$add_path $path"
10981 fi
10982
10983 # For a nail build, also look in "nails" subdirectories.
10984 #
10985 if test $GMP_NAIL_BITS != 0 && test -z "$MPN_PATH"; then
10986 new_path=
10987 for i in $path; do
10988 case $i in
10989 generic) new_path="$new_path $i" ;;
10990 *) new_path="$new_path $i/nails $i" ;;
10991 esac
10992 done
10993 path=$new_path
10994 fi
10995
10996
10997 # Put all directories into CPUVEC_list so as to get a full set of
10998 # CPUVEC_SETUP_$tmp_suffix defines into config.h, even if some of them are
10999 # empty because mmx and/or sse2 had to be dropped.
11000 #
11001 for i in $fat_path; do
11002 tmp_suffix=`echo $i | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
11003 CPUVEC_list="$CPUVEC_list CPUVEC_SETUP_$tmp_suffix"
11004 done
11005
11006
11007 # If there's any sse2 or mmx in the path, check whether the assembler
11008 # supports it, and remove if not.
11009 #
11010 # We only need this in ABI=32, for ABI=64 on x86_64 we can assume a new
11011 # enough assembler.
11012 #
11013 case $host in
11014 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | jaguar*-*-* | bulldozer*-*-* | piledriver*-*-* | steamroller*-*-* | excavator*-*-* | zen*-*-* | pentium4-*-* | atom-*-* | silvermont-*-* | goldmont-*-* | tremont-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-* | nehalem*-*-* | westmere*-*-* | sandybridge*-*-* | ivybridge*-*-* | haswell*-*-* | broadwell*-*-* | skylake*-*-* | kabylake*-*-* | icelake*-*-* | tigerlake*-*-* | rocketlake*-*-* | alderlake*-*-* | raptorlake*-*-*)
11015 if test "$ABI" = 32; then
11016 case "$path $fat_path" in
11017 *mmx*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about MMX instructions" >&5
11018 $as_echo_n "checking if the assembler knows about MMX instructions... " >&6; }
11019 if ${gmp_cv_asm_x86_mmx+:} false; then :
11020 $as_echo_n "(cached) " >&6
11021 else
11022 cat >conftest.s <<EOF
11023 .text
11024 movq %mm0, %mm1
11025 EOF
11026 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
11027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
11028 (eval $gmp_assemble) 2>&5
11029 ac_status=$?
11030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11031 test $ac_status = 0; }; then
11032 cat conftest.out >&5
11033 gmp_cv_asm_x86_mmx=yes
11034 case $host in
11035 *-*-solaris*)
11036 if (dis conftest.$OBJEXT >conftest.out) 2>/dev/null; then
11037 if grep "0f 6f c1" conftest.out >/dev/null; then
11038 gmp_cv_asm_x86_mmx=movq-bug
11039 fi
11040 else
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"dis\" not available to check for \"as\" movq bug" >&5
11042 $as_echo "$as_me: WARNING: \"dis\" not available to check for \"as\" movq bug" >&2;}
11043 fi
11044 esac
11045 else
11046 cat conftest.out >&5
11047 echo "configure: failed program was:" >&5
11048 cat conftest.s >&5
11049 gmp_cv_asm_x86_mmx=no
11050 fi
11051 rm -f conftest*
11052
11053 fi
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_mmx" >&5
11055 $as_echo "$gmp_cv_asm_x86_mmx" >&6; }
11056
11057 case $gmp_cv_asm_x86_mmx in
11058 movq-bug)
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
11060 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
11062 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has MMX code, but the assembler" >&5
11064 $as_echo "$as_me: WARNING: | Host CPU has MMX code, but the assembler" >&2;}
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
11066 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&5
11068 $as_echo "$as_me: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&2;}
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | movq operands are reversed." >&5
11070 $as_echo "$as_me: WARNING: | movq operands are reversed." >&2;}
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-MMX replacements will be used." >&5
11072 $as_echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
11074 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
11076 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
11077 ;;
11078 no)
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
11080 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
11082 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&5
11084 $as_echo "$as_me: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&2;}
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
11086 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-MMX replacements will be used." >&5
11088 $as_echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
11090 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
11092 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
11093 ;;
11094 esac
11095 if test "$gmp_cv_asm_x86_mmx" = yes; then
11096 :
11097 else
11098 tmp_path=
11099 for i in $path; do
11100 case $i in
11101 */*mmx*) ;;
11102 *) tmp_path="$tmp_path $i" ;;
11103 esac
11104 done
11105 path="$tmp_path"
11106
11107 tmp_path=
11108 for i in $fat_path; do
11109 case $i in
11110 */*mmx*) ;;
11111 *) tmp_path="$tmp_path $i" ;;
11112 esac
11113 done
11114 fat_path="$tmp_path"
11115
11116
11117 fi
11118 ;;
11119 esac
11120 case "$path $fat_path" in
11121 *sse2*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about SSE2 instructions" >&5
11122 $as_echo_n "checking if the assembler knows about SSE2 instructions... " >&6; }
11123 if ${gmp_cv_asm_x86_sse2+:} false; then :
11124 $as_echo_n "(cached) " >&6
11125 else
11126 cat >conftest.s <<EOF
11127 .text
11128 paddq %mm0, %mm1
11129 EOF
11130 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
11131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
11132 (eval $gmp_assemble) 2>&5
11133 ac_status=$?
11134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11135 test $ac_status = 0; }; then
11136 cat conftest.out >&5
11137 gmp_cv_asm_x86_sse2=yes
11138 else
11139 cat conftest.out >&5
11140 echo "configure: failed program was:" >&5
11141 cat conftest.s >&5
11142 gmp_cv_asm_x86_sse2=no
11143 fi
11144 rm -f conftest*
11145
11146
11147 fi
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_sse2" >&5
11149 $as_echo "$gmp_cv_asm_x86_sse2" >&6; }
11150 case $gmp_cv_asm_x86_sse2 in
11151 yes)
11152 :
11153 ;;
11154 *)
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
11156 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
11158 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&5
11160 $as_echo "$as_me: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&2;}
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
11162 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-SSE2 replacements will be used." >&5
11164 $as_echo "$as_me: WARNING: | Non-SSE2 replacements will be used." >&2;}
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
11166 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
11168 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
11169 tmp_path=
11170 for i in $path; do
11171 case $i in
11172 */sse2) ;;
11173 *) tmp_path="$tmp_path $i" ;;
11174 esac
11175 done
11176 path="$tmp_path"
11177
11178 tmp_path=
11179 for i in $fat_path; do
11180 case $i in
11181 */sse2) ;;
11182 *) tmp_path="$tmp_path $i" ;;
11183 esac
11184 done
11185 fat_path="$tmp_path"
11186
11187
11188 ;;
11189 esac
11190 ;;
11191 esac
11192 fi
11193 ;;
11194 esac
11195
11196
11197 if test "$enable_assembly" = "no"; then
11198 path="generic"
11199
11200 $as_echo "#define NO_ASM 1" >>confdefs.h
11201
11202 # for abi in $abilist; do
11203 # eval unset "path_\$abi"
11204 # eval gcc_${abi}_cflags=\"\$gcc_${abi}_cflags -DNO_ASM\"
11205 # done
11206 fi
11207
11208
11209 cat >&5 <<EOF
11210 Decided:
11211 ABI=$ABI
11212 CC=$CC
11213 CFLAGS=$CFLAGS
11214 CPPFLAGS=$CPPFLAGS
11215 GMP_LDFLAGS=$GMP_LDFLAGS
11216 CXX=$CXX
11217 CXXFLAGS=$CXXFLAGS
11218 path=$path
11219 EOF
11220 echo "using ABI=\"$ABI\""
11221 echo " CC=\"$CC\""
11222 echo " CFLAGS=\"$CFLAGS\""
11223 echo " CPPFLAGS=\"$CPPFLAGS\""
11224 if test $want_cxx = yes; then
11225 echo " CXX=\"$CXX\""
11226 echo " CXXFLAGS=\"$CXXFLAGS\""
11227 fi
11228 echo " MPN_PATH=\"$path\""
11229
11230
11231
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports --noexecstack option" >&5
11233 $as_echo_n "checking whether assembler supports --noexecstack option... " >&6; }
11234 if ${cl_cv_as_noexecstack+:} false; then :
11235 $as_echo_n "(cached) " >&6
11236 else
11237 cat > conftest.c <<EOF
11238 void foo() {}
11239 EOF
11240 if { ac_try='${CC} $CFLAGS $CPPFLAGS
11241 -S -o conftest.s conftest.c >/dev/null'
11242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11243 (eval $ac_try) 2>&5
11244 ac_status=$?
11245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11246 test $ac_status = 0; }; } \
11247 && grep .note.GNU-stack conftest.s >/dev/null \
11248 && { ac_try='${CC} $CFLAGS $CPPFLAGS -Wa,--noexecstack
11249 -c -o conftest.o conftest.s >/dev/null'
11250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11251 (eval $ac_try) 2>&5
11252 ac_status=$?
11253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11254 test $ac_status = 0; }; }
11255 then
11256 cl_cv_as_noexecstack=yes
11257 else
11258 cl_cv_as_noexecstack=no
11259 fi
11260 rm -f conftest*
11261 fi
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_as_noexecstack" >&5
11263 $as_echo "$cl_cv_as_noexecstack" >&6; }
11264 if test "$cl_cv_as_noexecstack" = yes; then
11265 ASMFLAGS="$ASMFLAGS -Wa,--noexecstack"
11266 fi
11267
11268
11269
11270
11271 gmp_user_AR=$AR
11272 if test -n "$ac_tool_prefix"; then
11273 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11274 set dummy ${ac_tool_prefix}ar; ac_word=$2
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11276 $as_echo_n "checking for $ac_word... " >&6; }
11277 if ${ac_cv_prog_AR+:} false; then :
11278 $as_echo_n "(cached) " >&6
11279 else
11280 if test -n "$AR"; then
11281 ac_cv_prog_AR="$AR" # Let the user override the test.
11282 else
11283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11284 for as_dir in $PATH
11285 do
11286 IFS=$as_save_IFS
11287 test -z "$as_dir" && as_dir=.
11288 for ac_exec_ext in '' $ac_executable_extensions; do
11289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11290 ac_cv_prog_AR="${ac_tool_prefix}ar"
11291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11292 break 2
11293 fi
11294 done
11295 done
11296 IFS=$as_save_IFS
11297
11298 fi
11299 fi
11300 AR=$ac_cv_prog_AR
11301 if test -n "$AR"; then
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11303 $as_echo "$AR" >&6; }
11304 else
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11306 $as_echo "no" >&6; }
11307 fi
11308
11309
11310 fi
11311 if test -z "$ac_cv_prog_AR"; then
11312 ac_ct_AR=$AR
11313 # Extract the first word of "ar", so it can be a program name with args.
11314 set dummy ar; ac_word=$2
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11316 $as_echo_n "checking for $ac_word... " >&6; }
11317 if ${ac_cv_prog_ac_ct_AR+:} false; then :
11318 $as_echo_n "(cached) " >&6
11319 else
11320 if test -n "$ac_ct_AR"; then
11321 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11322 else
11323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324 for as_dir in $PATH
11325 do
11326 IFS=$as_save_IFS
11327 test -z "$as_dir" && as_dir=.
11328 for ac_exec_ext in '' $ac_executable_extensions; do
11329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11330 ac_cv_prog_ac_ct_AR="ar"
11331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11332 break 2
11333 fi
11334 done
11335 done
11336 IFS=$as_save_IFS
11337
11338 fi
11339 fi
11340 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11341 if test -n "$ac_ct_AR"; then
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11343 $as_echo "$ac_ct_AR" >&6; }
11344 else
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346 $as_echo "no" >&6; }
11347 fi
11348
11349 if test "x$ac_ct_AR" = x; then
11350 AR="ar"
11351 else
11352 case $cross_compiling:$ac_tool_warned in
11353 yes:)
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11356 ac_tool_warned=yes ;;
11357 esac
11358 AR=$ac_ct_AR
11359 fi
11360 else
11361 AR="$ac_cv_prog_AR"
11362 fi
11363
11364 if test -z "$gmp_user_AR"; then
11365 eval arflags=\"\$ar${abi1}_flags\"
11366 test -n "$arflags" || eval arflags=\"\$ar${abi2}_flags\"
11367 if test -n "$arflags"; then
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra ar flags" >&5
11369 $as_echo_n "checking for extra ar flags... " >&6; }
11370 AR="$AR $arflags"
11371 ac_cv_prog_AR="$AR $arflags"
11372 ac_cv_prog_ac_ct_AR="$AR $arflags"
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arflags" >&5
11374 $as_echo "$arflags" >&6; }
11375 fi
11376 fi
11377 if test -z "$AR_FLAGS"; then
11378 AR_FLAGS=cq
11379 fi
11380
11381
11382 gmp_user_NM=$NM
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11384 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11385 if ${lt_cv_path_NM+:} false; then :
11386 $as_echo_n "(cached) " >&6
11387 else
11388 if test -n "$NM"; then
11389 # Let the user override the test.
11390 lt_cv_path_NM=$NM
11391 else
11392 lt_nm_to_check=${ac_tool_prefix}nm
11393 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11394 lt_nm_to_check="$lt_nm_to_check nm"
11395 fi
11396 for lt_tmp_nm in $lt_nm_to_check; do
11397 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11398 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11399 IFS=$lt_save_ifs
11400 test -z "$ac_dir" && ac_dir=.
11401 tmp_nm=$ac_dir/$lt_tmp_nm
11402 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11403 # Check to see if the nm accepts a BSD-compat flag.
11404 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11405 # nm: unknown option "B" ignored
11406 # Tru64's nm complains that /dev/null is an invalid object file
11407 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11408 case $build_os in
11409 mingw*) lt_bad_file=conftest.nm/nofile ;;
11410 *) lt_bad_file=/dev/null ;;
11411 esac
11412 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11413 *$lt_bad_file* | *'Invalid file or object type'*)
11414 lt_cv_path_NM="$tmp_nm -B"
11415 break 2
11416 ;;
11417 *)
11418 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11419 */dev/null*)
11420 lt_cv_path_NM="$tmp_nm -p"
11421 break 2
11422 ;;
11423 *)
11424 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11425 continue # so that we can try to find one that supports BSD flags
11426 ;;
11427 esac
11428 ;;
11429 esac
11430 fi
11431 done
11432 IFS=$lt_save_ifs
11433 done
11434 : ${lt_cv_path_NM=no}
11435 fi
11436 fi
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11438 $as_echo "$lt_cv_path_NM" >&6; }
11439 if test no != "$lt_cv_path_NM"; then
11440 NM=$lt_cv_path_NM
11441 else
11442 # Didn't find any BSD compatible name lister, look for dumpbin.
11443 if test -n "$DUMPBIN"; then :
11444 # Let the user override the test.
11445 else
11446 if test -n "$ac_tool_prefix"; then
11447 for ac_prog in dumpbin "link -dump"
11448 do
11449 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11450 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11452 $as_echo_n "checking for $ac_word... " >&6; }
11453 if ${ac_cv_prog_DUMPBIN+:} false; then :
11454 $as_echo_n "(cached) " >&6
11455 else
11456 if test -n "$DUMPBIN"; then
11457 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11458 else
11459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11460 for as_dir in $PATH
11461 do
11462 IFS=$as_save_IFS
11463 test -z "$as_dir" && as_dir=.
11464 for ac_exec_ext in '' $ac_executable_extensions; do
11465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11466 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11468 break 2
11469 fi
11470 done
11471 done
11472 IFS=$as_save_IFS
11473
11474 fi
11475 fi
11476 DUMPBIN=$ac_cv_prog_DUMPBIN
11477 if test -n "$DUMPBIN"; then
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11479 $as_echo "$DUMPBIN" >&6; }
11480 else
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11482 $as_echo "no" >&6; }
11483 fi
11484
11485
11486 test -n "$DUMPBIN" && break
11487 done
11488 fi
11489 if test -z "$DUMPBIN"; then
11490 ac_ct_DUMPBIN=$DUMPBIN
11491 for ac_prog in dumpbin "link -dump"
11492 do
11493 # Extract the first word of "$ac_prog", so it can be a program name with args.
11494 set dummy $ac_prog; ac_word=$2
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11496 $as_echo_n "checking for $ac_word... " >&6; }
11497 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11498 $as_echo_n "(cached) " >&6
11499 else
11500 if test -n "$ac_ct_DUMPBIN"; then
11501 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11502 else
11503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504 for as_dir in $PATH
11505 do
11506 IFS=$as_save_IFS
11507 test -z "$as_dir" && as_dir=.
11508 for ac_exec_ext in '' $ac_executable_extensions; do
11509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11510 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11512 break 2
11513 fi
11514 done
11515 done
11516 IFS=$as_save_IFS
11517
11518 fi
11519 fi
11520 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11521 if test -n "$ac_ct_DUMPBIN"; then
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11523 $as_echo "$ac_ct_DUMPBIN" >&6; }
11524 else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526 $as_echo "no" >&6; }
11527 fi
11528
11529
11530 test -n "$ac_ct_DUMPBIN" && break
11531 done
11532
11533 if test "x$ac_ct_DUMPBIN" = x; then
11534 DUMPBIN=":"
11535 else
11536 case $cross_compiling:$ac_tool_warned in
11537 yes:)
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11540 ac_tool_warned=yes ;;
11541 esac
11542 DUMPBIN=$ac_ct_DUMPBIN
11543 fi
11544 fi
11545
11546 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11547 *COFF*)
11548 DUMPBIN="$DUMPBIN -symbols -headers"
11549 ;;
11550 *)
11551 DUMPBIN=:
11552 ;;
11553 esac
11554 fi
11555
11556 if test : != "$DUMPBIN"; then
11557 NM=$DUMPBIN
11558 fi
11559 fi
11560 test -z "$NM" && NM=nm
11561
11562
11563
11564
11565
11566
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11568 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11569 if ${lt_cv_nm_interface+:} false; then :
11570 $as_echo_n "(cached) " >&6
11571 else
11572 lt_cv_nm_interface="BSD nm"
11573 echo "int some_variable = 0;" > conftest.$ac_ext
11574 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11575 (eval "$ac_compile" 2>conftest.err)
11576 cat conftest.err >&5
11577 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11578 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11579 cat conftest.err >&5
11580 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11581 cat conftest.out >&5
11582 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11583 lt_cv_nm_interface="MS dumpbin"
11584 fi
11585 rm -f conftest*
11586 fi
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11588 $as_echo "$lt_cv_nm_interface" >&6; }
11589
11590
11591 # FIXME: When cross compiling (ie. $ac_tool_prefix not empty), libtool
11592 # defaults to plain "nm" if a "${ac_tool_prefix}nm" is not found. In this
11593 # case run it again to try the native "nm", firstly so that likely locations
11594 # are searched, secondly so that -B or -p are added if necessary for BSD
11595 # format. This is necessary for instance on OSF with "./configure
11596 # --build=alphaev5-dec-osf --host=alphaev6-dec-osf".
11597 #
11598 if test -z "$gmp_user_NM" && test -n "$ac_tool_prefix" && test "$NM" = nm; then
11599 $as_unset lt_cv_path_NM
11600 gmp_save_ac_tool_prefix=$ac_tool_prefix
11601 ac_tool_prefix=
11602 NM=
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11604 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11605 if ${lt_cv_path_NM+:} false; then :
11606 $as_echo_n "(cached) " >&6
11607 else
11608 if test -n "$NM"; then
11609 # Let the user override the test.
11610 lt_cv_path_NM=$NM
11611 else
11612 lt_nm_to_check=${ac_tool_prefix}nm
11613 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11614 lt_nm_to_check="$lt_nm_to_check nm"
11615 fi
11616 for lt_tmp_nm in $lt_nm_to_check; do
11617 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11618 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11619 IFS=$lt_save_ifs
11620 test -z "$ac_dir" && ac_dir=.
11621 tmp_nm=$ac_dir/$lt_tmp_nm
11622 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11623 # Check to see if the nm accepts a BSD-compat flag.
11624 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11625 # nm: unknown option "B" ignored
11626 # Tru64's nm complains that /dev/null is an invalid object file
11627 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11628 case $build_os in
11629 mingw*) lt_bad_file=conftest.nm/nofile ;;
11630 *) lt_bad_file=/dev/null ;;
11631 esac
11632 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11633 *$lt_bad_file* | *'Invalid file or object type'*)
11634 lt_cv_path_NM="$tmp_nm -B"
11635 break 2
11636 ;;
11637 *)
11638 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11639 */dev/null*)
11640 lt_cv_path_NM="$tmp_nm -p"
11641 break 2
11642 ;;
11643 *)
11644 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11645 continue # so that we can try to find one that supports BSD flags
11646 ;;
11647 esac
11648 ;;
11649 esac
11650 fi
11651 done
11652 IFS=$lt_save_ifs
11653 done
11654 : ${lt_cv_path_NM=no}
11655 fi
11656 fi
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11658 $as_echo "$lt_cv_path_NM" >&6; }
11659 if test no != "$lt_cv_path_NM"; then
11660 NM=$lt_cv_path_NM
11661 else
11662 # Didn't find any BSD compatible name lister, look for dumpbin.
11663 if test -n "$DUMPBIN"; then :
11664 # Let the user override the test.
11665 else
11666 if test -n "$ac_tool_prefix"; then
11667 for ac_prog in dumpbin "link -dump"
11668 do
11669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11670 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11672 $as_echo_n "checking for $ac_word... " >&6; }
11673 if ${ac_cv_prog_DUMPBIN+:} false; then :
11674 $as_echo_n "(cached) " >&6
11675 else
11676 if test -n "$DUMPBIN"; then
11677 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11678 else
11679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11680 for as_dir in $PATH
11681 do
11682 IFS=$as_save_IFS
11683 test -z "$as_dir" && as_dir=.
11684 for ac_exec_ext in '' $ac_executable_extensions; do
11685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11686 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11688 break 2
11689 fi
11690 done
11691 done
11692 IFS=$as_save_IFS
11693
11694 fi
11695 fi
11696 DUMPBIN=$ac_cv_prog_DUMPBIN
11697 if test -n "$DUMPBIN"; then
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11699 $as_echo "$DUMPBIN" >&6; }
11700 else
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11702 $as_echo "no" >&6; }
11703 fi
11704
11705
11706 test -n "$DUMPBIN" && break
11707 done
11708 fi
11709 if test -z "$DUMPBIN"; then
11710 ac_ct_DUMPBIN=$DUMPBIN
11711 for ac_prog in dumpbin "link -dump"
11712 do
11713 # Extract the first word of "$ac_prog", so it can be a program name with args.
11714 set dummy $ac_prog; ac_word=$2
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11716 $as_echo_n "checking for $ac_word... " >&6; }
11717 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11718 $as_echo_n "(cached) " >&6
11719 else
11720 if test -n "$ac_ct_DUMPBIN"; then
11721 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11722 else
11723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11724 for as_dir in $PATH
11725 do
11726 IFS=$as_save_IFS
11727 test -z "$as_dir" && as_dir=.
11728 for ac_exec_ext in '' $ac_executable_extensions; do
11729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11730 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11732 break 2
11733 fi
11734 done
11735 done
11736 IFS=$as_save_IFS
11737
11738 fi
11739 fi
11740 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11741 if test -n "$ac_ct_DUMPBIN"; then
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11743 $as_echo "$ac_ct_DUMPBIN" >&6; }
11744 else
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11746 $as_echo "no" >&6; }
11747 fi
11748
11749
11750 test -n "$ac_ct_DUMPBIN" && break
11751 done
11752
11753 if test "x$ac_ct_DUMPBIN" = x; then
11754 DUMPBIN=":"
11755 else
11756 case $cross_compiling:$ac_tool_warned in
11757 yes:)
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11760 ac_tool_warned=yes ;;
11761 esac
11762 DUMPBIN=$ac_ct_DUMPBIN
11763 fi
11764 fi
11765
11766 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11767 *COFF*)
11768 DUMPBIN="$DUMPBIN -symbols -headers"
11769 ;;
11770 *)
11771 DUMPBIN=:
11772 ;;
11773 esac
11774 fi
11775
11776 if test : != "$DUMPBIN"; then
11777 NM=$DUMPBIN
11778 fi
11779 fi
11780 test -z "$NM" && NM=nm
11781
11782
11783
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11785 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11786 if ${lt_cv_nm_interface+:} false; then :
11787 $as_echo_n "(cached) " >&6
11788 else
11789 lt_cv_nm_interface="BSD nm"
11790 echo "int some_variable = 0;" > conftest.$ac_ext
11791 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11792 (eval "$ac_compile" 2>conftest.err)
11793 cat conftest.err >&5
11794 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11795 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11796 cat conftest.err >&5
11797 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11798 cat conftest.out >&5
11799 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11800 lt_cv_nm_interface="MS dumpbin"
11801 fi
11802 rm -f conftest*
11803 fi
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11805 $as_echo "$lt_cv_nm_interface" >&6; }
11806
11807 ac_tool_prefix=$gmp_save_ac_tool_prefix
11808 fi
11809
11810 if test -z "$gmp_user_NM"; then
11811 eval nmflags=\"\$nm${abi1}_flags\"
11812 test -n "$nmflags" || eval nmflags=\"\$nm${abi2}_flags\"
11813 if test -n "$nmflags"; then
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra nm flags" >&5
11815 $as_echo_n "checking for extra nm flags... " >&6; }
11816 NM="$NM $nmflags"
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nmflags" >&5
11818 $as_echo "$nmflags" >&6; }
11819 fi
11820 fi
11821
11822
11823 case $host in
11824 # FIXME: On AIX 3 and 4, $libname.a is included in libtool
11825 # $library_names_spec, so libgmp.a becomes a symlink to libgmp.so, making
11826 # it impossible to build shared and static libraries simultaneously.
11827 # Disable shared libraries by default, but let the user override with
11828 # --enable-shared --disable-static.
11829 #
11830 # FIXME: This $libname.a problem looks like it might apply to *-*-amigaos*
11831 # and *-*-os2* too, but wait for someone to test this before worrying
11832 # about it. If there is a problem then of course libtool is the right
11833 # place to fix it.
11834 #
11835 *-*-aix[34]*)
11836 if test -z "$enable_shared"; then enable_shared=no; fi ;;
11837 esac
11838
11839
11840 # Configs for Windows DLLs.
11841
11842 enable_win32_dll=yes
11843
11844 case $host in
11845 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11846 if test -n "$ac_tool_prefix"; then
11847 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11848 set dummy ${ac_tool_prefix}as; ac_word=$2
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11850 $as_echo_n "checking for $ac_word... " >&6; }
11851 if ${ac_cv_prog_AS+:} false; then :
11852 $as_echo_n "(cached) " >&6
11853 else
11854 if test -n "$AS"; then
11855 ac_cv_prog_AS="$AS" # Let the user override the test.
11856 else
11857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858 for as_dir in $PATH
11859 do
11860 IFS=$as_save_IFS
11861 test -z "$as_dir" && as_dir=.
11862 for ac_exec_ext in '' $ac_executable_extensions; do
11863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11864 ac_cv_prog_AS="${ac_tool_prefix}as"
11865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11866 break 2
11867 fi
11868 done
11869 done
11870 IFS=$as_save_IFS
11871
11872 fi
11873 fi
11874 AS=$ac_cv_prog_AS
11875 if test -n "$AS"; then
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11877 $as_echo "$AS" >&6; }
11878 else
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880 $as_echo "no" >&6; }
11881 fi
11882
11883
11884 fi
11885 if test -z "$ac_cv_prog_AS"; then
11886 ac_ct_AS=$AS
11887 # Extract the first word of "as", so it can be a program name with args.
11888 set dummy as; ac_word=$2
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890 $as_echo_n "checking for $ac_word... " >&6; }
11891 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11892 $as_echo_n "(cached) " >&6
11893 else
11894 if test -n "$ac_ct_AS"; then
11895 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11896 else
11897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898 for as_dir in $PATH
11899 do
11900 IFS=$as_save_IFS
11901 test -z "$as_dir" && as_dir=.
11902 for ac_exec_ext in '' $ac_executable_extensions; do
11903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11904 ac_cv_prog_ac_ct_AS="as"
11905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11906 break 2
11907 fi
11908 done
11909 done
11910 IFS=$as_save_IFS
11911
11912 fi
11913 fi
11914 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11915 if test -n "$ac_ct_AS"; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11917 $as_echo "$ac_ct_AS" >&6; }
11918 else
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920 $as_echo "no" >&6; }
11921 fi
11922
11923 if test "x$ac_ct_AS" = x; then
11924 AS="false"
11925 else
11926 case $cross_compiling:$ac_tool_warned in
11927 yes:)
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11930 ac_tool_warned=yes ;;
11931 esac
11932 AS=$ac_ct_AS
11933 fi
11934 else
11935 AS="$ac_cv_prog_AS"
11936 fi
11937
11938 if test -n "$ac_tool_prefix"; then
11939 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11940 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11942 $as_echo_n "checking for $ac_word... " >&6; }
11943 if ${ac_cv_prog_DLLTOOL+:} false; then :
11944 $as_echo_n "(cached) " >&6
11945 else
11946 if test -n "$DLLTOOL"; then
11947 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11948 else
11949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950 for as_dir in $PATH
11951 do
11952 IFS=$as_save_IFS
11953 test -z "$as_dir" && as_dir=.
11954 for ac_exec_ext in '' $ac_executable_extensions; do
11955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11956 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11958 break 2
11959 fi
11960 done
11961 done
11962 IFS=$as_save_IFS
11963
11964 fi
11965 fi
11966 DLLTOOL=$ac_cv_prog_DLLTOOL
11967 if test -n "$DLLTOOL"; then
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11969 $as_echo "$DLLTOOL" >&6; }
11970 else
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972 $as_echo "no" >&6; }
11973 fi
11974
11975
11976 fi
11977 if test -z "$ac_cv_prog_DLLTOOL"; then
11978 ac_ct_DLLTOOL=$DLLTOOL
11979 # Extract the first word of "dlltool", so it can be a program name with args.
11980 set dummy dlltool; ac_word=$2
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11982 $as_echo_n "checking for $ac_word... " >&6; }
11983 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11984 $as_echo_n "(cached) " >&6
11985 else
11986 if test -n "$ac_ct_DLLTOOL"; then
11987 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11988 else
11989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990 for as_dir in $PATH
11991 do
11992 IFS=$as_save_IFS
11993 test -z "$as_dir" && as_dir=.
11994 for ac_exec_ext in '' $ac_executable_extensions; do
11995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11996 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11998 break 2
11999 fi
12000 done
12001 done
12002 IFS=$as_save_IFS
12003
12004 fi
12005 fi
12006 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12007 if test -n "$ac_ct_DLLTOOL"; then
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12009 $as_echo "$ac_ct_DLLTOOL" >&6; }
12010 else
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12012 $as_echo "no" >&6; }
12013 fi
12014
12015 if test "x$ac_ct_DLLTOOL" = x; then
12016 DLLTOOL="false"
12017 else
12018 case $cross_compiling:$ac_tool_warned in
12019 yes:)
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12022 ac_tool_warned=yes ;;
12023 esac
12024 DLLTOOL=$ac_ct_DLLTOOL
12025 fi
12026 else
12027 DLLTOOL="$ac_cv_prog_DLLTOOL"
12028 fi
12029
12030 if test -n "$ac_tool_prefix"; then
12031 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12032 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12034 $as_echo_n "checking for $ac_word... " >&6; }
12035 if ${ac_cv_prog_OBJDUMP+:} false; then :
12036 $as_echo_n "(cached) " >&6
12037 else
12038 if test -n "$OBJDUMP"; then
12039 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12040 else
12041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042 for as_dir in $PATH
12043 do
12044 IFS=$as_save_IFS
12045 test -z "$as_dir" && as_dir=.
12046 for ac_exec_ext in '' $ac_executable_extensions; do
12047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12048 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12050 break 2
12051 fi
12052 done
12053 done
12054 IFS=$as_save_IFS
12055
12056 fi
12057 fi
12058 OBJDUMP=$ac_cv_prog_OBJDUMP
12059 if test -n "$OBJDUMP"; then
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12061 $as_echo "$OBJDUMP" >&6; }
12062 else
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12064 $as_echo "no" >&6; }
12065 fi
12066
12067
12068 fi
12069 if test -z "$ac_cv_prog_OBJDUMP"; then
12070 ac_ct_OBJDUMP=$OBJDUMP
12071 # Extract the first word of "objdump", so it can be a program name with args.
12072 set dummy objdump; ac_word=$2
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12074 $as_echo_n "checking for $ac_word... " >&6; }
12075 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12076 $as_echo_n "(cached) " >&6
12077 else
12078 if test -n "$ac_ct_OBJDUMP"; then
12079 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12080 else
12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $PATH
12083 do
12084 IFS=$as_save_IFS
12085 test -z "$as_dir" && as_dir=.
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12088 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12090 break 2
12091 fi
12092 done
12093 done
12094 IFS=$as_save_IFS
12095
12096 fi
12097 fi
12098 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12099 if test -n "$ac_ct_OBJDUMP"; then
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12101 $as_echo "$ac_ct_OBJDUMP" >&6; }
12102 else
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104 $as_echo "no" >&6; }
12105 fi
12106
12107 if test "x$ac_ct_OBJDUMP" = x; then
12108 OBJDUMP="false"
12109 else
12110 case $cross_compiling:$ac_tool_warned in
12111 yes:)
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12114 ac_tool_warned=yes ;;
12115 esac
12116 OBJDUMP=$ac_ct_OBJDUMP
12117 fi
12118 else
12119 OBJDUMP="$ac_cv_prog_OBJDUMP"
12120 fi
12121
12122 ;;
12123 esac
12124
12125 test -z "$AS" && AS=as
12126
12127
12128
12129
12130
12131 test -z "$DLLTOOL" && DLLTOOL=dlltool
12132
12133
12134
12135
12136
12137 test -z "$OBJDUMP" && OBJDUMP=objdump
12138
12139
12140
12141
12142
12143
12144
12145
12146 LIBGMP_DLL=0
12147
12148 case $host in
12149 *-*-cygwin* | *-*-mingw* | *-*-msys | *-*-pw32* | *-*-os2*)
12150 # By default, build only static.
12151 if test -z "$enable_shared"; then
12152 enable_shared=no
12153 fi
12154 # Don't allow both static and DLL.
12155 if test "$enable_shared" != no && test "$enable_static" != no; then
12156 as_fn_error $? "cannot build both static and DLL, since gmp.h is different for each.
12157 Use \"--disable-static --enable-shared\" to build just a DLL." "$LINENO" 5
12158 fi
12159
12160 # "-no-undefined" is required when building a DLL, see documentation on
12161 # AC_LIBTOOL_WIN32_DLL.
12162 #
12163 # "-Wl,--export-all-symbols" is a bit of a hack, it gets all libgmp and
12164 # libgmpxx functions and variables exported. This is what libtool did
12165 # in the past, and it's convenient for us in the test programs.
12166 #
12167 # Maybe it'd be prudent to check for --export-all-symbols before using
12168 # it, but it seems to have been in ld since at least 2000, and there's
12169 # not really any alternative we want to take up at the moment.
12170 #
12171 # "-Wl,output-def" is used to get a .def file for use by MS lib to make
12172 # a .lib import library, described in the manual. libgmp-3.dll.def
12173 # corresponds to the libmp-3.dll.def generated by libtool (as a result
12174 # of -export-symbols on that library).
12175 #
12176 # Incidentally, libtool does generate an import library libgmp.dll.a,
12177 # but it's "ar" format and cannot be used by the MS linker. There
12178 # doesn't seem to be any GNU tool for generating or converting to .lib.
12179 #
12180 # FIXME: The .def files produced by -Wl,output-def include isascii,
12181 # iscsym, iscsymf and toascii, apparently because mingw ctype.h doesn't
12182 # inline isascii (used in gmp). It gives an extern inline for
12183 # __isascii, but for some reason not the plain isascii.
12184 #
12185 if test "$enable_shared" = yes; then
12186 GMP_LDFLAGS="$GMP_LDFLAGS -no-undefined -Wl,--export-all-symbols"
12187 LIBGMP_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmp-3.dll.def"
12188 LIBGMPXX_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmpxx-3.dll.def"
12189 LIBGMP_DLL=1
12190 fi
12191 ;;
12192 esac
12193
12194
12195 # Ensure that $CONFIG_SHELL is available for AC_LIBTOOL_SYS_MAX_CMD_LEN.
12196 # It's often set already by _LT_AC_PROG_ECHO_BACKSLASH or
12197 # _AS_LINENO_PREPARE, but not always.
12198 #
12199 # The symptom of CONFIG_SHELL unset is some "expr" errors during the test,
12200 # and an empty result. This only happens when invoked as "sh configure",
12201 # ie. no path, and can be seen for instance on ia64-*-hpux*.
12202 #
12203 # FIXME: Newer libtool should have it's own fix for this.
12204 #
12205 if test -z "$CONFIG_SHELL"; then
12206 CONFIG_SHELL=$SHELL
12207 fi
12208
12209 # Enable CXX in libtool only if we want it, and never enable GCJ, nor RC on
12210 # mingw and cygwin. Under --disable-cxx this avoids some error messages
12211 # from libtool arising from the fact we didn't actually run AC_PROG_CXX.
12212 # Notice that any user-supplied --with-tags setting takes precedence.
12213 #
12214 # FIXME: Is this the right way to get this effect? Very possibly not, but
12215 # the current _LT_AC_TAGCONFIG doesn't really suggest an alternative.
12216 #
12217 if test "${with_tags+set}" != set; then
12218 if test $want_cxx = yes; then
12219 with_tags=CXX
12220 else
12221 with_tags=
12222 fi
12223 fi
12224
12225 # The dead hand of AC_REQUIRE makes AC_PROG_LIBTOOL expand and execute
12226 # AC_PROG_F77, even when F77 is not in the selected with_tags. This is
12227 # probably harmless, but it's unsightly and bloats our configure, so pretend
12228 # AC_PROG_F77 has been expanded already.
12229 #
12230 # FIXME: Rumour has it libtool will one day provide a way for a configure.in
12231 # to say what it wants from among supported languages etc.
12232 #
12233 #AC_PROVIDE([AC_PROG_F77])
12234
12235 case `pwd` in
12236 *\ * | *\ *)
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12238 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12239 esac
12240
12241
12242
12243 macro_version='2.4.6'
12244 macro_revision='2.4.6'
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258 ltmain=$ac_aux_dir/ltmain.sh
12259
12260 # Backslashify metacharacters that are still active within
12261 # double-quoted strings.
12262 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12263
12264 # Same as above, but do not quote variable references.
12265 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12266
12267 # Sed substitution to delay expansion of an escaped shell variable in a
12268 # double_quote_subst'ed string.
12269 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12270
12271 # Sed substitution to delay expansion of an escaped single quote.
12272 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12273
12274 # Sed substitution to avoid accidental globbing in evaled expressions
12275 no_glob_subst='s/\*/\\\*/g'
12276
12277 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12278 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12279 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12280
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12282 $as_echo_n "checking how to print strings... " >&6; }
12283 # Test print first, because it will be a builtin if present.
12284 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
12285 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12286 ECHO='print -r --'
12287 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12288 ECHO='printf %s\n'
12289 else
12290 # Use this function as a fallback that always works.
12291 func_fallback_echo ()
12292 {
12293 eval 'cat <<_LTECHO_EOF
12294 $1
12295 _LTECHO_EOF'
12296 }
12297 ECHO='func_fallback_echo'
12298 fi
12299
12300 # func_echo_all arg...
12301 # Invoke $ECHO with all args, space-separated.
12302 func_echo_all ()
12303 {
12304 $ECHO ""
12305 }
12306
12307 case $ECHO in
12308 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12309 $as_echo "printf" >&6; } ;;
12310 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12311 $as_echo "print -r" >&6; } ;;
12312 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12313 $as_echo "cat" >&6; } ;;
12314 esac
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12330 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12331 if ${ac_cv_path_SED+:} false; then :
12332 $as_echo_n "(cached) " >&6
12333 else
12334 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12335 for ac_i in 1 2 3 4 5 6 7; do
12336 ac_script="$ac_script$as_nl$ac_script"
12337 done
12338 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12339 { ac_script=; unset ac_script;}
12340 if test -z "$SED"; then
12341 ac_path_SED_found=false
12342 # Loop through the user's path and test for each of PROGNAME-LIST
12343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12344 for as_dir in $PATH
12345 do
12346 IFS=$as_save_IFS
12347 test -z "$as_dir" && as_dir=.
12348 for ac_prog in sed gsed; do
12349 for ac_exec_ext in '' $ac_executable_extensions; do
12350 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12351 as_fn_executable_p "$ac_path_SED" || continue
12352 # Check for GNU ac_path_SED and select it if it is found.
12353 # Check for GNU $ac_path_SED
12354 case `"$ac_path_SED" --version 2>&1` in
12355 *GNU*)
12356 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12357 *)
12358 ac_count=0
12359 $as_echo_n 0123456789 >"conftest.in"
12360 while :
12361 do
12362 cat "conftest.in" "conftest.in" >"conftest.tmp"
12363 mv "conftest.tmp" "conftest.in"
12364 cp "conftest.in" "conftest.nl"
12365 $as_echo '' >> "conftest.nl"
12366 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12367 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12368 as_fn_arith $ac_count + 1 && ac_count=$as_val
12369 if test $ac_count -gt ${ac_path_SED_max-0}; then
12370 # Best one so far, save it but keep looking for a better one
12371 ac_cv_path_SED="$ac_path_SED"
12372 ac_path_SED_max=$ac_count
12373 fi
12374 # 10*(2^10) chars as input seems more than enough
12375 test $ac_count -gt 10 && break
12376 done
12377 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12378 esac
12379
12380 $ac_path_SED_found && break 3
12381 done
12382 done
12383 done
12384 IFS=$as_save_IFS
12385 if test -z "$ac_cv_path_SED"; then
12386 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12387 fi
12388 else
12389 ac_cv_path_SED=$SED
12390 fi
12391
12392 fi
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12394 $as_echo "$ac_cv_path_SED" >&6; }
12395 SED="$ac_cv_path_SED"
12396 rm -f conftest.sed
12397
12398 test -z "$SED" && SED=sed
12399 Xsed="$SED -e 1s/^X//"
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12412 $as_echo_n "checking for fgrep... " >&6; }
12413 if ${ac_cv_path_FGREP+:} false; then :
12414 $as_echo_n "(cached) " >&6
12415 else
12416 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12417 then ac_cv_path_FGREP="$GREP -F"
12418 else
12419 if test -z "$FGREP"; then
12420 ac_path_FGREP_found=false
12421 # Loop through the user's path and test for each of PROGNAME-LIST
12422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12423 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12424 do
12425 IFS=$as_save_IFS
12426 test -z "$as_dir" && as_dir=.
12427 for ac_prog in fgrep; do
12428 for ac_exec_ext in '' $ac_executable_extensions; do
12429 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12430 as_fn_executable_p "$ac_path_FGREP" || continue
12431 # Check for GNU ac_path_FGREP and select it if it is found.
12432 # Check for GNU $ac_path_FGREP
12433 case `"$ac_path_FGREP" --version 2>&1` in
12434 *GNU*)
12435 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12436 *)
12437 ac_count=0
12438 $as_echo_n 0123456789 >"conftest.in"
12439 while :
12440 do
12441 cat "conftest.in" "conftest.in" >"conftest.tmp"
12442 mv "conftest.tmp" "conftest.in"
12443 cp "conftest.in" "conftest.nl"
12444 $as_echo 'FGREP' >> "conftest.nl"
12445 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12447 as_fn_arith $ac_count + 1 && ac_count=$as_val
12448 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12449 # Best one so far, save it but keep looking for a better one
12450 ac_cv_path_FGREP="$ac_path_FGREP"
12451 ac_path_FGREP_max=$ac_count
12452 fi
12453 # 10*(2^10) chars as input seems more than enough
12454 test $ac_count -gt 10 && break
12455 done
12456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12457 esac
12458
12459 $ac_path_FGREP_found && break 3
12460 done
12461 done
12462 done
12463 IFS=$as_save_IFS
12464 if test -z "$ac_cv_path_FGREP"; then
12465 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12466 fi
12467 else
12468 ac_cv_path_FGREP=$FGREP
12469 fi
12470
12471 fi
12472 fi
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12474 $as_echo "$ac_cv_path_FGREP" >&6; }
12475 FGREP="$ac_cv_path_FGREP"
12476
12477
12478 test -z "$GREP" && GREP=grep
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498 # Check whether --with-gnu-ld was given.
12499 if test "${with_gnu_ld+set}" = set; then :
12500 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12501 else
12502 with_gnu_ld=no
12503 fi
12504
12505 ac_prog=ld
12506 if test yes = "$GCC"; then
12507 # Check if gcc -print-prog-name=ld gives a path.
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12509 $as_echo_n "checking for ld used by $CC... " >&6; }
12510 case $host in
12511 *-*-mingw*)
12512 # gcc leaves a trailing carriage return, which upsets mingw
12513 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12514 *)
12515 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12516 esac
12517 case $ac_prog in
12518 # Accept absolute paths.
12519 [\\/]* | ?:[\\/]*)
12520 re_direlt='/[^/][^/]*/\.\./'
12521 # Canonicalize the pathname of ld
12522 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12523 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12524 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12525 done
12526 test -z "$LD" && LD=$ac_prog
12527 ;;
12528 "")
12529 # If it fails, then pretend we aren't using GCC.
12530 ac_prog=ld
12531 ;;
12532 *)
12533 # If it is relative, then search for the first ld in PATH.
12534 with_gnu_ld=unknown
12535 ;;
12536 esac
12537 elif test yes = "$with_gnu_ld"; then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12539 $as_echo_n "checking for GNU ld... " >&6; }
12540 else
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12542 $as_echo_n "checking for non-GNU ld... " >&6; }
12543 fi
12544 if ${lt_cv_path_LD+:} false; then :
12545 $as_echo_n "(cached) " >&6
12546 else
12547 if test -z "$LD"; then
12548 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12549 for ac_dir in $PATH; do
12550 IFS=$lt_save_ifs
12551 test -z "$ac_dir" && ac_dir=.
12552 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12553 lt_cv_path_LD=$ac_dir/$ac_prog
12554 # Check to see if the program is GNU ld. I'd rather use --version,
12555 # but apparently some variants of GNU ld only accept -v.
12556 # Break only if it was the GNU/non-GNU ld that we prefer.
12557 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12558 *GNU* | *'with BFD'*)
12559 test no != "$with_gnu_ld" && break
12560 ;;
12561 *)
12562 test yes != "$with_gnu_ld" && break
12563 ;;
12564 esac
12565 fi
12566 done
12567 IFS=$lt_save_ifs
12568 else
12569 lt_cv_path_LD=$LD # Let the user override the test with a path.
12570 fi
12571 fi
12572
12573 LD=$lt_cv_path_LD
12574 if test -n "$LD"; then
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12576 $as_echo "$LD" >&6; }
12577 else
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579 $as_echo "no" >&6; }
12580 fi
12581 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12583 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12584 if ${lt_cv_prog_gnu_ld+:} false; then :
12585 $as_echo_n "(cached) " >&6
12586 else
12587 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12588 case `$LD -v 2>&1 </dev/null` in
12589 *GNU* | *'with BFD'*)
12590 lt_cv_prog_gnu_ld=yes
12591 ;;
12592 *)
12593 lt_cv_prog_gnu_ld=no
12594 ;;
12595 esac
12596 fi
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12598 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12599 with_gnu_ld=$lt_cv_prog_gnu_ld
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12610 $as_echo_n "checking whether ln -s works... " >&6; }
12611 LN_S=$as_ln_s
12612 if test "$LN_S" = "ln -s"; then
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12614 $as_echo "yes" >&6; }
12615 else
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12617 $as_echo "no, using $LN_S" >&6; }
12618 fi
12619
12620 # find the maximum length of command line arguments
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12622 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12623 if ${lt_cv_sys_max_cmd_len+:} false; then :
12624 $as_echo_n "(cached) " >&6
12625 else
12626 i=0
12627 teststring=ABCD
12628
12629 case $build_os in
12630 msdosdjgpp*)
12631 # On DJGPP, this test can blow up pretty badly due to problems in libc
12632 # (any single argument exceeding 2000 bytes causes a buffer overrun
12633 # during glob expansion). Even if it were fixed, the result of this
12634 # check would be larger than it should be.
12635 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12636 ;;
12637
12638 gnu*)
12639 # Under GNU Hurd, this test is not required because there is
12640 # no limit to the length of command line arguments.
12641 # Libtool will interpret -1 as no limit whatsoever
12642 lt_cv_sys_max_cmd_len=-1;
12643 ;;
12644
12645 cygwin* | mingw* | cegcc*)
12646 # On Win9x/ME, this test blows up -- it succeeds, but takes
12647 # about 5 minutes as the teststring grows exponentially.
12648 # Worse, since 9x/ME are not pre-emptively multitasking,
12649 # you end up with a "frozen" computer, even though with patience
12650 # the test eventually succeeds (with a max line length of 256k).
12651 # Instead, let's just punt: use the minimum linelength reported by
12652 # all of the supported platforms: 8192 (on NT/2K/XP).
12653 lt_cv_sys_max_cmd_len=8192;
12654 ;;
12655
12656 mint*)
12657 # On MiNT this can take a long time and run out of memory.
12658 lt_cv_sys_max_cmd_len=8192;
12659 ;;
12660
12661 amigaos*)
12662 # On AmigaOS with pdksh, this test takes hours, literally.
12663 # So we just punt and use a minimum line length of 8192.
12664 lt_cv_sys_max_cmd_len=8192;
12665 ;;
12666
12667 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
12668 # This has been around since 386BSD, at least. Likely further.
12669 if test -x /sbin/sysctl; then
12670 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12671 elif test -x /usr/sbin/sysctl; then
12672 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12673 else
12674 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12675 fi
12676 # And add a safety zone
12677 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12678 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12679 ;;
12680
12681 interix*)
12682 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12683 lt_cv_sys_max_cmd_len=196608
12684 ;;
12685
12686 os2*)
12687 # The test takes a long time on OS/2.
12688 lt_cv_sys_max_cmd_len=8192
12689 ;;
12690
12691 osf*)
12692 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12693 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12694 # nice to cause kernel panics so lets avoid the loop below.
12695 # First set a reasonable default.
12696 lt_cv_sys_max_cmd_len=16384
12697 #
12698 if test -x /sbin/sysconfig; then
12699 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12700 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12701 esac
12702 fi
12703 ;;
12704 sco3.2v5*)
12705 lt_cv_sys_max_cmd_len=102400
12706 ;;
12707 sysv5* | sco5v6* | sysv4.2uw2*)
12708 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12709 if test -n "$kargmax"; then
12710 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12711 else
12712 lt_cv_sys_max_cmd_len=32768
12713 fi
12714 ;;
12715 *)
12716 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12717 if test -n "$lt_cv_sys_max_cmd_len" && \
12718 test undefined != "$lt_cv_sys_max_cmd_len"; then
12719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12721 else
12722 # Make teststring a little bigger before we do anything with it.
12723 # a 1K string should be a reasonable start.
12724 for i in 1 2 3 4 5 6 7 8; do
12725 teststring=$teststring$teststring
12726 done
12727 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12728 # If test is not a shell built-in, we'll probably end up computing a
12729 # maximum length that is only half of the actual maximum length, but
12730 # we can't tell.
12731 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12732 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12733 test 17 != "$i" # 1/2 MB should be enough
12734 do
12735 i=`expr $i + 1`
12736 teststring=$teststring$teststring
12737 done
12738 # Only check the string length outside the loop.
12739 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12740 teststring=
12741 # Add a significant safety factor because C++ compilers can tack on
12742 # massive amounts of additional arguments before passing them to the
12743 # linker. It appears as though 1/2 is a usable value.
12744 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12745 fi
12746 ;;
12747 esac
12748
12749 fi
12750
12751 if test -n "$lt_cv_sys_max_cmd_len"; then
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12753 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12754 else
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12756 $as_echo "none" >&6; }
12757 fi
12758 max_cmd_len=$lt_cv_sys_max_cmd_len
12759
12760
12761
12762
12763
12764
12765 : ${CP="cp -f"}
12766 : ${MV="mv -f"}
12767 : ${RM="rm -f"}
12768
12769 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12770 lt_unset=unset
12771 else
12772 lt_unset=false
12773 fi
12774
12775
12776
12777
12778
12779 # test EBCDIC or ASCII
12780 case `echo X|tr X '\101'` in
12781 A) # ASCII based system
12782 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12783 lt_SP2NL='tr \040 \012'
12784 lt_NL2SP='tr \015\012 \040\040'
12785 ;;
12786 *) # EBCDIC based system
12787 lt_SP2NL='tr \100 \n'
12788 lt_NL2SP='tr \r\n \100\100'
12789 ;;
12790 esac
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12801 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
12802 if ${lt_cv_to_host_file_cmd+:} false; then :
12803 $as_echo_n "(cached) " >&6
12804 else
12805 case $host in
12806 *-*-mingw* )
12807 case $build in
12808 *-*-mingw* ) # actually msys
12809 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12810 ;;
12811 *-*-cygwin* )
12812 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12813 ;;
12814 * ) # otherwise, assume *nix
12815 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12816 ;;
12817 esac
12818 ;;
12819 *-*-cygwin* )
12820 case $build in
12821 *-*-mingw* ) # actually msys
12822 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12823 ;;
12824 *-*-cygwin* )
12825 lt_cv_to_host_file_cmd=func_convert_file_noop
12826 ;;
12827 * ) # otherwise, assume *nix
12828 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12829 ;;
12830 esac
12831 ;;
12832 * ) # unhandled hosts (and "normal" native builds)
12833 lt_cv_to_host_file_cmd=func_convert_file_noop
12834 ;;
12835 esac
12836
12837 fi
12838
12839 to_host_file_cmd=$lt_cv_to_host_file_cmd
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12841 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
12842
12843
12844
12845
12846
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12848 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
12849 if ${lt_cv_to_tool_file_cmd+:} false; then :
12850 $as_echo_n "(cached) " >&6
12851 else
12852 #assume ordinary cross tools, or native build.
12853 lt_cv_to_tool_file_cmd=func_convert_file_noop
12854 case $host in
12855 *-*-mingw* )
12856 case $build in
12857 *-*-mingw* ) # actually msys
12858 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12859 ;;
12860 esac
12861 ;;
12862 esac
12863
12864 fi
12865
12866 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12868 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
12869
12870
12871
12872
12873
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12875 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12876 if ${lt_cv_ld_reload_flag+:} false; then :
12877 $as_echo_n "(cached) " >&6
12878 else
12879 lt_cv_ld_reload_flag='-r'
12880 fi
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12882 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12883 reload_flag=$lt_cv_ld_reload_flag
12884 case $reload_flag in
12885 "" | " "*) ;;
12886 *) reload_flag=" $reload_flag" ;;
12887 esac
12888 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12889 case $host_os in
12890 cygwin* | mingw* | pw32* | cegcc*)
12891 if test yes != "$GCC"; then
12892 reload_cmds=false
12893 fi
12894 ;;
12895 darwin*)
12896 if test yes = "$GCC"; then
12897 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12898 else
12899 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12900 fi
12901 ;;
12902 esac
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912 if test -n "$ac_tool_prefix"; then
12913 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12914 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12916 $as_echo_n "checking for $ac_word... " >&6; }
12917 if ${ac_cv_prog_OBJDUMP+:} false; then :
12918 $as_echo_n "(cached) " >&6
12919 else
12920 if test -n "$OBJDUMP"; then
12921 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12922 else
12923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12924 for as_dir in $PATH
12925 do
12926 IFS=$as_save_IFS
12927 test -z "$as_dir" && as_dir=.
12928 for ac_exec_ext in '' $ac_executable_extensions; do
12929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12930 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12932 break 2
12933 fi
12934 done
12935 done
12936 IFS=$as_save_IFS
12937
12938 fi
12939 fi
12940 OBJDUMP=$ac_cv_prog_OBJDUMP
12941 if test -n "$OBJDUMP"; then
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12943 $as_echo "$OBJDUMP" >&6; }
12944 else
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946 $as_echo "no" >&6; }
12947 fi
12948
12949
12950 fi
12951 if test -z "$ac_cv_prog_OBJDUMP"; then
12952 ac_ct_OBJDUMP=$OBJDUMP
12953 # Extract the first word of "objdump", so it can be a program name with args.
12954 set dummy objdump; ac_word=$2
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12956 $as_echo_n "checking for $ac_word... " >&6; }
12957 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12958 $as_echo_n "(cached) " >&6
12959 else
12960 if test -n "$ac_ct_OBJDUMP"; then
12961 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12962 else
12963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12964 for as_dir in $PATH
12965 do
12966 IFS=$as_save_IFS
12967 test -z "$as_dir" && as_dir=.
12968 for ac_exec_ext in '' $ac_executable_extensions; do
12969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12970 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12972 break 2
12973 fi
12974 done
12975 done
12976 IFS=$as_save_IFS
12977
12978 fi
12979 fi
12980 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12981 if test -n "$ac_ct_OBJDUMP"; then
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12983 $as_echo "$ac_ct_OBJDUMP" >&6; }
12984 else
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986 $as_echo "no" >&6; }
12987 fi
12988
12989 if test "x$ac_ct_OBJDUMP" = x; then
12990 OBJDUMP="false"
12991 else
12992 case $cross_compiling:$ac_tool_warned in
12993 yes:)
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12996 ac_tool_warned=yes ;;
12997 esac
12998 OBJDUMP=$ac_ct_OBJDUMP
12999 fi
13000 else
13001 OBJDUMP="$ac_cv_prog_OBJDUMP"
13002 fi
13003
13004 test -z "$OBJDUMP" && OBJDUMP=objdump
13005
13006
13007
13008
13009
13010
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13012 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13013 if ${lt_cv_deplibs_check_method+:} false; then :
13014 $as_echo_n "(cached) " >&6
13015 else
13016 lt_cv_file_magic_cmd='$MAGIC_CMD'
13017 lt_cv_file_magic_test_file=
13018 lt_cv_deplibs_check_method='unknown'
13019 # Need to set the preceding variable on all platforms that support
13020 # interlibrary dependencies.
13021 # 'none' -- dependencies not supported.
13022 # 'unknown' -- same as none, but documents that we really don't know.
13023 # 'pass_all' -- all dependencies passed with no checks.
13024 # 'test_compile' -- check by making test program.
13025 # 'file_magic [[regex]]' -- check by looking for files in library path
13026 # that responds to the $file_magic_cmd with a given extended regex.
13027 # If you have 'file' or equivalent on your system and you're not sure
13028 # whether 'pass_all' will *always* work, you probably want this one.
13029
13030 case $host_os in
13031 aix[4-9]*)
13032 lt_cv_deplibs_check_method=pass_all
13033 ;;
13034
13035 beos*)
13036 lt_cv_deplibs_check_method=pass_all
13037 ;;
13038
13039 bsdi[45]*)
13040 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13041 lt_cv_file_magic_cmd='/usr/bin/file -L'
13042 lt_cv_file_magic_test_file=/shlib/libc.so
13043 ;;
13044
13045 cygwin*)
13046 # func_win32_libid is a shell function defined in ltmain.sh
13047 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13048 lt_cv_file_magic_cmd='func_win32_libid'
13049 ;;
13050
13051 mingw* | pw32*)
13052 # Base MSYS/MinGW do not provide the 'file' command needed by
13053 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13054 # unless we find 'file', for example because we are cross-compiling.
13055 if ( file / ) >/dev/null 2>&1; then
13056 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13057 lt_cv_file_magic_cmd='func_win32_libid'
13058 else
13059 # Keep this pattern in sync with the one in func_win32_libid.
13060 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
13061 lt_cv_file_magic_cmd='$OBJDUMP -f'
13062 fi
13063 ;;
13064
13065 cegcc*)
13066 # use the weaker test based on 'objdump'. See mingw*.
13067 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13068 lt_cv_file_magic_cmd='$OBJDUMP -f'
13069 ;;
13070
13071 darwin* | rhapsody*)
13072 lt_cv_deplibs_check_method=pass_all
13073 ;;
13074
13075 freebsd* | dragonfly*)
13076 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13077 case $host_cpu in
13078 i*86 )
13079 # Not sure whether the presence of OpenBSD here was a mistake.
13080 # Let's accept both of them until this is cleared up.
13081 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13082 lt_cv_file_magic_cmd=/usr/bin/file
13083 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13084 ;;
13085 esac
13086 else
13087 lt_cv_deplibs_check_method=pass_all
13088 fi
13089 ;;
13090
13091 haiku*)
13092 lt_cv_deplibs_check_method=pass_all
13093 ;;
13094
13095 hpux10.20* | hpux11*)
13096 lt_cv_file_magic_cmd=/usr/bin/file
13097 case $host_cpu in
13098 ia64*)
13099 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13100 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13101 ;;
13102 hppa*64*)
13103 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]'
13104 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13105 ;;
13106 *)
13107 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13108 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13109 ;;
13110 esac
13111 ;;
13112
13113 interix[3-9]*)
13114 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13116 ;;
13117
13118 irix5* | irix6* | nonstopux*)
13119 case $LD in
13120 *-32|*"-32 ") libmagic=32-bit;;
13121 *-n32|*"-n32 ") libmagic=N32;;
13122 *-64|*"-64 ") libmagic=64-bit;;
13123 *) libmagic=never-match;;
13124 esac
13125 lt_cv_deplibs_check_method=pass_all
13126 ;;
13127
13128 # This must be glibc/ELF.
13129 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13130 lt_cv_deplibs_check_method=pass_all
13131 ;;
13132
13133 netbsd*)
13134 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13136 else
13137 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13138 fi
13139 ;;
13140
13141 newos6*)
13142 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13143 lt_cv_file_magic_cmd=/usr/bin/file
13144 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13145 ;;
13146
13147 *nto* | *qnx*)
13148 lt_cv_deplibs_check_method=pass_all
13149 ;;
13150
13151 openbsd* | bitrig*)
13152 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13153 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13154 else
13155 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13156 fi
13157 ;;
13158
13159 osf3* | osf4* | osf5*)
13160 lt_cv_deplibs_check_method=pass_all
13161 ;;
13162
13163 rdos*)
13164 lt_cv_deplibs_check_method=pass_all
13165 ;;
13166
13167 solaris*)
13168 lt_cv_deplibs_check_method=pass_all
13169 ;;
13170
13171 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13172 lt_cv_deplibs_check_method=pass_all
13173 ;;
13174
13175 sysv4 | sysv4.3*)
13176 case $host_vendor in
13177 motorola)
13178 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]'
13179 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13180 ;;
13181 ncr)
13182 lt_cv_deplibs_check_method=pass_all
13183 ;;
13184 sequent)
13185 lt_cv_file_magic_cmd='/bin/file'
13186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13187 ;;
13188 sni)
13189 lt_cv_file_magic_cmd='/bin/file'
13190 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13191 lt_cv_file_magic_test_file=/lib/libc.so
13192 ;;
13193 siemens)
13194 lt_cv_deplibs_check_method=pass_all
13195 ;;
13196 pc)
13197 lt_cv_deplibs_check_method=pass_all
13198 ;;
13199 esac
13200 ;;
13201
13202 tpf*)
13203 lt_cv_deplibs_check_method=pass_all
13204 ;;
13205 os2*)
13206 lt_cv_deplibs_check_method=pass_all
13207 ;;
13208 esac
13209
13210 fi
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13212 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13213
13214 file_magic_glob=
13215 want_nocaseglob=no
13216 if test "$build" = "$host"; then
13217 case $host_os in
13218 mingw* | pw32*)
13219 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
13220 want_nocaseglob=yes
13221 else
13222 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
13223 fi
13224 ;;
13225 esac
13226 fi
13227
13228 file_magic_cmd=$lt_cv_file_magic_cmd
13229 deplibs_check_method=$lt_cv_deplibs_check_method
13230 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253 if test -n "$ac_tool_prefix"; then
13254 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13255 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13257 $as_echo_n "checking for $ac_word... " >&6; }
13258 if ${ac_cv_prog_DLLTOOL+:} false; then :
13259 $as_echo_n "(cached) " >&6
13260 else
13261 if test -n "$DLLTOOL"; then
13262 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13263 else
13264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13265 for as_dir in $PATH
13266 do
13267 IFS=$as_save_IFS
13268 test -z "$as_dir" && as_dir=.
13269 for ac_exec_ext in '' $ac_executable_extensions; do
13270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13271 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13273 break 2
13274 fi
13275 done
13276 done
13277 IFS=$as_save_IFS
13278
13279 fi
13280 fi
13281 DLLTOOL=$ac_cv_prog_DLLTOOL
13282 if test -n "$DLLTOOL"; then
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13284 $as_echo "$DLLTOOL" >&6; }
13285 else
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13287 $as_echo "no" >&6; }
13288 fi
13289
13290
13291 fi
13292 if test -z "$ac_cv_prog_DLLTOOL"; then
13293 ac_ct_DLLTOOL=$DLLTOOL
13294 # Extract the first word of "dlltool", so it can be a program name with args.
13295 set dummy dlltool; ac_word=$2
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13297 $as_echo_n "checking for $ac_word... " >&6; }
13298 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
13299 $as_echo_n "(cached) " >&6
13300 else
13301 if test -n "$ac_ct_DLLTOOL"; then
13302 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13303 else
13304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13305 for as_dir in $PATH
13306 do
13307 IFS=$as_save_IFS
13308 test -z "$as_dir" && as_dir=.
13309 for ac_exec_ext in '' $ac_executable_extensions; do
13310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13311 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13313 break 2
13314 fi
13315 done
13316 done
13317 IFS=$as_save_IFS
13318
13319 fi
13320 fi
13321 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13322 if test -n "$ac_ct_DLLTOOL"; then
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13324 $as_echo "$ac_ct_DLLTOOL" >&6; }
13325 else
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13327 $as_echo "no" >&6; }
13328 fi
13329
13330 if test "x$ac_ct_DLLTOOL" = x; then
13331 DLLTOOL="false"
13332 else
13333 case $cross_compiling:$ac_tool_warned in
13334 yes:)
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13337 ac_tool_warned=yes ;;
13338 esac
13339 DLLTOOL=$ac_ct_DLLTOOL
13340 fi
13341 else
13342 DLLTOOL="$ac_cv_prog_DLLTOOL"
13343 fi
13344
13345 test -z "$DLLTOOL" && DLLTOOL=dlltool
13346
13347
13348
13349
13350
13351
13352
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
13354 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
13355 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
13356 $as_echo_n "(cached) " >&6
13357 else
13358 lt_cv_sharedlib_from_linklib_cmd='unknown'
13359
13360 case $host_os in
13361 cygwin* | mingw* | pw32* | cegcc*)
13362 # two different shell functions defined in ltmain.sh;
13363 # decide which one to use based on capabilities of $DLLTOOL
13364 case `$DLLTOOL --help 2>&1` in
13365 *--identify-strict*)
13366 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
13367 ;;
13368 *)
13369 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
13370 ;;
13371 esac
13372 ;;
13373 *)
13374 # fallback: assume linklib IS sharedlib
13375 lt_cv_sharedlib_from_linklib_cmd=$ECHO
13376 ;;
13377 esac
13378
13379 fi
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
13381 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
13382 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
13383 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
13384
13385
13386
13387
13388
13389
13390
13391 if test -n "$ac_tool_prefix"; then
13392 for ac_prog in ar
13393 do
13394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13397 $as_echo_n "checking for $ac_word... " >&6; }
13398 if ${ac_cv_prog_AR+:} false; then :
13399 $as_echo_n "(cached) " >&6
13400 else
13401 if test -n "$AR"; then
13402 ac_cv_prog_AR="$AR" # Let the user override the test.
13403 else
13404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13405 for as_dir in $PATH
13406 do
13407 IFS=$as_save_IFS
13408 test -z "$as_dir" && as_dir=.
13409 for ac_exec_ext in '' $ac_executable_extensions; do
13410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13411 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13413 break 2
13414 fi
13415 done
13416 done
13417 IFS=$as_save_IFS
13418
13419 fi
13420 fi
13421 AR=$ac_cv_prog_AR
13422 if test -n "$AR"; then
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13424 $as_echo "$AR" >&6; }
13425 else
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427 $as_echo "no" >&6; }
13428 fi
13429
13430
13431 test -n "$AR" && break
13432 done
13433 fi
13434 if test -z "$AR"; then
13435 ac_ct_AR=$AR
13436 for ac_prog in ar
13437 do
13438 # Extract the first word of "$ac_prog", so it can be a program name with args.
13439 set dummy $ac_prog; ac_word=$2
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13441 $as_echo_n "checking for $ac_word... " >&6; }
13442 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13443 $as_echo_n "(cached) " >&6
13444 else
13445 if test -n "$ac_ct_AR"; then
13446 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13447 else
13448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13449 for as_dir in $PATH
13450 do
13451 IFS=$as_save_IFS
13452 test -z "$as_dir" && as_dir=.
13453 for ac_exec_ext in '' $ac_executable_extensions; do
13454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13455 ac_cv_prog_ac_ct_AR="$ac_prog"
13456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13457 break 2
13458 fi
13459 done
13460 done
13461 IFS=$as_save_IFS
13462
13463 fi
13464 fi
13465 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13466 if test -n "$ac_ct_AR"; then
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13468 $as_echo "$ac_ct_AR" >&6; }
13469 else
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13471 $as_echo "no" >&6; }
13472 fi
13473
13474
13475 test -n "$ac_ct_AR" && break
13476 done
13477
13478 if test "x$ac_ct_AR" = x; then
13479 AR="false"
13480 else
13481 case $cross_compiling:$ac_tool_warned in
13482 yes:)
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13485 ac_tool_warned=yes ;;
13486 esac
13487 AR=$ac_ct_AR
13488 fi
13489 fi
13490
13491 : ${AR=ar}
13492 : ${AR_FLAGS=cru}
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13505 $as_echo_n "checking for archiver @FILE support... " >&6; }
13506 if ${lt_cv_ar_at_file+:} false; then :
13507 $as_echo_n "(cached) " >&6
13508 else
13509 lt_cv_ar_at_file=no
13510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13511 /* end confdefs.h. */
13512
13513 int
13514 main ()
13515 {
13516
13517 ;
13518 return 0;
13519 }
13520 _ACEOF
13521 if ac_fn_c_try_compile "$LINENO"; then :
13522 echo conftest.$ac_objext > conftest.lst
13523 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13525 (eval $lt_ar_try) 2>&5
13526 ac_status=$?
13527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13528 test $ac_status = 0; }
13529 if test 0 -eq "$ac_status"; then
13530 # Ensure the archiver fails upon bogus file names.
13531 rm -f conftest.$ac_objext libconftest.a
13532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13533 (eval $lt_ar_try) 2>&5
13534 ac_status=$?
13535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13536 test $ac_status = 0; }
13537 if test 0 -ne "$ac_status"; then
13538 lt_cv_ar_at_file=@
13539 fi
13540 fi
13541 rm -f conftest.* libconftest.a
13542
13543 fi
13544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13545
13546 fi
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13548 $as_echo "$lt_cv_ar_at_file" >&6; }
13549
13550 if test no = "$lt_cv_ar_at_file"; then
13551 archiver_list_spec=
13552 else
13553 archiver_list_spec=$lt_cv_ar_at_file
13554 fi
13555
13556
13557
13558
13559
13560
13561
13562 if test -n "$ac_tool_prefix"; then
13563 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13564 set dummy ${ac_tool_prefix}strip; ac_word=$2
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13566 $as_echo_n "checking for $ac_word... " >&6; }
13567 if ${ac_cv_prog_STRIP+:} false; then :
13568 $as_echo_n "(cached) " >&6
13569 else
13570 if test -n "$STRIP"; then
13571 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13572 else
13573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574 for as_dir in $PATH
13575 do
13576 IFS=$as_save_IFS
13577 test -z "$as_dir" && as_dir=.
13578 for ac_exec_ext in '' $ac_executable_extensions; do
13579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13580 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13582 break 2
13583 fi
13584 done
13585 done
13586 IFS=$as_save_IFS
13587
13588 fi
13589 fi
13590 STRIP=$ac_cv_prog_STRIP
13591 if test -n "$STRIP"; then
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13593 $as_echo "$STRIP" >&6; }
13594 else
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596 $as_echo "no" >&6; }
13597 fi
13598
13599
13600 fi
13601 if test -z "$ac_cv_prog_STRIP"; then
13602 ac_ct_STRIP=$STRIP
13603 # Extract the first word of "strip", so it can be a program name with args.
13604 set dummy strip; ac_word=$2
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13606 $as_echo_n "checking for $ac_word... " >&6; }
13607 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13608 $as_echo_n "(cached) " >&6
13609 else
13610 if test -n "$ac_ct_STRIP"; then
13611 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13612 else
13613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614 for as_dir in $PATH
13615 do
13616 IFS=$as_save_IFS
13617 test -z "$as_dir" && as_dir=.
13618 for ac_exec_ext in '' $ac_executable_extensions; do
13619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13620 ac_cv_prog_ac_ct_STRIP="strip"
13621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13622 break 2
13623 fi
13624 done
13625 done
13626 IFS=$as_save_IFS
13627
13628 fi
13629 fi
13630 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13631 if test -n "$ac_ct_STRIP"; then
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13633 $as_echo "$ac_ct_STRIP" >&6; }
13634 else
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13636 $as_echo "no" >&6; }
13637 fi
13638
13639 if test "x$ac_ct_STRIP" = x; then
13640 STRIP=":"
13641 else
13642 case $cross_compiling:$ac_tool_warned in
13643 yes:)
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13646 ac_tool_warned=yes ;;
13647 esac
13648 STRIP=$ac_ct_STRIP
13649 fi
13650 else
13651 STRIP="$ac_cv_prog_STRIP"
13652 fi
13653
13654 test -z "$STRIP" && STRIP=:
13655
13656
13657
13658
13659
13660
13661 if test -n "$ac_tool_prefix"; then
13662 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13663 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13665 $as_echo_n "checking for $ac_word... " >&6; }
13666 if ${ac_cv_prog_RANLIB+:} false; then :
13667 $as_echo_n "(cached) " >&6
13668 else
13669 if test -n "$RANLIB"; then
13670 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13671 else
13672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13673 for as_dir in $PATH
13674 do
13675 IFS=$as_save_IFS
13676 test -z "$as_dir" && as_dir=.
13677 for ac_exec_ext in '' $ac_executable_extensions; do
13678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13679 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13681 break 2
13682 fi
13683 done
13684 done
13685 IFS=$as_save_IFS
13686
13687 fi
13688 fi
13689 RANLIB=$ac_cv_prog_RANLIB
13690 if test -n "$RANLIB"; then
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13692 $as_echo "$RANLIB" >&6; }
13693 else
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13695 $as_echo "no" >&6; }
13696 fi
13697
13698
13699 fi
13700 if test -z "$ac_cv_prog_RANLIB"; then
13701 ac_ct_RANLIB=$RANLIB
13702 # Extract the first word of "ranlib", so it can be a program name with args.
13703 set dummy ranlib; ac_word=$2
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13705 $as_echo_n "checking for $ac_word... " >&6; }
13706 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13707 $as_echo_n "(cached) " >&6
13708 else
13709 if test -n "$ac_ct_RANLIB"; then
13710 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13711 else
13712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13713 for as_dir in $PATH
13714 do
13715 IFS=$as_save_IFS
13716 test -z "$as_dir" && as_dir=.
13717 for ac_exec_ext in '' $ac_executable_extensions; do
13718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13719 ac_cv_prog_ac_ct_RANLIB="ranlib"
13720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13721 break 2
13722 fi
13723 done
13724 done
13725 IFS=$as_save_IFS
13726
13727 fi
13728 fi
13729 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13730 if test -n "$ac_ct_RANLIB"; then
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13732 $as_echo "$ac_ct_RANLIB" >&6; }
13733 else
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13735 $as_echo "no" >&6; }
13736 fi
13737
13738 if test "x$ac_ct_RANLIB" = x; then
13739 RANLIB=":"
13740 else
13741 case $cross_compiling:$ac_tool_warned in
13742 yes:)
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13745 ac_tool_warned=yes ;;
13746 esac
13747 RANLIB=$ac_ct_RANLIB
13748 fi
13749 else
13750 RANLIB="$ac_cv_prog_RANLIB"
13751 fi
13752
13753 test -z "$RANLIB" && RANLIB=:
13754
13755
13756
13757
13758
13759
13760 # Determine commands to create old-style static archives.
13761 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13762 old_postinstall_cmds='chmod 644 $oldlib'
13763 old_postuninstall_cmds=
13764
13765 if test -n "$RANLIB"; then
13766 case $host_os in
13767 bitrig* | openbsd*)
13768 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13769 ;;
13770 *)
13771 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13772 ;;
13773 esac
13774 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13775 fi
13776
13777 case $host_os in
13778 darwin*)
13779 lock_old_archive_extraction=yes ;;
13780 *)
13781 lock_old_archive_extraction=no ;;
13782 esac
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822 # If no C compiler was specified, use CC.
13823 LTCC=${LTCC-"$CC"}
13824
13825 # If no C compiler flags were specified, use CFLAGS.
13826 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13827
13828 # Allow CC to be a program name with arguments.
13829 compiler=$CC
13830
13831
13832 # Check for command to grab the raw symbol name followed by C symbol from nm.
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13834 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13835 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
13836 $as_echo_n "(cached) " >&6
13837 else
13838
13839 # These are sane defaults that work on at least a few old systems.
13840 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13841
13842 # Character class describing NM global symbol codes.
13843 symcode='[BCDEGRST]'
13844
13845 # Regexp to match symbols that can be accessed directly from C.
13846 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13847
13848 # Define system-specific variables.
13849 case $host_os in
13850 aix*)
13851 symcode='[BCDT]'
13852 ;;
13853 cygwin* | mingw* | pw32* | cegcc*)
13854 symcode='[ABCDGISTW]'
13855 ;;
13856 hpux*)
13857 if test ia64 = "$host_cpu"; then
13858 symcode='[ABCDEGRST]'
13859 fi
13860 ;;
13861 irix* | nonstopux*)
13862 symcode='[BCDEGRST]'
13863 ;;
13864 osf*)
13865 symcode='[BCDEGQRST]'
13866 ;;
13867 solaris*)
13868 symcode='[BDRT]'
13869 ;;
13870 sco3.2v5*)
13871 symcode='[DT]'
13872 ;;
13873 sysv4.2uw2*)
13874 symcode='[DT]'
13875 ;;
13876 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13877 symcode='[ABDT]'
13878 ;;
13879 sysv4)
13880 symcode='[DFNSTU]'
13881 ;;
13882 esac
13883
13884 # If we're using GNU nm, then use its standard symbol codes.
13885 case `$NM -V 2>&1` in
13886 *GNU* | *'with BFD'*)
13887 symcode='[ABCDGIRSTW]' ;;
13888 esac
13889
13890 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13891 # Gets list of data symbols to import.
13892 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
13893 # Adjust the below global symbol transforms to fixup imported variables.
13894 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13895 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
13896 lt_c_name_lib_hook="\
13897 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
13898 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
13899 else
13900 # Disable hooks by default.
13901 lt_cv_sys_global_symbol_to_import=
13902 lt_cdecl_hook=
13903 lt_c_name_hook=
13904 lt_c_name_lib_hook=
13905 fi
13906
13907 # Transform an extracted symbol line into a proper C declaration.
13908 # Some systems (esp. on ia64) link data and code symbols differently,
13909 # so use this general approach.
13910 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
13911 $lt_cdecl_hook\
13912 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13913 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13914
13915 # Transform an extracted symbol line into symbol name and symbol address
13916 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
13917 $lt_c_name_hook\
13918 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13919 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
13920
13921 # Transform an extracted symbol line into symbol name with lib prefix and
13922 # symbol address.
13923 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
13924 $lt_c_name_lib_hook\
13925 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13926 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
13927 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
13928
13929 # Handle CRLF in mingw tool chain
13930 opt_cr=
13931 case $build_os in
13932 mingw*)
13933 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13934 ;;
13935 esac
13936
13937 # Try without a prefix underscore, then with it.
13938 for ac_symprfx in "" "_"; do
13939
13940 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13941 symxfrm="\\1 $ac_symprfx\\2 \\2"
13942
13943 # Write the raw and C identifiers.
13944 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13945 # Fake it for dumpbin and say T for any non-static function,
13946 # D for any global variable and I for any imported variable.
13947 # Also find C++ and __fastcall symbols from MSVC++,
13948 # which start with @ or ?.
13949 lt_cv_sys_global_symbol_pipe="$AWK '"\
13950 " {last_section=section; section=\$ 3};"\
13951 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13952 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13953 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13954 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13955 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13956 " \$ 0!~/External *\|/{next};"\
13957 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13958 " {if(hide[section]) next};"\
13959 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13960 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13961 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13962 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13963 " ' prfx=^$ac_symprfx"
13964 else
13965 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13966 fi
13967 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
13968
13969 # Check to see that the pipe works correctly.
13970 pipe_works=no
13971
13972 rm -f conftest*
13973 cat > conftest.$ac_ext <<_LT_EOF
13974 #ifdef __cplusplus
13975 extern "C" {
13976 #endif
13977 char nm_test_var;
13978 void nm_test_func(void);
13979 void nm_test_func(void){}
13980 #ifdef __cplusplus
13981 }
13982 #endif
13983 int main(){nm_test_var='a';nm_test_func();return(0);}
13984 _LT_EOF
13985
13986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13987 (eval $ac_compile) 2>&5
13988 ac_status=$?
13989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13990 test $ac_status = 0; }; then
13991 # Now try to grab the symbols.
13992 nlist=conftest.nm
13993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13994 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13995 ac_status=$?
13996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13997 test $ac_status = 0; } && test -s "$nlist"; then
13998 # Try sorting and uniquifying the output.
13999 if sort "$nlist" | uniq > "$nlist"T; then
14000 mv -f "$nlist"T "$nlist"
14001 else
14002 rm -f "$nlist"T
14003 fi
14004
14005 # Make sure that we snagged all the symbols we need.
14006 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14007 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14008 cat <<_LT_EOF > conftest.$ac_ext
14009 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
14010 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
14011 /* DATA imports from DLLs on WIN32 can't be const, because runtime
14012 relocations are performed -- see ld's documentation on pseudo-relocs. */
14013 # define LT_DLSYM_CONST
14014 #elif defined __osf__
14015 /* This system does not cope well with relocations in const data. */
14016 # define LT_DLSYM_CONST
14017 #else
14018 # define LT_DLSYM_CONST const
14019 #endif
14020
14021 #ifdef __cplusplus
14022 extern "C" {
14023 #endif
14024
14025 _LT_EOF
14026 # Now generate the symbol file.
14027 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14028
14029 cat <<_LT_EOF >> conftest.$ac_ext
14030
14031 /* The mapping between symbol names and symbols. */
14032 LT_DLSYM_CONST struct {
14033 const char *name;
14034 void *address;
14035 }
14036 lt__PROGRAM__LTX_preloaded_symbols[] =
14037 {
14038 { "@PROGRAM@", (void *) 0 },
14039 _LT_EOF
14040 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14041 cat <<\_LT_EOF >> conftest.$ac_ext
14042 {0, (void *) 0}
14043 };
14044
14045 /* This works around a problem in FreeBSD linker */
14046 #ifdef FREEBSD_WORKAROUND
14047 static const void *lt_preloaded_setup() {
14048 return lt__PROGRAM__LTX_preloaded_symbols;
14049 }
14050 #endif
14051
14052 #ifdef __cplusplus
14053 }
14054 #endif
14055 _LT_EOF
14056 # Now try linking the two files.
14057 mv conftest.$ac_objext conftstm.$ac_objext
14058 lt_globsym_save_LIBS=$LIBS
14059 lt_globsym_save_CFLAGS=$CFLAGS
14060 LIBS=conftstm.$ac_objext
14061 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14063 (eval $ac_link) 2>&5
14064 ac_status=$?
14065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14066 test $ac_status = 0; } && test -s conftest$ac_exeext; then
14067 pipe_works=yes
14068 fi
14069 LIBS=$lt_globsym_save_LIBS
14070 CFLAGS=$lt_globsym_save_CFLAGS
14071 else
14072 echo "cannot find nm_test_func in $nlist" >&5
14073 fi
14074 else
14075 echo "cannot find nm_test_var in $nlist" >&5
14076 fi
14077 else
14078 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14079 fi
14080 else
14081 echo "$progname: failed program was:" >&5
14082 cat conftest.$ac_ext >&5
14083 fi
14084 rm -rf conftest* conftst*
14085
14086 # Do not use the global_symbol_pipe unless it works.
14087 if test yes = "$pipe_works"; then
14088 break
14089 else
14090 lt_cv_sys_global_symbol_pipe=
14091 fi
14092 done
14093
14094 fi
14095
14096 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14097 lt_cv_sys_global_symbol_to_cdecl=
14098 fi
14099 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14101 $as_echo "failed" >&6; }
14102 else
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14104 $as_echo "ok" >&6; }
14105 fi
14106
14107 # Response file support.
14108 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14109 nm_file_list_spec='@'
14110 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
14111 nm_file_list_spec='@'
14112 fi
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
14151 $as_echo_n "checking for sysroot... " >&6; }
14152
14153 # Check whether --with-sysroot was given.
14154 if test "${with_sysroot+set}" = set; then :
14155 withval=$with_sysroot;
14156 else
14157 with_sysroot=no
14158 fi
14159
14160
14161 lt_sysroot=
14162 case $with_sysroot in #(
14163 yes)
14164 if test yes = "$GCC"; then
14165 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
14166 fi
14167 ;; #(
14168 /*)
14169 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
14170 ;; #(
14171 no|'')
14172 ;; #(
14173 *)
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
14175 $as_echo "$with_sysroot" >&6; }
14176 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
14177 ;;
14178 esac
14179
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
14181 $as_echo "${lt_sysroot:-no}" >&6; }
14182
14183
14184
14185
14186
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
14188 $as_echo_n "checking for a working dd... " >&6; }
14189 if ${ac_cv_path_lt_DD+:} false; then :
14190 $as_echo_n "(cached) " >&6
14191 else
14192 printf 0123456789abcdef0123456789abcdef >conftest.i
14193 cat conftest.i conftest.i >conftest2.i
14194 : ${lt_DD:=$DD}
14195 if test -z "$lt_DD"; then
14196 ac_path_lt_DD_found=false
14197 # Loop through the user's path and test for each of PROGNAME-LIST
14198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14199 for as_dir in $PATH
14200 do
14201 IFS=$as_save_IFS
14202 test -z "$as_dir" && as_dir=.
14203 for ac_prog in dd; do
14204 for ac_exec_ext in '' $ac_executable_extensions; do
14205 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
14206 as_fn_executable_p "$ac_path_lt_DD" || continue
14207 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14208 cmp -s conftest.i conftest.out \
14209 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
14210 fi
14211 $ac_path_lt_DD_found && break 3
14212 done
14213 done
14214 done
14215 IFS=$as_save_IFS
14216 if test -z "$ac_cv_path_lt_DD"; then
14217 :
14218 fi
14219 else
14220 ac_cv_path_lt_DD=$lt_DD
14221 fi
14222
14223 rm -f conftest.i conftest2.i conftest.out
14224 fi
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
14226 $as_echo "$ac_cv_path_lt_DD" >&6; }
14227
14228
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
14230 $as_echo_n "checking how to truncate binary pipes... " >&6; }
14231 if ${lt_cv_truncate_bin+:} false; then :
14232 $as_echo_n "(cached) " >&6
14233 else
14234 printf 0123456789abcdef0123456789abcdef >conftest.i
14235 cat conftest.i conftest.i >conftest2.i
14236 lt_cv_truncate_bin=
14237 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14238 cmp -s conftest.i conftest.out \
14239 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
14240 fi
14241 rm -f conftest.i conftest2.i conftest.out
14242 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
14243 fi
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
14245 $as_echo "$lt_cv_truncate_bin" >&6; }
14246
14247
14248
14249
14250
14251
14252
14253 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14254 func_cc_basename ()
14255 {
14256 for cc_temp in $*""; do
14257 case $cc_temp in
14258 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14259 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14260 \-*) ;;
14261 *) break;;
14262 esac
14263 done
14264 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14265 }
14266
14267 # Check whether --enable-libtool-lock was given.
14268 if test "${enable_libtool_lock+set}" = set; then :
14269 enableval=$enable_libtool_lock;
14270 fi
14271
14272 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
14273
14274 # Some flags need to be propagated to the compiler or linker for good
14275 # libtool support.
14276 case $host in
14277 ia64-*-hpux*)
14278 # Find out what ABI is being produced by ac_compile, and set mode
14279 # options accordingly.
14280 echo 'int i;' > conftest.$ac_ext
14281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14282 (eval $ac_compile) 2>&5
14283 ac_status=$?
14284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14285 test $ac_status = 0; }; then
14286 case `/usr/bin/file conftest.$ac_objext` in
14287 *ELF-32*)
14288 HPUX_IA64_MODE=32
14289 ;;
14290 *ELF-64*)
14291 HPUX_IA64_MODE=64
14292 ;;
14293 esac
14294 fi
14295 rm -rf conftest*
14296 ;;
14297 *-*-irix6*)
14298 # Find out what ABI is being produced by ac_compile, and set linker
14299 # options accordingly.
14300 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14302 (eval $ac_compile) 2>&5
14303 ac_status=$?
14304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14305 test $ac_status = 0; }; then
14306 if test yes = "$lt_cv_prog_gnu_ld"; then
14307 case `/usr/bin/file conftest.$ac_objext` in
14308 *32-bit*)
14309 LD="${LD-ld} -melf32bsmip"
14310 ;;
14311 *N32*)
14312 LD="${LD-ld} -melf32bmipn32"
14313 ;;
14314 *64-bit*)
14315 LD="${LD-ld} -melf64bmip"
14316 ;;
14317 esac
14318 else
14319 case `/usr/bin/file conftest.$ac_objext` in
14320 *32-bit*)
14321 LD="${LD-ld} -32"
14322 ;;
14323 *N32*)
14324 LD="${LD-ld} -n32"
14325 ;;
14326 *64-bit*)
14327 LD="${LD-ld} -64"
14328 ;;
14329 esac
14330 fi
14331 fi
14332 rm -rf conftest*
14333 ;;
14334
14335 mips64*-*linux*)
14336 # Find out what ABI is being produced by ac_compile, and set linker
14337 # options accordingly.
14338 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14340 (eval $ac_compile) 2>&5
14341 ac_status=$?
14342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14343 test $ac_status = 0; }; then
14344 emul=elf
14345 case `/usr/bin/file conftest.$ac_objext` in
14346 *32-bit*)
14347 emul="${emul}32"
14348 ;;
14349 *64-bit*)
14350 emul="${emul}64"
14351 ;;
14352 esac
14353 case `/usr/bin/file conftest.$ac_objext` in
14354 *MSB*)
14355 emul="${emul}btsmip"
14356 ;;
14357 *LSB*)
14358 emul="${emul}ltsmip"
14359 ;;
14360 esac
14361 case `/usr/bin/file conftest.$ac_objext` in
14362 *N32*)
14363 emul="${emul}n32"
14364 ;;
14365 esac
14366 LD="${LD-ld} -m $emul"
14367 fi
14368 rm -rf conftest*
14369 ;;
14370
14371 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14372 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14373 # Find out what ABI is being produced by ac_compile, and set linker
14374 # options accordingly. Note that the listed cases only cover the
14375 # situations where additional linker options are needed (such as when
14376 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
14377 # vice versa); the common cases where no linker options are needed do
14378 # not appear in the list.
14379 echo 'int i;' > conftest.$ac_ext
14380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14381 (eval $ac_compile) 2>&5
14382 ac_status=$?
14383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14384 test $ac_status = 0; }; then
14385 case `/usr/bin/file conftest.o` in
14386 *32-bit*)
14387 case $host in
14388 x86_64-*kfreebsd*-gnu)
14389 LD="${LD-ld} -m elf_i386_fbsd"
14390 ;;
14391 x86_64-*linux*)
14392 case `/usr/bin/file conftest.o` in
14393 *x86-64*)
14394 LD="${LD-ld} -m elf32_x86_64"
14395 ;;
14396 *)
14397 LD="${LD-ld} -m elf_i386"
14398 ;;
14399 esac
14400 ;;
14401 powerpc64le-*linux*)
14402 LD="${LD-ld} -m elf32lppclinux"
14403 ;;
14404 powerpc64-*linux*)
14405 LD="${LD-ld} -m elf32ppclinux"
14406 ;;
14407 s390x-*linux*)
14408 LD="${LD-ld} -m elf_s390"
14409 ;;
14410 sparc64-*linux*)
14411 LD="${LD-ld} -m elf32_sparc"
14412 ;;
14413 esac
14414 ;;
14415 *64-bit*)
14416 case $host in
14417 x86_64-*kfreebsd*-gnu)
14418 LD="${LD-ld} -m elf_x86_64_fbsd"
14419 ;;
14420 x86_64-*linux*)
14421 LD="${LD-ld} -m elf_x86_64"
14422 ;;
14423 powerpcle-*linux*)
14424 LD="${LD-ld} -m elf64lppc"
14425 ;;
14426 powerpc-*linux*)
14427 LD="${LD-ld} -m elf64ppc"
14428 ;;
14429 s390*-*linux*|s390*-*tpf*)
14430 LD="${LD-ld} -m elf64_s390"
14431 ;;
14432 sparc*-*linux*)
14433 LD="${LD-ld} -m elf64_sparc"
14434 ;;
14435 esac
14436 ;;
14437 esac
14438 fi
14439 rm -rf conftest*
14440 ;;
14441
14442 *-*-sco3.2v5*)
14443 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14444 SAVE_CFLAGS=$CFLAGS
14445 CFLAGS="$CFLAGS -belf"
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14447 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14448 if ${lt_cv_cc_needs_belf+:} false; then :
14449 $as_echo_n "(cached) " >&6
14450 else
14451 ac_ext=c
14452 ac_cpp='$CPP $CPPFLAGS'
14453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14456
14457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14458 /* end confdefs.h. */
14459
14460 int
14461 main ()
14462 {
14463
14464 ;
14465 return 0;
14466 }
14467 _ACEOF
14468 if ac_fn_c_try_link "$LINENO"; then :
14469 lt_cv_cc_needs_belf=yes
14470 else
14471 lt_cv_cc_needs_belf=no
14472 fi
14473 rm -f core conftest.err conftest.$ac_objext \
14474 conftest$ac_exeext conftest.$ac_ext
14475 ac_ext=c
14476 ac_cpp='$CPP $CPPFLAGS'
14477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14480
14481 fi
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14483 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14484 if test yes != "$lt_cv_cc_needs_belf"; then
14485 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14486 CFLAGS=$SAVE_CFLAGS
14487 fi
14488 ;;
14489 *-*solaris*)
14490 # Find out what ABI is being produced by ac_compile, and set linker
14491 # options accordingly.
14492 echo 'int i;' > conftest.$ac_ext
14493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14494 (eval $ac_compile) 2>&5
14495 ac_status=$?
14496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14497 test $ac_status = 0; }; then
14498 case `/usr/bin/file conftest.o` in
14499 *64-bit*)
14500 case $lt_cv_prog_gnu_ld in
14501 yes*)
14502 case $host in
14503 i?86-*-solaris*|x86_64-*-solaris*)
14504 LD="${LD-ld} -m elf_x86_64"
14505 ;;
14506 sparc*-*-solaris*)
14507 LD="${LD-ld} -m elf64_sparc"
14508 ;;
14509 esac
14510 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
14511 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14512 LD=${LD-ld}_sol2
14513 fi
14514 ;;
14515 *)
14516 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14517 LD="${LD-ld} -64"
14518 fi
14519 ;;
14520 esac
14521 ;;
14522 esac
14523 fi
14524 rm -rf conftest*
14525 ;;
14526 esac
14527
14528 need_locks=$enable_libtool_lock
14529
14530 if test -n "$ac_tool_prefix"; then
14531 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14532 set dummy ${ac_tool_prefix}mt; ac_word=$2
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14534 $as_echo_n "checking for $ac_word... " >&6; }
14535 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
14536 $as_echo_n "(cached) " >&6
14537 else
14538 if test -n "$MANIFEST_TOOL"; then
14539 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14540 else
14541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14542 for as_dir in $PATH
14543 do
14544 IFS=$as_save_IFS
14545 test -z "$as_dir" && as_dir=.
14546 for ac_exec_ext in '' $ac_executable_extensions; do
14547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14548 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14550 break 2
14551 fi
14552 done
14553 done
14554 IFS=$as_save_IFS
14555
14556 fi
14557 fi
14558 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14559 if test -n "$MANIFEST_TOOL"; then
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14561 $as_echo "$MANIFEST_TOOL" >&6; }
14562 else
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14564 $as_echo "no" >&6; }
14565 fi
14566
14567
14568 fi
14569 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14570 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14571 # Extract the first word of "mt", so it can be a program name with args.
14572 set dummy mt; ac_word=$2
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14574 $as_echo_n "checking for $ac_word... " >&6; }
14575 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
14576 $as_echo_n "(cached) " >&6
14577 else
14578 if test -n "$ac_ct_MANIFEST_TOOL"; then
14579 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14580 else
14581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14582 for as_dir in $PATH
14583 do
14584 IFS=$as_save_IFS
14585 test -z "$as_dir" && as_dir=.
14586 for ac_exec_ext in '' $ac_executable_extensions; do
14587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14588 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14590 break 2
14591 fi
14592 done
14593 done
14594 IFS=$as_save_IFS
14595
14596 fi
14597 fi
14598 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14599 if test -n "$ac_ct_MANIFEST_TOOL"; then
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14601 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
14602 else
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14604 $as_echo "no" >&6; }
14605 fi
14606
14607 if test "x$ac_ct_MANIFEST_TOOL" = x; then
14608 MANIFEST_TOOL=":"
14609 else
14610 case $cross_compiling:$ac_tool_warned in
14611 yes:)
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14614 ac_tool_warned=yes ;;
14615 esac
14616 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14617 fi
14618 else
14619 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14620 fi
14621
14622 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14624 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14625 if ${lt_cv_path_mainfest_tool+:} false; then :
14626 $as_echo_n "(cached) " >&6
14627 else
14628 lt_cv_path_mainfest_tool=no
14629 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14630 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14631 cat conftest.err >&5
14632 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14633 lt_cv_path_mainfest_tool=yes
14634 fi
14635 rm -f conftest*
14636 fi
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14638 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
14639 if test yes != "$lt_cv_path_mainfest_tool"; then
14640 MANIFEST_TOOL=:
14641 fi
14642
14643
14644
14645
14646
14647
14648 case $host_os in
14649 rhapsody* | darwin*)
14650 if test -n "$ac_tool_prefix"; then
14651 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14652 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14654 $as_echo_n "checking for $ac_word... " >&6; }
14655 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14656 $as_echo_n "(cached) " >&6
14657 else
14658 if test -n "$DSYMUTIL"; then
14659 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14660 else
14661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14662 for as_dir in $PATH
14663 do
14664 IFS=$as_save_IFS
14665 test -z "$as_dir" && as_dir=.
14666 for ac_exec_ext in '' $ac_executable_extensions; do
14667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14668 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14670 break 2
14671 fi
14672 done
14673 done
14674 IFS=$as_save_IFS
14675
14676 fi
14677 fi
14678 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14679 if test -n "$DSYMUTIL"; then
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14681 $as_echo "$DSYMUTIL" >&6; }
14682 else
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14684 $as_echo "no" >&6; }
14685 fi
14686
14687
14688 fi
14689 if test -z "$ac_cv_prog_DSYMUTIL"; then
14690 ac_ct_DSYMUTIL=$DSYMUTIL
14691 # Extract the first word of "dsymutil", so it can be a program name with args.
14692 set dummy dsymutil; ac_word=$2
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14694 $as_echo_n "checking for $ac_word... " >&6; }
14695 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14696 $as_echo_n "(cached) " >&6
14697 else
14698 if test -n "$ac_ct_DSYMUTIL"; then
14699 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14700 else
14701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14702 for as_dir in $PATH
14703 do
14704 IFS=$as_save_IFS
14705 test -z "$as_dir" && as_dir=.
14706 for ac_exec_ext in '' $ac_executable_extensions; do
14707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14708 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14710 break 2
14711 fi
14712 done
14713 done
14714 IFS=$as_save_IFS
14715
14716 fi
14717 fi
14718 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14719 if test -n "$ac_ct_DSYMUTIL"; then
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14721 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14722 else
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14724 $as_echo "no" >&6; }
14725 fi
14726
14727 if test "x$ac_ct_DSYMUTIL" = x; then
14728 DSYMUTIL=":"
14729 else
14730 case $cross_compiling:$ac_tool_warned in
14731 yes:)
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14734 ac_tool_warned=yes ;;
14735 esac
14736 DSYMUTIL=$ac_ct_DSYMUTIL
14737 fi
14738 else
14739 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14740 fi
14741
14742 if test -n "$ac_tool_prefix"; then
14743 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14744 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14746 $as_echo_n "checking for $ac_word... " >&6; }
14747 if ${ac_cv_prog_NMEDIT+:} false; then :
14748 $as_echo_n "(cached) " >&6
14749 else
14750 if test -n "$NMEDIT"; then
14751 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14752 else
14753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14754 for as_dir in $PATH
14755 do
14756 IFS=$as_save_IFS
14757 test -z "$as_dir" && as_dir=.
14758 for ac_exec_ext in '' $ac_executable_extensions; do
14759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14760 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14762 break 2
14763 fi
14764 done
14765 done
14766 IFS=$as_save_IFS
14767
14768 fi
14769 fi
14770 NMEDIT=$ac_cv_prog_NMEDIT
14771 if test -n "$NMEDIT"; then
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14773 $as_echo "$NMEDIT" >&6; }
14774 else
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14776 $as_echo "no" >&6; }
14777 fi
14778
14779
14780 fi
14781 if test -z "$ac_cv_prog_NMEDIT"; then
14782 ac_ct_NMEDIT=$NMEDIT
14783 # Extract the first word of "nmedit", so it can be a program name with args.
14784 set dummy nmedit; ac_word=$2
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14786 $as_echo_n "checking for $ac_word... " >&6; }
14787 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14788 $as_echo_n "(cached) " >&6
14789 else
14790 if test -n "$ac_ct_NMEDIT"; then
14791 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14792 else
14793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14794 for as_dir in $PATH
14795 do
14796 IFS=$as_save_IFS
14797 test -z "$as_dir" && as_dir=.
14798 for ac_exec_ext in '' $ac_executable_extensions; do
14799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14800 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14802 break 2
14803 fi
14804 done
14805 done
14806 IFS=$as_save_IFS
14807
14808 fi
14809 fi
14810 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14811 if test -n "$ac_ct_NMEDIT"; then
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14813 $as_echo "$ac_ct_NMEDIT" >&6; }
14814 else
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14816 $as_echo "no" >&6; }
14817 fi
14818
14819 if test "x$ac_ct_NMEDIT" = x; then
14820 NMEDIT=":"
14821 else
14822 case $cross_compiling:$ac_tool_warned in
14823 yes:)
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14826 ac_tool_warned=yes ;;
14827 esac
14828 NMEDIT=$ac_ct_NMEDIT
14829 fi
14830 else
14831 NMEDIT="$ac_cv_prog_NMEDIT"
14832 fi
14833
14834 if test -n "$ac_tool_prefix"; then
14835 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14836 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14838 $as_echo_n "checking for $ac_word... " >&6; }
14839 if ${ac_cv_prog_LIPO+:} false; then :
14840 $as_echo_n "(cached) " >&6
14841 else
14842 if test -n "$LIPO"; then
14843 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14844 else
14845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14846 for as_dir in $PATH
14847 do
14848 IFS=$as_save_IFS
14849 test -z "$as_dir" && as_dir=.
14850 for ac_exec_ext in '' $ac_executable_extensions; do
14851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14852 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14854 break 2
14855 fi
14856 done
14857 done
14858 IFS=$as_save_IFS
14859
14860 fi
14861 fi
14862 LIPO=$ac_cv_prog_LIPO
14863 if test -n "$LIPO"; then
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14865 $as_echo "$LIPO" >&6; }
14866 else
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14868 $as_echo "no" >&6; }
14869 fi
14870
14871
14872 fi
14873 if test -z "$ac_cv_prog_LIPO"; then
14874 ac_ct_LIPO=$LIPO
14875 # Extract the first word of "lipo", so it can be a program name with args.
14876 set dummy lipo; ac_word=$2
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14878 $as_echo_n "checking for $ac_word... " >&6; }
14879 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14880 $as_echo_n "(cached) " >&6
14881 else
14882 if test -n "$ac_ct_LIPO"; then
14883 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14884 else
14885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14886 for as_dir in $PATH
14887 do
14888 IFS=$as_save_IFS
14889 test -z "$as_dir" && as_dir=.
14890 for ac_exec_ext in '' $ac_executable_extensions; do
14891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14892 ac_cv_prog_ac_ct_LIPO="lipo"
14893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14894 break 2
14895 fi
14896 done
14897 done
14898 IFS=$as_save_IFS
14899
14900 fi
14901 fi
14902 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14903 if test -n "$ac_ct_LIPO"; then
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14905 $as_echo "$ac_ct_LIPO" >&6; }
14906 else
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14908 $as_echo "no" >&6; }
14909 fi
14910
14911 if test "x$ac_ct_LIPO" = x; then
14912 LIPO=":"
14913 else
14914 case $cross_compiling:$ac_tool_warned in
14915 yes:)
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14918 ac_tool_warned=yes ;;
14919 esac
14920 LIPO=$ac_ct_LIPO
14921 fi
14922 else
14923 LIPO="$ac_cv_prog_LIPO"
14924 fi
14925
14926 if test -n "$ac_tool_prefix"; then
14927 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14928 set dummy ${ac_tool_prefix}otool; ac_word=$2
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14930 $as_echo_n "checking for $ac_word... " >&6; }
14931 if ${ac_cv_prog_OTOOL+:} false; then :
14932 $as_echo_n "(cached) " >&6
14933 else
14934 if test -n "$OTOOL"; then
14935 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14936 else
14937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14938 for as_dir in $PATH
14939 do
14940 IFS=$as_save_IFS
14941 test -z "$as_dir" && as_dir=.
14942 for ac_exec_ext in '' $ac_executable_extensions; do
14943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14944 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14946 break 2
14947 fi
14948 done
14949 done
14950 IFS=$as_save_IFS
14951
14952 fi
14953 fi
14954 OTOOL=$ac_cv_prog_OTOOL
14955 if test -n "$OTOOL"; then
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14957 $as_echo "$OTOOL" >&6; }
14958 else
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14960 $as_echo "no" >&6; }
14961 fi
14962
14963
14964 fi
14965 if test -z "$ac_cv_prog_OTOOL"; then
14966 ac_ct_OTOOL=$OTOOL
14967 # Extract the first word of "otool", so it can be a program name with args.
14968 set dummy otool; ac_word=$2
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14970 $as_echo_n "checking for $ac_word... " >&6; }
14971 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14972 $as_echo_n "(cached) " >&6
14973 else
14974 if test -n "$ac_ct_OTOOL"; then
14975 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14976 else
14977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14978 for as_dir in $PATH
14979 do
14980 IFS=$as_save_IFS
14981 test -z "$as_dir" && as_dir=.
14982 for ac_exec_ext in '' $ac_executable_extensions; do
14983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14984 ac_cv_prog_ac_ct_OTOOL="otool"
14985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14986 break 2
14987 fi
14988 done
14989 done
14990 IFS=$as_save_IFS
14991
14992 fi
14993 fi
14994 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14995 if test -n "$ac_ct_OTOOL"; then
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14997 $as_echo "$ac_ct_OTOOL" >&6; }
14998 else
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15000 $as_echo "no" >&6; }
15001 fi
15002
15003 if test "x$ac_ct_OTOOL" = x; then
15004 OTOOL=":"
15005 else
15006 case $cross_compiling:$ac_tool_warned in
15007 yes:)
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15010 ac_tool_warned=yes ;;
15011 esac
15012 OTOOL=$ac_ct_OTOOL
15013 fi
15014 else
15015 OTOOL="$ac_cv_prog_OTOOL"
15016 fi
15017
15018 if test -n "$ac_tool_prefix"; then
15019 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15020 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15022 $as_echo_n "checking for $ac_word... " >&6; }
15023 if ${ac_cv_prog_OTOOL64+:} false; then :
15024 $as_echo_n "(cached) " >&6
15025 else
15026 if test -n "$OTOOL64"; then
15027 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15028 else
15029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15030 for as_dir in $PATH
15031 do
15032 IFS=$as_save_IFS
15033 test -z "$as_dir" && as_dir=.
15034 for ac_exec_ext in '' $ac_executable_extensions; do
15035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15036 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15038 break 2
15039 fi
15040 done
15041 done
15042 IFS=$as_save_IFS
15043
15044 fi
15045 fi
15046 OTOOL64=$ac_cv_prog_OTOOL64
15047 if test -n "$OTOOL64"; then
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15049 $as_echo "$OTOOL64" >&6; }
15050 else
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15052 $as_echo "no" >&6; }
15053 fi
15054
15055
15056 fi
15057 if test -z "$ac_cv_prog_OTOOL64"; then
15058 ac_ct_OTOOL64=$OTOOL64
15059 # Extract the first word of "otool64", so it can be a program name with args.
15060 set dummy otool64; ac_word=$2
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15062 $as_echo_n "checking for $ac_word... " >&6; }
15063 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15064 $as_echo_n "(cached) " >&6
15065 else
15066 if test -n "$ac_ct_OTOOL64"; then
15067 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15068 else
15069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15070 for as_dir in $PATH
15071 do
15072 IFS=$as_save_IFS
15073 test -z "$as_dir" && as_dir=.
15074 for ac_exec_ext in '' $ac_executable_extensions; do
15075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15076 ac_cv_prog_ac_ct_OTOOL64="otool64"
15077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15078 break 2
15079 fi
15080 done
15081 done
15082 IFS=$as_save_IFS
15083
15084 fi
15085 fi
15086 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15087 if test -n "$ac_ct_OTOOL64"; then
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15089 $as_echo "$ac_ct_OTOOL64" >&6; }
15090 else
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15092 $as_echo "no" >&6; }
15093 fi
15094
15095 if test "x$ac_ct_OTOOL64" = x; then
15096 OTOOL64=":"
15097 else
15098 case $cross_compiling:$ac_tool_warned in
15099 yes:)
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15102 ac_tool_warned=yes ;;
15103 esac
15104 OTOOL64=$ac_ct_OTOOL64
15105 fi
15106 else
15107 OTOOL64="$ac_cv_prog_OTOOL64"
15108 fi
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15137 $as_echo_n "checking for -single_module linker flag... " >&6; }
15138 if ${lt_cv_apple_cc_single_mod+:} false; then :
15139 $as_echo_n "(cached) " >&6
15140 else
15141 lt_cv_apple_cc_single_mod=no
15142 if test -z "$LT_MULTI_MODULE"; then
15143 # By default we will add the -single_module flag. You can override
15144 # by either setting the environment variable LT_MULTI_MODULE
15145 # non-empty at configure time, or by adding -multi_module to the
15146 # link flags.
15147 rm -rf libconftest.dylib*
15148 echo "int foo(void){return 1;}" > conftest.c
15149 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15150 -dynamiclib -Wl,-single_module conftest.c" >&5
15151 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15152 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15153 _lt_result=$?
15154 # If there is a non-empty error log, and "single_module"
15155 # appears in it, assume the flag caused a linker warning
15156 if test -s conftest.err && $GREP single_module conftest.err; then
15157 cat conftest.err >&5
15158 # Otherwise, if the output was created with a 0 exit code from
15159 # the compiler, it worked.
15160 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
15161 lt_cv_apple_cc_single_mod=yes
15162 else
15163 cat conftest.err >&5
15164 fi
15165 rm -rf libconftest.dylib*
15166 rm -f conftest.*
15167 fi
15168 fi
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15170 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15171
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15173 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15174 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15175 $as_echo_n "(cached) " >&6
15176 else
15177 lt_cv_ld_exported_symbols_list=no
15178 save_LDFLAGS=$LDFLAGS
15179 echo "_main" > conftest.sym
15180 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15182 /* end confdefs.h. */
15183
15184 int
15185 main ()
15186 {
15187
15188 ;
15189 return 0;
15190 }
15191 _ACEOF
15192 if ac_fn_c_try_link "$LINENO"; then :
15193 lt_cv_ld_exported_symbols_list=yes
15194 else
15195 lt_cv_ld_exported_symbols_list=no
15196 fi
15197 rm -f core conftest.err conftest.$ac_objext \
15198 conftest$ac_exeext conftest.$ac_ext
15199 LDFLAGS=$save_LDFLAGS
15200
15201 fi
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15203 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15204
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15206 $as_echo_n "checking for -force_load linker flag... " >&6; }
15207 if ${lt_cv_ld_force_load+:} false; then :
15208 $as_echo_n "(cached) " >&6
15209 else
15210 lt_cv_ld_force_load=no
15211 cat > conftest.c << _LT_EOF
15212 int forced_loaded() { return 2;}
15213 _LT_EOF
15214 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15215 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15216 echo "$AR cru libconftest.a conftest.o" >&5
15217 $AR cru libconftest.a conftest.o 2>&5
15218 echo "$RANLIB libconftest.a" >&5
15219 $RANLIB libconftest.a 2>&5
15220 cat > conftest.c << _LT_EOF
15221 int main() { return 0;}
15222 _LT_EOF
15223 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15224 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15225 _lt_result=$?
15226 if test -s conftest.err && $GREP force_load conftest.err; then
15227 cat conftest.err >&5
15228 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
15229 lt_cv_ld_force_load=yes
15230 else
15231 cat conftest.err >&5
15232 fi
15233 rm -f conftest.err libconftest.a conftest conftest.c
15234 rm -rf conftest.dSYM
15235
15236 fi
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15238 $as_echo "$lt_cv_ld_force_load" >&6; }
15239 case $host_os in
15240 rhapsody* | darwin1.[012])
15241 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
15242 darwin1.*)
15243 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15244 darwin*) # darwin 5.x on
15245 # if running on 10.5 or later, the deployment target defaults
15246 # to the OS version, if on x86, and 10.4, the deployment
15247 # target defaults to 10.4. Don't you love it?
15248 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15249 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15250 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
15251 10.[012][,.]*)
15252 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15253 10.*)
15254 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
15255 esac
15256 ;;
15257 esac
15258 if test yes = "$lt_cv_apple_cc_single_mod"; then
15259 _lt_dar_single_mod='$single_module'
15260 fi
15261 if test yes = "$lt_cv_ld_exported_symbols_list"; then
15262 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
15263 else
15264 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
15265 fi
15266 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
15267 _lt_dsymutil='~$DSYMUTIL $lib || :'
15268 else
15269 _lt_dsymutil=
15270 fi
15271 ;;
15272 esac
15273
15274 # func_munge_path_list VARIABLE PATH
15275 # -----------------------------------
15276 # VARIABLE is name of variable containing _space_ separated list of
15277 # directories to be munged by the contents of PATH, which is string
15278 # having a format:
15279 # "DIR[:DIR]:"
15280 # string "DIR[ DIR]" will be prepended to VARIABLE
15281 # ":DIR[:DIR]"
15282 # string "DIR[ DIR]" will be appended to VARIABLE
15283 # "DIRP[:DIRP]::[DIRA:]DIRA"
15284 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15285 # "DIRA[ DIRA]" will be appended to VARIABLE
15286 # "DIR[:DIR]"
15287 # VARIABLE will be replaced by "DIR[ DIR]"
15288 func_munge_path_list ()
15289 {
15290 case x$2 in
15291 x)
15292 ;;
15293 *:)
15294 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15295 ;;
15296 x:*)
15297 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15298 ;;
15299 *::*)
15300 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15301 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15302 ;;
15303 *)
15304 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15305 ;;
15306 esac
15307 }
15308
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15310 $as_echo_n "checking for ANSI C header files... " >&6; }
15311 if ${ac_cv_header_stdc+:} false; then :
15312 $as_echo_n "(cached) " >&6
15313 else
15314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15315 /* end confdefs.h. */
15316 #include <stdlib.h>
15317 #include <stdarg.h>
15318 #include <string.h>
15319 #include <float.h>
15320
15321 int
15322 main ()
15323 {
15324
15325 ;
15326 return 0;
15327 }
15328 _ACEOF
15329 if ac_fn_c_try_compile "$LINENO"; then :
15330 ac_cv_header_stdc=yes
15331 else
15332 ac_cv_header_stdc=no
15333 fi
15334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15335
15336 if test $ac_cv_header_stdc = yes; then
15337 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15340 #include <string.h>
15341
15342 _ACEOF
15343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15344 $EGREP "memchr" >/dev/null 2>&1; then :
15345
15346 else
15347 ac_cv_header_stdc=no
15348 fi
15349 rm -f conftest*
15350
15351 fi
15352
15353 if test $ac_cv_header_stdc = yes; then
15354 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15356 /* end confdefs.h. */
15357 #include <stdlib.h>
15358
15359 _ACEOF
15360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15361 $EGREP "free" >/dev/null 2>&1; then :
15362
15363 else
15364 ac_cv_header_stdc=no
15365 fi
15366 rm -f conftest*
15367
15368 fi
15369
15370 if test $ac_cv_header_stdc = yes; then
15371 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15372 if test "$cross_compiling" = yes; then :
15373 :
15374 else
15375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h. */
15377 #include <ctype.h>
15378 #include <stdlib.h>
15379 #if ((' ' & 0x0FF) == 0x020)
15380 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15381 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15382 #else
15383 # define ISLOWER(c) \
15384 (('a' <= (c) && (c) <= 'i') \
15385 || ('j' <= (c) && (c) <= 'r') \
15386 || ('s' <= (c) && (c) <= 'z'))
15387 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15388 #endif
15389
15390 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15391 int
15392 main ()
15393 {
15394 int i;
15395 for (i = 0; i < 256; i++)
15396 if (XOR (islower (i), ISLOWER (i))
15397 || toupper (i) != TOUPPER (i))
15398 return 2;
15399 return 0;
15400 }
15401 _ACEOF
15402 if ac_fn_c_try_run "$LINENO"; then :
15403
15404 else
15405 ac_cv_header_stdc=no
15406 fi
15407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15408 conftest.$ac_objext conftest.beam conftest.$ac_ext
15409 fi
15410
15411 fi
15412 fi
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15414 $as_echo "$ac_cv_header_stdc" >&6; }
15415 if test $ac_cv_header_stdc = yes; then
15416
15417 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15418
15419 fi
15420
15421 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
15422 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
15423 inttypes.h stdint.h unistd.h
15424 do :
15425 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15426 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15427 "
15428 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15429 cat >>confdefs.h <<_ACEOF
15430 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15431 _ACEOF
15432
15433 fi
15434
15435 done
15436
15437
15438 for ac_header in dlfcn.h
15439 do :
15440 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15441 "
15442 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15443 cat >>confdefs.h <<_ACEOF
15444 #define HAVE_DLFCN_H 1
15445 _ACEOF
15446
15447 fi
15448
15449 done
15450
15451
15452
15453
15454 func_stripname_cnf ()
15455 {
15456 case $2 in
15457 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
15458 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
15459 esac
15460 } # func_stripname_cnf
15461
15462
15463
15464
15465
15466 # Set options
15467
15468
15469
15470 enable_dlopen=no
15471
15472
15473
15474 # Check whether --enable-shared was given.
15475 if test "${enable_shared+set}" = set; then :
15476 enableval=$enable_shared; p=${PACKAGE-default}
15477 case $enableval in
15478 yes) enable_shared=yes ;;
15479 no) enable_shared=no ;;
15480 *)
15481 enable_shared=no
15482 # Look at the argument we got. We use all the common list separators.
15483 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15484 for pkg in $enableval; do
15485 IFS=$lt_save_ifs
15486 if test "X$pkg" = "X$p"; then
15487 enable_shared=yes
15488 fi
15489 done
15490 IFS=$lt_save_ifs
15491 ;;
15492 esac
15493 else
15494 enable_shared=yes
15495 fi
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505 # Check whether --enable-static was given.
15506 if test "${enable_static+set}" = set; then :
15507 enableval=$enable_static; p=${PACKAGE-default}
15508 case $enableval in
15509 yes) enable_static=yes ;;
15510 no) enable_static=no ;;
15511 *)
15512 enable_static=no
15513 # Look at the argument we got. We use all the common list separators.
15514 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15515 for pkg in $enableval; do
15516 IFS=$lt_save_ifs
15517 if test "X$pkg" = "X$p"; then
15518 enable_static=yes
15519 fi
15520 done
15521 IFS=$lt_save_ifs
15522 ;;
15523 esac
15524 else
15525 enable_static=yes
15526 fi
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537 # Check whether --with-pic was given.
15538 if test "${with_pic+set}" = set; then :
15539 withval=$with_pic; lt_p=${PACKAGE-default}
15540 case $withval in
15541 yes|no) pic_mode=$withval ;;
15542 *)
15543 pic_mode=default
15544 # Look at the argument we got. We use all the common list separators.
15545 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15546 for lt_pkg in $withval; do
15547 IFS=$lt_save_ifs
15548 if test "X$lt_pkg" = "X$lt_p"; then
15549 pic_mode=yes
15550 fi
15551 done
15552 IFS=$lt_save_ifs
15553 ;;
15554 esac
15555 else
15556 pic_mode=default
15557 fi
15558
15559
15560
15561
15562
15563
15564
15565
15566 # Check whether --enable-fast-install was given.
15567 if test "${enable_fast_install+set}" = set; then :
15568 enableval=$enable_fast_install; p=${PACKAGE-default}
15569 case $enableval in
15570 yes) enable_fast_install=yes ;;
15571 no) enable_fast_install=no ;;
15572 *)
15573 enable_fast_install=no
15574 # Look at the argument we got. We use all the common list separators.
15575 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15576 for pkg in $enableval; do
15577 IFS=$lt_save_ifs
15578 if test "X$pkg" = "X$p"; then
15579 enable_fast_install=yes
15580 fi
15581 done
15582 IFS=$lt_save_ifs
15583 ;;
15584 esac
15585 else
15586 enable_fast_install=yes
15587 fi
15588
15589
15590
15591
15592
15593
15594
15595
15596 shared_archive_member_spec=
15597 case $host,$enable_shared in
15598 power*-*-aix[5-9]*,yes)
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15600 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
15601
15602 # Check whether --with-aix-soname was given.
15603 if test "${with_aix_soname+set}" = set; then :
15604 withval=$with_aix_soname; case $withval in
15605 aix|svr4|both)
15606 ;;
15607 *)
15608 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15609 ;;
15610 esac
15611 lt_cv_with_aix_soname=$with_aix_soname
15612 else
15613 if ${lt_cv_with_aix_soname+:} false; then :
15614 $as_echo_n "(cached) " >&6
15615 else
15616 lt_cv_with_aix_soname=aix
15617 fi
15618
15619 with_aix_soname=$lt_cv_with_aix_soname
15620 fi
15621
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15623 $as_echo "$with_aix_soname" >&6; }
15624 if test aix != "$with_aix_soname"; then
15625 # For the AIX way of multilib, we name the shared archive member
15626 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15627 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15628 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15629 # the AIX toolchain works better with OBJECT_MODE set (default 32).
15630 if test 64 = "${OBJECT_MODE-32}"; then
15631 shared_archive_member_spec=shr_64
15632 else
15633 shared_archive_member_spec=shr
15634 fi
15635 fi
15636 ;;
15637 *)
15638 with_aix_soname=aix
15639 ;;
15640 esac
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651 # This can be used to rebuild libtool when needed
15652 LIBTOOL_DEPS=$ltmain
15653
15654 # Always use our own libtool.
15655 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686 test -z "$LN_S" && LN_S="ln -s"
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701 if test -n "${ZSH_VERSION+set}"; then
15702 setopt NO_GLOB_SUBST
15703 fi
15704
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15706 $as_echo_n "checking for objdir... " >&6; }
15707 if ${lt_cv_objdir+:} false; then :
15708 $as_echo_n "(cached) " >&6
15709 else
15710 rm -f .libs 2>/dev/null
15711 mkdir .libs 2>/dev/null
15712 if test -d .libs; then
15713 lt_cv_objdir=.libs
15714 else
15715 # MS-DOS does not allow filenames that begin with a dot.
15716 lt_cv_objdir=_libs
15717 fi
15718 rmdir .libs 2>/dev/null
15719 fi
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15721 $as_echo "$lt_cv_objdir" >&6; }
15722 objdir=$lt_cv_objdir
15723
15724
15725
15726
15727
15728 cat >>confdefs.h <<_ACEOF
15729 #define LT_OBJDIR "$lt_cv_objdir/"
15730 _ACEOF
15731
15732
15733
15734
15735 case $host_os in
15736 aix3*)
15737 # AIX sometimes has problems with the GCC collect2 program. For some
15738 # reason, if we set the COLLECT_NAMES environment variable, the problems
15739 # vanish in a puff of smoke.
15740 if test set != "${COLLECT_NAMES+set}"; then
15741 COLLECT_NAMES=
15742 export COLLECT_NAMES
15743 fi
15744 ;;
15745 esac
15746
15747 # Global variables:
15748 ofile=libtool
15749 can_build_shared=yes
15750
15751 # All known linkers require a '.a' archive for static linking (except MSVC,
15752 # which needs '.lib').
15753 libext=a
15754
15755 with_gnu_ld=$lt_cv_prog_gnu_ld
15756
15757 old_CC=$CC
15758 old_CFLAGS=$CFLAGS
15759
15760 # Set sane defaults for various variables
15761 test -z "$CC" && CC=cc
15762 test -z "$LTCC" && LTCC=$CC
15763 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15764 test -z "$LD" && LD=ld
15765 test -z "$ac_objext" && ac_objext=o
15766
15767 func_cc_basename $compiler
15768 cc_basename=$func_cc_basename_result
15769
15770
15771 # Only perform the check for file, if the check method requires it
15772 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15773 case $deplibs_check_method in
15774 file_magic*)
15775 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15777 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15778 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15779 $as_echo_n "(cached) " >&6
15780 else
15781 case $MAGIC_CMD in
15782 [\\/*] | ?:[\\/]*)
15783 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15784 ;;
15785 *)
15786 lt_save_MAGIC_CMD=$MAGIC_CMD
15787 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15788 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15789 for ac_dir in $ac_dummy; do
15790 IFS=$lt_save_ifs
15791 test -z "$ac_dir" && ac_dir=.
15792 if test -f "$ac_dir/${ac_tool_prefix}file"; then
15793 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15794 if test -n "$file_magic_test_file"; then
15795 case $deplibs_check_method in
15796 "file_magic "*)
15797 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15798 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15799 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15800 $EGREP "$file_magic_regex" > /dev/null; then
15801 :
15802 else
15803 cat <<_LT_EOF 1>&2
15804
15805 *** Warning: the command libtool uses to detect shared libraries,
15806 *** $file_magic_cmd, produces output that libtool cannot recognize.
15807 *** The result is that libtool may fail to recognize shared libraries
15808 *** as such. This will affect the creation of libtool libraries that
15809 *** depend on shared libraries, but programs linked with such libtool
15810 *** libraries will work regardless of this problem. Nevertheless, you
15811 *** may want to report the problem to your system manager and/or to
15812 *** [email protected]
15813
15814 _LT_EOF
15815 fi ;;
15816 esac
15817 fi
15818 break
15819 fi
15820 done
15821 IFS=$lt_save_ifs
15822 MAGIC_CMD=$lt_save_MAGIC_CMD
15823 ;;
15824 esac
15825 fi
15826
15827 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15828 if test -n "$MAGIC_CMD"; then
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15830 $as_echo "$MAGIC_CMD" >&6; }
15831 else
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15833 $as_echo "no" >&6; }
15834 fi
15835
15836
15837
15838
15839
15840 if test -z "$lt_cv_path_MAGIC_CMD"; then
15841 if test -n "$ac_tool_prefix"; then
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15843 $as_echo_n "checking for file... " >&6; }
15844 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15845 $as_echo_n "(cached) " >&6
15846 else
15847 case $MAGIC_CMD in
15848 [\\/*] | ?:[\\/]*)
15849 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15850 ;;
15851 *)
15852 lt_save_MAGIC_CMD=$MAGIC_CMD
15853 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15854 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15855 for ac_dir in $ac_dummy; do
15856 IFS=$lt_save_ifs
15857 test -z "$ac_dir" && ac_dir=.
15858 if test -f "$ac_dir/file"; then
15859 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15860 if test -n "$file_magic_test_file"; then
15861 case $deplibs_check_method in
15862 "file_magic "*)
15863 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15864 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15865 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15866 $EGREP "$file_magic_regex" > /dev/null; then
15867 :
15868 else
15869 cat <<_LT_EOF 1>&2
15870
15871 *** Warning: the command libtool uses to detect shared libraries,
15872 *** $file_magic_cmd, produces output that libtool cannot recognize.
15873 *** The result is that libtool may fail to recognize shared libraries
15874 *** as such. This will affect the creation of libtool libraries that
15875 *** depend on shared libraries, but programs linked with such libtool
15876 *** libraries will work regardless of this problem. Nevertheless, you
15877 *** may want to report the problem to your system manager and/or to
15878 *** [email protected]
15879
15880 _LT_EOF
15881 fi ;;
15882 esac
15883 fi
15884 break
15885 fi
15886 done
15887 IFS=$lt_save_ifs
15888 MAGIC_CMD=$lt_save_MAGIC_CMD
15889 ;;
15890 esac
15891 fi
15892
15893 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15894 if test -n "$MAGIC_CMD"; then
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15896 $as_echo "$MAGIC_CMD" >&6; }
15897 else
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15899 $as_echo "no" >&6; }
15900 fi
15901
15902
15903 else
15904 MAGIC_CMD=:
15905 fi
15906 fi
15907
15908 fi
15909 ;;
15910 esac
15911
15912 # Use C for the default configuration in the libtool script
15913
15914 lt_save_CC=$CC
15915 ac_ext=c
15916 ac_cpp='$CPP $CPPFLAGS'
15917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15920
15921
15922 # Source file extension for C test sources.
15923 ac_ext=c
15924
15925 # Object file extension for compiled C test sources.
15926 objext=o
15927 objext=$objext
15928
15929 # Code to be used in simple compile tests
15930 lt_simple_compile_test_code="int some_variable = 0;"
15931
15932 # Code to be used in simple link tests
15933 lt_simple_link_test_code='int main(){return(0);}'
15934
15935
15936
15937
15938
15939
15940
15941 # If no C compiler was specified, use CC.
15942 LTCC=${LTCC-"$CC"}
15943
15944 # If no C compiler flags were specified, use CFLAGS.
15945 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15946
15947 # Allow CC to be a program name with arguments.
15948 compiler=$CC
15949
15950 # Save the default compiler, since it gets overwritten when the other
15951 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15952 compiler_DEFAULT=$CC
15953
15954 # save warnings/boilerplate of simple test code
15955 ac_outfile=conftest.$ac_objext
15956 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15957 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15958 _lt_compiler_boilerplate=`cat conftest.err`
15959 $RM conftest*
15960
15961 ac_outfile=conftest.$ac_objext
15962 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15963 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15964 _lt_linker_boilerplate=`cat conftest.err`
15965 $RM -r conftest*
15966
15967
15968 if test -n "$compiler"; then
15969
15970 lt_prog_compiler_no_builtin_flag=
15971
15972 if test yes = "$GCC"; then
15973 case $cc_basename in
15974 nvcc*)
15975 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15976 *)
15977 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15978 esac
15979
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15981 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15982 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15983 $as_echo_n "(cached) " >&6
15984 else
15985 lt_cv_prog_compiler_rtti_exceptions=no
15986 ac_outfile=conftest.$ac_objext
15987 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15988 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
15989 # Insert the option either (1) after the last *FLAGS variable, or
15990 # (2) before a word containing "conftest.", or (3) at the end.
15991 # Note that $ac_compile itself does not contain backslashes and begins
15992 # with a dollar sign (not a hyphen), so the echo should work correctly.
15993 # The option is referenced via a variable to avoid confusing sed.
15994 lt_compile=`echo "$ac_compile" | $SED \
15995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15997 -e 's:$: $lt_compiler_flag:'`
15998 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15999 (eval "$lt_compile" 2>conftest.err)
16000 ac_status=$?
16001 cat conftest.err >&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 if (exit $ac_status) && test -s "$ac_outfile"; then
16004 # The compiler can only warn and ignore the option if not recognized
16005 # So say no if there are warnings other than the usual output.
16006 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16007 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16008 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16009 lt_cv_prog_compiler_rtti_exceptions=yes
16010 fi
16011 fi
16012 $RM conftest*
16013
16014 fi
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16016 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16017
16018 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
16019 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16020 else
16021 :
16022 fi
16023
16024 fi
16025
16026
16027
16028
16029
16030
16031 lt_prog_compiler_wl=
16032 lt_prog_compiler_pic=
16033 lt_prog_compiler_static=
16034
16035
16036 if test yes = "$GCC"; then
16037 lt_prog_compiler_wl='-Wl,'
16038 lt_prog_compiler_static='-static'
16039
16040 case $host_os in
16041 aix*)
16042 # All AIX code is PIC.
16043 if test ia64 = "$host_cpu"; then
16044 # AIX 5 now supports IA64 processor
16045 lt_prog_compiler_static='-Bstatic'
16046 fi
16047 lt_prog_compiler_pic='-fPIC'
16048 ;;
16049
16050 amigaos*)
16051 case $host_cpu in
16052 powerpc)
16053 # see comment about AmigaOS4 .so support
16054 lt_prog_compiler_pic='-fPIC'
16055 ;;
16056 m68k)
16057 # FIXME: we need at least 68020 code to build shared libraries, but
16058 # adding the '-m68020' flag to GCC prevents building anything better,
16059 # like '-m68040'.
16060 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16061 ;;
16062 esac
16063 ;;
16064
16065 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16066 # PIC is the default for these OSes.
16067 ;;
16068
16069 mingw* | cygwin* | pw32* | os2* | cegcc*)
16070 # This hack is so that the source file can tell whether it is being
16071 # built for inclusion in a dll (and should export symbols for example).
16072 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16073 # (--disable-auto-import) libraries
16074 lt_prog_compiler_pic='-DDLL_EXPORT'
16075 case $host_os in
16076 os2*)
16077 lt_prog_compiler_static='$wl-static'
16078 ;;
16079 esac
16080 ;;
16081
16082 darwin* | rhapsody*)
16083 # PIC is the default on this platform
16084 # Common symbols not allowed in MH_DYLIB files
16085 lt_prog_compiler_pic='-fno-common'
16086 ;;
16087
16088 haiku*)
16089 # PIC is the default for Haiku.
16090 # The "-static" flag exists, but is broken.
16091 lt_prog_compiler_static=
16092 ;;
16093
16094 hpux*)
16095 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16096 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16097 # sets the default TLS model and affects inlining.
16098 case $host_cpu in
16099 hppa*64*)
16100 # +Z the default
16101 ;;
16102 *)
16103 lt_prog_compiler_pic='-fPIC'
16104 ;;
16105 esac
16106 ;;
16107
16108 interix[3-9]*)
16109 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16110 # Instead, we relocate shared libraries at runtime.
16111 ;;
16112
16113 msdosdjgpp*)
16114 # Just because we use GCC doesn't mean we suddenly get shared libraries
16115 # on systems that don't support them.
16116 lt_prog_compiler_can_build_shared=no
16117 enable_shared=no
16118 ;;
16119
16120 *nto* | *qnx*)
16121 # QNX uses GNU C++, but need to define -shared option too, otherwise
16122 # it will coredump.
16123 lt_prog_compiler_pic='-fPIC -shared'
16124 ;;
16125
16126 sysv4*MP*)
16127 if test -d /usr/nec; then
16128 lt_prog_compiler_pic=-Kconform_pic
16129 fi
16130 ;;
16131
16132 *)
16133 lt_prog_compiler_pic='-fPIC'
16134 ;;
16135 esac
16136
16137 case $cc_basename in
16138 nvcc*) # Cuda Compiler Driver 2.2
16139 lt_prog_compiler_wl='-Xlinker '
16140 if test -n "$lt_prog_compiler_pic"; then
16141 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
16142 fi
16143 ;;
16144 esac
16145 else
16146 # PORTME Check for flag to pass linker flags through the system compiler.
16147 case $host_os in
16148 aix*)
16149 lt_prog_compiler_wl='-Wl,'
16150 if test ia64 = "$host_cpu"; then
16151 # AIX 5 now supports IA64 processor
16152 lt_prog_compiler_static='-Bstatic'
16153 else
16154 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16155 fi
16156 ;;
16157
16158 darwin* | rhapsody*)
16159 # PIC is the default on this platform
16160 # Common symbols not allowed in MH_DYLIB files
16161 lt_prog_compiler_pic='-fno-common'
16162 case $cc_basename in
16163 nagfor*)
16164 # NAG Fortran compiler
16165 lt_prog_compiler_wl='-Wl,-Wl,,'
16166 lt_prog_compiler_pic='-PIC'
16167 lt_prog_compiler_static='-Bstatic'
16168 ;;
16169 esac
16170 ;;
16171
16172 mingw* | cygwin* | pw32* | os2* | cegcc*)
16173 # This hack is so that the source file can tell whether it is being
16174 # built for inclusion in a dll (and should export symbols for example).
16175 lt_prog_compiler_pic='-DDLL_EXPORT'
16176 case $host_os in
16177 os2*)
16178 lt_prog_compiler_static='$wl-static'
16179 ;;
16180 esac
16181 ;;
16182
16183 hpux9* | hpux10* | hpux11*)
16184 lt_prog_compiler_wl='-Wl,'
16185 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16186 # not for PA HP-UX.
16187 case $host_cpu in
16188 hppa*64*|ia64*)
16189 # +Z the default
16190 ;;
16191 *)
16192 lt_prog_compiler_pic='+Z'
16193 ;;
16194 esac
16195 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16196 lt_prog_compiler_static='$wl-a ${wl}archive'
16197 ;;
16198
16199 irix5* | irix6* | nonstopux*)
16200 lt_prog_compiler_wl='-Wl,'
16201 # PIC (with -KPIC) is the default.
16202 lt_prog_compiler_static='-non_shared'
16203 ;;
16204
16205 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16206 case $cc_basename in
16207 # old Intel for x86_64, which still supported -KPIC.
16208 ecc*)
16209 lt_prog_compiler_wl='-Wl,'
16210 lt_prog_compiler_pic='-KPIC'
16211 lt_prog_compiler_static='-static'
16212 ;;
16213 # icc used to be incompatible with GCC.
16214 # ICC 10 doesn't accept -KPIC any more.
16215 icc* | ifort*)
16216 lt_prog_compiler_wl='-Wl,'
16217 lt_prog_compiler_pic='-fPIC'
16218 lt_prog_compiler_static='-static'
16219 ;;
16220 # Lahey Fortran 8.1.
16221 lf95*)
16222 lt_prog_compiler_wl='-Wl,'
16223 lt_prog_compiler_pic='--shared'
16224 lt_prog_compiler_static='--static'
16225 ;;
16226 nagfor*)
16227 # NAG Fortran compiler
16228 lt_prog_compiler_wl='-Wl,-Wl,,'
16229 lt_prog_compiler_pic='-PIC'
16230 lt_prog_compiler_static='-Bstatic'
16231 ;;
16232 tcc*)
16233 # Fabrice Bellard et al's Tiny C Compiler
16234 lt_prog_compiler_wl='-Wl,'
16235 lt_prog_compiler_pic='-fPIC'
16236 lt_prog_compiler_static='-static'
16237 ;;
16238 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16239 # Portland Group compilers (*not* the Pentium gcc compiler,
16240 # which looks to be a dead project)
16241 lt_prog_compiler_wl='-Wl,'
16242 lt_prog_compiler_pic='-fpic'
16243 lt_prog_compiler_static='-Bstatic'
16244 ;;
16245 ccc*)
16246 lt_prog_compiler_wl='-Wl,'
16247 # All Alpha code is PIC.
16248 lt_prog_compiler_static='-non_shared'
16249 ;;
16250 xl* | bgxl* | bgf* | mpixl*)
16251 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16252 lt_prog_compiler_wl='-Wl,'
16253 lt_prog_compiler_pic='-qpic'
16254 lt_prog_compiler_static='-qstaticlink'
16255 ;;
16256 *)
16257 case `$CC -V 2>&1 | sed 5q` in
16258 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
16259 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16260 lt_prog_compiler_pic='-KPIC'
16261 lt_prog_compiler_static='-Bstatic'
16262 lt_prog_compiler_wl=''
16263 ;;
16264 *Sun\ F* | *Sun*Fortran*)
16265 lt_prog_compiler_pic='-KPIC'
16266 lt_prog_compiler_static='-Bstatic'
16267 lt_prog_compiler_wl='-Qoption ld '
16268 ;;
16269 *Sun\ C*)
16270 # Sun C 5.9
16271 lt_prog_compiler_pic='-KPIC'
16272 lt_prog_compiler_static='-Bstatic'
16273 lt_prog_compiler_wl='-Wl,'
16274 ;;
16275 *Intel*\ [CF]*Compiler*)
16276 lt_prog_compiler_wl='-Wl,'
16277 lt_prog_compiler_pic='-fPIC'
16278 lt_prog_compiler_static='-static'
16279 ;;
16280 *Portland\ Group*)
16281 lt_prog_compiler_wl='-Wl,'
16282 lt_prog_compiler_pic='-fpic'
16283 lt_prog_compiler_static='-Bstatic'
16284 ;;
16285 esac
16286 ;;
16287 esac
16288 ;;
16289
16290 newsos6)
16291 lt_prog_compiler_pic='-KPIC'
16292 lt_prog_compiler_static='-Bstatic'
16293 ;;
16294
16295 *nto* | *qnx*)
16296 # QNX uses GNU C++, but need to define -shared option too, otherwise
16297 # it will coredump.
16298 lt_prog_compiler_pic='-fPIC -shared'
16299 ;;
16300
16301 osf3* | osf4* | osf5*)
16302 lt_prog_compiler_wl='-Wl,'
16303 # All OSF/1 code is PIC.
16304 lt_prog_compiler_static='-non_shared'
16305 ;;
16306
16307 rdos*)
16308 lt_prog_compiler_static='-non_shared'
16309 ;;
16310
16311 solaris*)
16312 lt_prog_compiler_pic='-KPIC'
16313 lt_prog_compiler_static='-Bstatic'
16314 case $cc_basename in
16315 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
16316 lt_prog_compiler_wl='-Qoption ld ';;
16317 *)
16318 lt_prog_compiler_wl='-Wl,';;
16319 esac
16320 ;;
16321
16322 sunos4*)
16323 lt_prog_compiler_wl='-Qoption ld '
16324 lt_prog_compiler_pic='-PIC'
16325 lt_prog_compiler_static='-Bstatic'
16326 ;;
16327
16328 sysv4 | sysv4.2uw2* | sysv4.3*)
16329 lt_prog_compiler_wl='-Wl,'
16330 lt_prog_compiler_pic='-KPIC'
16331 lt_prog_compiler_static='-Bstatic'
16332 ;;
16333
16334 sysv4*MP*)
16335 if test -d /usr/nec; then
16336 lt_prog_compiler_pic='-Kconform_pic'
16337 lt_prog_compiler_static='-Bstatic'
16338 fi
16339 ;;
16340
16341 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16342 lt_prog_compiler_wl='-Wl,'
16343 lt_prog_compiler_pic='-KPIC'
16344 lt_prog_compiler_static='-Bstatic'
16345 ;;
16346
16347 unicos*)
16348 lt_prog_compiler_wl='-Wl,'
16349 lt_prog_compiler_can_build_shared=no
16350 ;;
16351
16352 uts4*)
16353 lt_prog_compiler_pic='-pic'
16354 lt_prog_compiler_static='-Bstatic'
16355 ;;
16356
16357 *)
16358 lt_prog_compiler_can_build_shared=no
16359 ;;
16360 esac
16361 fi
16362
16363 case $host_os in
16364 # For platforms that do not support PIC, -DPIC is meaningless:
16365 *djgpp*)
16366 lt_prog_compiler_pic=
16367 ;;
16368 *)
16369 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16370 ;;
16371 esac
16372
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16374 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16375 if ${lt_cv_prog_compiler_pic+:} false; then :
16376 $as_echo_n "(cached) " >&6
16377 else
16378 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
16379 fi
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
16381 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
16382 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
16383
16384 #
16385 # Check to make sure the PIC flag actually works.
16386 #
16387 if test -n "$lt_prog_compiler_pic"; then
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16389 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16390 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16391 $as_echo_n "(cached) " >&6
16392 else
16393 lt_cv_prog_compiler_pic_works=no
16394 ac_outfile=conftest.$ac_objext
16395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16396 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
16397 # Insert the option either (1) after the last *FLAGS variable, or
16398 # (2) before a word containing "conftest.", or (3) at the end.
16399 # Note that $ac_compile itself does not contain backslashes and begins
16400 # with a dollar sign (not a hyphen), so the echo should work correctly.
16401 # The option is referenced via a variable to avoid confusing sed.
16402 lt_compile=`echo "$ac_compile" | $SED \
16403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16405 -e 's:$: $lt_compiler_flag:'`
16406 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16407 (eval "$lt_compile" 2>conftest.err)
16408 ac_status=$?
16409 cat conftest.err >&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 if (exit $ac_status) && test -s "$ac_outfile"; then
16412 # The compiler can only warn and ignore the option if not recognized
16413 # So say no if there are warnings other than the usual output.
16414 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16416 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16417 lt_cv_prog_compiler_pic_works=yes
16418 fi
16419 fi
16420 $RM conftest*
16421
16422 fi
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16424 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16425
16426 if test yes = "$lt_cv_prog_compiler_pic_works"; then
16427 case $lt_prog_compiler_pic in
16428 "" | " "*) ;;
16429 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16430 esac
16431 else
16432 lt_prog_compiler_pic=
16433 lt_prog_compiler_can_build_shared=no
16434 fi
16435
16436 fi
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448 #
16449 # Check to make sure the static flag actually works.
16450 #
16451 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16453 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16454 if ${lt_cv_prog_compiler_static_works+:} false; then :
16455 $as_echo_n "(cached) " >&6
16456 else
16457 lt_cv_prog_compiler_static_works=no
16458 save_LDFLAGS=$LDFLAGS
16459 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16460 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16461 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16462 # The linker can only warn and ignore the option if not recognized
16463 # So say no if there are warnings
16464 if test -s conftest.err; then
16465 # Append any errors to the config.log.
16466 cat conftest.err 1>&5
16467 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16469 if diff conftest.exp conftest.er2 >/dev/null; then
16470 lt_cv_prog_compiler_static_works=yes
16471 fi
16472 else
16473 lt_cv_prog_compiler_static_works=yes
16474 fi
16475 fi
16476 $RM -r conftest*
16477 LDFLAGS=$save_LDFLAGS
16478
16479 fi
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16481 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16482
16483 if test yes = "$lt_cv_prog_compiler_static_works"; then
16484 :
16485 else
16486 lt_prog_compiler_static=
16487 fi
16488
16489
16490
16491
16492
16493
16494
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16496 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16497 if ${lt_cv_prog_compiler_c_o+:} false; then :
16498 $as_echo_n "(cached) " >&6
16499 else
16500 lt_cv_prog_compiler_c_o=no
16501 $RM -r conftest 2>/dev/null
16502 mkdir conftest
16503 cd conftest
16504 mkdir out
16505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16506
16507 lt_compiler_flag="-o out/conftest2.$ac_objext"
16508 # Insert the option either (1) after the last *FLAGS variable, or
16509 # (2) before a word containing "conftest.", or (3) at the end.
16510 # Note that $ac_compile itself does not contain backslashes and begins
16511 # with a dollar sign (not a hyphen), so the echo should work correctly.
16512 lt_compile=`echo "$ac_compile" | $SED \
16513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16515 -e 's:$: $lt_compiler_flag:'`
16516 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16517 (eval "$lt_compile" 2>out/conftest.err)
16518 ac_status=$?
16519 cat out/conftest.err >&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16522 then
16523 # The compiler can only warn and ignore the option if not recognized
16524 # So say no if there are warnings
16525 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16526 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16527 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16528 lt_cv_prog_compiler_c_o=yes
16529 fi
16530 fi
16531 chmod u+w . 2>&5
16532 $RM conftest*
16533 # SGI C++ compiler will create directory out/ii_files/ for
16534 # template instantiation
16535 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16536 $RM out/* && rmdir out
16537 cd ..
16538 $RM -r conftest
16539 $RM conftest*
16540
16541 fi
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16543 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16544
16545
16546
16547
16548
16549
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16551 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16552 if ${lt_cv_prog_compiler_c_o+:} false; then :
16553 $as_echo_n "(cached) " >&6
16554 else
16555 lt_cv_prog_compiler_c_o=no
16556 $RM -r conftest 2>/dev/null
16557 mkdir conftest
16558 cd conftest
16559 mkdir out
16560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16561
16562 lt_compiler_flag="-o out/conftest2.$ac_objext"
16563 # Insert the option either (1) after the last *FLAGS variable, or
16564 # (2) before a word containing "conftest.", or (3) at the end.
16565 # Note that $ac_compile itself does not contain backslashes and begins
16566 # with a dollar sign (not a hyphen), so the echo should work correctly.
16567 lt_compile=`echo "$ac_compile" | $SED \
16568 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16570 -e 's:$: $lt_compiler_flag:'`
16571 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16572 (eval "$lt_compile" 2>out/conftest.err)
16573 ac_status=$?
16574 cat out/conftest.err >&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16577 then
16578 # The compiler can only warn and ignore the option if not recognized
16579 # So say no if there are warnings
16580 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16581 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16582 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16583 lt_cv_prog_compiler_c_o=yes
16584 fi
16585 fi
16586 chmod u+w . 2>&5
16587 $RM conftest*
16588 # SGI C++ compiler will create directory out/ii_files/ for
16589 # template instantiation
16590 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16591 $RM out/* && rmdir out
16592 cd ..
16593 $RM -r conftest
16594 $RM conftest*
16595
16596 fi
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16598 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16599
16600
16601
16602
16603 hard_links=nottested
16604 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16605 # do not overwrite the value of need_locks provided by the user
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16607 $as_echo_n "checking if we can lock with hard links... " >&6; }
16608 hard_links=yes
16609 $RM conftest*
16610 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16611 touch conftest.a
16612 ln conftest.a conftest.b 2>&5 || hard_links=no
16613 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16615 $as_echo "$hard_links" >&6; }
16616 if test no = "$hard_links"; then
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16618 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16619 need_locks=warn
16620 fi
16621 else
16622 need_locks=no
16623 fi
16624
16625
16626
16627
16628
16629
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16631 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16632
16633 runpath_var=
16634 allow_undefined_flag=
16635 always_export_symbols=no
16636 archive_cmds=
16637 archive_expsym_cmds=
16638 compiler_needs_object=no
16639 enable_shared_with_static_runtimes=no
16640 export_dynamic_flag_spec=
16641 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16642 hardcode_automatic=no
16643 hardcode_direct=no
16644 hardcode_direct_absolute=no
16645 hardcode_libdir_flag_spec=
16646 hardcode_libdir_separator=
16647 hardcode_minus_L=no
16648 hardcode_shlibpath_var=unsupported
16649 inherit_rpath=no
16650 link_all_deplibs=unknown
16651 module_cmds=
16652 module_expsym_cmds=
16653 old_archive_from_new_cmds=
16654 old_archive_from_expsyms_cmds=
16655 thread_safe_flag_spec=
16656 whole_archive_flag_spec=
16657 # include_expsyms should be a list of space-separated symbols to be *always*
16658 # included in the symbol list
16659 include_expsyms=
16660 # exclude_expsyms can be an extended regexp of symbols to exclude
16661 # it will be wrapped by ' (' and ')$', so one must not match beginning or
16662 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16663 # as well as any symbol that contains 'd'.
16664 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16665 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16666 # platforms (ab)use it in PIC code, but their linkers get confused if
16667 # the symbol is explicitly referenced. Since portable code cannot
16668 # rely on this symbol name, it's probably fine to never include it in
16669 # preloaded symbol tables.
16670 # Exclude shared library initialization/finalization symbols.
16671 extract_expsyms_cmds=
16672
16673 case $host_os in
16674 cygwin* | mingw* | pw32* | cegcc*)
16675 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16676 # When not using gcc, we currently assume that we are using
16677 # Microsoft Visual C++.
16678 if test yes != "$GCC"; then
16679 with_gnu_ld=no
16680 fi
16681 ;;
16682 interix*)
16683 # we just hope/assume this is gcc and not c89 (= MSVC++)
16684 with_gnu_ld=yes
16685 ;;
16686 openbsd* | bitrig*)
16687 with_gnu_ld=no
16688 ;;
16689 esac
16690
16691 ld_shlibs=yes
16692
16693 # On some targets, GNU ld is compatible enough with the native linker
16694 # that we're better off using the native interface for both.
16695 lt_use_gnu_ld_interface=no
16696 if test yes = "$with_gnu_ld"; then
16697 case $host_os in
16698 aix*)
16699 # The AIX port of GNU ld has always aspired to compatibility
16700 # with the native linker. However, as the warning in the GNU ld
16701 # block says, versions before 2.19.5* couldn't really create working
16702 # shared libraries, regardless of the interface used.
16703 case `$LD -v 2>&1` in
16704 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16705 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16706 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16707 *)
16708 lt_use_gnu_ld_interface=yes
16709 ;;
16710 esac
16711 ;;
16712 *)
16713 lt_use_gnu_ld_interface=yes
16714 ;;
16715 esac
16716 fi
16717
16718 if test yes = "$lt_use_gnu_ld_interface"; then
16719 # If archive_cmds runs LD, not CC, wlarc should be empty
16720 wlarc='$wl'
16721
16722 # Set some defaults for GNU ld with shared library support. These
16723 # are reset later if shared libraries are not supported. Putting them
16724 # here allows them to be overridden if necessary.
16725 runpath_var=LD_RUN_PATH
16726 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16727 export_dynamic_flag_spec='$wl--export-dynamic'
16728 # ancient GNU ld didn't support --whole-archive et. al.
16729 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16730 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16731 else
16732 whole_archive_flag_spec=
16733 fi
16734 supports_anon_versioning=no
16735 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
16736 *GNU\ gold*) supports_anon_versioning=yes ;;
16737 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16738 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16739 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16740 *\ 2.11.*) ;; # other 2.11 versions
16741 *) supports_anon_versioning=yes ;;
16742 esac
16743
16744 # See if GNU ld supports shared libraries.
16745 case $host_os in
16746 aix[3-9]*)
16747 # On AIX/PPC, the GNU linker is very broken
16748 if test ia64 != "$host_cpu"; then
16749 ld_shlibs=no
16750 cat <<_LT_EOF 1>&2
16751
16752 *** Warning: the GNU linker, at least up to release 2.19, is reported
16753 *** to be unable to reliably create shared libraries on AIX.
16754 *** Therefore, libtool is disabling shared libraries support. If you
16755 *** really care for shared libraries, you may want to install binutils
16756 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16757 *** You will then need to restart the configuration process.
16758
16759 _LT_EOF
16760 fi
16761 ;;
16762
16763 amigaos*)
16764 case $host_cpu in
16765 powerpc)
16766 # see comment about AmigaOS4 .so support
16767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16768 archive_expsym_cmds=''
16769 ;;
16770 m68k)
16771 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)'
16772 hardcode_libdir_flag_spec='-L$libdir'
16773 hardcode_minus_L=yes
16774 ;;
16775 esac
16776 ;;
16777
16778 beos*)
16779 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16780 allow_undefined_flag=unsupported
16781 # Joseph Beckenbach <[email protected]> says some releases of gcc
16782 # support --undefined. This deserves some investigation. FIXME
16783 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16784 else
16785 ld_shlibs=no
16786 fi
16787 ;;
16788
16789 cygwin* | mingw* | pw32* | cegcc*)
16790 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16791 # as there is no search path for DLLs.
16792 hardcode_libdir_flag_spec='-L$libdir'
16793 export_dynamic_flag_spec='$wl--export-all-symbols'
16794 allow_undefined_flag=unsupported
16795 always_export_symbols=no
16796 enable_shared_with_static_runtimes=yes
16797 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'
16798 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16799
16800 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16802 # If the export-symbols file already is a .def file, use it as
16803 # is; otherwise, prepend EXPORTS...
16804 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16805 cp $export_symbols $output_objdir/$soname.def;
16806 else
16807 echo EXPORTS > $output_objdir/$soname.def;
16808 cat $export_symbols >> $output_objdir/$soname.def;
16809 fi~
16810 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16811 else
16812 ld_shlibs=no
16813 fi
16814 ;;
16815
16816 haiku*)
16817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16818 link_all_deplibs=yes
16819 ;;
16820
16821 os2*)
16822 hardcode_libdir_flag_spec='-L$libdir'
16823 hardcode_minus_L=yes
16824 allow_undefined_flag=unsupported
16825 shrext_cmds=.dll
16826 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16827 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16828 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16829 $ECHO EXPORTS >> $output_objdir/$libname.def~
16830 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16831 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16832 emximp -o $lib $output_objdir/$libname.def'
16833 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16834 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16835 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16836 $ECHO EXPORTS >> $output_objdir/$libname.def~
16837 prefix_cmds="$SED"~
16838 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16839 prefix_cmds="$prefix_cmds -e 1d";
16840 fi~
16841 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16842 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16843 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16844 emximp -o $lib $output_objdir/$libname.def'
16845 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16846 enable_shared_with_static_runtimes=yes
16847 ;;
16848
16849 interix[3-9]*)
16850 hardcode_direct=no
16851 hardcode_shlibpath_var=no
16852 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16853 export_dynamic_flag_spec='$wl-E'
16854 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16855 # Instead, shared libraries are loaded at an image base (0x10000000 by
16856 # default) and relocated if they conflict, which is a slow very memory
16857 # consuming and fragmenting process. To avoid this, we pick a random,
16858 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16859 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16860 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16861 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'
16862 ;;
16863
16864 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16865 tmp_diet=no
16866 if test linux-dietlibc = "$host_os"; then
16867 case $cc_basename in
16868 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16869 esac
16870 fi
16871 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16872 && test no = "$tmp_diet"
16873 then
16874 tmp_addflag=' $pic_flag'
16875 tmp_sharedflag='-shared'
16876 case $cc_basename,$host_cpu in
16877 pgcc*) # Portland Group C compiler
16878 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'
16879 tmp_addflag=' $pic_flag'
16880 ;;
16881 pgf77* | pgf90* | pgf95* | pgfortran*)
16882 # Portland Group f77 and f90 compilers
16883 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'
16884 tmp_addflag=' $pic_flag -Mnomain' ;;
16885 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16886 tmp_addflag=' -i_dynamic' ;;
16887 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16888 tmp_addflag=' -i_dynamic -nofor_main' ;;
16889 ifc* | ifort*) # Intel Fortran compiler
16890 tmp_addflag=' -nofor_main' ;;
16891 lf95*) # Lahey Fortran 8.1
16892 whole_archive_flag_spec=
16893 tmp_sharedflag='--shared' ;;
16894 nagfor*) # NAGFOR 5.3
16895 tmp_sharedflag='-Wl,-shared' ;;
16896 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16897 tmp_sharedflag='-qmkshrobj'
16898 tmp_addflag= ;;
16899 nvcc*) # Cuda Compiler Driver 2.2
16900 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'
16901 compiler_needs_object=yes
16902 ;;
16903 esac
16904 case `$CC -V 2>&1 | sed 5q` in
16905 *Sun\ C*) # Sun C 5.9
16906 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'
16907 compiler_needs_object=yes
16908 tmp_sharedflag='-G' ;;
16909 *Sun\ F*) # Sun Fortran 8.3
16910 tmp_sharedflag='-G' ;;
16911 esac
16912 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16913
16914 if test yes = "$supports_anon_versioning"; then
16915 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16916 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16917 echo "local: *; };" >> $output_objdir/$libname.ver~
16918 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16919 fi
16920
16921 case $cc_basename in
16922 tcc*)
16923 export_dynamic_flag_spec='-rdynamic'
16924 ;;
16925 xlf* | bgf* | bgxlf* | mpixlf*)
16926 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16927 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16928 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16929 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16930 if test yes = "$supports_anon_versioning"; then
16931 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16932 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16933 echo "local: *; };" >> $output_objdir/$libname.ver~
16934 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16935 fi
16936 ;;
16937 esac
16938 else
16939 ld_shlibs=no
16940 fi
16941 ;;
16942
16943 netbsd*)
16944 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16945 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16946 wlarc=
16947 else
16948 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16949 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16950 fi
16951 ;;
16952
16953 solaris*)
16954 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16955 ld_shlibs=no
16956 cat <<_LT_EOF 1>&2
16957
16958 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16959 *** create shared libraries on Solaris systems. Therefore, libtool
16960 *** is disabling shared libraries support. We urge you to upgrade GNU
16961 *** binutils to release 2.9.1 or newer. Another option is to modify
16962 *** your PATH or compiler configuration so that the native linker is
16963 *** used, and then restart.
16964
16965 _LT_EOF
16966 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16967 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16968 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16969 else
16970 ld_shlibs=no
16971 fi
16972 ;;
16973
16974 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16975 case `$LD -v 2>&1` in
16976 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16977 ld_shlibs=no
16978 cat <<_LT_EOF 1>&2
16979
16980 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16981 *** reliably create shared libraries on SCO systems. Therefore, libtool
16982 *** is disabling shared libraries support. We urge you to upgrade GNU
16983 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16984 *** your PATH or compiler configuration so that the native linker is
16985 *** used, and then restart.
16986
16987 _LT_EOF
16988 ;;
16989 *)
16990 # For security reasons, it is highly recommended that you always
16991 # use absolute paths for naming shared libraries, and exclude the
16992 # DT_RUNPATH tag from executables and libraries. But doing so
16993 # requires that you compile everything twice, which is a pain.
16994 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16995 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16997 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16998 else
16999 ld_shlibs=no
17000 fi
17001 ;;
17002 esac
17003 ;;
17004
17005 sunos4*)
17006 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17007 wlarc=
17008 hardcode_direct=yes
17009 hardcode_shlibpath_var=no
17010 ;;
17011
17012 *)
17013 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17014 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17015 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17016 else
17017 ld_shlibs=no
17018 fi
17019 ;;
17020 esac
17021
17022 if test no = "$ld_shlibs"; then
17023 runpath_var=
17024 hardcode_libdir_flag_spec=
17025 export_dynamic_flag_spec=
17026 whole_archive_flag_spec=
17027 fi
17028 else
17029 # PORTME fill in a description of your system's linker (not GNU ld)
17030 case $host_os in
17031 aix3*)
17032 allow_undefined_flag=unsupported
17033 always_export_symbols=yes
17034 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'
17035 # Note: this linker hardcodes the directories in LIBPATH if there
17036 # are no directories specified by -L.
17037 hardcode_minus_L=yes
17038 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
17039 # Neither direct hardcoding nor static linking is supported with a
17040 # broken collect2.
17041 hardcode_direct=unsupported
17042 fi
17043 ;;
17044
17045 aix[4-9]*)
17046 if test ia64 = "$host_cpu"; then
17047 # On IA64, the linker does run time linking by default, so we don't
17048 # have to do anything special.
17049 aix_use_runtimelinking=no
17050 exp_sym_flag='-Bexport'
17051 no_entry_flag=
17052 else
17053 # If we're using GNU nm, then we don't want the "-C" option.
17054 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17055 # Without the "-l" option, or with the "-B" option, AIX nm treats
17056 # weak defined symbols like other global defined symbols, whereas
17057 # GNU nm marks them as "W".
17058 # While the 'weak' keyword is ignored in the Export File, we need
17059 # it in the Import File for the 'aix-soname' feature, so we have
17060 # to replace the "-B" option with "-P" for AIX nm.
17061 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17062 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
17063 else
17064 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
17065 fi
17066 aix_use_runtimelinking=no
17067
17068 # Test if we are trying to use run time linking or normal
17069 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17070 # have runtime linking enabled, and use it for executables.
17071 # For shared libraries, we enable/disable runtime linking
17072 # depending on the kind of the shared library created -
17073 # when "with_aix_soname,aix_use_runtimelinking" is:
17074 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
17075 # "aix,yes" lib.so shared, rtl:yes, for executables
17076 # lib.a static archive
17077 # "both,no" lib.so.V(shr.o) shared, rtl:yes
17078 # lib.a(lib.so.V) shared, rtl:no, for executables
17079 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
17080 # lib.a(lib.so.V) shared, rtl:no
17081 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
17082 # lib.a static archive
17083 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17084 for ld_flag in $LDFLAGS; do
17085 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
17086 aix_use_runtimelinking=yes
17087 break
17088 fi
17089 done
17090 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
17091 # With aix-soname=svr4, we create the lib.so.V shared archives only,
17092 # so we don't have lib.a shared libs to link our executables.
17093 # We have to force runtime linking in this case.
17094 aix_use_runtimelinking=yes
17095 LDFLAGS="$LDFLAGS -Wl,-brtl"
17096 fi
17097 ;;
17098 esac
17099
17100 exp_sym_flag='-bexport'
17101 no_entry_flag='-bnoentry'
17102 fi
17103
17104 # When large executables or shared objects are built, AIX ld can
17105 # have problems creating the table of contents. If linking a library
17106 # or program results in "error TOC overflow" add -mminimal-toc to
17107 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17108 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17109
17110 archive_cmds=''
17111 hardcode_direct=yes
17112 hardcode_direct_absolute=yes
17113 hardcode_libdir_separator=':'
17114 link_all_deplibs=yes
17115 file_list_spec='$wl-f,'
17116 case $with_aix_soname,$aix_use_runtimelinking in
17117 aix,*) ;; # traditional, no import file
17118 svr4,* | *,yes) # use import file
17119 # The Import File defines what to hardcode.
17120 hardcode_direct=no
17121 hardcode_direct_absolute=no
17122 ;;
17123 esac
17124
17125 if test yes = "$GCC"; then
17126 case $host_os in aix4.[012]|aix4.[012].*)
17127 # We only want to do this on AIX 4.2 and lower, the check
17128 # below for broken collect2 doesn't work under 4.3+
17129 collect2name=`$CC -print-prog-name=collect2`
17130 if test -f "$collect2name" &&
17131 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17132 then
17133 # We have reworked collect2
17134 :
17135 else
17136 # We have old collect2
17137 hardcode_direct=unsupported
17138 # It fails to find uninstalled libraries when the uninstalled
17139 # path is not listed in the libpath. Setting hardcode_minus_L
17140 # to unsupported forces relinking
17141 hardcode_minus_L=yes
17142 hardcode_libdir_flag_spec='-L$libdir'
17143 hardcode_libdir_separator=
17144 fi
17145 ;;
17146 esac
17147 shared_flag='-shared'
17148 if test yes = "$aix_use_runtimelinking"; then
17149 shared_flag="$shared_flag "'$wl-G'
17150 fi
17151 # Need to ensure runtime linking is disabled for the traditional
17152 # shared library, or the linker may eventually find shared libraries
17153 # /with/ Import File - we do not want to mix them.
17154 shared_flag_aix='-shared'
17155 shared_flag_svr4='-shared $wl-G'
17156 else
17157 # not using gcc
17158 if test ia64 = "$host_cpu"; then
17159 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17160 # chokes on -Wl,-G. The following line is correct:
17161 shared_flag='-G'
17162 else
17163 if test yes = "$aix_use_runtimelinking"; then
17164 shared_flag='$wl-G'
17165 else
17166 shared_flag='$wl-bM:SRE'
17167 fi
17168 shared_flag_aix='$wl-bM:SRE'
17169 shared_flag_svr4='$wl-G'
17170 fi
17171 fi
17172
17173 export_dynamic_flag_spec='$wl-bexpall'
17174 # It seems that -bexpall does not export symbols beginning with
17175 # underscore (_), so it is better to generate a list of symbols to export.
17176 always_export_symbols=yes
17177 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
17178 # Warning - without using the other runtime loading flags (-brtl),
17179 # -berok will link without error, but may produce a broken library.
17180 allow_undefined_flag='-berok'
17181 # Determine the default libpath from the value encoded in an
17182 # empty executable.
17183 if test set = "${lt_cv_aix_libpath+set}"; then
17184 aix_libpath=$lt_cv_aix_libpath
17185 else
17186 if ${lt_cv_aix_libpath_+:} false; then :
17187 $as_echo_n "(cached) " >&6
17188 else
17189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17190 /* end confdefs.h. */
17191
17192 int
17193 main ()
17194 {
17195
17196 ;
17197 return 0;
17198 }
17199 _ACEOF
17200 if ac_fn_c_try_link "$LINENO"; then :
17201
17202 lt_aix_libpath_sed='
17203 /Import File Strings/,/^$/ {
17204 /^0/ {
17205 s/^0 *\([^ ]*\) *$/\1/
17206 p
17207 }
17208 }'
17209 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17210 # Check for a 64-bit object if we didn't find anything.
17211 if test -z "$lt_cv_aix_libpath_"; then
17212 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17213 fi
17214 fi
17215 rm -f core conftest.err conftest.$ac_objext \
17216 conftest$ac_exeext conftest.$ac_ext
17217 if test -z "$lt_cv_aix_libpath_"; then
17218 lt_cv_aix_libpath_=/usr/lib:/lib
17219 fi
17220
17221 fi
17222
17223 aix_libpath=$lt_cv_aix_libpath_
17224 fi
17225
17226 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17227 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
17228 else
17229 if test ia64 = "$host_cpu"; then
17230 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
17231 allow_undefined_flag="-z nodefs"
17232 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"
17233 else
17234 # Determine the default libpath from the value encoded in an
17235 # empty executable.
17236 if test set = "${lt_cv_aix_libpath+set}"; then
17237 aix_libpath=$lt_cv_aix_libpath
17238 else
17239 if ${lt_cv_aix_libpath_+:} false; then :
17240 $as_echo_n "(cached) " >&6
17241 else
17242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17243 /* end confdefs.h. */
17244
17245 int
17246 main ()
17247 {
17248
17249 ;
17250 return 0;
17251 }
17252 _ACEOF
17253 if ac_fn_c_try_link "$LINENO"; then :
17254
17255 lt_aix_libpath_sed='
17256 /Import File Strings/,/^$/ {
17257 /^0/ {
17258 s/^0 *\([^ ]*\) *$/\1/
17259 p
17260 }
17261 }'
17262 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17263 # Check for a 64-bit object if we didn't find anything.
17264 if test -z "$lt_cv_aix_libpath_"; then
17265 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17266 fi
17267 fi
17268 rm -f core conftest.err conftest.$ac_objext \
17269 conftest$ac_exeext conftest.$ac_ext
17270 if test -z "$lt_cv_aix_libpath_"; then
17271 lt_cv_aix_libpath_=/usr/lib:/lib
17272 fi
17273
17274 fi
17275
17276 aix_libpath=$lt_cv_aix_libpath_
17277 fi
17278
17279 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17280 # Warning - without using the other run time loading flags,
17281 # -berok will link without error, but may produce a broken library.
17282 no_undefined_flag=' $wl-bernotok'
17283 allow_undefined_flag=' $wl-berok'
17284 if test yes = "$with_gnu_ld"; then
17285 # We only use this code for GNU lds that support --whole-archive.
17286 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
17287 else
17288 # Exported symbols can be pulled into shared objects from archives
17289 whole_archive_flag_spec='$convenience'
17290 fi
17291 archive_cmds_need_lc=yes
17292 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17293 # -brtl affects multiple linker settings, -berok does not and is overridden later
17294 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17295 if test svr4 != "$with_aix_soname"; then
17296 # This is similar to how AIX traditionally builds its shared libraries.
17297 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
17298 fi
17299 if test aix != "$with_aix_soname"; then
17300 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
17301 else
17302 # used by -dlpreopen to get the symbols
17303 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
17304 fi
17305 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
17306 fi
17307 fi
17308 ;;
17309
17310 amigaos*)
17311 case $host_cpu in
17312 powerpc)
17313 # see comment about AmigaOS4 .so support
17314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17315 archive_expsym_cmds=''
17316 ;;
17317 m68k)
17318 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)'
17319 hardcode_libdir_flag_spec='-L$libdir'
17320 hardcode_minus_L=yes
17321 ;;
17322 esac
17323 ;;
17324
17325 bsdi[45]*)
17326 export_dynamic_flag_spec=-rdynamic
17327 ;;
17328
17329 cygwin* | mingw* | pw32* | cegcc*)
17330 # When not using gcc, we currently assume that we are using
17331 # Microsoft Visual C++.
17332 # hardcode_libdir_flag_spec is actually meaningless, as there is
17333 # no search path for DLLs.
17334 case $cc_basename in
17335 cl*)
17336 # Native MSVC
17337 hardcode_libdir_flag_spec=' '
17338 allow_undefined_flag=unsupported
17339 always_export_symbols=yes
17340 file_list_spec='@'
17341 # Tell ltmain to make .lib files, not .a files.
17342 libext=lib
17343 # Tell ltmain to make .dll files, not .so files.
17344 shrext_cmds=.dll
17345 # FIXME: Setting linknames here is a bad hack.
17346 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17347 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17348 cp "$export_symbols" "$output_objdir/$soname.def";
17349 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17350 else
17351 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17352 fi~
17353 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17354 linknames='
17355 # The linker will not automatically build a static lib if we build a DLL.
17356 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
17357 enable_shared_with_static_runtimes=yes
17358 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17359 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17360 # Don't use ranlib
17361 old_postinstall_cmds='chmod 644 $oldlib'
17362 postlink_cmds='lt_outputfile="@OUTPUT@"~
17363 lt_tool_outputfile="@TOOL_OUTPUT@"~
17364 case $lt_outputfile in
17365 *.exe|*.EXE) ;;
17366 *)
17367 lt_outputfile=$lt_outputfile.exe
17368 lt_tool_outputfile=$lt_tool_outputfile.exe
17369 ;;
17370 esac~
17371 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17372 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17373 $RM "$lt_outputfile.manifest";
17374 fi'
17375 ;;
17376 *)
17377 # Assume MSVC wrapper
17378 hardcode_libdir_flag_spec=' '
17379 allow_undefined_flag=unsupported
17380 # Tell ltmain to make .lib files, not .a files.
17381 libext=lib
17382 # Tell ltmain to make .dll files, not .so files.
17383 shrext_cmds=.dll
17384 # FIXME: Setting linknames here is a bad hack.
17385 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17386 # The linker will automatically build a .lib file if we build a DLL.
17387 old_archive_from_new_cmds='true'
17388 # FIXME: Should let the user specify the lib program.
17389 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17390 enable_shared_with_static_runtimes=yes
17391 ;;
17392 esac
17393 ;;
17394
17395 darwin* | rhapsody*)
17396
17397
17398 archive_cmds_need_lc=no
17399 hardcode_direct=no
17400 hardcode_automatic=yes
17401 hardcode_shlibpath_var=unsupported
17402 if test yes = "$lt_cv_ld_force_load"; then
17403 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\"`'
17404
17405 else
17406 whole_archive_flag_spec=''
17407 fi
17408 link_all_deplibs=yes
17409 allow_undefined_flag=$_lt_dar_allow_undefined
17410 case $cc_basename in
17411 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17412 *) _lt_dar_can_shared=$GCC ;;
17413 esac
17414 if test yes = "$_lt_dar_can_shared"; then
17415 output_verbose_link_cmd=func_echo_all
17416 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
17417 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17418 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"
17419 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"
17420
17421 else
17422 ld_shlibs=no
17423 fi
17424
17425 ;;
17426
17427 dgux*)
17428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17429 hardcode_libdir_flag_spec='-L$libdir'
17430 hardcode_shlibpath_var=no
17431 ;;
17432
17433 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17434 # support. Future versions do this automatically, but an explicit c++rt0.o
17435 # does not break anything, and helps significantly (at the cost of a little
17436 # extra space).
17437 freebsd2.2*)
17438 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17439 hardcode_libdir_flag_spec='-R$libdir'
17440 hardcode_direct=yes
17441 hardcode_shlibpath_var=no
17442 ;;
17443
17444 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17445 freebsd2.*)
17446 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17447 hardcode_direct=yes
17448 hardcode_minus_L=yes
17449 hardcode_shlibpath_var=no
17450 ;;
17451
17452 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17453 freebsd* | dragonfly*)
17454 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17455 hardcode_libdir_flag_spec='-R$libdir'
17456 hardcode_direct=yes
17457 hardcode_shlibpath_var=no
17458 ;;
17459
17460 hpux9*)
17461 if test yes = "$GCC"; then
17462 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17463 else
17464 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17465 fi
17466 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17467 hardcode_libdir_separator=:
17468 hardcode_direct=yes
17469
17470 # hardcode_minus_L: Not really in the search PATH,
17471 # but as the default location of the library.
17472 hardcode_minus_L=yes
17473 export_dynamic_flag_spec='$wl-E'
17474 ;;
17475
17476 hpux10*)
17477 if test yes,no = "$GCC,$with_gnu_ld"; then
17478 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17479 else
17480 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17481 fi
17482 if test no = "$with_gnu_ld"; then
17483 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17484 hardcode_libdir_separator=:
17485 hardcode_direct=yes
17486 hardcode_direct_absolute=yes
17487 export_dynamic_flag_spec='$wl-E'
17488 # hardcode_minus_L: Not really in the search PATH,
17489 # but as the default location of the library.
17490 hardcode_minus_L=yes
17491 fi
17492 ;;
17493
17494 hpux11*)
17495 if test yes,no = "$GCC,$with_gnu_ld"; then
17496 case $host_cpu in
17497 hppa*64*)
17498 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17499 ;;
17500 ia64*)
17501 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17502 ;;
17503 *)
17504 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17505 ;;
17506 esac
17507 else
17508 case $host_cpu in
17509 hppa*64*)
17510 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17511 ;;
17512 ia64*)
17513 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17514 ;;
17515 *)
17516
17517 # Older versions of the 11.00 compiler do not understand -b yet
17518 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17520 $as_echo_n "checking if $CC understands -b... " >&6; }
17521 if ${lt_cv_prog_compiler__b+:} false; then :
17522 $as_echo_n "(cached) " >&6
17523 else
17524 lt_cv_prog_compiler__b=no
17525 save_LDFLAGS=$LDFLAGS
17526 LDFLAGS="$LDFLAGS -b"
17527 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17528 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17529 # The linker can only warn and ignore the option if not recognized
17530 # So say no if there are warnings
17531 if test -s conftest.err; then
17532 # Append any errors to the config.log.
17533 cat conftest.err 1>&5
17534 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17536 if diff conftest.exp conftest.er2 >/dev/null; then
17537 lt_cv_prog_compiler__b=yes
17538 fi
17539 else
17540 lt_cv_prog_compiler__b=yes
17541 fi
17542 fi
17543 $RM -r conftest*
17544 LDFLAGS=$save_LDFLAGS
17545
17546 fi
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17548 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17549
17550 if test yes = "$lt_cv_prog_compiler__b"; then
17551 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17552 else
17553 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17554 fi
17555
17556 ;;
17557 esac
17558 fi
17559 if test no = "$with_gnu_ld"; then
17560 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17561 hardcode_libdir_separator=:
17562
17563 case $host_cpu in
17564 hppa*64*|ia64*)
17565 hardcode_direct=no
17566 hardcode_shlibpath_var=no
17567 ;;
17568 *)
17569 hardcode_direct=yes
17570 hardcode_direct_absolute=yes
17571 export_dynamic_flag_spec='$wl-E'
17572
17573 # hardcode_minus_L: Not really in the search PATH,
17574 # but as the default location of the library.
17575 hardcode_minus_L=yes
17576 ;;
17577 esac
17578 fi
17579 ;;
17580
17581 irix5* | irix6* | nonstopux*)
17582 if test yes = "$GCC"; then
17583 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'
17584 # Try to use the -exported_symbol ld option, if it does not
17585 # work, assume that -exports_file does not work either and
17586 # implicitly export all symbols.
17587 # This should be the same for all languages, so no per-tag cache variable.
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17589 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17590 if ${lt_cv_irix_exported_symbol+:} false; then :
17591 $as_echo_n "(cached) " >&6
17592 else
17593 save_LDFLAGS=$LDFLAGS
17594 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17596 /* end confdefs.h. */
17597 int foo (void) { return 0; }
17598 _ACEOF
17599 if ac_fn_c_try_link "$LINENO"; then :
17600 lt_cv_irix_exported_symbol=yes
17601 else
17602 lt_cv_irix_exported_symbol=no
17603 fi
17604 rm -f core conftest.err conftest.$ac_objext \
17605 conftest$ac_exeext conftest.$ac_ext
17606 LDFLAGS=$save_LDFLAGS
17607 fi
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17609 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
17610 if test yes = "$lt_cv_irix_exported_symbol"; then
17611 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'
17612 fi
17613 else
17614 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'
17615 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'
17616 fi
17617 archive_cmds_need_lc='no'
17618 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17619 hardcode_libdir_separator=:
17620 inherit_rpath=yes
17621 link_all_deplibs=yes
17622 ;;
17623
17624 linux*)
17625 case $cc_basename in
17626 tcc*)
17627 # Fabrice Bellard et al's Tiny C Compiler
17628 ld_shlibs=yes
17629 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17630 ;;
17631 esac
17632 ;;
17633
17634 netbsd*)
17635 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17637 else
17638 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17639 fi
17640 hardcode_libdir_flag_spec='-R$libdir'
17641 hardcode_direct=yes
17642 hardcode_shlibpath_var=no
17643 ;;
17644
17645 newsos6)
17646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17647 hardcode_direct=yes
17648 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17649 hardcode_libdir_separator=:
17650 hardcode_shlibpath_var=no
17651 ;;
17652
17653 *nto* | *qnx*)
17654 ;;
17655
17656 openbsd* | bitrig*)
17657 if test -f /usr/libexec/ld.so; then
17658 hardcode_direct=yes
17659 hardcode_shlibpath_var=no
17660 hardcode_direct_absolute=yes
17661 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17662 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17663 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17664 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17665 export_dynamic_flag_spec='$wl-E'
17666 else
17667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17668 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17669 fi
17670 else
17671 ld_shlibs=no
17672 fi
17673 ;;
17674
17675 os2*)
17676 hardcode_libdir_flag_spec='-L$libdir'
17677 hardcode_minus_L=yes
17678 allow_undefined_flag=unsupported
17679 shrext_cmds=.dll
17680 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17681 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17682 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17683 $ECHO EXPORTS >> $output_objdir/$libname.def~
17684 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17685 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17686 emximp -o $lib $output_objdir/$libname.def'
17687 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17688 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17689 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17690 $ECHO EXPORTS >> $output_objdir/$libname.def~
17691 prefix_cmds="$SED"~
17692 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17693 prefix_cmds="$prefix_cmds -e 1d";
17694 fi~
17695 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17696 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17697 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17698 emximp -o $lib $output_objdir/$libname.def'
17699 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17700 enable_shared_with_static_runtimes=yes
17701 ;;
17702
17703 osf3*)
17704 if test yes = "$GCC"; then
17705 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17706 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'
17707 else
17708 allow_undefined_flag=' -expect_unresolved \*'
17709 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'
17710 fi
17711 archive_cmds_need_lc='no'
17712 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17713 hardcode_libdir_separator=:
17714 ;;
17715
17716 osf4* | osf5*) # as osf3* with the addition of -msym flag
17717 if test yes = "$GCC"; then
17718 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17719 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'
17720 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17721 else
17722 allow_undefined_flag=' -expect_unresolved \*'
17723 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'
17724 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~
17725 $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'
17726
17727 # Both c and cxx compiler support -rpath directly
17728 hardcode_libdir_flag_spec='-rpath $libdir'
17729 fi
17730 archive_cmds_need_lc='no'
17731 hardcode_libdir_separator=:
17732 ;;
17733
17734 solaris*)
17735 no_undefined_flag=' -z defs'
17736 if test yes = "$GCC"; then
17737 wlarc='$wl'
17738 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17739 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17740 $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'
17741 else
17742 case `$CC -V 2>&1` in
17743 *"Compilers 5.0"*)
17744 wlarc=''
17745 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17746 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17747 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17748 ;;
17749 *)
17750 wlarc='$wl'
17751 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17752 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17753 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17754 ;;
17755 esac
17756 fi
17757 hardcode_libdir_flag_spec='-R$libdir'
17758 hardcode_shlibpath_var=no
17759 case $host_os in
17760 solaris2.[0-5] | solaris2.[0-5].*) ;;
17761 *)
17762 # The compiler driver will combine and reorder linker options,
17763 # but understands '-z linker_flag'. GCC discards it without '$wl',
17764 # but is careful enough not to reorder.
17765 # Supported since Solaris 2.6 (maybe 2.5.1?)
17766 if test yes = "$GCC"; then
17767 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17768 else
17769 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17770 fi
17771 ;;
17772 esac
17773 link_all_deplibs=yes
17774 ;;
17775
17776 sunos4*)
17777 if test sequent = "$host_vendor"; then
17778 # Use $CC to link under sequent, because it throws in some extra .o
17779 # files that make .init and .fini sections work.
17780 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17781 else
17782 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17783 fi
17784 hardcode_libdir_flag_spec='-L$libdir'
17785 hardcode_direct=yes
17786 hardcode_minus_L=yes
17787 hardcode_shlibpath_var=no
17788 ;;
17789
17790 sysv4)
17791 case $host_vendor in
17792 sni)
17793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17794 hardcode_direct=yes # is this really true???
17795 ;;
17796 siemens)
17797 ## LD is ld it makes a PLAMLIB
17798 ## CC just makes a GrossModule.
17799 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17800 reload_cmds='$CC -r -o $output$reload_objs'
17801 hardcode_direct=no
17802 ;;
17803 motorola)
17804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17805 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17806 ;;
17807 esac
17808 runpath_var='LD_RUN_PATH'
17809 hardcode_shlibpath_var=no
17810 ;;
17811
17812 sysv4.3*)
17813 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17814 hardcode_shlibpath_var=no
17815 export_dynamic_flag_spec='-Bexport'
17816 ;;
17817
17818 sysv4*MP*)
17819 if test -d /usr/nec; then
17820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17821 hardcode_shlibpath_var=no
17822 runpath_var=LD_RUN_PATH
17823 hardcode_runpath_var=yes
17824 ld_shlibs=yes
17825 fi
17826 ;;
17827
17828 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17829 no_undefined_flag='$wl-z,text'
17830 archive_cmds_need_lc=no
17831 hardcode_shlibpath_var=no
17832 runpath_var='LD_RUN_PATH'
17833
17834 if test yes = "$GCC"; then
17835 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17836 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17837 else
17838 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17839 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17840 fi
17841 ;;
17842
17843 sysv5* | sco3.2v5* | sco5v6*)
17844 # Note: We CANNOT use -z defs as we might desire, because we do not
17845 # link with -lc, and that would cause any symbols used from libc to
17846 # always be unresolved, which means just about no library would
17847 # ever link correctly. If we're not using GNU ld we use -z text
17848 # though, which does catch some bad symbols but isn't as heavy-handed
17849 # as -z defs.
17850 no_undefined_flag='$wl-z,text'
17851 allow_undefined_flag='$wl-z,nodefs'
17852 archive_cmds_need_lc=no
17853 hardcode_shlibpath_var=no
17854 hardcode_libdir_flag_spec='$wl-R,$libdir'
17855 hardcode_libdir_separator=':'
17856 link_all_deplibs=yes
17857 export_dynamic_flag_spec='$wl-Bexport'
17858 runpath_var='LD_RUN_PATH'
17859
17860 if test yes = "$GCC"; then
17861 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17862 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17863 else
17864 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17865 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17866 fi
17867 ;;
17868
17869 uts4*)
17870 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17871 hardcode_libdir_flag_spec='-L$libdir'
17872 hardcode_shlibpath_var=no
17873 ;;
17874
17875 *)
17876 ld_shlibs=no
17877 ;;
17878 esac
17879
17880 if test sni = "$host_vendor"; then
17881 case $host in
17882 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17883 export_dynamic_flag_spec='$wl-Blargedynsym'
17884 ;;
17885 esac
17886 fi
17887 fi
17888
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17890 $as_echo "$ld_shlibs" >&6; }
17891 test no = "$ld_shlibs" && can_build_shared=no
17892
17893 with_gnu_ld=$with_gnu_ld
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909 #
17910 # Do we need to explicitly link libc?
17911 #
17912 case "x$archive_cmds_need_lc" in
17913 x|xyes)
17914 # Assume -lc should be added
17915 archive_cmds_need_lc=yes
17916
17917 if test yes,yes = "$GCC,$enable_shared"; then
17918 case $archive_cmds in
17919 *'~'*)
17920 # FIXME: we may have to deal with multi-command sequences.
17921 ;;
17922 '$CC '*)
17923 # Test whether the compiler implicitly links with -lc since on some
17924 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17925 # to ld, don't add -lc before -lgcc.
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17927 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17928 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17929 $as_echo_n "(cached) " >&6
17930 else
17931 $RM conftest*
17932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17933
17934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17935 (eval $ac_compile) 2>&5
17936 ac_status=$?
17937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17938 test $ac_status = 0; } 2>conftest.err; then
17939 soname=conftest
17940 lib=conftest
17941 libobjs=conftest.$ac_objext
17942 deplibs=
17943 wl=$lt_prog_compiler_wl
17944 pic_flag=$lt_prog_compiler_pic
17945 compiler_flags=-v
17946 linker_flags=-v
17947 verstring=
17948 output_objdir=.
17949 libname=conftest
17950 lt_save_allow_undefined_flag=$allow_undefined_flag
17951 allow_undefined_flag=
17952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17953 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17954 ac_status=$?
17955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17956 test $ac_status = 0; }
17957 then
17958 lt_cv_archive_cmds_need_lc=no
17959 else
17960 lt_cv_archive_cmds_need_lc=yes
17961 fi
17962 allow_undefined_flag=$lt_save_allow_undefined_flag
17963 else
17964 cat conftest.err 1>&5
17965 fi
17966 $RM conftest*
17967
17968 fi
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17970 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17971 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17972 ;;
17973 esac
17974 fi
17975 ;;
17976 esac
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
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
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18130 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18131
18132 if test yes = "$GCC"; then
18133 case $host_os in
18134 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
18135 *) lt_awk_arg='/^libraries:/' ;;
18136 esac
18137 case $host_os in
18138 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
18139 *) lt_sed_strip_eq='s|=/|/|g' ;;
18140 esac
18141 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18142 case $lt_search_path_spec in
18143 *\;*)
18144 # if the path contains ";" then we assume it to be the separator
18145 # otherwise default to the standard path separator (i.e. ":") - it is
18146 # assumed that no part of a normal pathname contains ";" but that should
18147 # okay in the real world where ";" in dirpaths is itself problematic.
18148 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18149 ;;
18150 *)
18151 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18152 ;;
18153 esac
18154 # Ok, now we have the path, separated by spaces, we can step through it
18155 # and add multilib dir if necessary...
18156 lt_tmp_lt_search_path_spec=
18157 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18158 # ...but if some path component already ends with the multilib dir we assume
18159 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
18160 case "$lt_multi_os_dir; $lt_search_path_spec " in
18161 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
18162 lt_multi_os_dir=
18163 ;;
18164 esac
18165 for lt_sys_path in $lt_search_path_spec; do
18166 if test -d "$lt_sys_path$lt_multi_os_dir"; then
18167 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
18168 elif test -n "$lt_multi_os_dir"; then
18169 test -d "$lt_sys_path" && \
18170 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18171 fi
18172 done
18173 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18174 BEGIN {RS = " "; FS = "/|\n";} {
18175 lt_foo = "";
18176 lt_count = 0;
18177 for (lt_i = NF; lt_i > 0; lt_i--) {
18178 if ($lt_i != "" && $lt_i != ".") {
18179 if ($lt_i == "..") {
18180 lt_count++;
18181 } else {
18182 if (lt_count == 0) {
18183 lt_foo = "/" $lt_i lt_foo;
18184 } else {
18185 lt_count--;
18186 }
18187 }
18188 }
18189 }
18190 if (lt_foo != "") { lt_freq[lt_foo]++; }
18191 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18192 }'`
18193 # AWK program above erroneously prepends '/' to C:/dos/paths
18194 # for these hosts.
18195 case $host_os in
18196 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18197 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
18198 esac
18199 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18200 else
18201 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18202 fi
18203 library_names_spec=
18204 libname_spec='lib$name'
18205 soname_spec=
18206 shrext_cmds=.so
18207 postinstall_cmds=
18208 postuninstall_cmds=
18209 finish_cmds=
18210 finish_eval=
18211 shlibpath_var=
18212 shlibpath_overrides_runpath=unknown
18213 version_type=none
18214 dynamic_linker="$host_os ld.so"
18215 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18216 need_lib_prefix=unknown
18217 hardcode_into_libs=no
18218
18219 # when you set need_version to no, make sure it does not cause -set_version
18220 # flags to be left without arguments
18221 need_version=unknown
18222
18223
18224
18225 case $host_os in
18226 aix3*)
18227 version_type=linux # correct to gnu/linux during the next big refactor
18228 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18229 shlibpath_var=LIBPATH
18230
18231 # AIX 3 has no versioning support, so we append a major version to the name.
18232 soname_spec='$libname$release$shared_ext$major'
18233 ;;
18234
18235 aix[4-9]*)
18236 version_type=linux # correct to gnu/linux during the next big refactor
18237 need_lib_prefix=no
18238 need_version=no
18239 hardcode_into_libs=yes
18240 if test ia64 = "$host_cpu"; then
18241 # AIX 5 supports IA64
18242 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18243 shlibpath_var=LD_LIBRARY_PATH
18244 else
18245 # With GCC up to 2.95.x, collect2 would create an import file
18246 # for dependence libraries. The import file would start with
18247 # the line '#! .'. This would cause the generated library to
18248 # depend on '.', always an invalid library. This was fixed in
18249 # development snapshots of GCC prior to 3.0.
18250 case $host_os in
18251 aix4 | aix4.[01] | aix4.[01].*)
18252 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18253 echo ' yes '
18254 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18255 :
18256 else
18257 can_build_shared=no
18258 fi
18259 ;;
18260 esac
18261 # Using Import Files as archive members, it is possible to support
18262 # filename-based versioning of shared library archives on AIX. While
18263 # this would work for both with and without runtime linking, it will
18264 # prevent static linking of such archives. So we do filename-based
18265 # shared library versioning with .so extension only, which is used
18266 # when both runtime linking and shared linking is enabled.
18267 # Unfortunately, runtime linking may impact performance, so we do
18268 # not want this to be the default eventually. Also, we use the
18269 # versioned .so libs for executables only if there is the -brtl
18270 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18271 # To allow for filename-based versioning support, we need to create
18272 # libNAME.so.V as an archive file, containing:
18273 # *) an Import File, referring to the versioned filename of the
18274 # archive as well as the shared archive member, telling the
18275 # bitwidth (32 or 64) of that shared object, and providing the
18276 # list of exported symbols of that shared object, eventually
18277 # decorated with the 'weak' keyword
18278 # *) the shared object with the F_LOADONLY flag set, to really avoid
18279 # it being seen by the linker.
18280 # At run time we better use the real file rather than another symlink,
18281 # but for link time we create the symlink libNAME.so -> libNAME.so.V
18282
18283 case $with_aix_soname,$aix_use_runtimelinking in
18284 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18285 # soname into executable. Probably we can add versioning support to
18286 # collect2, so additional links can be useful in future.
18287 aix,yes) # traditional libtool
18288 dynamic_linker='AIX unversionable lib.so'
18289 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18290 # instead of lib<name>.a to let people know that these are not
18291 # typical AIX shared libraries.
18292 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18293 ;;
18294 aix,no) # traditional AIX only
18295 dynamic_linker='AIX lib.a(lib.so.V)'
18296 # We preserve .a as extension for shared libraries through AIX4.2
18297 # and later when we are not doing run time linking.
18298 library_names_spec='$libname$release.a $libname.a'
18299 soname_spec='$libname$release$shared_ext$major'
18300 ;;
18301 svr4,*) # full svr4 only
18302 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18303 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18304 # We do not specify a path in Import Files, so LIBPATH fires.
18305 shlibpath_overrides_runpath=yes
18306 ;;
18307 *,yes) # both, prefer svr4
18308 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18309 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18310 # unpreferred sharedlib libNAME.a needs extra handling
18311 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
18312 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
18313 # We do not specify a path in Import Files, so LIBPATH fires.
18314 shlibpath_overrides_runpath=yes
18315 ;;
18316 *,no) # both, prefer aix
18317 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18318 library_names_spec='$libname$release.a $libname.a'
18319 soname_spec='$libname$release$shared_ext$major'
18320 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18321 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
18322 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
18323 ;;
18324 esac
18325 shlibpath_var=LIBPATH
18326 fi
18327 ;;
18328
18329 amigaos*)
18330 case $host_cpu in
18331 powerpc)
18332 # Since July 2007 AmigaOS4 officially supports .so libraries.
18333 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18334 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18335 ;;
18336 m68k)
18337 library_names_spec='$libname.ixlibrary $libname.a'
18338 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18339 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
18340 ;;
18341 esac
18342 ;;
18343
18344 beos*)
18345 library_names_spec='$libname$shared_ext'
18346 dynamic_linker="$host_os ld.so"
18347 shlibpath_var=LIBRARY_PATH
18348 ;;
18349
18350 bsdi[45]*)
18351 version_type=linux # correct to gnu/linux during the next big refactor
18352 need_version=no
18353 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18354 soname_spec='$libname$release$shared_ext$major'
18355 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18356 shlibpath_var=LD_LIBRARY_PATH
18357 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18358 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18359 # the default ld.so.conf also contains /usr/contrib/lib and
18360 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18361 # libtool to hard-code these into programs
18362 ;;
18363
18364 cygwin* | mingw* | pw32* | cegcc*)
18365 version_type=windows
18366 shrext_cmds=.dll
18367 need_version=no
18368 need_lib_prefix=no
18369
18370 case $GCC,$cc_basename in
18371 yes,*)
18372 # gcc
18373 library_names_spec='$libname.dll.a'
18374 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18375 postinstall_cmds='base_file=`basename \$file`~
18376 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18377 dldir=$destdir/`dirname \$dlpath`~
18378 test -d \$dldir || mkdir -p \$dldir~
18379 $install_prog $dir/$dlname \$dldir/$dlname~
18380 chmod a+x \$dldir/$dlname~
18381 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18382 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18383 fi'
18384 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18385 dlpath=$dir/\$dldll~
18386 $RM \$dlpath'
18387 shlibpath_overrides_runpath=yes
18388
18389 case $host_os in
18390 cygwin*)
18391 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18392 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18393
18394 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18395 ;;
18396 mingw* | cegcc*)
18397 # MinGW DLLs use traditional 'lib' prefix
18398 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18399 ;;
18400 pw32*)
18401 # pw32 DLLs use 'pw' prefix rather than 'lib'
18402 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18403 ;;
18404 esac
18405 dynamic_linker='Win32 ld.exe'
18406 ;;
18407
18408 *,cl*)
18409 # Native MSVC
18410 libname_spec='$name'
18411 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18412 library_names_spec='$libname.dll.lib'
18413
18414 case $build_os in
18415 mingw*)
18416 sys_lib_search_path_spec=
18417 lt_save_ifs=$IFS
18418 IFS=';'
18419 for lt_path in $LIB
18420 do
18421 IFS=$lt_save_ifs
18422 # Let DOS variable expansion print the short 8.3 style file name.
18423 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18424 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18425 done
18426 IFS=$lt_save_ifs
18427 # Convert to MSYS style.
18428 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18429 ;;
18430 cygwin*)
18431 # Convert to unix form, then to dos form, then back to unix form
18432 # but this time dos style (no spaces!) so that the unix form looks
18433 # like /cygdrive/c/PROGRA~1:/cygdr...
18434 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18435 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18436 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18437 ;;
18438 *)
18439 sys_lib_search_path_spec=$LIB
18440 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18441 # It is most probably a Windows format PATH.
18442 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18443 else
18444 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18445 fi
18446 # FIXME: find the short name or the path components, as spaces are
18447 # common. (e.g. "Program Files" -> "PROGRA~1")
18448 ;;
18449 esac
18450
18451 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18452 postinstall_cmds='base_file=`basename \$file`~
18453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18454 dldir=$destdir/`dirname \$dlpath`~
18455 test -d \$dldir || mkdir -p \$dldir~
18456 $install_prog $dir/$dlname \$dldir/$dlname'
18457 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18458 dlpath=$dir/\$dldll~
18459 $RM \$dlpath'
18460 shlibpath_overrides_runpath=yes
18461 dynamic_linker='Win32 link.exe'
18462 ;;
18463
18464 *)
18465 # Assume MSVC wrapper
18466 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18467 dynamic_linker='Win32 ld.exe'
18468 ;;
18469 esac
18470 # FIXME: first we should search . and the directory the executable is in
18471 shlibpath_var=PATH
18472 ;;
18473
18474 darwin* | rhapsody*)
18475 dynamic_linker="$host_os dyld"
18476 version_type=darwin
18477 need_lib_prefix=no
18478 need_version=no
18479 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18480 soname_spec='$libname$release$major$shared_ext'
18481 shlibpath_overrides_runpath=yes
18482 shlibpath_var=DYLD_LIBRARY_PATH
18483 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18484
18485 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18486 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18487 ;;
18488
18489 dgux*)
18490 version_type=linux # correct to gnu/linux during the next big refactor
18491 need_lib_prefix=no
18492 need_version=no
18493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18494 soname_spec='$libname$release$shared_ext$major'
18495 shlibpath_var=LD_LIBRARY_PATH
18496 ;;
18497
18498 freebsd* | dragonfly*)
18499 # DragonFly does not have aout. When/if they implement a new
18500 # versioning mechanism, adjust this.
18501 if test -x /usr/bin/objformat; then
18502 objformat=`/usr/bin/objformat`
18503 else
18504 case $host_os in
18505 freebsd[23].*) objformat=aout ;;
18506 *) objformat=elf ;;
18507 esac
18508 fi
18509 version_type=freebsd-$objformat
18510 case $version_type in
18511 freebsd-elf*)
18512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18513 soname_spec='$libname$release$shared_ext$major'
18514 need_version=no
18515 need_lib_prefix=no
18516 ;;
18517 freebsd-*)
18518 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18519 need_version=yes
18520 ;;
18521 esac
18522 shlibpath_var=LD_LIBRARY_PATH
18523 case $host_os in
18524 freebsd2.*)
18525 shlibpath_overrides_runpath=yes
18526 ;;
18527 freebsd3.[01]* | freebsdelf3.[01]*)
18528 shlibpath_overrides_runpath=yes
18529 hardcode_into_libs=yes
18530 ;;
18531 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18532 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18533 shlibpath_overrides_runpath=no
18534 hardcode_into_libs=yes
18535 ;;
18536 *) # from 4.6 on, and DragonFly
18537 shlibpath_overrides_runpath=yes
18538 hardcode_into_libs=yes
18539 ;;
18540 esac
18541 ;;
18542
18543 haiku*)
18544 version_type=linux # correct to gnu/linux during the next big refactor
18545 need_lib_prefix=no
18546 need_version=no
18547 dynamic_linker="$host_os runtime_loader"
18548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18549 soname_spec='$libname$release$shared_ext$major'
18550 shlibpath_var=LIBRARY_PATH
18551 shlibpath_overrides_runpath=no
18552 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18553 hardcode_into_libs=yes
18554 ;;
18555
18556 hpux9* | hpux10* | hpux11*)
18557 # Give a soname corresponding to the major version so that dld.sl refuses to
18558 # link against other versions.
18559 version_type=sunos
18560 need_lib_prefix=no
18561 need_version=no
18562 case $host_cpu in
18563 ia64*)
18564 shrext_cmds='.so'
18565 hardcode_into_libs=yes
18566 dynamic_linker="$host_os dld.so"
18567 shlibpath_var=LD_LIBRARY_PATH
18568 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18569 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18570 soname_spec='$libname$release$shared_ext$major'
18571 if test 32 = "$HPUX_IA64_MODE"; then
18572 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18573 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18574 else
18575 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18576 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18577 fi
18578 ;;
18579 hppa*64*)
18580 shrext_cmds='.sl'
18581 hardcode_into_libs=yes
18582 dynamic_linker="$host_os dld.sl"
18583 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18584 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18585 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18586 soname_spec='$libname$release$shared_ext$major'
18587 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18588 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18589 ;;
18590 *)
18591 shrext_cmds='.sl'
18592 dynamic_linker="$host_os dld.sl"
18593 shlibpath_var=SHLIB_PATH
18594 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18596 soname_spec='$libname$release$shared_ext$major'
18597 ;;
18598 esac
18599 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18600 postinstall_cmds='chmod 555 $lib'
18601 # or fails outright, so override atomically:
18602 install_override_mode=555
18603 ;;
18604
18605 interix[3-9]*)
18606 version_type=linux # correct to gnu/linux during the next big refactor
18607 need_lib_prefix=no
18608 need_version=no
18609 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18610 soname_spec='$libname$release$shared_ext$major'
18611 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18612 shlibpath_var=LD_LIBRARY_PATH
18613 shlibpath_overrides_runpath=no
18614 hardcode_into_libs=yes
18615 ;;
18616
18617 irix5* | irix6* | nonstopux*)
18618 case $host_os in
18619 nonstopux*) version_type=nonstopux ;;
18620 *)
18621 if test yes = "$lt_cv_prog_gnu_ld"; then
18622 version_type=linux # correct to gnu/linux during the next big refactor
18623 else
18624 version_type=irix
18625 fi ;;
18626 esac
18627 need_lib_prefix=no
18628 need_version=no
18629 soname_spec='$libname$release$shared_ext$major'
18630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18631 case $host_os in
18632 irix5* | nonstopux*)
18633 libsuff= shlibsuff=
18634 ;;
18635 *)
18636 case $LD in # libtool.m4 will add one of these switches to LD
18637 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18638 libsuff= shlibsuff= libmagic=32-bit;;
18639 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18640 libsuff=32 shlibsuff=N32 libmagic=N32;;
18641 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18642 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18643 *) libsuff= shlibsuff= libmagic=never-match;;
18644 esac
18645 ;;
18646 esac
18647 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18648 shlibpath_overrides_runpath=no
18649 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18650 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18651 hardcode_into_libs=yes
18652 ;;
18653
18654 # No shared lib support for Linux oldld, aout, or coff.
18655 linux*oldld* | linux*aout* | linux*coff*)
18656 dynamic_linker=no
18657 ;;
18658
18659 linux*android*)
18660 version_type=none # Android doesn't support versioned libraries.
18661 need_lib_prefix=no
18662 need_version=no
18663 library_names_spec='$libname$release$shared_ext'
18664 soname_spec='$libname$release$shared_ext'
18665 finish_cmds=
18666 shlibpath_var=LD_LIBRARY_PATH
18667 shlibpath_overrides_runpath=yes
18668
18669 # This implies no fast_install, which is unacceptable.
18670 # Some rework will be needed to allow for fast_install
18671 # before this can be enabled.
18672 hardcode_into_libs=yes
18673
18674 dynamic_linker='Android linker'
18675 # Don't embed -rpath directories since the linker doesn't support them.
18676 hardcode_libdir_flag_spec='-L$libdir'
18677 ;;
18678
18679 # This must be glibc/ELF.
18680 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18681 version_type=linux # correct to gnu/linux during the next big refactor
18682 need_lib_prefix=no
18683 need_version=no
18684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18685 soname_spec='$libname$release$shared_ext$major'
18686 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18687 shlibpath_var=LD_LIBRARY_PATH
18688 shlibpath_overrides_runpath=no
18689
18690 # Some binutils ld are patched to set DT_RUNPATH
18691 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18692 $as_echo_n "(cached) " >&6
18693 else
18694 lt_cv_shlibpath_overrides_runpath=no
18695 save_LDFLAGS=$LDFLAGS
18696 save_libdir=$libdir
18697 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18698 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18700 /* end confdefs.h. */
18701
18702 int
18703 main ()
18704 {
18705
18706 ;
18707 return 0;
18708 }
18709 _ACEOF
18710 if ac_fn_c_try_link "$LINENO"; then :
18711 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18712 lt_cv_shlibpath_overrides_runpath=yes
18713 fi
18714 fi
18715 rm -f core conftest.err conftest.$ac_objext \
18716 conftest$ac_exeext conftest.$ac_ext
18717 LDFLAGS=$save_LDFLAGS
18718 libdir=$save_libdir
18719
18720 fi
18721
18722 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18723
18724 # This implies no fast_install, which is unacceptable.
18725 # Some rework will be needed to allow for fast_install
18726 # before this can be enabled.
18727 hardcode_into_libs=yes
18728
18729 # Ideally, we could use ldconfig to report *all* directores which are
18730 # searched for libraries, however this is still not possible. Aside from not
18731 # being certain /sbin/ldconfig is available, command
18732 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18733 # even though it is searched at run-time. Try to do the best guess by
18734 # appending ld.so.conf contents (and includes) to the search path.
18735 if test -f /etc/ld.so.conf; then
18736 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' ' '`
18737 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18738 fi
18739
18740 # We used to test for /lib/ld.so.1 and disable shared libraries on
18741 # powerpc, because MkLinux only supported shared libraries with the
18742 # GNU dynamic linker. Since this was broken with cross compilers,
18743 # most powerpc-linux boxes support dynamic linking these days and
18744 # people can always --disable-shared, the test was removed, and we
18745 # assume the GNU/Linux dynamic linker is in use.
18746 dynamic_linker='GNU/Linux ld.so'
18747 ;;
18748
18749 netbsd*)
18750 version_type=sunos
18751 need_lib_prefix=no
18752 need_version=no
18753 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18754 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18755 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18756 dynamic_linker='NetBSD (a.out) ld.so'
18757 else
18758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18759 soname_spec='$libname$release$shared_ext$major'
18760 dynamic_linker='NetBSD ld.elf_so'
18761 fi
18762 shlibpath_var=LD_LIBRARY_PATH
18763 shlibpath_overrides_runpath=yes
18764 hardcode_into_libs=yes
18765 ;;
18766
18767 newsos6)
18768 version_type=linux # correct to gnu/linux during the next big refactor
18769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18770 shlibpath_var=LD_LIBRARY_PATH
18771 shlibpath_overrides_runpath=yes
18772 ;;
18773
18774 *nto* | *qnx*)
18775 version_type=qnx
18776 need_lib_prefix=no
18777 need_version=no
18778 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18779 soname_spec='$libname$release$shared_ext$major'
18780 shlibpath_var=LD_LIBRARY_PATH
18781 shlibpath_overrides_runpath=no
18782 hardcode_into_libs=yes
18783 dynamic_linker='ldqnx.so'
18784 ;;
18785
18786 openbsd* | bitrig*)
18787 version_type=sunos
18788 sys_lib_dlsearch_path_spec=/usr/lib
18789 need_lib_prefix=no
18790 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18791 need_version=no
18792 else
18793 need_version=yes
18794 fi
18795 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18796 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18797 shlibpath_var=LD_LIBRARY_PATH
18798 shlibpath_overrides_runpath=yes
18799 ;;
18800
18801 os2*)
18802 libname_spec='$name'
18803 version_type=windows
18804 shrext_cmds=.dll
18805 need_version=no
18806 need_lib_prefix=no
18807 # OS/2 can only load a DLL with a base name of 8 characters or less.
18808 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18809 v=$($ECHO $release$versuffix | tr -d .-);
18810 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18811 $ECHO $n$v`$shared_ext'
18812 library_names_spec='${libname}_dll.$libext'
18813 dynamic_linker='OS/2 ld.exe'
18814 shlibpath_var=BEGINLIBPATH
18815 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18816 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18817 postinstall_cmds='base_file=`basename \$file`~
18818 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18819 dldir=$destdir/`dirname \$dlpath`~
18820 test -d \$dldir || mkdir -p \$dldir~
18821 $install_prog $dir/$dlname \$dldir/$dlname~
18822 chmod a+x \$dldir/$dlname~
18823 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18824 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18825 fi'
18826 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18827 dlpath=$dir/\$dldll~
18828 $RM \$dlpath'
18829 ;;
18830
18831 osf3* | osf4* | osf5*)
18832 version_type=osf
18833 need_lib_prefix=no
18834 need_version=no
18835 soname_spec='$libname$release$shared_ext$major'
18836 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18837 shlibpath_var=LD_LIBRARY_PATH
18838 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18839 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18840 ;;
18841
18842 rdos*)
18843 dynamic_linker=no
18844 ;;
18845
18846 solaris*)
18847 version_type=linux # correct to gnu/linux during the next big refactor
18848 need_lib_prefix=no
18849 need_version=no
18850 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18851 soname_spec='$libname$release$shared_ext$major'
18852 shlibpath_var=LD_LIBRARY_PATH
18853 shlibpath_overrides_runpath=yes
18854 hardcode_into_libs=yes
18855 # ldd complains unless libraries are executable
18856 postinstall_cmds='chmod +x $lib'
18857 ;;
18858
18859 sunos4*)
18860 version_type=sunos
18861 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18862 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18863 shlibpath_var=LD_LIBRARY_PATH
18864 shlibpath_overrides_runpath=yes
18865 if test yes = "$with_gnu_ld"; then
18866 need_lib_prefix=no
18867 fi
18868 need_version=yes
18869 ;;
18870
18871 sysv4 | sysv4.3*)
18872 version_type=linux # correct to gnu/linux during the next big refactor
18873 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18874 soname_spec='$libname$release$shared_ext$major'
18875 shlibpath_var=LD_LIBRARY_PATH
18876 case $host_vendor in
18877 sni)
18878 shlibpath_overrides_runpath=no
18879 need_lib_prefix=no
18880 runpath_var=LD_RUN_PATH
18881 ;;
18882 siemens)
18883 need_lib_prefix=no
18884 ;;
18885 motorola)
18886 need_lib_prefix=no
18887 need_version=no
18888 shlibpath_overrides_runpath=no
18889 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18890 ;;
18891 esac
18892 ;;
18893
18894 sysv4*MP*)
18895 if test -d /usr/nec; then
18896 version_type=linux # correct to gnu/linux during the next big refactor
18897 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18898 soname_spec='$libname$shared_ext.$major'
18899 shlibpath_var=LD_LIBRARY_PATH
18900 fi
18901 ;;
18902
18903 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18904 version_type=sco
18905 need_lib_prefix=no
18906 need_version=no
18907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18908 soname_spec='$libname$release$shared_ext$major'
18909 shlibpath_var=LD_LIBRARY_PATH
18910 shlibpath_overrides_runpath=yes
18911 hardcode_into_libs=yes
18912 if test yes = "$with_gnu_ld"; then
18913 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18914 else
18915 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18916 case $host_os in
18917 sco3.2v5*)
18918 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18919 ;;
18920 esac
18921 fi
18922 sys_lib_dlsearch_path_spec='/usr/lib'
18923 ;;
18924
18925 tpf*)
18926 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18927 version_type=linux # correct to gnu/linux during the next big refactor
18928 need_lib_prefix=no
18929 need_version=no
18930 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18931 shlibpath_var=LD_LIBRARY_PATH
18932 shlibpath_overrides_runpath=no
18933 hardcode_into_libs=yes
18934 ;;
18935
18936 uts4*)
18937 version_type=linux # correct to gnu/linux during the next big refactor
18938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18939 soname_spec='$libname$release$shared_ext$major'
18940 shlibpath_var=LD_LIBRARY_PATH
18941 ;;
18942
18943 *)
18944 dynamic_linker=no
18945 ;;
18946 esac
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18948 $as_echo "$dynamic_linker" >&6; }
18949 test no = "$dynamic_linker" && can_build_shared=no
18950
18951 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18952 if test yes = "$GCC"; then
18953 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18954 fi
18955
18956 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18957 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18958 fi
18959
18960 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18961 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18962 fi
18963
18964 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18965 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18966
18967 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18968 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18969
18970 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18971 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19070 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19071 hardcode_action=
19072 if test -n "$hardcode_libdir_flag_spec" ||
19073 test -n "$runpath_var" ||
19074 test yes = "$hardcode_automatic"; then
19075
19076 # We can hardcode non-existent directories.
19077 if test no != "$hardcode_direct" &&
19078 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19079 # have to relink, otherwise we might link with an installed library
19080 # when we should be linking with a yet-to-be-installed one
19081 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
19082 test no != "$hardcode_minus_L"; then
19083 # Linking always hardcodes the temporary library directory.
19084 hardcode_action=relink
19085 else
19086 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19087 hardcode_action=immediate
19088 fi
19089 else
19090 # We cannot hardcode anything, or else we can only hardcode existing
19091 # directories.
19092 hardcode_action=unsupported
19093 fi
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19095 $as_echo "$hardcode_action" >&6; }
19096
19097 if test relink = "$hardcode_action" ||
19098 test yes = "$inherit_rpath"; then
19099 # Fast installation is not supported
19100 enable_fast_install=no
19101 elif test yes = "$shlibpath_overrides_runpath" ||
19102 test no = "$enable_shared"; then
19103 # Fast installation is not necessary
19104 enable_fast_install=needless
19105 fi
19106
19107
19108
19109
19110
19111
19112 if test yes != "$enable_dlopen"; then
19113 enable_dlopen=unknown
19114 enable_dlopen_self=unknown
19115 enable_dlopen_self_static=unknown
19116 else
19117 lt_cv_dlopen=no
19118 lt_cv_dlopen_libs=
19119
19120 case $host_os in
19121 beos*)
19122 lt_cv_dlopen=load_add_on
19123 lt_cv_dlopen_libs=
19124 lt_cv_dlopen_self=yes
19125 ;;
19126
19127 mingw* | pw32* | cegcc*)
19128 lt_cv_dlopen=LoadLibrary
19129 lt_cv_dlopen_libs=
19130 ;;
19131
19132 cygwin*)
19133 lt_cv_dlopen=dlopen
19134 lt_cv_dlopen_libs=
19135 ;;
19136
19137 darwin*)
19138 # if libdl is installed we need to link against it
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19140 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19141 if ${ac_cv_lib_dl_dlopen+:} false; then :
19142 $as_echo_n "(cached) " >&6
19143 else
19144 ac_check_lib_save_LIBS=$LIBS
19145 LIBS="-ldl $LIBS"
19146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19147 /* end confdefs.h. */
19148
19149 /* Override any GCC internal prototype to avoid an error.
19150 Use char because int might match the return type of a GCC
19151 builtin and then its argument prototype would still apply. */
19152 #ifdef __cplusplus
19153 extern "C"
19154 #endif
19155 char dlopen ();
19156 int
19157 main ()
19158 {
19159 return dlopen ();
19160 ;
19161 return 0;
19162 }
19163 _ACEOF
19164 if ac_fn_c_try_link "$LINENO"; then :
19165 ac_cv_lib_dl_dlopen=yes
19166 else
19167 ac_cv_lib_dl_dlopen=no
19168 fi
19169 rm -f core conftest.err conftest.$ac_objext \
19170 conftest$ac_exeext conftest.$ac_ext
19171 LIBS=$ac_check_lib_save_LIBS
19172 fi
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19174 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19175 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19176 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
19177 else
19178
19179 lt_cv_dlopen=dyld
19180 lt_cv_dlopen_libs=
19181 lt_cv_dlopen_self=yes
19182
19183 fi
19184
19185 ;;
19186
19187 tpf*)
19188 # Don't try to run any link tests for TPF. We know it's impossible
19189 # because TPF is a cross-compiler, and we know how we open DSOs.
19190 lt_cv_dlopen=dlopen
19191 lt_cv_dlopen_libs=
19192 lt_cv_dlopen_self=no
19193 ;;
19194
19195 *)
19196 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19197 if test "x$ac_cv_func_shl_load" = xyes; then :
19198 lt_cv_dlopen=shl_load
19199 else
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19201 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19202 if ${ac_cv_lib_dld_shl_load+:} false; then :
19203 $as_echo_n "(cached) " >&6
19204 else
19205 ac_check_lib_save_LIBS=$LIBS
19206 LIBS="-ldld $LIBS"
19207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19208 /* end confdefs.h. */
19209
19210 /* Override any GCC internal prototype to avoid an error.
19211 Use char because int might match the return type of a GCC
19212 builtin and then its argument prototype would still apply. */
19213 #ifdef __cplusplus
19214 extern "C"
19215 #endif
19216 char shl_load ();
19217 int
19218 main ()
19219 {
19220 return shl_load ();
19221 ;
19222 return 0;
19223 }
19224 _ACEOF
19225 if ac_fn_c_try_link "$LINENO"; then :
19226 ac_cv_lib_dld_shl_load=yes
19227 else
19228 ac_cv_lib_dld_shl_load=no
19229 fi
19230 rm -f core conftest.err conftest.$ac_objext \
19231 conftest$ac_exeext conftest.$ac_ext
19232 LIBS=$ac_check_lib_save_LIBS
19233 fi
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19235 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19236 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19237 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
19238 else
19239 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19240 if test "x$ac_cv_func_dlopen" = xyes; then :
19241 lt_cv_dlopen=dlopen
19242 else
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19244 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19245 if ${ac_cv_lib_dl_dlopen+:} false; then :
19246 $as_echo_n "(cached) " >&6
19247 else
19248 ac_check_lib_save_LIBS=$LIBS
19249 LIBS="-ldl $LIBS"
19250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19251 /* end confdefs.h. */
19252
19253 /* Override any GCC internal prototype to avoid an error.
19254 Use char because int might match the return type of a GCC
19255 builtin and then its argument prototype would still apply. */
19256 #ifdef __cplusplus
19257 extern "C"
19258 #endif
19259 char dlopen ();
19260 int
19261 main ()
19262 {
19263 return dlopen ();
19264 ;
19265 return 0;
19266 }
19267 _ACEOF
19268 if ac_fn_c_try_link "$LINENO"; then :
19269 ac_cv_lib_dl_dlopen=yes
19270 else
19271 ac_cv_lib_dl_dlopen=no
19272 fi
19273 rm -f core conftest.err conftest.$ac_objext \
19274 conftest$ac_exeext conftest.$ac_ext
19275 LIBS=$ac_check_lib_save_LIBS
19276 fi
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19278 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19279 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19280 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
19281 else
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19283 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19284 if ${ac_cv_lib_svld_dlopen+:} false; then :
19285 $as_echo_n "(cached) " >&6
19286 else
19287 ac_check_lib_save_LIBS=$LIBS
19288 LIBS="-lsvld $LIBS"
19289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19290 /* end confdefs.h. */
19291
19292 /* Override any GCC internal prototype to avoid an error.
19293 Use char because int might match the return type of a GCC
19294 builtin and then its argument prototype would still apply. */
19295 #ifdef __cplusplus
19296 extern "C"
19297 #endif
19298 char dlopen ();
19299 int
19300 main ()
19301 {
19302 return dlopen ();
19303 ;
19304 return 0;
19305 }
19306 _ACEOF
19307 if ac_fn_c_try_link "$LINENO"; then :
19308 ac_cv_lib_svld_dlopen=yes
19309 else
19310 ac_cv_lib_svld_dlopen=no
19311 fi
19312 rm -f core conftest.err conftest.$ac_objext \
19313 conftest$ac_exeext conftest.$ac_ext
19314 LIBS=$ac_check_lib_save_LIBS
19315 fi
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19317 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19318 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19319 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
19320 else
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19322 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19323 if ${ac_cv_lib_dld_dld_link+:} false; then :
19324 $as_echo_n "(cached) " >&6
19325 else
19326 ac_check_lib_save_LIBS=$LIBS
19327 LIBS="-ldld $LIBS"
19328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19329 /* end confdefs.h. */
19330
19331 /* Override any GCC internal prototype to avoid an error.
19332 Use char because int might match the return type of a GCC
19333 builtin and then its argument prototype would still apply. */
19334 #ifdef __cplusplus
19335 extern "C"
19336 #endif
19337 char dld_link ();
19338 int
19339 main ()
19340 {
19341 return dld_link ();
19342 ;
19343 return 0;
19344 }
19345 _ACEOF
19346 if ac_fn_c_try_link "$LINENO"; then :
19347 ac_cv_lib_dld_dld_link=yes
19348 else
19349 ac_cv_lib_dld_dld_link=no
19350 fi
19351 rm -f core conftest.err conftest.$ac_objext \
19352 conftest$ac_exeext conftest.$ac_ext
19353 LIBS=$ac_check_lib_save_LIBS
19354 fi
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19356 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19357 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19358 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
19359 fi
19360
19361
19362 fi
19363
19364
19365 fi
19366
19367
19368 fi
19369
19370
19371 fi
19372
19373
19374 fi
19375
19376 ;;
19377 esac
19378
19379 if test no = "$lt_cv_dlopen"; then
19380 enable_dlopen=no
19381 else
19382 enable_dlopen=yes
19383 fi
19384
19385 case $lt_cv_dlopen in
19386 dlopen)
19387 save_CPPFLAGS=$CPPFLAGS
19388 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19389
19390 save_LDFLAGS=$LDFLAGS
19391 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19392
19393 save_LIBS=$LIBS
19394 LIBS="$lt_cv_dlopen_libs $LIBS"
19395
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19397 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19398 if ${lt_cv_dlopen_self+:} false; then :
19399 $as_echo_n "(cached) " >&6
19400 else
19401 if test yes = "$cross_compiling"; then :
19402 lt_cv_dlopen_self=cross
19403 else
19404 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19405 lt_status=$lt_dlunknown
19406 cat > conftest.$ac_ext <<_LT_EOF
19407 #line $LINENO "configure"
19408 #include "confdefs.h"
19409
19410 #if HAVE_DLFCN_H
19411 #include <dlfcn.h>
19412 #endif
19413
19414 #include <stdio.h>
19415
19416 #ifdef RTLD_GLOBAL
19417 # define LT_DLGLOBAL RTLD_GLOBAL
19418 #else
19419 # ifdef DL_GLOBAL
19420 # define LT_DLGLOBAL DL_GLOBAL
19421 # else
19422 # define LT_DLGLOBAL 0
19423 # endif
19424 #endif
19425
19426 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19427 find out it does not work in some platform. */
19428 #ifndef LT_DLLAZY_OR_NOW
19429 # ifdef RTLD_LAZY
19430 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19431 # else
19432 # ifdef DL_LAZY
19433 # define LT_DLLAZY_OR_NOW DL_LAZY
19434 # else
19435 # ifdef RTLD_NOW
19436 # define LT_DLLAZY_OR_NOW RTLD_NOW
19437 # else
19438 # ifdef DL_NOW
19439 # define LT_DLLAZY_OR_NOW DL_NOW
19440 # else
19441 # define LT_DLLAZY_OR_NOW 0
19442 # endif
19443 # endif
19444 # endif
19445 # endif
19446 #endif
19447
19448 /* When -fvisibility=hidden is used, assume the code has been annotated
19449 correspondingly for the symbols needed. */
19450 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19451 int fnord () __attribute__((visibility("default")));
19452 #endif
19453
19454 int fnord () { return 42; }
19455 int main ()
19456 {
19457 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19458 int status = $lt_dlunknown;
19459
19460 if (self)
19461 {
19462 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19463 else
19464 {
19465 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19466 else puts (dlerror ());
19467 }
19468 /* dlclose (self); */
19469 }
19470 else
19471 puts (dlerror ());
19472
19473 return status;
19474 }
19475 _LT_EOF
19476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19477 (eval $ac_link) 2>&5
19478 ac_status=$?
19479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19480 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19481 (./conftest; exit; ) >&5 2>/dev/null
19482 lt_status=$?
19483 case x$lt_status in
19484 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19485 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19486 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19487 esac
19488 else :
19489 # compilation failed
19490 lt_cv_dlopen_self=no
19491 fi
19492 fi
19493 rm -fr conftest*
19494
19495
19496 fi
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19498 $as_echo "$lt_cv_dlopen_self" >&6; }
19499
19500 if test yes = "$lt_cv_dlopen_self"; then
19501 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19503 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19504 if ${lt_cv_dlopen_self_static+:} false; then :
19505 $as_echo_n "(cached) " >&6
19506 else
19507 if test yes = "$cross_compiling"; then :
19508 lt_cv_dlopen_self_static=cross
19509 else
19510 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19511 lt_status=$lt_dlunknown
19512 cat > conftest.$ac_ext <<_LT_EOF
19513 #line $LINENO "configure"
19514 #include "confdefs.h"
19515
19516 #if HAVE_DLFCN_H
19517 #include <dlfcn.h>
19518 #endif
19519
19520 #include <stdio.h>
19521
19522 #ifdef RTLD_GLOBAL
19523 # define LT_DLGLOBAL RTLD_GLOBAL
19524 #else
19525 # ifdef DL_GLOBAL
19526 # define LT_DLGLOBAL DL_GLOBAL
19527 # else
19528 # define LT_DLGLOBAL 0
19529 # endif
19530 #endif
19531
19532 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19533 find out it does not work in some platform. */
19534 #ifndef LT_DLLAZY_OR_NOW
19535 # ifdef RTLD_LAZY
19536 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19537 # else
19538 # ifdef DL_LAZY
19539 # define LT_DLLAZY_OR_NOW DL_LAZY
19540 # else
19541 # ifdef RTLD_NOW
19542 # define LT_DLLAZY_OR_NOW RTLD_NOW
19543 # else
19544 # ifdef DL_NOW
19545 # define LT_DLLAZY_OR_NOW DL_NOW
19546 # else
19547 # define LT_DLLAZY_OR_NOW 0
19548 # endif
19549 # endif
19550 # endif
19551 # endif
19552 #endif
19553
19554 /* When -fvisibility=hidden is used, assume the code has been annotated
19555 correspondingly for the symbols needed. */
19556 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19557 int fnord () __attribute__((visibility("default")));
19558 #endif
19559
19560 int fnord () { return 42; }
19561 int main ()
19562 {
19563 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19564 int status = $lt_dlunknown;
19565
19566 if (self)
19567 {
19568 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19569 else
19570 {
19571 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19572 else puts (dlerror ());
19573 }
19574 /* dlclose (self); */
19575 }
19576 else
19577 puts (dlerror ());
19578
19579 return status;
19580 }
19581 _LT_EOF
19582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19583 (eval $ac_link) 2>&5
19584 ac_status=$?
19585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19586 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19587 (./conftest; exit; ) >&5 2>/dev/null
19588 lt_status=$?
19589 case x$lt_status in
19590 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19591 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19592 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19593 esac
19594 else :
19595 # compilation failed
19596 lt_cv_dlopen_self_static=no
19597 fi
19598 fi
19599 rm -fr conftest*
19600
19601
19602 fi
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19604 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19605 fi
19606
19607 CPPFLAGS=$save_CPPFLAGS
19608 LDFLAGS=$save_LDFLAGS
19609 LIBS=$save_LIBS
19610 ;;
19611 esac
19612
19613 case $lt_cv_dlopen_self in
19614 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19615 *) enable_dlopen_self=unknown ;;
19616 esac
19617
19618 case $lt_cv_dlopen_self_static in
19619 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19620 *) enable_dlopen_self_static=unknown ;;
19621 esac
19622 fi
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640 striplib=
19641 old_striplib=
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19643 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19644 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19645 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19646 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19648 $as_echo "yes" >&6; }
19649 else
19650 # FIXME - insert some real tests, host_os isn't really good enough
19651 case $host_os in
19652 darwin*)
19653 if test -n "$STRIP"; then
19654 striplib="$STRIP -x"
19655 old_striplib="$STRIP -S"
19656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19657 $as_echo "yes" >&6; }
19658 else
19659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19660 $as_echo "no" >&6; }
19661 fi
19662 ;;
19663 *)
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19665 $as_echo "no" >&6; }
19666 ;;
19667 esac
19668 fi
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681 # Report what library types will actually be built
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19683 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19685 $as_echo "$can_build_shared" >&6; }
19686
19687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19688 $as_echo_n "checking whether to build shared libraries... " >&6; }
19689 test no = "$can_build_shared" && enable_shared=no
19690
19691 # On AIX, shared libraries and static libraries use the same namespace, and
19692 # are all built from PIC.
19693 case $host_os in
19694 aix3*)
19695 test yes = "$enable_shared" && enable_static=no
19696 if test -n "$RANLIB"; then
19697 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19698 postinstall_cmds='$RANLIB $lib'
19699 fi
19700 ;;
19701
19702 aix[4-9]*)
19703 if test ia64 != "$host_cpu"; then
19704 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19705 yes,aix,yes) ;; # shared object as lib.so file only
19706 yes,svr4,*) ;; # shared object as lib.so archive member only
19707 yes,*) enable_static=no ;; # shared object in lib.a archive as well
19708 esac
19709 fi
19710 ;;
19711 esac
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19713 $as_echo "$enable_shared" >&6; }
19714
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19716 $as_echo_n "checking whether to build static libraries... " >&6; }
19717 # Make sure either enable_shared or enable_static is yes.
19718 test yes = "$enable_shared" || enable_static=yes
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19720 $as_echo "$enable_static" >&6; }
19721
19722
19723
19724
19725 fi
19726 ac_ext=c
19727 ac_cpp='$CPP $CPPFLAGS'
19728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19731
19732 CC=$lt_save_CC
19733
19734 if test -n "$CXX" && ( test no != "$CXX" &&
19735 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
19736 (test g++ != "$CXX"))); then
19737 ac_ext=cpp
19738 ac_cpp='$CXXCPP $CPPFLAGS'
19739 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19740 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19741 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19743 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19744 if test -z "$CXXCPP"; then
19745 if ${ac_cv_prog_CXXCPP+:} false; then :
19746 $as_echo_n "(cached) " >&6
19747 else
19748 # Double quotes because CXXCPP needs to be expanded
19749 for CXXCPP in "$CXX -E" "/lib/cpp"
19750 do
19751 ac_preproc_ok=false
19752 for ac_cxx_preproc_warn_flag in '' yes
19753 do
19754 # Use a header file that comes with gcc, so configuring glibc
19755 # with a fresh cross-compiler works.
19756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19757 # <limits.h> exists even on freestanding compilers.
19758 # On the NeXT, cc -E runs the code through the compiler's parser,
19759 # not just through cpp. "Syntax error" is here to catch this case.
19760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19761 /* end confdefs.h. */
19762 #ifdef __STDC__
19763 # include <limits.h>
19764 #else
19765 # include <assert.h>
19766 #endif
19767 Syntax error
19768 _ACEOF
19769 if ac_fn_cxx_try_cpp "$LINENO"; then :
19770
19771 else
19772 # Broken: fails on valid input.
19773 continue
19774 fi
19775 rm -f conftest.err conftest.i conftest.$ac_ext
19776
19777 # OK, works on sane cases. Now check whether nonexistent headers
19778 # can be detected and how.
19779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19780 /* end confdefs.h. */
19781 #include <ac_nonexistent.h>
19782 _ACEOF
19783 if ac_fn_cxx_try_cpp "$LINENO"; then :
19784 # Broken: success on invalid input.
19785 continue
19786 else
19787 # Passes both tests.
19788 ac_preproc_ok=:
19789 break
19790 fi
19791 rm -f conftest.err conftest.i conftest.$ac_ext
19792
19793 done
19794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19795 rm -f conftest.i conftest.err conftest.$ac_ext
19796 if $ac_preproc_ok; then :
19797 break
19798 fi
19799
19800 done
19801 ac_cv_prog_CXXCPP=$CXXCPP
19802
19803 fi
19804 CXXCPP=$ac_cv_prog_CXXCPP
19805 else
19806 ac_cv_prog_CXXCPP=$CXXCPP
19807 fi
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19809 $as_echo "$CXXCPP" >&6; }
19810 ac_preproc_ok=false
19811 for ac_cxx_preproc_warn_flag in '' yes
19812 do
19813 # Use a header file that comes with gcc, so configuring glibc
19814 # with a fresh cross-compiler works.
19815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19816 # <limits.h> exists even on freestanding compilers.
19817 # On the NeXT, cc -E runs the code through the compiler's parser,
19818 # not just through cpp. "Syntax error" is here to catch this case.
19819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19820 /* end confdefs.h. */
19821 #ifdef __STDC__
19822 # include <limits.h>
19823 #else
19824 # include <assert.h>
19825 #endif
19826 Syntax error
19827 _ACEOF
19828 if ac_fn_cxx_try_cpp "$LINENO"; then :
19829
19830 else
19831 # Broken: fails on valid input.
19832 continue
19833 fi
19834 rm -f conftest.err conftest.i conftest.$ac_ext
19835
19836 # OK, works on sane cases. Now check whether nonexistent headers
19837 # can be detected and how.
19838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19839 /* end confdefs.h. */
19840 #include <ac_nonexistent.h>
19841 _ACEOF
19842 if ac_fn_cxx_try_cpp "$LINENO"; then :
19843 # Broken: success on invalid input.
19844 continue
19845 else
19846 # Passes both tests.
19847 ac_preproc_ok=:
19848 break
19849 fi
19850 rm -f conftest.err conftest.i conftest.$ac_ext
19851
19852 done
19853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19854 rm -f conftest.i conftest.err conftest.$ac_ext
19855 if $ac_preproc_ok; then :
19856
19857 else
19858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19860 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19861 See \`config.log' for more details" "$LINENO" 5; }
19862 fi
19863
19864 ac_ext=c
19865 ac_cpp='$CPP $CPPFLAGS'
19866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19869
19870 else
19871 _lt_caught_CXX_error=yes
19872 fi
19873
19874 ac_ext=cpp
19875 ac_cpp='$CXXCPP $CPPFLAGS'
19876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19879
19880 archive_cmds_need_lc_CXX=no
19881 allow_undefined_flag_CXX=
19882 always_export_symbols_CXX=no
19883 archive_expsym_cmds_CXX=
19884 compiler_needs_object_CXX=no
19885 export_dynamic_flag_spec_CXX=
19886 hardcode_direct_CXX=no
19887 hardcode_direct_absolute_CXX=no
19888 hardcode_libdir_flag_spec_CXX=
19889 hardcode_libdir_separator_CXX=
19890 hardcode_minus_L_CXX=no
19891 hardcode_shlibpath_var_CXX=unsupported
19892 hardcode_automatic_CXX=no
19893 inherit_rpath_CXX=no
19894 module_cmds_CXX=
19895 module_expsym_cmds_CXX=
19896 link_all_deplibs_CXX=unknown
19897 old_archive_cmds_CXX=$old_archive_cmds
19898 reload_flag_CXX=$reload_flag
19899 reload_cmds_CXX=$reload_cmds
19900 no_undefined_flag_CXX=
19901 whole_archive_flag_spec_CXX=
19902 enable_shared_with_static_runtimes_CXX=no
19903
19904 # Source file extension for C++ test sources.
19905 ac_ext=cpp
19906
19907 # Object file extension for compiled C++ test sources.
19908 objext=o
19909 objext_CXX=$objext
19910
19911 # No sense in running all these tests if we already determined that
19912 # the CXX compiler isn't working. Some variables (like enable_shared)
19913 # are currently assumed to apply to all compilers on this platform,
19914 # and will be corrupted by setting them based on a non-working compiler.
19915 if test yes != "$_lt_caught_CXX_error"; then
19916 # Code to be used in simple compile tests
19917 lt_simple_compile_test_code="int some_variable = 0;"
19918
19919 # Code to be used in simple link tests
19920 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19921
19922 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19923
19924
19925
19926
19927
19928
19929 # If no C compiler was specified, use CC.
19930 LTCC=${LTCC-"$CC"}
19931
19932 # If no C compiler flags were specified, use CFLAGS.
19933 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19934
19935 # Allow CC to be a program name with arguments.
19936 compiler=$CC
19937
19938
19939 # save warnings/boilerplate of simple test code
19940 ac_outfile=conftest.$ac_objext
19941 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19942 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19943 _lt_compiler_boilerplate=`cat conftest.err`
19944 $RM conftest*
19945
19946 ac_outfile=conftest.$ac_objext
19947 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19948 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19949 _lt_linker_boilerplate=`cat conftest.err`
19950 $RM -r conftest*
19951
19952
19953 # Allow CC to be a program name with arguments.
19954 lt_save_CC=$CC
19955 lt_save_CFLAGS=$CFLAGS
19956 lt_save_LD=$LD
19957 lt_save_GCC=$GCC
19958 GCC=$GXX
19959 lt_save_with_gnu_ld=$with_gnu_ld
19960 lt_save_path_LD=$lt_cv_path_LD
19961 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19962 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19963 else
19964 $as_unset lt_cv_prog_gnu_ld
19965 fi
19966 if test -n "${lt_cv_path_LDCXX+set}"; then
19967 lt_cv_path_LD=$lt_cv_path_LDCXX
19968 else
19969 $as_unset lt_cv_path_LD
19970 fi
19971 test -z "${LDCXX+set}" || LD=$LDCXX
19972 CC=${CXX-"c++"}
19973 CFLAGS=$CXXFLAGS
19974 compiler=$CC
19975 compiler_CXX=$CC
19976 func_cc_basename $compiler
19977 cc_basename=$func_cc_basename_result
19978
19979
19980 if test -n "$compiler"; then
19981 # We don't want -fno-exception when compiling C++ code, so set the
19982 # no_builtin_flag separately
19983 if test yes = "$GXX"; then
19984 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19985 else
19986 lt_prog_compiler_no_builtin_flag_CXX=
19987 fi
19988
19989 if test yes = "$GXX"; then
19990 # Set up default GNU C++ configuration
19991
19992
19993
19994 # Check whether --with-gnu-ld was given.
19995 if test "${with_gnu_ld+set}" = set; then :
19996 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
19997 else
19998 with_gnu_ld=no
19999 fi
20000
20001 ac_prog=ld
20002 if test yes = "$GCC"; then
20003 # Check if gcc -print-prog-name=ld gives a path.
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20005 $as_echo_n "checking for ld used by $CC... " >&6; }
20006 case $host in
20007 *-*-mingw*)
20008 # gcc leaves a trailing carriage return, which upsets mingw
20009 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20010 *)
20011 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20012 esac
20013 case $ac_prog in
20014 # Accept absolute paths.
20015 [\\/]* | ?:[\\/]*)
20016 re_direlt='/[^/][^/]*/\.\./'
20017 # Canonicalize the pathname of ld
20018 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20019 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20020 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20021 done
20022 test -z "$LD" && LD=$ac_prog
20023 ;;
20024 "")
20025 # If it fails, then pretend we aren't using GCC.
20026 ac_prog=ld
20027 ;;
20028 *)
20029 # If it is relative, then search for the first ld in PATH.
20030 with_gnu_ld=unknown
20031 ;;
20032 esac
20033 elif test yes = "$with_gnu_ld"; then
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20035 $as_echo_n "checking for GNU ld... " >&6; }
20036 else
20037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20038 $as_echo_n "checking for non-GNU ld... " >&6; }
20039 fi
20040 if ${lt_cv_path_LD+:} false; then :
20041 $as_echo_n "(cached) " >&6
20042 else
20043 if test -z "$LD"; then
20044 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
20045 for ac_dir in $PATH; do
20046 IFS=$lt_save_ifs
20047 test -z "$ac_dir" && ac_dir=.
20048 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20049 lt_cv_path_LD=$ac_dir/$ac_prog
20050 # Check to see if the program is GNU ld. I'd rather use --version,
20051 # but apparently some variants of GNU ld only accept -v.
20052 # Break only if it was the GNU/non-GNU ld that we prefer.
20053 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20054 *GNU* | *'with BFD'*)
20055 test no != "$with_gnu_ld" && break
20056 ;;
20057 *)
20058 test yes != "$with_gnu_ld" && break
20059 ;;
20060 esac
20061 fi
20062 done
20063 IFS=$lt_save_ifs
20064 else
20065 lt_cv_path_LD=$LD # Let the user override the test with a path.
20066 fi
20067 fi
20068
20069 LD=$lt_cv_path_LD
20070 if test -n "$LD"; then
20071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20072 $as_echo "$LD" >&6; }
20073 else
20074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20075 $as_echo "no" >&6; }
20076 fi
20077 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20079 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20080 if ${lt_cv_prog_gnu_ld+:} false; then :
20081 $as_echo_n "(cached) " >&6
20082 else
20083 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20084 case `$LD -v 2>&1 </dev/null` in
20085 *GNU* | *'with BFD'*)
20086 lt_cv_prog_gnu_ld=yes
20087 ;;
20088 *)
20089 lt_cv_prog_gnu_ld=no
20090 ;;
20091 esac
20092 fi
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20094 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20095 with_gnu_ld=$lt_cv_prog_gnu_ld
20096
20097
20098
20099
20100
20101
20102
20103 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20104 # archiving commands below assume that GNU ld is being used.
20105 if test yes = "$with_gnu_ld"; then
20106 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20107 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'
20108
20109 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20110 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20111
20112 # If archive_cmds runs LD, not CC, wlarc should be empty
20113 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20114 # investigate it a little bit more. (MM)
20115 wlarc='$wl'
20116
20117 # ancient GNU ld didn't support --whole-archive et. al.
20118 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20119 $GREP 'no-whole-archive' > /dev/null; then
20120 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
20121 else
20122 whole_archive_flag_spec_CXX=
20123 fi
20124 else
20125 with_gnu_ld=no
20126 wlarc=
20127
20128 # A generic and very simple default shared library creation
20129 # command for GNU C++ for the case where it uses the native
20130 # linker, instead of GNU ld. If possible, this setting should
20131 # overridden to take advantage of the native linker features on
20132 # the platform it is being used on.
20133 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20134 fi
20135
20136 # Commands to make compiler produce verbose output that lists
20137 # what "hidden" libraries, object files and flags are used when
20138 # linking a shared library.
20139 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20140
20141 else
20142 GXX=no
20143 with_gnu_ld=no
20144 wlarc=
20145 fi
20146
20147 # PORTME: fill in a description of your system's C++ link characteristics
20148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20149 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20150 ld_shlibs_CXX=yes
20151 case $host_os in
20152 aix3*)
20153 # FIXME: insert proper C++ library support
20154 ld_shlibs_CXX=no
20155 ;;
20156 aix[4-9]*)
20157 if test ia64 = "$host_cpu"; then
20158 # On IA64, the linker does run time linking by default, so we don't
20159 # have to do anything special.
20160 aix_use_runtimelinking=no
20161 exp_sym_flag='-Bexport'
20162 no_entry_flag=
20163 else
20164 aix_use_runtimelinking=no
20165
20166 # Test if we are trying to use run time linking or normal
20167 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20168 # have runtime linking enabled, and use it for executables.
20169 # For shared libraries, we enable/disable runtime linking
20170 # depending on the kind of the shared library created -
20171 # when "with_aix_soname,aix_use_runtimelinking" is:
20172 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
20173 # "aix,yes" lib.so shared, rtl:yes, for executables
20174 # lib.a static archive
20175 # "both,no" lib.so.V(shr.o) shared, rtl:yes
20176 # lib.a(lib.so.V) shared, rtl:no, for executables
20177 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
20178 # lib.a(lib.so.V) shared, rtl:no
20179 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
20180 # lib.a static archive
20181 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20182 for ld_flag in $LDFLAGS; do
20183 case $ld_flag in
20184 *-brtl*)
20185 aix_use_runtimelinking=yes
20186 break
20187 ;;
20188 esac
20189 done
20190 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
20191 # With aix-soname=svr4, we create the lib.so.V shared archives only,
20192 # so we don't have lib.a shared libs to link our executables.
20193 # We have to force runtime linking in this case.
20194 aix_use_runtimelinking=yes
20195 LDFLAGS="$LDFLAGS -Wl,-brtl"
20196 fi
20197 ;;
20198 esac
20199
20200 exp_sym_flag='-bexport'
20201 no_entry_flag='-bnoentry'
20202 fi
20203
20204 # When large executables or shared objects are built, AIX ld can
20205 # have problems creating the table of contents. If linking a library
20206 # or program results in "error TOC overflow" add -mminimal-toc to
20207 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20208 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20209
20210 archive_cmds_CXX=''
20211 hardcode_direct_CXX=yes
20212 hardcode_direct_absolute_CXX=yes
20213 hardcode_libdir_separator_CXX=':'
20214 link_all_deplibs_CXX=yes
20215 file_list_spec_CXX='$wl-f,'
20216 case $with_aix_soname,$aix_use_runtimelinking in
20217 aix,*) ;; # no import file
20218 svr4,* | *,yes) # use import file
20219 # The Import File defines what to hardcode.
20220 hardcode_direct_CXX=no
20221 hardcode_direct_absolute_CXX=no
20222 ;;
20223 esac
20224
20225 if test yes = "$GXX"; then
20226 case $host_os in aix4.[012]|aix4.[012].*)
20227 # We only want to do this on AIX 4.2 and lower, the check
20228 # below for broken collect2 doesn't work under 4.3+
20229 collect2name=`$CC -print-prog-name=collect2`
20230 if test -f "$collect2name" &&
20231 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20232 then
20233 # We have reworked collect2
20234 :
20235 else
20236 # We have old collect2
20237 hardcode_direct_CXX=unsupported
20238 # It fails to find uninstalled libraries when the uninstalled
20239 # path is not listed in the libpath. Setting hardcode_minus_L
20240 # to unsupported forces relinking
20241 hardcode_minus_L_CXX=yes
20242 hardcode_libdir_flag_spec_CXX='-L$libdir'
20243 hardcode_libdir_separator_CXX=
20244 fi
20245 esac
20246 shared_flag='-shared'
20247 if test yes = "$aix_use_runtimelinking"; then
20248 shared_flag=$shared_flag' $wl-G'
20249 fi
20250 # Need to ensure runtime linking is disabled for the traditional
20251 # shared library, or the linker may eventually find shared libraries
20252 # /with/ Import File - we do not want to mix them.
20253 shared_flag_aix='-shared'
20254 shared_flag_svr4='-shared $wl-G'
20255 else
20256 # not using gcc
20257 if test ia64 = "$host_cpu"; then
20258 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20259 # chokes on -Wl,-G. The following line is correct:
20260 shared_flag='-G'
20261 else
20262 if test yes = "$aix_use_runtimelinking"; then
20263 shared_flag='$wl-G'
20264 else
20265 shared_flag='$wl-bM:SRE'
20266 fi
20267 shared_flag_aix='$wl-bM:SRE'
20268 shared_flag_svr4='$wl-G'
20269 fi
20270 fi
20271
20272 export_dynamic_flag_spec_CXX='$wl-bexpall'
20273 # It seems that -bexpall does not export symbols beginning with
20274 # underscore (_), so it is better to generate a list of symbols to
20275 # export.
20276 always_export_symbols_CXX=yes
20277 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
20278 # Warning - without using the other runtime loading flags (-brtl),
20279 # -berok will link without error, but may produce a broken library.
20280 # The "-G" linker flag allows undefined symbols.
20281 no_undefined_flag_CXX='-bernotok'
20282 # Determine the default libpath from the value encoded in an empty
20283 # executable.
20284 if test set = "${lt_cv_aix_libpath+set}"; then
20285 aix_libpath=$lt_cv_aix_libpath
20286 else
20287 if ${lt_cv_aix_libpath__CXX+:} false; then :
20288 $as_echo_n "(cached) " >&6
20289 else
20290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20291 /* end confdefs.h. */
20292
20293 int
20294 main ()
20295 {
20296
20297 ;
20298 return 0;
20299 }
20300 _ACEOF
20301 if ac_fn_cxx_try_link "$LINENO"; then :
20302
20303 lt_aix_libpath_sed='
20304 /Import File Strings/,/^$/ {
20305 /^0/ {
20306 s/^0 *\([^ ]*\) *$/\1/
20307 p
20308 }
20309 }'
20310 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20311 # Check for a 64-bit object if we didn't find anything.
20312 if test -z "$lt_cv_aix_libpath__CXX"; then
20313 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20314 fi
20315 fi
20316 rm -f core conftest.err conftest.$ac_objext \
20317 conftest$ac_exeext conftest.$ac_ext
20318 if test -z "$lt_cv_aix_libpath__CXX"; then
20319 lt_cv_aix_libpath__CXX=/usr/lib:/lib
20320 fi
20321
20322 fi
20323
20324 aix_libpath=$lt_cv_aix_libpath__CXX
20325 fi
20326
20327 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
20328
20329 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
20330 else
20331 if test ia64 = "$host_cpu"; then
20332 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
20333 allow_undefined_flag_CXX="-z nodefs"
20334 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"
20335 else
20336 # Determine the default libpath from the value encoded in an
20337 # empty executable.
20338 if test set = "${lt_cv_aix_libpath+set}"; then
20339 aix_libpath=$lt_cv_aix_libpath
20340 else
20341 if ${lt_cv_aix_libpath__CXX+:} false; then :
20342 $as_echo_n "(cached) " >&6
20343 else
20344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20345 /* end confdefs.h. */
20346
20347 int
20348 main ()
20349 {
20350
20351 ;
20352 return 0;
20353 }
20354 _ACEOF
20355 if ac_fn_cxx_try_link "$LINENO"; then :
20356
20357 lt_aix_libpath_sed='
20358 /Import File Strings/,/^$/ {
20359 /^0/ {
20360 s/^0 *\([^ ]*\) *$/\1/
20361 p
20362 }
20363 }'
20364 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20365 # Check for a 64-bit object if we didn't find anything.
20366 if test -z "$lt_cv_aix_libpath__CXX"; then
20367 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20368 fi
20369 fi
20370 rm -f core conftest.err conftest.$ac_objext \
20371 conftest$ac_exeext conftest.$ac_ext
20372 if test -z "$lt_cv_aix_libpath__CXX"; then
20373 lt_cv_aix_libpath__CXX=/usr/lib:/lib
20374 fi
20375
20376 fi
20377
20378 aix_libpath=$lt_cv_aix_libpath__CXX
20379 fi
20380
20381 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
20382 # Warning - without using the other run time loading flags,
20383 # -berok will link without error, but may produce a broken library.
20384 no_undefined_flag_CXX=' $wl-bernotok'
20385 allow_undefined_flag_CXX=' $wl-berok'
20386 if test yes = "$with_gnu_ld"; then
20387 # We only use this code for GNU lds that support --whole-archive.
20388 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
20389 else
20390 # Exported symbols can be pulled into shared objects from archives
20391 whole_archive_flag_spec_CXX='$convenience'
20392 fi
20393 archive_cmds_need_lc_CXX=yes
20394 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
20395 # -brtl affects multiple linker settings, -berok does not and is overridden later
20396 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
20397 if test svr4 != "$with_aix_soname"; then
20398 # This is similar to how AIX traditionally builds its shared
20399 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
20400 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
20401 fi
20402 if test aix != "$with_aix_soname"; then
20403 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
20404 else
20405 # used by -dlpreopen to get the symbols
20406 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
20407 fi
20408 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
20409 fi
20410 fi
20411 ;;
20412
20413 beos*)
20414 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20415 allow_undefined_flag_CXX=unsupported
20416 # Joseph Beckenbach <[email protected]> says some releases of gcc
20417 # support --undefined. This deserves some investigation. FIXME
20418 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20419 else
20420 ld_shlibs_CXX=no
20421 fi
20422 ;;
20423
20424 chorus*)
20425 case $cc_basename in
20426 *)
20427 # FIXME: insert proper C++ library support
20428 ld_shlibs_CXX=no
20429 ;;
20430 esac
20431 ;;
20432
20433 cygwin* | mingw* | pw32* | cegcc*)
20434 case $GXX,$cc_basename in
20435 ,cl* | no,cl*)
20436 # Native MSVC
20437 # hardcode_libdir_flag_spec is actually meaningless, as there is
20438 # no search path for DLLs.
20439 hardcode_libdir_flag_spec_CXX=' '
20440 allow_undefined_flag_CXX=unsupported
20441 always_export_symbols_CXX=yes
20442 file_list_spec_CXX='@'
20443 # Tell ltmain to make .lib files, not .a files.
20444 libext=lib
20445 # Tell ltmain to make .dll files, not .so files.
20446 shrext_cmds=.dll
20447 # FIXME: Setting linknames here is a bad hack.
20448 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
20449 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
20450 cp "$export_symbols" "$output_objdir/$soname.def";
20451 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
20452 else
20453 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
20454 fi~
20455 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
20456 linknames='
20457 # The linker will not automatically build a static lib if we build a DLL.
20458 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
20459 enable_shared_with_static_runtimes_CXX=yes
20460 # Don't use ranlib
20461 old_postinstall_cmds_CXX='chmod 644 $oldlib'
20462 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
20463 lt_tool_outputfile="@TOOL_OUTPUT@"~
20464 case $lt_outputfile in
20465 *.exe|*.EXE) ;;
20466 *)
20467 lt_outputfile=$lt_outputfile.exe
20468 lt_tool_outputfile=$lt_tool_outputfile.exe
20469 ;;
20470 esac~
20471 func_to_tool_file "$lt_outputfile"~
20472 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
20473 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
20474 $RM "$lt_outputfile.manifest";
20475 fi'
20476 ;;
20477 *)
20478 # g++
20479 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20480 # as there is no search path for DLLs.
20481 hardcode_libdir_flag_spec_CXX='-L$libdir'
20482 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
20483 allow_undefined_flag_CXX=unsupported
20484 always_export_symbols_CXX=no
20485 enable_shared_with_static_runtimes_CXX=yes
20486
20487 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20488 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'
20489 # If the export-symbols file already is a .def file, use it as
20490 # is; otherwise, prepend EXPORTS...
20491 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
20492 cp $export_symbols $output_objdir/$soname.def;
20493 else
20494 echo EXPORTS > $output_objdir/$soname.def;
20495 cat $export_symbols >> $output_objdir/$soname.def;
20496 fi~
20497 $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'
20498 else
20499 ld_shlibs_CXX=no
20500 fi
20501 ;;
20502 esac
20503 ;;
20504 darwin* | rhapsody*)
20505
20506
20507 archive_cmds_need_lc_CXX=no
20508 hardcode_direct_CXX=no
20509 hardcode_automatic_CXX=yes
20510 hardcode_shlibpath_var_CXX=unsupported
20511 if test yes = "$lt_cv_ld_force_load"; then
20512 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\"`'
20513
20514 else
20515 whole_archive_flag_spec_CXX=''
20516 fi
20517 link_all_deplibs_CXX=yes
20518 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
20519 case $cc_basename in
20520 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
20521 *) _lt_dar_can_shared=$GCC ;;
20522 esac
20523 if test yes = "$_lt_dar_can_shared"; then
20524 output_verbose_link_cmd=func_echo_all
20525 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"
20526 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
20527 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"
20528 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"
20529 if test yes != "$lt_cv_apple_cc_single_mod"; then
20530 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"
20531 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"
20532 fi
20533
20534 else
20535 ld_shlibs_CXX=no
20536 fi
20537
20538 ;;
20539
20540 os2*)
20541 hardcode_libdir_flag_spec_CXX='-L$libdir'
20542 hardcode_minus_L_CXX=yes
20543 allow_undefined_flag_CXX=unsupported
20544 shrext_cmds=.dll
20545 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20546 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20547 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20548 $ECHO EXPORTS >> $output_objdir/$libname.def~
20549 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
20550 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20551 emximp -o $lib $output_objdir/$libname.def'
20552 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20553 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20554 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20555 $ECHO EXPORTS >> $output_objdir/$libname.def~
20556 prefix_cmds="$SED"~
20557 if test EXPORTS = "`$SED 1q $export_symbols`"; then
20558 prefix_cmds="$prefix_cmds -e 1d";
20559 fi~
20560 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
20561 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
20562 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20563 emximp -o $lib $output_objdir/$libname.def'
20564 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
20565 enable_shared_with_static_runtimes_CXX=yes
20566 ;;
20567
20568 dgux*)
20569 case $cc_basename in
20570 ec++*)
20571 # FIXME: insert proper C++ library support
20572 ld_shlibs_CXX=no
20573 ;;
20574 ghcx*)
20575 # Green Hills C++ Compiler
20576 # FIXME: insert proper C++ library support
20577 ld_shlibs_CXX=no
20578 ;;
20579 *)
20580 # FIXME: insert proper C++ library support
20581 ld_shlibs_CXX=no
20582 ;;
20583 esac
20584 ;;
20585
20586 freebsd2.*)
20587 # C++ shared libraries reported to be fairly broken before
20588 # switch to ELF
20589 ld_shlibs_CXX=no
20590 ;;
20591
20592 freebsd-elf*)
20593 archive_cmds_need_lc_CXX=no
20594 ;;
20595
20596 freebsd* | dragonfly*)
20597 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20598 # conventions
20599 ld_shlibs_CXX=yes
20600 ;;
20601
20602 haiku*)
20603 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20604 link_all_deplibs_CXX=yes
20605 ;;
20606
20607 hpux9*)
20608 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
20609 hardcode_libdir_separator_CXX=:
20610 export_dynamic_flag_spec_CXX='$wl-E'
20611 hardcode_direct_CXX=yes
20612 hardcode_minus_L_CXX=yes # Not in the search PATH,
20613 # but as the default
20614 # location of the library.
20615
20616 case $cc_basename in
20617 CC*)
20618 # FIXME: insert proper C++ library support
20619 ld_shlibs_CXX=no
20620 ;;
20621 aCC*)
20622 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
20623 # Commands to make compiler produce verbose output that lists
20624 # what "hidden" libraries, object files and flags are used when
20625 # linking a shared library.
20626 #
20627 # There doesn't appear to be a way to prevent this compiler from
20628 # explicitly linking system object files so we need to strip them
20629 # from the output so that they don't get included in the library
20630 # dependencies.
20631 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"'
20632 ;;
20633 *)
20634 if test yes = "$GXX"; then
20635 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
20636 else
20637 # FIXME: insert proper C++ library support
20638 ld_shlibs_CXX=no
20639 fi
20640 ;;
20641 esac
20642 ;;
20643
20644 hpux10*|hpux11*)
20645 if test no = "$with_gnu_ld"; then
20646 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
20647 hardcode_libdir_separator_CXX=:
20648
20649 case $host_cpu in
20650 hppa*64*|ia64*)
20651 ;;
20652 *)
20653 export_dynamic_flag_spec_CXX='$wl-E'
20654 ;;
20655 esac
20656 fi
20657 case $host_cpu in
20658 hppa*64*|ia64*)
20659 hardcode_direct_CXX=no
20660 hardcode_shlibpath_var_CXX=no
20661 ;;
20662 *)
20663 hardcode_direct_CXX=yes
20664 hardcode_direct_absolute_CXX=yes
20665 hardcode_minus_L_CXX=yes # Not in the search PATH,
20666 # but as the default
20667 # location of the library.
20668 ;;
20669 esac
20670
20671 case $cc_basename in
20672 CC*)
20673 # FIXME: insert proper C++ library support
20674 ld_shlibs_CXX=no
20675 ;;
20676 aCC*)
20677 case $host_cpu in
20678 hppa*64*)
20679 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20680 ;;
20681 ia64*)
20682 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20683 ;;
20684 *)
20685 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20686 ;;
20687 esac
20688 # Commands to make compiler produce verbose output that lists
20689 # what "hidden" libraries, object files and flags are used when
20690 # linking a shared library.
20691 #
20692 # There doesn't appear to be a way to prevent this compiler from
20693 # explicitly linking system object files so we need to strip them
20694 # from the output so that they don't get included in the library
20695 # dependencies.
20696 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"'
20697 ;;
20698 *)
20699 if test yes = "$GXX"; then
20700 if test no = "$with_gnu_ld"; then
20701 case $host_cpu in
20702 hppa*64*)
20703 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20704 ;;
20705 ia64*)
20706 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20707 ;;
20708 *)
20709 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'
20710 ;;
20711 esac
20712 fi
20713 else
20714 # FIXME: insert proper C++ library support
20715 ld_shlibs_CXX=no
20716 fi
20717 ;;
20718 esac
20719 ;;
20720
20721 interix[3-9]*)
20722 hardcode_direct_CXX=no
20723 hardcode_shlibpath_var_CXX=no
20724 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20725 export_dynamic_flag_spec_CXX='$wl-E'
20726 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20727 # Instead, shared libraries are loaded at an image base (0x10000000 by
20728 # default) and relocated if they conflict, which is a slow very memory
20729 # consuming and fragmenting process. To avoid this, we pick a random,
20730 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20731 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20732 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'
20733 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'
20734 ;;
20735 irix5* | irix6*)
20736 case $cc_basename in
20737 CC*)
20738 # SGI C++
20739 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'
20740
20741 # Archives containing C++ object files must be created using
20742 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20743 # necessary to make sure instantiated templates are included
20744 # in the archive.
20745 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20746 ;;
20747 *)
20748 if test yes = "$GXX"; then
20749 if test no = "$with_gnu_ld"; then
20750 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'
20751 else
20752 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'
20753 fi
20754 fi
20755 link_all_deplibs_CXX=yes
20756 ;;
20757 esac
20758 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20759 hardcode_libdir_separator_CXX=:
20760 inherit_rpath_CXX=yes
20761 ;;
20762
20763 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20764 case $cc_basename in
20765 KCC*)
20766 # Kuck and Associates, Inc. (KAI) C++ Compiler
20767
20768 # KCC will only create a shared library if the output file
20769 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20770 # to its proper name (with version) after linking.
20771 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'
20772 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'
20773 # Commands to make compiler produce verbose output that lists
20774 # what "hidden" libraries, object files and flags are used when
20775 # linking a shared library.
20776 #
20777 # There doesn't appear to be a way to prevent this compiler from
20778 # explicitly linking system object files so we need to strip them
20779 # from the output so that they don't get included in the library
20780 # dependencies.
20781 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"'
20782
20783 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20784 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20785
20786 # Archives containing C++ object files must be created using
20787 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20788 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20789 ;;
20790 icpc* | ecpc* )
20791 # Intel C++
20792 with_gnu_ld=yes
20793 # version 8.0 and above of icpc choke on multiply defined symbols
20794 # if we add $predep_objects and $postdep_objects, however 7.1 and
20795 # earlier do not add the objects themselves.
20796 case `$CC -V 2>&1` in
20797 *"Version 7."*)
20798 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20799 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'
20800 ;;
20801 *) # Version 8.0 or newer
20802 tmp_idyn=
20803 case $host_cpu in
20804 ia64*) tmp_idyn=' -i_dynamic';;
20805 esac
20806 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20807 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'
20808 ;;
20809 esac
20810 archive_cmds_need_lc_CXX=no
20811 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20812 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20813 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
20814 ;;
20815 pgCC* | pgcpp*)
20816 # Portland Group C++ compiler
20817 case `$CC -V` in
20818 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20819 prelink_cmds_CXX='tpldir=Template.dir~
20820 rm -rf $tpldir~
20821 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20822 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20823 old_archive_cmds_CXX='tpldir=Template.dir~
20824 rm -rf $tpldir~
20825 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20826 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20827 $RANLIB $oldlib'
20828 archive_cmds_CXX='tpldir=Template.dir~
20829 rm -rf $tpldir~
20830 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20831 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20832 archive_expsym_cmds_CXX='tpldir=Template.dir~
20833 rm -rf $tpldir~
20834 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20835 $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'
20836 ;;
20837 *) # Version 6 and above use weak symbols
20838 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20839 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'
20840 ;;
20841 esac
20842
20843 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
20844 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20845 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'
20846 ;;
20847 cxx*)
20848 # Compaq C++
20849 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20850 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'
20851
20852 runpath_var=LD_RUN_PATH
20853 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20854 hardcode_libdir_separator_CXX=:
20855
20856 # Commands to make compiler produce verbose output that lists
20857 # what "hidden" libraries, object files and flags are used when
20858 # linking a shared library.
20859 #
20860 # There doesn't appear to be a way to prevent this compiler from
20861 # explicitly linking system object files so we need to strip them
20862 # from the output so that they don't get included in the library
20863 # dependencies.
20864 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'
20865 ;;
20866 xl* | mpixl* | bgxl*)
20867 # IBM XL 8.0 on PPC, with GNU ld
20868 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20869 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20870 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20871 if test yes = "$supports_anon_versioning"; then
20872 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20873 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20874 echo "local: *; };" >> $output_objdir/$libname.ver~
20875 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
20876 fi
20877 ;;
20878 *)
20879 case `$CC -V 2>&1 | sed 5q` in
20880 *Sun\ C*)
20881 # Sun C++ 5.9
20882 no_undefined_flag_CXX=' -zdefs'
20883 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20884 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'
20885 hardcode_libdir_flag_spec_CXX='-R$libdir'
20886 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'
20887 compiler_needs_object_CXX=yes
20888
20889 # Not sure whether something based on
20890 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20891 # would be better.
20892 output_verbose_link_cmd='func_echo_all'
20893
20894 # Archives containing C++ object files must be created using
20895 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20896 # necessary to make sure instantiated templates are included
20897 # in the archive.
20898 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20899 ;;
20900 esac
20901 ;;
20902 esac
20903 ;;
20904
20905 lynxos*)
20906 # FIXME: insert proper C++ library support
20907 ld_shlibs_CXX=no
20908 ;;
20909
20910 m88k*)
20911 # FIXME: insert proper C++ library support
20912 ld_shlibs_CXX=no
20913 ;;
20914
20915 mvs*)
20916 case $cc_basename in
20917 cxx*)
20918 # FIXME: insert proper C++ library support
20919 ld_shlibs_CXX=no
20920 ;;
20921 *)
20922 # FIXME: insert proper C++ library support
20923 ld_shlibs_CXX=no
20924 ;;
20925 esac
20926 ;;
20927
20928 netbsd*)
20929 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20930 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20931 wlarc=
20932 hardcode_libdir_flag_spec_CXX='-R$libdir'
20933 hardcode_direct_CXX=yes
20934 hardcode_shlibpath_var_CXX=no
20935 fi
20936 # Workaround some broken pre-1.5 toolchains
20937 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20938 ;;
20939
20940 *nto* | *qnx*)
20941 ld_shlibs_CXX=yes
20942 ;;
20943
20944 openbsd* | bitrig*)
20945 if test -f /usr/libexec/ld.so; then
20946 hardcode_direct_CXX=yes
20947 hardcode_shlibpath_var_CXX=no
20948 hardcode_direct_absolute_CXX=yes
20949 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20950 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20951 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
20952 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
20953 export_dynamic_flag_spec_CXX='$wl-E'
20954 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
20955 fi
20956 output_verbose_link_cmd=func_echo_all
20957 else
20958 ld_shlibs_CXX=no
20959 fi
20960 ;;
20961
20962 osf3* | osf4* | osf5*)
20963 case $cc_basename in
20964 KCC*)
20965 # Kuck and Associates, Inc. (KAI) C++ Compiler
20966
20967 # KCC will only create a shared library if the output file
20968 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20969 # to its proper name (with version) after linking.
20970 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'
20971
20972 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20973 hardcode_libdir_separator_CXX=:
20974
20975 # Archives containing C++ object files must be created using
20976 # the KAI C++ compiler.
20977 case $host in
20978 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20979 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20980 esac
20981 ;;
20982 RCC*)
20983 # Rational C++ 2.4.1
20984 # FIXME: insert proper C++ library support
20985 ld_shlibs_CXX=no
20986 ;;
20987 cxx*)
20988 case $host in
20989 osf3*)
20990 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
20991 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'
20992 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20993 ;;
20994 *)
20995 allow_undefined_flag_CXX=' -expect_unresolved \*'
20996 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'
20997 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20998 echo "-hidden">> $lib.exp~
20999 $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~
21000 $RM $lib.exp'
21001 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21002 ;;
21003 esac
21004
21005 hardcode_libdir_separator_CXX=:
21006
21007 # Commands to make compiler produce verbose output that lists
21008 # what "hidden" libraries, object files and flags are used when
21009 # linking a shared library.
21010 #
21011 # There doesn't appear to be a way to prevent this compiler from
21012 # explicitly linking system object files so we need to strip them
21013 # from the output so that they don't get included in the library
21014 # dependencies.
21015 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"'
21016 ;;
21017 *)
21018 if test yes,no = "$GXX,$with_gnu_ld"; then
21019 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
21020 case $host in
21021 osf3*)
21022 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'
21023 ;;
21024 *)
21025 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'
21026 ;;
21027 esac
21028
21029 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
21030 hardcode_libdir_separator_CXX=:
21031
21032 # Commands to make compiler produce verbose output that lists
21033 # what "hidden" libraries, object files and flags are used when
21034 # linking a shared library.
21035 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21036
21037 else
21038 # FIXME: insert proper C++ library support
21039 ld_shlibs_CXX=no
21040 fi
21041 ;;
21042 esac
21043 ;;
21044
21045 psos*)
21046 # FIXME: insert proper C++ library support
21047 ld_shlibs_CXX=no
21048 ;;
21049
21050 sunos4*)
21051 case $cc_basename in
21052 CC*)
21053 # Sun C++ 4.x
21054 # FIXME: insert proper C++ library support
21055 ld_shlibs_CXX=no
21056 ;;
21057 lcc*)
21058 # Lucid
21059 # FIXME: insert proper C++ library support
21060 ld_shlibs_CXX=no
21061 ;;
21062 *)
21063 # FIXME: insert proper C++ library support
21064 ld_shlibs_CXX=no
21065 ;;
21066 esac
21067 ;;
21068
21069 solaris*)
21070 case $cc_basename in
21071 CC* | sunCC*)
21072 # Sun C++ 4.2, 5.x and Centerline C++
21073 archive_cmds_need_lc_CXX=yes
21074 no_undefined_flag_CXX=' -zdefs'
21075 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21076 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21077 $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'
21078
21079 hardcode_libdir_flag_spec_CXX='-R$libdir'
21080 hardcode_shlibpath_var_CXX=no
21081 case $host_os in
21082 solaris2.[0-5] | solaris2.[0-5].*) ;;
21083 *)
21084 # The compiler driver will combine and reorder linker options,
21085 # but understands '-z linker_flag'.
21086 # Supported since Solaris 2.6 (maybe 2.5.1?)
21087 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21088 ;;
21089 esac
21090 link_all_deplibs_CXX=yes
21091
21092 output_verbose_link_cmd='func_echo_all'
21093
21094 # Archives containing C++ object files must be created using
21095 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21096 # necessary to make sure instantiated templates are included
21097 # in the archive.
21098 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21099 ;;
21100 gcx*)
21101 # Green Hills C++ Compiler
21102 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
21103
21104 # The C++ compiler must be used to create the archive.
21105 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21106 ;;
21107 *)
21108 # GNU C++ compiler with Solaris linker
21109 if test yes,no = "$GXX,$with_gnu_ld"; then
21110 no_undefined_flag_CXX=' $wl-z ${wl}defs'
21111 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
21112 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
21113 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21114 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21115
21116 # Commands to make compiler produce verbose output that lists
21117 # what "hidden" libraries, object files and flags are used when
21118 # linking a shared library.
21119 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21120 else
21121 # g++ 2.7 appears to require '-G' NOT '-shared' on this
21122 # platform.
21123 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
21124 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21125 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21126
21127 # Commands to make compiler produce verbose output that lists
21128 # what "hidden" libraries, object files and flags are used when
21129 # linking a shared library.
21130 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21131 fi
21132
21133 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
21134 case $host_os in
21135 solaris2.[0-5] | solaris2.[0-5].*) ;;
21136 *)
21137 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
21138 ;;
21139 esac
21140 fi
21141 ;;
21142 esac
21143 ;;
21144
21145 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21146 no_undefined_flag_CXX='$wl-z,text'
21147 archive_cmds_need_lc_CXX=no
21148 hardcode_shlibpath_var_CXX=no
21149 runpath_var='LD_RUN_PATH'
21150
21151 case $cc_basename in
21152 CC*)
21153 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21154 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21155 ;;
21156 *)
21157 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21158 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21159 ;;
21160 esac
21161 ;;
21162
21163 sysv5* | sco3.2v5* | sco5v6*)
21164 # Note: We CANNOT use -z defs as we might desire, because we do not
21165 # link with -lc, and that would cause any symbols used from libc to
21166 # always be unresolved, which means just about no library would
21167 # ever link correctly. If we're not using GNU ld we use -z text
21168 # though, which does catch some bad symbols but isn't as heavy-handed
21169 # as -z defs.
21170 no_undefined_flag_CXX='$wl-z,text'
21171 allow_undefined_flag_CXX='$wl-z,nodefs'
21172 archive_cmds_need_lc_CXX=no
21173 hardcode_shlibpath_var_CXX=no
21174 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
21175 hardcode_libdir_separator_CXX=':'
21176 link_all_deplibs_CXX=yes
21177 export_dynamic_flag_spec_CXX='$wl-Bexport'
21178 runpath_var='LD_RUN_PATH'
21179
21180 case $cc_basename in
21181 CC*)
21182 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21183 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21184 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21185 '"$old_archive_cmds_CXX"
21186 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21187 '"$reload_cmds_CXX"
21188 ;;
21189 *)
21190 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21191 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21192 ;;
21193 esac
21194 ;;
21195
21196 tandem*)
21197 case $cc_basename in
21198 NCC*)
21199 # NonStop-UX NCC 3.20
21200 # FIXME: insert proper C++ library support
21201 ld_shlibs_CXX=no
21202 ;;
21203 *)
21204 # FIXME: insert proper C++ library support
21205 ld_shlibs_CXX=no
21206 ;;
21207 esac
21208 ;;
21209
21210 vxworks*)
21211 # FIXME: insert proper C++ library support
21212 ld_shlibs_CXX=no
21213 ;;
21214
21215 *)
21216 # FIXME: insert proper C++ library support
21217 ld_shlibs_CXX=no
21218 ;;
21219 esac
21220
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21222 $as_echo "$ld_shlibs_CXX" >&6; }
21223 test no = "$ld_shlibs_CXX" && can_build_shared=no
21224
21225 GCC_CXX=$GXX
21226 LD_CXX=$LD
21227
21228 ## CAVEAT EMPTOR:
21229 ## There is no encapsulation within the following macros, do not change
21230 ## the running order or otherwise move them around unless you know exactly
21231 ## what you are doing...
21232 # Dependencies to place before and after the object being linked:
21233 predep_objects_CXX=
21234 postdep_objects_CXX=
21235 predeps_CXX=
21236 postdeps_CXX=
21237 compiler_lib_search_path_CXX=
21238
21239 cat > conftest.$ac_ext <<_LT_EOF
21240 class Foo
21241 {
21242 public:
21243 Foo (void) { a = 0; }
21244 private:
21245 int a;
21246 };
21247 _LT_EOF
21248
21249
21250 _lt_libdeps_save_CFLAGS=$CFLAGS
21251 case "$CC $CFLAGS " in #(
21252 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
21253 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
21254 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
21255 esac
21256
21257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21258 (eval $ac_compile) 2>&5
21259 ac_status=$?
21260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21261 test $ac_status = 0; }; then
21262 # Parse the compiler output and extract the necessary
21263 # objects, libraries and library flags.
21264
21265 # Sentinel used to keep track of whether or not we are before
21266 # the conftest object file.
21267 pre_test_object_deps_done=no
21268
21269 for p in `eval "$output_verbose_link_cmd"`; do
21270 case $prev$p in
21271
21272 -L* | -R* | -l*)
21273 # Some compilers place space between "-{L,R}" and the path.
21274 # Remove the space.
21275 if test x-L = "$p" ||
21276 test x-R = "$p"; then
21277 prev=$p
21278 continue
21279 fi
21280
21281 # Expand the sysroot to ease extracting the directories later.
21282 if test -z "$prev"; then
21283 case $p in
21284 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
21285 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
21286 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
21287 esac
21288 fi
21289 case $p in
21290 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
21291 esac
21292 if test no = "$pre_test_object_deps_done"; then
21293 case $prev in
21294 -L | -R)
21295 # Internal compiler library paths should come after those
21296 # provided the user. The postdeps already come after the
21297 # user supplied libs so there is no need to process them.
21298 if test -z "$compiler_lib_search_path_CXX"; then
21299 compiler_lib_search_path_CXX=$prev$p
21300 else
21301 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
21302 fi
21303 ;;
21304 # The "-l" case would never come before the object being
21305 # linked, so don't bother handling this case.
21306 esac
21307 else
21308 if test -z "$postdeps_CXX"; then
21309 postdeps_CXX=$prev$p
21310 else
21311 postdeps_CXX="${postdeps_CXX} $prev$p"
21312 fi
21313 fi
21314 prev=
21315 ;;
21316
21317 *.lto.$objext) ;; # Ignore GCC LTO objects
21318 *.$objext)
21319 # This assumes that the test object file only shows up
21320 # once in the compiler output.
21321 if test "$p" = "conftest.$objext"; then
21322 pre_test_object_deps_done=yes
21323 continue
21324 fi
21325
21326 if test no = "$pre_test_object_deps_done"; then
21327 if test -z "$predep_objects_CXX"; then
21328 predep_objects_CXX=$p
21329 else
21330 predep_objects_CXX="$predep_objects_CXX $p"
21331 fi
21332 else
21333 if test -z "$postdep_objects_CXX"; then
21334 postdep_objects_CXX=$p
21335 else
21336 postdep_objects_CXX="$postdep_objects_CXX $p"
21337 fi
21338 fi
21339 ;;
21340
21341 *) ;; # Ignore the rest.
21342
21343 esac
21344 done
21345
21346 # Clean up.
21347 rm -f a.out a.exe
21348 else
21349 echo "libtool.m4: error: problem compiling CXX test program"
21350 fi
21351
21352 $RM -f confest.$objext
21353 CFLAGS=$_lt_libdeps_save_CFLAGS
21354
21355 # PORTME: override above test on systems where it is broken
21356 case $host_os in
21357 interix[3-9]*)
21358 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21359 # hack all around it, let's just trust "g++" to DTRT.
21360 predep_objects_CXX=
21361 postdep_objects_CXX=
21362 postdeps_CXX=
21363 ;;
21364 esac
21365
21366
21367 case " $postdeps_CXX " in
21368 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21369 esac
21370 compiler_lib_search_dirs_CXX=
21371 if test -n "${compiler_lib_search_path_CXX}"; then
21372 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
21373 fi
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402
21403
21404
21405 lt_prog_compiler_wl_CXX=
21406 lt_prog_compiler_pic_CXX=
21407 lt_prog_compiler_static_CXX=
21408
21409
21410 # C++ specific cases for pic, static, wl, etc.
21411 if test yes = "$GXX"; then
21412 lt_prog_compiler_wl_CXX='-Wl,'
21413 lt_prog_compiler_static_CXX='-static'
21414
21415 case $host_os in
21416 aix*)
21417 # All AIX code is PIC.
21418 if test ia64 = "$host_cpu"; then
21419 # AIX 5 now supports IA64 processor
21420 lt_prog_compiler_static_CXX='-Bstatic'
21421 fi
21422 lt_prog_compiler_pic_CXX='-fPIC'
21423 ;;
21424
21425 amigaos*)
21426 case $host_cpu in
21427 powerpc)
21428 # see comment about AmigaOS4 .so support
21429 lt_prog_compiler_pic_CXX='-fPIC'
21430 ;;
21431 m68k)
21432 # FIXME: we need at least 68020 code to build shared libraries, but
21433 # adding the '-m68020' flag to GCC prevents building anything better,
21434 # like '-m68040'.
21435 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21436 ;;
21437 esac
21438 ;;
21439
21440 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21441 # PIC is the default for these OSes.
21442 ;;
21443 mingw* | cygwin* | os2* | pw32* | cegcc*)
21444 # This hack is so that the source file can tell whether it is being
21445 # built for inclusion in a dll (and should export symbols for example).
21446 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21447 # (--disable-auto-import) libraries
21448 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21449 case $host_os in
21450 os2*)
21451 lt_prog_compiler_static_CXX='$wl-static'
21452 ;;
21453 esac
21454 ;;
21455 darwin* | rhapsody*)
21456 # PIC is the default on this platform
21457 # Common symbols not allowed in MH_DYLIB files
21458 lt_prog_compiler_pic_CXX='-fno-common'
21459 ;;
21460 *djgpp*)
21461 # DJGPP does not support shared libraries at all
21462 lt_prog_compiler_pic_CXX=
21463 ;;
21464 haiku*)
21465 # PIC is the default for Haiku.
21466 # The "-static" flag exists, but is broken.
21467 lt_prog_compiler_static_CXX=
21468 ;;
21469 interix[3-9]*)
21470 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21471 # Instead, we relocate shared libraries at runtime.
21472 ;;
21473 sysv4*MP*)
21474 if test -d /usr/nec; then
21475 lt_prog_compiler_pic_CXX=-Kconform_pic
21476 fi
21477 ;;
21478 hpux*)
21479 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21480 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21481 # sets the default TLS model and affects inlining.
21482 case $host_cpu in
21483 hppa*64*)
21484 ;;
21485 *)
21486 lt_prog_compiler_pic_CXX='-fPIC'
21487 ;;
21488 esac
21489 ;;
21490 *qnx* | *nto*)
21491 # QNX uses GNU C++, but need to define -shared option too, otherwise
21492 # it will coredump.
21493 lt_prog_compiler_pic_CXX='-fPIC -shared'
21494 ;;
21495 *)
21496 lt_prog_compiler_pic_CXX='-fPIC'
21497 ;;
21498 esac
21499 else
21500 case $host_os in
21501 aix[4-9]*)
21502 # All AIX code is PIC.
21503 if test ia64 = "$host_cpu"; then
21504 # AIX 5 now supports IA64 processor
21505 lt_prog_compiler_static_CXX='-Bstatic'
21506 else
21507 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21508 fi
21509 ;;
21510 chorus*)
21511 case $cc_basename in
21512 cxch68*)
21513 # Green Hills C++ Compiler
21514 # _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"
21515 ;;
21516 esac
21517 ;;
21518 mingw* | cygwin* | os2* | pw32* | cegcc*)
21519 # This hack is so that the source file can tell whether it is being
21520 # built for inclusion in a dll (and should export symbols for example).
21521 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21522 ;;
21523 dgux*)
21524 case $cc_basename in
21525 ec++*)
21526 lt_prog_compiler_pic_CXX='-KPIC'
21527 ;;
21528 ghcx*)
21529 # Green Hills C++ Compiler
21530 lt_prog_compiler_pic_CXX='-pic'
21531 ;;
21532 *)
21533 ;;
21534 esac
21535 ;;
21536 freebsd* | dragonfly*)
21537 # FreeBSD uses GNU C++
21538 ;;
21539 hpux9* | hpux10* | hpux11*)
21540 case $cc_basename in
21541 CC*)
21542 lt_prog_compiler_wl_CXX='-Wl,'
21543 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
21544 if test ia64 != "$host_cpu"; then
21545 lt_prog_compiler_pic_CXX='+Z'
21546 fi
21547 ;;
21548 aCC*)
21549 lt_prog_compiler_wl_CXX='-Wl,'
21550 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
21551 case $host_cpu in
21552 hppa*64*|ia64*)
21553 # +Z the default
21554 ;;
21555 *)
21556 lt_prog_compiler_pic_CXX='+Z'
21557 ;;
21558 esac
21559 ;;
21560 *)
21561 ;;
21562 esac
21563 ;;
21564 interix*)
21565 # This is c89, which is MS Visual C++ (no shared libs)
21566 # Anyone wants to do a port?
21567 ;;
21568 irix5* | irix6* | nonstopux*)
21569 case $cc_basename in
21570 CC*)
21571 lt_prog_compiler_wl_CXX='-Wl,'
21572 lt_prog_compiler_static_CXX='-non_shared'
21573 # CC pic flag -KPIC is the default.
21574 ;;
21575 *)
21576 ;;
21577 esac
21578 ;;
21579 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
21580 case $cc_basename in
21581 KCC*)
21582 # KAI C++ Compiler
21583 lt_prog_compiler_wl_CXX='--backend -Wl,'
21584 lt_prog_compiler_pic_CXX='-fPIC'
21585 ;;
21586 ecpc* )
21587 # old Intel C++ for x86_64, which still supported -KPIC.
21588 lt_prog_compiler_wl_CXX='-Wl,'
21589 lt_prog_compiler_pic_CXX='-KPIC'
21590 lt_prog_compiler_static_CXX='-static'
21591 ;;
21592 icpc* )
21593 # Intel C++, used to be incompatible with GCC.
21594 # ICC 10 doesn't accept -KPIC any more.
21595 lt_prog_compiler_wl_CXX='-Wl,'
21596 lt_prog_compiler_pic_CXX='-fPIC'
21597 lt_prog_compiler_static_CXX='-static'
21598 ;;
21599 pgCC* | pgcpp*)
21600 # Portland Group C++ compiler
21601 lt_prog_compiler_wl_CXX='-Wl,'
21602 lt_prog_compiler_pic_CXX='-fpic'
21603 lt_prog_compiler_static_CXX='-Bstatic'
21604 ;;
21605 cxx*)
21606 # Compaq C++
21607 # Make sure the PIC flag is empty. It appears that all Alpha
21608 # Linux and Compaq Tru64 Unix objects are PIC.
21609 lt_prog_compiler_pic_CXX=
21610 lt_prog_compiler_static_CXX='-non_shared'
21611 ;;
21612 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21613 # IBM XL 8.0, 9.0 on PPC and BlueGene
21614 lt_prog_compiler_wl_CXX='-Wl,'
21615 lt_prog_compiler_pic_CXX='-qpic'
21616 lt_prog_compiler_static_CXX='-qstaticlink'
21617 ;;
21618 *)
21619 case `$CC -V 2>&1 | sed 5q` in
21620 *Sun\ C*)
21621 # Sun C++ 5.9
21622 lt_prog_compiler_pic_CXX='-KPIC'
21623 lt_prog_compiler_static_CXX='-Bstatic'
21624 lt_prog_compiler_wl_CXX='-Qoption ld '
21625 ;;
21626 esac
21627 ;;
21628 esac
21629 ;;
21630 lynxos*)
21631 ;;
21632 m88k*)
21633 ;;
21634 mvs*)
21635 case $cc_basename in
21636 cxx*)
21637 lt_prog_compiler_pic_CXX='-W c,exportall'
21638 ;;
21639 *)
21640 ;;
21641 esac
21642 ;;
21643 netbsd*)
21644 ;;
21645 *qnx* | *nto*)
21646 # QNX uses GNU C++, but need to define -shared option too, otherwise
21647 # it will coredump.
21648 lt_prog_compiler_pic_CXX='-fPIC -shared'
21649 ;;
21650 osf3* | osf4* | osf5*)
21651 case $cc_basename in
21652 KCC*)
21653 lt_prog_compiler_wl_CXX='--backend -Wl,'
21654 ;;
21655 RCC*)
21656 # Rational C++ 2.4.1
21657 lt_prog_compiler_pic_CXX='-pic'
21658 ;;
21659 cxx*)
21660 # Digital/Compaq C++
21661 lt_prog_compiler_wl_CXX='-Wl,'
21662 # Make sure the PIC flag is empty. It appears that all Alpha
21663 # Linux and Compaq Tru64 Unix objects are PIC.
21664 lt_prog_compiler_pic_CXX=
21665 lt_prog_compiler_static_CXX='-non_shared'
21666 ;;
21667 *)
21668 ;;
21669 esac
21670 ;;
21671 psos*)
21672 ;;
21673 solaris*)
21674 case $cc_basename in
21675 CC* | sunCC*)
21676 # Sun C++ 4.2, 5.x and Centerline C++
21677 lt_prog_compiler_pic_CXX='-KPIC'
21678 lt_prog_compiler_static_CXX='-Bstatic'
21679 lt_prog_compiler_wl_CXX='-Qoption ld '
21680 ;;
21681 gcx*)
21682 # Green Hills C++ Compiler
21683 lt_prog_compiler_pic_CXX='-PIC'
21684 ;;
21685 *)
21686 ;;
21687 esac
21688 ;;
21689 sunos4*)
21690 case $cc_basename in
21691 CC*)
21692 # Sun C++ 4.x
21693 lt_prog_compiler_pic_CXX='-pic'
21694 lt_prog_compiler_static_CXX='-Bstatic'
21695 ;;
21696 lcc*)
21697 # Lucid
21698 lt_prog_compiler_pic_CXX='-pic'
21699 ;;
21700 *)
21701 ;;
21702 esac
21703 ;;
21704 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21705 case $cc_basename in
21706 CC*)
21707 lt_prog_compiler_wl_CXX='-Wl,'
21708 lt_prog_compiler_pic_CXX='-KPIC'
21709 lt_prog_compiler_static_CXX='-Bstatic'
21710 ;;
21711 esac
21712 ;;
21713 tandem*)
21714 case $cc_basename in
21715 NCC*)
21716 # NonStop-UX NCC 3.20
21717 lt_prog_compiler_pic_CXX='-KPIC'
21718 ;;
21719 *)
21720 ;;
21721 esac
21722 ;;
21723 vxworks*)
21724 ;;
21725 *)
21726 lt_prog_compiler_can_build_shared_CXX=no
21727 ;;
21728 esac
21729 fi
21730
21731 case $host_os in
21732 # For platforms that do not support PIC, -DPIC is meaningless:
21733 *djgpp*)
21734 lt_prog_compiler_pic_CXX=
21735 ;;
21736 *)
21737 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21738 ;;
21739 esac
21740
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21742 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21743 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
21744 $as_echo_n "(cached) " >&6
21745 else
21746 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
21747 fi
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
21749 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
21750 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
21751
21752 #
21753 # Check to make sure the PIC flag actually works.
21754 #
21755 if test -n "$lt_prog_compiler_pic_CXX"; then
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21757 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21758 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21759 $as_echo_n "(cached) " >&6
21760 else
21761 lt_cv_prog_compiler_pic_works_CXX=no
21762 ac_outfile=conftest.$ac_objext
21763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21764 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
21765 # Insert the option either (1) after the last *FLAGS variable, or
21766 # (2) before a word containing "conftest.", or (3) at the end.
21767 # Note that $ac_compile itself does not contain backslashes and begins
21768 # with a dollar sign (not a hyphen), so the echo should work correctly.
21769 # The option is referenced via a variable to avoid confusing sed.
21770 lt_compile=`echo "$ac_compile" | $SED \
21771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21773 -e 's:$: $lt_compiler_flag:'`
21774 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21775 (eval "$lt_compile" 2>conftest.err)
21776 ac_status=$?
21777 cat conftest.err >&5
21778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 if (exit $ac_status) && test -s "$ac_outfile"; then
21780 # The compiler can only warn and ignore the option if not recognized
21781 # So say no if there are warnings other than the usual output.
21782 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21784 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21785 lt_cv_prog_compiler_pic_works_CXX=yes
21786 fi
21787 fi
21788 $RM conftest*
21789
21790 fi
21791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21792 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21793
21794 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
21795 case $lt_prog_compiler_pic_CXX in
21796 "" | " "*) ;;
21797 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21798 esac
21799 else
21800 lt_prog_compiler_pic_CXX=
21801 lt_prog_compiler_can_build_shared_CXX=no
21802 fi
21803
21804 fi
21805
21806
21807
21808
21809
21810 #
21811 # Check to make sure the static flag actually works.
21812 #
21813 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21815 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21816 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21817 $as_echo_n "(cached) " >&6
21818 else
21819 lt_cv_prog_compiler_static_works_CXX=no
21820 save_LDFLAGS=$LDFLAGS
21821 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21822 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21823 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21824 # The linker can only warn and ignore the option if not recognized
21825 # So say no if there are warnings
21826 if test -s conftest.err; then
21827 # Append any errors to the config.log.
21828 cat conftest.err 1>&5
21829 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21830 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21831 if diff conftest.exp conftest.er2 >/dev/null; then
21832 lt_cv_prog_compiler_static_works_CXX=yes
21833 fi
21834 else
21835 lt_cv_prog_compiler_static_works_CXX=yes
21836 fi
21837 fi
21838 $RM -r conftest*
21839 LDFLAGS=$save_LDFLAGS
21840
21841 fi
21842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21843 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21844
21845 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
21846 :
21847 else
21848 lt_prog_compiler_static_CXX=
21849 fi
21850
21851
21852
21853
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21855 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21856 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21857 $as_echo_n "(cached) " >&6
21858 else
21859 lt_cv_prog_compiler_c_o_CXX=no
21860 $RM -r conftest 2>/dev/null
21861 mkdir conftest
21862 cd conftest
21863 mkdir out
21864 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21865
21866 lt_compiler_flag="-o out/conftest2.$ac_objext"
21867 # Insert the option either (1) after the last *FLAGS variable, or
21868 # (2) before a word containing "conftest.", or (3) at the end.
21869 # Note that $ac_compile itself does not contain backslashes and begins
21870 # with a dollar sign (not a hyphen), so the echo should work correctly.
21871 lt_compile=`echo "$ac_compile" | $SED \
21872 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21874 -e 's:$: $lt_compiler_flag:'`
21875 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21876 (eval "$lt_compile" 2>out/conftest.err)
21877 ac_status=$?
21878 cat out/conftest.err >&5
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21881 then
21882 # The compiler can only warn and ignore the option if not recognized
21883 # So say no if there are warnings
21884 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21885 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21886 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21887 lt_cv_prog_compiler_c_o_CXX=yes
21888 fi
21889 fi
21890 chmod u+w . 2>&5
21891 $RM conftest*
21892 # SGI C++ compiler will create directory out/ii_files/ for
21893 # template instantiation
21894 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21895 $RM out/* && rmdir out
21896 cd ..
21897 $RM -r conftest
21898 $RM conftest*
21899
21900 fi
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21902 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21903
21904
21905
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21907 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21908 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21909 $as_echo_n "(cached) " >&6
21910 else
21911 lt_cv_prog_compiler_c_o_CXX=no
21912 $RM -r conftest 2>/dev/null
21913 mkdir conftest
21914 cd conftest
21915 mkdir out
21916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21917
21918 lt_compiler_flag="-o out/conftest2.$ac_objext"
21919 # Insert the option either (1) after the last *FLAGS variable, or
21920 # (2) before a word containing "conftest.", or (3) at the end.
21921 # Note that $ac_compile itself does not contain backslashes and begins
21922 # with a dollar sign (not a hyphen), so the echo should work correctly.
21923 lt_compile=`echo "$ac_compile" | $SED \
21924 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21925 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21926 -e 's:$: $lt_compiler_flag:'`
21927 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21928 (eval "$lt_compile" 2>out/conftest.err)
21929 ac_status=$?
21930 cat out/conftest.err >&5
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21933 then
21934 # The compiler can only warn and ignore the option if not recognized
21935 # So say no if there are warnings
21936 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21937 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21938 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21939 lt_cv_prog_compiler_c_o_CXX=yes
21940 fi
21941 fi
21942 chmod u+w . 2>&5
21943 $RM conftest*
21944 # SGI C++ compiler will create directory out/ii_files/ for
21945 # template instantiation
21946 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21947 $RM out/* && rmdir out
21948 cd ..
21949 $RM -r conftest
21950 $RM conftest*
21951
21952 fi
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21954 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21955
21956
21957
21958
21959 hard_links=nottested
21960 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
21961 # do not overwrite the value of need_locks provided by the user
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21963 $as_echo_n "checking if we can lock with hard links... " >&6; }
21964 hard_links=yes
21965 $RM conftest*
21966 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21967 touch conftest.a
21968 ln conftest.a conftest.b 2>&5 || hard_links=no
21969 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21971 $as_echo "$hard_links" >&6; }
21972 if test no = "$hard_links"; then
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
21974 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
21975 need_locks=warn
21976 fi
21977 else
21978 need_locks=no
21979 fi
21980
21981
21982
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21984 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21985
21986 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21987 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21988 case $host_os in
21989 aix[4-9]*)
21990 # If we're using GNU nm, then we don't want the "-C" option.
21991 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
21992 # Without the "-l" option, or with the "-B" option, AIX nm treats
21993 # weak defined symbols like other global defined symbols, whereas
21994 # GNU nm marks them as "W".
21995 # While the 'weak' keyword is ignored in the Export File, we need
21996 # it in the Import File for the 'aix-soname' feature, so we have
21997 # to replace the "-B" option with "-P" for AIX nm.
21998 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21999 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
22000 else
22001 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
22002 fi
22003 ;;
22004 pw32*)
22005 export_symbols_cmds_CXX=$ltdll_cmds
22006 ;;
22007 cygwin* | mingw* | cegcc*)
22008 case $cc_basename in
22009 cl*)
22010 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
22011 ;;
22012 *)
22013 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'
22014 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
22015 ;;
22016 esac
22017 ;;
22018 *)
22019 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22020 ;;
22021 esac
22022
22023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22024 $as_echo "$ld_shlibs_CXX" >&6; }
22025 test no = "$ld_shlibs_CXX" && can_build_shared=no
22026
22027 with_gnu_ld_CXX=$with_gnu_ld
22028
22029
22030
22031
22032
22033
22034 #
22035 # Do we need to explicitly link libc?
22036 #
22037 case "x$archive_cmds_need_lc_CXX" in
22038 x|xyes)
22039 # Assume -lc should be added
22040 archive_cmds_need_lc_CXX=yes
22041
22042 if test yes,yes = "$GCC,$enable_shared"; then
22043 case $archive_cmds_CXX in
22044 *'~'*)
22045 # FIXME: we may have to deal with multi-command sequences.
22046 ;;
22047 '$CC '*)
22048 # Test whether the compiler implicitly links with -lc since on some
22049 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22050 # to ld, don't add -lc before -lgcc.
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22052 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22053 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
22054 $as_echo_n "(cached) " >&6
22055 else
22056 $RM conftest*
22057 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22058
22059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22060 (eval $ac_compile) 2>&5
22061 ac_status=$?
22062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22063 test $ac_status = 0; } 2>conftest.err; then
22064 soname=conftest
22065 lib=conftest
22066 libobjs=conftest.$ac_objext
22067 deplibs=
22068 wl=$lt_prog_compiler_wl_CXX
22069 pic_flag=$lt_prog_compiler_pic_CXX
22070 compiler_flags=-v
22071 linker_flags=-v
22072 verstring=
22073 output_objdir=.
22074 libname=conftest
22075 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22076 allow_undefined_flag_CXX=
22077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22078 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22079 ac_status=$?
22080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22081 test $ac_status = 0; }
22082 then
22083 lt_cv_archive_cmds_need_lc_CXX=no
22084 else
22085 lt_cv_archive_cmds_need_lc_CXX=yes
22086 fi
22087 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22088 else
22089 cat conftest.err 1>&5
22090 fi
22091 $RM conftest*
22092
22093 fi
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22095 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22096 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
22097 ;;
22098 esac
22099 fi
22100 ;;
22101 esac
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22165 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22166
22167 library_names_spec=
22168 libname_spec='lib$name'
22169 soname_spec=
22170 shrext_cmds=.so
22171 postinstall_cmds=
22172 postuninstall_cmds=
22173 finish_cmds=
22174 finish_eval=
22175 shlibpath_var=
22176 shlibpath_overrides_runpath=unknown
22177 version_type=none
22178 dynamic_linker="$host_os ld.so"
22179 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22180 need_lib_prefix=unknown
22181 hardcode_into_libs=no
22182
22183 # when you set need_version to no, make sure it does not cause -set_version
22184 # flags to be left without arguments
22185 need_version=unknown
22186
22187
22188
22189 case $host_os in
22190 aix3*)
22191 version_type=linux # correct to gnu/linux during the next big refactor
22192 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
22193 shlibpath_var=LIBPATH
22194
22195 # AIX 3 has no versioning support, so we append a major version to the name.
22196 soname_spec='$libname$release$shared_ext$major'
22197 ;;
22198
22199 aix[4-9]*)
22200 version_type=linux # correct to gnu/linux during the next big refactor
22201 need_lib_prefix=no
22202 need_version=no
22203 hardcode_into_libs=yes
22204 if test ia64 = "$host_cpu"; then
22205 # AIX 5 supports IA64
22206 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
22207 shlibpath_var=LD_LIBRARY_PATH
22208 else
22209 # With GCC up to 2.95.x, collect2 would create an import file
22210 # for dependence libraries. The import file would start with
22211 # the line '#! .'. This would cause the generated library to
22212 # depend on '.', always an invalid library. This was fixed in
22213 # development snapshots of GCC prior to 3.0.
22214 case $host_os in
22215 aix4 | aix4.[01] | aix4.[01].*)
22216 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22217 echo ' yes '
22218 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
22219 :
22220 else
22221 can_build_shared=no
22222 fi
22223 ;;
22224 esac
22225 # Using Import Files as archive members, it is possible to support
22226 # filename-based versioning of shared library archives on AIX. While
22227 # this would work for both with and without runtime linking, it will
22228 # prevent static linking of such archives. So we do filename-based
22229 # shared library versioning with .so extension only, which is used
22230 # when both runtime linking and shared linking is enabled.
22231 # Unfortunately, runtime linking may impact performance, so we do
22232 # not want this to be the default eventually. Also, we use the
22233 # versioned .so libs for executables only if there is the -brtl
22234 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
22235 # To allow for filename-based versioning support, we need to create
22236 # libNAME.so.V as an archive file, containing:
22237 # *) an Import File, referring to the versioned filename of the
22238 # archive as well as the shared archive member, telling the
22239 # bitwidth (32 or 64) of that shared object, and providing the
22240 # list of exported symbols of that shared object, eventually
22241 # decorated with the 'weak' keyword
22242 # *) the shared object with the F_LOADONLY flag set, to really avoid
22243 # it being seen by the linker.
22244 # At run time we better use the real file rather than another symlink,
22245 # but for link time we create the symlink libNAME.so -> libNAME.so.V
22246
22247 case $with_aix_soname,$aix_use_runtimelinking in
22248 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
22249 # soname into executable. Probably we can add versioning support to
22250 # collect2, so additional links can be useful in future.
22251 aix,yes) # traditional libtool
22252 dynamic_linker='AIX unversionable lib.so'
22253 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22254 # instead of lib<name>.a to let people know that these are not
22255 # typical AIX shared libraries.
22256 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22257 ;;
22258 aix,no) # traditional AIX only
22259 dynamic_linker='AIX lib.a(lib.so.V)'
22260 # We preserve .a as extension for shared libraries through AIX4.2
22261 # and later when we are not doing run time linking.
22262 library_names_spec='$libname$release.a $libname.a'
22263 soname_spec='$libname$release$shared_ext$major'
22264 ;;
22265 svr4,*) # full svr4 only
22266 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
22267 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
22268 # We do not specify a path in Import Files, so LIBPATH fires.
22269 shlibpath_overrides_runpath=yes
22270 ;;
22271 *,yes) # both, prefer svr4
22272 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
22273 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
22274 # unpreferred sharedlib libNAME.a needs extra handling
22275 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
22276 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
22277 # We do not specify a path in Import Files, so LIBPATH fires.
22278 shlibpath_overrides_runpath=yes
22279 ;;
22280 *,no) # both, prefer aix
22281 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
22282 library_names_spec='$libname$release.a $libname.a'
22283 soname_spec='$libname$release$shared_ext$major'
22284 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
22285 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
22286 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
22287 ;;
22288 esac
22289 shlibpath_var=LIBPATH
22290 fi
22291 ;;
22292
22293 amigaos*)
22294 case $host_cpu in
22295 powerpc)
22296 # Since July 2007 AmigaOS4 officially supports .so libraries.
22297 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22298 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22299 ;;
22300 m68k)
22301 library_names_spec='$libname.ixlibrary $libname.a'
22302 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22303 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
22304 ;;
22305 esac
22306 ;;
22307
22308 beos*)
22309 library_names_spec='$libname$shared_ext'
22310 dynamic_linker="$host_os ld.so"
22311 shlibpath_var=LIBRARY_PATH
22312 ;;
22313
22314 bsdi[45]*)
22315 version_type=linux # correct to gnu/linux during the next big refactor
22316 need_version=no
22317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22318 soname_spec='$libname$release$shared_ext$major'
22319 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22320 shlibpath_var=LD_LIBRARY_PATH
22321 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22322 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22323 # the default ld.so.conf also contains /usr/contrib/lib and
22324 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22325 # libtool to hard-code these into programs
22326 ;;
22327
22328 cygwin* | mingw* | pw32* | cegcc*)
22329 version_type=windows
22330 shrext_cmds=.dll
22331 need_version=no
22332 need_lib_prefix=no
22333
22334 case $GCC,$cc_basename in
22335 yes,*)
22336 # gcc
22337 library_names_spec='$libname.dll.a'
22338 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22339 postinstall_cmds='base_file=`basename \$file`~
22340 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
22341 dldir=$destdir/`dirname \$dlpath`~
22342 test -d \$dldir || mkdir -p \$dldir~
22343 $install_prog $dir/$dlname \$dldir/$dlname~
22344 chmod a+x \$dldir/$dlname~
22345 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22346 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22347 fi'
22348 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22349 dlpath=$dir/\$dldll~
22350 $RM \$dlpath'
22351 shlibpath_overrides_runpath=yes
22352
22353 case $host_os in
22354 cygwin*)
22355 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22356 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22357
22358 ;;
22359 mingw* | cegcc*)
22360 # MinGW DLLs use traditional 'lib' prefix
22361 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22362 ;;
22363 pw32*)
22364 # pw32 DLLs use 'pw' prefix rather than 'lib'
22365 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22366 ;;
22367 esac
22368 dynamic_linker='Win32 ld.exe'
22369 ;;
22370
22371 *,cl*)
22372 # Native MSVC
22373 libname_spec='$name'
22374 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22375 library_names_spec='$libname.dll.lib'
22376
22377 case $build_os in
22378 mingw*)
22379 sys_lib_search_path_spec=
22380 lt_save_ifs=$IFS
22381 IFS=';'
22382 for lt_path in $LIB
22383 do
22384 IFS=$lt_save_ifs
22385 # Let DOS variable expansion print the short 8.3 style file name.
22386 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
22387 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
22388 done
22389 IFS=$lt_save_ifs
22390 # Convert to MSYS style.
22391 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
22392 ;;
22393 cygwin*)
22394 # Convert to unix form, then to dos form, then back to unix form
22395 # but this time dos style (no spaces!) so that the unix form looks
22396 # like /cygdrive/c/PROGRA~1:/cygdr...
22397 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
22398 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
22399 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22400 ;;
22401 *)
22402 sys_lib_search_path_spec=$LIB
22403 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
22404 # It is most probably a Windows format PATH.
22405 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22406 else
22407 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22408 fi
22409 # FIXME: find the short name or the path components, as spaces are
22410 # common. (e.g. "Program Files" -> "PROGRA~1")
22411 ;;
22412 esac
22413
22414 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22415 postinstall_cmds='base_file=`basename \$file`~
22416 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
22417 dldir=$destdir/`dirname \$dlpath`~
22418 test -d \$dldir || mkdir -p \$dldir~
22419 $install_prog $dir/$dlname \$dldir/$dlname'
22420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22421 dlpath=$dir/\$dldll~
22422 $RM \$dlpath'
22423 shlibpath_overrides_runpath=yes
22424 dynamic_linker='Win32 link.exe'
22425 ;;
22426
22427 *)
22428 # Assume MSVC wrapper
22429 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
22430 dynamic_linker='Win32 ld.exe'
22431 ;;
22432 esac
22433 # FIXME: first we should search . and the directory the executable is in
22434 shlibpath_var=PATH
22435 ;;
22436
22437 darwin* | rhapsody*)
22438 dynamic_linker="$host_os dyld"
22439 version_type=darwin
22440 need_lib_prefix=no
22441 need_version=no
22442 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
22443 soname_spec='$libname$release$major$shared_ext'
22444 shlibpath_overrides_runpath=yes
22445 shlibpath_var=DYLD_LIBRARY_PATH
22446 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22447
22448 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22449 ;;
22450
22451 dgux*)
22452 version_type=linux # correct to gnu/linux during the next big refactor
22453 need_lib_prefix=no
22454 need_version=no
22455 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22456 soname_spec='$libname$release$shared_ext$major'
22457 shlibpath_var=LD_LIBRARY_PATH
22458 ;;
22459
22460 freebsd* | dragonfly*)
22461 # DragonFly does not have aout. When/if they implement a new
22462 # versioning mechanism, adjust this.
22463 if test -x /usr/bin/objformat; then
22464 objformat=`/usr/bin/objformat`
22465 else
22466 case $host_os in
22467 freebsd[23].*) objformat=aout ;;
22468 *) objformat=elf ;;
22469 esac
22470 fi
22471 version_type=freebsd-$objformat
22472 case $version_type in
22473 freebsd-elf*)
22474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22475 soname_spec='$libname$release$shared_ext$major'
22476 need_version=no
22477 need_lib_prefix=no
22478 ;;
22479 freebsd-*)
22480 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22481 need_version=yes
22482 ;;
22483 esac
22484 shlibpath_var=LD_LIBRARY_PATH
22485 case $host_os in
22486 freebsd2.*)
22487 shlibpath_overrides_runpath=yes
22488 ;;
22489 freebsd3.[01]* | freebsdelf3.[01]*)
22490 shlibpath_overrides_runpath=yes
22491 hardcode_into_libs=yes
22492 ;;
22493 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22494 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22495 shlibpath_overrides_runpath=no
22496 hardcode_into_libs=yes
22497 ;;
22498 *) # from 4.6 on, and DragonFly
22499 shlibpath_overrides_runpath=yes
22500 hardcode_into_libs=yes
22501 ;;
22502 esac
22503 ;;
22504
22505 haiku*)
22506 version_type=linux # correct to gnu/linux during the next big refactor
22507 need_lib_prefix=no
22508 need_version=no
22509 dynamic_linker="$host_os runtime_loader"
22510 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22511 soname_spec='$libname$release$shared_ext$major'
22512 shlibpath_var=LIBRARY_PATH
22513 shlibpath_overrides_runpath=no
22514 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
22515 hardcode_into_libs=yes
22516 ;;
22517
22518 hpux9* | hpux10* | hpux11*)
22519 # Give a soname corresponding to the major version so that dld.sl refuses to
22520 # link against other versions.
22521 version_type=sunos
22522 need_lib_prefix=no
22523 need_version=no
22524 case $host_cpu in
22525 ia64*)
22526 shrext_cmds='.so'
22527 hardcode_into_libs=yes
22528 dynamic_linker="$host_os dld.so"
22529 shlibpath_var=LD_LIBRARY_PATH
22530 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22532 soname_spec='$libname$release$shared_ext$major'
22533 if test 32 = "$HPUX_IA64_MODE"; then
22534 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22535 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
22536 else
22537 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22538 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
22539 fi
22540 ;;
22541 hppa*64*)
22542 shrext_cmds='.sl'
22543 hardcode_into_libs=yes
22544 dynamic_linker="$host_os dld.sl"
22545 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22546 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22548 soname_spec='$libname$release$shared_ext$major'
22549 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22551 ;;
22552 *)
22553 shrext_cmds='.sl'
22554 dynamic_linker="$host_os dld.sl"
22555 shlibpath_var=SHLIB_PATH
22556 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22558 soname_spec='$libname$release$shared_ext$major'
22559 ;;
22560 esac
22561 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22562 postinstall_cmds='chmod 555 $lib'
22563 # or fails outright, so override atomically:
22564 install_override_mode=555
22565 ;;
22566
22567 interix[3-9]*)
22568 version_type=linux # correct to gnu/linux during the next big refactor
22569 need_lib_prefix=no
22570 need_version=no
22571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22572 soname_spec='$libname$release$shared_ext$major'
22573 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22574 shlibpath_var=LD_LIBRARY_PATH
22575 shlibpath_overrides_runpath=no
22576 hardcode_into_libs=yes
22577 ;;
22578
22579 irix5* | irix6* | nonstopux*)
22580 case $host_os in
22581 nonstopux*) version_type=nonstopux ;;
22582 *)
22583 if test yes = "$lt_cv_prog_gnu_ld"; then
22584 version_type=linux # correct to gnu/linux during the next big refactor
22585 else
22586 version_type=irix
22587 fi ;;
22588 esac
22589 need_lib_prefix=no
22590 need_version=no
22591 soname_spec='$libname$release$shared_ext$major'
22592 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
22593 case $host_os in
22594 irix5* | nonstopux*)
22595 libsuff= shlibsuff=
22596 ;;
22597 *)
22598 case $LD in # libtool.m4 will add one of these switches to LD
22599 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22600 libsuff= shlibsuff= libmagic=32-bit;;
22601 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22602 libsuff=32 shlibsuff=N32 libmagic=N32;;
22603 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22604 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22605 *) libsuff= shlibsuff= libmagic=never-match;;
22606 esac
22607 ;;
22608 esac
22609 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22610 shlibpath_overrides_runpath=no
22611 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
22612 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
22613 hardcode_into_libs=yes
22614 ;;
22615
22616 # No shared lib support for Linux oldld, aout, or coff.
22617 linux*oldld* | linux*aout* | linux*coff*)
22618 dynamic_linker=no
22619 ;;
22620
22621 linux*android*)
22622 version_type=none # Android doesn't support versioned libraries.
22623 need_lib_prefix=no
22624 need_version=no
22625 library_names_spec='$libname$release$shared_ext'
22626 soname_spec='$libname$release$shared_ext'
22627 finish_cmds=
22628 shlibpath_var=LD_LIBRARY_PATH
22629 shlibpath_overrides_runpath=yes
22630
22631 # This implies no fast_install, which is unacceptable.
22632 # Some rework will be needed to allow for fast_install
22633 # before this can be enabled.
22634 hardcode_into_libs=yes
22635
22636 dynamic_linker='Android linker'
22637 # Don't embed -rpath directories since the linker doesn't support them.
22638 hardcode_libdir_flag_spec_CXX='-L$libdir'
22639 ;;
22640
22641 # This must be glibc/ELF.
22642 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
22643 version_type=linux # correct to gnu/linux during the next big refactor
22644 need_lib_prefix=no
22645 need_version=no
22646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22647 soname_spec='$libname$release$shared_ext$major'
22648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22649 shlibpath_var=LD_LIBRARY_PATH
22650 shlibpath_overrides_runpath=no
22651
22652 # Some binutils ld are patched to set DT_RUNPATH
22653 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22654 $as_echo_n "(cached) " >&6
22655 else
22656 lt_cv_shlibpath_overrides_runpath=no
22657 save_LDFLAGS=$LDFLAGS
22658 save_libdir=$libdir
22659 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22660 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22662 /* end confdefs.h. */
22663
22664 int
22665 main ()
22666 {
22667
22668 ;
22669 return 0;
22670 }
22671 _ACEOF
22672 if ac_fn_cxx_try_link "$LINENO"; then :
22673 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22674 lt_cv_shlibpath_overrides_runpath=yes
22675 fi
22676 fi
22677 rm -f core conftest.err conftest.$ac_objext \
22678 conftest$ac_exeext conftest.$ac_ext
22679 LDFLAGS=$save_LDFLAGS
22680 libdir=$save_libdir
22681
22682 fi
22683
22684 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22685
22686 # This implies no fast_install, which is unacceptable.
22687 # Some rework will be needed to allow for fast_install
22688 # before this can be enabled.
22689 hardcode_into_libs=yes
22690
22691 # Ideally, we could use ldconfig to report *all* directores which are
22692 # searched for libraries, however this is still not possible. Aside from not
22693 # being certain /sbin/ldconfig is available, command
22694 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
22695 # even though it is searched at run-time. Try to do the best guess by
22696 # appending ld.so.conf contents (and includes) to the search path.
22697 if test -f /etc/ld.so.conf; then
22698 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' ' '`
22699 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22700 fi
22701
22702 # We used to test for /lib/ld.so.1 and disable shared libraries on
22703 # powerpc, because MkLinux only supported shared libraries with the
22704 # GNU dynamic linker. Since this was broken with cross compilers,
22705 # most powerpc-linux boxes support dynamic linking these days and
22706 # people can always --disable-shared, the test was removed, and we
22707 # assume the GNU/Linux dynamic linker is in use.
22708 dynamic_linker='GNU/Linux ld.so'
22709 ;;
22710
22711 netbsd*)
22712 version_type=sunos
22713 need_lib_prefix=no
22714 need_version=no
22715 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22716 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22718 dynamic_linker='NetBSD (a.out) ld.so'
22719 else
22720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22721 soname_spec='$libname$release$shared_ext$major'
22722 dynamic_linker='NetBSD ld.elf_so'
22723 fi
22724 shlibpath_var=LD_LIBRARY_PATH
22725 shlibpath_overrides_runpath=yes
22726 hardcode_into_libs=yes
22727 ;;
22728
22729 newsos6)
22730 version_type=linux # correct to gnu/linux during the next big refactor
22731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22732 shlibpath_var=LD_LIBRARY_PATH
22733 shlibpath_overrides_runpath=yes
22734 ;;
22735
22736 *nto* | *qnx*)
22737 version_type=qnx
22738 need_lib_prefix=no
22739 need_version=no
22740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22741 soname_spec='$libname$release$shared_ext$major'
22742 shlibpath_var=LD_LIBRARY_PATH
22743 shlibpath_overrides_runpath=no
22744 hardcode_into_libs=yes
22745 dynamic_linker='ldqnx.so'
22746 ;;
22747
22748 openbsd* | bitrig*)
22749 version_type=sunos
22750 sys_lib_dlsearch_path_spec=/usr/lib
22751 need_lib_prefix=no
22752 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
22753 need_version=no
22754 else
22755 need_version=yes
22756 fi
22757 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22758 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22759 shlibpath_var=LD_LIBRARY_PATH
22760 shlibpath_overrides_runpath=yes
22761 ;;
22762
22763 os2*)
22764 libname_spec='$name'
22765 version_type=windows
22766 shrext_cmds=.dll
22767 need_version=no
22768 need_lib_prefix=no
22769 # OS/2 can only load a DLL with a base name of 8 characters or less.
22770 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
22771 v=$($ECHO $release$versuffix | tr -d .-);
22772 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
22773 $ECHO $n$v`$shared_ext'
22774 library_names_spec='${libname}_dll.$libext'
22775 dynamic_linker='OS/2 ld.exe'
22776 shlibpath_var=BEGINLIBPATH
22777 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22779 postinstall_cmds='base_file=`basename \$file`~
22780 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
22781 dldir=$destdir/`dirname \$dlpath`~
22782 test -d \$dldir || mkdir -p \$dldir~
22783 $install_prog $dir/$dlname \$dldir/$dlname~
22784 chmod a+x \$dldir/$dlname~
22785 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22786 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22787 fi'
22788 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
22789 dlpath=$dir/\$dldll~
22790 $RM \$dlpath'
22791 ;;
22792
22793 osf3* | osf4* | osf5*)
22794 version_type=osf
22795 need_lib_prefix=no
22796 need_version=no
22797 soname_spec='$libname$release$shared_ext$major'
22798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22799 shlibpath_var=LD_LIBRARY_PATH
22800 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22802 ;;
22803
22804 rdos*)
22805 dynamic_linker=no
22806 ;;
22807
22808 solaris*)
22809 version_type=linux # correct to gnu/linux during the next big refactor
22810 need_lib_prefix=no
22811 need_version=no
22812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22813 soname_spec='$libname$release$shared_ext$major'
22814 shlibpath_var=LD_LIBRARY_PATH
22815 shlibpath_overrides_runpath=yes
22816 hardcode_into_libs=yes
22817 # ldd complains unless libraries are executable
22818 postinstall_cmds='chmod +x $lib'
22819 ;;
22820
22821 sunos4*)
22822 version_type=sunos
22823 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22824 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22825 shlibpath_var=LD_LIBRARY_PATH
22826 shlibpath_overrides_runpath=yes
22827 if test yes = "$with_gnu_ld"; then
22828 need_lib_prefix=no
22829 fi
22830 need_version=yes
22831 ;;
22832
22833 sysv4 | sysv4.3*)
22834 version_type=linux # correct to gnu/linux during the next big refactor
22835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22836 soname_spec='$libname$release$shared_ext$major'
22837 shlibpath_var=LD_LIBRARY_PATH
22838 case $host_vendor in
22839 sni)
22840 shlibpath_overrides_runpath=no
22841 need_lib_prefix=no
22842 runpath_var=LD_RUN_PATH
22843 ;;
22844 siemens)
22845 need_lib_prefix=no
22846 ;;
22847 motorola)
22848 need_lib_prefix=no
22849 need_version=no
22850 shlibpath_overrides_runpath=no
22851 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22852 ;;
22853 esac
22854 ;;
22855
22856 sysv4*MP*)
22857 if test -d /usr/nec; then
22858 version_type=linux # correct to gnu/linux during the next big refactor
22859 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
22860 soname_spec='$libname$shared_ext.$major'
22861 shlibpath_var=LD_LIBRARY_PATH
22862 fi
22863 ;;
22864
22865 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22866 version_type=sco
22867 need_lib_prefix=no
22868 need_version=no
22869 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
22870 soname_spec='$libname$release$shared_ext$major'
22871 shlibpath_var=LD_LIBRARY_PATH
22872 shlibpath_overrides_runpath=yes
22873 hardcode_into_libs=yes
22874 if test yes = "$with_gnu_ld"; then
22875 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22876 else
22877 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22878 case $host_os in
22879 sco3.2v5*)
22880 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22881 ;;
22882 esac
22883 fi
22884 sys_lib_dlsearch_path_spec='/usr/lib'
22885 ;;
22886
22887 tpf*)
22888 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22889 version_type=linux # correct to gnu/linux during the next big refactor
22890 need_lib_prefix=no
22891 need_version=no
22892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22893 shlibpath_var=LD_LIBRARY_PATH
22894 shlibpath_overrides_runpath=no
22895 hardcode_into_libs=yes
22896 ;;
22897
22898 uts4*)
22899 version_type=linux # correct to gnu/linux during the next big refactor
22900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22901 soname_spec='$libname$release$shared_ext$major'
22902 shlibpath_var=LD_LIBRARY_PATH
22903 ;;
22904
22905 *)
22906 dynamic_linker=no
22907 ;;
22908 esac
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22910 $as_echo "$dynamic_linker" >&6; }
22911 test no = "$dynamic_linker" && can_build_shared=no
22912
22913 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22914 if test yes = "$GCC"; then
22915 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22916 fi
22917
22918 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
22919 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
22920 fi
22921
22922 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
22923 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
22924 fi
22925
22926 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
22927 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
22928
22929 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
22930 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
22931
22932 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
22933 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
22934
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946
22947
22948
22949
22950
22951
22952
22953
22954
22955
22956
22957
22958
22959
22960
22961
22962
22963
22964
22965
22966
22967
22968
22969
22970
22971
22972
22973
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22975 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22976 hardcode_action_CXX=
22977 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22978 test -n "$runpath_var_CXX" ||
22979 test yes = "$hardcode_automatic_CXX"; then
22980
22981 # We can hardcode non-existent directories.
22982 if test no != "$hardcode_direct_CXX" &&
22983 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22984 # have to relink, otherwise we might link with an installed library
22985 # when we should be linking with a yet-to-be-installed one
22986 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
22987 test no != "$hardcode_minus_L_CXX"; then
22988 # Linking always hardcodes the temporary library directory.
22989 hardcode_action_CXX=relink
22990 else
22991 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22992 hardcode_action_CXX=immediate
22993 fi
22994 else
22995 # We cannot hardcode anything, or else we can only hardcode existing
22996 # directories.
22997 hardcode_action_CXX=unsupported
22998 fi
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23000 $as_echo "$hardcode_action_CXX" >&6; }
23001
23002 if test relink = "$hardcode_action_CXX" ||
23003 test yes = "$inherit_rpath_CXX"; then
23004 # Fast installation is not supported
23005 enable_fast_install=no
23006 elif test yes = "$shlibpath_overrides_runpath" ||
23007 test no = "$enable_shared"; then
23008 # Fast installation is not necessary
23009 enable_fast_install=needless
23010 fi
23011
23012
23013
23014
23015
23016
23017
23018 fi # test -n "$compiler"
23019
23020 CC=$lt_save_CC
23021 CFLAGS=$lt_save_CFLAGS
23022 LDCXX=$LD
23023 LD=$lt_save_LD
23024 GCC=$lt_save_GCC
23025 with_gnu_ld=$lt_save_with_gnu_ld
23026 lt_cv_path_LDCXX=$lt_cv_path_LD
23027 lt_cv_path_LD=$lt_save_path_LD
23028 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
23029 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
23030 fi # test yes != "$_lt_caught_CXX_error"
23031
23032 ac_ext=c
23033 ac_cpp='$CPP $CPPFLAGS'
23034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23037
23038
23039
23040
23041
23042
23043
23044
23045
23046
23047
23048
23049
23050
23051
23052 ac_config_commands="$ac_config_commands libtool"
23053
23054
23055
23056
23057 # Only expand once:
23058
23059
23060
23061 # Generate an error here if attempting to build both shared and static when
23062 # $libname.a is in $library_names_spec (as mentioned above), rather than
23063 # wait for ar or ld to fail.
23064 #
23065 if test "$enable_shared" = yes && test "$enable_static" = yes; then
23066 case $library_names_spec in
23067 *libname.a*)
23068 as_fn_error $? "cannot create both shared and static libraries on this system, --disable one of the two" "$LINENO" 5
23069 ;;
23070 esac
23071 fi
23072
23073 if test "$enable_static" = yes; then
23074 ENABLE_STATIC_TRUE=
23075 ENABLE_STATIC_FALSE='#'
23076 else
23077 ENABLE_STATIC_TRUE='#'
23078 ENABLE_STATIC_FALSE=
23079 fi
23080
23081
23082
23083 # Many of these library and header checks are for the benefit of
23084 # supplementary programs. libgmp doesn't use anything too weird.
23085
23086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
23087 $as_echo_n "checking for ANSI C header files... " >&6; }
23088 if ${ac_cv_header_stdc+:} false; then :
23089 $as_echo_n "(cached) " >&6
23090 else
23091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23092 /* end confdefs.h. */
23093 #include <stdlib.h>
23094 #include <stdarg.h>
23095 #include <string.h>
23096 #include <float.h>
23097
23098 int
23099 main ()
23100 {
23101
23102 ;
23103 return 0;
23104 }
23105 _ACEOF
23106 if ac_fn_c_try_compile "$LINENO"; then :
23107 ac_cv_header_stdc=yes
23108 else
23109 ac_cv_header_stdc=no
23110 fi
23111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23112
23113 if test $ac_cv_header_stdc = yes; then
23114 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23116 /* end confdefs.h. */
23117 #include <string.h>
23118
23119 _ACEOF
23120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23121 $EGREP "memchr" >/dev/null 2>&1; then :
23122
23123 else
23124 ac_cv_header_stdc=no
23125 fi
23126 rm -f conftest*
23127
23128 fi
23129
23130 if test $ac_cv_header_stdc = yes; then
23131 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23133 /* end confdefs.h. */
23134 #include <stdlib.h>
23135
23136 _ACEOF
23137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23138 $EGREP "free" >/dev/null 2>&1; then :
23139
23140 else
23141 ac_cv_header_stdc=no
23142 fi
23143 rm -f conftest*
23144
23145 fi
23146
23147 if test $ac_cv_header_stdc = yes; then
23148 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23149 if test "$cross_compiling" = yes; then :
23150 :
23151 else
23152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23153 /* end confdefs.h. */
23154 #include <ctype.h>
23155 #include <stdlib.h>
23156 #if ((' ' & 0x0FF) == 0x020)
23157 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23158 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23159 #else
23160 # define ISLOWER(c) \
23161 (('a' <= (c) && (c) <= 'i') \
23162 || ('j' <= (c) && (c) <= 'r') \
23163 || ('s' <= (c) && (c) <= 'z'))
23164 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23165 #endif
23166
23167 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23168 int
23169 main ()
23170 {
23171 int i;
23172 for (i = 0; i < 256; i++)
23173 if (XOR (islower (i), ISLOWER (i))
23174 || toupper (i) != TOUPPER (i))
23175 return 2;
23176 return 0;
23177 }
23178 _ACEOF
23179 if ac_fn_c_try_run "$LINENO"; then :
23180
23181 else
23182 ac_cv_header_stdc=no
23183 fi
23184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23185 conftest.$ac_objext conftest.beam conftest.$ac_ext
23186 fi
23187
23188 fi
23189 fi
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
23191 $as_echo "$ac_cv_header_stdc" >&6; }
23192 if test $ac_cv_header_stdc = yes; then
23193
23194 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
23195
23196 fi
23197
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
23199 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
23200 if ${ac_cv_header_time+:} false; then :
23201 $as_echo_n "(cached) " >&6
23202 else
23203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23204 /* end confdefs.h. */
23205 #include <sys/types.h>
23206 #include <sys/time.h>
23207 #include <time.h>
23208
23209 int
23210 main ()
23211 {
23212 if ((struct tm *) 0)
23213 return 0;
23214 ;
23215 return 0;
23216 }
23217 _ACEOF
23218 if ac_fn_c_try_compile "$LINENO"; then :
23219 ac_cv_header_time=yes
23220 else
23221 ac_cv_header_time=no
23222 fi
23223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23224 fi
23225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
23226 $as_echo "$ac_cv_header_time" >&6; }
23227 if test $ac_cv_header_time = yes; then
23228
23229 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
23230
23231 fi
23232
23233
23234 # Reasons for testing:
23235 # float.h - not in SunOS bundled cc
23236 # invent.h - IRIX specific
23237 # langinfo.h - X/Open standard only, not in djgpp for instance
23238 # locale.h - old systems won't have this
23239 # nl_types.h - X/Open standard only, not in djgpp for instance
23240 # (usually langinfo.h gives nl_item etc, but not on netbsd 1.4.1)
23241 # sys/attributes.h - IRIX specific
23242 # sys/iograph.h - IRIX specific
23243 # sys/mman.h - not in Cray Unicos
23244 # sys/param.h - not in mingw
23245 # sys/processor.h - solaris specific, though also present in macos
23246 # sys/pstat.h - HPUX specific
23247 # sys/resource.h - not in mingw
23248 # sys/sysctl.h - not in mingw
23249 # sys/sysinfo.h - OSF specific
23250 # sys/syssgi.h - IRIX specific
23251 # sys/systemcfg.h - AIX specific
23252 # sys/time.h - autoconf suggests testing, don't know anywhere without it
23253 # sys/times.h - not in mingw
23254 # machine/hal_sysinfo.h - OSF specific
23255 #
23256 # inttypes.h, stdint.h, unistd.h and sys/types.h are already in the autoconf
23257 # default tests
23258 #
23259 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
23260 do :
23261 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23262 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23263 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23264 cat >>confdefs.h <<_ACEOF
23265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23266 _ACEOF
23267
23268 fi
23269
23270 done
23271
23272
23273 # On SunOS, sys/resource.h needs sys/time.h (for struct timeval)
23274 for ac_header in sys/resource.h
23275 do :
23276 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "#if TIME_WITH_SYS_TIME
23277 # include <sys/time.h>
23278 # include <time.h>
23279 #else
23280 # if HAVE_SYS_TIME_H
23281 # include <sys/time.h>
23282 # else
23283 # include <time.h>
23284 # endif
23285 #endif
23286 "
23287 if test "x$ac_cv_header_sys_resource_h" = xyes; then :
23288 cat >>confdefs.h <<_ACEOF
23289 #define HAVE_SYS_RESOURCE_H 1
23290 _ACEOF
23291
23292 fi
23293
23294 done
23295
23296
23297 # On NetBSD and OpenBSD, sys/sysctl.h needs sys/param.h for various constants
23298 for ac_header in sys/sysctl.h
23299 do :
23300 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if HAVE_SYS_PARAM_H
23301 # include <sys/param.h>
23302 #endif
23303 "
23304 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
23305 cat >>confdefs.h <<_ACEOF
23306 #define HAVE_SYS_SYSCTL_H 1
23307 _ACEOF
23308
23309 fi
23310
23311 done
23312
23313
23314 # On OSF 4.0, <machine/hal_sysinfo.h> must have <sys/sysinfo.h> for ulong_t
23315 for ac_header in machine/hal_sysinfo.h
23316 do :
23317 ac_fn_c_check_header_compile "$LINENO" "machine/hal_sysinfo.h" "ac_cv_header_machine_hal_sysinfo_h" "#if HAVE_SYS_SYSINFO_H
23318 # include <sys/sysinfo.h>
23319 #endif
23320 "
23321 if test "x$ac_cv_header_machine_hal_sysinfo_h" = xyes; then :
23322 cat >>confdefs.h <<_ACEOF
23323 #define HAVE_MACHINE_HAL_SYSINFO_H 1
23324 _ACEOF
23325
23326 fi
23327
23328 done
23329
23330
23331 # Reasons for testing:
23332 # optarg - not declared in mingw
23333 # fgetc, fscanf, ungetc, vfprintf - not declared in SunOS 4
23334 # sys_errlist, sys_nerr - not declared in SunOS 4
23335 #
23336 # optarg should be in unistd.h and the rest in stdio.h, both of which are
23337 # in the autoconf default includes.
23338 #
23339 # sys_errlist and sys_nerr are supposed to be in <errno.h> on SunOS according
23340 # to the man page (but aren't), in glibc they're in stdio.h.
23341 #
23342 ac_fn_c_check_decl "$LINENO" "fgetc" "ac_cv_have_decl_fgetc" "$ac_includes_default"
23343 if test "x$ac_cv_have_decl_fgetc" = xyes; then :
23344 ac_have_decl=1
23345 else
23346 ac_have_decl=0
23347 fi
23348
23349 cat >>confdefs.h <<_ACEOF
23350 #define HAVE_DECL_FGETC $ac_have_decl
23351 _ACEOF
23352 ac_fn_c_check_decl "$LINENO" "fscanf" "ac_cv_have_decl_fscanf" "$ac_includes_default"
23353 if test "x$ac_cv_have_decl_fscanf" = xyes; then :
23354 ac_have_decl=1
23355 else
23356 ac_have_decl=0
23357 fi
23358
23359 cat >>confdefs.h <<_ACEOF
23360 #define HAVE_DECL_FSCANF $ac_have_decl
23361 _ACEOF
23362 ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "$ac_includes_default"
23363 if test "x$ac_cv_have_decl_optarg" = xyes; then :
23364 ac_have_decl=1
23365 else
23366 ac_have_decl=0
23367 fi
23368
23369 cat >>confdefs.h <<_ACEOF
23370 #define HAVE_DECL_OPTARG $ac_have_decl
23371 _ACEOF
23372 ac_fn_c_check_decl "$LINENO" "ungetc" "ac_cv_have_decl_ungetc" "$ac_includes_default"
23373 if test "x$ac_cv_have_decl_ungetc" = xyes; then :
23374 ac_have_decl=1
23375 else
23376 ac_have_decl=0
23377 fi
23378
23379 cat >>confdefs.h <<_ACEOF
23380 #define HAVE_DECL_UNGETC $ac_have_decl
23381 _ACEOF
23382 ac_fn_c_check_decl "$LINENO" "vfprintf" "ac_cv_have_decl_vfprintf" "$ac_includes_default"
23383 if test "x$ac_cv_have_decl_vfprintf" = xyes; then :
23384 ac_have_decl=1
23385 else
23386 ac_have_decl=0
23387 fi
23388
23389 cat >>confdefs.h <<_ACEOF
23390 #define HAVE_DECL_VFPRINTF $ac_have_decl
23391 _ACEOF
23392
23393 ac_fn_c_check_decl "$LINENO" "sys_errlist" "ac_cv_have_decl_sys_errlist" "#include <stdio.h>
23394 #include <errno.h>
23395 "
23396 if test "x$ac_cv_have_decl_sys_errlist" = xyes; then :
23397 ac_have_decl=1
23398 else
23399 ac_have_decl=0
23400 fi
23401
23402 cat >>confdefs.h <<_ACEOF
23403 #define HAVE_DECL_SYS_ERRLIST $ac_have_decl
23404 _ACEOF
23405 ac_fn_c_check_decl "$LINENO" "sys_nerr" "ac_cv_have_decl_sys_nerr" "#include <stdio.h>
23406 #include <errno.h>
23407 "
23408 if test "x$ac_cv_have_decl_sys_nerr" = xyes; then :
23409 ac_have_decl=1
23410 else
23411 ac_have_decl=0
23412 fi
23413
23414 cat >>confdefs.h <<_ACEOF
23415 #define HAVE_DECL_SYS_NERR $ac_have_decl
23416 _ACEOF
23417
23418
23419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
23420 $as_echo_n "checking return type of signal handlers... " >&6; }
23421 if ${ac_cv_type_signal+:} false; then :
23422 $as_echo_n "(cached) " >&6
23423 else
23424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23425 /* end confdefs.h. */
23426 #include <sys/types.h>
23427 #include <signal.h>
23428
23429 int
23430 main ()
23431 {
23432 return *(signal (0, 0)) (0) == 1;
23433 ;
23434 return 0;
23435 }
23436 _ACEOF
23437 if ac_fn_c_try_compile "$LINENO"; then :
23438 ac_cv_type_signal=int
23439 else
23440 ac_cv_type_signal=void
23441 fi
23442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23443 fi
23444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
23445 $as_echo "$ac_cv_type_signal" >&6; }
23446
23447 cat >>confdefs.h <<_ACEOF
23448 #define RETSIGTYPE $ac_cv_type_signal
23449 _ACEOF
23450
23451
23452
23453 # Reasons for testing:
23454 # intmax_t - C99
23455 # long double - not in the HP bundled K&R cc
23456 # long long - only in reasonably recent compilers
23457 # ptrdiff_t - seems to be everywhere, maybe don't need to check this
23458 # quad_t - BSD specific
23459 # uint_least32_t - C99
23460 #
23461 # the default includes are sufficient for all these types
23462 #
23463 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23464 if test "x$ac_cv_type_intmax_t" = xyes; then :
23465
23466 cat >>confdefs.h <<_ACEOF
23467 #define HAVE_INTMAX_T 1
23468 _ACEOF
23469
23470
23471 fi
23472 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
23473 if test "x$ac_cv_type_long_double" = xyes; then :
23474
23475 cat >>confdefs.h <<_ACEOF
23476 #define HAVE_LONG_DOUBLE 1
23477 _ACEOF
23478
23479
23480 fi
23481 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
23482 if test "x$ac_cv_type_long_long" = xyes; then :
23483
23484 cat >>confdefs.h <<_ACEOF
23485 #define HAVE_LONG_LONG 1
23486 _ACEOF
23487
23488
23489 fi
23490 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
23491 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
23492
23493 cat >>confdefs.h <<_ACEOF
23494 #define HAVE_PTRDIFF_T 1
23495 _ACEOF
23496
23497
23498 fi
23499 ac_fn_c_check_type "$LINENO" "quad_t" "ac_cv_type_quad_t" "$ac_includes_default"
23500 if test "x$ac_cv_type_quad_t" = xyes; then :
23501
23502 cat >>confdefs.h <<_ACEOF
23503 #define HAVE_QUAD_T 1
23504 _ACEOF
23505
23506
23507 fi
23508 ac_fn_c_check_type "$LINENO" "uint_least32_t" "ac_cv_type_uint_least32_t" "$ac_includes_default"
23509 if test "x$ac_cv_type_uint_least32_t" = xyes; then :
23510
23511 cat >>confdefs.h <<_ACEOF
23512 #define HAVE_UINT_LEAST32_T 1
23513 _ACEOF
23514
23515
23516 fi
23517 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23518 if test "x$ac_cv_type_intptr_t" = xyes; then :
23519
23520 cat >>confdefs.h <<_ACEOF
23521 #define HAVE_INTPTR_T 1
23522 _ACEOF
23523
23524
23525 fi
23526
23527
23528 # FIXME: Really want #ifndef __cplusplus around the #define volatile
23529 # replacement autoconf gives, since volatile is always available in C++.
23530 # But we don't use it in C++ currently.
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
23532 $as_echo_n "checking for working volatile... " >&6; }
23533 if ${ac_cv_c_volatile+:} false; then :
23534 $as_echo_n "(cached) " >&6
23535 else
23536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23537 /* end confdefs.h. */
23538
23539 int
23540 main ()
23541 {
23542
23543 volatile int x;
23544 int * volatile y = (int *) 0;
23545 return !x && !y;
23546 ;
23547 return 0;
23548 }
23549 _ACEOF
23550 if ac_fn_c_try_compile "$LINENO"; then :
23551 ac_cv_c_volatile=yes
23552 else
23553 ac_cv_c_volatile=no
23554 fi
23555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23556 fi
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
23558 $as_echo "$ac_cv_c_volatile" >&6; }
23559 if test $ac_cv_c_volatile = no; then
23560
23561 $as_echo "#define volatile /**/" >>confdefs.h
23562
23563 fi
23564
23565
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
23567 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
23568 if ${ac_cv_c_restrict+:} false; then :
23569 $as_echo_n "(cached) " >&6
23570 else
23571 ac_cv_c_restrict=no
23572 # The order here caters to the fact that C++ does not require restrict.
23573 for ac_kw in __restrict __restrict__ _Restrict restrict; do
23574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23575 /* end confdefs.h. */
23576 typedef int * int_ptr;
23577 int foo (int_ptr $ac_kw ip) {
23578 return ip[0];
23579 }
23580 int
23581 main ()
23582 {
23583 int s[1];
23584 int * $ac_kw t = s;
23585 t[0] = 0;
23586 return foo(t)
23587 ;
23588 return 0;
23589 }
23590 _ACEOF
23591 if ac_fn_c_try_compile "$LINENO"; then :
23592 ac_cv_c_restrict=$ac_kw
23593 fi
23594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23595 test "$ac_cv_c_restrict" != no && break
23596 done
23597
23598 fi
23599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
23600 $as_echo "$ac_cv_c_restrict" >&6; }
23601
23602 case $ac_cv_c_restrict in
23603 restrict) ;;
23604 no) $as_echo "#define restrict /**/" >>confdefs.h
23605 ;;
23606 *) cat >>confdefs.h <<_ACEOF
23607 #define restrict $ac_cv_c_restrict
23608 _ACEOF
23609 ;;
23610 esac
23611
23612
23613 # GMP_C_STDARG
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((const)) works" >&5
23615 $as_echo_n "checking whether gcc __attribute__ ((const)) works... " >&6; }
23616 if ${gmp_cv_c_attribute_const+:} false; then :
23617 $as_echo_n "(cached) " >&6
23618 else
23619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23620 /* end confdefs.h. */
23621 int foo (int x) __attribute__ ((const));
23622 int
23623 main ()
23624 {
23625
23626 ;
23627 return 0;
23628 }
23629 _ACEOF
23630 if ac_fn_c_try_compile "$LINENO"; then :
23631 gmp_cv_c_attribute_const=yes
23632 else
23633 gmp_cv_c_attribute_const=no
23634 fi
23635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23636
23637 fi
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_const" >&5
23639 $as_echo "$gmp_cv_c_attribute_const" >&6; }
23640 if test $gmp_cv_c_attribute_const = yes; then
23641
23642 $as_echo "#define HAVE_ATTRIBUTE_CONST 1" >>confdefs.h
23643
23644 fi
23645
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((malloc)) works" >&5
23647 $as_echo_n "checking whether gcc __attribute__ ((malloc)) works... " >&6; }
23648 if ${gmp_cv_c_attribute_malloc+:} false; then :
23649 $as_echo_n "(cached) " >&6
23650 else
23651 cat >conftest.c <<EOF
23652 void *foo (int x) __attribute__ ((malloc));
23653 EOF
23654 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1"
23655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
23656 (eval $gmp_compile) 2>&5
23657 ac_status=$?
23658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23659 test $ac_status = 0; }; then
23660 if grep "attribute directive ignored" conftest.out >/dev/null; then
23661 gmp_cv_c_attribute_malloc=no
23662 else
23663 gmp_cv_c_attribute_malloc=yes
23664 fi
23665 else
23666 gmp_cv_c_attribute_malloc=no
23667 fi
23668 cat conftest.out >&5
23669 rm -f conftest*
23670
23671 fi
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_malloc" >&5
23673 $as_echo "$gmp_cv_c_attribute_malloc" >&6; }
23674 if test $gmp_cv_c_attribute_malloc = yes; then
23675
23676 $as_echo "#define HAVE_ATTRIBUTE_MALLOC 1" >>confdefs.h
23677
23678 fi
23679
23680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5
23681 $as_echo_n "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; }
23682 if ${gmp_cv_c_attribute_mode+:} false; then :
23683 $as_echo_n "(cached) " >&6
23684 else
23685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23686 /* end confdefs.h. */
23687 typedef int SItype __attribute__ ((mode (SI)));
23688 int
23689 main ()
23690 {
23691
23692 ;
23693 return 0;
23694 }
23695 _ACEOF
23696 if ac_fn_c_try_compile "$LINENO"; then :
23697 gmp_cv_c_attribute_mode=yes
23698 else
23699 gmp_cv_c_attribute_mode=no
23700 fi
23701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23702
23703 fi
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5
23705 $as_echo "$gmp_cv_c_attribute_mode" >&6; }
23706 if test $gmp_cv_c_attribute_mode = yes; then
23707
23708 $as_echo "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h
23709
23710 fi
23711
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((noreturn)) works" >&5
23713 $as_echo_n "checking whether gcc __attribute__ ((noreturn)) works... " >&6; }
23714 if ${gmp_cv_c_attribute_noreturn+:} false; then :
23715 $as_echo_n "(cached) " >&6
23716 else
23717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23718 /* end confdefs.h. */
23719 void foo (int x) __attribute__ ((noreturn));
23720 int
23721 main ()
23722 {
23723
23724 ;
23725 return 0;
23726 }
23727 _ACEOF
23728 if ac_fn_c_try_compile "$LINENO"; then :
23729 gmp_cv_c_attribute_noreturn=yes
23730 else
23731 gmp_cv_c_attribute_noreturn=no
23732 fi
23733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23734
23735 fi
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_noreturn" >&5
23737 $as_echo "$gmp_cv_c_attribute_noreturn" >&6; }
23738 if test $gmp_cv_c_attribute_noreturn = yes; then
23739
23740 $as_echo "#define HAVE_ATTRIBUTE_NORETURN 1" >>confdefs.h
23741
23742 fi
23743
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc hidden aliases work" >&5
23745 $as_echo_n "checking whether gcc hidden aliases work... " >&6; }
23746 if ${gmp_cv_c_hidden_alias+:} false; then :
23747 $as_echo_n "(cached) " >&6
23748 else
23749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23750 /* end confdefs.h. */
23751 void hid() __attribute__ ((visibility("hidden")));
23752 void hid() {}
23753 void pub() __attribute__ ((alias("hid")));
23754 int
23755 main ()
23756 {
23757
23758 ;
23759 return 0;
23760 }
23761 _ACEOF
23762 if ac_fn_c_try_compile "$LINENO"; then :
23763 gmp_cv_c_hidden_alias=yes
23764 else
23765 gmp_cv_c_hidden_alias=no
23766 fi
23767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23768
23769 fi
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_hidden_alias" >&5
23771 $as_echo "$gmp_cv_c_hidden_alias" >&6; }
23772 if test $gmp_cv_c_hidden_alias = yes; then
23773
23774 $as_echo "#define HAVE_HIDDEN_ALIAS 1" >>confdefs.h
23775
23776 fi
23777
23778
23779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
23780 $as_echo_n "checking for inline... " >&6; }
23781 if ${ac_cv_c_inline+:} false; then :
23782 $as_echo_n "(cached) " >&6
23783 else
23784 ac_cv_c_inline=no
23785 for ac_kw in inline __inline__ __inline; do
23786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23787 /* end confdefs.h. */
23788 #ifndef __cplusplus
23789 typedef int foo_t;
23790 static $ac_kw foo_t static_foo () {return 0; }
23791 $ac_kw foo_t foo () {return 0; }
23792 #endif
23793
23794 _ACEOF
23795 if ac_fn_c_try_compile "$LINENO"; then :
23796 ac_cv_c_inline=$ac_kw
23797 fi
23798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23799 test "$ac_cv_c_inline" != no && break
23800 done
23801
23802 fi
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
23804 $as_echo "$ac_cv_c_inline" >&6; }
23805
23806 case $ac_cv_c_inline in
23807 inline | yes) ;;
23808 *)
23809 case $ac_cv_c_inline in
23810 no) ac_val=;;
23811 *) ac_val=$ac_cv_c_inline;;
23812 esac
23813 cat >>confdefs.h <<_ACEOF
23814 #ifndef __cplusplus
23815 #define inline $ac_val
23816 #endif
23817 _ACEOF
23818 ;;
23819 esac
23820
23821
23822 case $ac_cv_c_inline in
23823 no) ;;
23824 *)
23825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23826 /* end confdefs.h. */
23827 #define __GMP_WITHIN_CONFIGURE_INLINE 1
23828 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
23829 #define GMP_NAIL_BITS $GMP_NAIL_BITS
23830 #define GMP_LIMB_BITS 123
23831 $DEFN_LONG_LONG_LIMB
23832 #include "$srcdir/gmp-h.in"
23833
23834 #ifndef __GMP_EXTERN_INLINE
23835 die die die
23836 #endif
23837
23838 int
23839 main ()
23840 {
23841
23842 ;
23843 return 0;
23844 }
23845 _ACEOF
23846 if ac_fn_c_try_compile "$LINENO"; then :
23847
23848 else
23849 case $ac_cv_c_inline in
23850 yes) tmp_inline=inline ;;
23851 *) tmp_inline=$ac_cv_c_inline ;;
23852 esac
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&5
23854 $as_echo "$as_me: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&2;}
23855 fi
23856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23857 ;;
23858 esac
23859
23860
23861 # from libtool
23862 LIBM=
23863 case $host in
23864 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
23865 # These system don't have libm, or don't need it
23866 ;;
23867 *-ncr-sysv4.3*)
23868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
23869 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
23870 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
23871 $as_echo_n "(cached) " >&6
23872 else
23873 ac_check_lib_save_LIBS=$LIBS
23874 LIBS="-lmw $LIBS"
23875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23876 /* end confdefs.h. */
23877
23878 /* Override any GCC internal prototype to avoid an error.
23879 Use char because int might match the return type of a GCC
23880 builtin and then its argument prototype would still apply. */
23881 #ifdef __cplusplus
23882 extern "C"
23883 #endif
23884 char _mwvalidcheckl ();
23885 int
23886 main ()
23887 {
23888 return _mwvalidcheckl ();
23889 ;
23890 return 0;
23891 }
23892 _ACEOF
23893 if ac_fn_c_try_link "$LINENO"; then :
23894 ac_cv_lib_mw__mwvalidcheckl=yes
23895 else
23896 ac_cv_lib_mw__mwvalidcheckl=no
23897 fi
23898 rm -f core conftest.err conftest.$ac_objext \
23899 conftest$ac_exeext conftest.$ac_ext
23900 LIBS=$ac_check_lib_save_LIBS
23901 fi
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
23903 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
23904 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
23905 LIBM=-lmw
23906 fi
23907
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
23909 $as_echo_n "checking for cos in -lm... " >&6; }
23910 if ${ac_cv_lib_m_cos+:} false; then :
23911 $as_echo_n "(cached) " >&6
23912 else
23913 ac_check_lib_save_LIBS=$LIBS
23914 LIBS="-lm $LIBS"
23915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23916 /* end confdefs.h. */
23917
23918 /* Override any GCC internal prototype to avoid an error.
23919 Use char because int might match the return type of a GCC
23920 builtin and then its argument prototype would still apply. */
23921 #ifdef __cplusplus
23922 extern "C"
23923 #endif
23924 char cos ();
23925 int
23926 main ()
23927 {
23928 return cos ();
23929 ;
23930 return 0;
23931 }
23932 _ACEOF
23933 if ac_fn_c_try_link "$LINENO"; then :
23934 ac_cv_lib_m_cos=yes
23935 else
23936 ac_cv_lib_m_cos=no
23937 fi
23938 rm -f core conftest.err conftest.$ac_objext \
23939 conftest$ac_exeext conftest.$ac_ext
23940 LIBS=$ac_check_lib_save_LIBS
23941 fi
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
23943 $as_echo "$ac_cv_lib_m_cos" >&6; }
23944 if test "x$ac_cv_lib_m_cos" = xyes; then :
23945 LIBM="$LIBM -lm"
23946 fi
23947
23948 ;;
23949 *)
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
23951 $as_echo_n "checking for cos in -lm... " >&6; }
23952 if ${ac_cv_lib_m_cos+:} false; then :
23953 $as_echo_n "(cached) " >&6
23954 else
23955 ac_check_lib_save_LIBS=$LIBS
23956 LIBS="-lm $LIBS"
23957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23958 /* end confdefs.h. */
23959
23960 /* Override any GCC internal prototype to avoid an error.
23961 Use char because int might match the return type of a GCC
23962 builtin and then its argument prototype would still apply. */
23963 #ifdef __cplusplus
23964 extern "C"
23965 #endif
23966 char cos ();
23967 int
23968 main ()
23969 {
23970 return cos ();
23971 ;
23972 return 0;
23973 }
23974 _ACEOF
23975 if ac_fn_c_try_link "$LINENO"; then :
23976 ac_cv_lib_m_cos=yes
23977 else
23978 ac_cv_lib_m_cos=no
23979 fi
23980 rm -f core conftest.err conftest.$ac_objext \
23981 conftest$ac_exeext conftest.$ac_ext
23982 LIBS=$ac_check_lib_save_LIBS
23983 fi
23984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
23985 $as_echo "$ac_cv_lib_m_cos" >&6; }
23986 if test "x$ac_cv_lib_m_cos" = xyes; then :
23987 LIBM=-lm
23988 fi
23989
23990 ;;
23991 esac
23992
23993
23994
23995
23996 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23997 # for constant arguments. Useless!
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
23999 $as_echo_n "checking for working alloca.h... " >&6; }
24000 if ${gmp_cv_header_alloca+:} false; then :
24001 $as_echo_n "(cached) " >&6
24002 else
24003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24004 /* end confdefs.h. */
24005 #include <alloca.h>
24006 int
24007 main ()
24008 {
24009 char *p = (char *) alloca (2 * sizeof (int));
24010 ;
24011 return 0;
24012 }
24013 _ACEOF
24014 if ac_fn_c_try_link "$LINENO"; then :
24015 gmp_cv_header_alloca=yes
24016 else
24017 gmp_cv_header_alloca=no
24018 fi
24019 rm -f core conftest.err conftest.$ac_objext \
24020 conftest$ac_exeext conftest.$ac_ext
24021 fi
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_header_alloca" >&5
24023 $as_echo "$gmp_cv_header_alloca" >&6; }
24024 if test $gmp_cv_header_alloca = yes; then
24025
24026 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
24027
24028 fi
24029
24030
24031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca (via gmp-impl.h)" >&5
24032 $as_echo_n "checking for alloca (via gmp-impl.h)... " >&6; }
24033 if ${gmp_cv_func_alloca+:} false; then :
24034 $as_echo_n "(cached) " >&6
24035 else
24036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24037 /* end confdefs.h. */
24038 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
24039 #define GMP_NAIL_BITS $GMP_NAIL_BITS
24040 #define GMP_LIMB_BITS 123
24041 $DEFN_LONG_LONG_LIMB
24042 #include "$srcdir/gmp-h.in"
24043
24044 #include "$srcdir/gmp-impl.h"
24045
24046 int
24047 main ()
24048 {
24049 char *p = (char *) alloca (1);
24050 ;
24051 return 0;
24052 }
24053 _ACEOF
24054 if ac_fn_c_try_link "$LINENO"; then :
24055 gmp_cv_func_alloca=yes
24056 else
24057 gmp_cv_func_alloca=no
24058 fi
24059 rm -f core conftest.err conftest.$ac_objext \
24060 conftest$ac_exeext conftest.$ac_ext
24061 fi
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_alloca" >&5
24063 $as_echo "$gmp_cv_func_alloca" >&6; }
24064 if test $gmp_cv_func_alloca = yes; then
24065
24066 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
24067
24068 fi
24069
24070
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to allocate temporary memory" >&5
24072 $as_echo_n "checking how to allocate temporary memory... " >&6; }
24073 if ${gmp_cv_option_alloca+:} false; then :
24074 $as_echo_n "(cached) " >&6
24075 else
24076 case $enable_alloca in
24077 yes)
24078 gmp_cv_option_alloca=alloca
24079 ;;
24080 no)
24081 gmp_cv_option_alloca=malloc-reentrant
24082 ;;
24083 reentrant | notreentrant)
24084 case $gmp_cv_func_alloca in
24085 yes) gmp_cv_option_alloca=alloca ;;
24086 *) gmp_cv_option_alloca=malloc-$enable_alloca ;;
24087 esac
24088 ;;
24089 *)
24090 gmp_cv_option_alloca=$enable_alloca
24091 ;;
24092 esac
24093
24094 fi
24095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_option_alloca" >&5
24096 $as_echo "$gmp_cv_option_alloca" >&6; }
24097
24098
24099
24100 case $gmp_cv_option_alloca in
24101 alloca)
24102 if test $gmp_cv_func_alloca = no; then
24103 as_fn_error $? "--enable-alloca=alloca specified, but alloca not available" "$LINENO" 5
24104 fi
24105 $as_echo "#define WANT_TMP_ALLOCA 1" >>confdefs.h
24106
24107 TAL_OBJECT=tal-reent$U.lo
24108 ;;
24109 malloc-reentrant)
24110 $as_echo "#define WANT_TMP_REENTRANT 1" >>confdefs.h
24111
24112 TAL_OBJECT=tal-reent$U.lo
24113 ;;
24114 malloc-notreentrant)
24115 $as_echo "#define WANT_TMP_NOTREENTRANT 1" >>confdefs.h
24116
24117 TAL_OBJECT=tal-notreent$U.lo
24118 ;;
24119 debug)
24120 $as_echo "#define WANT_TMP_DEBUG 1" >>confdefs.h
24121
24122 TAL_OBJECT=tal-debug$U.lo
24123 ;;
24124 *)
24125 # checks at the start of configure.in should protect us
24126 as_fn_error $? "unrecognised --enable-alloca=$gmp_cv_option_alloca" "$LINENO" 5
24127 ;;
24128 esac
24129
24130
24131
24132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24133 /* end confdefs.h. */
24134 #include <stdio.h>
24135 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
24136 #define GMP_NAIL_BITS $GMP_NAIL_BITS
24137 #define GMP_LIMB_BITS 123
24138 $DEFN_LONG_LONG_LIMB
24139 #include "$srcdir/gmp-h.in"
24140
24141 #if ! _GMP_H_HAVE_FILE
24142 die die die
24143 #endif
24144
24145 int
24146 main ()
24147 {
24148
24149 ;
24150 return 0;
24151 }
24152 _ACEOF
24153 if ac_fn_c_try_compile "$LINENO"; then :
24154
24155 else
24156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&5
24157 $as_echo "$as_me: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&2;}
24158 fi
24159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24160
24161
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
24163 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
24164 if ${ac_cv_c_bigendian+:} false; then :
24165 $as_echo_n "(cached) " >&6
24166 else
24167 ac_cv_c_bigendian=unknown
24168 # See if we're dealing with a universal compiler.
24169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24170 /* end confdefs.h. */
24171 #ifndef __APPLE_CC__
24172 not a universal capable compiler
24173 #endif
24174 typedef int dummy;
24175
24176 _ACEOF
24177 if ac_fn_c_try_compile "$LINENO"; then :
24178
24179 # Check for potential -arch flags. It is not universal unless
24180 # there are at least two -arch flags with different values.
24181 ac_arch=
24182 ac_prev=
24183 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
24184 if test -n "$ac_prev"; then
24185 case $ac_word in
24186 i?86 | x86_64 | ppc | ppc64)
24187 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
24188 ac_arch=$ac_word
24189 else
24190 ac_cv_c_bigendian=universal
24191 break
24192 fi
24193 ;;
24194 esac
24195 ac_prev=
24196 elif test "x$ac_word" = "x-arch"; then
24197 ac_prev=arch
24198 fi
24199 done
24200 fi
24201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24202 if test $ac_cv_c_bigendian = unknown; then
24203 # See if sys/param.h defines the BYTE_ORDER macro.
24204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24205 /* end confdefs.h. */
24206 #include <sys/types.h>
24207 #include <sys/param.h>
24208
24209 int
24210 main ()
24211 {
24212 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24213 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24214 && LITTLE_ENDIAN)
24215 bogus endian macros
24216 #endif
24217
24218 ;
24219 return 0;
24220 }
24221 _ACEOF
24222 if ac_fn_c_try_compile "$LINENO"; then :
24223 # It does; now see whether it defined to BIG_ENDIAN or not.
24224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24225 /* end confdefs.h. */
24226 #include <sys/types.h>
24227 #include <sys/param.h>
24228
24229 int
24230 main ()
24231 {
24232 #if BYTE_ORDER != BIG_ENDIAN
24233 not big endian
24234 #endif
24235
24236 ;
24237 return 0;
24238 }
24239 _ACEOF
24240 if ac_fn_c_try_compile "$LINENO"; then :
24241 ac_cv_c_bigendian=yes
24242 else
24243 ac_cv_c_bigendian=no
24244 fi
24245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24246 fi
24247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24248 fi
24249 if test $ac_cv_c_bigendian = unknown; then
24250 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24252 /* end confdefs.h. */
24253 #include <limits.h>
24254
24255 int
24256 main ()
24257 {
24258 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24259 bogus endian macros
24260 #endif
24261
24262 ;
24263 return 0;
24264 }
24265 _ACEOF
24266 if ac_fn_c_try_compile "$LINENO"; then :
24267 # It does; now see whether it defined to _BIG_ENDIAN or not.
24268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24269 /* end confdefs.h. */
24270 #include <limits.h>
24271
24272 int
24273 main ()
24274 {
24275 #ifndef _BIG_ENDIAN
24276 not big endian
24277 #endif
24278
24279 ;
24280 return 0;
24281 }
24282 _ACEOF
24283 if ac_fn_c_try_compile "$LINENO"; then :
24284 ac_cv_c_bigendian=yes
24285 else
24286 ac_cv_c_bigendian=no
24287 fi
24288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24289 fi
24290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24291 fi
24292 if test $ac_cv_c_bigendian = unknown; then
24293 # Compile a test program.
24294 if test "$cross_compiling" = yes; then :
24295 # Try to guess by grepping values from an object file.
24296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24297 /* end confdefs.h. */
24298 short int ascii_mm[] =
24299 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24300 short int ascii_ii[] =
24301 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24302 int use_ascii (int i) {
24303 return ascii_mm[i] + ascii_ii[i];
24304 }
24305 short int ebcdic_ii[] =
24306 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24307 short int ebcdic_mm[] =
24308 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24309 int use_ebcdic (int i) {
24310 return ebcdic_mm[i] + ebcdic_ii[i];
24311 }
24312 extern int foo;
24313
24314 int
24315 main ()
24316 {
24317 return use_ascii (foo) == use_ebcdic (foo);
24318 ;
24319 return 0;
24320 }
24321 _ACEOF
24322 if ac_fn_c_try_compile "$LINENO"; then :
24323 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24324 ac_cv_c_bigendian=yes
24325 fi
24326 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24327 if test "$ac_cv_c_bigendian" = unknown; then
24328 ac_cv_c_bigendian=no
24329 else
24330 # finding both strings is unlikely to happen, but who knows?
24331 ac_cv_c_bigendian=unknown
24332 fi
24333 fi
24334 fi
24335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24336 else
24337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24338 /* end confdefs.h. */
24339 $ac_includes_default
24340 int
24341 main ()
24342 {
24343
24344 /* Are we little or big endian? From Harbison&Steele. */
24345 union
24346 {
24347 long int l;
24348 char c[sizeof (long int)];
24349 } u;
24350 u.l = 1;
24351 return u.c[sizeof (long int) - 1] == 1;
24352
24353 ;
24354 return 0;
24355 }
24356 _ACEOF
24357 if ac_fn_c_try_run "$LINENO"; then :
24358 ac_cv_c_bigendian=no
24359 else
24360 ac_cv_c_bigendian=yes
24361 fi
24362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24363 conftest.$ac_objext conftest.beam conftest.$ac_ext
24364 fi
24365
24366 fi
24367 fi
24368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
24369 $as_echo "$ac_cv_c_bigendian" >&6; }
24370 case $ac_cv_c_bigendian in #(
24371 yes)
24372 $as_echo "#define HAVE_LIMB_BIG_ENDIAN 1" >>confdefs.h
24373
24374
24375 echo "define_not_for_expansion(\`HAVE_LIMB_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
24376 ;; #(
24377 no)
24378 $as_echo "#define HAVE_LIMB_LITTLE_ENDIAN 1" >>confdefs.h
24379
24380
24381 echo "define_not_for_expansion(\`HAVE_LIMB_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
24382
24383 ;; #(
24384 universal)
24385
24386 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
24387
24388 ;; #(
24389 *)
24390 : ;;
24391 esac
24392
24393
24394
24395
24396
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking format of \`double' floating point" >&5
24398 $as_echo_n "checking format of \`double' floating point... " >&6; }
24399 if ${gmp_cv_c_double_format+:} false; then :
24400 $as_echo_n "(cached) " >&6
24401 else
24402 gmp_cv_c_double_format=unknown
24403 cat >conftest.c <<\EOF
24404 #include <stdio.h>
24405 struct foo {
24406 char before[8];
24407 double x;
24408 char after[8];
24409 };
24410 extern struct foo foo;
24411 struct foo foo = {
24412 { '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
24413 -123456789.0,
24414 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' },
24415 };
24416 int main(){
24417 int i;
24418 for (i = 0; i < 8; i++) {
24419 printf ("%d %f\n", foo.before[i] + foo.after[i], foo.x);
24420 }
24421 return 0;
24422 }
24423 EOF
24424 gmp_compile="$CC $CFLAGS $CPPFLAGS conftest.c -o conftest$EXEEXT >&5 2>&1"
24425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
24426 (eval $gmp_compile) 2>&5
24427 ac_status=$?
24428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24429 test $ac_status = 0; }; then
24430 cat >conftest.awk <<\EOF
24431
24432 BEGIN {
24433 found = 0
24434 }
24435
24436 {
24437 for (f = 2; f <= NF; f++)
24438 {
24439 for (i = 0; i < 23; i++)
24440 got[i] = got[i+1];
24441 got[23] = $f;
24442
24443 # match the special begin and end sequences
24444 if (got[0] != "001") continue
24445 if (got[1] != "043") continue
24446 if (got[2] != "105") continue
24447 if (got[3] != "147") continue
24448 if (got[4] != "211") continue
24449 if (got[5] != "253") continue
24450 if (got[6] != "315") continue
24451 if (got[7] != "357") continue
24452 if (got[16] != "376") continue
24453 if (got[17] != "334") continue
24454 if (got[18] != "272") continue
24455 if (got[19] != "230") continue
24456 if (got[20] != "166") continue
24457 if (got[21] != "124") continue
24458 if (got[22] != "062") continue
24459 if (got[23] != "020") continue
24460
24461 saw = " (" got[8] " " got[9] " " got[10] " " got[11] " " got[12] " " got[13] " " got[14] " " got[15] ")"
24462
24463 if (got[8] == "000" && \
24464 got[9] == "000" && \
24465 got[10] == "000" && \
24466 got[11] == "124" && \
24467 got[12] == "064" && \
24468 got[13] == "157" && \
24469 got[14] == "235" && \
24470 got[15] == "301")
24471 {
24472 print "IEEE little endian"
24473 found = 1
24474 exit
24475 }
24476
24477 # Little endian with the two 4-byte halves swapped, as used by ARM
24478 # when the chip is in little endian mode.
24479 #
24480 if (got[8] == "064" && \
24481 got[9] == "157" && \
24482 got[10] == "235" && \
24483 got[11] == "301" && \
24484 got[12] == "000" && \
24485 got[13] == "000" && \
24486 got[14] == "000" && \
24487 got[15] == "124")
24488 {
24489 print "IEEE little endian, swapped halves"
24490 found = 1
24491 exit
24492 }
24493
24494 # gcc 2.95.4 on one GNU/Linux ARM system was seen generating 000 in
24495 # the last byte, whereas 124 is correct. Not sure where the bug
24496 # actually lies, but a running program didn't seem to get a full
24497 # mantissa worth of working bits.
24498 #
24499 # We match this case explicitly so we can give a nice result message,
24500 # but we deliberately exclude it from the normal IEEE double setups
24501 # since it's too broken.
24502 #
24503 if (got[8] == "064" && \
24504 got[9] == "157" && \
24505 got[10] == "235" && \
24506 got[11] == "301" && \
24507 got[12] == "000" && \
24508 got[13] == "000" && \
24509 got[14] == "000" && \
24510 got[15] == "000")
24511 {
24512 print "bad ARM software floats"
24513 found = 1
24514 exit
24515 }
24516
24517 if (got[8] == "301" && \
24518 got[9] == "235" && \
24519 got[10] == "157" && \
24520 got[11] == "064" && \
24521 got[12] == "124" && \
24522 got[13] == "000" && \
24523 got[14] == "000" && \
24524 got[15] == "000")
24525 {
24526 print "IEEE big endian"
24527 found = 1
24528 exit
24529 }
24530
24531 if (got[8] == "353" && \
24532 got[9] == "315" && \
24533 got[10] == "242" && \
24534 got[11] == "171" && \
24535 got[12] == "000" && \
24536 got[13] == "240" && \
24537 got[14] == "000" && \
24538 got[15] == "000")
24539 {
24540 print "VAX D"
24541 found = 1
24542 exit
24543 }
24544
24545 if (got[8] == "275" && \
24546 got[9] == "301" && \
24547 got[10] == "064" && \
24548 got[11] == "157" && \
24549 got[12] == "000" && \
24550 got[13] == "124" && \
24551 got[14] == "000" && \
24552 got[15] == "000")
24553 {
24554 print "VAX G"
24555 found = 1
24556 exit
24557 }
24558
24559 if (got[8] == "300" && \
24560 got[9] == "033" && \
24561 got[10] == "353" && \
24562 got[11] == "171" && \
24563 got[12] == "242" && \
24564 got[13] == "240" && \
24565 got[14] == "000" && \
24566 got[15] == "000")
24567 {
24568 print "Cray CFP"
24569 found = 1
24570 exit
24571 }
24572 }
24573 }
24574
24575 END {
24576 if (! found)
24577 print "unknown", saw
24578 }
24579
24580 EOF
24581 gmp_cv_c_double_format=`od -b conftest$EXEEXT | $AWK -f conftest.awk`
24582 case $gmp_cv_c_double_format in
24583 unknown*)
24584 echo "cannot match anything, conftest$EXEEXT contains" >&5
24585 od -b conftest$EXEEXT >&5
24586 ;;
24587 esac
24588 else
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
24590 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
24591 fi
24592 rm -f conftest*
24593
24594 fi
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_double_format" >&5
24596 $as_echo "$gmp_cv_c_double_format" >&6; }
24597
24598
24599
24600 case $gmp_cv_c_double_format in
24601 "IEEE big endian")
24602 $as_echo "#define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1" >>confdefs.h
24603
24604
24605 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
24606
24607 ;;
24608 "IEEE little endian")
24609 $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1" >>confdefs.h
24610
24611
24612 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
24613
24614 ;;
24615 "IEEE little endian, swapped halves")
24616 $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_SWAPPED 1" >>confdefs.h
24617 ;;
24618 "VAX D")
24619 $as_echo "#define HAVE_DOUBLE_VAX_D 1" >>confdefs.h
24620 ;;
24621 "VAX G")
24622 $as_echo "#define HAVE_DOUBLE_VAX_G 1" >>confdefs.h
24623 ;;
24624 "Cray CFP")
24625 $as_echo "#define HAVE_DOUBLE_CRAY_CFP 1" >>confdefs.h
24626 ;;
24627 "bad ARM software floats")
24628 ;;
24629 unknown*)
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine float format." >&5
24631 $as_echo "$as_me: WARNING: Could not determine float format." >&2;}
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Conversions to and from \"double\" may be slow." >&5
24633 $as_echo "$as_me: WARNING: Conversions to and from \"double\" may be slow." >&2;}
24634 ;;
24635 *)
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&5
24637 $as_echo "$as_me: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&2;}
24638 ;;
24639 esac
24640
24641
24642
24643 # Reasons for testing:
24644 # alarm - not in mingw
24645 # attr_get - IRIX specific
24646 # clock_gettime - not in glibc 2.2.4, only very recent systems
24647 # cputime - not in glibc
24648 # getsysinfo - OSF specific
24649 # getrusage - not in mingw
24650 # gettimeofday - not in mingw
24651 # mmap - not in mingw, djgpp
24652 # nl_langinfo - X/Open standard only, not in djgpp for instance
24653 # obstack_vprintf - glibc specific
24654 # processor_info - solaris specific
24655 # pstat_getprocessor - HPUX specific (10.x and up)
24656 # raise - an ANSI-ism, though probably almost universal by now
24657 # read_real_time - AIX specific
24658 # sigaction - not in mingw
24659 # sigaltstack - not in mingw, or old AIX (reputedly)
24660 # sigstack - not in mingw
24661 # strerror - not in SunOS
24662 # strnlen - glibc extension (some other systems too)
24663 # syssgi - IRIX specific
24664 # times - not in mingw
24665 #
24666 # AC_FUNC_STRNLEN is not used because we don't want the AC_LIBOBJ
24667 # replacement setups it gives. It detects a faulty strnlen on AIX, but
24668 # missing out on that test is ok since our only use of strnlen is in
24669 # __gmp_replacement_vsnprintf which is not required on AIX since it has a
24670 # vsnprintf.
24671 #
24672 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
24673 do :
24674 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24675 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24676 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24677 cat >>confdefs.h <<_ACEOF
24678 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24679 _ACEOF
24680
24681 fi
24682 done
24683
24684
24685 # clock_gettime is in librt on *-*-osf5.1 and on glibc, so att -lrt to
24686 # TUNE_LIBS if needed. On linux (tested on x86_32, 2.6.26),
24687 # clock_getres reports ns accuracy, while in a quick test on osf
24688 # clock_getres said only 1 millisecond.
24689
24690 old_LIBS="$LIBS"
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
24692 $as_echo_n "checking for library containing clock_gettime... " >&6; }
24693 if ${ac_cv_search_clock_gettime+:} false; then :
24694 $as_echo_n "(cached) " >&6
24695 else
24696 ac_func_search_save_LIBS=$LIBS
24697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24698 /* end confdefs.h. */
24699
24700 /* Override any GCC internal prototype to avoid an error.
24701 Use char because int might match the return type of a GCC
24702 builtin and then its argument prototype would still apply. */
24703 #ifdef __cplusplus
24704 extern "C"
24705 #endif
24706 char clock_gettime ();
24707 int
24708 main ()
24709 {
24710 return clock_gettime ();
24711 ;
24712 return 0;
24713 }
24714 _ACEOF
24715 for ac_lib in '' rt; do
24716 if test -z "$ac_lib"; then
24717 ac_res="none required"
24718 else
24719 ac_res=-l$ac_lib
24720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24721 fi
24722 if ac_fn_c_try_link "$LINENO"; then :
24723 ac_cv_search_clock_gettime=$ac_res
24724 fi
24725 rm -f core conftest.err conftest.$ac_objext \
24726 conftest$ac_exeext
24727 if ${ac_cv_search_clock_gettime+:} false; then :
24728 break
24729 fi
24730 done
24731 if ${ac_cv_search_clock_gettime+:} false; then :
24732
24733 else
24734 ac_cv_search_clock_gettime=no
24735 fi
24736 rm conftest.$ac_ext
24737 LIBS=$ac_func_search_save_LIBS
24738 fi
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
24740 $as_echo "$ac_cv_search_clock_gettime" >&6; }
24741 ac_res=$ac_cv_search_clock_gettime
24742 if test "$ac_res" != no; then :
24743 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24744
24745
24746 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
24747
24748 fi
24749
24750 TUNE_LIBS="$LIBS"
24751 LIBS="$old_LIBS"
24752
24753
24754
24755 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
24756 if test "x$ac_cv_func_vsnprintf" = xyes; then :
24757 gmp_vsnprintf_exists=yes
24758 else
24759 gmp_vsnprintf_exists=no
24760 fi
24761
24762 if test "$gmp_vsnprintf_exists" = no; then
24763 gmp_cv_func_vsnprintf=no
24764 else
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf works" >&5
24766 $as_echo_n "checking whether vsnprintf works... " >&6; }
24767 if ${gmp_cv_func_vsnprintf+:} false; then :
24768 $as_echo_n "(cached) " >&6
24769 else
24770 gmp_cv_func_vsnprintf=yes
24771 for i in 'return check ("hello world");' 'int n; return check ("%nhello world", &n);'; do
24772 if test "$cross_compiling" = yes; then :
24773 gmp_cv_func_vsnprintf=probably; break
24774 else
24775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24776 /* end confdefs.h. */
24777
24778 #include <string.h> /* for strcmp */
24779 #include <stdio.h> /* for vsnprintf */
24780
24781 #include <stdarg.h>
24782
24783 int
24784 check (const char *fmt, ...)
24785 {
24786 static char buf[128];
24787 va_list ap;
24788 int ret;
24789
24790 va_start (ap, fmt);
24791
24792 ret = vsnprintf (buf, 4, fmt, ap);
24793
24794 if (ret == -1 || strcmp (buf, "hel") != 0)
24795 return 1;
24796
24797 /* allowed return values */
24798 if (ret != 3 && ret != 11)
24799 return 2;
24800
24801 return 0;
24802 }
24803
24804 int
24805 main ()
24806 {
24807 $i
24808 }
24809
24810 _ACEOF
24811 if ac_fn_c_try_run "$LINENO"; then :
24812 :
24813 else
24814 gmp_cv_func_vsnprintf=no; break
24815 fi
24816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24817 conftest.$ac_objext conftest.beam conftest.$ac_ext
24818 fi
24819
24820 done
24821
24822 fi
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_vsnprintf" >&5
24824 $as_echo "$gmp_cv_func_vsnprintf" >&6; }
24825 if test "$gmp_cv_func_vsnprintf" = probably; then
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&5
24827 $as_echo "$as_me: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&2;}
24828 fi
24829 if test "$gmp_cv_func_vsnprintf" != no; then
24830
24831 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
24832
24833 fi
24834 fi
24835
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sscanf needs writable input" >&5
24837 $as_echo_n "checking whether sscanf needs writable input... " >&6; }
24838 if ${gmp_cv_func_sscanf_writable_input+:} false; then :
24839 $as_echo_n "(cached) " >&6
24840 else
24841 case $host in
24842 *-*-hpux9 | *-*-hpux9.*)
24843 gmp_cv_func_sscanf_writable_input=yes ;;
24844 *) gmp_cv_func_sscanf_writable_input=no ;;
24845 esac
24846
24847 fi
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_sscanf_writable_input" >&5
24849 $as_echo "$gmp_cv_func_sscanf_writable_input" >&6; }
24850 case $gmp_cv_func_sscanf_writable_input in
24851 yes)
24852 $as_echo "#define SSCANF_WRITABLE_INPUT 1" >>confdefs.h
24853 ;;
24854 no) ;;
24855 *) as_fn_error $? "unrecognised \$gmp_cv_func_sscanf_writable_input" "$LINENO" 5 ;;
24856 esac
24857
24858
24859 # Reasons for checking:
24860 # pst_processor psp_iticksperclktick - not in hpux 9
24861 #
24862 ac_fn_c_check_member "$LINENO" "struct pst_processor" "psp_iticksperclktick" "ac_cv_member_struct_pst_processor_psp_iticksperclktick" "#include <sys/pstat.h>
24863 "
24864 if test "x$ac_cv_member_struct_pst_processor_psp_iticksperclktick" = xyes; then :
24865
24866 $as_echo "#define HAVE_PSP_ITICKSPERCLKTICK 1" >>confdefs.h
24867
24868 fi
24869
24870
24871 # C++ tests, when required
24872 #
24873 if test $enable_cxx = yes; then
24874 ac_ext=cpp
24875 ac_cpp='$CXXCPP $CPPFLAGS'
24876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24879
24880
24881 # Reasons for testing:
24882 # <sstream> - not in g++ 2.95.2
24883 # std::locale - not in g++ 2.95.4
24884 #
24885
24886 for ac_header in sstream
24887 do :
24888 ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default"
24889 if test "x$ac_cv_header_sstream" = xyes; then :
24890 cat >>confdefs.h <<_ACEOF
24891 #define HAVE_SSTREAM 1
24892 _ACEOF
24893
24894 fi
24895
24896 done
24897
24898 ac_fn_cxx_check_type "$LINENO" "std::locale" "ac_cv_type_std__locale" "#include <locale>
24899 "
24900 if test "x$ac_cv_type_std__locale" = xyes; then :
24901
24902 cat >>confdefs.h <<_ACEOF
24903 #define HAVE_STD__LOCALE 1
24904 _ACEOF
24905
24906
24907 fi
24908
24909
24910 ac_ext=c
24911 ac_cpp='$CPP $CPPFLAGS'
24912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24915
24916 fi
24917
24918
24919 # Pick the correct source files in $path and link them to mpn/.
24920 # $gmp_mpn_functions lists all functions we need.
24921 #
24922 # The rule is to find a file with the function name and a .asm, .S,
24923 # .s, or .c extension. Certain multi-function files with special names
24924 # can provide some functions too. (mpn/Makefile.am passes
24925 # -DOPERATION_<func> to get them to generate the right code.)
24926
24927 # Note: $gmp_mpn_functions must have mod_1 before pre_mod_1 so the former
24928 # can optionally provide the latter as an extra entrypoint. Likewise
24929 # divrem_1 and pre_divrem_1.
24930
24931 gmp_mpn_functions_optional="umul udiv \
24932 invert_limb sqr_diagonal sqr_diag_addlsh1 \
24933 mul_2 mul_3 mul_4 mul_5 mul_6 \
24934 addmul_2 addmul_3 addmul_4 addmul_5 addmul_6 addmul_7 addmul_8 \
24935 addlsh1_n sublsh1_n rsblsh1_n rsh1add_n rsh1sub_n \
24936 addlsh2_n sublsh2_n rsblsh2_n \
24937 addlsh_n sublsh_n rsblsh_n \
24938 add_n_sub_n addaddmul_1msb0"
24939
24940 gmp_mpn_functions="$extra_functions \
24941 add add_1 add_n sub sub_1 sub_n cnd_add_n cnd_sub_n cnd_swap neg com \
24942 mul_1 addmul_1 submul_1 \
24943 add_err1_n add_err2_n add_err3_n sub_err1_n sub_err2_n sub_err3_n \
24944 lshift rshift dive_1 diveby3 divis divrem divrem_1 divrem_2 \
24945 fib2_ui fib2m mod_1 mod_34lsub1 mode1o pre_divrem_1 pre_mod_1 dump \
24946 mod_1_1 mod_1_2 mod_1_3 mod_1_4 lshiftc \
24947 mul mul_fft mul_n sqr mul_basecase sqr_basecase nussbaumer_mul \
24948 mulmid_basecase toom42_mulmid mulmid_n mulmid \
24949 random random2 pow_1 \
24950 rootrem sqrtrem sizeinbase get_str set_str compute_powtab \
24951 scan0 scan1 popcount hamdist cmp zero_p \
24952 perfsqr perfpow strongfibo \
24953 gcd_11 gcd_22 gcd_1 gcd gcdext_1 gcdext gcd_subdiv_step \
24954 gcdext_lehmer \
24955 div_q tdiv_qr jacbase jacobi_2 jacobi get_d \
24956 matrix22_mul matrix22_mul1_inverse_vector \
24957 hgcd_matrix hgcd2 hgcd_step hgcd_reduce hgcd hgcd_appr \
24958 hgcd2_jacobi hgcd_jacobi \
24959 mullo_n mullo_basecase sqrlo sqrlo_basecase \
24960 toom22_mul toom32_mul toom42_mul toom52_mul toom62_mul \
24961 toom33_mul toom43_mul toom53_mul toom54_mul toom63_mul \
24962 toom44_mul \
24963 toom6h_mul toom6_sqr toom8h_mul toom8_sqr \
24964 toom_couple_handling \
24965 toom2_sqr toom3_sqr toom4_sqr \
24966 toom_eval_dgr3_pm1 toom_eval_dgr3_pm2 \
24967 toom_eval_pm1 toom_eval_pm2 toom_eval_pm2exp toom_eval_pm2rexp \
24968 toom_interpolate_5pts toom_interpolate_6pts toom_interpolate_7pts \
24969 toom_interpolate_8pts toom_interpolate_12pts toom_interpolate_16pts \
24970 invertappr invert binvert mulmod_bnm1 sqrmod_bnm1 mulmod_bknp1 \
24971 div_qr_1 div_qr_1n_pi1 \
24972 div_qr_2 div_qr_2n_pi1 div_qr_2u_pi1 \
24973 sbpi1_div_q sbpi1_div_qr sbpi1_divappr_q \
24974 dcpi1_div_q dcpi1_div_qr dcpi1_divappr_q \
24975 mu_div_qr mu_divappr_q mu_div_q \
24976 bdiv_q_1 \
24977 sbpi1_bdiv_q sbpi1_bdiv_qr sbpi1_bdiv_r \
24978 dcpi1_bdiv_q dcpi1_bdiv_qr \
24979 mu_bdiv_q mu_bdiv_qr \
24980 bdiv_q bdiv_qr broot brootinv bsqrt bsqrtinv \
24981 divexact bdiv_dbm1c redc_1 redc_2 redc_n powm powlo sec_powm \
24982 sec_mul sec_sqr sec_div_qr sec_div_r sec_pi1_div_qr sec_pi1_div_r \
24983 sec_add_1 sec_sub_1 sec_invert \
24984 trialdiv remove \
24985 and_n andn_n nand_n ior_n iorn_n nior_n xor_n xnor_n \
24986 copyi copyd zero sec_tabselect \
24987 comb_tables \
24988 $gmp_mpn_functions_optional"
24989
24990
24991
24992 # the list of all object files used by mpn/Makefile.in and the
24993 # top-level Makefile.in, respectively
24994 mpn_objects=
24995 mpn_objs_in_libgmp=
24996
24997 # links from the sources, to be removed by "make distclean"
24998 gmp_srclinks=
24999
25000
25001 # mpn_relative_top_srcdir is $top_srcdir, but for use from within the mpn
25002 # build directory. If $srcdir is relative then we use a relative path too,
25003 # so the two trees can be moved together.
25004 case $srcdir in
25005 [\\/]* | ?:[\\/]*) # absolute, as per autoconf
25006 mpn_relative_top_srcdir=$srcdir ;;
25007 *) # relative
25008 mpn_relative_top_srcdir=../$srcdir ;;
25009 esac
25010
25011
25012
25013
25014
25015
25016 # Fat binary setups.
25017 #
25018 # We proceed through each $fat_path directory, and look for $fat_function
25019 # routines there. Those found are incorporated in the build by generating a
25020 # little mpn/<foo>.asm or mpn/<foo>.c file in the build directory, with
25021 # suitable function renaming, and adding that to $mpn_objects (the same as a
25022 # normal mpn file).
25023 #
25024 # fat.h is generated with macros to let internal calls to each $fat_function
25025 # go directly through __gmpn_cpuvec, plus macros and declarations helping to
25026 # setup that structure, on a per-directory basis ready for
25027 # mpn/<cpu>/fat/fat.c.
25028 #
25029 # fat.h includes thresholds listed in $fat_thresholds, extracted from
25030 # gmp-mparam.h in each directory. An overall maximum for each threshold is
25031 # established, for use in making fixed size arrays of temporary space.
25032 # (Eg. MUL_TOOM33_THRESHOLD_LIMIT used by mpn/generic/mul.c.)
25033 #
25034 # It'd be possible to do some of this manually, but when there's more than a
25035 # few functions and a few directories it becomes very tedious, and very
25036 # prone to having some routine accidentally omitted. On that basis it seems
25037 # best to automate as much as possible, even if the code to do so is a bit
25038 # ugly.
25039 #
25040
25041 if test -n "$fat_path"; then
25042 # Usually the mpn build directory is created with mpn/Makefile
25043 # instantiation, but we want to write to it sooner.
25044 mkdir mpn 2>/dev/null
25045
25046 echo "/* fat.h - setups for fat binaries." >fat.h
25047 echo " Generated by configure - DO NOT EDIT. */" >>fat.h
25048
25049
25050 $as_echo "#define WANT_FAT_BINARY 1" >>confdefs.h
25051
25052
25053 echo 'define(<WANT_FAT_BINARY>, <yes>)' >>$gmp_tmpconfigm4
25054
25055
25056 # Don't want normal copies of fat functions
25057 for tmp_fn in $fat_functions; do
25058 remove_from_list_tmp=
25059 for remove_from_list_i in $gmp_mpn_functions; do
25060 if test $remove_from_list_i = $tmp_fn; then :;
25061 else
25062 remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i"
25063 fi
25064 done
25065 gmp_mpn_functions=$remove_from_list_tmp
25066
25067 remove_from_list_tmp=
25068 for remove_from_list_i in $gmp_mpn_functions_optional; do
25069 if test $remove_from_list_i = $tmp_fn; then :;
25070 else
25071 remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i"
25072 fi
25073 done
25074 gmp_mpn_functions_optional=$remove_from_list_tmp
25075
25076 done
25077
25078 for tmp_fn in $fat_functions; do
25079 case $tmp_fn in
25080 dive_1) tmp_fbase=divexact_1 ;;
25081 diveby3) tmp_fbase=divexact_by3c ;;
25082 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
25083 mode1o) tmp_fbase=modexact_1c_odd ;;
25084 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
25085 mod_1_1) tmp_fbase=mod_1_1p ;;
25086 mod_1_1_cps) tmp_fbase=mod_1_1p_cps ;;
25087 mod_1_2) tmp_fbase=mod_1s_2p ;;
25088 mod_1_2_cps) tmp_fbase=mod_1s_2p_cps ;;
25089 mod_1_3) tmp_fbase=mod_1s_3p ;;
25090 mod_1_3_cps) tmp_fbase=mod_1s_3p_cps ;;
25091 mod_1_4) tmp_fbase=mod_1s_4p ;;
25092 mod_1_4_cps) tmp_fbase=mod_1s_4p_cps ;;
25093 *) tmp_fbase=$tmp_fn ;;
25094 esac
25095
25096 echo "
25097 #ifndef OPERATION_$tmp_fn
25098 #undef mpn_$tmp_fbase
25099 #define mpn_$tmp_fbase (*__gmpn_cpuvec.$tmp_fbase)
25100 #endif
25101 DECL_$tmp_fbase (__MPN(${tmp_fbase}_init));" >>fat.h
25102 # encourage various macros to use fat functions
25103 cat >>confdefs.h <<_ACEOF
25104 #define HAVE_NATIVE_mpn_$tmp_fbase 1
25105 _ACEOF
25106
25107 done
25108
25109 echo "" >>fat.h
25110 echo "/* variable thresholds */" >>fat.h
25111 for tmp_tn in $fat_thresholds; do
25112 echo "#undef $tmp_tn" >>fat.h
25113 echo "#define $tmp_tn CPUVEC_THRESHOLD (`echo $tmp_tn | tr [A-Z] [a-z]`)" >>fat.h
25114 done
25115
25116 echo "
25117 /* Copy all fields into __gmpn_cpuvec.
25118 memcpy is not used because it might operate byte-wise (depending on its
25119 implementation), and we need the function pointer writes to be atomic.
25120 "volatile" discourages the compiler from trying to optimize this. */
25121 #define CPUVEC_INSTALL(vec) \\
25122 do { \\
25123 volatile struct cpuvec_t *p = &__gmpn_cpuvec; \\" >>fat.h
25124 for tmp_fn in $fat_functions; do
25125 case $tmp_fn in
25126 dive_1) tmp_fbase=divexact_1 ;;
25127 diveby3) tmp_fbase=divexact_by3c ;;
25128 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
25129 mode1o) tmp_fbase=modexact_1c_odd ;;
25130 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
25131 mod_1_1) tmp_fbase=mod_1_1p ;;
25132 mod_1_1_cps) tmp_fbase=mod_1_1p_cps ;;
25133 mod_1_2) tmp_fbase=mod_1s_2p ;;
25134 mod_1_2_cps) tmp_fbase=mod_1s_2p_cps ;;
25135 mod_1_3) tmp_fbase=mod_1s_3p ;;
25136 mod_1_3_cps) tmp_fbase=mod_1s_3p_cps ;;
25137 mod_1_4) tmp_fbase=mod_1s_4p ;;
25138 mod_1_4_cps) tmp_fbase=mod_1s_4p_cps ;;
25139 *) tmp_fbase=$tmp_fn ;;
25140 esac
25141
25142 echo " p->$tmp_fbase = vec.$tmp_fbase; \\" >>fat.h
25143 done
25144 for tmp_tn in $fat_thresholds; do
25145 tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]`
25146 echo " p->$tmp_field_name = vec.$tmp_field_name; \\" >>fat.h
25147 done
25148 echo " } while (0)" >>fat.h
25149
25150 echo "
25151 /* A helper to check all fields are filled. */
25152 #define ASSERT_CPUVEC(vec) \\
25153 do { \\" >>fat.h
25154 for tmp_fn in $fat_functions; do
25155 case $tmp_fn in
25156 dive_1) tmp_fbase=divexact_1 ;;
25157 diveby3) tmp_fbase=divexact_by3c ;;
25158 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
25159 mode1o) tmp_fbase=modexact_1c_odd ;;
25160 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
25161 mod_1_1) tmp_fbase=mod_1_1p ;;
25162 mod_1_1_cps) tmp_fbase=mod_1_1p_cps ;;
25163 mod_1_2) tmp_fbase=mod_1s_2p ;;
25164 mod_1_2_cps) tmp_fbase=mod_1s_2p_cps ;;
25165 mod_1_3) tmp_fbase=mod_1s_3p ;;
25166 mod_1_3_cps) tmp_fbase=mod_1s_3p_cps ;;
25167 mod_1_4) tmp_fbase=mod_1s_4p ;;
25168 mod_1_4_cps) tmp_fbase=mod_1s_4p_cps ;;
25169 *) tmp_fbase=$tmp_fn ;;
25170 esac
25171
25172 echo " ASSERT (vec.$tmp_fbase != NULL); \\" >>fat.h
25173 done
25174 for tmp_tn in $fat_thresholds; do
25175 tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]`
25176 echo " ASSERT (vec.$tmp_field_name != 0); \\" >>fat.h
25177 done
25178 echo " } while (0)" >>fat.h
25179
25180 echo "
25181 /* Call ITERATE(field) for each fat threshold field. */
25182 #define ITERATE_FAT_THRESHOLDS() \\
25183 do { \\" >>fat.h
25184 for tmp_tn in $fat_thresholds; do
25185 tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]`
25186 echo " ITERATE ($tmp_tn, $tmp_field_name); \\" >>fat.h
25187 done
25188 echo " } while (0)" >>fat.h
25189
25190 for tmp_dir in $fat_path; do
25191 CPUVEC_SETUP=
25192 THRESH_ASM_SETUP=
25193 echo "" >>fat.h
25194 tmp_suffix=`echo $tmp_dir | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
25195
25196 # In order to keep names unique on a DOS 8.3 filesystem, use a prefix
25197 # (rather than a suffix) for the generated file names, and abbreviate.
25198 case $tmp_suffix in
25199 pentium) tmp_prefix=p ;;
25200 pentium_mmx) tmp_prefix=pm ;;
25201 p6_mmx) tmp_prefix=p2 ;;
25202 p6_p3mmx) tmp_prefix=p3 ;;
25203 pentium4) tmp_prefix=p4 ;;
25204 pentium4_mmx) tmp_prefix=p4m ;;
25205 pentium4_sse2) tmp_prefix=p4s ;;
25206 k6_mmx) tmp_prefix=k6m ;;
25207 k6_k62mmx) tmp_prefix=k62 ;;
25208 k7_mmx) tmp_prefix=k7m ;;
25209 *) tmp_prefix=$tmp_suffix ;;
25210 esac
25211
25212 # Extract desired thresholds from gmp-mparam.h file in this directory,
25213 # if present.
25214 tmp_mparam=$srcdir/mpn/$tmp_dir/gmp-mparam.h
25215 if test -f $tmp_mparam; then
25216 for tmp_tn in $fat_thresholds; do
25217 tmp_thresh=`sed -n "s/^#define $tmp_tn[ ]*\\([0-9][0-9]*\\).*$/\\1/p" $tmp_mparam`
25218 if test -n "$tmp_thresh"; then
25219 THRESH_ASM_SETUP="${THRESH_ASM_SETUP}define($tmp_tn,$tmp_thresh)
25220 "
25221 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.`echo $tmp_tn | tr [A-Z] [a-z]` = $tmp_thresh; \\
25222 "
25223 eval tmp_limit=\$${tmp_tn}_LIMIT
25224 if test -z "$tmp_limit"; then
25225 tmp_limit=0
25226 fi
25227 if test $tmp_thresh -gt $tmp_limit; then
25228 eval ${tmp_tn}_LIMIT=$tmp_thresh
25229 fi
25230 fi
25231 done
25232 fi
25233
25234 for tmp_fn in $fat_functions; do
25235 # functions that can be provided by multi-function files
25236 tmp_mulfunc=
25237 case $tmp_fn in
25238 add_n|sub_n) tmp_mulfunc="aors_n" ;;
25239 add_err1_n|sub_err1_n)
25240 tmp_mulfunc="aors_err1_n" ;;
25241 add_err2_n|sub_err2_n)
25242 tmp_mulfunc="aors_err2_n" ;;
25243 add_err3_n|sub_err3_n)
25244 tmp_mulfunc="aors_err3_n" ;;
25245 cnd_add_n|cnd_sub_n) tmp_mulfunc="cnd_aors_n" ;;
25246 sec_add_1|sec_sub_1) tmp_mulfunc="sec_aors_1" ;;
25247 addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
25248 mul_2|addmul_2) tmp_mulfunc="aormul_2" ;;
25249 mul_3|addmul_3) tmp_mulfunc="aormul_3" ;;
25250 mul_4|addmul_4) tmp_mulfunc="aormul_4" ;;
25251 popcount|hamdist) tmp_mulfunc="popham" ;;
25252 and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
25253 tmp_mulfunc="logops_n" ;;
25254 lshift|rshift) tmp_mulfunc="lorrshift";;
25255 addlsh1_n)
25256 tmp_mulfunc="aorslsh1_n aorrlsh1_n aorsorrlsh1_n";;
25257 sublsh1_n)
25258 tmp_mulfunc="aorslsh1_n sorrlsh1_n aorsorrlsh1_n";;
25259 rsblsh1_n)
25260 tmp_mulfunc="aorrlsh1_n sorrlsh1_n aorsorrlsh1_n";;
25261 addlsh2_n)
25262 tmp_mulfunc="aorslsh2_n aorrlsh2_n aorsorrlsh2_n";;
25263 sublsh2_n)
25264 tmp_mulfunc="aorslsh2_n sorrlsh2_n aorsorrlsh2_n";;
25265 rsblsh2_n)
25266 tmp_mulfunc="aorrlsh2_n sorrlsh2_n aorsorrlsh2_n";;
25267 addlsh_n)
25268 tmp_mulfunc="aorslsh_n aorrlsh_n aorsorrlsh_n";;
25269 sublsh_n)
25270 tmp_mulfunc="aorslsh_n sorrlsh_n aorsorrlsh_n";;
25271 rsblsh_n)
25272 tmp_mulfunc="aorrlsh_n sorrlsh_n aorsorrlsh_n";;
25273 rsh1add_n|rsh1sub_n)
25274 tmp_mulfunc="rsh1aors_n";;
25275 sec_div_qr|sec_div_r)
25276 tmp_mulfunc="sec_div";;
25277 sec_pi1_div_qr|sec_pi1_div_r)
25278 tmp_mulfunc="sec_pi1_div";;
25279 esac
25280
25281
25282 for tmp_base in $tmp_fn $tmp_mulfunc; do
25283 for tmp_ext in asm S s c; do
25284 tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
25285 if test -f $tmp_file; then
25286
25287 # If the host uses a non-standard ABI, check if tmp_file supports it
25288 #
25289 if test -n "$GMP_NONSTD_ABI" && test $tmp_ext != "c"; then
25290 abi=`sed -n 's/^[ ]*ABI_SUPPORT(\(.*\))/\1/p' $tmp_file `
25291 if echo "$abi" | grep -q "\\b${GMP_NONSTD_ABI}\\b"; then
25292 true
25293 else
25294 continue
25295 fi
25296 fi
25297
25298 mpn_objects="$mpn_objects ${tmp_prefix}_$tmp_fn.lo"
25299 mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/${tmp_prefix}_$tmp_fn.lo"
25300
25301 case $tmp_fn in
25302 dive_1) tmp_fbase=divexact_1 ;;
25303 diveby3) tmp_fbase=divexact_by3c ;;
25304 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
25305 mode1o) tmp_fbase=modexact_1c_odd ;;
25306 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
25307 mod_1_1) tmp_fbase=mod_1_1p ;;
25308 mod_1_1_cps) tmp_fbase=mod_1_1p_cps ;;
25309 mod_1_2) tmp_fbase=mod_1s_2p ;;
25310 mod_1_2_cps) tmp_fbase=mod_1s_2p_cps ;;
25311 mod_1_3) tmp_fbase=mod_1s_3p ;;
25312 mod_1_3_cps) tmp_fbase=mod_1s_3p_cps ;;
25313 mod_1_4) tmp_fbase=mod_1s_4p ;;
25314 mod_1_4_cps) tmp_fbase=mod_1s_4p_cps ;;
25315 *) tmp_fbase=$tmp_fn ;;
25316 esac
25317
25318
25319 # carry-in variant, eg. divrem_1c or modexact_1c_odd
25320 case $tmp_fbase in
25321 *_1*) tmp_fbasec=`echo $tmp_fbase | sed 's/_1/_1c/'` ;;
25322 *) tmp_fbasec=${tmp_fbase}c ;;
25323 esac
25324
25325 # Create a little file doing an include from srcdir. The
25326 # OPERATION and renamings aren't all needed all the time, but
25327 # they don't hurt if unused.
25328 #
25329 # FIXME: Should generate these via config.status commands.
25330 # Would need them all in one AC_CONFIG_COMMANDS though, since
25331 # that macro doesn't accept a set of separate commands generated
25332 # by shell code.
25333 #
25334 case $tmp_ext in
25335 asm)
25336 # hide the d-n-l from autoconf's error checking
25337 tmp_d_n_l=d""nl
25338 echo "$tmp_d_n_l mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
25339 $tmp_d_n_l Generated by configure - DO NOT EDIT.
25340
25341 define(OPERATION_$tmp_fn)
25342 define(__gmpn_$tmp_fbase, __gmpn_${tmp_fbase}_$tmp_suffix)
25343 define(__gmpn_$tmp_fbasec,__gmpn_${tmp_fbasec}_${tmp_suffix})
25344 define(__gmpn_preinv_${tmp_fbase},__gmpn_preinv_${tmp_fbase}_${tmp_suffix})
25345 define(__gmpn_${tmp_fbase}_cps,__gmpn_${tmp_fbase}_cps_${tmp_suffix})
25346
25347 $tmp_d_n_l For k6 and k7 gcd_1 calling their corresponding mpn_modexact_1_odd
25348 ifdef(\`__gmpn_modexact_1_odd',,
25349 \`define(__gmpn_modexact_1_odd,__gmpn_modexact_1_odd_${tmp_suffix})')
25350
25351 $THRESH_ASM_SETUP
25352 include($mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.asm)
25353 " >mpn/${tmp_prefix}_$tmp_fn.asm
25354 ;;
25355 c)
25356 echo "/* mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
25357 Generated by configure - DO NOT EDIT. */
25358
25359 #define OPERATION_$tmp_fn 1
25360 #define __gmpn_$tmp_fbase __gmpn_${tmp_fbase}_$tmp_suffix
25361 #define __gmpn_$tmp_fbasec __gmpn_${tmp_fbasec}_${tmp_suffix}
25362 #define __gmpn_preinv_${tmp_fbase} __gmpn_preinv_${tmp_fbase}_${tmp_suffix}
25363 #define __gmpn_${tmp_fbase}_cps __gmpn_${tmp_fbase}_cps_${tmp_suffix}
25364
25365 #include \"$mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.c\"
25366 " >mpn/${tmp_prefix}_$tmp_fn.c
25367 ;;
25368 esac
25369
25370 # Prototype, and append to CPUVEC_SETUP for this directory.
25371 echo "DECL_$tmp_fbase (__gmpn_${tmp_fbase}_$tmp_suffix);" >>fat.h
25372 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.$tmp_fbase = __gmpn_${tmp_fbase}_${tmp_suffix}; \\
25373 "
25374 # Ditto for any preinv variant (preinv_divrem_1, preinv_mod_1).
25375 if grep "^PROLOGUE(mpn_preinv_$tmp_fn)" $tmp_file >/dev/null; then
25376 echo "DECL_preinv_$tmp_fbase (__gmpn_preinv_${tmp_fbase}_$tmp_suffix);" >>fat.h
25377 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.preinv_$tmp_fbase = __gmpn_preinv_${tmp_fbase}_${tmp_suffix}; \\
25378 "
25379 fi
25380
25381 # Ditto for any mod_1...cps variant
25382 if grep "^PROLOGUE(mpn_${tmp_fbase}_cps)" $tmp_file >/dev/null; then
25383 echo "DECL_${tmp_fbase}_cps (__gmpn_${tmp_fbase}_cps_$tmp_suffix);" >>fat.h
25384 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.${tmp_fbase}_cps = __gmpn_${tmp_fbase}_cps_${tmp_suffix}; \\
25385 "
25386 fi
25387 fi
25388 done
25389 done
25390 done
25391
25392 # Emit CPUVEC_SETUP for this directory
25393 echo "" >>fat.h
25394 echo "#define CPUVEC_SETUP_$tmp_suffix \\" >>fat.h
25395 echo " do { \\" >>fat.h
25396 echo "$CPUVEC_SETUP } while (0)" >>fat.h
25397 done
25398
25399 # Emit threshold limits
25400 echo "" >>fat.h
25401 for tmp_tn in $fat_thresholds; do
25402 eval tmp_limit=\$${tmp_tn}_LIMIT
25403 echo "#define ${tmp_tn}_LIMIT $tmp_limit" >>fat.h
25404 done
25405 fi
25406
25407
25408 # Normal binary setups.
25409 #
25410
25411 for tmp_ext in asm S s c; do
25412 eval found_$tmp_ext=no
25413 done
25414
25415 for tmp_fn in $gmp_mpn_functions; do
25416 for tmp_ext in asm S s c; do
25417 test "$no_create" = yes || rm -f mpn/$tmp_fn.$tmp_ext
25418 done
25419
25420 # mpn_preinv_divrem_1 might have been provided by divrem_1.asm, likewise
25421 # mpn_preinv_mod_1 by mod_1.asm.
25422 case $tmp_fn in
25423 pre_divrem_1)
25424 if test "$HAVE_NATIVE_mpn_preinv_divrem_1" = yes; then continue; fi ;;
25425 pre_mod_1)
25426 if test "$HAVE_NATIVE_mpn_preinv_mod_1" = yes; then continue; fi ;;
25427 esac
25428
25429 # functions that can be provided by multi-function files
25430 tmp_mulfunc=
25431 case $tmp_fn in
25432 add_n|sub_n) tmp_mulfunc="aors_n" ;;
25433 add_err1_n|sub_err1_n)
25434 tmp_mulfunc="aors_err1_n" ;;
25435 add_err2_n|sub_err2_n)
25436 tmp_mulfunc="aors_err2_n" ;;
25437 add_err3_n|sub_err3_n)
25438 tmp_mulfunc="aors_err3_n" ;;
25439 cnd_add_n|cnd_sub_n) tmp_mulfunc="cnd_aors_n" ;;
25440 sec_add_1|sec_sub_1) tmp_mulfunc="sec_aors_1" ;;
25441 addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
25442 mul_2|addmul_2) tmp_mulfunc="aormul_2" ;;
25443 mul_3|addmul_3) tmp_mulfunc="aormul_3" ;;
25444 mul_4|addmul_4) tmp_mulfunc="aormul_4" ;;
25445 popcount|hamdist) tmp_mulfunc="popham" ;;
25446 and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
25447 tmp_mulfunc="logops_n" ;;
25448 lshift|rshift) tmp_mulfunc="lorrshift";;
25449 addlsh1_n)
25450 tmp_mulfunc="aorslsh1_n aorrlsh1_n aorsorrlsh1_n";;
25451 sublsh1_n)
25452 tmp_mulfunc="aorslsh1_n sorrlsh1_n aorsorrlsh1_n";;
25453 rsblsh1_n)
25454 tmp_mulfunc="aorrlsh1_n sorrlsh1_n aorsorrlsh1_n";;
25455 addlsh2_n)
25456 tmp_mulfunc="aorslsh2_n aorrlsh2_n aorsorrlsh2_n";;
25457 sublsh2_n)
25458 tmp_mulfunc="aorslsh2_n sorrlsh2_n aorsorrlsh2_n";;
25459 rsblsh2_n)
25460 tmp_mulfunc="aorrlsh2_n sorrlsh2_n aorsorrlsh2_n";;
25461 addlsh_n)
25462 tmp_mulfunc="aorslsh_n aorrlsh_n aorsorrlsh_n";;
25463 sublsh_n)
25464 tmp_mulfunc="aorslsh_n sorrlsh_n aorsorrlsh_n";;
25465 rsblsh_n)
25466 tmp_mulfunc="aorrlsh_n sorrlsh_n aorsorrlsh_n";;
25467 rsh1add_n|rsh1sub_n)
25468 tmp_mulfunc="rsh1aors_n";;
25469 sec_div_qr|sec_div_r)
25470 tmp_mulfunc="sec_div";;
25471 sec_pi1_div_qr|sec_pi1_div_r)
25472 tmp_mulfunc="sec_pi1_div";;
25473 esac
25474
25475
25476 found=no
25477 for tmp_dir in $path; do
25478 for tmp_base in $tmp_fn $tmp_mulfunc; do
25479 for tmp_ext in asm S s c; do
25480 tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
25481 if test -f $tmp_file; then
25482
25483 # For a nails build, check if the file supports our nail bits.
25484 # Generic code always supports all nails.
25485 #
25486 # FIXME: When a multi-function file is selected to provide one of
25487 # the nails-neutral routines, like logops_n for and_n, the
25488 # PROLOGUE grepping will create HAVE_NATIVE_mpn_<foo> defines for
25489 # all functions in that file, even if they haven't all been
25490 # nailified. Not sure what to do about this, it's only really a
25491 # problem for logops_n, and it's not too terrible to insist those
25492 # get nailified always.
25493 #
25494 if test $GMP_NAIL_BITS != 0 && test $tmp_dir != generic; then
25495 case $tmp_fn in
25496 and_n | ior_n | xor_n | andn_n | \
25497 copyi | copyd | \
25498 popcount | hamdist | \
25499 udiv | udiv_w_sdiv | umul | \
25500 cntlz | invert_limb)
25501 # these operations are either unaffected by nails or defined
25502 # to operate on full limbs
25503 ;;
25504 *)
25505 nails=`sed -n 's/^[ ]*NAILS_SUPPORT(\(.*\))/\1/p' $tmp_file `
25506 for n in $nails; do
25507 case $n in
25508 *-*)
25509 n_start=`echo "$n" | sed -n 's/\(.*\)-.*/\1/p'`
25510 n_end=`echo "$n" | sed -n 's/.*-\(.*\)/\1/p'`
25511 ;;
25512 *)
25513 n_start=$n
25514 n_end=$n
25515 ;;
25516 esac
25517 if test $GMP_NAIL_BITS -ge $n_start && test $GMP_NAIL_BITS -le $n_end; then
25518 found=yes
25519 break
25520 fi
25521 done
25522 if test $found != yes; then
25523 continue
25524 fi
25525 ;;
25526 esac
25527 fi
25528
25529 # If the host uses a non-standard ABI, check if tmp_file supports it
25530 #
25531 if test -n "$GMP_NONSTD_ABI" && test $tmp_ext != "c"; then
25532 abi=`sed -n 's/^[ ]*ABI_SUPPORT(\(.*\))/\1/p' $tmp_file `
25533 if echo "$abi" | grep -q "\\b${GMP_NONSTD_ABI}\\b"; then
25534 true
25535 else
25536 continue
25537 fi
25538 fi
25539
25540 found=yes
25541 eval found_$tmp_ext=yes
25542
25543 if test $tmp_ext = c; then
25544 tmp_u='$U'
25545 else
25546 tmp_u=
25547 fi
25548
25549 mpn_objects="$mpn_objects $tmp_fn$tmp_u.lo"
25550 mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/$tmp_fn$tmp_u.lo"
25551 ac_config_links="$ac_config_links mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext"
25552
25553 gmp_srclinks="$gmp_srclinks mpn/$tmp_fn.$tmp_ext"
25554
25555 # Duplicate AC_DEFINEs are harmless, so it doesn't matter
25556 # that multi-function files get grepped here repeatedly.
25557 # The PROLOGUE pattern excludes the optional second parameter.
25558 gmp_ep=`
25559 sed -n 's/^[ ]*MULFUNC_PROLOGUE(\(.*\))/\1/p' $tmp_file ;
25560 sed -n 's/^[ ]*PROLOGUE(\([^,]*\).*)/\1/p' $tmp_file
25561 `
25562 for gmp_tmp in $gmp_ep; do
25563 cat >>confdefs.h <<_ACEOF
25564 #define HAVE_NATIVE_$gmp_tmp 1
25565 _ACEOF
25566
25567 eval HAVE_NATIVE_$gmp_tmp=yes
25568 done
25569
25570 case $tmp_fn in
25571 sqr_basecase) sqr_basecase_source=$tmp_file ;;
25572 esac
25573
25574 break
25575 fi
25576 done
25577 if test $found = yes; then break ; fi
25578 done
25579 if test $found = yes; then break ; fi
25580 done
25581
25582 if test $found = no; then
25583 for tmp_optional in $gmp_mpn_functions_optional; do
25584 if test $tmp_optional = $tmp_fn; then
25585 found=yes
25586 fi
25587 done
25588 if test $found = no; then
25589 as_fn_error $? "no version of $tmp_fn found in path: $path" "$LINENO" 5
25590 fi
25591 fi
25592 done
25593
25594 # All cycle counters are .asm files currently
25595 if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
25596 found_asm=yes
25597 fi
25598
25599
25600
25601
25602
25603 # Don't demand an m4 unless it's actually needed.
25604 if test $found_asm = yes; then
25605
25606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable m4" >&5
25607 $as_echo_n "checking for suitable m4... " >&6; }
25608 if ${gmp_cv_prog_m4+:} false; then :
25609 $as_echo_n "(cached) " >&6
25610 else
25611 if test -n "$M4"; then
25612 gmp_cv_prog_m4="$M4"
25613 else
25614 cat >conftest.m4 <<\EOF
25615 define(dollarhash,``$#'')ifelse(dollarhash(x),1,`define(t1,Y)',
25616 ``bad: $# not supported (SunOS /usr/bin/m4)
25617 '')ifelse(eval(89),89,`define(t2,Y)',
25618 `bad: eval() doesnt support 8 or 9 in a constant (OpenBSD 2.6 m4)
25619 ')ifelse(eval(9,9),10,`define(t3,Y)',
25620 `bad: eval() doesnt support radix in eval (FreeBSD 8.x,9.0,9.1,9.2 m4)
25621 ')ifelse(t1`'t2`'t3,YYY,`good
25622 ')
25623 EOF
25624 echo "trying m4" >&5
25625 gmp_tmp_val=`(m4 conftest.m4) 2>&5`
25626 echo "$gmp_tmp_val" >&5
25627 if test "$gmp_tmp_val" = good; then
25628 gmp_cv_prog_m4="m4"
25629 else
25630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
25631 ac_dummy="$PATH:/usr/5bin"
25632 for ac_dir in $ac_dummy; do
25633 test -z "$ac_dir" && ac_dir=.
25634 echo "trying $ac_dir/m4" >&5
25635 gmp_tmp_val=`($ac_dir/m4 conftest.m4) 2>&5`
25636 echo "$gmp_tmp_val" >&5
25637 if test "$gmp_tmp_val" = good; then
25638 gmp_cv_prog_m4="$ac_dir/m4"
25639 break
25640 fi
25641 done
25642 IFS="$ac_save_ifs"
25643 if test -z "$gmp_cv_prog_m4"; then
25644 as_fn_error $? "No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." "$LINENO" 5
25645 fi
25646 fi
25647 rm -f conftest.m4
25648 fi
25649 fi
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_m4" >&5
25651 $as_echo "$gmp_cv_prog_m4" >&6; }
25652 M4="$gmp_cv_prog_m4"
25653
25654
25655
25656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if m4wrap produces spurious output" >&5
25657 $as_echo_n "checking if m4wrap produces spurious output... " >&6; }
25658 if ${gmp_cv_m4_m4wrap_spurious+:} false; then :
25659 $as_echo_n "(cached) " >&6
25660 else
25661 # hide the d-n-l from autoconf's error checking
25662 tmp_d_n_l=d""nl
25663 cat >conftest.m4 <<EOF
25664 changequote({,})define(x,)m4wrap({x})$tmp_d_n_l
25665 EOF
25666 echo test input is >&5
25667 cat conftest.m4 >&5
25668 tmp_chars=`$M4 conftest.m4 | wc -c`
25669 echo produces $tmp_chars chars output >&5
25670 rm -f conftest.m4
25671 if test $tmp_chars = 0; then
25672 gmp_cv_m4_m4wrap_spurious=no
25673 else
25674 gmp_cv_m4_m4wrap_spurious=yes
25675 fi
25676
25677 fi
25678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_m4_m4wrap_spurious" >&5
25679 $as_echo "$gmp_cv_m4_m4wrap_spurious" >&6; }
25680
25681 echo "define(<M4WRAP_SPURIOUS>,<$gmp_cv_m4_m4wrap_spurious>)" >> $gmp_tmpconfigm4
25682
25683
25684 # else
25685 # It's unclear why this m4-not-needed stuff was ever done.
25686 # if test -z "$M4" ; then
25687 # M4=m4-not-needed
25688 # fi
25689 fi
25690
25691 # Only do the GMP_ASM checks if there's a .S or .asm wanting them.
25692 if test $found_asm = no && test $found_S = no; then
25693 gmp_asm_syntax_testing=no
25694 fi
25695
25696 if test "$gmp_asm_syntax_testing" != no; then
25697 SAVE_CFLAGS="$CFLAGS"
25698 CFLAGS="`echo $SAVE_CFLAGS | sed 's;-flto[-=a-z0-9]*;;g'`"
25699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to text section" >&5
25700 $as_echo_n "checking how to switch to text section... " >&6; }
25701 if ${gmp_cv_asm_text+:} false; then :
25702 $as_echo_n "(cached) " >&6
25703 else
25704 for i in ".text" ".code" ".csect .text[PR]"; do
25705 echo "trying $i" >&5
25706 cat >conftest.s <<EOF
25707 $i
25708 EOF
25709 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
25710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
25711 (eval $gmp_assemble) 2>&5
25712 ac_status=$?
25713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25714 test $ac_status = 0; }; then
25715 cat conftest.out >&5
25716 gmp_cv_asm_text=$i
25717 rm -f conftest*
25718 break
25719 else
25720 cat conftest.out >&5
25721 echo "configure: failed program was:" >&5
25722 cat conftest.s >&5
25723 :
25724 fi
25725 rm -f conftest*
25726
25727 done
25728 if test -z "$gmp_cv_asm_text"; then
25729 as_fn_error $? "Cannot determine text section directive" "$LINENO" 5
25730 fi
25731
25732 fi
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_text" >&5
25734 $as_echo "$gmp_cv_asm_text" >&6; }
25735 echo "define(<TEXT>, <$gmp_cv_asm_text>)" >> $gmp_tmpconfigm4
25736
25737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to data section" >&5
25738 $as_echo_n "checking how to switch to data section... " >&6; }
25739 if ${gmp_cv_asm_data+:} false; then :
25740 $as_echo_n "(cached) " >&6
25741 else
25742 case $host in
25743 *-*-aix*) gmp_cv_asm_data=".csect .data[RW]" ;;
25744 *) gmp_cv_asm_data=".data" ;;
25745 esac
25746
25747 fi
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_data" >&5
25749 $as_echo "$gmp_cv_asm_data" >&6; }
25750 echo "define(<DATA>, <$gmp_cv_asm_data>)" >> $gmp_tmpconfigm4
25751
25752
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler label suffix" >&5
25754 $as_echo_n "checking for assembler label suffix... " >&6; }
25755 if ${gmp_cv_asm_label_suffix+:} false; then :
25756 $as_echo_n "(cached) " >&6
25757 else
25758 gmp_cv_asm_label_suffix=unknown
25759 for i in "" ":"; do
25760 echo "trying $i" >&5
25761 cat >conftest.s <<EOF
25762 $gmp_cv_asm_text
25763 somelabel$i
25764 EOF
25765 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
25766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
25767 (eval $gmp_assemble) 2>&5
25768 ac_status=$?
25769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25770 test $ac_status = 0; }; then
25771 cat conftest.out >&5
25772 gmp_cv_asm_label_suffix=$i
25773 rm -f conftest*
25774 break
25775 else
25776 cat conftest.out >&5
25777 echo "configure: failed program was:" >&5
25778 cat conftest.s >&5
25779 cat conftest.out >&5
25780 fi
25781 rm -f conftest*
25782
25783 done
25784 if test "$gmp_cv_asm_label_suffix" = "unknown"; then
25785 as_fn_error $? "Cannot determine label suffix" "$LINENO" 5
25786 fi
25787
25788 fi
25789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_label_suffix" >&5
25790 $as_echo "$gmp_cv_asm_label_suffix" >&6; }
25791 echo "define(<LABEL_SUFFIX>, <$gmp_cv_asm_label_suffix>)" >> $gmp_tmpconfigm4
25792
25793
25794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global directive" >&5
25795 $as_echo_n "checking for assembler global directive... " >&6; }
25796 if ${gmp_cv_asm_globl+:} false; then :
25797 $as_echo_n "(cached) " >&6
25798 else
25799 case $host in
25800 hppa*-*-*) gmp_cv_asm_globl=.export ;;
25801 ia64*-*-* | itanium-*-* | itanium2-*-*) gmp_cv_asm_globl=.global ;;
25802 *) gmp_cv_asm_globl=.globl ;;
25803 esac
25804
25805 fi
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_globl" >&5
25807 $as_echo "$gmp_cv_asm_globl" >&6; }
25808 echo "define(<GLOBL>, <$gmp_cv_asm_globl>)" >> $gmp_tmpconfigm4
25809
25810
25811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global directive attribute" >&5
25812 $as_echo_n "checking for assembler global directive attribute... " >&6; }
25813 if ${gmp_cv_asm_globl_attr+:} false; then :
25814 $as_echo_n "(cached) " >&6
25815 else
25816 case $gmp_cv_asm_globl in
25817 .export) gmp_cv_asm_globl_attr=",entry" ;;
25818 *) gmp_cv_asm_globl_attr="" ;;
25819 esac
25820
25821 fi
25822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_globl_attr" >&5
25823 $as_echo "$gmp_cv_asm_globl_attr" >&6; }
25824 echo "define(<GLOBL_ATTR>, <$gmp_cv_asm_globl_attr>)" >> $gmp_tmpconfigm4
25825
25826
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if globals are prefixed by underscore" >&5
25828 $as_echo_n "checking if globals are prefixed by underscore... " >&6; }
25829 if ${gmp_cv_asm_underscore+:} false; then :
25830 $as_echo_n "(cached) " >&6
25831 else
25832 gmp_cv_asm_underscore="unknown"
25833 cat >conftest.c <<EOF
25834 int gurkmacka;
25835 EOF
25836 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5"
25837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
25838 (eval $gmp_compile) 2>&5
25839 ac_status=$?
25840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25841 test $ac_status = 0; }; then
25842 $NM conftest.$OBJEXT >conftest.out
25843 if grep "[ ]_gurkmacka" conftest.out >/dev/null; then
25844 gmp_cv_asm_underscore=yes
25845 elif grep "[ ]gurkmacka" conftest.out >/dev/null; then
25846 gmp_cv_asm_underscore=no
25847 else
25848 echo "configure: $NM doesn't have gurkmacka:" >&5
25849 cat conftest.out >&5
25850 fi
25851 else
25852 echo "configure: failed program was:" >&5
25853 cat conftest.c >&5
25854 fi
25855 rm -f conftest*
25856
25857 fi
25858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_underscore" >&5
25859 $as_echo "$gmp_cv_asm_underscore" >&6; }
25860 case $gmp_cv_asm_underscore in
25861 yes)
25862
25863 echo 'define(<GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
25864 ;;
25865 no)
25866
25867 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
25868 ;;
25869 *)
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
25871 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Cannot determine global symbol prefix." >&5
25873 $as_echo "$as_me: WARNING: | Cannot determine global symbol prefix." >&2;}
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $NM output doesn't contain a global data symbol." >&5
25875 $as_echo "$as_me: WARNING: | $NM output doesn't contain a global data symbol." >&2;}
25876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Will proceed with no underscore." >&5
25877 $as_echo "$as_me: WARNING: | Will proceed with no underscore." >&2;}
25878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | If this is wrong then you'll get link errors referring" >&5
25879 $as_echo "$as_me: WARNING: | If this is wrong then you'll get link errors referring" >&2;}
25880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | to ___gmpn_add_n (note three underscores)." >&5
25881 $as_echo "$as_me: WARNING: | to ___gmpn_add_n (note three underscores)." >&2;}
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | In this case do a fresh build with an override," >&5
25883 $as_echo "$as_me: WARNING: | In this case do a fresh build with an override," >&2;}
25884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&5
25885 $as_echo "$as_me: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&2;}
25886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
25887 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
25888
25889 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
25890
25891 ;;
25892 esac
25893
25894
25895
25896
25897
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to read-only data section" >&5
25899 $as_echo_n "checking how to switch to read-only data section... " >&6; }
25900 if ${gmp_cv_asm_rodata+:} false; then :
25901 $as_echo_n "(cached) " >&6
25902 else
25903
25904 case $host in
25905 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | x86_64-*-*)
25906 gmp_cv_asm_rodata="$gmp_cv_asm_data" ;;
25907 *)
25908 gmp_cv_asm_rodata="$gmp_cv_asm_text" ;;
25909 esac
25910
25911 cat >conftest.c <<EOF
25912 extern const int foo[]; /* Suppresses C++'s suppression of foo */
25913 const int foo[] = {1,2,3};
25914 EOF
25915 echo "Test program:" >&5
25916 cat conftest.c >&5
25917 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
25918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
25919 (eval $gmp_compile) 2>&5
25920 ac_status=$?
25921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25922 test $ac_status = 0; }; then
25923 echo "Compiler output:" >&5
25924 cat conftest.s >&5
25925 if test $gmp_cv_asm_underscore = yes; then
25926 tmp_gsym_prefix=_
25927 else
25928 tmp_gsym_prefix=
25929 fi
25930 # must see our label
25931 if grep "^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" conftest.s >/dev/null 2>&5; then
25932 # take the last directive before our label (hence skipping segments
25933 # getting debugging info etc)
25934 tmp_match=`sed -n "/^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix/q
25935 /^[. ]*data/p
25936 /^[. ]*rdata/p
25937 /^[. ]*text/p
25938 /^[. ]*section/p
25939 /^[. ]*csect/p
25940 /^[. ]*CSECT/p" conftest.s | sed -n '$p'`
25941 echo "Match: $tmp_match" >&5
25942 if test -n "$tmp_match"; then
25943 gmp_cv_asm_rodata=$tmp_match
25944 fi
25945 else
25946 echo "Couldn't find label: ^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" >&5
25947 fi
25948 fi
25949 rm -f conftest*
25950
25951 fi
25952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_rodata" >&5
25953 $as_echo "$gmp_cv_asm_rodata" >&6; }
25954 echo "define(<RODATA>, <$gmp_cv_asm_rodata>)" >> $gmp_tmpconfigm4
25955
25956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .type directive" >&5
25957 $as_echo_n "checking for assembler .type directive... " >&6; }
25958 if ${gmp_cv_asm_type+:} false; then :
25959 $as_echo_n "(cached) " >&6
25960 else
25961 gmp_cv_asm_type=
25962 for gmp_tmp_prefix in @ \# %; do
25963 cat >conftest.s <<EOF
25964 .type sym,${gmp_tmp_prefix}function
25965 EOF
25966 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
25967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
25968 (eval $gmp_assemble) 2>&5
25969 ac_status=$?
25970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25971 test $ac_status = 0; }; then
25972 cat conftest.out >&5
25973 if grep "\.type pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
25974 else
25975 gmp_cv_asm_type=".type \$1,${gmp_tmp_prefix}\$2"
25976 break
25977 fi
25978 else
25979 cat conftest.out >&5
25980 echo "configure: failed program was:" >&5
25981 cat conftest.s >&5
25982 :
25983 fi
25984 rm -f conftest*
25985
25986 done
25987 rm -f conftest*
25988
25989 fi
25990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_type" >&5
25991 $as_echo "$gmp_cv_asm_type" >&6; }
25992 echo "define(<TYPE>, <$gmp_cv_asm_type>)" >> $gmp_tmpconfigm4
25993
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .size directive" >&5
25995 $as_echo_n "checking for assembler .size directive... " >&6; }
25996 if ${gmp_cv_asm_size+:} false; then :
25997 $as_echo_n "(cached) " >&6
25998 else
25999 gmp_cv_asm_size=
26000 cat >conftest.s <<EOF
26001 .size sym,1
26002 EOF
26003 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26005 (eval $gmp_assemble) 2>&5
26006 ac_status=$?
26007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26008 test $ac_status = 0; }; then
26009 cat conftest.out >&5
26010 if grep "\.size pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
26011 else
26012 gmp_cv_asm_size=".size \$1,\$2"
26013 fi
26014 else
26015 cat conftest.out >&5
26016 echo "configure: failed program was:" >&5
26017 cat conftest.s >&5
26018 :
26019 fi
26020 rm -f conftest*
26021
26022
26023 fi
26024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_size" >&5
26025 $as_echo "$gmp_cv_asm_size" >&6; }
26026 echo "define(<SIZE>, <$gmp_cv_asm_size>)" >> $gmp_tmpconfigm4
26027
26028
26029
26030
26031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler local label prefix" >&5
26032 $as_echo_n "checking for assembler local label prefix... " >&6; }
26033 if ${gmp_cv_asm_lsym_prefix+:} false; then :
26034 $as_echo_n "(cached) " >&6
26035 else
26036 gmp_tmp_pre_appears=yes
26037 for gmp_tmp_pre in L .L $L $ L$; do
26038 echo "Trying $gmp_tmp_pre" >&5
26039 cat >conftest.s <<EOF
26040 $gmp_cv_asm_text
26041 dummy${gmp_cv_asm_label_suffix}
26042 ${gmp_tmp_pre}gurkmacka${gmp_cv_asm_label_suffix}
26043 EOF
26044 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26046 (eval $gmp_assemble) 2>&5
26047 ac_status=$?
26048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26049 test $ac_status = 0; }; then
26050 cat conftest.out >&5
26051 if $NM conftest.$OBJEXT >conftest.nm 2>&5; then : ; else
26052 cat conftest.nm >&5
26053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$NM\" failure" >&5
26054 $as_echo "$as_me: WARNING: \"$NM\" failure" >&2;}
26055 break
26056 fi
26057 cat conftest.nm >&5
26058 if grep gurkmacka conftest.nm >/dev/null; then : ; else
26059 # no mention of the symbol, this is good
26060 echo "$gmp_tmp_pre label doesn't appear in object file at all (good)" >&5
26061 gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
26062 gmp_tmp_pre_appears=no
26063 break
26064 fi
26065 if grep ' [a-zN] .*gurkmacka' conftest.nm >/dev/null; then
26066 # symbol mentioned as a local, use this if nothing better
26067 echo "$gmp_tmp_pre label is local but still in object file" >&5
26068 if test -z "$gmp_cv_asm_lsym_prefix"; then
26069 gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
26070 fi
26071 else
26072 echo "$gmp_tmp_pre label is something unknown" >&5
26073 fi
26074
26075 else
26076 cat conftest.out >&5
26077 echo "configure: failed program was:" >&5
26078 cat conftest.s >&5
26079 :
26080 fi
26081 rm -f conftest*
26082
26083 done
26084 rm -f conftest*
26085 if test -z "$gmp_cv_asm_lsym_prefix"; then
26086 gmp_cv_asm_lsym_prefix=L
26087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&5
26088 $as_echo "$as_me: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&2;}
26089 fi
26090 # for development purposes, note whether we got a purely temporary local label
26091 echo "Local label appears in object files: $gmp_tmp_pre_appears" >&5
26092
26093 fi
26094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_lsym_prefix" >&5
26095 $as_echo "$gmp_cv_asm_lsym_prefix" >&6; }
26096 echo "define(<LSYM_PREFIX>, <${gmp_cv_asm_lsym_prefix}>)" >> $gmp_tmpconfigm4
26097
26098 cat >>confdefs.h <<_ACEOF
26099 #define LSYM_PREFIX "$gmp_cv_asm_lsym_prefix"
26100 _ACEOF
26101
26102
26103
26104
26105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler byte directive" >&5
26106 $as_echo_n "checking for assembler byte directive... " >&6; }
26107 if ${gmp_cv_asm_byte+:} false; then :
26108 $as_echo_n "(cached) " >&6
26109 else
26110 for i in .byte data1; do
26111 echo "trying $i" >&5
26112 cat >conftest.s <<EOF
26113 $gmp_cv_asm_data
26114 $i 0
26115
26116 EOF
26117 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26119 (eval $gmp_assemble) 2>&5
26120 ac_status=$?
26121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26122 test $ac_status = 0; }; then
26123 cat conftest.out >&5
26124 gmp_cv_asm_byte=$i
26125 rm -f conftest*
26126 break
26127 else
26128 cat conftest.out >&5
26129 echo "configure: failed program was:" >&5
26130 cat conftest.s >&5
26131 cat conftest.out >&5
26132 fi
26133 rm -f conftest*
26134
26135 done
26136 if test -z "$gmp_cv_asm_byte"; then
26137 as_fn_error $? "Cannot determine how to emit a data byte" "$LINENO" 5
26138 fi
26139
26140 fi
26141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_byte" >&5
26142 $as_echo "$gmp_cv_asm_byte" >&6; }
26143
26144
26145
26146
26147
26148
26149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a 32-bit word" >&5
26150 $as_echo_n "checking how to define a 32-bit word... " >&6; }
26151 if ${gmp_cv_asm_w32+:} false; then :
26152 $as_echo_n "(cached) " >&6
26153 else
26154 case $host in
26155 *-*-hpux*)
26156 # FIXME: HPUX puts first symbol at 0x40000000, breaking our assumption
26157 # that it's at 0x0. We'll have to declare another symbol before the
26158 # .long/.word and look at the distance between the two symbols. The
26159 # only problem is that the sed expression(s) barfs (on Solaris, for
26160 # example) for the symbol with value 0. For now, HPUX uses .word.
26161 gmp_cv_asm_w32=".word"
26162 ;;
26163 *-*-*)
26164 gmp_tmp_val=
26165 for gmp_tmp_op in .long .word data4; do
26166 cat >conftest.s <<EOF
26167 $gmp_cv_asm_data
26168 $gmp_cv_asm_globl foo
26169 $gmp_tmp_op 0
26170 foo$gmp_cv_asm_label_suffix
26171 $gmp_cv_asm_byte 0
26172 EOF
26173 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26175 (eval $gmp_assemble) 2>&5
26176 ac_status=$?
26177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26178 test $ac_status = 0; }; then
26179 cat conftest.out >&5
26180 gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
26181 sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
26182 if test "$gmp_tmp_val" = 4; then
26183 gmp_cv_asm_w32="$gmp_tmp_op"
26184 break
26185 fi
26186 else
26187 cat conftest.out >&5
26188 echo "configure: failed program was:" >&5
26189 cat conftest.s >&5
26190 :
26191 fi
26192 rm -f conftest*
26193
26194 done
26195 rm -f conftest*
26196 ;;
26197 esac
26198 if test -z "$gmp_cv_asm_w32"; then
26199 as_fn_error $? "cannot determine how to define a 32-bit word" "$LINENO" 5
26200 fi
26201
26202 fi
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_w32" >&5
26204 $as_echo "$gmp_cv_asm_w32" >&6; }
26205 echo "define(<W32>, <$gmp_cv_asm_w32>)" >> $gmp_tmpconfigm4
26206
26207
26208
26209
26210
26211
26212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align assembly directive is logarithmic" >&5
26213 $as_echo_n "checking if .align assembly directive is logarithmic... " >&6; }
26214 if ${gmp_cv_asm_align_log+:} false; then :
26215 $as_echo_n "(cached) " >&6
26216 else
26217 cat >conftest.s <<EOF
26218 $gmp_cv_asm_data
26219 .align 4
26220 $gmp_cv_asm_globl foo
26221 $gmp_cv_asm_byte 1
26222 .align 4
26223 foo$gmp_cv_asm_label_suffix
26224 $gmp_cv_asm_byte 2
26225 EOF
26226 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26228 (eval $gmp_assemble) 2>&5
26229 ac_status=$?
26230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26231 test $ac_status = 0; }; then
26232 cat conftest.out >&5
26233 gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
26234 sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
26235 if test "$gmp_tmp_val" = "10" || test "$gmp_tmp_val" = "16"; then
26236 gmp_cv_asm_align_log=yes
26237 else
26238 gmp_cv_asm_align_log=no
26239 fi
26240 else
26241 cat conftest.out >&5
26242 echo "configure: failed program was:" >&5
26243 cat conftest.s >&5
26244 as_fn_error $? "cannot assemble alignment test" "$LINENO" 5
26245 fi
26246 rm -f conftest*
26247
26248 fi
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_align_log" >&5
26250 $as_echo "$gmp_cv_asm_align_log" >&6; }
26251
26252
26253 echo "define(<ALIGN_LOGARITHMIC>,<$gmp_cv_asm_align_log>)" >> $gmp_tmpconfigm4
26254
26255
26256 CFLAGS="$SAVE_CFLAGS"
26257
26258 case $host in
26259 arm*-*-* | aarch64*-*-* | applem[1-9]-*-*)
26260 case $ABI in
26261 32)
26262
26263 echo "include_mpn(\`arm/arm-defs.m4')" >> $gmp_tmpconfigm4i
26264 ;;
26265 64)
26266 case $host in
26267 *-*-darwin*)
26268
26269 echo "include_mpn(\`arm64/darwin.m4')" >> $gmp_tmpconfigm4i
26270 ;;
26271 *)
26272
26273 echo "include_mpn(\`arm64/arm64-defs.m4')" >> $gmp_tmpconfigm4i
26274 ;;
26275 esac
26276 ;;
26277 esac
26278 ;;
26279 hppa*-*-*)
26280 # for both pa32 and pa64
26281
26282 echo "include_mpn(\`pa32/pa-defs.m4')" >> $gmp_tmpconfigm4i
26283
26284 ;;
26285 ia64*-*-* | itanium-*-* | itanium2-*-*)
26286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler .align padding is good" >&5
26287 $as_echo_n "checking whether assembler .align padding is good... " >&6; }
26288 if ${gmp_cv_asm_ia64_align_ok+:} false; then :
26289 $as_echo_n "(cached) " >&6
26290 else
26291 cat >conftest.awk <<\EOF
26292 BEGIN {
26293 want[0] = "011"
26294 want[1] = "160"
26295 want[2] = "074"
26296 want[3] = "040"
26297 want[4] = "000"
26298 want[5] = "040"
26299 want[6] = "020"
26300 want[7] = "221"
26301 want[8] = "114"
26302 want[9] = "000"
26303 want[10] = "100"
26304 want[11] = "200"
26305 want[12] = "122"
26306 want[13] = "261"
26307 want[14] = "000"
26308 want[15] = "200"
26309
26310 want[16] = "000"
26311 want[17] = "004"
26312 want[18] = "000"
26313 want[19] = "000"
26314 want[20] = "000"
26315 want[21] = "000"
26316 want[22] = "002"
26317 want[23] = "000"
26318 want[24] = "000"
26319 want[25] = "000"
26320 want[26] = "000"
26321 want[27] = "001"
26322 want[28] = "000"
26323 want[29] = "000"
26324 want[30] = "000"
26325 want[31] = "014"
26326
26327 want[32] = "011"
26328 want[33] = "270"
26329 want[34] = "140"
26330 want[35] = "062"
26331 want[36] = "000"
26332 want[37] = "040"
26333 want[38] = "240"
26334 want[39] = "331"
26335 want[40] = "160"
26336 want[41] = "000"
26337 want[42] = "100"
26338 want[43] = "240"
26339 want[44] = "343"
26340 want[45] = "371"
26341 want[46] = "000"
26342 want[47] = "200"
26343
26344 result = "yes"
26345 }
26346 {
26347 for (f = 2; f <= NF; f++)
26348 {
26349 for (i = 0; i < 47; i++)
26350 got[i] = got[i+1];
26351 got[47] = $f;
26352
26353 found = 1
26354 for (i = 0; i < 48; i++)
26355 if (got[i] != want[i])
26356 {
26357 found = 0
26358 break
26359 }
26360 if (found)
26361 {
26362 result = "no"
26363 exit
26364 }
26365 }
26366 }
26367 END {
26368 print result
26369 }
26370 EOF
26371 cat >conftest.s <<EOF
26372 .text
26373 .align 32
26374 { .mmi; add r14 = r15, r16
26375 add r17 = r18, r19
26376 add r20 = r21, r22 ;; }
26377 .align 32
26378 { .mmi; add r23 = r24, r25
26379 add r26 = r27, r28
26380 add r29 = r30, r31 ;; }
26381
26382 EOF
26383 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26385 (eval $gmp_assemble) 2>&5
26386 ac_status=$?
26387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26388 test $ac_status = 0; }; then
26389 cat conftest.out >&5
26390 gmp_cv_asm_ia64_align_ok=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
26391 else
26392 cat conftest.out >&5
26393 echo "configure: failed program was:" >&5
26394 cat conftest.s >&5
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
26396 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
26397 gmp_cv_asm_ia64_align_ok=yes
26398 fi
26399 rm -f conftest*
26400
26401
26402 fi
26403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_ia64_align_ok" >&5
26404 $as_echo "$gmp_cv_asm_ia64_align_ok" >&6; }
26405
26406 echo "define(<IA64_ALIGN_OK>, <\`$gmp_cv_asm_ia64_align_ok'>)" >> $gmp_tmpconfigm4
26407
26408
26409 ;;
26410 m68k-*-* | m68[0-9][0-9][0-9]-*-*)
26411
26412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler instruction and register style" >&5
26413 $as_echo_n "checking assembler instruction and register style... " >&6; }
26414 if ${gmp_cv_asm_m68k_instruction+:} false; then :
26415 $as_echo_n "(cached) " >&6
26416 else
26417 for i in "addl %d0,%d1" "add.l %d0,%d1" "addl d0,d1" "add.l d0,d1"; do
26418 cat >conftest.s <<EOF
26419 $gmp_cv_asm_text
26420 $i
26421 EOF
26422 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26424 (eval $gmp_assemble) 2>&5
26425 ac_status=$?
26426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26427 test $ac_status = 0; }; then
26428 cat conftest.out >&5
26429 gmp_cv_asm_m68k_instruction=$i
26430 rm -f conftest*
26431 break
26432 else
26433 cat conftest.out >&5
26434 echo "configure: failed program was:" >&5
26435 cat conftest.s >&5
26436 :
26437 fi
26438 rm -f conftest*
26439
26440 done
26441 if test -z "$gmp_cv_asm_m68k_instruction"; then
26442 as_fn_error $? "cannot determine assembler instruction and register style" "$LINENO" 5
26443 fi
26444
26445 fi
26446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_instruction" >&5
26447 $as_echo "$gmp_cv_asm_m68k_instruction" >&6; }
26448 case $gmp_cv_asm_m68k_instruction in
26449 "addl d0,d1") want_dot_size=no; want_register_percent=no ;;
26450 "addl %d0,%d1") want_dot_size=no; want_register_percent=yes ;;
26451 "add.l d0,d1") want_dot_size=yes; want_register_percent=no ;;
26452 "add.l %d0,%d1") want_dot_size=yes; want_register_percent=yes ;;
26453 *) as_fn_error $? "oops, unrecognised instruction and register style" "$LINENO" 5 ;;
26454 esac
26455
26456 echo "define(<WANT_REGISTER_PERCENT>, <\`$want_register_percent'>)" >> $gmp_tmpconfigm4
26457
26458
26459 echo "define(<WANT_DOT_SIZE>, <\`$want_dot_size'>)" >> $gmp_tmpconfigm4
26460
26461
26462
26463
26464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler addressing style" >&5
26465 $as_echo_n "checking assembler addressing style... " >&6; }
26466 if ${gmp_cv_asm_m68k_addressing+:} false; then :
26467 $as_echo_n "(cached) " >&6
26468 else
26469 case $gmp_cv_asm_m68k_instruction in
26470 addl*) movel=movel ;;
26471 add.l*) movel=move.l ;;
26472 *) as_fn_error $? "oops, unrecognised gmp_cv_asm_m68k_instruction" "$LINENO" 5 ;;
26473 esac
26474 case $gmp_cv_asm_m68k_instruction in
26475 *"%d0,%d1") dreg=%d0; areg=%a0 ;;
26476 *"d0,d1") dreg=d0; areg=a0 ;;
26477 *) as_fn_error $? "oops, unrecognised gmp_cv_asm_m68k_instruction" "$LINENO" 5 ;;
26478 esac
26479 cat >conftest.s <<EOF
26480 $gmp_cv_asm_text
26481 $movel $dreg, $areg@-
26482 EOF
26483 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26485 (eval $gmp_assemble) 2>&5
26486 ac_status=$?
26487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26488 test $ac_status = 0; }; then
26489 cat conftest.out >&5
26490 gmp_cv_asm_m68k_addressing=mit
26491 else
26492 cat conftest.out >&5
26493 echo "configure: failed program was:" >&5
26494 cat conftest.s >&5
26495 cat >conftest.s <<EOF
26496 $gmp_cv_asm_text
26497 $movel $dreg, -($areg)
26498 EOF
26499 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26501 (eval $gmp_assemble) 2>&5
26502 ac_status=$?
26503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26504 test $ac_status = 0; }; then
26505 cat conftest.out >&5
26506 gmp_cv_asm_m68k_addressing=motorola
26507 else
26508 cat conftest.out >&5
26509 echo "configure: failed program was:" >&5
26510 cat conftest.s >&5
26511 as_fn_error $? "cannot determine assembler addressing style" "$LINENO" 5
26512 fi
26513 rm -f conftest*
26514
26515 fi
26516 rm -f conftest*
26517
26518
26519 fi
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_addressing" >&5
26521 $as_echo "$gmp_cv_asm_m68k_addressing" >&6; }
26522
26523 echo "define(<WANT_ADDRESSING>, <\`$gmp_cv_asm_m68k_addressing'>)" >> $gmp_tmpconfigm4
26524
26525
26526
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler shortest branches" >&5
26528 $as_echo_n "checking assembler shortest branches... " >&6; }
26529 if ${gmp_cv_asm_m68k_branches+:} false; then :
26530 $as_echo_n "(cached) " >&6
26531 else
26532 for i in jra jbra bra; do
26533 cat >conftest.s <<EOF
26534 $gmp_cv_asm_text
26535 foo$gmp_cv_asm_label_suffix
26536 $i foo
26537 EOF
26538 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26540 (eval $gmp_assemble) 2>&5
26541 ac_status=$?
26542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26543 test $ac_status = 0; }; then
26544 cat conftest.out >&5
26545 gmp_cv_asm_m68k_branches=$i
26546 rm -f conftest*
26547 break
26548 else
26549 cat conftest.out >&5
26550 echo "configure: failed program was:" >&5
26551 cat conftest.s >&5
26552 :
26553 fi
26554 rm -f conftest*
26555
26556 done
26557 if test -z "$gmp_cv_asm_m68k_branches"; then
26558 as_fn_error $? "cannot determine assembler branching style" "$LINENO" 5
26559 fi
26560
26561 fi
26562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_branches" >&5
26563 $as_echo "$gmp_cv_asm_m68k_branches" >&6; }
26564
26565 echo "define(<WANT_BRANCHES>, <\`$gmp_cv_asm_m68k_branches'>)" >> $gmp_tmpconfigm4
26566
26567
26568 ;;
26569 powerpc*-*-* | power[3-9]-*-* | power1[0-9]-*-*)
26570
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler output is PIC by default" >&5
26572 $as_echo_n "checking whether compiler output is PIC by default... " >&6; }
26573 if ${gmp_cv_asm_powerpc_pic+:} false; then :
26574 $as_echo_n "(cached) " >&6
26575 else
26576 gmp_cv_asm_powerpc_pic=yes
26577 cat >conftest.c <<EOF
26578 int foo;
26579 int *bar() { return &foo; }
26580 EOF
26581 echo "Test program:" >&5
26582 cat conftest.c >&5
26583 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
26584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
26585 (eval $gmp_compile) 2>&5
26586 ac_status=$?
26587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26588 test $ac_status = 0; }; then
26589 echo "Compiler output:" >&5
26590 cat conftest.s >&5
26591 if grep 'foo@ha' conftest.s >/dev/null 2>&5; then
26592 gmp_cv_asm_powerpc_pic=no
26593 fi
26594 if grep 'ha16(_foo)' conftest.s >/dev/null 2>&5; then
26595 gmp_cv_asm_powerpc_pic=no
26596 fi
26597 fi
26598 rm -f conftest*
26599
26600 fi
26601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_pic" >&5
26602 $as_echo "$gmp_cv_asm_powerpc_pic" >&6; }
26603
26604 echo "define(<PIC_ALWAYS>,<$gmp_cv_asm_powerpc_pic>)" >> $gmp_tmpconfigm4
26605
26606
26607
26608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler needs r on registers" >&5
26609 $as_echo_n "checking if the assembler needs r on registers... " >&6; }
26610 if ${gmp_cv_asm_powerpc_r_registers+:} false; then :
26611 $as_echo_n "(cached) " >&6
26612 else
26613 cat >conftest.s <<EOF
26614 $gmp_cv_asm_text
26615 mtctr 6
26616 EOF
26617 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26619 (eval $gmp_assemble) 2>&5
26620 ac_status=$?
26621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26622 test $ac_status = 0; }; then
26623 cat conftest.out >&5
26624 gmp_cv_asm_powerpc_r_registers=no
26625 else
26626 cat conftest.out >&5
26627 echo "configure: failed program was:" >&5
26628 cat conftest.s >&5
26629 cat >conftest.s <<EOF
26630 $gmp_cv_asm_text
26631 mtctr r6
26632 EOF
26633 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26635 (eval $gmp_assemble) 2>&5
26636 ac_status=$?
26637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26638 test $ac_status = 0; }; then
26639 cat conftest.out >&5
26640 gmp_cv_asm_powerpc_r_registers=yes
26641 else
26642 cat conftest.out >&5
26643 echo "configure: failed program was:" >&5
26644 cat conftest.s >&5
26645 as_fn_error $? "neither \"mtctr 6\" nor \"mtctr r6\" works" "$LINENO" 5
26646 fi
26647 rm -f conftest*
26648
26649 fi
26650 rm -f conftest*
26651
26652 fi
26653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_r_registers" >&5
26654 $as_echo "$gmp_cv_asm_powerpc_r_registers" >&6; }
26655
26656
26657 echo "define(<WANT_R_REGISTERS>,<$gmp_cv_asm_powerpc_r_registers>)" >> $gmp_tmpconfigm4
26658
26659
26660
26661 echo "include_mpn(\`powerpc32/powerpc-defs.m4')" >> $gmp_tmpconfigm4i
26662
26663
26664 # Check for Linux ELFv1 ABI
26665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26666 /* end confdefs.h. */
26667 #if _CALL_ELF == 1
26668 yes
26669 #endif
26670 _ACEOF
26671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26672 $EGREP "yes" >/dev/null 2>&1; then :
26673
26674 echo "define(<ELFv1_ABI>)" >> $gmp_tmpconfigm4
26675
26676 fi
26677 rm -f conftest*
26678
26679
26680 # Check for Linux ELFv2 ABI
26681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26682 /* end confdefs.h. */
26683 #if _CALL_ELF == 2
26684 yes
26685 #endif
26686 _ACEOF
26687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26688 $EGREP "yes" >/dev/null 2>&1; then :
26689
26690 echo "define(<ELFv2_ABI>)" >> $gmp_tmpconfigm4
26691
26692 fi
26693 rm -f conftest*
26694
26695
26696 case $host in
26697 *-*-aix*)
26698 case $ABI in
26699 mode64)
26700 echo "include_mpn(\`powerpc64/aix.m4')" >> $gmp_tmpconfigm4i
26701 ;;
26702 *)
26703 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
26704 ;;
26705 esac
26706 ;;
26707 *-*-linux* | *-*-*bsd*)
26708 case $ABI in
26709 mode64)
26710 echo "include_mpn(\`powerpc64/elf.m4')" >> $gmp_tmpconfigm4i
26711 ;;
26712 mode32 | 32)
26713 echo "include_mpn(\`powerpc32/elf.m4')" >> $gmp_tmpconfigm4i
26714 ;;
26715 esac
26716 ;;
26717 *-*-darwin*)
26718 case $ABI in
26719 mode64)
26720 echo "include_mpn(\`powerpc64/darwin.m4')" >> $gmp_tmpconfigm4i
26721 ;;
26722 mode32 | 32)
26723 echo "include_mpn(\`powerpc32/darwin.m4')" >> $gmp_tmpconfigm4i
26724 ;;
26725 esac
26726 ;;
26727 *)
26728 # Assume unrecognized operating system is the powerpc eABI
26729
26730 echo "include_mpn(\`powerpc32/eabi.m4')" >> $gmp_tmpconfigm4i
26731
26732 ;;
26733 esac
26734 ;;
26735 power*-*-aix*)
26736
26737 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
26738
26739 ;;
26740 *sparc*-*-*)
26741 case $ABI in
26742 64)
26743
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler accepts \".register\"" >&5
26745 $as_echo_n "checking if the assembler accepts \".register\"... " >&6; }
26746 if ${gmp_cv_asm_sparc_register+:} false; then :
26747 $as_echo_n "(cached) " >&6
26748 else
26749 cat >conftest.s <<EOF
26750 $gmp_cv_asm_text
26751 .register %g2,#scratch
26752
26753 EOF
26754 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26756 (eval $gmp_assemble) 2>&5
26757 ac_status=$?
26758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26759 test $ac_status = 0; }; then
26760 cat conftest.out >&5
26761 gmp_cv_asm_sparc_register=yes
26762 else
26763 cat conftest.out >&5
26764 echo "configure: failed program was:" >&5
26765 cat conftest.s >&5
26766 gmp_cv_asm_sparc_register=no
26767 fi
26768 rm -f conftest*
26769
26770 fi
26771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_sparc_register" >&5
26772 $as_echo "$gmp_cv_asm_sparc_register" >&6; }
26773
26774
26775 echo "define(<HAVE_REGISTER>,<$gmp_cv_asm_sparc_register>)" >> $gmp_tmpconfigm4
26776
26777
26778 ;;
26779 esac
26780
26781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler accepts gdop relocations" >&5
26782 $as_echo_n "checking if the assembler accepts gdop relocations... " >&6; }
26783 if ${gmp_cv_asm_sparc_gdop+:} false; then :
26784 $as_echo_n "(cached) " >&6
26785 else
26786 cat >conftest.s <<EOF
26787 $gmp_cv_asm_text
26788 .text
26789 sethi %gdop_hix22(symbol), %g1
26790 or %g1, %gdop_lox10(symbol), %g1
26791
26792 EOF
26793 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26795 (eval $gmp_assemble) 2>&5
26796 ac_status=$?
26797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26798 test $ac_status = 0; }; then
26799 cat conftest.out >&5
26800 gmp_cv_asm_sparc_gdop=yes
26801 else
26802 cat conftest.out >&5
26803 echo "configure: failed program was:" >&5
26804 cat conftest.s >&5
26805 gmp_cv_asm_sparc_gdop=no
26806 fi
26807 rm -f conftest*
26808
26809 fi
26810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_sparc_gdop" >&5
26811 $as_echo "$gmp_cv_asm_sparc_gdop" >&6; }
26812
26813
26814 echo "define(<HAVE_GDOP>,<$gmp_cv_asm_sparc_gdop>)" >> $gmp_tmpconfigm4
26815
26816
26817
26818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler can support shared PIC thunks" >&5
26819 $as_echo_n "checking if the assembler can support shared PIC thunks... " >&6; }
26820 if ${gmp_cv_asm_sparc_shared_thunks+:} false; then :
26821 $as_echo_n "(cached) " >&6
26822 else
26823 cat >conftest.s <<EOF
26824 $gmp_cv_asm_text
26825 .section .text.__sparc_get_pc_thunk.l7,"axG",@progbits,__sparc_get_pc_thunk.l7,comdat
26826 .weak __sparc_get_pc_thunk.l7
26827 .hidden __sparc_get_pc_thunk.l7
26828 .type __sparc_get_pc_thunk.l7, #function
26829 __sparc_get_pc_thunk.l7:
26830 jmp %o7+8
26831 add %o7, %l7, %l7
26832
26833 EOF
26834 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26836 (eval $gmp_assemble) 2>&5
26837 ac_status=$?
26838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26839 test $ac_status = 0; }; then
26840 cat conftest.out >&5
26841 gmp_cv_asm_sparc_shared_thunks=yes
26842 else
26843 cat conftest.out >&5
26844 echo "configure: failed program was:" >&5
26845 cat conftest.s >&5
26846 gmp_cv_asm_sparc_shared_thunks=no
26847 fi
26848 rm -f conftest*
26849
26850 fi
26851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_sparc_shared_thunks" >&5
26852 $as_echo "$gmp_cv_asm_sparc_shared_thunks" >&6; }
26853
26854
26855 echo "define(<HAVE_SHARED_THUNKS>,<$gmp_cv_asm_sparc_shared_thunks>)" >> $gmp_tmpconfigm4
26856
26857
26858 ;;
26859 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | jaguar*-*-* | bulldozer*-*-* | piledriver*-*-* | steamroller*-*-* | excavator*-*-* | zen*-*-* | pentium4-*-* | atom-*-* | silvermont-*-* | goldmont-*-* | tremont-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-* | nehalem*-*-* | westmere*-*-* | sandybridge*-*-* | ivybridge*-*-* | haswell*-*-* | broadwell*-*-* | skylake*-*-* | kabylake*-*-* | icelake*-*-* | tigerlake*-*-* | rocketlake*-*-* | alderlake*-*-* | raptorlake*-*-*)
26860
26861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the .align directive accepts an 0x90 fill in .text" >&5
26862 $as_echo_n "checking if the .align directive accepts an 0x90 fill in .text... " >&6; }
26863 if ${gmp_cv_asm_align_fill_0x90+:} false; then :
26864 $as_echo_n "(cached) " >&6
26865 else
26866 cat >conftest.s <<EOF
26867 $gmp_cv_asm_text
26868 .align 4, 0x90
26869 .byte 0
26870 .align 4, 0x90
26871 EOF
26872 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26874 (eval $gmp_assemble) 2>&5
26875 ac_status=$?
26876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26877 test $ac_status = 0; }; then
26878 cat conftest.out >&5
26879 if grep "Warning: Fill parameter ignored for executable section" conftest.out >/dev/null; then
26880 echo "Suppressing this warning by omitting 0x90" 1>&5
26881 gmp_cv_asm_align_fill_0x90=no
26882 else
26883 gmp_cv_asm_align_fill_0x90=yes
26884 fi
26885 else
26886 cat conftest.out >&5
26887 echo "configure: failed program was:" >&5
26888 cat conftest.s >&5
26889 gmp_cv_asm_align_fill_0x90=no
26890 fi
26891 rm -f conftest*
26892
26893 fi
26894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_align_fill_0x90" >&5
26895 $as_echo "$gmp_cv_asm_align_fill_0x90" >&6; }
26896
26897
26898 echo "define(<ALIGN_FILL_0x90>,<$gmp_cv_asm_align_fill_0x90>)" >> $gmp_tmpconfigm4
26899
26900
26901 if test "$x86_have_mulx" = yes; then
26902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about the mulx instruction" >&5
26903 $as_echo_n "checking if the assembler knows about the mulx instruction... " >&6; }
26904 if ${gmp_cv_asm_x86_mulx+:} false; then :
26905 $as_echo_n "(cached) " >&6
26906 else
26907 cat >conftest.s <<EOF
26908 .text
26909 mulx %r8, %r9, %r10
26910 EOF
26911 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26913 (eval $gmp_assemble) 2>&5
26914 ac_status=$?
26915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26916 test $ac_status = 0; }; then
26917 cat conftest.out >&5
26918 gmp_cv_asm_x86_mulx=yes
26919 else
26920 cat conftest.out >&5
26921 echo "configure: failed program was:" >&5
26922 cat conftest.s >&5
26923 gmp_cv_asm_x86_mulx=no
26924 fi
26925 rm -f conftest*
26926
26927
26928 fi
26929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_mulx" >&5
26930 $as_echo "$gmp_cv_asm_x86_mulx" >&6; }
26931 case $gmp_cv_asm_x86_mulx in
26932 yes)
26933
26934 $as_echo "#define X86_ASM_MULX 1" >>confdefs.h
26935
26936 :
26937 ;;
26938 *)
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
26940 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
26941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
26942 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has the mulx instruction, but it can't be" >&5
26944 $as_echo "$as_me: WARNING: | Host CPU has the mulx instruction, but it can't be" >&2;}
26945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | assembled by" >&5
26946 $as_echo "$as_me: WARNING: | assembled by" >&2;}
26947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
26948 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
26949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Older x86 instructions will be used." >&5
26950 $as_echo "$as_me: WARNING: | Older x86 instructions will be used." >&2;}
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
26952 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
26953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
26954 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
26955 :
26956 ;;
26957 esac
26958
26959 fi
26960
26961
26962
26963
26964
26965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler COFF type directives" >&5
26966 $as_echo_n "checking for assembler COFF type directives... " >&6; }
26967 if ${gmp_cv_asm_x86_coff_type+:} false; then :
26968 $as_echo_n "(cached) " >&6
26969 else
26970 cat >conftest.s <<EOF
26971 $gmp_cv_asm_text
26972 $gmp_cv_asm_globl ${tmp_gsym_prefix}foo$gmp_cv_asm_globl_attr
26973 .def ${tmp_gsym_prefix}foo
26974 .scl 2
26975 .type 32
26976 .endef
26977 ${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix
26978
26979 EOF
26980 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26982 (eval $gmp_assemble) 2>&5
26983 ac_status=$?
26984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26985 test $ac_status = 0; }; then
26986 cat conftest.out >&5
26987 gmp_cv_asm_x86_coff_type=yes
26988 else
26989 cat conftest.out >&5
26990 echo "configure: failed program was:" >&5
26991 cat conftest.s >&5
26992 gmp_cv_asm_x86_coff_type=no
26993 fi
26994 rm -f conftest*
26995
26996
26997 fi
26998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_coff_type" >&5
26999 $as_echo "$gmp_cv_asm_x86_coff_type" >&6; }
27000 echo "define(<HAVE_COFF_TYPE>, <$gmp_cv_asm_x86_coff_type>)" >> $gmp_tmpconfigm4
27001
27002 case $ABI in
27003 32)
27004
27005 echo "include_mpn(\`x86/x86-defs.m4')" >> $gmp_tmpconfigm4i
27006
27007 $as_echo "#define HAVE_HOST_CPU_FAMILY_x86 1" >>confdefs.h
27008
27009
27010
27011
27012
27013
27014
27015
27016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore" >&5
27017 $as_echo_n "checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore... " >&6; }
27018 if ${gmp_cv_asm_x86_got_underscore+:} false; then :
27019 $as_echo_n "(cached) " >&6
27020 else
27021 gmp_cv_asm_x86_got_underscore="not applicable"
27022 if test $gmp_cv_asm_underscore = yes; then
27023 tmp_gsym_prefix=_
27024 else
27025 tmp_gsym_prefix=
27026 fi
27027 for tmp_underscore in "" "_"; do
27028 cat >conftest.s <<EOF
27029 $gmp_cv_asm_text
27030 $gmp_cv_asm_globl ${tmp_gsym_prefix}main$gmp_cv_asm_globl_attr
27031 ${tmp_gsym_prefix}main$gmp_cv_asm_label_suffix
27032 addl $ ${tmp_underscore}_GLOBAL_OFFSET_TABLE_, %ebx
27033 EOF
27034 gmp_compile="$CCAS $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.s >&5 && $CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.$OBJEXT >&5"
27035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
27036 (eval $gmp_compile) 2>&5
27037 ac_status=$?
27038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27039 test $ac_status = 0; }; then
27040 if test "$tmp_underscore" = "_"; then
27041 gmp_cv_asm_x86_got_underscore=yes
27042 else
27043 gmp_cv_asm_x86_got_underscore=no
27044 fi
27045 break
27046 fi
27047 done
27048 rm -f conftest* a.out b.out a.exe a_out.exe
27049
27050 fi
27051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_got_underscore" >&5
27052 $as_echo "$gmp_cv_asm_x86_got_underscore" >&6; }
27053 if test "$gmp_cv_asm_x86_got_underscore" = "yes"; then
27054
27055 echo 'define(<GOT_GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
27056
27057 else
27058
27059 echo 'define(<GOT_GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
27060
27061 fi
27062
27063
27064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler takes cl with shldl" >&5
27065 $as_echo_n "checking if the assembler takes cl with shldl... " >&6; }
27066 if ${gmp_cv_asm_x86_shldl_cl+:} false; then :
27067 $as_echo_n "(cached) " >&6
27068 else
27069 cat >conftest.s <<EOF
27070 $gmp_cv_asm_text
27071 shldl %cl, %eax, %ebx
27072 EOF
27073 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27075 (eval $gmp_assemble) 2>&5
27076 ac_status=$?
27077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27078 test $ac_status = 0; }; then
27079 cat conftest.out >&5
27080 gmp_cv_asm_x86_shldl_cl=yes
27081 else
27082 cat conftest.out >&5
27083 echo "configure: failed program was:" >&5
27084 cat conftest.s >&5
27085 gmp_cv_asm_x86_shldl_cl=no
27086 fi
27087 rm -f conftest*
27088
27089
27090 fi
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_shldl_cl" >&5
27092 $as_echo "$gmp_cv_asm_x86_shldl_cl" >&6; }
27093 if test "$gmp_cv_asm_x86_shldl_cl" = "yes"; then
27094
27095 echo 'define(<WANT_SHLDL_CL>, <1>)' >>$gmp_tmpconfigm4
27096
27097 else
27098
27099 echo 'define(<WANT_SHLDL_CL>, <0>)' >>$gmp_tmpconfigm4
27100
27101 fi
27102
27103 case $enable_profiling in
27104 prof | gprof) # Check whether --enable-shared was given.
27105 if test "${enable_shared+set}" = set; then :
27106 enableval=$enable_shared; p=${PACKAGE-default}
27107 case $enableval in
27108 yes) enable_shared=yes ;;
27109 no) enable_shared=no ;;
27110 *)
27111 enable_shared=no
27112 # Look at the argument we got. We use all the common list separators.
27113 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
27114 for pkg in $enableval; do
27115 IFS=$lt_save_ifs
27116 if test "X$pkg" = "X$p"; then
27117 enable_shared=yes
27118 fi
27119 done
27120 IFS=$lt_save_ifs
27121 ;;
27122 esac
27123 else
27124 enable_shared=yes
27125 fi
27126
27127
27128
27129
27130
27131
27132
27133
27134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to call x86 mcount" >&5
27135 $as_echo_n "checking how to call x86 mcount... " >&6; }
27136 cat >conftest.c <<EOF
27137 foo(){bar();}
27138 EOF
27139
27140 if test "$enable_static" = yes; then
27141 gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c 1>&5"
27142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_asmout_compile\""; } >&5
27143 (eval $gmp_asmout_compile) 2>&5
27144 ac_status=$?
27145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27146 test $ac_status = 0; }; then
27147 if grep '\.data' conftest.s >/dev/null; then
27148 mcount_nonpic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
27149 else
27150 mcount_nonpic_reg=
27151 fi
27152 mcount_nonpic_call=`grep 'call.*mcount' conftest.s`
27153 if test -z "$mcount_nonpic_call"; then
27154 as_fn_error $? "Cannot find mcount call for non-PIC" "$LINENO" 5
27155 fi
27156 else
27157 as_fn_error $? "Cannot compile test program for non-PIC" "$LINENO" 5
27158 fi
27159 fi
27160
27161 if test "$enable_shared" = yes; then
27162 gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic -S conftest.c 1>&5"
27163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_asmout_compile\""; } >&5
27164 (eval $gmp_asmout_compile) 2>&5
27165 ac_status=$?
27166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27167 test $ac_status = 0; }; then
27168 if grep '\.data' conftest.s >/dev/null; then
27169 case $lt_prog_compiler_pic in
27170 *-DDLL_EXPORT*)
27171 # Windows DLLs have non-PIC style mcount
27172 mcount_pic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
27173 ;;
27174 *)
27175 mcount_pic_reg=`sed -n 's/.*GOTOFF.*,\(%[a-z]*\).*$/\1/p' conftest.s`
27176 ;;
27177 esac
27178 else
27179 mcount_pic_reg=
27180 fi
27181 mcount_pic_call=`grep 'call.*mcount' conftest.s`
27182 if test -z "$mcount_pic_call"; then
27183 as_fn_error $? "Cannot find mcount call for PIC" "$LINENO" 5
27184 fi
27185 else
27186 as_fn_error $? "Cannot compile test program for PIC" "$LINENO" 5
27187 fi
27188 fi
27189
27190
27191 echo "define(<MCOUNT_NONPIC_REG>, <\`$mcount_nonpic_reg'>)" >> $gmp_tmpconfigm4
27192
27193
27194 echo "define(<MCOUNT_NONPIC_CALL>,<\`$mcount_nonpic_call'>)" >> $gmp_tmpconfigm4
27195
27196
27197 echo "define(<MCOUNT_PIC_REG>, <\`$mcount_pic_reg'>)" >> $gmp_tmpconfigm4
27198
27199
27200 echo "define(<MCOUNT_PIC_CALL>, <\`$mcount_pic_call'>)" >> $gmp_tmpconfigm4
27201
27202
27203 rm -f conftest.*
27204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: determined" >&5
27205 $as_echo "determined" >&6; }
27206 ;;
27207 esac
27208 case $host in
27209 *-*-darwin*)
27210
27211 echo "include_mpn(\`x86/darwin.m4')" >> $gmp_tmpconfigm4i
27212 ;;
27213 esac
27214 ;;
27215 64|x32)
27216
27217 echo "include_mpn(\`x86_64/x86_64-defs.m4')" >> $gmp_tmpconfigm4i
27218
27219 $as_echo "#define HAVE_HOST_CPU_FAMILY_x86_64 1" >>confdefs.h
27220
27221 case $host in
27222 *-*-darwin*)
27223
27224 echo "include_mpn(\`x86_64/darwin.m4')" >> $gmp_tmpconfigm4i
27225 ;;
27226 *-*-mingw* | *-*-msys | *-*-cygwin)
27227
27228 echo "include_mpn(\`x86_64/dos64.m4')" >> $gmp_tmpconfigm4i
27229 ;;
27230 *-openbsd*)
27231
27232 echo "define(<OPENBSD>,1)" >> $gmp_tmpconfigm4
27233 ;;
27234 *-linux*)
27235
27236 echo "define(<LINUX>,1)" >> $gmp_tmpconfigm4
27237 ;;
27238 esac
27239 ;;
27240 esac
27241 ;;
27242 esac
27243 fi
27244
27245 # For --enable-minithres, prepend "minithres" to path so that its special
27246 # gmp-mparam.h will be used.
27247 if test $enable_minithres = yes; then
27248 path="minithres $path"
27249 fi
27250
27251 # Create link for gmp-mparam.h.
27252 gmp_mparam_source=
27253 for gmp_mparam_dir in $path; do
27254 test "$no_create" = yes || rm -f gmp-mparam.h
27255 tmp_file=$srcdir/mpn/$gmp_mparam_dir/gmp-mparam.h
27256 if test -f $tmp_file; then
27257 ac_config_links="$ac_config_links gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h"
27258
27259 gmp_srclinks="$gmp_srclinks gmp-mparam.h"
27260 gmp_mparam_source=$tmp_file
27261 break
27262 fi
27263 done
27264 if test -z "$gmp_mparam_source"; then
27265 as_fn_error $? "no version of gmp-mparam.h found in path: $path" "$LINENO" 5
27266 fi
27267
27268 # For a helpful message from tune/tuneup.c
27269 gmp_mparam_suggest=$gmp_mparam_source
27270 if test "$gmp_mparam_dir" = generic; then
27271 for i in $path; do break; done
27272 if test "$i" != generic; then
27273 gmp_mparam_suggest="new file $srcdir/mpn/$i/gmp-mparam.h"
27274 fi
27275 fi
27276
27277 cat >>confdefs.h <<_ACEOF
27278 #define GMP_MPARAM_H_SUGGEST "$gmp_mparam_source"
27279 _ACEOF
27280
27281
27282
27283 # Copy relevant parameters from gmp-mparam.h to config.m4.
27284 # We only do this for parameters that are used by some assembly files.
27285 # Fat binaries do this on a per-file basis, so skip in that case.
27286 #
27287 if test -z "$fat_path"; then
27288 for i in SQR_TOOM2_THRESHOLD BMOD_1_TO_MOD_1_THRESHOLD SHLD_SLOW SHRD_SLOW; do
27289 value=`sed -n 's/^#define '$i'[ ]*\([0-9A-Z][0-9A-Z_]*\).*$/\1/p' $gmp_mparam_source`
27290 if test -n "$value"; then
27291
27292 echo "define(<$i>,<$value>)" >> $gmp_tmpconfigm4
27293
27294 fi
27295 done
27296 fi
27297
27298
27299 # Sizes of some types, needed at preprocessing time.
27300 #
27301 # FIXME: The assumption that GMP_LIMB_BITS is 8*sizeof(mp_limb_t) might
27302 # be slightly rash, but it's true everywhere we know of and ought to be true
27303 # of any sensible system. In a generic C build, grepping LONG_BIT out of
27304 # <limits.h> might be an alternative, for maximum portability.
27305 #
27306 # The cast to long int works around a bug in the HP C Compiler
27307 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27308 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27309 # This bug is HP SR number 8606223364.
27310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
27311 $as_echo_n "checking size of void *... " >&6; }
27312 if ${ac_cv_sizeof_void_p+:} false; then :
27313 $as_echo_n "(cached) " >&6
27314 else
27315 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
27316
27317 else
27318 if test "$ac_cv_type_void_p" = yes; then
27319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27321 as_fn_error 77 "cannot compute sizeof (void *)
27322 See \`config.log' for more details" "$LINENO" 5; }
27323 else
27324 ac_cv_sizeof_void_p=0
27325 fi
27326 fi
27327
27328 fi
27329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
27330 $as_echo "$ac_cv_sizeof_void_p" >&6; }
27331
27332
27333
27334 cat >>confdefs.h <<_ACEOF
27335 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
27336 _ACEOF
27337
27338
27339 # The cast to long int works around a bug in the HP C Compiler
27340 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27341 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27342 # This bug is HP SR number 8606223364.
27343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
27344 $as_echo_n "checking size of unsigned short... " >&6; }
27345 if ${ac_cv_sizeof_unsigned_short+:} false; then :
27346 $as_echo_n "(cached) " >&6
27347 else
27348 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
27349
27350 else
27351 if test "$ac_cv_type_unsigned_short" = yes; then
27352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27354 as_fn_error 77 "cannot compute sizeof (unsigned short)
27355 See \`config.log' for more details" "$LINENO" 5; }
27356 else
27357 ac_cv_sizeof_unsigned_short=0
27358 fi
27359 fi
27360
27361 fi
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
27363 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
27364
27365
27366
27367 cat >>confdefs.h <<_ACEOF
27368 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
27369 _ACEOF
27370
27371
27372 # The cast to long int works around a bug in the HP C Compiler
27373 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27374 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27375 # This bug is HP SR number 8606223364.
27376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5
27377 $as_echo_n "checking size of unsigned... " >&6; }
27378 if ${ac_cv_sizeof_unsigned+:} false; then :
27379 $as_echo_n "(cached) " >&6
27380 else
27381 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned" "$ac_includes_default"; then :
27382
27383 else
27384 if test "$ac_cv_type_unsigned" = yes; then
27385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27387 as_fn_error 77 "cannot compute sizeof (unsigned)
27388 See \`config.log' for more details" "$LINENO" 5; }
27389 else
27390 ac_cv_sizeof_unsigned=0
27391 fi
27392 fi
27393
27394 fi
27395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5
27396 $as_echo "$ac_cv_sizeof_unsigned" >&6; }
27397
27398
27399
27400 cat >>confdefs.h <<_ACEOF
27401 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
27402 _ACEOF
27403
27404
27405 # The cast to long int works around a bug in the HP C Compiler
27406 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27407 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27408 # This bug is HP SR number 8606223364.
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
27410 $as_echo_n "checking size of unsigned long... " >&6; }
27411 if ${ac_cv_sizeof_unsigned_long+:} false; then :
27412 $as_echo_n "(cached) " >&6
27413 else
27414 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
27415
27416 else
27417 if test "$ac_cv_type_unsigned_long" = yes; then
27418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27420 as_fn_error 77 "cannot compute sizeof (unsigned long)
27421 See \`config.log' for more details" "$LINENO" 5; }
27422 else
27423 ac_cv_sizeof_unsigned_long=0
27424 fi
27425 fi
27426
27427 fi
27428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
27429 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
27430
27431
27432
27433 cat >>confdefs.h <<_ACEOF
27434 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
27435 _ACEOF
27436
27437
27438 # The cast to long int works around a bug in the HP C Compiler
27439 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27440 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27441 # This bug is HP SR number 8606223364.
27442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of mp_limb_t" >&5
27443 $as_echo_n "checking size of mp_limb_t... " >&6; }
27444 if ${ac_cv_sizeof_mp_limb_t+:} false; then :
27445 $as_echo_n "(cached) " >&6
27446 else
27447 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 */
27448 #define GMP_NAIL_BITS $GMP_NAIL_BITS
27449 #define GMP_LIMB_BITS 123
27450 $DEFN_LONG_LONG_LIMB
27451 #include \"$srcdir/gmp-h.in\"
27452
27453 "; then :
27454
27455 else
27456 if test "$ac_cv_type_mp_limb_t" = yes; then
27457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27459 as_fn_error 77 "cannot compute sizeof (mp_limb_t)
27460 See \`config.log' for more details" "$LINENO" 5; }
27461 else
27462 ac_cv_sizeof_mp_limb_t=0
27463 fi
27464 fi
27465
27466 fi
27467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_mp_limb_t" >&5
27468 $as_echo "$ac_cv_sizeof_mp_limb_t" >&6; }
27469
27470
27471
27472 cat >>confdefs.h <<_ACEOF
27473 #define SIZEOF_MP_LIMB_T $ac_cv_sizeof_mp_limb_t
27474 _ACEOF
27475
27476
27477 if test "$ac_cv_sizeof_mp_limb_t" = 0; then
27478 as_fn_error $? "Oops, mp_limb_t doesn't seem to work" "$LINENO" 5
27479 fi
27480 GMP_LIMB_BITS=`expr 8 \* $ac_cv_sizeof_mp_limb_t`
27481
27482
27483 echo "define(<SIZEOF_UNSIGNED>,<$ac_cv_sizeof_unsigned>)" >> $gmp_tmpconfigm4
27484
27485
27486 # Check compiler limb size matches gmp-mparam.h
27487 #
27488 # FIXME: Some of the cycle counter objects in the tune directory depend on
27489 # the size of ulong, it'd be possible to check that here, though a mismatch
27490 # probably wouldn't want to be fatal, none of the libgmp assembler code
27491 # depends on ulong.
27492 #
27493 mparam_bits=`sed -n 's/^#define GMP_LIMB_BITS[ ][ ]*\([0-9]*\).*$/\1/p' $gmp_mparam_source`
27494 if test -n "$mparam_bits" && test "$mparam_bits" -ne $GMP_LIMB_BITS; then
27495 if test "$test_CFLAGS" = set; then
27496 as_fn_error $? "Oops, mp_limb_t is $GMP_LIMB_BITS bits, but the assembler code
27497 in this configuration expects $mparam_bits bits.
27498 You appear to have set \$CFLAGS, perhaps you also need to tell GMP the
27499 intended ABI, see \"ABI and ISA\" in the manual." "$LINENO" 5
27500 else
27501 as_fn_error $? "Oops, mp_limb_t is $GMP_LIMB_BITS bits, but the assembler code
27502 in this configuration expects $mparam_bits bits." "$LINENO" 5
27503 fi
27504 fi
27505
27506
27507 echo "define(<GMP_LIMB_BITS>,$GMP_LIMB_BITS)" >> $gmp_tmpconfigm4
27508
27509
27510 echo "define(<GMP_NAIL_BITS>,$GMP_NAIL_BITS)" >> $gmp_tmpconfigm4
27511
27512
27513 echo "define(<GMP_NUMB_BITS>,eval(GMP_LIMB_BITS-GMP_NAIL_BITS))" >> $gmp_tmpconfigm4
27514
27515
27516
27517
27518
27519
27520
27521
27522 # A recompiled sqr_basecase for use in the tune program, if necessary.
27523 TUNE_SQR_OBJ=
27524 test -d tune || mkdir tune
27525 case $sqr_basecase_source in
27526 *.asm)
27527 sqr_max=`sed -n 's/^def...(SQR_TOOM2_THRESHOLD_MAX, *\([0-9]*\))/\1/p' $sqr_basecase_source`
27528 if test -n "$sqr_max"; then
27529 TUNE_SQR_OBJ=sqr_asm.o
27530
27531 cat >>confdefs.h <<_ACEOF
27532 #define TUNE_SQR_TOOM2_MAX $sqr_max
27533 _ACEOF
27534
27535 fi
27536 cat >tune/sqr_basecase.c <<EOF
27537 /* not sure that an empty file can compile, so put in a dummy */
27538 int sqr_basecase_dummy;
27539 EOF
27540 ;;
27541 *.c)
27542 TUNE_SQR_OBJ=
27543 $as_echo "#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC" >>confdefs.h
27544
27545 cat >tune/sqr_basecase.c <<EOF
27546 #define TUNE_PROGRAM_BUILD 1
27547 #define TUNE_PROGRAM_BUILD_SQR 1
27548 #include "mpn/sqr_basecase.c"
27549 EOF
27550 ;;
27551 esac
27552
27553
27554
27555 # Configs for demos/pexpr.c.
27556 #
27557 ac_config_files="$ac_config_files demos/pexpr-config.h:demos/pexpr-config-h.in"
27558
27559 case $ac_cv_func_clock in
27560 yes) HAVE_CLOCK_01=1
27561 ;;
27562 no) HAVE_CLOCK_01=0 ;;
27563 esac
27564
27565 case $ac_cv_func_cputime in
27566 yes) HAVE_CPUTIME_01=1
27567 ;;
27568 no) HAVE_CPUTIME_01=0 ;;
27569 esac
27570
27571 case $ac_cv_func_getrusage in
27572 yes) HAVE_GETRUSAGE_01=1
27573 ;;
27574 no) HAVE_GETRUSAGE_01=0 ;;
27575 esac
27576
27577 case $ac_cv_func_gettimeofday in
27578 yes) HAVE_GETTIMEOFDAY_01=1
27579 ;;
27580 no) HAVE_GETTIMEOFDAY_01=0 ;;
27581 esac
27582
27583 case $ac_cv_func_sigaction in
27584 yes) HAVE_SIGACTION_01=1
27585 ;;
27586 no) HAVE_SIGACTION_01=0 ;;
27587 esac
27588
27589 case $ac_cv_func_sigaltstack in
27590 yes) HAVE_SIGALTSTACK_01=1
27591 ;;
27592 no) HAVE_SIGALTSTACK_01=0 ;;
27593 esac
27594
27595 case $ac_cv_func_sigstack in
27596 yes) HAVE_SIGSTACK_01=1
27597 ;;
27598 no) HAVE_SIGSTACK_01=0 ;;
27599 esac
27600
27601
27602 case $ac_cv_header_sys_resource_h in
27603 yes) HAVE_SYS_RESOURCE_H_01=1
27604 ;;
27605 no) HAVE_SYS_RESOURCE_H_01=0 ;;
27606 esac
27607
27608
27609 ac_fn_c_check_type "$LINENO" "stack_t" "ac_cv_type_stack_t" "#include <signal.h>
27610 "
27611 if test "x$ac_cv_type_stack_t" = xyes; then :
27612
27613 cat >>confdefs.h <<_ACEOF
27614 #define HAVE_STACK_T 1
27615 _ACEOF
27616
27617 HAVE_STACK_T_01=1
27618 else
27619 HAVE_STACK_T_01=0
27620 fi
27621
27622
27623
27624 # Configs for demos/calc directory
27625 #
27626 # AC_SUBST+AC_CONFIG_FILES is used for calc-config.h, rather than AC_DEFINE+
27627 # AC_CONFIG_HEADERS, since with the latter automake (1.8) will then put the
27628 # directory (ie. demos/calc) into $(DEFAULT_INCLUDES) for every Makefile.in,
27629 # which would look very strange.
27630 #
27631 # -lcurses is required by libreadline. On a typical SVR4 style system this
27632 # normally doesn't have to be given explicitly, since libreadline.so will
27633 # have a NEEDED record for it. But if someone for some reason is using only
27634 # a static libreadline.a then we must give -lcurses. Readline (as of
27635 # version 4.3) doesn't use libtool, so we can't rely on a .la to cover
27636 # necessary dependencies.
27637 #
27638 # On a couple of systems we've seen libreadline available, but the headers
27639 # not in the default include path, so check for readline/readline.h. We've
27640 # also seen readline/history.h missing, not sure if that's just a broken
27641 # install or a very old version, but check that too.
27642 #
27643 ac_config_files="$ac_config_files demos/calc/calc-config.h:demos/calc/calc-config-h.in"
27644
27645 LIBCURSES=
27646 if test $with_readline != no; then
27647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lncurses" >&5
27648 $as_echo_n "checking for tputs in -lncurses... " >&6; }
27649 if ${ac_cv_lib_ncurses_tputs+:} false; then :
27650 $as_echo_n "(cached) " >&6
27651 else
27652 ac_check_lib_save_LIBS=$LIBS
27653 LIBS="-lncurses $LIBS"
27654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27655 /* end confdefs.h. */
27656
27657 /* Override any GCC internal prototype to avoid an error.
27658 Use char because int might match the return type of a GCC
27659 builtin and then its argument prototype would still apply. */
27660 #ifdef __cplusplus
27661 extern "C"
27662 #endif
27663 char tputs ();
27664 int
27665 main ()
27666 {
27667 return tputs ();
27668 ;
27669 return 0;
27670 }
27671 _ACEOF
27672 if ac_fn_c_try_link "$LINENO"; then :
27673 ac_cv_lib_ncurses_tputs=yes
27674 else
27675 ac_cv_lib_ncurses_tputs=no
27676 fi
27677 rm -f core conftest.err conftest.$ac_objext \
27678 conftest$ac_exeext conftest.$ac_ext
27679 LIBS=$ac_check_lib_save_LIBS
27680 fi
27681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tputs" >&5
27682 $as_echo "$ac_cv_lib_ncurses_tputs" >&6; }
27683 if test "x$ac_cv_lib_ncurses_tputs" = xyes; then :
27684 LIBCURSES=-lncurses
27685 else
27686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lcurses" >&5
27687 $as_echo_n "checking for tputs in -lcurses... " >&6; }
27688 if ${ac_cv_lib_curses_tputs+:} false; then :
27689 $as_echo_n "(cached) " >&6
27690 else
27691 ac_check_lib_save_LIBS=$LIBS
27692 LIBS="-lcurses $LIBS"
27693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27694 /* end confdefs.h. */
27695
27696 /* Override any GCC internal prototype to avoid an error.
27697 Use char because int might match the return type of a GCC
27698 builtin and then its argument prototype would still apply. */
27699 #ifdef __cplusplus
27700 extern "C"
27701 #endif
27702 char tputs ();
27703 int
27704 main ()
27705 {
27706 return tputs ();
27707 ;
27708 return 0;
27709 }
27710 _ACEOF
27711 if ac_fn_c_try_link "$LINENO"; then :
27712 ac_cv_lib_curses_tputs=yes
27713 else
27714 ac_cv_lib_curses_tputs=no
27715 fi
27716 rm -f core conftest.err conftest.$ac_objext \
27717 conftest$ac_exeext conftest.$ac_ext
27718 LIBS=$ac_check_lib_save_LIBS
27719 fi
27720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tputs" >&5
27721 $as_echo "$ac_cv_lib_curses_tputs" >&6; }
27722 if test "x$ac_cv_lib_curses_tputs" = xyes; then :
27723 LIBCURSES=-lcurses
27724 fi
27725
27726 fi
27727
27728 fi
27729
27730 use_readline=$with_readline
27731 if test $with_readline = detect; then
27732 use_readline=no
27733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
27734 $as_echo_n "checking for readline in -lreadline... " >&6; }
27735 if ${ac_cv_lib_readline_readline+:} false; then :
27736 $as_echo_n "(cached) " >&6
27737 else
27738 ac_check_lib_save_LIBS=$LIBS
27739 LIBS="-lreadline $LIBCURSES $LIBS"
27740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27741 /* end confdefs.h. */
27742
27743 /* Override any GCC internal prototype to avoid an error.
27744 Use char because int might match the return type of a GCC
27745 builtin and then its argument prototype would still apply. */
27746 #ifdef __cplusplus
27747 extern "C"
27748 #endif
27749 char readline ();
27750 int
27751 main ()
27752 {
27753 return readline ();
27754 ;
27755 return 0;
27756 }
27757 _ACEOF
27758 if ac_fn_c_try_link "$LINENO"; then :
27759 ac_cv_lib_readline_readline=yes
27760 else
27761 ac_cv_lib_readline_readline=no
27762 fi
27763 rm -f core conftest.err conftest.$ac_objext \
27764 conftest$ac_exeext conftest.$ac_ext
27765 LIBS=$ac_check_lib_save_LIBS
27766 fi
27767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
27768 $as_echo "$ac_cv_lib_readline_readline" >&6; }
27769 if test "x$ac_cv_lib_readline_readline" = xyes; then :
27770 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
27771 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
27772 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
27773 if test "x$ac_cv_header_readline_history_h" = xyes; then :
27774 use_readline=yes
27775 fi
27776
27777
27778 fi
27779
27780
27781 fi
27782
27783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking readline detected" >&5
27784 $as_echo_n "checking readline detected... " >&6; }
27785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_readline" >&5
27786 $as_echo "$use_readline" >&6; }
27787 fi
27788 if test $use_readline = yes; then
27789 WITH_READLINE_01=1
27790
27791 LIBREADLINE=-lreadline
27792
27793 else
27794 WITH_READLINE_01=0
27795 fi
27796 for ac_prog in 'bison -y' byacc
27797 do
27798 # Extract the first word of "$ac_prog", so it can be a program name with args.
27799 set dummy $ac_prog; ac_word=$2
27800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27801 $as_echo_n "checking for $ac_word... " >&6; }
27802 if ${ac_cv_prog_YACC+:} false; then :
27803 $as_echo_n "(cached) " >&6
27804 else
27805 if test -n "$YACC"; then
27806 ac_cv_prog_YACC="$YACC" # Let the user override the test.
27807 else
27808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27809 for as_dir in $PATH
27810 do
27811 IFS=$as_save_IFS
27812 test -z "$as_dir" && as_dir=.
27813 for ac_exec_ext in '' $ac_executable_extensions; do
27814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27815 ac_cv_prog_YACC="$ac_prog"
27816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27817 break 2
27818 fi
27819 done
27820 done
27821 IFS=$as_save_IFS
27822
27823 fi
27824 fi
27825 YACC=$ac_cv_prog_YACC
27826 if test -n "$YACC"; then
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
27828 $as_echo "$YACC" >&6; }
27829 else
27830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27831 $as_echo "no" >&6; }
27832 fi
27833
27834
27835 test -n "$YACC" && break
27836 done
27837 test -n "$YACC" || YACC="yacc"
27838
27839 for ac_prog in flex lex
27840 do
27841 # Extract the first word of "$ac_prog", so it can be a program name with args.
27842 set dummy $ac_prog; ac_word=$2
27843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27844 $as_echo_n "checking for $ac_word... " >&6; }
27845 if ${ac_cv_prog_LEX+:} false; then :
27846 $as_echo_n "(cached) " >&6
27847 else
27848 if test -n "$LEX"; then
27849 ac_cv_prog_LEX="$LEX" # Let the user override the test.
27850 else
27851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27852 for as_dir in $PATH
27853 do
27854 IFS=$as_save_IFS
27855 test -z "$as_dir" && as_dir=.
27856 for ac_exec_ext in '' $ac_executable_extensions; do
27857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27858 ac_cv_prog_LEX="$ac_prog"
27859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27860 break 2
27861 fi
27862 done
27863 done
27864 IFS=$as_save_IFS
27865
27866 fi
27867 fi
27868 LEX=$ac_cv_prog_LEX
27869 if test -n "$LEX"; then
27870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
27871 $as_echo "$LEX" >&6; }
27872 else
27873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27874 $as_echo "no" >&6; }
27875 fi
27876
27877
27878 test -n "$LEX" && break
27879 done
27880 test -n "$LEX" || LEX=":"
27881
27882 if test "x$LEX" != "x:"; then
27883 cat >conftest.l <<_ACEOF
27884 %%
27885 a { ECHO; }
27886 b { REJECT; }
27887 c { yymore (); }
27888 d { yyless (1); }
27889 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
27890 yyless ((input () != 0)); }
27891 f { unput (yytext[0]); }
27892 . { BEGIN INITIAL; }
27893 %%
27894 #ifdef YYTEXT_POINTER
27895 extern char *yytext;
27896 #endif
27897 int
27898 main (void)
27899 {
27900 return ! yylex () + ! yywrap ();
27901 }
27902 _ACEOF
27903 { { ac_try="$LEX conftest.l"
27904 case "(($ac_try" in
27905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27906 *) ac_try_echo=$ac_try;;
27907 esac
27908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
27909 $as_echo "$ac_try_echo"; } >&5
27910 (eval "$LEX conftest.l") 2>&5
27911 ac_status=$?
27912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27913 test $ac_status = 0; }
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
27915 $as_echo_n "checking lex output file root... " >&6; }
27916 if ${ac_cv_prog_lex_root+:} false; then :
27917 $as_echo_n "(cached) " >&6
27918 else
27919
27920 if test -f lex.yy.c; then
27921 ac_cv_prog_lex_root=lex.yy
27922 elif test -f lexyy.c; then
27923 ac_cv_prog_lex_root=lexyy
27924 else
27925 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
27926 fi
27927 fi
27928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
27929 $as_echo "$ac_cv_prog_lex_root" >&6; }
27930 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
27931
27932 if test -z "${LEXLIB+set}"; then
27933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
27934 $as_echo_n "checking lex library... " >&6; }
27935 if ${ac_cv_lib_lex+:} false; then :
27936 $as_echo_n "(cached) " >&6
27937 else
27938
27939 ac_save_LIBS=$LIBS
27940 ac_cv_lib_lex='none needed'
27941 for ac_lib in '' -lfl -ll; do
27942 LIBS="$ac_lib $ac_save_LIBS"
27943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27944 /* end confdefs.h. */
27945 `cat $LEX_OUTPUT_ROOT.c`
27946 _ACEOF
27947 if ac_fn_c_try_link "$LINENO"; then :
27948 ac_cv_lib_lex=$ac_lib
27949 fi
27950 rm -f core conftest.err conftest.$ac_objext \
27951 conftest$ac_exeext conftest.$ac_ext
27952 test "$ac_cv_lib_lex" != 'none needed' && break
27953 done
27954 LIBS=$ac_save_LIBS
27955
27956 fi
27957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
27958 $as_echo "$ac_cv_lib_lex" >&6; }
27959 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
27960 fi
27961
27962
27963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
27964 $as_echo_n "checking whether yytext is a pointer... " >&6; }
27965 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
27966 $as_echo_n "(cached) " >&6
27967 else
27968 # POSIX says lex can declare yytext either as a pointer or an array; the
27969 # default is implementation-dependent. Figure out which it is, since
27970 # not all implementations provide the %pointer and %array declarations.
27971 ac_cv_prog_lex_yytext_pointer=no
27972 ac_save_LIBS=$LIBS
27973 LIBS="$LEXLIB $ac_save_LIBS"
27974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27975 /* end confdefs.h. */
27976
27977 #define YYTEXT_POINTER 1
27978 `cat $LEX_OUTPUT_ROOT.c`
27979 _ACEOF
27980 if ac_fn_c_try_link "$LINENO"; then :
27981 ac_cv_prog_lex_yytext_pointer=yes
27982 fi
27983 rm -f core conftest.err conftest.$ac_objext \
27984 conftest$ac_exeext conftest.$ac_ext
27985 LIBS=$ac_save_LIBS
27986
27987 fi
27988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
27989 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
27990 if test $ac_cv_prog_lex_yytext_pointer = yes; then
27991
27992 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
27993
27994 fi
27995 rm -f conftest.l $LEX_OUTPUT_ROOT.c
27996
27997 fi
27998 if test "$LEX" = :; then
27999 LEX=${am_missing_run}flex
28000 fi
28001
28002
28003
28004 # Create config.m4.
28005
28006 echo "creating $gmp_configm4"
28007 echo "d""nl $gmp_configm4. Generated automatically by configure." > $gmp_configm4
28008 if test -f $gmp_tmpconfigm4; then
28009 echo "changequote(<,>)" >> $gmp_configm4
28010 echo "ifdef(<__CONFIG_M4_INCLUDED__>,,<" >> $gmp_configm4
28011 cat $gmp_tmpconfigm4 >> $gmp_configm4
28012 echo ">)" >> $gmp_configm4
28013 echo "changequote(\`,')" >> $gmp_configm4
28014 rm $gmp_tmpconfigm4
28015 fi
28016 echo "ifdef(\`__CONFIG_M4_INCLUDED__',,\`" >> $gmp_configm4
28017 if test -f $gmp_tmpconfigm4i; then
28018 cat $gmp_tmpconfigm4i >> $gmp_configm4
28019 rm $gmp_tmpconfigm4i
28020 fi
28021 if test -f $gmp_tmpconfigm4p; then
28022 cat $gmp_tmpconfigm4p >> $gmp_configm4
28023 rm $gmp_tmpconfigm4p
28024 fi
28025 echo "')" >> $gmp_configm4
28026 echo "define(\`__CONFIG_M4_INCLUDED__')" >> $gmp_configm4
28027
28028
28029 # Create Makefiles
28030 # FIXME: Upcoming version of autoconf/automake may not like broken lines.
28031 # Right now automake isn't accepting the new AC_CONFIG_FILES scheme.
28032
28033 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 gmp.pc:gmp.pc.in gmpxx.pc:gmpxx.pc.in"
28034
28035 cat >confcache <<\_ACEOF
28036 # This file is a shell script that caches the results of configure
28037 # tests run on this system so they can be shared between configure
28038 # scripts and configure runs, see configure's option --config-cache.
28039 # It is not useful on other systems. If it contains results you don't
28040 # want to keep, you may remove or edit it.
28041 #
28042 # config.status only pays attention to the cache file if you give it
28043 # the --recheck option to rerun configure.
28044 #
28045 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28046 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28047 # following values.
28048
28049 _ACEOF
28050
28051 # The following way of writing the cache mishandles newlines in values,
28052 # but we know of no workaround that is simple, portable, and efficient.
28053 # So, we kill variables containing newlines.
28054 # Ultrix sh set writes to stderr and can't be redirected directly,
28055 # and sets the high bit in the cache file unless we assign to the vars.
28056 (
28057 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28058 eval ac_val=\$$ac_var
28059 case $ac_val in #(
28060 *${as_nl}*)
28061 case $ac_var in #(
28062 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28063 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28064 esac
28065 case $ac_var in #(
28066 _ | IFS | as_nl) ;; #(
28067 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28068 *) { eval $ac_var=; unset $ac_var;} ;;
28069 esac ;;
28070 esac
28071 done
28072
28073 (set) 2>&1 |
28074 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28075 *${as_nl}ac_space=\ *)
28076 # `set' does not quote correctly, so add quotes: double-quote
28077 # substitution turns \\\\ into \\, and sed turns \\ into \.
28078 sed -n \
28079 "s/'/'\\\\''/g;
28080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28081 ;; #(
28082 *)
28083 # `set' quotes correctly as required by POSIX, so do not add quotes.
28084 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28085 ;;
28086 esac |
28087 sort
28088 ) |
28089 sed '
28090 /^ac_cv_env_/b end
28091 t clear
28092 :clear
28093 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28094 t end
28095 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28096 :end' >>confcache
28097 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28098 if test -w "$cache_file"; then
28099 if test "x$cache_file" != "x/dev/null"; then
28100 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28101 $as_echo "$as_me: updating cache $cache_file" >&6;}
28102 if test ! -f "$cache_file" || test -h "$cache_file"; then
28103 cat confcache >"$cache_file"
28104 else
28105 case $cache_file in #(
28106 */* | ?:*)
28107 mv -f confcache "$cache_file"$$ &&
28108 mv -f "$cache_file"$$ "$cache_file" ;; #(
28109 *)
28110 mv -f confcache "$cache_file" ;;
28111 esac
28112 fi
28113 fi
28114 else
28115 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28116 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28117 fi
28118 fi
28119 rm -f confcache
28120
28121 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28122 # Let make expand exec_prefix.
28123 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28124
28125 DEFS=-DHAVE_CONFIG_H
28126
28127 ac_libobjs=
28128 ac_ltlibobjs=
28129 U=
28130 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28131 # 1. Remove the extension, and $U if already installed.
28132 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28133 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28134 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28135 # will be set to the directory where LIBOBJS objects are built.
28136 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28137 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28138 done
28139 LIBOBJS=$ac_libobjs
28140
28141 LTLIBOBJS=$ac_ltlibobjs
28142
28143
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
28145 $as_echo_n "checking that generated files are newer than configure... " >&6; }
28146 if test -n "$am_sleep_pid"; then
28147 # Hide warnings about reused PIDs.
28148 wait $am_sleep_pid 2>/dev/null
28149 fi
28150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
28151 $as_echo "done" >&6; }
28152 if test -n "$EXEEXT"; then
28153 am__EXEEXT_TRUE=
28154 am__EXEEXT_FALSE='#'
28155 else
28156 am__EXEEXT_TRUE='#'
28157 am__EXEEXT_FALSE=
28158 fi
28159
28160 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28161 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
28162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28163 fi
28164 if test -z "${WANT_CXX_TRUE}" && test -z "${WANT_CXX_FALSE}"; then
28165 as_fn_error $? "conditional \"WANT_CXX\" was never defined.
28166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28167 fi
28168 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
28169 as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined.
28170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28171 fi
28172
28173
28174 : "${CONFIG_STATUS=./config.status}"
28175 ac_write_fail=0
28176 ac_clean_files_save=$ac_clean_files
28177 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28178 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28179 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28180 as_write_fail=0
28181 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28182 #! $SHELL
28183 # Generated by $as_me.
28184 # Run this file to recreate the current configuration.
28185 # Compiler output produced by configure, useful for debugging
28186 # configure, is in config.log if it exists.
28187
28188 debug=false
28189 ac_cs_recheck=false
28190 ac_cs_silent=false
28191
28192 SHELL=\${CONFIG_SHELL-$SHELL}
28193 export SHELL
28194 _ASEOF
28195 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28196 ## -------------------- ##
28197 ## M4sh Initialization. ##
28198 ## -------------------- ##
28199
28200 # Be more Bourne compatible
28201 DUALCASE=1; export DUALCASE # for MKS sh
28202 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28203 emulate sh
28204 NULLCMD=:
28205 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28206 # is contrary to our usage. Disable this feature.
28207 alias -g '${1+"$@"}'='"$@"'
28208 setopt NO_GLOB_SUBST
28209 else
28210 case `(set -o) 2>/dev/null` in #(
28211 *posix*) :
28212 set -o posix ;; #(
28213 *) :
28214 ;;
28215 esac
28216 fi
28217
28218
28219 as_nl='
28220 '
28221 export as_nl
28222 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28223 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28224 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28225 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28226 # Prefer a ksh shell builtin over an external printf program on Solaris,
28227 # but without wasting forks for bash or zsh.
28228 if test -z "$BASH_VERSION$ZSH_VERSION" \
28229 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28230 as_echo='print -r --'
28231 as_echo_n='print -rn --'
28232 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28233 as_echo='printf %s\n'
28234 as_echo_n='printf %s'
28235 else
28236 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28237 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28238 as_echo_n='/usr/ucb/echo -n'
28239 else
28240 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28241 as_echo_n_body='eval
28242 arg=$1;
28243 case $arg in #(
28244 *"$as_nl"*)
28245 expr "X$arg" : "X\\(.*\\)$as_nl";
28246 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28247 esac;
28248 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28249 '
28250 export as_echo_n_body
28251 as_echo_n='sh -c $as_echo_n_body as_echo'
28252 fi
28253 export as_echo_body
28254 as_echo='sh -c $as_echo_body as_echo'
28255 fi
28256
28257 # The user is always right.
28258 if test "${PATH_SEPARATOR+set}" != set; then
28259 PATH_SEPARATOR=:
28260 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28261 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28262 PATH_SEPARATOR=';'
28263 }
28264 fi
28265
28266
28267 # IFS
28268 # We need space, tab and new line, in precisely that order. Quoting is
28269 # there to prevent editors from complaining about space-tab.
28270 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28271 # splitting by setting IFS to empty value.)
28272 IFS=" "" $as_nl"
28273
28274 # Find who we are. Look in the path if we contain no directory separator.
28275 as_myself=
28276 case $0 in #((
28277 *[\\/]* ) as_myself=$0 ;;
28278 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28279 for as_dir in $PATH
28280 do
28281 IFS=$as_save_IFS
28282 test -z "$as_dir" && as_dir=.
28283 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28284 done
28285 IFS=$as_save_IFS
28286
28287 ;;
28288 esac
28289 # We did not find ourselves, most probably we were run as `sh COMMAND'
28290 # in which case we are not to be found in the path.
28291 if test "x$as_myself" = x; then
28292 as_myself=$0
28293 fi
28294 if test ! -f "$as_myself"; then
28295 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28296 exit 1
28297 fi
28298
28299 # Unset variables that we do not need and which cause bugs (e.g. in
28300 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28301 # suppresses any "Segmentation fault" message there. '((' could
28302 # trigger a bug in pdksh 5.2.14.
28303 for as_var in BASH_ENV ENV MAIL MAILPATH
28304 do eval test x\${$as_var+set} = xset \
28305 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28306 done
28307 PS1='$ '
28308 PS2='> '
28309 PS4='+ '
28310
28311 # NLS nuisances.
28312 LC_ALL=C
28313 export LC_ALL
28314 LANGUAGE=C
28315 export LANGUAGE
28316
28317 # CDPATH.
28318 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28319
28320
28321 # as_fn_error STATUS ERROR [LINENO LOG_FD]
28322 # ----------------------------------------
28323 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28324 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28325 # script with STATUS, using 1 if that was 0.
28326 as_fn_error ()
28327 {
28328 as_status=$1; test $as_status -eq 0 && as_status=1
28329 if test "$4"; then
28330 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28331 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28332 fi
28333 $as_echo "$as_me: error: $2" >&2
28334 as_fn_exit $as_status
28335 } # as_fn_error
28336
28337
28338 # as_fn_set_status STATUS
28339 # -----------------------
28340 # Set $? to STATUS, without forking.
28341 as_fn_set_status ()
28342 {
28343 return $1
28344 } # as_fn_set_status
28345
28346 # as_fn_exit STATUS
28347 # -----------------
28348 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28349 as_fn_exit ()
28350 {
28351 set +e
28352 as_fn_set_status $1
28353 exit $1
28354 } # as_fn_exit
28355
28356 # as_fn_unset VAR
28357 # ---------------
28358 # Portably unset VAR.
28359 as_fn_unset ()
28360 {
28361 { eval $1=; unset $1;}
28362 }
28363 as_unset=as_fn_unset
28364 # as_fn_append VAR VALUE
28365 # ----------------------
28366 # Append the text in VALUE to the end of the definition contained in VAR. Take
28367 # advantage of any shell optimizations that allow amortized linear growth over
28368 # repeated appends, instead of the typical quadratic growth present in naive
28369 # implementations.
28370 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28371 eval 'as_fn_append ()
28372 {
28373 eval $1+=\$2
28374 }'
28375 else
28376 as_fn_append ()
28377 {
28378 eval $1=\$$1\$2
28379 }
28380 fi # as_fn_append
28381
28382 # as_fn_arith ARG...
28383 # ------------------
28384 # Perform arithmetic evaluation on the ARGs, and store the result in the
28385 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28386 # must be portable across $(()) and expr.
28387 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28388 eval 'as_fn_arith ()
28389 {
28390 as_val=$(( $* ))
28391 }'
28392 else
28393 as_fn_arith ()
28394 {
28395 as_val=`expr "$@" || test $? -eq 1`
28396 }
28397 fi # as_fn_arith
28398
28399
28400 if expr a : '\(a\)' >/dev/null 2>&1 &&
28401 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28402 as_expr=expr
28403 else
28404 as_expr=false
28405 fi
28406
28407 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28408 as_basename=basename
28409 else
28410 as_basename=false
28411 fi
28412
28413 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28414 as_dirname=dirname
28415 else
28416 as_dirname=false
28417 fi
28418
28419 as_me=`$as_basename -- "$0" ||
28420 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28421 X"$0" : 'X\(//\)$' \| \
28422 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28423 $as_echo X/"$0" |
28424 sed '/^.*\/\([^/][^/]*\)\/*$/{
28425 s//\1/
28426 q
28427 }
28428 /^X\/\(\/\/\)$/{
28429 s//\1/
28430 q
28431 }
28432 /^X\/\(\/\).*/{
28433 s//\1/
28434 q
28435 }
28436 s/.*/./; q'`
28437
28438 # Avoid depending upon Character Ranges.
28439 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28440 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28441 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28442 as_cr_digits='0123456789'
28443 as_cr_alnum=$as_cr_Letters$as_cr_digits
28444
28445 ECHO_C= ECHO_N= ECHO_T=
28446 case `echo -n x` in #(((((
28447 -n*)
28448 case `echo 'xy\c'` in
28449 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28450 xy) ECHO_C='\c';;
28451 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28452 ECHO_T=' ';;
28453 esac;;
28454 *)
28455 ECHO_N='-n';;
28456 esac
28457
28458 rm -f conf$$ conf$$.exe conf$$.file
28459 if test -d conf$$.dir; then
28460 rm -f conf$$.dir/conf$$.file
28461 else
28462 rm -f conf$$.dir
28463 mkdir conf$$.dir 2>/dev/null
28464 fi
28465 if (echo >conf$$.file) 2>/dev/null; then
28466 if ln -s conf$$.file conf$$ 2>/dev/null; then
28467 as_ln_s='ln -s'
28468 # ... but there are two gotchas:
28469 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28470 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28471 # In both cases, we have to default to `cp -pR'.
28472 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28473 as_ln_s='cp -pR'
28474 elif ln conf$$.file conf$$ 2>/dev/null; then
28475 as_ln_s=ln
28476 else
28477 as_ln_s='cp -pR'
28478 fi
28479 else
28480 as_ln_s='cp -pR'
28481 fi
28482 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28483 rmdir conf$$.dir 2>/dev/null
28484
28485
28486 # as_fn_mkdir_p
28487 # -------------
28488 # Create "$as_dir" as a directory, including parents if necessary.
28489 as_fn_mkdir_p ()
28490 {
28491
28492 case $as_dir in #(
28493 -*) as_dir=./$as_dir;;
28494 esac
28495 test -d "$as_dir" || eval $as_mkdir_p || {
28496 as_dirs=
28497 while :; do
28498 case $as_dir in #(
28499 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28500 *) as_qdir=$as_dir;;
28501 esac
28502 as_dirs="'$as_qdir' $as_dirs"
28503 as_dir=`$as_dirname -- "$as_dir" ||
28504 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28505 X"$as_dir" : 'X\(//\)[^/]' \| \
28506 X"$as_dir" : 'X\(//\)$' \| \
28507 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28508 $as_echo X"$as_dir" |
28509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28510 s//\1/
28511 q
28512 }
28513 /^X\(\/\/\)[^/].*/{
28514 s//\1/
28515 q
28516 }
28517 /^X\(\/\/\)$/{
28518 s//\1/
28519 q
28520 }
28521 /^X\(\/\).*/{
28522 s//\1/
28523 q
28524 }
28525 s/.*/./; q'`
28526 test -d "$as_dir" && break
28527 done
28528 test -z "$as_dirs" || eval "mkdir $as_dirs"
28529 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
28530
28531
28532 } # as_fn_mkdir_p
28533 if mkdir -p . 2>/dev/null; then
28534 as_mkdir_p='mkdir -p "$as_dir"'
28535 else
28536 test -d ./-p && rmdir ./-p
28537 as_mkdir_p=false
28538 fi
28539
28540
28541 # as_fn_executable_p FILE
28542 # -----------------------
28543 # Test if FILE is an executable regular file.
28544 as_fn_executable_p ()
28545 {
28546 test -f "$1" && test -x "$1"
28547 } # as_fn_executable_p
28548 as_test_x='test -x'
28549 as_executable_p=as_fn_executable_p
28550
28551 # Sed expression to map a string onto a valid CPP name.
28552 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28553
28554 # Sed expression to map a string onto a valid variable name.
28555 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28556
28557
28558 exec 6>&1
28559 ## ----------------------------------- ##
28560 ## Main body of $CONFIG_STATUS script. ##
28561 ## ----------------------------------- ##
28562 _ASEOF
28563 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28564
28565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28566 # Save the log message, to keep $0 and so on meaningful, and to
28567 # report actual input values of CONFIG_FILES etc. instead of their
28568 # values after options handling.
28569 ac_log="
28570 This file was extended by GNU MP $as_me 6.3.0, which was
28571 generated by GNU Autoconf 2.69. Invocation command line was
28572
28573 CONFIG_FILES = $CONFIG_FILES
28574 CONFIG_HEADERS = $CONFIG_HEADERS
28575 CONFIG_LINKS = $CONFIG_LINKS
28576 CONFIG_COMMANDS = $CONFIG_COMMANDS
28577 $ $0 $@
28578
28579 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28580 "
28581
28582 _ACEOF
28583
28584 case $ac_config_files in *"
28585 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28586 esac
28587
28588 case $ac_config_headers in *"
28589 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28590 esac
28591
28592
28593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28594 # Files that config.status was made for.
28595 config_files="$ac_config_files"
28596 config_headers="$ac_config_headers"
28597 config_links="$ac_config_links"
28598 config_commands="$ac_config_commands"
28599
28600 _ACEOF
28601
28602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28603 ac_cs_usage="\
28604 \`$as_me' instantiates files and other configuration actions
28605 from templates according to the current configuration. Unless the files
28606 and actions are specified as TAGs, all are instantiated by default.
28607
28608 Usage: $0 [OPTION]... [TAG]...
28609
28610 -h, --help print this help, then exit
28611 -V, --version print version number and configuration settings, then exit
28612 --config print configuration, then exit
28613 -q, --quiet, --silent
28614 do not print progress messages
28615 -d, --debug don't remove temporary files
28616 --recheck update $as_me by reconfiguring in the same conditions
28617 --file=FILE[:TEMPLATE]
28618 instantiate the configuration file FILE
28619 --header=FILE[:TEMPLATE]
28620 instantiate the configuration header FILE
28621
28622 Configuration files:
28623 $config_files
28624
28625 Configuration headers:
28626 $config_headers
28627
28628 Configuration links:
28629 $config_links
28630
28631 Configuration commands:
28632 $config_commands
28633
28634 Report bugs to <[email protected] (see https://gmplib.org/manual/Reporting-Bugs.html)>.
28635 GNU MP home page: <http://www.gnu.org/software/gmp/>.
28636 General help using GNU software: <http://www.gnu.org/gethelp/>."
28637
28638 _ACEOF
28639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28640 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
28641 ac_cs_version="\\
28642 GNU MP config.status 6.3.0
28643 configured by $0, generated by GNU Autoconf 2.69,
28644 with options \\"\$ac_cs_config\\"
28645
28646 Copyright (C) 2012 Free Software Foundation, Inc.
28647 This config.status script is free software; the Free Software Foundation
28648 gives unlimited permission to copy, distribute and modify it."
28649
28650 ac_pwd='$ac_pwd'
28651 srcdir='$srcdir'
28652 INSTALL='$INSTALL'
28653 MKDIR_P='$MKDIR_P'
28654 AWK='$AWK'
28655 test -n "\$AWK" || AWK=awk
28656 _ACEOF
28657
28658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28659 # The default lists apply if the user does not specify any file.
28660 ac_need_defaults=:
28661 while test $# != 0
28662 do
28663 case $1 in
28664 --*=?*)
28665 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28666 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28667 ac_shift=:
28668 ;;
28669 --*=)
28670 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28671 ac_optarg=
28672 ac_shift=:
28673 ;;
28674 *)
28675 ac_option=$1
28676 ac_optarg=$2
28677 ac_shift=shift
28678 ;;
28679 esac
28680
28681 case $ac_option in
28682 # Handling of the options.
28683 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28684 ac_cs_recheck=: ;;
28685 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28686 $as_echo "$ac_cs_version"; exit ;;
28687 --config | --confi | --conf | --con | --co | --c )
28688 $as_echo "$ac_cs_config"; exit ;;
28689 --debug | --debu | --deb | --de | --d | -d )
28690 debug=: ;;
28691 --file | --fil | --fi | --f )
28692 $ac_shift
28693 case $ac_optarg in
28694 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28695 '') as_fn_error $? "missing file argument" ;;
28696 esac
28697 as_fn_append CONFIG_FILES " '$ac_optarg'"
28698 ac_need_defaults=false;;
28699 --header | --heade | --head | --hea )
28700 $ac_shift
28701 case $ac_optarg in
28702 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28703 esac
28704 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28705 ac_need_defaults=false;;
28706 --he | --h)
28707 # Conflict between --help and --header
28708 as_fn_error $? "ambiguous option: \`$1'
28709 Try \`$0 --help' for more information.";;
28710 --help | --hel | -h )
28711 $as_echo "$ac_cs_usage"; exit ;;
28712 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28713 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28714 ac_cs_silent=: ;;
28715
28716 # This is an error.
28717 -*) as_fn_error $? "unrecognized option: \`$1'
28718 Try \`$0 --help' for more information." ;;
28719
28720 *) as_fn_append ac_config_targets " $1"
28721 ac_need_defaults=false ;;
28722
28723 esac
28724 shift
28725 done
28726
28727 ac_configure_extra_args=
28728
28729 if $ac_cs_silent; then
28730 exec 6>/dev/null
28731 ac_configure_extra_args="$ac_configure_extra_args --silent"
28732 fi
28733
28734 _ACEOF
28735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28736 if \$ac_cs_recheck; then
28737 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28738 shift
28739 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28740 CONFIG_SHELL='$SHELL'
28741 export CONFIG_SHELL
28742 exec "\$@"
28743 fi
28744
28745 _ACEOF
28746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28747 exec 5>>config.log
28748 {
28749 echo
28750 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28751 ## Running $as_me. ##
28752 _ASBOX
28753 $as_echo "$ac_log"
28754 } >&5
28755
28756 _ACEOF
28757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28758 #
28759 # INIT-COMMANDS
28760 #
28761
28762
28763 # The HP-UX ksh and POSIX shell print the target directory to stdout
28764 # if CDPATH is set.
28765 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28766
28767 sed_quote_subst='$sed_quote_subst'
28768 double_quote_subst='$double_quote_subst'
28769 delay_variable_subst='$delay_variable_subst'
28770 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
28771 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
28772 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
28773 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
28774 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
28775 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
28776 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
28777 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
28778 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
28779 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
28780 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
28781 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
28782 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
28783 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
28784 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
28785 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
28786 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
28787 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
28788 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
28789 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
28790 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
28791 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
28792 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
28793 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
28794 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
28795 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
28796 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
28797 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
28798 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
28799 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
28800 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
28801 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
28802 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
28803 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
28804 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
28805 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
28806 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
28807 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
28808 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
28809 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
28810 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
28811 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
28812 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
28813 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
28814 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
28815 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
28816 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
28817 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28818 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28819 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
28820 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
28821 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
28822 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
28823 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
28824 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
28825 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
28826 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
28827 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
28828 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
28829 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"`'
28830 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
28831 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
28832 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
28833 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
28834 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
28835 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
28836 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
28837 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
28838 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
28839 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
28840 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
28841 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
28842 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
28843 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
28844 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
28845 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
28846 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
28847 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
28848 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
28849 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
28850 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28851 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
28852 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
28853 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
28854 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28855 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28856 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28857 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28858 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28859 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28860 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28861 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28862 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28863 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28864 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28865 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28866 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28867 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28868 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28869 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28870 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28871 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28872 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28873 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28874 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28875 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28876 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28877 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28878 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28879 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
28880 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28881 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28882 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28883 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28884 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28885 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28886 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28887 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28888 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28889 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28890 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28891 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28892 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28893 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28894 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28895 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28896 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28897 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28898 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
28899 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
28900 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28901 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28902 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28903 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28904 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28905 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28906 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
28907 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
28908 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
28909 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
28910 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
28911 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
28912 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
28913 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
28914 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28915 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28916 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
28917 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
28918 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
28919 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
28920 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
28921 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
28922 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
28923 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
28924 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
28925 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28926 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28927 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
28928 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28929 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28930 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28931 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28932 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28933 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28934 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
28935 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
28936 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
28937 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28938 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
28939 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
28940 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
28941 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
28942 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
28943 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
28944 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
28945 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
28946 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
28947 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28948 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
28949 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
28950 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28951 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28952 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
28953 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
28954 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
28955 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
28956 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
28957 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
28958 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
28959 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
28960
28961 LTCC='$LTCC'
28962 LTCFLAGS='$LTCFLAGS'
28963 compiler='$compiler_DEFAULT'
28964
28965 # A function that is used when there is no print builtin or printf.
28966 func_fallback_echo ()
28967 {
28968 eval 'cat <<_LTECHO_EOF
28969 \$1
28970 _LTECHO_EOF'
28971 }
28972
28973 # Quote evaled strings.
28974 for var in NM \
28975 AS \
28976 DLLTOOL \
28977 OBJDUMP \
28978 SHELL \
28979 ECHO \
28980 PATH_SEPARATOR \
28981 SED \
28982 GREP \
28983 EGREP \
28984 FGREP \
28985 LD \
28986 LN_S \
28987 lt_SP2NL \
28988 lt_NL2SP \
28989 reload_flag \
28990 deplibs_check_method \
28991 file_magic_cmd \
28992 file_magic_glob \
28993 want_nocaseglob \
28994 sharedlib_from_linklib_cmd \
28995 AR \
28996 AR_FLAGS \
28997 archiver_list_spec \
28998 STRIP \
28999 RANLIB \
29000 CC \
29001 CFLAGS \
29002 compiler \
29003 lt_cv_sys_global_symbol_pipe \
29004 lt_cv_sys_global_symbol_to_cdecl \
29005 lt_cv_sys_global_symbol_to_import \
29006 lt_cv_sys_global_symbol_to_c_name_address \
29007 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29008 lt_cv_nm_interface \
29009 nm_file_list_spec \
29010 lt_cv_truncate_bin \
29011 lt_prog_compiler_no_builtin_flag \
29012 lt_prog_compiler_pic \
29013 lt_prog_compiler_wl \
29014 lt_prog_compiler_static \
29015 lt_cv_prog_compiler_c_o \
29016 need_locks \
29017 MANIFEST_TOOL \
29018 DSYMUTIL \
29019 NMEDIT \
29020 LIPO \
29021 OTOOL \
29022 OTOOL64 \
29023 shrext_cmds \
29024 export_dynamic_flag_spec \
29025 whole_archive_flag_spec \
29026 compiler_needs_object \
29027 with_gnu_ld \
29028 allow_undefined_flag \
29029 no_undefined_flag \
29030 hardcode_libdir_flag_spec \
29031 hardcode_libdir_separator \
29032 exclude_expsyms \
29033 include_expsyms \
29034 file_list_spec \
29035 variables_saved_for_relink \
29036 libname_spec \
29037 library_names_spec \
29038 soname_spec \
29039 install_override_mode \
29040 finish_eval \
29041 old_striplib \
29042 striplib \
29043 compiler_lib_search_dirs \
29044 predep_objects \
29045 postdep_objects \
29046 predeps \
29047 postdeps \
29048 compiler_lib_search_path \
29049 LD_CXX \
29050 reload_flag_CXX \
29051 compiler_CXX \
29052 lt_prog_compiler_no_builtin_flag_CXX \
29053 lt_prog_compiler_pic_CXX \
29054 lt_prog_compiler_wl_CXX \
29055 lt_prog_compiler_static_CXX \
29056 lt_cv_prog_compiler_c_o_CXX \
29057 export_dynamic_flag_spec_CXX \
29058 whole_archive_flag_spec_CXX \
29059 compiler_needs_object_CXX \
29060 with_gnu_ld_CXX \
29061 allow_undefined_flag_CXX \
29062 no_undefined_flag_CXX \
29063 hardcode_libdir_flag_spec_CXX \
29064 hardcode_libdir_separator_CXX \
29065 exclude_expsyms_CXX \
29066 include_expsyms_CXX \
29067 file_list_spec_CXX \
29068 compiler_lib_search_dirs_CXX \
29069 predep_objects_CXX \
29070 postdep_objects_CXX \
29071 predeps_CXX \
29072 postdeps_CXX \
29073 compiler_lib_search_path_CXX; do
29074 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29075 *[\\\\\\\`\\"\\\$]*)
29076 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
29077 ;;
29078 *)
29079 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29080 ;;
29081 esac
29082 done
29083
29084 # Double-quote double-evaled strings.
29085 for var in reload_cmds \
29086 old_postinstall_cmds \
29087 old_postuninstall_cmds \
29088 old_archive_cmds \
29089 extract_expsyms_cmds \
29090 old_archive_from_new_cmds \
29091 old_archive_from_expsyms_cmds \
29092 archive_cmds \
29093 archive_expsym_cmds \
29094 module_cmds \
29095 module_expsym_cmds \
29096 export_symbols_cmds \
29097 prelink_cmds \
29098 postlink_cmds \
29099 postinstall_cmds \
29100 postuninstall_cmds \
29101 finish_cmds \
29102 sys_lib_search_path_spec \
29103 configure_time_dlsearch_path \
29104 configure_time_lt_sys_library_path \
29105 reload_cmds_CXX \
29106 old_archive_cmds_CXX \
29107 old_archive_from_new_cmds_CXX \
29108 old_archive_from_expsyms_cmds_CXX \
29109 archive_cmds_CXX \
29110 archive_expsym_cmds_CXX \
29111 module_cmds_CXX \
29112 module_expsym_cmds_CXX \
29113 export_symbols_cmds_CXX \
29114 prelink_cmds_CXX \
29115 postlink_cmds_CXX; do
29116 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29117 *[\\\\\\\`\\"\\\$]*)
29118 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
29119 ;;
29120 *)
29121 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29122 ;;
29123 esac
29124 done
29125
29126 ac_aux_dir='$ac_aux_dir'
29127
29128 # See if we are running on zsh, and set the options that allow our
29129 # commands through without removal of \ escapes INIT.
29130 if test -n "\${ZSH_VERSION+set}"; then
29131 setopt NO_GLOB_SUBST
29132 fi
29133
29134
29135 PACKAGE='$PACKAGE'
29136 VERSION='$VERSION'
29137 RM='$RM'
29138 ofile='$ofile'
29139
29140
29141
29142
29143
29144
29145 _ACEOF
29146
29147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29148
29149 # Handling of arguments.
29150 for ac_config_target in $ac_config_targets
29151 do
29152 case $ac_config_target in
29153 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
29154 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29155 "mpn/$tmp_fn.$tmp_ext") CONFIG_LINKS="$CONFIG_LINKS mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext" ;;
29156 "gmp-mparam.h") CONFIG_LINKS="$CONFIG_LINKS gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h" ;;
29157 "demos/pexpr-config.h") CONFIG_FILES="$CONFIG_FILES demos/pexpr-config.h:demos/pexpr-config-h.in" ;;
29158 "demos/calc/calc-config.h") CONFIG_FILES="$CONFIG_FILES demos/calc/calc-config.h:demos/calc/calc-config-h.in" ;;
29159 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29160 "mpf/Makefile") CONFIG_FILES="$CONFIG_FILES mpf/Makefile" ;;
29161 "mpn/Makefile") CONFIG_FILES="$CONFIG_FILES mpn/Makefile" ;;
29162 "mpq/Makefile") CONFIG_FILES="$CONFIG_FILES mpq/Makefile" ;;
29163 "mpz/Makefile") CONFIG_FILES="$CONFIG_FILES mpz/Makefile" ;;
29164 "printf/Makefile") CONFIG_FILES="$CONFIG_FILES printf/Makefile" ;;
29165 "scanf/Makefile") CONFIG_FILES="$CONFIG_FILES scanf/Makefile" ;;
29166 "rand/Makefile") CONFIG_FILES="$CONFIG_FILES rand/Makefile" ;;
29167 "cxx/Makefile") CONFIG_FILES="$CONFIG_FILES cxx/Makefile" ;;
29168 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
29169 "tests/devel/Makefile") CONFIG_FILES="$CONFIG_FILES tests/devel/Makefile" ;;
29170 "tests/mpf/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpf/Makefile" ;;
29171 "tests/mpn/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpn/Makefile" ;;
29172 "tests/mpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpq/Makefile" ;;
29173 "tests/mpz/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpz/Makefile" ;;
29174 "tests/rand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rand/Makefile" ;;
29175 "tests/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
29176 "tests/cxx/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxx/Makefile" ;;
29177 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
29178 "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
29179 "demos/Makefile") CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;;
29180 "demos/calc/Makefile") CONFIG_FILES="$CONFIG_FILES demos/calc/Makefile" ;;
29181 "demos/expr/Makefile") CONFIG_FILES="$CONFIG_FILES demos/expr/Makefile" ;;
29182 "gmp.h") CONFIG_FILES="$CONFIG_FILES gmp.h:gmp-h.in" ;;
29183 "gmp.pc") CONFIG_FILES="$CONFIG_FILES gmp.pc:gmp.pc.in" ;;
29184 "gmpxx.pc") CONFIG_FILES="$CONFIG_FILES gmpxx.pc:gmpxx.pc.in" ;;
29185
29186 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29187 esac
29188 done
29189
29190
29191 # If the user did not use the arguments to specify the items to instantiate,
29192 # then the envvar interface is used. Set only those that are not.
29193 # We use the long form for the default assignment because of an extremely
29194 # bizarre bug on SunOS 4.1.3.
29195 if $ac_need_defaults; then
29196 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29197 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29198 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29199 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29200 fi
29201
29202 # Have a temporary directory for convenience. Make it in the build tree
29203 # simply because there is no reason against having it here, and in addition,
29204 # creating and moving files from /tmp can sometimes cause problems.
29205 # Hook for its removal unless debugging.
29206 # Note that there is a small window in which the directory will not be cleaned:
29207 # after its creation but before its name has been assigned to `$tmp'.
29208 $debug ||
29209 {
29210 tmp= ac_tmp=
29211 trap 'exit_status=$?
29212 : "${ac_tmp:=$tmp}"
29213 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29214 ' 0
29215 trap 'as_fn_exit 1' 1 2 13 15
29216 }
29217 # Create a (secure) tmp directory for tmp files.
29218
29219 {
29220 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29221 test -d "$tmp"
29222 } ||
29223 {
29224 tmp=./conf$$-$RANDOM
29225 (umask 077 && mkdir "$tmp")
29226 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29227 ac_tmp=$tmp
29228
29229 # Set up the scripts for CONFIG_FILES section.
29230 # No need to generate them if there are no CONFIG_FILES.
29231 # This happens for instance with `./config.status config.h'.
29232 if test -n "$CONFIG_FILES"; then
29233
29234
29235 ac_cr=`echo X | tr X '\015'`
29236 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29237 # But we know of no other shell where ac_cr would be empty at this
29238 # point, so we can use a bashism as a fallback.
29239 if test "x$ac_cr" = x; then
29240 eval ac_cr=\$\'\\r\'
29241 fi
29242 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29243 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29244 ac_cs_awk_cr='\\r'
29245 else
29246 ac_cs_awk_cr=$ac_cr
29247 fi
29248
29249 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29250 _ACEOF
29251
29252
29253 {
29254 echo "cat >conf$$subs.awk <<_ACEOF" &&
29255 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29256 echo "_ACEOF"
29257 } >conf$$subs.sh ||
29258 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29259 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29260 ac_delim='%!_!# '
29261 for ac_last_try in false false false false false :; do
29262 . ./conf$$subs.sh ||
29263 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29264
29265 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29266 if test $ac_delim_n = $ac_delim_num; then
29267 break
29268 elif $ac_last_try; then
29269 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29270 else
29271 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29272 fi
29273 done
29274 rm -f conf$$subs.sh
29275
29276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29277 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
29278 _ACEOF
29279 sed -n '
29280 h
29281 s/^/S["/; s/!.*/"]=/
29282 p
29283 g
29284 s/^[^!]*!//
29285 :repl
29286 t repl
29287 s/'"$ac_delim"'$//
29288 t delim
29289 :nl
29290 h
29291 s/\(.\{148\}\)..*/\1/
29292 t more1
29293 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29294 p
29295 n
29296 b repl
29297 :more1
29298 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29299 p
29300 g
29301 s/.\{148\}//
29302 t nl
29303 :delim
29304 h
29305 s/\(.\{148\}\)..*/\1/
29306 t more2
29307 s/["\\]/\\&/g; s/^/"/; s/$/"/
29308 p
29309 b
29310 :more2
29311 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29312 p
29313 g
29314 s/.\{148\}//
29315 t delim
29316 ' <conf$$subs.awk | sed '
29317 /^[^""]/{
29318 N
29319 s/\n//
29320 }
29321 ' >>$CONFIG_STATUS || ac_write_fail=1
29322 rm -f conf$$subs.awk
29323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29324 _ACAWK
29325 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
29326 for (key in S) S_is_set[key] = 1
29327 FS = ""
29328
29329 }
29330 {
29331 line = $ 0
29332 nfields = split(line, field, "@")
29333 substed = 0
29334 len = length(field[1])
29335 for (i = 2; i < nfields; i++) {
29336 key = field[i]
29337 keylen = length(key)
29338 if (S_is_set[key]) {
29339 value = S[key]
29340 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29341 len += length(value) + length(field[++i])
29342 substed = 1
29343 } else
29344 len += 1 + keylen
29345 }
29346
29347 print line
29348 }
29349
29350 _ACAWK
29351 _ACEOF
29352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29353 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29354 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29355 else
29356 cat
29357 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
29358 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
29359 _ACEOF
29360
29361 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29362 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
29363 # trailing colons and then remove the whole line if VPATH becomes empty
29364 # (actually we leave an empty line to preserve line numbers).
29365 if test "x$srcdir" = x.; then
29366 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
29367 h
29368 s///
29369 s/^/:/
29370 s/[ ]*$/:/
29371 s/:\$(srcdir):/:/g
29372 s/:\${srcdir}:/:/g
29373 s/:@srcdir@:/:/g
29374 s/^:*//
29375 s/:*$//
29376 x
29377 s/\(=[ ]*\).*/\1/
29378 G
29379 s/\n//
29380 s/^[^=]*=[ ]*$//
29381 }'
29382 fi
29383
29384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29385 fi # test -n "$CONFIG_FILES"
29386
29387 # Set up the scripts for CONFIG_HEADERS section.
29388 # No need to generate them if there are no CONFIG_HEADERS.
29389 # This happens for instance with `./config.status Makefile'.
29390 if test -n "$CONFIG_HEADERS"; then
29391 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29392 BEGIN {
29393 _ACEOF
29394
29395 # Transform confdefs.h into an awk script `defines.awk', embedded as
29396 # here-document in config.status, that substitutes the proper values into
29397 # config.h.in to produce config.h.
29398
29399 # Create a delimiter string that does not exist in confdefs.h, to ease
29400 # handling of long lines.
29401 ac_delim='%!_!# '
29402 for ac_last_try in false false :; do
29403 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29404 if test -z "$ac_tt"; then
29405 break
29406 elif $ac_last_try; then
29407 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29408 else
29409 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29410 fi
29411 done
29412
29413 # For the awk script, D is an array of macro values keyed by name,
29414 # likewise P contains macro parameters if any. Preserve backslash
29415 # newline sequences.
29416
29417 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29418 sed -n '
29419 s/.\{148\}/&'"$ac_delim"'/g
29420 t rset
29421 :rset
29422 s/^[ ]*#[ ]*define[ ][ ]*/ /
29423 t def
29424 d
29425 :def
29426 s/\\$//
29427 t bsnl
29428 s/["\\]/\\&/g
29429 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29430 D["\1"]=" \3"/p
29431 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29432 d
29433 :bsnl
29434 s/["\\]/\\&/g
29435 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29436 D["\1"]=" \3\\\\\\n"\\/p
29437 t cont
29438 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29439 t cont
29440 d
29441 :cont
29442 n
29443 s/.\{148\}/&'"$ac_delim"'/g
29444 t clear
29445 :clear
29446 s/\\$//
29447 t bsnlc
29448 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29449 d
29450 :bsnlc
29451 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29452 b cont
29453 ' <confdefs.h | sed '
29454 s/'"$ac_delim"'/"\\\
29455 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29456
29457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29458 for (key in D) D_is_set[key] = 1
29459 FS = ""
29460 }
29461 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29462 line = \$ 0
29463 split(line, arg, " ")
29464 if (arg[1] == "#") {
29465 defundef = arg[2]
29466 mac1 = arg[3]
29467 } else {
29468 defundef = substr(arg[1], 2)
29469 mac1 = arg[2]
29470 }
29471 split(mac1, mac2, "(") #)
29472 macro = mac2[1]
29473 prefix = substr(line, 1, index(line, defundef) - 1)
29474 if (D_is_set[macro]) {
29475 # Preserve the white space surrounding the "#".
29476 print prefix "define", macro P[macro] D[macro]
29477 next
29478 } else {
29479 # Replace #undef with comments. This is necessary, for example,
29480 # in the case of _POSIX_SOURCE, which is predefined and required
29481 # on some systems where configure will not decide to define it.
29482 if (defundef == "undef") {
29483 print "/*", prefix defundef, macro, "*/"
29484 next
29485 }
29486 }
29487 }
29488 { print }
29489 _ACAWK
29490 _ACEOF
29491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29492 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29493 fi # test -n "$CONFIG_HEADERS"
29494
29495
29496 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29497 shift
29498 for ac_tag
29499 do
29500 case $ac_tag in
29501 :[FHLC]) ac_mode=$ac_tag; continue;;
29502 esac
29503 case $ac_mode$ac_tag in
29504 :[FHL]*:*);;
29505 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29506 :[FH]-) ac_tag=-:-;;
29507 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29508 esac
29509 ac_save_IFS=$IFS
29510 IFS=:
29511 set x $ac_tag
29512 IFS=$ac_save_IFS
29513 shift
29514 ac_file=$1
29515 shift
29516
29517 case $ac_mode in
29518 :L) ac_source=$1;;
29519 :[FH])
29520 ac_file_inputs=
29521 for ac_f
29522 do
29523 case $ac_f in
29524 -) ac_f="$ac_tmp/stdin";;
29525 *) # Look for the file first in the build tree, then in the source tree
29526 # (if the path is not absolute). The absolute path cannot be DOS-style,
29527 # because $ac_f cannot contain `:'.
29528 test -f "$ac_f" ||
29529 case $ac_f in
29530 [\\/$]*) false;;
29531 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29532 esac ||
29533 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29534 esac
29535 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29536 as_fn_append ac_file_inputs " '$ac_f'"
29537 done
29538
29539 # Let's still pretend it is `configure' which instantiates (i.e., don't
29540 # use $as_me), people would be surprised to read:
29541 # /* config.h. Generated by config.status. */
29542 configure_input='Generated from '`
29543 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29544 `' by configure.'
29545 if test x"$ac_file" != x-; then
29546 configure_input="$ac_file. $configure_input"
29547 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29548 $as_echo "$as_me: creating $ac_file" >&6;}
29549 fi
29550 # Neutralize special characters interpreted by sed in replacement strings.
29551 case $configure_input in #(
29552 *\&* | *\|* | *\\* )
29553 ac_sed_conf_input=`$as_echo "$configure_input" |
29554 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29555 *) ac_sed_conf_input=$configure_input;;
29556 esac
29557
29558 case $ac_tag in
29559 *:-:* | *:-) cat >"$ac_tmp/stdin" \
29560 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29561 esac
29562 ;;
29563 esac
29564
29565 ac_dir=`$as_dirname -- "$ac_file" ||
29566 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29567 X"$ac_file" : 'X\(//\)[^/]' \| \
29568 X"$ac_file" : 'X\(//\)$' \| \
29569 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29570 $as_echo X"$ac_file" |
29571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29572 s//\1/
29573 q
29574 }
29575 /^X\(\/\/\)[^/].*/{
29576 s//\1/
29577 q
29578 }
29579 /^X\(\/\/\)$/{
29580 s//\1/
29581 q
29582 }
29583 /^X\(\/\).*/{
29584 s//\1/
29585 q
29586 }
29587 s/.*/./; q'`
29588 as_dir="$ac_dir"; as_fn_mkdir_p
29589 ac_builddir=.
29590
29591 case "$ac_dir" in
29592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29593 *)
29594 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29595 # A ".." for each directory in $ac_dir_suffix.
29596 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29597 case $ac_top_builddir_sub in
29598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29600 esac ;;
29601 esac
29602 ac_abs_top_builddir=$ac_pwd
29603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29604 # for backward compatibility:
29605 ac_top_builddir=$ac_top_build_prefix
29606
29607 case $srcdir in
29608 .) # We are building in place.
29609 ac_srcdir=.
29610 ac_top_srcdir=$ac_top_builddir_sub
29611 ac_abs_top_srcdir=$ac_pwd ;;
29612 [\\/]* | ?:[\\/]* ) # Absolute name.
29613 ac_srcdir=$srcdir$ac_dir_suffix;
29614 ac_top_srcdir=$srcdir
29615 ac_abs_top_srcdir=$srcdir ;;
29616 *) # Relative name.
29617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29618 ac_top_srcdir=$ac_top_build_prefix$srcdir
29619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29620 esac
29621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29622
29623
29624 case $ac_mode in
29625 :F)
29626 #
29627 # CONFIG_FILE
29628 #
29629
29630 case $INSTALL in
29631 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29632 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29633 esac
29634 ac_MKDIR_P=$MKDIR_P
29635 case $MKDIR_P in
29636 [\\/$]* | ?:[\\/]* ) ;;
29637 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29638 esac
29639 _ACEOF
29640
29641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29642 # If the template does not know about datarootdir, expand it.
29643 # FIXME: This hack should be removed a few years after 2.60.
29644 ac_datarootdir_hack=; ac_datarootdir_seen=
29645 ac_sed_dataroot='
29646 /datarootdir/ {
29647 p
29648 q
29649 }
29650 /@datadir@/p
29651 /@docdir@/p
29652 /@infodir@/p
29653 /@localedir@/p
29654 /@mandir@/p'
29655 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29656 *datarootdir*) ac_datarootdir_seen=yes;;
29657 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29659 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29660 _ACEOF
29661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29662 ac_datarootdir_hack='
29663 s&@datadir@&$datadir&g
29664 s&@docdir@&$docdir&g
29665 s&@infodir@&$infodir&g
29666 s&@localedir@&$localedir&g
29667 s&@mandir@&$mandir&g
29668 s&\\\${datarootdir}&$datarootdir&g' ;;
29669 esac
29670 _ACEOF
29671
29672 # Neutralize VPATH when `$srcdir' = `.'.
29673 # Shell code in configure.ac might set extrasub.
29674 # FIXME: do we really want to maintain this feature?
29675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29676 ac_sed_extra="$ac_vpsub
29677 $extrasub
29678 _ACEOF
29679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29680 :t
29681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29682 s|@configure_input@|$ac_sed_conf_input|;t t
29683 s&@top_builddir@&$ac_top_builddir_sub&;t t
29684 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29685 s&@srcdir@&$ac_srcdir&;t t
29686 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29687 s&@top_srcdir@&$ac_top_srcdir&;t t
29688 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29689 s&@builddir@&$ac_builddir&;t t
29690 s&@abs_builddir@&$ac_abs_builddir&;t t
29691 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29692 s&@INSTALL@&$ac_INSTALL&;t t
29693 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29694 $ac_datarootdir_hack
29695 "
29696 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29697 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29698
29699 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29700 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29701 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
29702 "$ac_tmp/out"`; test -z "$ac_out"; } &&
29703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29704 which seems to be undefined. Please make sure it is defined" >&5
29705 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29706 which seems to be undefined. Please make sure it is defined" >&2;}
29707
29708 rm -f "$ac_tmp/stdin"
29709 case $ac_file in
29710 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29711 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
29712 esac \
29713 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29714 ;;
29715 :H)
29716 #
29717 # CONFIG_HEADER
29718 #
29719 if test x"$ac_file" != x-; then
29720 {
29721 $as_echo "/* $configure_input */" \
29722 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29723 } >"$ac_tmp/config.h" \
29724 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29725 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
29726 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29727 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29728 else
29729 rm -f "$ac_file"
29730 mv "$ac_tmp/config.h" "$ac_file" \
29731 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29732 fi
29733 else
29734 $as_echo "/* $configure_input */" \
29735 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
29736 || as_fn_error $? "could not create -" "$LINENO" 5
29737 fi
29738 # Compute "$ac_file"'s index in $config_headers.
29739 _am_arg="$ac_file"
29740 _am_stamp_count=1
29741 for _am_header in $config_headers :; do
29742 case $_am_header in
29743 $_am_arg | $_am_arg:* )
29744 break ;;
29745 * )
29746 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29747 esac
29748 done
29749 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29750 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29751 X"$_am_arg" : 'X\(//\)[^/]' \| \
29752 X"$_am_arg" : 'X\(//\)$' \| \
29753 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29754 $as_echo X"$_am_arg" |
29755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29756 s//\1/
29757 q
29758 }
29759 /^X\(\/\/\)[^/].*/{
29760 s//\1/
29761 q
29762 }
29763 /^X\(\/\/\)$/{
29764 s//\1/
29765 q
29766 }
29767 /^X\(\/\).*/{
29768 s//\1/
29769 q
29770 }
29771 s/.*/./; q'`/stamp-h$_am_stamp_count
29772 ;;
29773 :L)
29774 #
29775 # CONFIG_LINK
29776 #
29777
29778 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29779 :
29780 else
29781 # Prefer the file from the source tree if names are identical.
29782 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29783 ac_source=$srcdir/$ac_source
29784 fi
29785
29786 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29787 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29788
29789 if test ! -r "$ac_source"; then
29790 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
29791 fi
29792 rm -f "$ac_file"
29793
29794 # Try a relative symlink, then a hard link, then a copy.
29795 case $ac_source in
29796 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29797 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29798 esac
29799 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29800 ln "$ac_source" "$ac_file" 2>/dev/null ||
29801 cp -p "$ac_source" "$ac_file" ||
29802 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29803 fi
29804 ;;
29805 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29806 $as_echo "$as_me: executing $ac_file commands" >&6;}
29807 ;;
29808 esac
29809
29810
29811 case $ac_file$ac_mode in
29812 "libtool":C)
29813
29814 # See if we are running on zsh, and set the options that allow our
29815 # commands through without removal of \ escapes.
29816 if test -n "${ZSH_VERSION+set}"; then
29817 setopt NO_GLOB_SUBST
29818 fi
29819
29820 cfgfile=${ofile}T
29821 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29822 $RM "$cfgfile"
29823
29824 cat <<_LT_EOF >> "$cfgfile"
29825 #! $SHELL
29826 # Generated automatically by $as_me ($PACKAGE) $VERSION
29827 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29828 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
29829
29830 # Provide generalized library-building support services.
29831 # Written by Gordon Matzigkeit, 1996
29832
29833 # Copyright (C) 2014 Free Software Foundation, Inc.
29834 # This is free software; see the source for copying conditions. There is NO
29835 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
29836
29837 # GNU Libtool is free software; you can redistribute it and/or modify
29838 # it under the terms of the GNU General Public License as published by
29839 # the Free Software Foundation; either version 2 of of the License, or
29840 # (at your option) any later version.
29841 #
29842 # As a special exception to the GNU General Public License, if you
29843 # distribute this file as part of a program or library that is built
29844 # using GNU Libtool, you may include this file under the same
29845 # distribution terms that you use for the rest of that program.
29846 #
29847 # GNU Libtool is distributed in the hope that it will be useful, but
29848 # WITHOUT ANY WARRANTY; without even the implied warranty of
29849 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29850 # GNU General Public License for more details.
29851 #
29852 # You should have received a copy of the GNU General Public License
29853 # along with this program. If not, see <http://www.gnu.org/licenses/>.
29854
29855
29856 # The names of the tagged configurations supported by this script.
29857 available_tags='CXX '
29858
29859 # Configured defaults for sys_lib_dlsearch_path munging.
29860 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
29861
29862 # ### BEGIN LIBTOOL CONFIG
29863
29864 # A BSD- or MS-compatible name lister.
29865 NM=$lt_NM
29866
29867 # Assembler program.
29868 AS=$lt_AS
29869
29870 # DLL creation program.
29871 DLLTOOL=$lt_DLLTOOL
29872
29873 # Object dumper program.
29874 OBJDUMP=$lt_OBJDUMP
29875
29876 # Which release of libtool.m4 was used?
29877 macro_version=$macro_version
29878 macro_revision=$macro_revision
29879
29880 # Whether or not to build shared libraries.
29881 build_libtool_libs=$enable_shared
29882
29883 # Whether or not to build static libraries.
29884 build_old_libs=$enable_static
29885
29886 # What type of objects to build.
29887 pic_mode=$pic_mode
29888
29889 # Whether or not to optimize for fast installation.
29890 fast_install=$enable_fast_install
29891
29892 # Shared archive member basename,for filename based shared library versioning on AIX.
29893 shared_archive_member_spec=$shared_archive_member_spec
29894
29895 # Shell to use when invoking shell scripts.
29896 SHELL=$lt_SHELL
29897
29898 # An echo program that protects backslashes.
29899 ECHO=$lt_ECHO
29900
29901 # The PATH separator for the build system.
29902 PATH_SEPARATOR=$lt_PATH_SEPARATOR
29903
29904 # The host system.
29905 host_alias=$host_alias
29906 host=$host
29907 host_os=$host_os
29908
29909 # The build system.
29910 build_alias=$build_alias
29911 build=$build
29912 build_os=$build_os
29913
29914 # A sed program that does not truncate output.
29915 SED=$lt_SED
29916
29917 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
29918 Xsed="\$SED -e 1s/^X//"
29919
29920 # A grep program that handles long lines.
29921 GREP=$lt_GREP
29922
29923 # An ERE matcher.
29924 EGREP=$lt_EGREP
29925
29926 # A literal string matcher.
29927 FGREP=$lt_FGREP
29928
29929 # Whether we need soft or hard links.
29930 LN_S=$lt_LN_S
29931
29932 # What is the maximum length of a command?
29933 max_cmd_len=$max_cmd_len
29934
29935 # Object file suffix (normally "o").
29936 objext=$ac_objext
29937
29938 # Executable file suffix (normally "").
29939 exeext=$exeext
29940
29941 # whether the shell understands "unset".
29942 lt_unset=$lt_unset
29943
29944 # turn spaces into newlines.
29945 SP2NL=$lt_lt_SP2NL
29946
29947 # turn newlines into spaces.
29948 NL2SP=$lt_lt_NL2SP
29949
29950 # convert \$build file names to \$host format.
29951 to_host_file_cmd=$lt_cv_to_host_file_cmd
29952
29953 # convert \$build files to toolchain format.
29954 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
29955
29956 # Method to check whether dependent libraries are shared objects.
29957 deplibs_check_method=$lt_deplibs_check_method
29958
29959 # Command to use when deplibs_check_method = "file_magic".
29960 file_magic_cmd=$lt_file_magic_cmd
29961
29962 # How to find potential files when deplibs_check_method = "file_magic".
29963 file_magic_glob=$lt_file_magic_glob
29964
29965 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
29966 want_nocaseglob=$lt_want_nocaseglob
29967
29968 # Command to associate shared and link libraries.
29969 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
29970
29971 # The archiver.
29972 AR=$lt_AR
29973
29974 # Flags to create an archive.
29975 AR_FLAGS=$lt_AR_FLAGS
29976
29977 # How to feed a file listing to the archiver.
29978 archiver_list_spec=$lt_archiver_list_spec
29979
29980 # A symbol stripping program.
29981 STRIP=$lt_STRIP
29982
29983 # Commands used to install an old-style archive.
29984 RANLIB=$lt_RANLIB
29985 old_postinstall_cmds=$lt_old_postinstall_cmds
29986 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29987
29988 # Whether to use a lock for old archive extraction.
29989 lock_old_archive_extraction=$lock_old_archive_extraction
29990
29991 # A C compiler.
29992 LTCC=$lt_CC
29993
29994 # LTCC compiler flags.
29995 LTCFLAGS=$lt_CFLAGS
29996
29997 # Take the output of nm and produce a listing of raw symbols and C names.
29998 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29999
30000 # Transform the output of nm in a proper C declaration.
30001 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30002
30003 # Transform the output of nm into a list of symbols to manually relocate.
30004 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
30005
30006 # Transform the output of nm in a C name address pair.
30007 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30008
30009 # Transform the output of nm in a C name address pair when lib prefix is needed.
30010 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30011
30012 # The name lister interface.
30013 nm_interface=$lt_lt_cv_nm_interface
30014
30015 # Specify filename containing input files for \$NM.
30016 nm_file_list_spec=$lt_nm_file_list_spec
30017
30018 # The root where to search for dependent libraries,and where our libraries should be installed.
30019 lt_sysroot=$lt_sysroot
30020
30021 # Command to truncate a binary pipe.
30022 lt_truncate_bin=$lt_lt_cv_truncate_bin
30023
30024 # The name of the directory that contains temporary libtool files.
30025 objdir=$objdir
30026
30027 # Used to examine libraries when file_magic_cmd begins with "file".
30028 MAGIC_CMD=$MAGIC_CMD
30029
30030 # Must we lock files when doing compilation?
30031 need_locks=$lt_need_locks
30032
30033 # Manifest tool.
30034 MANIFEST_TOOL=$lt_MANIFEST_TOOL
30035
30036 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30037 DSYMUTIL=$lt_DSYMUTIL
30038
30039 # Tool to change global to local symbols on Mac OS X.
30040 NMEDIT=$lt_NMEDIT
30041
30042 # Tool to manipulate fat objects and archives on Mac OS X.
30043 LIPO=$lt_LIPO
30044
30045 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
30046 OTOOL=$lt_OTOOL
30047
30048 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30049 OTOOL64=$lt_OTOOL64
30050
30051 # Old archive suffix (normally "a").
30052 libext=$libext
30053
30054 # Shared library suffix (normally ".so").
30055 shrext_cmds=$lt_shrext_cmds
30056
30057 # The commands to extract the exported symbol list from a shared archive.
30058 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30059
30060 # Variables whose values should be saved in libtool wrapper scripts and
30061 # restored at link time.
30062 variables_saved_for_relink=$lt_variables_saved_for_relink
30063
30064 # Do we need the "lib" prefix for modules?
30065 need_lib_prefix=$need_lib_prefix
30066
30067 # Do we need a version for libraries?
30068 need_version=$need_version
30069
30070 # Library versioning type.
30071 version_type=$version_type
30072
30073 # Shared library runtime path variable.
30074 runpath_var=$runpath_var
30075
30076 # Shared library path variable.
30077 shlibpath_var=$shlibpath_var
30078
30079 # Is shlibpath searched before the hard-coded library search path?
30080 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30081
30082 # Format of library name prefix.
30083 libname_spec=$lt_libname_spec
30084
30085 # List of archive names. First name is the real one, the rest are links.
30086 # The last name is the one that the linker finds with -lNAME
30087 library_names_spec=$lt_library_names_spec
30088
30089 # The coded name of the library, if different from the real name.
30090 soname_spec=$lt_soname_spec
30091
30092 # Permission mode override for installation of shared libraries.
30093 install_override_mode=$lt_install_override_mode
30094
30095 # Command to use after installation of a shared archive.
30096 postinstall_cmds=$lt_postinstall_cmds
30097
30098 # Command to use after uninstallation of a shared archive.
30099 postuninstall_cmds=$lt_postuninstall_cmds
30100
30101 # Commands used to finish a libtool library installation in a directory.
30102 finish_cmds=$lt_finish_cmds
30103
30104 # As "finish_cmds", except a single script fragment to be evaled but
30105 # not shown.
30106 finish_eval=$lt_finish_eval
30107
30108 # Whether we should hardcode library paths into libraries.
30109 hardcode_into_libs=$hardcode_into_libs
30110
30111 # Compile-time system search path for libraries.
30112 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30113
30114 # Detected run-time system search path for libraries.
30115 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
30116
30117 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
30118 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
30119
30120 # Whether dlopen is supported.
30121 dlopen_support=$enable_dlopen
30122
30123 # Whether dlopen of programs is supported.
30124 dlopen_self=$enable_dlopen_self
30125
30126 # Whether dlopen of statically linked programs is supported.
30127 dlopen_self_static=$enable_dlopen_self_static
30128
30129 # Commands to strip libraries.
30130 old_striplib=$lt_old_striplib
30131 striplib=$lt_striplib
30132
30133
30134 # The linker used to build libraries.
30135 LD=$lt_LD
30136
30137 # How to create reloadable object files.
30138 reload_flag=$lt_reload_flag
30139 reload_cmds=$lt_reload_cmds
30140
30141 # Commands used to build an old-style archive.
30142 old_archive_cmds=$lt_old_archive_cmds
30143
30144 # A language specific compiler.
30145 CC=$lt_compiler
30146
30147 # Is the compiler the GNU compiler?
30148 with_gcc=$GCC
30149
30150 # Compiler flag to turn off builtin functions.
30151 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30152
30153 # Additional compiler flags for building library objects.
30154 pic_flag=$lt_lt_prog_compiler_pic
30155
30156 # How to pass a linker flag through the compiler.
30157 wl=$lt_lt_prog_compiler_wl
30158
30159 # Compiler flag to prevent dynamic linking.
30160 link_static_flag=$lt_lt_prog_compiler_static
30161
30162 # Does compiler simultaneously support -c and -o options?
30163 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30164
30165 # Whether or not to add -lc for building shared libraries.
30166 build_libtool_need_lc=$archive_cmds_need_lc
30167
30168 # Whether or not to disallow shared libs when runtime libs are static.
30169 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30170
30171 # Compiler flag to allow reflexive dlopens.
30172 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30173
30174 # Compiler flag to generate shared objects directly from archives.
30175 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30176
30177 # Whether the compiler copes with passing no objects directly.
30178 compiler_needs_object=$lt_compiler_needs_object
30179
30180 # Create an old-style archive from a shared archive.
30181 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30182
30183 # Create a temporary old-style archive to link instead of a shared archive.
30184 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30185
30186 # Commands used to build a shared archive.
30187 archive_cmds=$lt_archive_cmds
30188 archive_expsym_cmds=$lt_archive_expsym_cmds
30189
30190 # Commands used to build a loadable module if different from building
30191 # a shared archive.
30192 module_cmds=$lt_module_cmds
30193 module_expsym_cmds=$lt_module_expsym_cmds
30194
30195 # Whether we are building with GNU ld or not.
30196 with_gnu_ld=$lt_with_gnu_ld
30197
30198 # Flag that allows shared libraries with undefined symbols to be built.
30199 allow_undefined_flag=$lt_allow_undefined_flag
30200
30201 # Flag that enforces no undefined symbols.
30202 no_undefined_flag=$lt_no_undefined_flag
30203
30204 # Flag to hardcode \$libdir into a binary during linking.
30205 # This must work even if \$libdir does not exist
30206 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30207
30208 # Whether we need a single "-rpath" flag with a separated argument.
30209 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30210
30211 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30212 # DIR into the resulting binary.
30213 hardcode_direct=$hardcode_direct
30214
30215 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30216 # DIR into the resulting binary and the resulting library dependency is
30217 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
30218 # library is relocated.
30219 hardcode_direct_absolute=$hardcode_direct_absolute
30220
30221 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30222 # into the resulting binary.
30223 hardcode_minus_L=$hardcode_minus_L
30224
30225 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30226 # into the resulting binary.
30227 hardcode_shlibpath_var=$hardcode_shlibpath_var
30228
30229 # Set to "yes" if building a shared library automatically hardcodes DIR
30230 # into the library and all subsequent libraries and executables linked
30231 # against it.
30232 hardcode_automatic=$hardcode_automatic
30233
30234 # Set to yes if linker adds runtime paths of dependent libraries
30235 # to runtime path list.
30236 inherit_rpath=$inherit_rpath
30237
30238 # Whether libtool must link a program against all its dependency libraries.
30239 link_all_deplibs=$link_all_deplibs
30240
30241 # Set to "yes" if exported symbols are required.
30242 always_export_symbols=$always_export_symbols
30243
30244 # The commands to list exported symbols.
30245 export_symbols_cmds=$lt_export_symbols_cmds
30246
30247 # Symbols that should not be listed in the preloaded symbols.
30248 exclude_expsyms=$lt_exclude_expsyms
30249
30250 # Symbols that must always be exported.
30251 include_expsyms=$lt_include_expsyms
30252
30253 # Commands necessary for linking programs (against libraries) with templates.
30254 prelink_cmds=$lt_prelink_cmds
30255
30256 # Commands necessary for finishing linking programs.
30257 postlink_cmds=$lt_postlink_cmds
30258
30259 # Specify filename containing input files.
30260 file_list_spec=$lt_file_list_spec
30261
30262 # How to hardcode a shared library path into an executable.
30263 hardcode_action=$hardcode_action
30264
30265 # The directories searched by this compiler when creating a shared library.
30266 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
30267
30268 # Dependencies to place before and after the objects being linked to
30269 # create a shared library.
30270 predep_objects=$lt_predep_objects
30271 postdep_objects=$lt_postdep_objects
30272 predeps=$lt_predeps
30273 postdeps=$lt_postdeps
30274
30275 # The library search path used internally by the compiler when linking
30276 # a shared library.
30277 compiler_lib_search_path=$lt_compiler_lib_search_path
30278
30279 # ### END LIBTOOL CONFIG
30280
30281 _LT_EOF
30282
30283 cat <<'_LT_EOF' >> "$cfgfile"
30284
30285 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
30286
30287 # func_munge_path_list VARIABLE PATH
30288 # -----------------------------------
30289 # VARIABLE is name of variable containing _space_ separated list of
30290 # directories to be munged by the contents of PATH, which is string
30291 # having a format:
30292 # "DIR[:DIR]:"
30293 # string "DIR[ DIR]" will be prepended to VARIABLE
30294 # ":DIR[:DIR]"
30295 # string "DIR[ DIR]" will be appended to VARIABLE
30296 # "DIRP[:DIRP]::[DIRA:]DIRA"
30297 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
30298 # "DIRA[ DIRA]" will be appended to VARIABLE
30299 # "DIR[:DIR]"
30300 # VARIABLE will be replaced by "DIR[ DIR]"
30301 func_munge_path_list ()
30302 {
30303 case x$2 in
30304 x)
30305 ;;
30306 *:)
30307 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
30308 ;;
30309 x:*)
30310 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
30311 ;;
30312 *::*)
30313 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
30314 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
30315 ;;
30316 *)
30317 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
30318 ;;
30319 esac
30320 }
30321
30322
30323 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
30324 func_cc_basename ()
30325 {
30326 for cc_temp in $*""; do
30327 case $cc_temp in
30328 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
30329 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
30330 \-*) ;;
30331 *) break;;
30332 esac
30333 done
30334 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
30335 }
30336
30337
30338 # ### END FUNCTIONS SHARED WITH CONFIGURE
30339
30340 _LT_EOF
30341
30342 case $host_os in
30343 aix3*)
30344 cat <<\_LT_EOF >> "$cfgfile"
30345 # AIX sometimes has problems with the GCC collect2 program. For some
30346 # reason, if we set the COLLECT_NAMES environment variable, the problems
30347 # vanish in a puff of smoke.
30348 if test set != "${COLLECT_NAMES+set}"; then
30349 COLLECT_NAMES=
30350 export COLLECT_NAMES
30351 fi
30352 _LT_EOF
30353 ;;
30354 esac
30355
30356
30357 ltmain=$ac_aux_dir/ltmain.sh
30358
30359
30360 # We use sed instead of cat because bash on DJGPP gets confused if
30361 # if finds mixed CR/LF and LF-only lines. Since sed operates in
30362 # text mode, it properly converts lines to CR/LF. This bash problem
30363 # is reportedly fixed, but why not run on old versions too?
30364 sed '$q' "$ltmain" >> "$cfgfile" \
30365 || (rm -f "$cfgfile"; exit 1)
30366
30367 mv -f "$cfgfile" "$ofile" ||
30368 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30369 chmod +x "$ofile"
30370
30371
30372 cat <<_LT_EOF >> "$ofile"
30373
30374 # ### BEGIN LIBTOOL TAG CONFIG: CXX
30375
30376 # The linker used to build libraries.
30377 LD=$lt_LD_CXX
30378
30379 # How to create reloadable object files.
30380 reload_flag=$lt_reload_flag_CXX
30381 reload_cmds=$lt_reload_cmds_CXX
30382
30383 # Commands used to build an old-style archive.
30384 old_archive_cmds=$lt_old_archive_cmds_CXX
30385
30386 # A language specific compiler.
30387 CC=$lt_compiler_CXX
30388
30389 # Is the compiler the GNU compiler?
30390 with_gcc=$GCC_CXX
30391
30392 # Compiler flag to turn off builtin functions.
30393 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
30394
30395 # Additional compiler flags for building library objects.
30396 pic_flag=$lt_lt_prog_compiler_pic_CXX
30397
30398 # How to pass a linker flag through the compiler.
30399 wl=$lt_lt_prog_compiler_wl_CXX
30400
30401 # Compiler flag to prevent dynamic linking.
30402 link_static_flag=$lt_lt_prog_compiler_static_CXX
30403
30404 # Does compiler simultaneously support -c and -o options?
30405 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
30406
30407 # Whether or not to add -lc for building shared libraries.
30408 build_libtool_need_lc=$archive_cmds_need_lc_CXX
30409
30410 # Whether or not to disallow shared libs when runtime libs are static.
30411 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
30412
30413 # Compiler flag to allow reflexive dlopens.
30414 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
30415
30416 # Compiler flag to generate shared objects directly from archives.
30417 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
30418
30419 # Whether the compiler copes with passing no objects directly.
30420 compiler_needs_object=$lt_compiler_needs_object_CXX
30421
30422 # Create an old-style archive from a shared archive.
30423 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
30424
30425 # Create a temporary old-style archive to link instead of a shared archive.
30426 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
30427
30428 # Commands used to build a shared archive.
30429 archive_cmds=$lt_archive_cmds_CXX
30430 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
30431
30432 # Commands used to build a loadable module if different from building
30433 # a shared archive.
30434 module_cmds=$lt_module_cmds_CXX
30435 module_expsym_cmds=$lt_module_expsym_cmds_CXX
30436
30437 # Whether we are building with GNU ld or not.
30438 with_gnu_ld=$lt_with_gnu_ld_CXX
30439
30440 # Flag that allows shared libraries with undefined symbols to be built.
30441 allow_undefined_flag=$lt_allow_undefined_flag_CXX
30442
30443 # Flag that enforces no undefined symbols.
30444 no_undefined_flag=$lt_no_undefined_flag_CXX
30445
30446 # Flag to hardcode \$libdir into a binary during linking.
30447 # This must work even if \$libdir does not exist
30448 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
30449
30450 # Whether we need a single "-rpath" flag with a separated argument.
30451 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
30452
30453 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30454 # DIR into the resulting binary.
30455 hardcode_direct=$hardcode_direct_CXX
30456
30457 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30458 # DIR into the resulting binary and the resulting library dependency is
30459 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
30460 # library is relocated.
30461 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
30462
30463 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30464 # into the resulting binary.
30465 hardcode_minus_L=$hardcode_minus_L_CXX
30466
30467 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30468 # into the resulting binary.
30469 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
30470
30471 # Set to "yes" if building a shared library automatically hardcodes DIR
30472 # into the library and all subsequent libraries and executables linked
30473 # against it.
30474 hardcode_automatic=$hardcode_automatic_CXX
30475
30476 # Set to yes if linker adds runtime paths of dependent libraries
30477 # to runtime path list.
30478 inherit_rpath=$inherit_rpath_CXX
30479
30480 # Whether libtool must link a program against all its dependency libraries.
30481 link_all_deplibs=$link_all_deplibs_CXX
30482
30483 # Set to "yes" if exported symbols are required.
30484 always_export_symbols=$always_export_symbols_CXX
30485
30486 # The commands to list exported symbols.
30487 export_symbols_cmds=$lt_export_symbols_cmds_CXX
30488
30489 # Symbols that should not be listed in the preloaded symbols.
30490 exclude_expsyms=$lt_exclude_expsyms_CXX
30491
30492 # Symbols that must always be exported.
30493 include_expsyms=$lt_include_expsyms_CXX
30494
30495 # Commands necessary for linking programs (against libraries) with templates.
30496 prelink_cmds=$lt_prelink_cmds_CXX
30497
30498 # Commands necessary for finishing linking programs.
30499 postlink_cmds=$lt_postlink_cmds_CXX
30500
30501 # Specify filename containing input files.
30502 file_list_spec=$lt_file_list_spec_CXX
30503
30504 # How to hardcode a shared library path into an executable.
30505 hardcode_action=$hardcode_action_CXX
30506
30507 # The directories searched by this compiler when creating a shared library.
30508 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
30509
30510 # Dependencies to place before and after the objects being linked to
30511 # create a shared library.
30512 predep_objects=$lt_predep_objects_CXX
30513 postdep_objects=$lt_postdep_objects_CXX
30514 predeps=$lt_predeps_CXX
30515 postdeps=$lt_postdeps_CXX
30516
30517 # The library search path used internally by the compiler when linking
30518 # a shared library.
30519 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
30520
30521 # ### END LIBTOOL TAG CONFIG: CXX
30522 _LT_EOF
30523
30524 ;;
30525
30526 esac
30527 done # for ac_tag
30528
30529
30530 as_fn_exit 0
30531 _ACEOF
30532 ac_clean_files=$ac_clean_files_save
30533
30534 test $ac_write_fail = 0 ||
30535 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30536
30537
30538 # configure is writing to config.log, and then calls config.status.
30539 # config.status does its own redirection, appending to config.log.
30540 # Unfortunately, on DOS this fails, as config.log is still kept open
30541 # by configure, so config.status won't be able to write to it; its
30542 # output is simply discarded. So we exec the FD to /dev/null,
30543 # effectively closing config.log, so it can be properly (re)opened and
30544 # appended to by config.status. When coming back to configure, we
30545 # need to make the FD available again.
30546 if test "$no_create" != yes; then
30547 ac_cs_success=:
30548 ac_config_status_args=
30549 test "$silent" = yes &&
30550 ac_config_status_args="$ac_config_status_args --quiet"
30551 exec 5>/dev/null
30552 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30553 exec 5>>config.log
30554 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30555 # would make configure fail if this is the last instruction.
30556 $ac_cs_success || as_fn_exit 1
30557 fi
30558 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30560 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30561 fi
30562
30563
30564 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
30565
30566 Version: ${PACKAGE_STRING}
30567 Host type: ${host}
30568 ABI: ${ABI}
30569 Install prefix: ${prefix}
30570 Compiler: ${CC}
30571 Static libraries: ${enable_static}
30572 Shared libraries: ${enable_shared}
30573 " >&5
30574 $as_echo "$as_me: summary of build options:
30575
30576 Version: ${PACKAGE_STRING}
30577 Host type: ${host}
30578 ABI: ${ABI}
30579 Install prefix: ${prefix}
30580 Compiler: ${CC}
30581 Static libraries: ${enable_static}
30582 Shared libraries: ${enable_shared}
30583 " >&6;}