libsodium: updated to 1.0.10
[tomato.git] / release / src / router / gmp / configure
blob60c6bd55ebf4234aa7298941b91850429555228e
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.0.0.
6 # Report bugs to <gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html>.
10 # Copyright 1996-2014 Free Software Foundation, Inc.
12 # This file is part of the GNU MP Library.
14 # The GNU MP Library is free software; you can redistribute it and/or modify
15 # it under the terms of either:
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.
21 # or
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.
27 # or both in parallel, as here.
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.
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/.
40 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 *) :
64 esac
68 as_nl='
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"
99 export as_echo_n_body
100 as_echo_n='sh -c $as_echo_n_body as_echo'
102 export as_echo_body
103 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
160 # NLS nuisances.
161 LC_ALL=C
162 export LC_ALL
163 LANGUAGE=C
164 export LANGUAGE
166 # CDPATH.
167 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
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 *) :
208 esac
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; }
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 :
224 else
225 exitcode=1; echo positional parameters were not saved.
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
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
247 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
254 IFS=$as_save_IFS
255 test -z "$as_dir" && as_dir=.
256 as_found=:
257 case $as_dir in #(
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
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
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
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 bug-autoconf@gnu.org and
310 $0: gmp-bugs@gmplib.org, 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."
316 exit 1
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
326 ## --------------------- ##
327 ## M4sh Shell Functions. ##
328 ## --------------------- ##
329 # as_fn_unset VAR
330 # ---------------
331 # Portably unset VAR.
332 as_fn_unset ()
334 { eval $1=; unset $1;}
336 as_unset=as_fn_unset
338 # as_fn_set_status STATUS
339 # -----------------------
340 # Set $? to STATUS, without forking.
341 as_fn_set_status ()
343 return $1
344 } # as_fn_set_status
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 ()
351 set +e
352 as_fn_set_status $1
353 exit $1
354 } # as_fn_exit
356 # as_fn_mkdir_p
357 # -------------
358 # Create "$as_dir" as a directory, including parents if necessary.
359 as_fn_mkdir_p ()
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/
383 /^X\(\/\/\)[^/].*/{
384 s//\1/
387 /^X\(\/\/\)$/{
388 s//\1/
391 /^X\(\/\).*/{
392 s//\1/
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"
402 } # as_fn_mkdir_p
404 # as_fn_executable_p FILE
405 # -----------------------
406 # Test if FILE is an executable regular file.
407 as_fn_executable_p ()
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 ()
420 eval $1+=\$2
422 else
423 as_fn_append ()
425 eval $1=\$$1\$2
427 fi # as_fn_append
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 ()
437 as_val=$(( $* ))
439 else
440 as_fn_arith ()
442 as_val=`expr "$@" || test $? -eq 1`
444 fi # as_fn_arith
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 ()
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
459 $as_echo "$as_me: error: $2" >&2
460 as_fn_exit $as_status
461 } # as_fn_error
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
470 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
471 as_basename=basename
472 else
473 as_basename=false
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
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/
491 /^X\/\(\/\/\)$/{
492 s//\1/
495 /^X\/\(\/\).*/{
496 s//\1/
499 s/.*/./; q'`
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
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 '
516 /[$]LINENO/=
517 ' <$as_myself |
518 sed '
519 s/[$]LINENO.*/&-/
520 t lineno
522 :lineno
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; }
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
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;;
554 ECHO_N='-n';;
555 esac
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
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'
578 else
579 as_ln_s='cp -pR'
581 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
582 rmdir conf$$.dir 2>/dev/null
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
591 as_test_x='test -x'
592 as_executable_p=as_fn_executable_p
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'"
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'"
600 SHELL=${CONFIG_SHELL-/bin/sh}
603 test -n "$DJDIR" || exec 7<&0 </dev/null
604 exec 6>&1
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`
612 # Initializations.
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=
623 # Identity of this package.
624 PACKAGE_NAME='GNU MP'
625 PACKAGE_TARNAME='gmp'
626 PACKAGE_VERSION='6.0.0'
627 PACKAGE_STRING='GNU MP 6.0.0'
628 PACKAGE_BUGREPORT='gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html'
629 PACKAGE_URL='http://www.gnu.org/software/gmp/'
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"
668 ac_subst_vars='am__EXEEXT_FALSE
669 am__EXEEXT_TRUE
670 LTLIBOBJS
671 LIBOBJS
672 LEXLIB
673 LEX_OUTPUT_ROOT
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
695 TUNE_LIBS
696 TAL_OBJECT
697 LIBM
698 ENABLE_STATIC_FALSE
699 ENABLE_STATIC_TRUE
700 OTOOL64
701 OTOOL
702 LIPO
703 NMEDIT
704 DSYMUTIL
705 MANIFEST_TOOL
706 RANLIB
707 ac_ct_AR
708 LN_S
710 FGREP
712 LIBTOOL
713 LIBGMP_DLL
714 OBJDUMP
715 DLLTOOL
718 ac_ct_DUMPBIN
719 DUMPBIN
721 ASMFLAGS
722 EGREP
723 GREP
724 CXXCPP
725 WANT_CXX_FALSE
726 WANT_CXX_TRUE
727 ac_ct_CXX
728 CXXFLAGS
730 CCAS
731 LIBM_FOR_BUILD
732 U_FOR_BUILD
733 EXEEXT_FOR_BUILD
734 CPP_FOR_BUILD
735 CC_FOR_BUILD
737 OBJEXT
738 EXEEXT
739 ac_ct_CC
740 CPPFLAGS
741 LDFLAGS
742 CFLAGS
744 DEFN_LONG_LONG_LIMB
745 CALLING_CONVENTIONS_OBJS
746 SPEED_CYCLECOUNTER_OBJ
747 LIBGMPXX_LDFLAGS
748 LIBGMP_LDFLAGS
749 GMP_LDFLAGS
750 HAVE_HOST_CPU_FAMILY_powerpc
751 HAVE_HOST_CPU_FAMILY_power
753 GMP_NAIL_BITS
754 MAINT
755 MAINTAINER_MODE_FALSE
756 MAINTAINER_MODE_TRUE
757 am__untar
758 am__tar
759 AMTAR
760 am__leading_dot
761 SET_MAKE
763 mkdir_p
764 MKDIR_P
765 INSTALL_STRIP_PROGRAM
766 STRIP
767 install_sh
768 MAKEINFO
769 AUTOHEADER
770 AUTOMAKE
771 AUTOCONF
772 ACLOCAL
773 VERSION
774 PACKAGE
775 CYGPATH_W
776 am__isrc
777 INSTALL_DATA
778 INSTALL_SCRIPT
779 INSTALL_PROGRAM
780 host_os
781 host_vendor
782 host_cpu
783 host
784 build_os
785 build_vendor
786 build_cpu
787 build
788 target_alias
789 host_alias
790 build_alias
791 LIBS
792 ECHO_T
793 ECHO_N
794 ECHO_C
795 DEFS
796 mandir
797 localedir
798 libdir
799 psdir
800 pdfdir
801 dvidir
802 htmldir
803 infodir
804 docdir
805 oldincludedir
806 includedir
807 localstatedir
808 sharedstatedir
809 sysconfdir
810 datadir
811 datarootdir
812 libexecdir
813 sbindir
814 bindir
815 program_transform_name
816 prefix
817 exec_prefix
818 PACKAGE_URL
819 PACKAGE_BUGREPORT
820 PACKAGE_STRING
821 PACKAGE_VERSION
822 PACKAGE_TARNAME
823 PACKAGE_NAME
824 PATH_SEPARATOR
825 SHELL'
826 ac_subst_files=''
827 ac_user_opts='
828 enable_option_checking
829 enable_maintainer_mode
830 enable_assert
831 enable_alloca
832 enable_cxx
833 enable_assembly
834 enable_fft
835 enable_old_fft_full
836 enable_nails
837 enable_profiling
838 with_readline
839 enable_fat
840 enable_minithres
841 enable_fake_cpuid
842 enable_shared
843 enable_static
844 with_pic
845 enable_fast_install
846 with_gnu_ld
847 with_sysroot
848 enable_libtool_lock
850 ac_precious_vars='build_alias
851 host_alias
852 target_alias
855 CFLAGS
856 LDFLAGS
857 LIBS
858 CPPFLAGS
860 CC_FOR_BUILD
861 CPP_FOR_BUILD
863 CXXFLAGS
865 CXXCPP
867 YACC
868 YFLAGS'
871 # Initialize some variables set by options.
872 ac_init_help=
873 ac_init_version=false
874 ac_unrecognized_opts=
875 ac_unrecognized_sep=
876 # The variables have the same names as the options, with
877 # dashes changed to underlines.
878 cache_file=/dev/null
879 exec_prefix=NONE
880 no_create=
881 no_recursion=
882 prefix=NONE
883 program_prefix=NONE
884 program_suffix=NONE
885 program_transform_name=s,x,x,
886 silent=
887 site=
888 srcdir=
889 verbose=
890 x_includes=NONE
891 x_libraries=NONE
893 # Installation directory options.
894 # These are left unexpanded so users can "make install exec_prefix=/foo"
895 # and all the variables that are supposed to be based on exec_prefix
896 # by default will actually change.
897 # Use braces instead of parens because sh, perl, etc. also accept them.
898 # (The list follows the same order as the GNU Coding Standards.)
899 bindir='${exec_prefix}/bin'
900 sbindir='${exec_prefix}/sbin'
901 libexecdir='${exec_prefix}/libexec'
902 datarootdir='${prefix}/share'
903 datadir='${datarootdir}'
904 sysconfdir='${prefix}/etc'
905 sharedstatedir='${prefix}/com'
906 localstatedir='${prefix}/var'
907 includedir='${prefix}/include'
908 oldincludedir='/usr/include'
909 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
910 infodir='${datarootdir}/info'
911 htmldir='${docdir}'
912 dvidir='${docdir}'
913 pdfdir='${docdir}'
914 psdir='${docdir}'
915 libdir='${exec_prefix}/lib'
916 localedir='${datarootdir}/locale'
917 mandir='${datarootdir}/man'
919 ac_prev=
920 ac_dashdash=
921 for ac_option
923 # If the previous option needs an argument, assign it.
924 if test -n "$ac_prev"; then
925 eval $ac_prev=\$ac_option
926 ac_prev=
927 continue
930 case $ac_option in
931 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932 *=) ac_optarg= ;;
933 *) ac_optarg=yes ;;
934 esac
936 # Accept the important Cygnus configure options, so we can diagnose typos.
938 case $ac_dashdash$ac_option in
940 ac_dashdash=yes ;;
942 -bindir | --bindir | --bindi | --bind | --bin | --bi)
943 ac_prev=bindir ;;
944 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
945 bindir=$ac_optarg ;;
947 -build | --build | --buil | --bui | --bu)
948 ac_prev=build_alias ;;
949 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
950 build_alias=$ac_optarg ;;
952 -cache-file | --cache-file | --cache-fil | --cache-fi \
953 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
954 ac_prev=cache_file ;;
955 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
956 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
957 cache_file=$ac_optarg ;;
959 --config-cache | -C)
960 cache_file=config.cache ;;
962 -datadir | --datadir | --datadi | --datad)
963 ac_prev=datadir ;;
964 -datadir=* | --datadir=* | --datadi=* | --datad=*)
965 datadir=$ac_optarg ;;
967 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
968 | --dataroo | --dataro | --datar)
969 ac_prev=datarootdir ;;
970 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
971 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
972 datarootdir=$ac_optarg ;;
974 -disable-* | --disable-*)
975 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978 as_fn_error $? "invalid feature name: $ac_useropt"
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
983 "enable_$ac_useropt"
984 "*) ;;
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
987 esac
988 eval enable_$ac_useropt=no ;;
990 -docdir | --docdir | --docdi | --doc | --do)
991 ac_prev=docdir ;;
992 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
993 docdir=$ac_optarg ;;
995 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
996 ac_prev=dvidir ;;
997 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
998 dvidir=$ac_optarg ;;
1000 -enable-* | --enable-*)
1001 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1002 # Reject names that are not valid shell variable names.
1003 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004 as_fn_error $? "invalid feature name: $ac_useropt"
1005 ac_useropt_orig=$ac_useropt
1006 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1007 case $ac_user_opts in
1009 "enable_$ac_useropt"
1010 "*) ;;
1011 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1012 ac_unrecognized_sep=', ';;
1013 esac
1014 eval enable_$ac_useropt=\$ac_optarg ;;
1016 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1017 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1018 | --exec | --exe | --ex)
1019 ac_prev=exec_prefix ;;
1020 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1021 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1022 | --exec=* | --exe=* | --ex=*)
1023 exec_prefix=$ac_optarg ;;
1025 -gas | --gas | --ga | --g)
1026 # Obsolete; use --with-gas.
1027 with_gas=yes ;;
1029 -help | --help | --hel | --he | -h)
1030 ac_init_help=long ;;
1031 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1032 ac_init_help=recursive ;;
1033 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1034 ac_init_help=short ;;
1036 -host | --host | --hos | --ho)
1037 ac_prev=host_alias ;;
1038 -host=* | --host=* | --hos=* | --ho=*)
1039 host_alias=$ac_optarg ;;
1041 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1042 ac_prev=htmldir ;;
1043 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1044 | --ht=*)
1045 htmldir=$ac_optarg ;;
1047 -includedir | --includedir | --includedi | --included | --include \
1048 | --includ | --inclu | --incl | --inc)
1049 ac_prev=includedir ;;
1050 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1051 | --includ=* | --inclu=* | --incl=* | --inc=*)
1052 includedir=$ac_optarg ;;
1054 -infodir | --infodir | --infodi | --infod | --info | --inf)
1055 ac_prev=infodir ;;
1056 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1057 infodir=$ac_optarg ;;
1059 -libdir | --libdir | --libdi | --libd)
1060 ac_prev=libdir ;;
1061 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1062 libdir=$ac_optarg ;;
1064 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1065 | --libexe | --libex | --libe)
1066 ac_prev=libexecdir ;;
1067 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1068 | --libexe=* | --libex=* | --libe=*)
1069 libexecdir=$ac_optarg ;;
1071 -localedir | --localedir | --localedi | --localed | --locale)
1072 ac_prev=localedir ;;
1073 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1074 localedir=$ac_optarg ;;
1076 -localstatedir | --localstatedir | --localstatedi | --localstated \
1077 | --localstate | --localstat | --localsta | --localst | --locals)
1078 ac_prev=localstatedir ;;
1079 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1080 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1081 localstatedir=$ac_optarg ;;
1083 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1084 ac_prev=mandir ;;
1085 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1086 mandir=$ac_optarg ;;
1088 -nfp | --nfp | --nf)
1089 # Obsolete; use --without-fp.
1090 with_fp=no ;;
1092 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1093 | --no-cr | --no-c | -n)
1094 no_create=yes ;;
1096 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1097 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1098 no_recursion=yes ;;
1100 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1101 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1102 | --oldin | --oldi | --old | --ol | --o)
1103 ac_prev=oldincludedir ;;
1104 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1105 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1106 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1107 oldincludedir=$ac_optarg ;;
1109 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1110 ac_prev=prefix ;;
1111 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1112 prefix=$ac_optarg ;;
1114 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1115 | --program-pre | --program-pr | --program-p)
1116 ac_prev=program_prefix ;;
1117 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1118 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1119 program_prefix=$ac_optarg ;;
1121 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1122 | --program-suf | --program-su | --program-s)
1123 ac_prev=program_suffix ;;
1124 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1125 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1126 program_suffix=$ac_optarg ;;
1128 -program-transform-name | --program-transform-name \
1129 | --program-transform-nam | --program-transform-na \
1130 | --program-transform-n | --program-transform- \
1131 | --program-transform | --program-transfor \
1132 | --program-transfo | --program-transf \
1133 | --program-trans | --program-tran \
1134 | --progr-tra | --program-tr | --program-t)
1135 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1145 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1146 ac_prev=pdfdir ;;
1147 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1148 pdfdir=$ac_optarg ;;
1150 -psdir | --psdir | --psdi | --psd | --ps)
1151 ac_prev=psdir ;;
1152 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1153 psdir=$ac_optarg ;;
1155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1156 | -silent | --silent | --silen | --sile | --sil)
1157 silent=yes ;;
1159 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1160 ac_prev=sbindir ;;
1161 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1162 | --sbi=* | --sb=*)
1163 sbindir=$ac_optarg ;;
1165 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1166 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1167 | --sharedst | --shareds | --shared | --share | --shar \
1168 | --sha | --sh)
1169 ac_prev=sharedstatedir ;;
1170 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1171 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1172 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1173 | --sha=* | --sh=*)
1174 sharedstatedir=$ac_optarg ;;
1176 -site | --site | --sit)
1177 ac_prev=site ;;
1178 -site=* | --site=* | --sit=*)
1179 site=$ac_optarg ;;
1181 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1182 ac_prev=srcdir ;;
1183 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1184 srcdir=$ac_optarg ;;
1186 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1187 | --syscon | --sysco | --sysc | --sys | --sy)
1188 ac_prev=sysconfdir ;;
1189 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1190 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1191 sysconfdir=$ac_optarg ;;
1193 -target | --target | --targe | --targ | --tar | --ta | --t)
1194 ac_prev=target_alias ;;
1195 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1196 target_alias=$ac_optarg ;;
1198 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1199 verbose=yes ;;
1201 -version | --version | --versio | --versi | --vers | -V)
1202 ac_init_version=: ;;
1204 -with-* | --with-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error $? "invalid package name: $ac_useropt"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1213 "with_$ac_useropt"
1214 "*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval with_$ac_useropt=\$ac_optarg ;;
1220 -without-* | --without-*)
1221 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224 as_fn_error $? "invalid package name: $ac_useropt"
1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1229 "with_$ac_useropt"
1230 "*) ;;
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
1233 esac
1234 eval with_$ac_useropt=no ;;
1236 --x)
1237 # Obsolete; use --with-x.
1238 with_x=yes ;;
1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241 | --x-incl | --x-inc | --x-in | --x-i)
1242 ac_prev=x_includes ;;
1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245 x_includes=$ac_optarg ;;
1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249 ac_prev=x_libraries ;;
1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252 x_libraries=$ac_optarg ;;
1254 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1255 Try \`$0 --help' for more information"
1258 *=*)
1259 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1260 # Reject names that are not valid shell variable names.
1261 case $ac_envvar in #(
1262 '' | [0-9]* | *[!_$as_cr_alnum]* )
1263 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1264 esac
1265 eval $ac_envvar=\$ac_optarg
1266 export $ac_envvar ;;
1269 # FIXME: should be removed in autoconf 3.0.
1270 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1276 esac
1277 done
1279 if test -n "$ac_prev"; then
1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281 as_fn_error $? "missing argument to $ac_option"
1284 if test -n "$ac_unrecognized_opts"; then
1285 case $enable_option_checking in
1286 no) ;;
1287 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1288 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1289 esac
1292 # Check all directory arguments for consistency.
1293 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294 datadir sysconfdir sharedstatedir localstatedir includedir \
1295 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296 libdir localedir mandir
1298 eval ac_val=\$$ac_var
1299 # Remove trailing slashes.
1300 case $ac_val in
1301 */ )
1302 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1303 eval $ac_var=\$ac_val;;
1304 esac
1305 # Be sure to have absolute directory names.
1306 case $ac_val in
1307 [\\/$]* | ?:[\\/]* ) continue;;
1308 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309 esac
1310 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1311 done
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1316 build=$build_alias
1317 host=$host_alias
1318 target=$target_alias
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x; then
1322 if test "x$build_alias" = x; then
1323 cross_compiling=maybe
1324 elif test "x$build_alias" != "x$host_alias"; then
1325 cross_compiling=yes
1329 ac_tool_prefix=
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332 test "$silent" = yes && exec 6>/dev/null
1335 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di=`ls -di .` &&
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338 as_fn_error $? "working directory cannot be determined"
1339 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1340 as_fn_error $? "pwd does not report name of working directory"
1343 # Find the source files, if location was not specified.
1344 if test -z "$srcdir"; then
1345 ac_srcdir_defaulted=yes
1346 # Try the directory containing this script, then the parent directory.
1347 ac_confdir=`$as_dirname -- "$as_myself" ||
1348 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349 X"$as_myself" : 'X\(//\)[^/]' \| \
1350 X"$as_myself" : 'X\(//\)$' \| \
1351 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1352 $as_echo X"$as_myself" |
1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354 s//\1/
1357 /^X\(\/\/\)[^/].*/{
1358 s//\1/
1361 /^X\(\/\/\)$/{
1362 s//\1/
1365 /^X\(\/\).*/{
1366 s//\1/
1369 s/.*/./; q'`
1370 srcdir=$ac_confdir
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 srcdir=..
1374 else
1375 ac_srcdir_defaulted=no
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1381 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1382 ac_abs_confdir=`(
1383 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1384 pwd)`
1385 # When building in place, set srcdir=.
1386 if test "$ac_abs_confdir" = "$ac_pwd"; then
1387 srcdir=.
1389 # Remove unnecessary trailing slashes from srcdir.
1390 # Double slashes in file names in object file debugging info
1391 # mess up M-x gdb in Emacs.
1392 case $srcdir in
1393 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1394 esac
1395 for ac_var in $ac_precious_vars; do
1396 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_env_${ac_var}_value=\$${ac_var}
1398 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1400 done
1403 # Report the --help message.
1405 if test "$ac_init_help" = "long"; then
1406 # Omit some internal or obsolete options to make the list less imposing.
1407 # This message is too long to be a string in the A/UX 3.1 sh.
1408 cat <<_ACEOF
1409 \`configure' configures GNU MP 6.0.0 to adapt to many kinds of systems.
1411 Usage: $0 [OPTION]... [VAR=VALUE]...
1413 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414 VAR=VALUE. See below for descriptions of some of the useful variables.
1416 Defaults for the options are specified in brackets.
1418 Configuration:
1419 -h, --help display this help and exit
1420 --help=short display options specific to this package
1421 --help=recursive display the short help of all the included packages
1422 -V, --version display version information and exit
1423 -q, --quiet, --silent do not print \`checking ...' messages
1424 --cache-file=FILE cache test results in FILE [disabled]
1425 -C, --config-cache alias for \`--cache-file=config.cache'
1426 -n, --no-create do not create output files
1427 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1429 Installation directories:
1430 --prefix=PREFIX install architecture-independent files in PREFIX
1431 [$ac_default_prefix]
1432 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1433 [PREFIX]
1435 By default, \`make install' will install all the files in
1436 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1437 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438 for instance \`--prefix=\$HOME'.
1440 For better control, use the options below.
1442 Fine tuning of the installation directories:
1443 --bindir=DIR user executables [EPREFIX/bin]
1444 --sbindir=DIR system admin executables [EPREFIX/sbin]
1445 --libexecdir=DIR program executables [EPREFIX/libexec]
1446 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1447 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1448 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1449 --libdir=DIR object code libraries [EPREFIX/lib]
1450 --includedir=DIR C header files [PREFIX/include]
1451 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1452 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1453 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1454 --infodir=DIR info documentation [DATAROOTDIR/info]
1455 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1456 --mandir=DIR man documentation [DATAROOTDIR/man]
1457 --docdir=DIR documentation root [DATAROOTDIR/doc/gmp]
1458 --htmldir=DIR html documentation [DOCDIR]
1459 --dvidir=DIR dvi documentation [DOCDIR]
1460 --pdfdir=DIR pdf documentation [DOCDIR]
1461 --psdir=DIR ps documentation [DOCDIR]
1462 _ACEOF
1464 cat <<\_ACEOF
1466 Program names:
1467 --program-prefix=PREFIX prepend PREFIX to installed program names
1468 --program-suffix=SUFFIX append SUFFIX to installed program names
1469 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1471 System types:
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1474 _ACEOF
1477 if test -n "$ac_init_help"; then
1478 case $ac_init_help in
1479 short | recursive ) echo "Configuration of GNU MP 6.0.0:";;
1480 esac
1481 cat <<\_ACEOF
1483 Optional Features:
1484 --disable-option-checking ignore unrecognized --enable/--with options
1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1487 --enable-maintainer-mode enable make rules and dependencies not useful
1488 (and sometimes confusing) to the casual installer
1489 --enable-assert enable ASSERT checking [[default=no]]
1490 --enable-alloca how to get temp memory [[default=reentrant]]
1491 --enable-cxx enable C++ support [[default=no]]
1492 --enable-assembly enable the use of assembly loops [[default=yes]]
1493 --enable-fft enable FFTs for multiplication [[default=yes]]
1494 --enable-old-fft-full enable old mpn_mul_fft_full for multiplication
1495 [[default=no]]
1496 --enable-nails use nails on limbs [[default=no]]
1497 --enable-profiling build with profiler support [[default=no]]
1498 --enable-fat build a fat binary on systems that support it
1499 [[default=no]]
1500 --enable-minithres choose minimal thresholds for testing [[default=no]]
1501 --enable-fake-cpuid enable GMP_CPU_TYPE faking cpuid [[default=no]]
1502 --enable-shared[=PKGS] build shared libraries [default=yes]
1503 --enable-static[=PKGS] build static libraries [default=yes]
1504 --enable-fast-install[=PKGS]
1505 optimize for fast installation [default=yes]
1506 --disable-libtool-lock avoid locking (might break parallel builds)
1508 Optional Packages:
1509 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1510 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1511 --with-readline readline support in calc demo program
1512 [[default=detect]]
1513 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1514 both]
1515 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1516 --with-sysroot=DIR Search for dependent libraries within DIR
1517 (or the compiler's sysroot if not specified).
1519 Some influential environment variables:
1520 ABI desired ABI (for processors supporting more than one ABI)
1521 CC C compiler command
1522 CFLAGS C compiler flags
1523 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1524 nonstandard directory <lib dir>
1525 LIBS libraries to pass to the linker, e.g. -l<library>
1526 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1527 you have headers in a nonstandard directory <include dir>
1528 CPP C preprocessor
1529 CC_FOR_BUILD
1530 build system C compiler
1531 CPP_FOR_BUILD
1532 build system C preprocessor
1533 CXX C++ compiler command
1534 CXXFLAGS C++ compiler flags
1535 CXXCPP C++ preprocessor
1536 M4 m4 macro processor
1537 YACC The `Yet Another Compiler Compiler' implementation to use.
1538 Defaults to the first program found out of: `bison -y', `byacc',
1539 `yacc'.
1540 YFLAGS The list of arguments that will be passed by default to $YACC.
1541 This script will default YFLAGS to the empty string to avoid a
1542 default value of `-d' given by some make applications.
1544 Use these variables to override the choices made by `configure' or to help
1545 it to find libraries and programs with nonstandard names/locations.
1547 Report bugs to <gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html>.
1548 GNU MP home page: <http://www.gnu.org/software/gmp/>.
1549 General help using GNU software: <http://www.gnu.org/gethelp/>.
1550 _ACEOF
1551 ac_status=$?
1554 if test "$ac_init_help" = "recursive"; then
1555 # If there are subdirs, report their specific --help.
1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557 test -d "$ac_dir" ||
1558 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1559 continue
1560 ac_builddir=.
1562 case "$ac_dir" in
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566 # A ".." for each directory in $ac_dir_suffix.
1567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568 case $ac_top_builddir_sub in
1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571 esac ;;
1572 esac
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1578 case $srcdir in
1579 .) # We are building in place.
1580 ac_srcdir=.
1581 ac_top_srcdir=$ac_top_builddir_sub
1582 ac_abs_top_srcdir=$ac_pwd ;;
1583 [\\/]* | ?:[\\/]* ) # Absolute name.
1584 ac_srcdir=$srcdir$ac_dir_suffix;
1585 ac_top_srcdir=$srcdir
1586 ac_abs_top_srcdir=$srcdir ;;
1587 *) # Relative name.
1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589 ac_top_srcdir=$ac_top_build_prefix$srcdir
1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1591 esac
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594 cd "$ac_dir" || { ac_status=$?; continue; }
1595 # Check for guested configure.
1596 if test -f "$ac_srcdir/configure.gnu"; then
1597 echo &&
1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599 elif test -f "$ac_srcdir/configure"; then
1600 echo &&
1601 $SHELL "$ac_srcdir/configure" --help=recursive
1602 else
1603 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604 fi || ac_status=$?
1605 cd "$ac_pwd" || { ac_status=$?; break; }
1606 done
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1611 cat <<\_ACEOF
1612 GNU MP configure 6.0.0
1613 generated by GNU Autoconf 2.69
1615 Copyright (C) 2012 Free Software Foundation, Inc.
1616 This configure script is free software; the Free Software Foundation
1617 gives unlimited permission to copy, distribute and modify it.
1621 Copyright 1996-2014 Free Software Foundation, Inc.
1623 This file is part of the GNU MP Library.
1625 The GNU MP Library is free software; you can redistribute it and/or modify
1626 it under the terms of either:
1628 * the GNU Lesser General Public License as published by the Free
1629 Software Foundation; either version 3 of the License, or (at your
1630 option) any later version.
1634 * the GNU General Public License as published by the Free Software
1635 Foundation; either version 2 of the License, or (at your option) any
1636 later version.
1638 or both in parallel, as here.
1640 The GNU MP Library is distributed in the hope that it will be useful, but
1641 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1642 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1643 for more details.
1645 You should have received copies of the GNU General Public License and the
1646 GNU Lesser General Public License along with the GNU MP Library. If not,
1647 see https://www.gnu.org/licenses/.
1649 _ACEOF
1650 exit
1653 ## ------------------------ ##
1654 ## Autoconf initialization. ##
1655 ## ------------------------ ##
1657 # ac_fn_c_try_compile LINENO
1658 # --------------------------
1659 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_compile ()
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext
1664 if { { ac_try="$ac_compile"
1665 case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_compile") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest.$ac_objext; then :
1683 ac_retval=0
1684 else
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1688 ac_retval=1
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1693 } # ac_fn_c_try_compile
1695 # ac_fn_c_try_cpp LINENO
1696 # ----------------------
1697 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1698 ac_fn_c_try_cpp ()
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_cpp conftest.$ac_ext"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } > conftest.i && {
1717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 }; then :
1720 ac_retval=0
1721 else
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1725 ac_retval=1
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 as_fn_set_status $ac_retval
1730 } # ac_fn_c_try_cpp
1732 # ac_fn_cxx_try_compile LINENO
1733 # ----------------------------
1734 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1735 ac_fn_cxx_try_compile ()
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 rm -f conftest.$ac_objext
1739 if { { ac_try="$ac_compile"
1740 case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_compile") 2>conftest.err
1747 ac_status=$?
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && {
1755 test -z "$ac_cxx_werror_flag" ||
1756 test ! -s conftest.err
1757 } && test -s conftest.$ac_objext; then :
1758 ac_retval=0
1759 else
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1763 ac_retval=1
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
1768 } # ac_fn_cxx_try_compile
1770 # ac_fn_cxx_try_cpp LINENO
1771 # ------------------------
1772 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1773 ac_fn_cxx_try_cpp ()
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 if { { ac_try="$ac_cpp conftest.$ac_ext"
1777 case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780 esac
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1784 ac_status=$?
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } > conftest.i && {
1792 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1793 test ! -s conftest.err
1794 }; then :
1795 ac_retval=0
1796 else
1797 $as_echo "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.$ac_ext >&5
1800 ac_retval=1
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status $ac_retval
1805 } # ac_fn_cxx_try_cpp
1807 # ac_fn_c_try_link LINENO
1808 # -----------------------
1809 # Try to link conftest.$ac_ext, and return whether this succeeded.
1810 ac_fn_c_try_link ()
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 rm -f conftest.$ac_objext conftest$ac_exeext
1814 if { { ac_try="$ac_link"
1815 case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818 esac
1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 $as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_link") 2>conftest.err
1822 ac_status=$?
1823 if test -s conftest.err; then
1824 grep -v '^ *+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && {
1830 test -z "$ac_c_werror_flag" ||
1831 test ! -s conftest.err
1832 } && test -s conftest$ac_exeext && {
1833 test "$cross_compiling" = yes ||
1834 test -x conftest$ac_exeext
1835 }; then :
1836 ac_retval=0
1837 else
1838 $as_echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1841 ac_retval=1
1843 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1844 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1845 # interfere with the next link command; also delete a directory that is
1846 # left behind by Apple's compiler. We do this before executing the actions.
1847 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 as_fn_set_status $ac_retval
1851 } # ac_fn_c_try_link
1853 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1854 # -------------------------------------------------------
1855 # Tests whether HEADER exists and can be compiled using the include files in
1856 # INCLUDES, setting the cache variable VAR accordingly.
1857 ac_fn_c_check_header_compile ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval \${$3+:} false; then :
1863 $as_echo_n "(cached) " >&6
1864 else
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1868 #include <$2>
1869 _ACEOF
1870 if ac_fn_c_try_compile "$LINENO"; then :
1871 eval "$3=yes"
1872 else
1873 eval "$3=no"
1875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877 eval ac_res=\$$3
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 } # ac_fn_c_check_header_compile
1884 # ac_fn_c_try_run LINENO
1885 # ----------------------
1886 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1887 # that executables *can* be run.
1888 ac_fn_c_try_run ()
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 if { { ac_try="$ac_link"
1892 case "(($ac_try" in
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1895 esac
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>&5
1899 ac_status=$?
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1902 { { case "(($ac_try" in
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1905 esac
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_try") 2>&5
1909 ac_status=$?
1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 test $ac_status = 0; }; }; then :
1912 ac_retval=0
1913 else
1914 $as_echo "$as_me: program exited with status $ac_status" >&5
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1918 ac_retval=$ac_status
1920 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 as_fn_set_status $ac_retval
1924 } # ac_fn_c_try_run
1926 # ac_fn_c_check_func LINENO FUNC VAR
1927 # ----------------------------------
1928 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1929 ac_fn_c_check_func ()
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933 $as_echo_n "checking for $2... " >&6; }
1934 if eval \${$3+:} false; then :
1935 $as_echo_n "(cached) " >&6
1936 else
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1939 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1941 #define $2 innocuous_$2
1943 /* System header to define __stub macros and hopefully few prototypes,
1944 which can conflict with char $2 (); below.
1945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1946 <limits.h> exists even on freestanding compilers. */
1948 #ifdef __STDC__
1949 # include <limits.h>
1950 #else
1951 # include <assert.h>
1952 #endif
1954 #undef $2
1956 /* Override any GCC internal prototype to avoid an error.
1957 Use char because int might match the return type of a GCC
1958 builtin and then its argument prototype would still apply. */
1959 #ifdef __cplusplus
1960 extern "C"
1961 #endif
1962 char $2 ();
1963 /* The GNU C library defines this for functions which it implements
1964 to always fail with ENOSYS. Some functions are actually named
1965 something starting with __ and the normal name is an alias. */
1966 #if defined __stub_$2 || defined __stub___$2
1967 choke me
1968 #endif
1971 main ()
1973 return $2 ();
1975 return 0;
1977 _ACEOF
1978 if ac_fn_c_try_link "$LINENO"; then :
1979 eval "$3=yes"
1980 else
1981 eval "$3=no"
1983 rm -f core conftest.err conftest.$ac_objext \
1984 conftest$ac_exeext conftest.$ac_ext
1986 eval ac_res=\$$3
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 $as_echo "$ac_res" >&6; }
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991 } # ac_fn_c_check_func
1993 # ac_fn_cxx_try_link LINENO
1994 # -------------------------
1995 # Try to link conftest.$ac_ext, and return whether this succeeded.
1996 ac_fn_cxx_try_link ()
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 rm -f conftest.$ac_objext conftest$ac_exeext
2000 if { { ac_try="$ac_link"
2001 case "(($ac_try" in
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2004 esac
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 $as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_link") 2>conftest.err
2008 ac_status=$?
2009 if test -s conftest.err; then
2010 grep -v '^ *+' conftest.err >conftest.er1
2011 cat conftest.er1 >&5
2012 mv -f conftest.er1 conftest.err
2014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015 test $ac_status = 0; } && {
2016 test -z "$ac_cxx_werror_flag" ||
2017 test ! -s conftest.err
2018 } && test -s conftest$ac_exeext && {
2019 test "$cross_compiling" = yes ||
2020 test -x conftest$ac_exeext
2021 }; then :
2022 ac_retval=0
2023 else
2024 $as_echo "$as_me: failed program was:" >&5
2025 sed 's/^/| /' conftest.$ac_ext >&5
2027 ac_retval=1
2029 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2030 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2031 # interfere with the next link command; also delete a directory that is
2032 # left behind by Apple's compiler. We do this before executing the actions.
2033 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035 as_fn_set_status $ac_retval
2037 } # ac_fn_cxx_try_link
2039 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2040 # -------------------------------------------------------
2041 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2042 # the include files in INCLUDES and setting the cache variable VAR
2043 # accordingly.
2044 ac_fn_c_check_header_mongrel ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 if eval \${$3+:} false; then :
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if eval \${$3+:} false; then :
2051 $as_echo_n "(cached) " >&6
2053 eval ac_res=\$$3
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 else
2057 # Is the header compilable?
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2059 $as_echo_n "checking $2 usability... " >&6; }
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2063 #include <$2>
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"; then :
2066 ac_header_compiler=yes
2067 else
2068 ac_header_compiler=no
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2072 $as_echo "$ac_header_compiler" >&6; }
2074 # Is the header present?
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2076 $as_echo_n "checking $2 presence... " >&6; }
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2079 #include <$2>
2080 _ACEOF
2081 if ac_fn_c_try_cpp "$LINENO"; then :
2082 ac_header_preproc=yes
2083 else
2084 ac_header_preproc=no
2086 rm -f conftest.err conftest.i conftest.$ac_ext
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2088 $as_echo "$ac_header_preproc" >&6; }
2090 # So? What about this header?
2091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2092 yes:no: )
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2094 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2096 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2098 no:yes:* )
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2100 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2102 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2104 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2106 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2108 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2109 ( $as_echo "## ssssssssssssssssssssssssssssssssss ##
2110 ## Report this to gmp-bugs@gmplib.org ##
2111 ## ssssssssssssssssssssssssssssssssss ##"
2112 ) | sed "s/^/$as_me: WARNING: /" >&2
2114 esac
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116 $as_echo_n "checking for $2... " >&6; }
2117 if eval \${$3+:} false; then :
2118 $as_echo_n "(cached) " >&6
2119 else
2120 eval "$3=\$ac_header_compiler"
2122 eval ac_res=\$$3
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124 $as_echo "$ac_res" >&6; }
2126 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128 } # ac_fn_c_check_header_mongrel
2130 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2131 # ---------------------------------------------
2132 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2133 # accordingly.
2134 ac_fn_c_check_decl ()
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 as_decl_name=`echo $2|sed 's/ *(.*//'`
2138 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2140 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2141 if eval \${$3+:} false; then :
2142 $as_echo_n "(cached) " >&6
2143 else
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2148 main ()
2150 #ifndef $as_decl_name
2151 #ifdef __cplusplus
2152 (void) $as_decl_use;
2153 #else
2154 (void) $as_decl_name;
2155 #endif
2156 #endif
2159 return 0;
2161 _ACEOF
2162 if ac_fn_c_try_compile "$LINENO"; then :
2163 eval "$3=yes"
2164 else
2165 eval "$3=no"
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 eval ac_res=\$$3
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171 $as_echo "$ac_res" >&6; }
2172 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2174 } # ac_fn_c_check_decl
2176 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2177 # -------------------------------------------
2178 # Tests whether TYPE exists after having included INCLUDES, setting cache
2179 # variable VAR accordingly.
2180 ac_fn_c_check_type ()
2182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2184 $as_echo_n "checking for $2... " >&6; }
2185 if eval \${$3+:} false; then :
2186 $as_echo_n "(cached) " >&6
2187 else
2188 eval "$3=no"
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2193 main ()
2195 if (sizeof ($2))
2196 return 0;
2198 return 0;
2200 _ACEOF
2201 if ac_fn_c_try_compile "$LINENO"; then :
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2206 main ()
2208 if (sizeof (($2)))
2209 return 0;
2211 return 0;
2213 _ACEOF
2214 if ac_fn_c_try_compile "$LINENO"; then :
2216 else
2217 eval "$3=yes"
2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 eval ac_res=\$$3
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225 $as_echo "$ac_res" >&6; }
2226 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228 } # ac_fn_c_check_type
2230 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2231 # ----------------------------------------------------
2232 # Tries to find if the field MEMBER exists in type AGGR, after including
2233 # INCLUDES, setting cache variable VAR accordingly.
2234 ac_fn_c_check_member ()
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2238 $as_echo_n "checking for $2.$3... " >&6; }
2239 if eval \${$4+:} false; then :
2240 $as_echo_n "(cached) " >&6
2241 else
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2246 main ()
2248 static $2 ac_aggr;
2249 if (ac_aggr.$3)
2250 return 0;
2252 return 0;
2254 _ACEOF
2255 if ac_fn_c_try_compile "$LINENO"; then :
2256 eval "$4=yes"
2257 else
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2262 main ()
2264 static $2 ac_aggr;
2265 if (sizeof ac_aggr.$3)
2266 return 0;
2268 return 0;
2270 _ACEOF
2271 if ac_fn_c_try_compile "$LINENO"; then :
2272 eval "$4=yes"
2273 else
2274 eval "$4=no"
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 eval ac_res=\$$4
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2282 $as_echo "$ac_res" >&6; }
2283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2285 } # ac_fn_c_check_member
2287 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2288 # ---------------------------------------------------------
2289 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2290 # the include files in INCLUDES and setting the cache variable VAR
2291 # accordingly.
2292 ac_fn_cxx_check_header_mongrel ()
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 if eval \${$3+:} false; then :
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2297 $as_echo_n "checking for $2... " >&6; }
2298 if eval \${$3+:} false; then :
2299 $as_echo_n "(cached) " >&6
2301 eval ac_res=\$$3
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303 $as_echo "$ac_res" >&6; }
2304 else
2305 # Is the header compilable?
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2307 $as_echo_n "checking $2 usability... " >&6; }
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2311 #include <$2>
2312 _ACEOF
2313 if ac_fn_cxx_try_compile "$LINENO"; then :
2314 ac_header_compiler=yes
2315 else
2316 ac_header_compiler=no
2318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2320 $as_echo "$ac_header_compiler" >&6; }
2322 # Is the header present?
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2324 $as_echo_n "checking $2 presence... " >&6; }
2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h. */
2327 #include <$2>
2328 _ACEOF
2329 if ac_fn_cxx_try_cpp "$LINENO"; then :
2330 ac_header_preproc=yes
2331 else
2332 ac_header_preproc=no
2334 rm -f conftest.err conftest.i conftest.$ac_ext
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2336 $as_echo "$ac_header_preproc" >&6; }
2338 # So? What about this header?
2339 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2340 yes:no: )
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2342 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2344 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2346 no:yes:* )
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2348 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2350 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2352 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2354 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2356 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2357 ( $as_echo "## ssssssssssssssssssssssssssssssssss ##
2358 ## Report this to gmp-bugs@gmplib.org ##
2359 ## ssssssssssssssssssssssssssssssssss ##"
2360 ) | sed "s/^/$as_me: WARNING: /" >&2
2362 esac
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2364 $as_echo_n "checking for $2... " >&6; }
2365 if eval \${$3+:} false; then :
2366 $as_echo_n "(cached) " >&6
2367 else
2368 eval "$3=\$ac_header_compiler"
2370 eval ac_res=\$$3
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2372 $as_echo "$ac_res" >&6; }
2374 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2376 } # ac_fn_cxx_check_header_mongrel
2378 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2379 # ---------------------------------------------
2380 # Tests whether TYPE exists after having included INCLUDES, setting cache
2381 # variable VAR accordingly.
2382 ac_fn_cxx_check_type ()
2384 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2386 $as_echo_n "checking for $2... " >&6; }
2387 if eval \${$3+:} false; then :
2388 $as_echo_n "(cached) " >&6
2389 else
2390 eval "$3=no"
2391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h. */
2395 main ()
2397 if (sizeof ($2))
2398 return 0;
2400 return 0;
2402 _ACEOF
2403 if ac_fn_cxx_try_compile "$LINENO"; then :
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h. */
2408 main ()
2410 if (sizeof (($2)))
2411 return 0;
2413 return 0;
2415 _ACEOF
2416 if ac_fn_cxx_try_compile "$LINENO"; then :
2418 else
2419 eval "$3=yes"
2421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 eval ac_res=\$$3
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2427 $as_echo "$ac_res" >&6; }
2428 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2430 } # ac_fn_cxx_check_type
2432 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2433 # --------------------------------------------
2434 # Tries to find the compile-time value of EXPR in a program that includes
2435 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2436 # computed
2437 ac_fn_c_compute_int ()
2439 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2440 if test "$cross_compiling" = yes; then
2441 # Depending upon the size, compute the lo and hi bounds.
2442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2443 /* end confdefs.h. */
2446 main ()
2448 static int test_array [1 - 2 * !(($2) >= 0)];
2449 test_array [0] = 0;
2450 return test_array [0];
2453 return 0;
2455 _ACEOF
2456 if ac_fn_c_try_compile "$LINENO"; then :
2457 ac_lo=0 ac_mid=0
2458 while :; do
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h. */
2463 main ()
2465 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2466 test_array [0] = 0;
2467 return test_array [0];
2470 return 0;
2472 _ACEOF
2473 if ac_fn_c_try_compile "$LINENO"; then :
2474 ac_hi=$ac_mid; break
2475 else
2476 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2477 if test $ac_lo -le $ac_mid; then
2478 ac_lo= ac_hi=
2479 break
2481 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2484 done
2485 else
2486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h. */
2490 main ()
2492 static int test_array [1 - 2 * !(($2) < 0)];
2493 test_array [0] = 0;
2494 return test_array [0];
2497 return 0;
2499 _ACEOF
2500 if ac_fn_c_try_compile "$LINENO"; then :
2501 ac_hi=-1 ac_mid=-1
2502 while :; do
2503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504 /* end confdefs.h. */
2507 main ()
2509 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2510 test_array [0] = 0;
2511 return test_array [0];
2514 return 0;
2516 _ACEOF
2517 if ac_fn_c_try_compile "$LINENO"; then :
2518 ac_lo=$ac_mid; break
2519 else
2520 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2521 if test $ac_mid -le $ac_hi; then
2522 ac_lo= ac_hi=
2523 break
2525 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2528 done
2529 else
2530 ac_lo= ac_hi=
2532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2535 # Binary search between lo and hi bounds.
2536 while test "x$ac_lo" != "x$ac_hi"; do
2537 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2542 main ()
2544 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2545 test_array [0] = 0;
2546 return test_array [0];
2549 return 0;
2551 _ACEOF
2552 if ac_fn_c_try_compile "$LINENO"; then :
2553 ac_hi=$ac_mid
2554 else
2555 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2558 done
2559 case $ac_lo in #((
2560 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2561 '') ac_retval=1 ;;
2562 esac
2563 else
2564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2565 /* end confdefs.h. */
2567 static long int longval () { return $2; }
2568 static unsigned long int ulongval () { return $2; }
2569 #include <stdio.h>
2570 #include <stdlib.h>
2572 main ()
2575 FILE *f = fopen ("conftest.val", "w");
2576 if (! f)
2577 return 1;
2578 if (($2) < 0)
2580 long int i = longval ();
2581 if (i != ($2))
2582 return 1;
2583 fprintf (f, "%ld", i);
2585 else
2587 unsigned long int i = ulongval ();
2588 if (i != ($2))
2589 return 1;
2590 fprintf (f, "%lu", i);
2592 /* Do not output a trailing newline, as this causes \r\n confusion
2593 on some platforms. */
2594 return ferror (f) || fclose (f) != 0;
2597 return 0;
2599 _ACEOF
2600 if ac_fn_c_try_run "$LINENO"; then :
2601 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2602 else
2603 ac_retval=1
2605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2606 conftest.$ac_objext conftest.beam conftest.$ac_ext
2607 rm -f conftest.val
2610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2611 as_fn_set_status $ac_retval
2613 } # ac_fn_c_compute_int
2614 cat >config.log <<_ACEOF
2615 This file contains any messages produced by compilers while
2616 running configure, to aid debugging if configure makes a mistake.
2618 It was created by GNU MP $as_me 6.0.0, which was
2619 generated by GNU Autoconf 2.69. Invocation command line was
2621 $ $0 $@
2623 _ACEOF
2624 exec 5>>config.log
2626 cat <<_ASUNAME
2627 ## --------- ##
2628 ## Platform. ##
2629 ## --------- ##
2631 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2632 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2633 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2634 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2635 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2637 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2638 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2640 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2641 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2642 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2643 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2644 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2645 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2646 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2648 _ASUNAME
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
2655 $as_echo "PATH: $as_dir"
2656 done
2657 IFS=$as_save_IFS
2659 } >&5
2661 cat >&5 <<_ACEOF
2664 ## ----------- ##
2665 ## Core tests. ##
2666 ## ----------- ##
2668 _ACEOF
2671 # Keep a trace of the command line.
2672 # Strip out --no-create and --no-recursion so they do not pile up.
2673 # Strip out --silent because we don't want to record it for future runs.
2674 # Also quote any args containing shell meta-characters.
2675 # Make two passes to allow for proper duplicate-argument suppression.
2676 ac_configure_args=
2677 ac_configure_args0=
2678 ac_configure_args1=
2679 ac_must_keep_next=false
2680 for ac_pass in 1 2
2682 for ac_arg
2684 case $ac_arg in
2685 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2687 | -silent | --silent | --silen | --sile | --sil)
2688 continue ;;
2689 *\'*)
2690 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2691 esac
2692 case $ac_pass in
2693 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2695 as_fn_append ac_configure_args1 " '$ac_arg'"
2696 if test $ac_must_keep_next = true; then
2697 ac_must_keep_next=false # Got value, back to normal.
2698 else
2699 case $ac_arg in
2700 *=* | --config-cache | -C | -disable-* | --disable-* \
2701 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2702 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2703 | -with-* | --with-* | -without-* | --without-* | --x)
2704 case "$ac_configure_args0 " in
2705 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2706 esac
2708 -* ) ac_must_keep_next=true ;;
2709 esac
2711 as_fn_append ac_configure_args " '$ac_arg'"
2713 esac
2714 done
2715 done
2716 { ac_configure_args0=; unset ac_configure_args0;}
2717 { ac_configure_args1=; unset ac_configure_args1;}
2719 # When interrupted or exit'd, cleanup temporary files, and complete
2720 # config.log. We remove comments because anyway the quotes in there
2721 # would cause problems or look ugly.
2722 # WARNING: Use '\'' to represent an apostrophe within the trap.
2723 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2724 trap 'exit_status=$?
2725 # Save into config.log some information that might help in debugging.
2727 echo
2729 $as_echo "## ---------------- ##
2730 ## Cache variables. ##
2731 ## ---------------- ##"
2732 echo
2733 # The following way of writing the cache mishandles newlines in values,
2735 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2736 eval ac_val=\$$ac_var
2737 case $ac_val in #(
2738 *${as_nl}*)
2739 case $ac_var in #(
2740 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2741 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2742 esac
2743 case $ac_var in #(
2744 _ | IFS | as_nl) ;; #(
2745 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2746 *) { eval $ac_var=; unset $ac_var;} ;;
2747 esac ;;
2748 esac
2749 done
2750 (set) 2>&1 |
2751 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2752 *${as_nl}ac_space=\ *)
2753 sed -n \
2754 "s/'\''/'\''\\\\'\'''\''/g;
2755 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2756 ;; #(
2758 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2760 esac |
2761 sort
2763 echo
2765 $as_echo "## ----------------- ##
2766 ## Output variables. ##
2767 ## ----------------- ##"
2768 echo
2769 for ac_var in $ac_subst_vars
2771 eval ac_val=\$$ac_var
2772 case $ac_val in
2773 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2774 esac
2775 $as_echo "$ac_var='\''$ac_val'\''"
2776 done | sort
2777 echo
2779 if test -n "$ac_subst_files"; then
2780 $as_echo "## ------------------- ##
2781 ## File substitutions. ##
2782 ## ------------------- ##"
2783 echo
2784 for ac_var in $ac_subst_files
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
2795 if test -s confdefs.h; then
2796 $as_echo "## ----------- ##
2797 ## confdefs.h. ##
2798 ## ----------- ##"
2799 echo
2800 cat confdefs.h
2801 echo
2803 test "$ac_signal" != 0 &&
2804 $as_echo "$as_me: caught signal $ac_signal"
2805 $as_echo "$as_me: exit $exit_status"
2806 } >&5
2807 rm -f core *.core core.conftest.* &&
2808 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2809 exit $exit_status
2811 for ac_signal in 1 2 13 15; do
2812 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2813 done
2814 ac_signal=0
2816 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2817 rm -f -r conftest* confdefs.h
2819 $as_echo "/* confdefs.h */" > confdefs.h
2821 # Predefined preprocessor variables.
2823 cat >>confdefs.h <<_ACEOF
2824 #define PACKAGE_NAME "$PACKAGE_NAME"
2825 _ACEOF
2827 cat >>confdefs.h <<_ACEOF
2828 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2829 _ACEOF
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2833 _ACEOF
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_STRING "$PACKAGE_STRING"
2837 _ACEOF
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2841 _ACEOF
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_URL "$PACKAGE_URL"
2845 _ACEOF
2848 # Let the site file select an alternate cache file if it wants to.
2849 # Prefer an explicitly selected file to automatically selected ones.
2850 ac_site_file1=NONE
2851 ac_site_file2=NONE
2852 if test -n "$CONFIG_SITE"; then
2853 # We do not want a PATH search for config.site.
2854 case $CONFIG_SITE in #((
2855 -*) ac_site_file1=./$CONFIG_SITE;;
2856 */*) ac_site_file1=$CONFIG_SITE;;
2857 *) ac_site_file1=./$CONFIG_SITE;;
2858 esac
2859 elif test "x$prefix" != xNONE; then
2860 ac_site_file1=$prefix/share/config.site
2861 ac_site_file2=$prefix/etc/config.site
2862 else
2863 ac_site_file1=$ac_default_prefix/share/config.site
2864 ac_site_file2=$ac_default_prefix/etc/config.site
2866 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2868 test "x$ac_site_file" = xNONE && continue
2869 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2871 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2872 sed 's/^/| /' "$ac_site_file" >&5
2873 . "$ac_site_file" \
2874 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2876 as_fn_error $? "failed to load site script $ac_site_file
2877 See \`config.log' for more details" "$LINENO" 5; }
2879 done
2881 if test -r "$cache_file"; then
2882 # Some versions of bash will fail to source /dev/null (special files
2883 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2884 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2886 $as_echo "$as_me: loading cache $cache_file" >&6;}
2887 case $cache_file in
2888 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2889 *) . "./$cache_file";;
2890 esac
2892 else
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2894 $as_echo "$as_me: creating cache $cache_file" >&6;}
2895 >$cache_file
2898 # Check that the precious variables saved in the cache have kept the same
2899 # value.
2900 ac_cache_corrupted=false
2901 for ac_var in $ac_precious_vars; do
2902 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2903 eval ac_new_set=\$ac_env_${ac_var}_set
2904 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2905 eval ac_new_val=\$ac_env_${ac_var}_value
2906 case $ac_old_set,$ac_new_set in
2907 set,)
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2909 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2910 ac_cache_corrupted=: ;;
2911 ,set)
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2913 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2914 ac_cache_corrupted=: ;;
2915 ,);;
2917 if test "x$ac_old_val" != "x$ac_new_val"; then
2918 # differences in whitespace do not lead to failure.
2919 ac_old_val_w=`echo x $ac_old_val`
2920 ac_new_val_w=`echo x $ac_new_val`
2921 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2923 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2924 ac_cache_corrupted=:
2925 else
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2927 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2928 eval $ac_var=\$ac_old_val
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2931 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2933 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2934 fi;;
2935 esac
2936 # Pass precious variables to config.status.
2937 if test "$ac_new_set" = set; then
2938 case $ac_new_val in
2939 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2940 *) ac_arg=$ac_var=$ac_new_val ;;
2941 esac
2942 case " $ac_configure_args " in
2943 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2944 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2945 esac
2947 done
2948 if $ac_cache_corrupted; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2952 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2953 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2955 ## -------------------- ##
2956 ## Main body of script. ##
2957 ## -------------------- ##
2959 ac_ext=c
2960 ac_cpp='$CPP $CPPFLAGS'
2961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2976 # If --target is not used then $target_alias is empty, but if say
2977 # "./configure athlon-pc-freebsd3.5" is used, then all three of
2978 # $build_alias, $host_alias and $target_alias are set to
2979 # "athlon-pc-freebsd3.5".
2981 if test -n "$target_alias" && test "$target_alias" != "$host_alias"; then
2982 as_fn_error $? "--target is not appropriate for GMP
2983 Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
2984 explicitly. Use --host if cross-compiling (see \"Installing GMP\" in the
2985 manual for more on this)." "$LINENO" 5
2988 gmp_configm4="config.m4"
2989 gmp_tmpconfigm4=cnfm4.tmp
2990 gmp_tmpconfigm4i=cnfm4i.tmp
2991 gmp_tmpconfigm4p=cnfm4p.tmp
2992 rm -f $gmp_tmpconfigm4 $gmp_tmpconfigm4i $gmp_tmpconfigm4p
2994 # CONFIG_TOP_SRCDIR is a path from the mpn builddir to the top srcdir.
2995 # The pattern here tests for an absolute path the same way as
2996 # _AC_OUTPUT_FILES in autoconf acgeneral.m4.
2997 case $srcdir in
2998 [\\/]* | ?:[\\/]* ) tmp="$srcdir" ;;
2999 *) tmp="../$srcdir" ;;
3000 esac
3001 echo "define(<CONFIG_TOP_SRCDIR>,<\`$tmp'>)" >>$gmp_tmpconfigm4
3003 # All CPUs use asm-defs.m4
3004 echo "include(CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4')" >>$gmp_tmpconfigm4i
3007 ac_aux_dir=
3008 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3009 if test -f "$ac_dir/install-sh"; then
3010 ac_aux_dir=$ac_dir
3011 ac_install_sh="$ac_aux_dir/install-sh -c"
3012 break
3013 elif test -f "$ac_dir/install.sh"; then
3014 ac_aux_dir=$ac_dir
3015 ac_install_sh="$ac_aux_dir/install.sh -c"
3016 break
3017 elif test -f "$ac_dir/shtool"; then
3018 ac_aux_dir=$ac_dir
3019 ac_install_sh="$ac_aux_dir/shtool install -c"
3020 break
3022 done
3023 if test -z "$ac_aux_dir"; then
3024 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3027 # These three variables are undocumented and unsupported,
3028 # and are intended to be withdrawn in a future Autoconf release.
3029 # They can cause serious problems if a builder's source tree is in a directory
3030 # whose full name contains unusual characters.
3031 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3032 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3033 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3036 # Make sure we can run config.sub.
3037 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3038 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3041 $as_echo_n "checking build system type... " >&6; }
3042 if ${ac_cv_build+:} false; then :
3043 $as_echo_n "(cached) " >&6
3044 else
3045 ac_build_alias=$build_alias
3046 test "x$ac_build_alias" = x &&
3047 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3048 test "x$ac_build_alias" = x &&
3049 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3050 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3051 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3055 $as_echo "$ac_cv_build" >&6; }
3056 case $ac_cv_build in
3057 *-*-*) ;;
3058 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3059 esac
3060 build=$ac_cv_build
3061 ac_save_IFS=$IFS; IFS='-'
3062 set x $ac_cv_build
3063 shift
3064 build_cpu=$1
3065 build_vendor=$2
3066 shift; shift
3067 # Remember, the first character of IFS is used to create $*,
3068 # except with old shells:
3069 build_os=$*
3070 IFS=$ac_save_IFS
3071 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3075 $as_echo_n "checking host system type... " >&6; }
3076 if ${ac_cv_host+:} false; then :
3077 $as_echo_n "(cached) " >&6
3078 else
3079 if test "x$host_alias" = x; then
3080 ac_cv_host=$ac_cv_build
3081 else
3082 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3083 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3088 $as_echo "$ac_cv_host" >&6; }
3089 case $ac_cv_host in
3090 *-*-*) ;;
3091 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3092 esac
3093 host=$ac_cv_host
3094 ac_save_IFS=$IFS; IFS='-'
3095 set x $ac_cv_host
3096 shift
3097 host_cpu=$1
3098 host_vendor=$2
3099 shift; shift
3100 # Remember, the first character of IFS is used to create $*,
3101 # except with old shells:
3102 host_os=$*
3103 IFS=$ac_save_IFS
3104 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3108 am__api_version='1.11'
3110 # Find a good install program. We prefer a C program (faster),
3111 # so one script is as good as another. But avoid the broken or
3112 # incompatible versions:
3113 # SysV /etc/install, /usr/sbin/install
3114 # SunOS /usr/etc/install
3115 # IRIX /sbin/install
3116 # AIX /bin/install
3117 # AmigaOS /C/install, which installs bootblocks on floppy discs
3118 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3119 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3120 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3121 # OS/2's system install, which has a completely different semantic
3122 # ./install, which can be erroneously created by make from ./install.sh.
3123 # Reject install programs that cannot install multiple files.
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3125 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3126 if test -z "$INSTALL"; then
3127 if ${ac_cv_path_install+:} false; then :
3128 $as_echo_n "(cached) " >&6
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3133 IFS=$as_save_IFS
3134 test -z "$as_dir" && as_dir=.
3135 # Account for people who put trailing slashes in PATH elements.
3136 case $as_dir/ in #((
3137 ./ | .// | /[cC]/* | \
3138 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3139 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3140 /usr/ucb/* ) ;;
3142 # OSF1 and SCO ODT 3.0 have their own names for install.
3143 # Don't use installbsd from OSF since it installs stuff as root
3144 # by default.
3145 for ac_prog in ginstall scoinst install; do
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3148 if test $ac_prog = install &&
3149 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3150 # AIX install. It has an incompatible calling convention.
3152 elif test $ac_prog = install &&
3153 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3154 # program-specific install script used by HP pwplus--don't use.
3156 else
3157 rm -rf conftest.one conftest.two conftest.dir
3158 echo one > conftest.one
3159 echo two > conftest.two
3160 mkdir conftest.dir
3161 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3162 test -s conftest.one && test -s conftest.two &&
3163 test -s conftest.dir/conftest.one &&
3164 test -s conftest.dir/conftest.two
3165 then
3166 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3167 break 3
3171 done
3172 done
3174 esac
3176 done
3177 IFS=$as_save_IFS
3179 rm -rf conftest.one conftest.two conftest.dir
3182 if test "${ac_cv_path_install+set}" = set; then
3183 INSTALL=$ac_cv_path_install
3184 else
3185 # As a last resort, use the slow shell script. Don't cache a
3186 # value for INSTALL within a source directory, because that will
3187 # break other packages using the cache if that directory is
3188 # removed, or if the value is a relative name.
3189 INSTALL=$ac_install_sh
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3193 $as_echo "$INSTALL" >&6; }
3195 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3196 # It thinks the first close brace ends the variable substitution.
3197 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3199 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3201 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3204 $as_echo_n "checking whether build environment is sane... " >&6; }
3205 # Just in case
3206 sleep 1
3207 echo timestamp > conftest.file
3208 # Reject unsafe characters in $srcdir or the absolute working directory
3209 # name. Accept space and tab only in the latter.
3210 am_lf='
3212 case `pwd` in
3213 *[\\\"\#\$\&\'\`$am_lf]*)
3214 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3215 esac
3216 case $srcdir in
3217 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3218 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3219 esac
3221 # Do `set' in a subshell so we don't clobber the current shell's
3222 # arguments. Must try -L first in case configure is actually a
3223 # symlink; some systems play weird games with the mod time of symlinks
3224 # (eg FreeBSD returns the mod time of the symlink's containing
3225 # directory).
3226 if (
3227 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3228 if test "$*" = "X"; then
3229 # -L didn't work.
3230 set X `ls -t "$srcdir/configure" conftest.file`
3232 rm -f conftest.file
3233 if test "$*" != "X $srcdir/configure conftest.file" \
3234 && test "$*" != "X conftest.file $srcdir/configure"; then
3236 # If neither matched, then we have a broken ls. This can happen
3237 # if, for instance, CONFIG_SHELL is bash and it inherits a
3238 # broken ls alias from the environment. This has actually
3239 # happened. Such a system could not be considered "sane".
3240 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3241 alias in your environment" "$LINENO" 5
3244 test "$2" = conftest.file
3246 then
3247 # Ok.
3249 else
3250 as_fn_error $? "newly created file is older than distributed files!
3251 Check your system clock" "$LINENO" 5
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3254 $as_echo "yes" >&6; }
3255 test "$program_prefix" != NONE &&
3256 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3257 # Use a double $ so make ignores it.
3258 test "$program_suffix" != NONE &&
3259 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3260 # Double any \ or $.
3261 # By default was `s,x,x', remove it if useless.
3262 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3263 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3265 # expand $ac_aux_dir to an absolute path
3266 am_aux_dir=`cd $ac_aux_dir && pwd`
3268 if test x"${MISSING+set}" != xset; then
3269 case $am_aux_dir in
3270 *\ * | *\ *)
3271 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3273 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3274 esac
3276 # Use eval to expand $SHELL
3277 if eval "$MISSING --run true"; then
3278 am_missing_run="$MISSING --run "
3279 else
3280 am_missing_run=
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3282 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3285 if test x"${install_sh}" != xset; then
3286 case $am_aux_dir in
3287 *\ * | *\ *)
3288 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3290 install_sh="\${SHELL} $am_aux_dir/install-sh"
3291 esac
3294 # Installed binaries are usually stripped using `strip' when the user
3295 # run `make install-strip'. However `strip' might not be the right
3296 # tool to use in cross-compilation environments, therefore Automake
3297 # will honor the `STRIP' environment variable to overrule this program.
3298 if test "$cross_compiling" != no; then
3299 if test -n "$ac_tool_prefix"; then
3300 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3301 set dummy ${ac_tool_prefix}strip; ac_word=$2
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303 $as_echo_n "checking for $ac_word... " >&6; }
3304 if ${ac_cv_prog_STRIP+:} false; then :
3305 $as_echo_n "(cached) " >&6
3306 else
3307 if test -n "$STRIP"; then
3308 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3309 else
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 break 2
3321 done
3322 done
3323 IFS=$as_save_IFS
3327 STRIP=$ac_cv_prog_STRIP
3328 if test -n "$STRIP"; then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3330 $as_echo "$STRIP" >&6; }
3331 else
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3338 if test -z "$ac_cv_prog_STRIP"; then
3339 ac_ct_STRIP=$STRIP
3340 # Extract the first word of "strip", so it can be a program name with args.
3341 set dummy strip; ac_word=$2
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343 $as_echo_n "checking for $ac_word... " >&6; }
3344 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3345 $as_echo_n "(cached) " >&6
3346 else
3347 if test -n "$ac_ct_STRIP"; then
3348 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3349 else
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3353 IFS=$as_save_IFS
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357 ac_cv_prog_ac_ct_STRIP="strip"
3358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 break 2
3361 done
3362 done
3363 IFS=$as_save_IFS
3367 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3368 if test -n "$ac_ct_STRIP"; then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3370 $as_echo "$ac_ct_STRIP" >&6; }
3371 else
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373 $as_echo "no" >&6; }
3376 if test "x$ac_ct_STRIP" = x; then
3377 STRIP=":"
3378 else
3379 case $cross_compiling:$ac_tool_warned in
3380 yes:)
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3383 ac_tool_warned=yes ;;
3384 esac
3385 STRIP=$ac_ct_STRIP
3387 else
3388 STRIP="$ac_cv_prog_STRIP"
3392 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3395 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3396 if test -z "$MKDIR_P"; then
3397 if ${ac_cv_path_mkdir+:} false; then :
3398 $as_echo_n "(cached) " >&6
3399 else
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
3405 for ac_prog in mkdir gmkdir; do
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3408 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3409 'mkdir (GNU coreutils) '* | \
3410 'mkdir (coreutils) '* | \
3411 'mkdir (fileutils) '4.1*)
3412 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3413 break 3;;
3414 esac
3415 done
3416 done
3417 done
3418 IFS=$as_save_IFS
3422 test -d ./--version && rmdir ./--version
3423 if test "${ac_cv_path_mkdir+set}" = set; then
3424 MKDIR_P="$ac_cv_path_mkdir -p"
3425 else
3426 # As a last resort, use the slow shell script. Don't cache a
3427 # value for MKDIR_P within a source directory, because that will
3428 # break other packages using the cache if that directory is
3429 # removed, or if the value is a relative name.
3430 MKDIR_P="$ac_install_sh -d"
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3434 $as_echo "$MKDIR_P" >&6; }
3436 mkdir_p="$MKDIR_P"
3437 case $mkdir_p in
3438 [\\/$]* | ?:[\\/]*) ;;
3439 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3440 esac
3442 for ac_prog in gawk mawk nawk awk
3444 # Extract the first word of "$ac_prog", so it can be a program name with args.
3445 set dummy $ac_prog; ac_word=$2
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447 $as_echo_n "checking for $ac_word... " >&6; }
3448 if ${ac_cv_prog_AWK+:} false; then :
3449 $as_echo_n "(cached) " >&6
3450 else
3451 if test -n "$AWK"; then
3452 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3453 else
3454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455 for as_dir in $PATH
3457 IFS=$as_save_IFS
3458 test -z "$as_dir" && as_dir=.
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3461 ac_cv_prog_AWK="$ac_prog"
3462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3463 break 2
3465 done
3466 done
3467 IFS=$as_save_IFS
3471 AWK=$ac_cv_prog_AWK
3472 if test -n "$AWK"; then
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3474 $as_echo "$AWK" >&6; }
3475 else
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477 $as_echo "no" >&6; }
3481 test -n "$AWK" && break
3482 done
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3485 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3486 set x ${MAKE-make}
3487 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3488 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3489 $as_echo_n "(cached) " >&6
3490 else
3491 cat >conftest.make <<\_ACEOF
3492 SHELL = /bin/sh
3493 all:
3494 @echo '@@@%%%=$(MAKE)=@@@%%%'
3495 _ACEOF
3496 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3497 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3498 *@@@%%%=?*=@@@%%%*)
3499 eval ac_cv_prog_make_${ac_make}_set=yes;;
3501 eval ac_cv_prog_make_${ac_make}_set=no;;
3502 esac
3503 rm -f conftest.make
3505 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3507 $as_echo "yes" >&6; }
3508 SET_MAKE=
3509 else
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3512 SET_MAKE="MAKE=${MAKE-make}"
3515 rm -rf .tst 2>/dev/null
3516 mkdir .tst 2>/dev/null
3517 if test -d .tst; then
3518 am__leading_dot=.
3519 else
3520 am__leading_dot=_
3522 rmdir .tst 2>/dev/null
3524 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3525 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3526 # is not polluted with repeated "-I."
3527 am__isrc=' -I$(srcdir)'
3528 # test to see if srcdir already configured
3529 if test -f $srcdir/config.status; then
3530 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3534 # test whether we have cygpath
3535 if test -z "$CYGPATH_W"; then
3536 if (cygpath --version) >/dev/null 2>/dev/null; then
3537 CYGPATH_W='cygpath -w'
3538 else
3539 CYGPATH_W=echo
3544 # Define the identity of the package.
3545 PACKAGE='gmp'
3546 VERSION='6.0.0'
3549 cat >>confdefs.h <<_ACEOF
3550 #define PACKAGE "$PACKAGE"
3551 _ACEOF
3554 cat >>confdefs.h <<_ACEOF
3555 #define VERSION "$VERSION"
3556 _ACEOF
3558 # Some tools Automake needs.
3560 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3563 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3566 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3569 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3572 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3574 # We need awk for the "check" target. The system "awk" is bad on
3575 # some platforms.
3576 # Always define AMTAR for backward compatibility. Yes, it's still used
3577 # in the wild :-( We should find a proper way to deprecate it ...
3578 AMTAR='$${TAR-tar}'
3580 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3586 ac_config_headers="$ac_config_headers config.h:config.in"
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3590 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3591 # Check whether --enable-maintainer-mode was given.
3592 if test "${enable_maintainer_mode+set}" = set; then :
3593 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3594 else
3595 USE_MAINTAINER_MODE=no
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3599 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3600 if test $USE_MAINTAINER_MODE = yes; then
3601 MAINTAINER_MODE_TRUE=
3602 MAINTAINER_MODE_FALSE='#'
3603 else
3604 MAINTAINER_MODE_TRUE='#'
3605 MAINTAINER_MODE_FALSE=
3608 MAINT=$MAINTAINER_MODE_TRUE
3613 # Check whether --enable-assert was given.
3614 if test "${enable_assert+set}" = set; then :
3615 enableval=$enable_assert; case $enableval in
3616 yes|no) ;;
3617 *) as_fn_error $? "bad value $enableval for --enable-assert, need yes or no" "$LINENO" 5 ;;
3618 esac
3619 else
3620 enable_assert=no
3624 if test "$enable_assert" = "yes"; then
3626 $as_echo "#define WANT_ASSERT 1" >>confdefs.h
3628 want_assert_01=1
3629 else
3630 want_assert_01=0
3633 echo "define(<WANT_ASSERT>,$want_assert_01)" >> $gmp_tmpconfigm4
3637 # Check whether --enable-alloca was given.
3638 if test "${enable_alloca+set}" = set; then :
3639 enableval=$enable_alloca; case $enableval in
3640 alloca|malloc-reentrant|malloc-notreentrant) ;;
3641 yes|no|reentrant|notreentrant) ;;
3642 debug) ;;
3644 as_fn_error $? "bad value $enableval for --enable-alloca, need one of:
3645 yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" "$LINENO" 5 ;;
3646 esac
3647 else
3648 enable_alloca=reentrant
3653 # IMPROVE ME: The default for C++ is disabled. The tests currently
3654 # performed below for a working C++ compiler are not particularly strong,
3655 # and in general can't be expected to get the right setup on their own. The
3656 # most significant problem is getting the ABI the same. Defaulting CXXFLAGS
3657 # to CFLAGS takes only a small step towards this. It's also probably worth
3658 # worrying whether the C and C++ runtimes from say gcc and a vendor C++ can
3659 # work together. Some rather broken C++ installations were encountered
3660 # during testing, and though such things clearly aren't GMP's problem, if
3661 # --enable-cxx=detect were to be the default then some careful checks of
3662 # which, if any, C++ compiler on the system is up to scratch would be
3663 # wanted.
3665 # Check whether --enable-cxx was given.
3666 if test "${enable_cxx+set}" = set; then :
3667 enableval=$enable_cxx; case $enableval in
3668 yes|no|detect) ;;
3669 *) as_fn_error $? "bad value $enableval for --enable-cxx, need yes/no/detect" "$LINENO" 5 ;;
3670 esac
3671 else
3672 enable_cxx=no
3677 # Check whether --enable-assembly was given.
3678 if test "${enable_assembly+set}" = set; then :
3679 enableval=$enable_assembly; case $enableval in
3680 yes|no) ;;
3681 *) as_fn_error $? "bad value $enableval for --enable-assembly, need yes or no" "$LINENO" 5 ;;
3682 esac
3683 else
3684 enable_assembly=yes
3688 if test "$enable_assembly" = "yes"; then
3690 $as_echo "#define WANT_ASSEMBLY 1" >>confdefs.h
3695 # Check whether --enable-fft was given.
3696 if test "${enable_fft+set}" = set; then :
3697 enableval=$enable_fft; case $enableval in
3698 yes|no) ;;
3699 *) as_fn_error $? "bad value $enableval for --enable-fft, need yes or no" "$LINENO" 5 ;;
3700 esac
3701 else
3702 enable_fft=yes
3706 if test "$enable_fft" = "yes"; then
3708 $as_echo "#define WANT_FFT 1" >>confdefs.h
3713 # Check whether --enable-old-fft-full was given.
3714 if test "${enable_old_fft_full+set}" = set; then :
3715 enableval=$enable_old_fft_full; case $enableval in
3716 yes|no) ;;
3717 *) as_fn_error $? "bad value $enableval for --enable-old-fft-full, need yes or no" "$LINENO" 5 ;;
3718 esac
3719 else
3720 enable_old_fft_full=no
3724 if test "$enable_old_fft_full" = "yes"; then
3726 $as_echo "#define WANT_OLD_FFT_FULL 1" >>confdefs.h
3731 # Check whether --enable-nails was given.
3732 if test "${enable_nails+set}" = set; then :
3733 enableval=$enable_nails; case $enableval in
3734 yes|no|[02468]|[0-9][02468]) ;;
3735 *[13579])
3736 as_fn_error $? "bad value $enableval for --enable-nails, only even nail sizes supported" "$LINENO" 5 ;;
3738 as_fn_error $? "bad value $enableval for --enable-nails, need yes/no/number" "$LINENO" 5 ;;
3739 esac
3740 else
3741 enable_nails=no
3745 case $enable_nails in
3746 yes) GMP_NAIL_BITS=2 ;;
3747 no) GMP_NAIL_BITS=0 ;;
3748 *) GMP_NAIL_BITS=$enable_nails ;;
3749 esac
3753 # Check whether --enable-profiling was given.
3754 if test "${enable_profiling+set}" = set; then :
3755 enableval=$enable_profiling; case $enableval in
3756 no|prof|gprof|instrument) ;;
3757 *) as_fn_error $? "bad value $enableval for --enable-profiling, need no/prof/gprof/instrument" "$LINENO" 5 ;;
3758 esac
3759 else
3760 enable_profiling=no
3764 case $enable_profiling in
3765 prof)
3767 $as_echo "#define WANT_PROFILING_PROF 1" >>confdefs.h
3770 gprof)
3772 $as_echo "#define WANT_PROFILING_GPROF 1" >>confdefs.h
3775 instrument)
3777 $as_echo "#define WANT_PROFILING_INSTRUMENT 1" >>confdefs.h
3780 esac
3783 echo "define(<WANT_PROFILING>,<\`$enable_profiling'>)" >> $gmp_tmpconfigm4
3786 # -fomit-frame-pointer is incompatible with -pg on some chips
3787 if test "$enable_profiling" = gprof; then
3788 fomit_frame_pointer=
3789 else
3790 fomit_frame_pointer="-fomit-frame-pointer"
3795 # Check whether --with-readline was given.
3796 if test "${with_readline+set}" = set; then :
3797 withval=$with_readline; case $withval in
3798 yes|no|detect) ;;
3799 *) as_fn_error $? "bad value $withval for --with-readline, need yes/no/detect" "$LINENO" 5 ;;
3800 esac
3801 else
3802 with_readline=detect
3807 # Check whether --enable-fat was given.
3808 if test "${enable_fat+set}" = set; then :
3809 enableval=$enable_fat; case $enableval in
3810 yes|no) ;;
3811 *) as_fn_error $? "bad value $enableval for --enable-fat, need yes or no" "$LINENO" 5 ;;
3812 esac
3813 else
3814 enable_fat=no
3819 # Check whether --enable-minithres was given.
3820 if test "${enable_minithres+set}" = set; then :
3821 enableval=$enable_minithres; case $enableval in
3822 yes|no) ;;
3823 *) as_fn_error $? "bad value $enableval for --enable-minithres, need yes or no" "$LINENO" 5 ;;
3824 esac
3825 else
3826 enable_minithres=no
3831 # Check whether --enable-fake-cpuid was given.
3832 if test "${enable_fake_cpuid+set}" = set; then :
3833 enableval=$enable_fake_cpuid; case $enableval in
3834 yes|no) ;;
3835 *) as_fn_error $? "bad value $enableval for --enable-fake-cpuid, need yes or no" "$LINENO" 5 ;;
3836 esac
3837 else
3838 enable_fake_cpuid=no
3842 if test "$enable_fake_cpuid" = "yes"; then
3844 $as_echo "#define WANT_FAKE_CPUID 1" >>confdefs.h
3849 if test $enable_fat = yes && test $enable_assembly = no ; then
3850 as_fn_error $? "when doing a fat build, disabling assembly will not work" "$LINENO" 5
3853 if test $enable_fake_cpuid = yes && test $enable_fat = no ; then
3854 as_fn_error $? "--enable-fake-cpuid requires --enable-fat" "$LINENO" 5
3858 tmp_host=`echo $host_cpu | sed 's/\./_/'`
3859 cat >>confdefs.h <<_ACEOF
3860 #define HAVE_HOST_CPU_$tmp_host 1
3861 _ACEOF
3864 echo "define_not_for_expansion(\`HAVE_HOST_CPU_$tmp_host')" >> $gmp_tmpconfigm4p
3871 # Table of compilers, options, and mpn paths. This code has various related
3872 # purposes
3874 # - better default CC/CFLAGS selections than autoconf otherwise gives
3875 # - default CC/CFLAGS selections for extra CPU types specific to GMP
3876 # - a few tests for known bad compilers
3877 # - choice of ABIs on suitable systems
3878 # - selection of corresponding mpn search path
3880 # After GMP specific searches and tests, the standard autoconf AC_PROG_CC is
3881 # called. User selections of CC etc are respected.
3883 # Care is taken not to use macros like AC_TRY_COMPILE during the GMP
3884 # pre-testing, since they of course depend on AC_PROG_CC, and also some of
3885 # them cache their results, which is not wanted.
3887 # The ABI selection mechanism is unique to GMP. All that reaches autoconf
3888 # is a different selection of CC/CFLAGS according to the best ABI the system
3889 # supports, and/or what the user selects. Naturally the mpn assembler code
3890 # selected is very dependent on the ABI.
3892 # The closest the standard tools come to a notion of ABI is something like
3893 # "sparc64" which encodes a CPU and an ABI together. This doesn't seem to
3894 # scale well for GMP, where exact CPU types like "ultrasparc2" are wanted,
3895 # separate from the ABI used on them.
3898 # The variables set here are
3900 # cclist the compiler choices
3901 # xx_cflags flags for compiler xx
3902 # xx_cflags_maybe flags for compiler xx, if they work
3903 # xx_cppflags cpp flags for compiler xx
3904 # xx_cflags_optlist list of sets of optional flags
3905 # xx_cflags_yyy set yyy of optional flags for compiler xx
3906 # xx_ldflags -Wc,-foo flags for libtool linking with compiler xx
3907 # ar_flags extra flags for $AR
3908 # nm_flags extra flags for $NM
3909 # limb limb size, can be "longlong"
3910 # path mpn search path
3911 # extra_functions extra mpn functions
3912 # fat_path fat binary mpn search path [if fat binary desired]
3913 # fat_functions fat functions
3914 # fat_thresholds fat thresholds
3916 # Suppose xx_cflags_optlist="arch", then flags from $xx_cflags_arch are
3917 # tried, and the first flag that works will be used. An optlist like "arch
3918 # cpu optimize" can be used to get multiple independent sets of flags tried.
3919 # The first that works from each will be used. If no flag in a set works
3920 # then nothing from that set is added.
3922 # For multiple ABIs, the scheme extends as follows.
3924 # abilist set of ABI choices
3925 # cclist_aa compiler choices in ABI aa
3926 # xx_aa_cflags flags for xx in ABI aa
3927 # xx_aa_cflags_maybe flags for xx in ABI aa, if they work
3928 # xx_aa_cppflags cpp flags for xx in ABI aa
3929 # xx_aa_cflags_optlist list of sets of optional flags in ABI aa
3930 # xx_aa_cflags_yyy set yyy of optional flags for compiler xx in ABI aa
3931 # xx_aa_ldflags -Wc,-foo flags for libtool linking
3932 # ar_aa_flags extra flags for $AR in ABI aa
3933 # nm_aa_flags extra flags for $NM in ABI aa
3934 # limb_aa limb size in ABI aa, can be "longlong"
3935 # path_aa mpn search path in ABI aa
3936 # extra_functions_aa extra mpn functions in ABI aa
3938 # As a convenience, the unadorned xx_cflags (etc) are used for the last ABI
3939 # in ablist, if an xx_aa_cflags for that ABI isn't given. For example if
3940 # abilist="64 32" then $cc_64_cflags will be used for the 64-bit ABI, but
3941 # for the 32-bit either $cc_32_cflags or $cc_cflags is used, whichever is
3942 # defined. This makes it easy to add some 64-bit compilers and flags to an
3943 # unadorned 32-bit set.
3945 # limb=longlong (or limb_aa=longlong) applies to all compilers within that
3946 # ABI. It won't work to have some needing long long and some not, since a
3947 # single instantiated gmp.h will be used by both.
3949 # SPEED_CYCLECOUNTER, cyclecounter_size and CALLING_CONVENTIONS_OBJS are
3950 # also set here, with an ABI suffix.
3954 # A table-driven approach like this to mapping cpu type to good compiler
3955 # options is a bit of a maintenance burden, but there's not much uniformity
3956 # between options specifications on different compilers. Some sort of
3957 # separately updatable tool might be cute.
3959 # The use of lots of variables like this, direct and indirect, tends to
3960 # obscure when and how various things are done, but unfortunately it's
3961 # pretty much the only way. If shell subroutines were portable then actual
3962 # code like "if this .. do that" could be written, but attempting the same
3963 # with full copies of GMP_PROG_CC_WORKS etc expanded at every point would
3964 # hugely bloat the output.
3969 # abilist needs to be non-empty, "standard" is just a generic name here
3970 abilist="standard"
3972 # FIXME: We'd like to prefer an ANSI compiler, perhaps by preferring
3973 # c89 over cc here. But note that on HP-UX c89 provides a castrated
3974 # environment, and would want to be excluded somehow. Maybe
3975 # AC_PROG_CC_STDC already does enough to stick cc into ANSI mode and
3976 # we don't need to worry.
3978 cclist="gcc cc"
3980 gcc_cflags="-O2 -pedantic"
3981 gcc_64_cflags="-O2 -pedantic"
3982 cc_cflags="-O"
3983 cc_64_cflags="-O"
3985 SPEED_CYCLECOUNTER_OBJ=
3986 cyclecounter_size=2
3988 HAVE_HOST_CPU_FAMILY_power=0
3990 HAVE_HOST_CPU_FAMILY_powerpc=0
3993 case $host in
3995 alpha*-*-*)
3996 $as_echo "#define HAVE_HOST_CPU_FAMILY_alpha 1" >>confdefs.h
3998 case $host_cpu in
3999 alphaev5* | alphapca5*)
4000 path="alpha/ev5 alpha" ;;
4001 alphaev67 | alphaev68 | alphaev7*)
4002 path="alpha/ev67 alpha/ev6 alpha" ;;
4003 alphaev6)
4004 path="alpha/ev6 alpha" ;;
4006 path="alpha" ;;
4007 esac
4008 if test "$enable_assembly" = "yes" ; then
4009 extra_functions="cntlz"
4011 gcc_cflags_optlist="asm cpu oldas" # need asm ahead of cpu, see below
4012 gcc_cflags_maybe="-mieee"
4013 gcc_cflags_oldas="-Wa,-oldas" # see GMP_GCC_WA_OLDAS.
4015 # gcc 2.7.2.3 doesn't know any -mcpu= for alpha, apparently.
4016 # gcc 2.95 knows -mcpu= ev4, ev5, ev56, pca56, ev6.
4017 # gcc 3.0 adds nothing.
4018 # gcc 3.1 adds ev45, ev67 (but ev45 is the same as ev4).
4019 # gcc 3.2 adds nothing.
4021 # gcc version "2.9-gnupro-99r1" under "-O2 -mcpu=ev6" strikes internal
4022 # compiler errors too easily and is rejected by GMP_PROG_CC_WORKS. Each
4023 # -mcpu=ev6 below has a fallback to -mcpu=ev56 for this reason.
4025 case $host_cpu in
4026 alpha) gcc_cflags_cpu="-mcpu=ev4" ;;
4027 alphaev5) gcc_cflags_cpu="-mcpu=ev5" ;;
4028 alphaev56) gcc_cflags_cpu="-mcpu=ev56" ;;
4029 alphapca56 | alphapca57)
4030 gcc_cflags_cpu="-mcpu=pca56" ;;
4031 alphaev6) gcc_cflags_cpu="-mcpu=ev6 -mcpu=ev56" ;;
4032 alphaev67 | alphaev68 | alphaev7*)
4033 gcc_cflags_cpu="-mcpu=ev67 -mcpu=ev6 -mcpu=ev56" ;;
4034 esac
4036 # gcc version "2.9-gnupro-99r1" on alphaev68-dec-osf5.1 has been seen
4037 # accepting -mcpu=ev6, but not putting the assembler in the right mode
4038 # for what it produces. We need to do this for it, and need to do it
4039 # before testing the -mcpu options.
4041 # On old versions of gcc, which don't know -mcpu=, we believe an
4042 # explicit -Wa,-mev5 etc will be necessary to put the assembler in
4043 # the right mode for our .asm files and longlong.h asm blocks.
4045 # On newer versions of gcc, when -mcpu= is known, we must give a -Wa
4046 # which is at least as high as the code gcc will generate. gcc
4047 # establishes what it needs with a ".arch" directive, our command line
4048 # option seems to override that.
4050 # gas prior to 2.14 doesn't accept -mev67, but -mev6 seems enough for
4051 # ctlz and cttz (in 2.10.0 at least).
4053 # OSF `as' accepts ev68 but stupidly treats it as ev4. -arch only seems
4054 # to affect insns like ldbu which are expanded as macros when necessary.
4055 # Insns like ctlz which were never available as macros are always
4056 # accepted and always generate their plain code.
4058 case $host_cpu in
4059 alpha) gcc_cflags_asm="-Wa,-arch,ev4 -Wa,-mev4" ;;
4060 alphaev5) gcc_cflags_asm="-Wa,-arch,ev5 -Wa,-mev5" ;;
4061 alphaev56) gcc_cflags_asm="-Wa,-arch,ev56 -Wa,-mev56" ;;
4062 alphapca56 | alphapca57)
4063 gcc_cflags_asm="-Wa,-arch,pca56 -Wa,-mpca56" ;;
4064 alphaev6) gcc_cflags_asm="-Wa,-arch,ev6 -Wa,-mev6" ;;
4065 alphaev67 | alphaev68 | alphaev7*)
4066 gcc_cflags_asm="-Wa,-arch,ev67 -Wa,-mev67 -Wa,-arch,ev6 -Wa,-mev6" ;;
4067 esac
4069 # It might be better to ask "cc" whether it's Cray C or DEC C,
4070 # instead of relying on the OS part of $host. But it's hard to
4071 # imagine either of those compilers anywhere except their native
4072 # systems.
4075 echo "include_mpn(\`alpha/alpha-defs.m4')" >> $gmp_tmpconfigm4i
4077 case $host in
4078 *-cray-unicos*)
4079 cc_cflags="-O" # no -g, it silently disables all optimizations
4081 echo "include_mpn(\`alpha/unicos.m4')" >> $gmp_tmpconfigm4i
4083 # Don't perform any assembly syntax tests on this beast.
4084 gmp_asm_syntax_testing=no
4086 *-*-osf*)
4088 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
4090 cc_cflags=""
4091 cc_cflags_optlist="opt cpu"
4093 # not sure if -fast works on old versions, so make it optional
4094 cc_cflags_opt="-fast -O2"
4096 # DEC C V5.9-005 knows ev4, ev5, ev56, pca56, ev6.
4097 # Compaq C V6.3-029 adds ev67.
4099 case $host_cpu in
4100 alpha) cc_cflags_cpu="-arch~ev4~-tune~ev4" ;;
4101 alphaev5) cc_cflags_cpu="-arch~ev5~-tune~ev5" ;;
4102 alphaev56) cc_cflags_cpu="-arch~ev56~-tune~ev56" ;;
4103 alphapca56 | alphapca57)
4104 cc_cflags_cpu="-arch~pca56~-tune~pca56" ;;
4105 alphaev6) cc_cflags_cpu="-arch~ev6~-tune~ev6" ;;
4106 alphaev67 | alphaev68 | alphaev7*)
4107 cc_cflags_cpu="-arch~ev67~-tune~ev67 -arch~ev6~-tune~ev6" ;;
4108 esac
4112 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
4115 esac
4117 case $host in
4118 *-*-unicos*)
4119 # tune/alpha.asm assumes int==4bytes but unicos uses int==8bytes
4122 SPEED_CYCLECOUNTER_OBJ=alpha.lo
4123 cyclecounter_size=1 ;;
4124 esac
4128 # Cray vector machines.
4129 # This must come after alpha* so that we can recognize present and future
4130 # vector processors with a wildcard.
4131 *-cray-unicos*)
4132 gmp_asm_syntax_testing=no
4133 cclist="cc"
4134 # We used to have -hscalar0 here as a workaround for miscompilation of
4135 # mpz/import.c, but let's hope Cray fixes their bugs instead, since
4136 # -hscalar0 causes disastrously poor code to be generated.
4137 cc_cflags="-O3 -hnofastmd -htask0 -Wa,-B"
4138 path="cray"
4142 arm64*-*-* | aarch64*-*-*)
4143 path="arm64"
4147 arm*-*-*)
4148 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4149 gcc_cflags_optlist="arch neon tune"
4150 gcc_cflags_maybe="-marm"
4151 gcc_testlist="gcc-arm-umodsi"
4153 echo "include_mpn(\`arm/arm-defs.m4')" >> $gmp_tmpconfigm4i
4155 CALLING_CONVENTIONS_OBJS='arm32call.lo arm32check.lo'
4157 # FIXME: We make mandatory compiler options optional here. We should
4158 # either enforce them, or organise to strip paths as the corresponding
4159 # options fail.
4160 case $host_cpu in
4161 armsa1 | arm9tdmi | armv4*)
4162 path="arm"
4163 gcc_cflags_arch="-march=armv4"
4165 armxscale | arm9te | arm10 | armv5*)
4166 path="arm/v5 arm"
4167 gcc_cflags_arch="-march=armv5"
4169 arm11mpcore | arm1136 | arm1176 | armv6*)
4170 path="arm/v6 arm/v5 arm"
4171 gcc_cflags_arch="-march=armv6"
4173 arm1156)
4174 path="arm/v6t2 arm/v6 arm/v5 arm"
4175 gcc_cflags_arch="-march=armv6t2"
4177 armcortexa5 | armv7a*)
4178 path="arm/v6t2 arm/v6 arm/v5 arm"
4179 gcc_cflags_arch="-march=armv7-a"
4181 armcortexa8)
4182 path="arm/v6t2 arm/v6 arm/v5 arm"
4183 gcc_cflags_arch="-march=armv7-a"
4184 gcc_cflags_tune="-mtune=cortex-a8"
4186 armcortexa8neon)
4187 path="arm/v6t2 arm/v6 arm/v5 arm/neon arm"
4188 gcc_cflags_arch="-march=armv7-a"
4189 gcc_cflags_neon="-mfpu=neon"
4190 gcc_cflags_tune="-mtune=cortex-a8"
4192 armcortexa9)
4193 path="arm/v7a/cora9 arm/v6t2 arm/v6 arm/v5 arm"
4194 gcc_cflags_arch="-march=armv7-a"
4195 gcc_cflags_tune="-mtune=cortex-a9"
4197 armcortexa9neon)
4198 path="arm/v7a/cora9 arm/v6t2 arm/v6 arm/v5 arm/neon arm"
4199 gcc_cflags_arch="-march=armv7-a"
4200 gcc_cflags_neon="-mfpu=neon"
4201 gcc_cflags_tune="-mtune=cortex-a9"
4203 armcortexa15)
4204 path="arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm"
4205 gcc_cflags_arch="-march=armv7-a"
4206 gcc_cflags_tune="-mtune=cortex-a15 -mtune=cortex-a9"
4208 armcortexa15neon)
4209 path="arm/v7a/cora15/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm/neon arm"
4210 gcc_cflags_arch="-march=armv7-a"
4211 gcc_cflags_neon="-mfpu=neon"
4212 gcc_cflags_tune="-mtune=cortex-a15 -mtune=cortex-a9"
4215 path="arm"
4217 esac
4221 # Fujitsu
4222 f30[01]-fujitsu-sysv*)
4223 cclist="gcc vcc"
4224 # FIXME: flags for vcc?
4225 vcc_cflags="-g"
4226 path="fujitsu"
4230 hppa*-*-*)
4231 # HP cc (the one sold separately) is K&R by default, but AM_C_PROTOTYPES
4232 # will add "-Ae", or "-Aa -D_HPUX_SOURCE", to put it into ansi mode, if
4233 # possible.
4235 # gcc for hppa 2.0 can be built either for 2.0n (32-bit) or 2.0w
4236 # (64-bit), but not both, so there's no option to choose the desired
4237 # mode, we must instead detect which of the two it is. This is done by
4238 # checking sizeof(long), either 4 or 8 bytes respectively. Do this in
4239 # ABI=1.0 too, in case someone tries to build that with a 2.0w gcc.
4241 gcc_cflags_optlist="arch"
4242 gcc_testlist="sizeof-long-4"
4243 SPEED_CYCLECOUNTER_OBJ=hppa.lo
4244 cyclecounter_size=1
4246 # FIXME: For hppa2.0*, path should be "pa32/hppa2_0 pa32/hppa1_1 pa32".
4247 # (Can't remember why this isn't done already, have to check what .asm
4248 # files are available in each and how they run on a typical 2.0 cpu.)
4250 case $host_cpu in
4251 hppa1.0*) path="pa32" ;;
4252 hppa7000*) path="pa32/hppa1_1 pa32" ;;
4253 hppa2.0* | hppa64)
4254 path="pa32/hppa2_0 pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
4255 *) # default to 7100
4256 path="pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
4257 esac
4259 # gcc 2.7.2.3 knows -mpa-risc-1-0 and -mpa-risc-1-1
4260 # gcc 2.95 adds -mpa-risc-2-0, plus synonyms -march=1.0, 1.1 and 2.0
4262 # We don't use -mpa-risc-2-0 in ABI=1.0 because 64-bit registers may not
4263 # be saved by the kernel on an old system. Actually gcc (as of 3.2)
4264 # only adds a few float instructions with -mpa-risc-2-0, so it would
4265 # probably be safe, but let's not take the chance. In any case, a
4266 # configuration like --host=hppa2.0 ABI=1.0 is far from optimal.
4268 case $host_cpu in
4269 hppa1.0*) gcc_cflags_arch="-mpa-risc-1-0" ;;
4270 *) # default to 7100
4271 gcc_cflags_arch="-mpa-risc-1-1" ;;
4272 esac
4274 case $host_cpu in
4275 hppa1.0*) cc_cflags="+O2" ;;
4276 *) # default to 7100
4277 cc_cflags="+DA1.1 +O2" ;;
4278 esac
4280 case $host in
4281 hppa2.0*-*-* | hppa64-*-*)
4282 cclist_20n="gcc cc"
4283 abilist="2.0n 1.0"
4284 path_20n="pa64"
4285 limb_20n=longlong
4286 any_20n_testlist="sizeof-long-4"
4287 SPEED_CYCLECOUNTER_OBJ_20n=hppa2.lo
4288 cyclecounter_size_20n=2
4290 # -mpa-risc-2-0 is only an optional flag, in case an old gcc is
4291 # used. Assembler support for 2.0 is essential though, for our asm
4292 # files.
4293 gcc_20n_cflags="$gcc_cflags"
4294 gcc_20n_cflags_optlist="arch"
4295 gcc_20n_cflags_arch="-mpa-risc-2-0 -mpa-risc-1-1"
4296 gcc_20n_testlist="sizeof-long-4 hppa-level-2.0"
4298 cc_20n_cflags="+DA2.0 +e +O2 -Wl,+vnocompatwarnings"
4299 cc_20n_testlist="hpc-hppa-2-0"
4301 # ABI=2.0w is available for hppa2.0w and hppa2.0, but not for
4302 # hppa2.0n, on the assumption that that the latter indicates a
4303 # desire for ABI=2.0n.
4304 case $host in
4305 hppa2.0n-*-*) ;;
4307 # HPUX 10 and earlier cannot run 2.0w. Not sure about other
4308 # systems (GNU/Linux for instance), but lets assume they're ok.
4309 case $host in
4310 *-*-hpux[1-9] | *-*-hpux[1-9].* | *-*-hpux10 | *-*-hpux10.*) ;;
4311 *-*-linux*) abilist="1.0" ;; # due to linux permanent kernel bug
4312 *) abilist="2.0w $abilist" ;;
4313 esac
4315 cclist_20w="gcc cc"
4316 gcc_20w_cflags="$gcc_cflags -mpa-risc-2-0"
4317 cc_20w_cflags="+DD64 +O2"
4318 cc_20w_testlist="hpc-hppa-2-0"
4319 path_20w="pa64"
4320 any_20w_testlist="sizeof-long-8"
4321 SPEED_CYCLECOUNTER_OBJ_20w=hppa2w.lo
4322 cyclecounter_size_20w=2
4324 esac
4326 esac
4330 ia64*-*-* | itanium-*-* | itanium2-*-*)
4331 abilist="64"
4333 echo "include_mpn(\`ia64/ia64-defs.m4')" >> $gmp_tmpconfigm4i
4335 SPEED_CYCLECOUNTER_OBJ=ia64.lo
4336 any_32_testlist="sizeof-long-4"
4338 case $host_cpu in
4339 itanium) path="ia64/itanium ia64" ;;
4340 itanium2) path="ia64/itanium2 ia64" ;;
4341 *) path="ia64" ;;
4342 esac
4344 gcc_64_cflags_optlist="tune"
4345 gcc_32_cflags_optlist=$gcc_64_cflags_optlist
4347 # gcc pre-release 3.4 adds -mtune itanium and itanium2
4348 case $host_cpu in
4349 itanium) gcc_cflags_tune="-mtune=itanium" ;;
4350 itanium2) gcc_cflags_tune="-mtune=itanium2" ;;
4351 esac
4353 case $host in
4354 *-*-linux*)
4355 cclist="gcc icc"
4356 icc_cflags="-no-gcc"
4357 icc_cflags_optlist="opt"
4358 # Don't use -O3, it is for "large data sets" and also miscompiles GMP.
4359 # But icc miscompiles GMP at any optimization level, at higher levels
4360 # it miscompiles more files...
4361 icc_cflags_opt="-O2 -O1"
4364 *-*-hpux*)
4365 # HP cc sometimes gets internal errors if the optimization level is
4366 # too high. GMP_PROG_CC_WORKS detects this, the "_opt" fallbacks
4367 # let us use whatever seems to work.
4369 abilist="32 64"
4370 any_64_testlist="sizeof-long-8"
4372 cclist_32="gcc cc"
4373 path_32="ia64"
4374 cc_32_cflags=""
4375 cc_32_cflags_optlist="opt"
4376 cc_32_cflags_opt="+O3 +O2 +O1"
4377 gcc_32_cflags="$gcc_cflags -milp32"
4378 limb_32=longlong
4379 SPEED_CYCLECOUNTER_OBJ_32=ia64.lo
4380 cyclecounter_size_32=2
4382 # Must have +DD64 in CPPFLAGS to get the right __LP64__ for headers,
4383 # but also need it in CFLAGS for linking programs, since automake
4384 # only uses CFLAGS when linking, not CPPFLAGS.
4385 # FIXME: Maybe should use cc_64_ldflags for this, but that would
4386 # need GMP_LDFLAGS used consistently by all the programs.
4388 cc_64_cflags="+DD64"
4389 cc_64_cppflags="+DD64"
4390 cc_64_cflags_optlist="opt"
4391 cc_64_cflags_opt="+O3 +O2 +O1"
4392 gcc_64_cflags="$gcc_cflags -mlp64"
4394 esac
4398 # Motorola 68k
4400 m68k-*-* | m68[0-9][0-9][0-9]-*-*)
4401 $as_echo "#define HAVE_HOST_CPU_FAMILY_m68k 1" >>confdefs.h
4404 echo "include_mpn(\`m68k/m68k-defs.m4')" >> $gmp_tmpconfigm4i
4406 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4407 gcc_cflags_optlist="arch"
4409 # gcc 2.7.2 knows -m68000, -m68020, -m68030, -m68040.
4410 # gcc 2.95 adds -mcpu32, -m68060.
4411 # FIXME: Maybe "-m68020 -mnobitfield" would suit cpu32 on 2.7.2.
4413 case $host_cpu in
4414 m68020) gcc_cflags_arch="-m68020" ;;
4415 m68030) gcc_cflags_arch="-m68030" ;;
4416 m68040) gcc_cflags_arch="-m68040" ;;
4417 m68060) gcc_cflags_arch="-m68060 -m68000" ;;
4418 m68360) gcc_cflags_arch="-mcpu32 -m68000" ;;
4419 *) gcc_cflags_arch="-m68000" ;;
4420 esac
4422 # FIXME: m68k/mc68020 looks like it's ok for cpu32, but this wants to be
4423 # tested. Will need to introduce an m68k/cpu32 if m68k/mc68020 ever uses
4424 # the bitfield instructions.
4425 case $host_cpu in
4426 m680[234]0 | m68360) path="m68k/mc68020 m68k" ;;
4427 *) path="m68k" ;;
4428 esac
4432 # Motorola 88k
4433 m88k*-*-*)
4434 path="m88k"
4436 m88110*-*-*)
4437 gcc_cflags="$gcc_cflags -m88110"
4438 path="m88k/mc88110 m88k"
4442 # IRIX 5 and earlier can only run 32-bit o32.
4444 # IRIX 6 and up always has a 64-bit mips CPU can run n32 or 64. n32 is
4445 # preferred over 64, but only because that's been the default in past
4446 # versions of GMP. The two are equally efficient.
4448 # Linux kernel 2.2.13 arch/mips/kernel/irixelf.c has a comment about not
4449 # supporting n32 or 64.
4451 # For reference, libtool (eg. 1.5.6) recognises the n32 ABI and knows the
4452 # right options to use when linking (both cc and gcc), so no need for
4453 # anything special from us.
4455 mips*-*-*)
4456 abilist="o32"
4457 gcc_cflags_optlist="abi"
4458 gcc_cflags_abi="-mabi=32"
4459 gcc_testlist="gcc-mips-o32"
4460 path="mips32"
4461 cc_cflags="-O2 -o32" # no -g, it disables all optimizations
4462 # this suits both mips32 and mips64
4464 echo "include_mpn(\`mips32/mips-defs.m4')" >> $gmp_tmpconfigm4i
4467 case $host in
4468 mips64*-*-* | mips*-*-irix[6789]*)
4469 abilist="n32 64 o32"
4471 cclist_n32="gcc cc"
4472 gcc_n32_cflags="$gcc_cflags -mabi=n32"
4473 cc_n32_cflags="-O2 -n32" # no -g, it disables all optimizations
4474 limb_n32=longlong
4475 path_n32="mips64"
4477 cclist_64="gcc cc"
4478 gcc_64_cflags="$gcc_cflags -mabi=64"
4479 gcc_64_ldflags="-Wc,-mabi=64"
4480 cc_64_cflags="-O2 -64" # no -g, it disables all optimizations
4481 cc_64_ldflags="-Wc,-64"
4482 path_64="mips64"
4484 esac
4488 # Darwin (powerpc-apple-darwin1.3) has it's hacked gcc installed as cc.
4489 # Our usual "gcc in disguise" detection means gcc_cflags etc here gets
4490 # used.
4492 # The darwin pre-compiling preprocessor is disabled with -no-cpp-precomp
4493 # since it doesn't like "__attribute__ ((mode (SI)))" etc in gmp-impl.h,
4494 # and so always ends up running the plain preprocessor anyway. This could
4495 # be done in CPPFLAGS rather than CFLAGS, but there's not many places
4496 # preprocessing is done separately, and this is only a speedup, the normal
4497 # preprocessor gets run if there's any problems.
4499 # We used to use -Wa,-mppc with gcc, but can't remember exactly why.
4500 # Presumably it was for old versions of gcc where -mpowerpc doesn't put
4501 # the assembler in the right mode. In any case -Wa,-mppc is not good, for
4502 # instance -mcpu=604 makes recent gcc use -m604 to get access to the
4503 # "fsel" instruction, but a -Wa,-mppc overrides that, making code that
4504 # comes out with fsel fail.
4506 # (Note also that the darwin assembler doesn't accept "-mppc", so any
4507 # -Wa,-mppc was used only if it worked. The right flag on darwin would be
4508 # "-arch ppc" or some such, but that's already the default.)
4510 powerpc*-*-* | power[3-9]-*-*)
4511 $as_echo "#define HAVE_HOST_CPU_FAMILY_powerpc 1" >>confdefs.h
4513 HAVE_HOST_CPU_FAMILY_powerpc=1
4514 abilist="32"
4515 cclist="gcc cc"
4516 cc_cflags="-O2"
4517 gcc_32_cflags="$gcc_cflags -mpowerpc"
4518 gcc_cflags_optlist="precomp subtype asm cpu"
4519 gcc_cflags_precomp="-no-cpp-precomp"
4520 gcc_cflags_subtype="-force_cpusubtype_ALL" # for vmx on darwin
4521 gcc_cflags_asm=""
4522 gcc_cflags_cpu=""
4523 vmx_path=""
4525 # grab this object, though it's not a true cycle counter routine
4526 SPEED_CYCLECOUNTER_OBJ=powerpc.lo
4527 cyclecounter_size=0
4529 case $host_cpu in
4530 powerpc740 | powerpc750)
4531 path="powerpc32/750 powerpc32" ;;
4532 powerpc7400 | powerpc7410)
4533 path="powerpc32/vmx powerpc32/750 powerpc32" ;;
4534 powerpc74[45]?)
4535 path="powerpc32/vmx powerpc32" ;;
4537 path="powerpc32" ;;
4538 esac
4540 case $host_cpu in
4541 powerpc401) gcc_cflags_cpu="-mcpu=401" ;;
4542 powerpc403) gcc_cflags_cpu="-mcpu=403"
4543 xlc_cflags_arch="-qarch=403 -qarch=ppc" ;;
4544 powerpc405) gcc_cflags_cpu="-mcpu=405" ;;
4545 powerpc505) gcc_cflags_cpu="-mcpu=505" ;;
4546 powerpc601) gcc_cflags_cpu="-mcpu=601"
4547 xlc_cflags_arch="-qarch=601 -qarch=ppc" ;;
4548 powerpc602) gcc_cflags_cpu="-mcpu=602"
4549 xlc_cflags_arch="-qarch=602 -qarch=ppc" ;;
4550 powerpc603) gcc_cflags_cpu="-mcpu=603"
4551 xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
4552 powerpc603e) gcc_cflags_cpu="-mcpu=603e -mcpu=603"
4553 xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
4554 powerpc604) gcc_cflags_cpu="-mcpu=604"
4555 xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
4556 powerpc604e) gcc_cflags_cpu="-mcpu=604e -mcpu=604"
4557 xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
4558 powerpc620) gcc_cflags_cpu="-mcpu=620" ;;
4559 powerpc630) gcc_cflags_cpu="-mcpu=630"
4560 xlc_cflags_arch="-qarch=pwr3"
4561 cpu_path="p3 p3-p7" ;;
4562 powerpc740) gcc_cflags_cpu="-mcpu=740" ;;
4563 powerpc7400 | powerpc7410)
4564 gcc_cflags_asm="-Wa,-maltivec"
4565 gcc_cflags_cpu="-mcpu=7400 -mcpu=750" ;;
4566 powerpc74[45]?)
4567 gcc_cflags_asm="-Wa,-maltivec"
4568 gcc_cflags_cpu="-mcpu=7450" ;;
4569 powerpc750) gcc_cflags_cpu="-mcpu=750" ;;
4570 powerpc801) gcc_cflags_cpu="-mcpu=801" ;;
4571 powerpc821) gcc_cflags_cpu="-mcpu=821" ;;
4572 powerpc823) gcc_cflags_cpu="-mcpu=823" ;;
4573 powerpc860) gcc_cflags_cpu="-mcpu=860" ;;
4574 powerpc970) gcc_cflags_cpu="-mtune=970"
4575 xlc_cflags_arch="-qarch=970 -qarch=pwr3"
4576 vmx_path="powerpc64/vmx"
4577 cpu_path="p4 p3-p7" ;;
4578 power4) gcc_cflags_cpu="-mtune=power4"
4579 xlc_cflags_arch="-qarch=pwr4"
4580 cpu_path="p4 p3-p7" ;;
4581 power5) gcc_cflags_cpu="-mtune=power5 -mtune=power4"
4582 xlc_cflags_arch="-qarch=pwr5"
4583 cpu_path="p5 p4 p3-p7" ;;
4584 power6) gcc_cflags_cpu="-mtune=power6"
4585 xlc_cflags_arch="-qarch=pwr6"
4586 cpu_path="p6 p3-p7" ;;
4587 power7) gcc_cflags_cpu="-mtune=power7 -mtune=power5"
4588 xlc_cflags_arch="-qarch=pwr7 -qarch=pwr5"
4589 cpu_path="p7 p5 p4 p3-p7" ;;
4590 esac
4592 case $host in
4593 *-*-aix*)
4594 cclist="gcc xlc cc"
4595 gcc_32_cflags_maybe="-maix32"
4596 xlc_cflags="-O2 -qmaxmem=20000"
4597 xlc_cflags_optlist="arch"
4598 xlc_32_cflags_maybe="-q32"
4599 ar_32_flags="-X32"
4600 nm_32_flags="-X32"
4601 esac
4603 case $host in
4604 powerpc64-*-* | powerpc64le-*-* | powerpc620-*-* | powerpc630-*-* | powerpc970-*-* | power[3-9]-*-*)
4605 case $host in
4606 *-*-aix*)
4607 # On AIX a true 64-bit ABI is available.
4608 # Need -Wc to pass object type flags through to the linker.
4609 abilist="mode64 $abilist"
4610 cclist_mode64="gcc xlc"
4611 gcc_mode64_cflags="$gcc_cflags -maix64 -mpowerpc64"
4612 gcc_mode64_cflags_optlist="cpu"
4613 gcc_mode64_ldflags="-Wc,-maix64"
4614 xlc_mode64_cflags="-O2 -q64 -qmaxmem=20000"
4615 xlc_mode64_cflags_optlist="arch"
4616 xlc_mode64_ldflags="-Wc,-q64"
4617 # Must indicate object type to ar and nm
4618 ar_mode64_flags="-X64"
4619 nm_mode64_flags="-X64"
4620 path_mode64=""
4621 p=""
4622 for i in $cpu_path
4623 do path_mode64="${path_mode64}powerpc64/mode64/$i "
4624 path_mode64="${path_mode64}powerpc64/$i "
4625 p="${p} powerpc32/$i "
4626 done
4627 path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64"
4628 path="$p $path"
4629 # grab this object, though it's not a true cycle counter routine
4630 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
4631 cyclecounter_size_mode64=0
4633 *-*-darwin*)
4634 # On Darwin we can use 64-bit instructions with a longlong limb,
4635 # but the chip still in 32-bit mode.
4636 # In theory this can be used on any OS which knows how to save
4637 # 64-bit registers in a context switch.
4639 # Note that we must use -mpowerpc64 with gcc, since the
4640 # longlong.h macros expect limb operands in a single 64-bit
4641 # register, not two 32-bit registers as would be given for a
4642 # long long without -mpowerpc64. In theory we could detect and
4643 # accommodate both styles, but the proper 64-bit registers will
4644 # be fastest and are what we really want to use.
4646 # One would think -mpowerpc64 would set the assembler in the right
4647 # mode to handle 64-bit instructions. But for that, also
4648 # -force_cpusubtype_ALL is needed.
4650 # Do not use -fast for Darwin, it actually adds options
4651 # incompatible with a shared library.
4653 abilist="mode64 mode32 $abilist"
4654 gcc_32_cflags_maybe="-m32"
4655 gcc_cflags_opt="-O3 -O2 -O1" # will this become used?
4656 cclist_mode32="gcc"
4657 gcc_mode32_cflags_maybe="-m32"
4658 gcc_mode32_cflags="-mpowerpc64"
4659 gcc_mode32_cflags_optlist="subtype cpu opt"
4660 gcc_mode32_cflags_subtype="-force_cpusubtype_ALL"
4661 gcc_mode32_cflags_opt="-O3 -O2 -O1"
4662 limb_mode32=longlong
4663 cclist_mode64="gcc"
4664 gcc_mode64_cflags="-m64"
4665 gcc_mode64_cflags_optlist="cpu opt"
4666 gcc_mode64_cflags_opt="-O3 -O2 -O1"
4667 path_mode64=""
4668 path_mode32=""
4669 p=""
4670 for i in $cpu_path
4671 do path_mode64="${path_mode64}powerpc64/mode64/$i "
4672 path_mode64="${path_mode64}powerpc64/$i "
4673 path_mode32="${path_mode32}powerpc64/mode32/$i "
4674 path_mode32="${path_mode32}powerpc64/$i "
4675 p="${p} powerpc32/$i "
4676 done
4677 path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64"
4678 path_mode32="${path_mode32}powerpc64/mode32 $vmx_path powerpc64"
4679 path="$p $path"
4680 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
4681 cyclecounter_size_mode64=0
4682 any_mode64_testlist="sizeof-long-8"
4684 *-*-linux* | *-*-*bsd*)
4685 # On GNU/Linux, assume the processor is in 64-bit mode. Some
4686 # environments have a gcc that is always in 64-bit mode, while
4687 # others require -m64, hence the use of cflags_maybe. The
4688 # sizeof-long-8 test checks the mode is right (for the no option
4689 # case).
4691 # -mpowerpc64 is not used, since it should be the default in
4692 # 64-bit mode. (We need its effect for the various longlong.h
4693 # asm macros to be right of course.)
4695 # gcc64 was an early port of gcc to 64-bit mode, but should be
4696 # obsolete before too long. We prefer plain gcc when it knows
4697 # 64-bits.
4699 abilist="mode64 mode32 $abilist"
4700 gcc_32_cflags_maybe="-m32"
4701 cclist_mode32="gcc"
4702 gcc_mode32_cflags_maybe="-m32"
4703 gcc_mode32_cflags="-mpowerpc64"
4704 gcc_mode32_cflags_optlist="cpu opt"
4705 gcc_mode32_cflags_opt="-O3 -O2 -O1"
4706 limb_mode32=longlong
4707 cclist_mode64="gcc gcc64"
4708 gcc_mode64_cflags_maybe="-m64"
4709 gcc_mode64_cflags_optlist="cpu opt"
4710 gcc_mode64_cflags_opt="-O3 -O2 -O1"
4711 path_mode64=""
4712 path_mode32=""
4713 p=""
4714 for i in $cpu_path
4715 do path_mode64="${path_mode64}powerpc64/mode64/$i "
4716 path_mode64="${path_mode64}powerpc64/$i "
4717 path_mode32="${path_mode32}powerpc64/mode32/$i "
4718 path_mode32="${path_mode32}powerpc64/$i "
4719 p="${p} powerpc32/$i "
4720 done
4721 path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64"
4722 path_mode32="${path_mode32}powerpc64/mode32 $vmx_path powerpc64"
4723 path="$p $path"
4724 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
4725 cyclecounter_size_mode64=0
4726 any_mode64_testlist="sizeof-long-8"
4728 esac
4730 esac
4734 # POWER 32-bit
4735 power-*-* | power[12]-*-* | power2sc-*-*)
4736 $as_echo "#define HAVE_HOST_CPU_FAMILY_power 1" >>confdefs.h
4738 HAVE_HOST_CPU_FAMILY_power=1
4739 cclist="gcc"
4740 extra_functions="udiv_w_sdiv"
4741 path="power"
4743 # gcc 2.7.2 knows rios1, rios2, rsc
4745 # -mcpu=rios2 can tickle an AIX assembler bug (see GMP_PROG_CC_WORKS) so
4746 # there needs to be a fallback to just -mpower.
4748 gcc_cflags_optlist="cpu"
4749 case $host in
4750 power-*-*) gcc_cflags_cpu="-mcpu=power -mpower" ;;
4751 power1-*-*) gcc_cflags_cpu="-mcpu=rios1 -mpower" ;;
4752 power2-*-*) gcc_cflags_cpu="-mcpu=rios2 -mpower" ;;
4753 power2sc-*-*) gcc_cflags_cpu="-mcpu=rsc -mpower" ;;
4754 esac
4755 case $host in
4756 *-*-aix*)
4757 cclist="gcc xlc"
4758 xlc_cflags="-O2 -qarch=pwr -qmaxmem=20000"
4760 esac
4764 # IBM System/390 and z/Architecture
4765 s390-*-* | z900esa-*-* | z990esa-*-* | z9esa-*-* | z10esa-*-* | z196esa-*-* | s390x-*-* | z900-*-* | z990-*-* | z9-*-* | z10-*-* | z196-*-*)
4766 abilist="32"
4767 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4768 gcc_cflags_optlist="arch"
4769 path="s390_32"
4770 extra_functions="udiv_w_sdiv"
4771 gcc_32_cflags_maybe="-m31"
4773 case $host_cpu in
4774 s390)
4776 z900 | z900esa)
4777 cpu="z900"
4778 gccarch="$cpu"
4779 path="s390_32/esame/$cpu s390_32/esame s390_32"
4780 gcc_cflags_arch="-march=$gccarch"
4781 cat >>confdefs.h <<_ACEOF
4782 #define HAVE_HOST_CPU_s390_$cpu 1
4783 _ACEOF
4785 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4787 extra_functions=""
4789 z990 | z990esa)
4790 cpu="z990"
4791 gccarch="$cpu"
4792 path="s390_32/esame/$cpu s390_32/esame s390_32"
4793 gcc_cflags_arch="-march=$gccarch"
4794 cat >>confdefs.h <<_ACEOF
4795 #define HAVE_HOST_CPU_s390_$cpu 1
4796 _ACEOF
4798 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4800 extra_functions=""
4802 z9 | z9esa)
4803 cpu="z9"
4804 gccarch="z9-109"
4805 path="s390_32/esame/$cpu s390_32/esame s390_32"
4806 gcc_cflags_arch="-march=$gccarch"
4807 cat >>confdefs.h <<_ACEOF
4808 #define HAVE_HOST_CPU_s390_$cpu 1
4809 _ACEOF
4811 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4813 extra_functions=""
4815 z10 | z10esa)
4816 cpu="z10"
4817 gccarch="z10"
4818 path="s390_32/esame/$cpu s390_32/esame s390_32"
4819 gcc_cflags_arch="-march=$gccarch"
4820 cat >>confdefs.h <<_ACEOF
4821 #define HAVE_HOST_CPU_s390_$cpu 1
4822 _ACEOF
4824 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4826 extra_functions=""
4828 z196 | z196esa)
4829 cpu="z196"
4830 gccarch="z196"
4831 path="s390_32/esame/$cpu s390_32/esame s390_32"
4832 gcc_cflags_arch="-march=$gccarch"
4833 cat >>confdefs.h <<_ACEOF
4834 #define HAVE_HOST_CPU_s390_$cpu 1
4835 _ACEOF
4837 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4839 extra_functions=""
4841 esac
4843 case $host in
4844 s390x-*-* | z900-*-* | z990-*-* | z9-*-* | z10-*-* | z196-*-*)
4845 abilist="64 32"
4846 cclist_64="gcc"
4847 gcc_64_cflags_optlist="arch"
4848 gcc_64_cflags="$gcc_cflags -m64"
4849 path_64="s390_64/$host_cpu s390_64"
4850 extra_functions=""
4852 esac
4856 sh-*-*) path="sh" ;;
4857 sh[2-4]-*-*) path="sh/sh2 sh" ;;
4860 *sparc*-*-*)
4861 # sizeof(long)==4 or 8 is tested, to ensure we get the right ABI. We've
4862 # had various bug reports where users have set CFLAGS for their desired
4863 # mode, but not set our ABI. For some reason it's sparc where this
4864 # keeps coming up, presumably users there are accustomed to driving the
4865 # compiler mode that way. The effect of our testlist setting is to
4866 # reject ABI=64 in favour of ABI=32 if the user has forced the flags to
4867 # 32-bit mode.
4869 abilist="32"
4870 cclist="gcc acc cc"
4871 any_testlist="sizeof-long-4"
4873 echo "include_mpn(\`sparc32/sparc-defs.m4')" >> $gmp_tmpconfigm4i
4876 case $host_cpu in
4877 sparcv8 | microsparc | turbosparc)
4878 path="sparc32/v8 sparc32" ;;
4879 supersparc)
4880 path="sparc32/v8/supersparc sparc32/v8 sparc32" ;;
4881 sparc64 | sparcv9* | ultrasparc | ultrasparc[234]*)
4882 path="sparc32/v9 sparc32/v8 sparc32" ;;
4883 ultrasparct[12345])
4884 path="sparc32/ultrasparct1 sparc32/v8 sparc32" ;;
4886 path="sparc32" ;;
4887 esac
4889 # gcc 2.7.2 doesn't know about v9 and doesn't pass -xarch=v8plus to the
4890 # assembler. Add it explicitly since the solaris assembler won't accept
4891 # our sparc32/v9 asm code without it. gas accepts -xarch=v8plus too, so
4892 # it can be in the cflags unconditionally (though gas doesn't need it).
4894 # gcc -m32 is needed to force 32-bit mode on a dual-ABI system, but past
4895 # gcc doesn't know that flag, hence cflags_maybe. Note that -m32 cannot
4896 # be done through the optlist since the plain cflags would be run first
4897 # and we don't want to require the default mode (whatever it is) works.
4899 # Note it's gcc_32_cflags_maybe and not gcc_cflags_maybe because the
4900 # latter would be used in the 64-bit ABI on systems like "*bsd" where
4901 # abilist="64" only.
4903 gcc_32_cflags_maybe="-m32"
4904 gcc_cflags_optlist="cpu asm"
4906 # gcc 2.7.2 knows -mcypress, -msupersparc, -mv8, -msparclite.
4907 # gcc 2.95 knows -mcpu= v7, hypersparc, sparclite86x, f930, f934,
4908 # sparclet, tsc701, v9, ultrasparc. A warning is given that the
4909 # plain -m forms will disappear.
4910 # gcc 3.3 adds ultrasparc3.
4912 case $host_cpu in
4913 supersparc*)
4914 gcc_cflags_cpu="-mcpu=supersparc -msupersparc"
4915 gcc_cflags_asm="-Wa,-Av8 -Wa,-xarch=v8";;
4916 sparcv8 | microsparc* | turbosparc | hypersparc*)
4917 gcc_cflags_cpu="-mcpu=v8 -mv8"
4918 gcc_cflags_asm="-Wa,-Av8 -Wa,-xarch=v8";;
4919 sparc64 | sparcv9*)
4920 gcc_cflags_cpu="-mcpu=v9"
4921 gcc_32_cflags_asm="-Wa,-Av8 -Wa,-xarch=v8plus"
4922 gcc_64_cflags_asm="-Wa,-Av9 -Wa,-xarch=v9";;
4923 ultrasparc1 | ultrasparc2*)
4924 gcc_cflags_cpu="-mcpu=ultrasparc -mcpu=v9"
4925 gcc_32_cflags_asm="-Wa,-Av8plusa -Wa,-xarch=v8plusa"
4926 gcc_64_cflags_asm="-Wa,-Av9a -Wa,-xarch=v9a";;
4927 ultrasparc[34])
4928 gcc_cflags_cpu="-mcpu=ultrasparc3 -mcpu=ultrasparc -mcpu=v9"
4929 gcc_32_cflags_asm="-Wa,-Av8plusb -Wa,-xarch=v8plusb"
4930 gcc_64_cflags_asm="-Wa,-Av9b -Wa,-xarch=v9b";;
4931 ultrasparct[12])
4932 gcc_cflags_cpu="-mcpu=niagara -mcpu=v9"
4933 gcc_32_cflags_asm="-Wa,-Av8plusc -Wa,-xarch=v8plusc"
4934 gcc_64_cflags_asm="-Wa,-Av9c -Wa,-xarch=v9c";;
4935 ultrasparct3)
4936 gcc_cflags_cpu="-mcpu=niagara3 -mcpu=niagara -mcpu=v9"
4937 gcc_32_cflags_asm="-Wa,-Av8plusd -Wa,-xarch=v8plusd"
4938 gcc_64_cflags_asm="-Wa,-Av9d -Wa,-xarch=v9d";;
4939 ultrasparct4)
4940 gcc_cflags_cpu="-mcpu=niagara4 -mcpu=niagara3 -mcpu=niagara -mcpu=v9"
4941 gcc_32_cflags_asm="-Wa,-Av8plusd -Wa,-xarch=v8plusd"
4942 gcc_64_cflags_asm="-Wa,-Av9d -Wa,-xarch=v9d";;
4944 gcc_cflags_cpu="-mcpu=v7 -mcypress"
4945 gcc_cflags_asm="";;
4946 esac
4948 # SunPRO cc and acc, and SunOS bundled cc
4949 case $host in
4950 *-*-solaris* | *-*-sunos*)
4951 # Note no -g, it disables all optimizations.
4952 cc_cflags=
4953 cc_cflags_optlist="opt arch cpu"
4955 # SunOS cc doesn't know -xO4, fallback to -O2.
4956 cc_cflags_opt="-xO4 -O2"
4958 # SunOS cc doesn't know -xarch, apparently always generating v7
4959 # code, so make this optional
4960 case $host_cpu in
4961 sparcv8 | microsparc* | supersparc* | turbosparc | hypersparc*)
4962 cc_cflags_arch="-xarch=v8";;
4963 ultrasparct[345])
4964 cc_cflags_arch="-xarch=v8plusd" ;;
4965 sparc64 | sparcv9* | ultrasparc*)
4966 cc_cflags_arch="-xarch=v8plus" ;;
4968 cc_cflags_arch="-xarch=v7" ;;
4969 esac
4971 # SunOS cc doesn't know -xchip and doesn't seem to have an equivalent.
4972 # SunPRO cc 5 recognises -xchip=generic, old, super, super2, micro,
4973 # micro2, hyper, hyper2, powerup, ultra, ultra2, ultra2i.
4974 # SunPRO cc 6 adds -xchip=ultra2e, ultra3cu.
4976 case $host_cpu in
4977 supersparc*) cc_cflags_cpu="-xchip=super" ;;
4978 microsparc*) cc_cflags_cpu="-xchip=micro" ;;
4979 turbosparc) cc_cflags_cpu="-xchip=micro2" ;;
4980 hypersparc*) cc_cflags_cpu="-xchip=hyper" ;;
4981 ultrasparc) cc_cflags_cpu="-xchip=ultra" ;;
4982 ultrasparc2) cc_cflags_cpu="-xchip=ultra2 -xchip=ultra" ;;
4983 ultrasparc2i) cc_cflags_cpu="-xchip=ultra2i -xchip=ultra2 -xchip=ultra" ;;
4984 ultrasparc3) cc_cflags_cpu="-xchip=ultra3 -xchip=ultra" ;;
4985 ultrasparc4) cc_cflags_cpu="-xchip=ultra4 -xchip=ultra3 -xchip=ultra" ;;
4986 ultrasparct1) cc_cflags_cpu="-xchip=ultraT1" ;;
4987 ultrasparct2) cc_cflags_cpu="-xchip=ultraT2 -xchip=ultraT1" ;;
4988 ultrasparct3) cc_cflags_cpu="-xchip=ultraT3 -xchip=ultraT2" ;;
4989 ultrasparct4) cc_cflags_cpu="-xchip=T4" ;;
4990 ultrasparct5) cc_cflags_cpu="-xchip=T5 -xchip=T4" ;;
4991 *) cc_cflags_cpu="-xchip=generic" ;;
4992 esac
4993 esac
4995 case $host_cpu in
4996 sparc64 | sparcv9* | ultrasparc*)
4997 case $host in
4998 # Solaris 6 and earlier cannot run ABI=64 since it doesn't save
4999 # registers properly, so ABI=32 is left as the only choice.
5001 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
5003 # BSD sparc64 ports are 64-bit-only systems, so ABI=64 is the only
5004 # choice. In fact they need no special compiler flags, gcc -m64
5005 # is the default, but it doesn't hurt to add it. v9 CPUs always
5006 # use the sparc64 port, since the plain 32-bit sparc ports don't
5007 # run on a v9.
5009 *-*-*bsd*) abilist="64" ;;
5011 # For all other systems, we try both 64 and 32.
5013 # GNU/Linux sparc64 has only recently gained a 64-bit user mode.
5014 # In the past sparc64 meant a v9 cpu, but there were no 64-bit
5015 # operations in user mode. We assume that if "gcc -m64" works
5016 # then the system is suitable. Hopefully even if someone attempts
5017 # to put a new gcc and/or glibc on an old system it won't run.
5019 *) abilist="64 32" ;;
5020 esac
5022 case $host_cpu in
5023 ultrasparc | ultrasparc2 | ultrasparc2i)
5024 path_64="sparc64/ultrasparc1234 sparc64" ;;
5025 ultrasparc[34])
5026 path_64="sparc64/ultrasparc34 sparc64/ultrasparc1234 sparc64" ;;
5027 ultrasparct[12])
5028 path_64="sparc64/ultrasparct1 sparc64" ;;
5029 ultrasparct[345])
5030 path_64="sparc64/ultrasparct3 sparc64" ;;
5032 path_64="sparc64"
5033 esac
5035 cclist_64="gcc"
5036 any_64_testlist="sizeof-long-8"
5038 # gcc -mptr64 is probably implied by -m64, but we're not sure if
5039 # this was always so. On Solaris in the past we always used both
5040 # "-m64 -mptr64".
5042 # gcc -Wa,-xarch=v9 is thought to be necessary in some cases on
5043 # solaris, but it would seem likely that if gcc is going to generate
5044 # 64-bit code it will have to add that option itself where needed.
5045 # An extra copy of this option should be harmless though, but leave
5046 # it until we're sure. (Might want -xarch=v9a or -xarch=v9b for the
5047 # higher cpu types instead.)
5049 gcc_64_cflags="$gcc_cflags -m64 -mptr64"
5050 gcc_64_ldflags="-Wc,-m64"
5051 gcc_64_cflags_optlist="cpu asm"
5053 case $host in
5054 *-*-solaris*)
5055 # Sun cc.
5057 # We used to have -fast and some fixup options here, but it
5058 # recurrently caused problems with miscompilation. Of course,
5059 # -fast is documented as miscompiling things for the sake of speed.
5061 cclist_64="$cclist_64 cc"
5062 cc_64_cflags_optlist="cpu"
5063 case $host_cpu in
5064 ultrasparct[345])
5065 cc_64_cflags="$cc_64_cflags -xO3 -xarch=v9d" ;;
5067 cc_64_cflags="-xO3 -xarch=v9" ;;
5068 esac
5070 esac
5072 # using the v9 %tick register
5073 SPEED_CYCLECOUNTER_OBJ_32=sparcv9.lo
5074 SPEED_CYCLECOUNTER_OBJ_64=sparcv9.lo
5075 cyclecounter_size_32=2
5076 cyclecounter_size_64=2
5078 esac
5082 # VAX
5083 vax*-*-*elf*)
5084 # Use elf conventions (i.e., '%' register prefix, no global prefix)
5087 echo "include_mpn(\`vax/elf.m4')" >> $gmp_tmpconfigm4i
5089 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
5090 path="vax"
5091 extra_functions="udiv_w_sdiv"
5093 vax*-*-*)
5094 # Default to aout conventions (i.e., no register prefix, '_' global prefix)
5096 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
5097 path="vax"
5098 extra_functions="udiv_w_sdiv"
5102 # AMD and Intel x86 configurations, including AMD64
5104 # Rumour has it gcc -O2 used to give worse register allocation than just
5105 # -O, but lets assume that's no longer true.
5107 # -m32 forces 32-bit mode on a bi-arch 32/64 amd64 build of gcc. -m64 is
5108 # the default in such a build (we think), so -m32 is essential for ABI=32.
5109 # This is, of course, done for any $host_cpu, not just x86_64, so we can
5110 # get such a gcc into the right mode to cross-compile to say i486-*-*.
5112 # -m32 is not available in gcc 2.95 and earlier, hence cflags_maybe to use
5113 # it when it works. We check sizeof(long)==4 to ensure we get the right
5114 # mode, in case -m32 has failed not because it's an old gcc, but because
5115 # it's a dual 32/64-bit gcc without a 32-bit libc, or whatever.
5117 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | jaguar-*-* | bulldozer-*-* | piledriver-*-* | steamroller-*-* | excavator-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
5118 abilist="32"
5119 cclist="gcc icc cc"
5120 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
5121 gcc_32_cflags_maybe="-m32"
5122 icc_cflags="-no-gcc"
5123 icc_cflags_optlist="opt"
5124 icc_cflags_opt="-O3 -O2 -O1"
5125 any_32_testlist="sizeof-long-4"
5126 CALLING_CONVENTIONS_OBJS='x86call.lo x86check$U.lo'
5128 # Availability of rdtsc is checked at run-time.
5129 SPEED_CYCLECOUNTER_OBJ=pentium.lo
5131 # gcc 2.7.2 only knows i386 and i486, using -m386 or -m486. These
5132 # represent -mcpu= since -m486 doesn't generate 486 specific insns.
5133 # gcc 2.95 adds k6, pentium and pentiumpro, and takes -march= and -mcpu=.
5134 # gcc 3.0 adds athlon.
5135 # gcc 3.1 adds k6-2, k6-3, pentium-mmx, pentium2, pentium3, pentium4,
5136 # athlon-tbird, athlon-4, athlon-xp, athlon-mp.
5137 # gcc 3.2 adds winchip2.
5138 # gcc 3.3 adds winchip-c6.
5139 # gcc 3.3.1 from mandrake adds k8 and knows -mtune.
5140 # gcc 3.4 adds c3, c3-2, k8, and deprecates -mcpu in favour of -mtune.
5142 # In gcc 2.95.[0123], -march=pentiumpro provoked a stack slot bug in an
5143 # old version of mpz/powm.c. Seems to be fine with the current code, so
5144 # no need for any restrictions on that option.
5146 # -march=pentiumpro can fail if the assembler doesn't know "cmov"
5147 # (eg. solaris 2.8 native "as"), so always have -march=pentium after
5148 # that as a fallback.
5150 # -march=pentium4 and -march=k8 enable SSE2 instructions, which may or
5151 # may not be supported by the assembler and/or the OS, and is bad in gcc
5152 # prior to 3.3. The tests will reject these if no good, so fallbacks
5153 # like "-march=pentium4 -mno-sse2" are given to try also without SSE2.
5154 # Note the relevant -march types are listed in the optflags handling
5155 # below, be sure to update there if adding new types emitting SSE2.
5157 # -mtune is used at the start of each cpu option list to give something
5158 # gcc 3.4 will use, thereby avoiding warnings from -mcpu. -mcpu forms
5159 # are retained for use by prior gcc. For example pentium has
5160 # "-mtune=pentium -mcpu=pentium ...", the -mtune is for 3.4 and the
5161 # -mcpu for prior. If there's a brand new choice in 3.4 for a chip,
5162 # like k8 for x86_64, then it can be the -mtune at the start, no need to
5163 # duplicate anything.
5165 gcc_cflags_optlist="cpu arch"
5166 case $host_cpu in
5167 i386*)
5168 gcc_cflags_cpu="-mtune=i386 -mcpu=i386 -m386"
5169 gcc_cflags_arch="-march=i386"
5170 path="x86"
5172 i486*)
5173 gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486"
5174 gcc_cflags_arch="-march=i486"
5175 path="x86/i486 x86"
5177 i586 | pentium)
5178 gcc_cflags_cpu="-mtune=pentium -mcpu=pentium -m486"
5179 gcc_cflags_arch="-march=pentium"
5180 path="x86/pentium x86"
5182 pentiummmx)
5183 gcc_cflags_cpu="-mtune=pentium-mmx -mcpu=pentium-mmx -mcpu=pentium -m486"
5184 gcc_cflags_arch="-march=pentium-mmx -march=pentium"
5185 path="x86/pentium/mmx x86/pentium x86/mmx x86"
5187 i686 | pentiumpro)
5188 gcc_cflags_cpu="-mtune=pentiumpro -mcpu=pentiumpro -mcpu=i486 -m486"
5189 gcc_cflags_arch="-march=pentiumpro -march=pentium"
5190 path="x86/p6 x86"
5192 pentium2)
5193 gcc_cflags_cpu="-mtune=pentium2 -mcpu=pentium2 -mcpu=pentiumpro -mcpu=i486 -m486"
5194 gcc_cflags_arch="-march=pentium2 -march=pentiumpro -march=pentium"
5195 path="x86/p6/mmx x86/p6 x86/mmx x86"
5197 pentium3)
5198 gcc_cflags_cpu="-mtune=pentium3 -mcpu=pentium3 -mcpu=pentiumpro -mcpu=i486 -m486"
5199 gcc_cflags_arch="-march=pentium3 -march=pentiumpro -march=pentium"
5200 path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
5202 pentiumm)
5203 gcc_cflags_cpu="-mtune=pentium3 -mcpu=pentium3 -mcpu=pentiumpro -mcpu=i486 -m486"
5204 gcc_cflags_arch="-march=pentium3 -march=pentiumpro -march=pentium"
5205 path="x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
5208 gcc_cflags_cpu="-mtune=k6 -mcpu=k6 -mcpu=i486 -m486"
5209 gcc_cflags_arch="-march=k6"
5210 path="x86/k6/mmx x86/k6 x86/mmx x86"
5212 k62)
5213 gcc_cflags_cpu="-mtune=k6-2 -mcpu=k6-2 -mcpu=k6 -mcpu=i486 -m486"
5214 gcc_cflags_arch="-march=k6-2 -march=k6"
5215 path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86/mmx x86"
5217 k63)
5218 gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486"
5219 gcc_cflags_arch="-march=k6-3 -march=k6"
5220 path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86/mmx x86"
5222 geode)
5223 gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486"
5224 gcc_cflags_arch="-march=k6-3 -march=k6"
5225 path="x86/geode x86/k6/k62mmx x86/k6/mmx x86/k6 x86/mmx x86"
5227 athlon)
5228 # Athlon instruction costs are close to P6 (3 cycle load latency,
5229 # 4-6 cycle mul, 40 cycle div, pairable adc, etc) so if gcc doesn't
5230 # know athlon (eg. 2.95.2 doesn't) then fall back on pentiumpro.
5231 gcc_cflags_cpu="-mtune=athlon -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
5232 gcc_cflags_arch="-march=athlon -march=pentiumpro -march=pentium"
5233 path="x86/k7/mmx x86/k7 x86/mmx x86"
5235 i786 | pentium4)
5236 # pentiumpro is the primary fallback when gcc doesn't know pentium4.
5237 # This gets us cmov to eliminate branches. Maybe "athlon" would be
5238 # a possibility on gcc 3.0.
5240 gcc_cflags_cpu="-mtune=pentium4 -mcpu=pentium4 -mcpu=pentiumpro -mcpu=i486 -m486"
5241 gcc_cflags_arch="-march=pentium4 -march=pentium4~-mno-sse2 -march=pentiumpro -march=pentium"
5242 gcc_64_cflags_cpu="-mtune=nocona"
5243 path="x86/pentium4/sse2 x86/pentium4/mmx x86/pentium4 x86/mmx x86"
5244 path_64="x86_64/pentium4 x86_64"
5246 viac32)
5247 # Not sure of the best fallbacks here for -mcpu.
5248 # c3-2 has sse and mmx, so pentium3 is good for -march.
5249 gcc_cflags_cpu="-mtune=c3-2 -mcpu=c3-2 -mcpu=i486 -m486"
5250 gcc_cflags_arch="-march=c3-2 -march=pentium3 -march=pentiumpro -march=pentium"
5251 path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
5253 viac3*)
5254 # Not sure of the best fallbacks here.
5255 gcc_cflags_cpu="-mtune=c3 -mcpu=c3 -mcpu=i486 -m486"
5256 gcc_cflags_arch="-march=c3 -march=pentium-mmx -march=pentium"
5257 path="x86/pentium/mmx x86/pentium x86/mmx x86"
5259 athlon64 | k8 | x86_64)
5260 gcc_cflags_cpu="-mtune=k8 -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
5261 gcc_cflags_arch="-march=k8 -march=k8~-mno-sse2 -march=athlon -march=pentiumpro -march=pentium"
5262 path="x86/k8 x86/k7/mmx x86/k7 x86/mmx x86"
5263 path_64="x86_64/k8 x86_64"
5265 k10)
5266 gcc_cflags_cpu="-mtune=amdfam10 -mtune=k8"
5267 gcc_cflags_arch="-march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5268 path="x86/k10 x86/k8 x86/k7/mmx x86/k7 x86/mmx x86"
5269 path_64="x86_64/k10 x86_64/k8 x86_64"
5271 bobcat)
5272 gcc_cflags_cpu="-mtune=btver1 -mtune=amdfam10 -mtune=k8"
5273 gcc_cflags_arch="-march=btver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5274 path="x86/bobcat x86/k7/mmx x86/k7 x86/mmx x86"
5275 path_64="x86_64/bobcat x86_64/k10 x86_64/k8 x86_64"
5277 jaguar)
5278 gcc_cflags_cpu="-mtune=btver2 -mtune=btver1 -mtune=amdfam10 -mtune=k8"
5279 gcc_cflags_arch="-march=btver2 -march=btver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5280 path="x86/jaguar x86/bobcat x86/k7/mmx x86/k7 x86/mmx x86"
5281 path_64="x86_64/jaguar x86_64/bobcat x86_64/k10 x86_64/k8 x86_64"
5283 bulldozer | bd1)
5284 gcc_cflags_cpu="-mtune=bdver1 -mtune=amdfam10 -mtune=k8"
5285 gcc_cflags_arch="-march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5286 path="x86/bd1 x86/k7/mmx x86/k7 x86/mmx x86"
5287 path_64="x86_64/bd1 x86_64/k10 x86_64/k8 x86_64"
5289 piledriver | bd2)
5290 gcc_cflags_cpu="-mtune=bdver2 -mtune=bdver1 -mtune=amdfam10 -mtune=k8"
5291 gcc_cflags_arch="-march=bdver2 -march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5292 path="x86/bd2 x86/bd1 x86/k7/mmx x86/k7 x86/mmx x86"
5293 path_64="x86_64/bd2 x86_64/bd1 x86_64/k10 x86_64/k8 x86_64"
5295 steamroller | bd3)
5296 gcc_cflags_cpu="-mtune=bdver3 -mtune=bdver2 -mtune=bdver1 -mtune=amdfam10 -mtune=k8"
5297 gcc_cflags_arch="-march=bdver3 -march=bdver2 -march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5298 path="x86/bd3 x86/bd2 x86/bd1 x86/k7/mmx x86/k7 x86/mmx x86"
5299 path_64="x86_64/bd3 x86_64/bd2 x86_64/bd1 x86_64/k10 x86_64/k8 x86_64"
5301 excavator | bd4)
5302 gcc_cflags_cpu="-mtune=bdver4 -mtune=bdver3 -mtune=bdver2 -mtune=bdver1 -mtune=amdfam10 -mtune=k8"
5303 gcc_cflags_arch="-march=bdver4 -march=bdver3 -march=bdver2 -march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5304 path="x86/bd4 x86/bd3 x86/bd2 x86/bd1 x86/k7/mmx x86/k7 x86/mmx x86"
5305 path_64="x86_64/bd4 x86_64/bd3 x86_64/bd2 x86_64/bd1 x86_64/k10 x86_64/k8 x86_64"
5307 core2)
5308 gcc_cflags_cpu="-mtune=core2 -mtune=k8"
5309 gcc_cflags_arch="-march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
5310 path="x86/core2 x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
5311 path_64="x86_64/core2 x86_64"
5313 corei | coreinhm | coreiwsm)
5314 gcc_cflags_cpu="-mtune=corei7 -mtune=core2 -mtune=k8"
5315 gcc_cflags_arch="-march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
5316 path="x86/coreinhm x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
5317 path_64="x86_64/coreinhm x86_64/core2 x86_64"
5319 coreisbr)
5320 gcc_cflags_cpu="-mtune=corei7 -mtune=core2 -mtune=k8"
5321 gcc_cflags_arch="-march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
5322 path="x86/coreisbr x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
5323 path_64="x86_64/coreisbr x86_64/coreinhm x86_64/core2 x86_64"
5325 coreihwl)
5326 gcc_cflags_cpu="-mtune=corei7 -mtune=core2 -mtune=k8"
5327 gcc_cflags_arch="-march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
5328 path="x86/coreisbr x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
5329 path_64="x86_64/coreihwl x86_64/coreisbr x86_64/coreinhm x86_64/core2 x86_64"
5331 coreibwl)
5332 gcc_cflags_cpu="-mtune=corei7 -mtune=core2 -mtune=k8"
5333 gcc_cflags_arch="-march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
5334 path="x86/coreisbr x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
5335 path_64="x86_64/coreihwl x86_64/coreisbr x86_64/coreinhm x86_64/core2 x86_64"
5336 # extra_functions_64="missing" # enable for bmi2/adx simulation
5338 atom)
5339 gcc_cflags_cpu="-mtune=atom -mtune=pentium3"
5340 gcc_cflags_arch="-march=atom -march=pentium3"
5341 path="x86/atom/sse2 x86/atom/mmx x86/atom x86/mmx x86"
5342 path_64="x86_64/atom x86_64"
5344 nano)
5345 gcc_cflags_cpu="-mtune=nano"
5346 gcc_cflags_arch="-march=nano"
5347 path="x86/nano x86/mmx x86"
5348 path_64="x86_64/nano x86_64"
5351 gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486"
5352 gcc_cflags_arch="-march=i486"
5353 path="x86"
5354 path_64="x86_64"
5356 esac
5358 case $host in
5359 athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | jaguar-*-* | bulldozer-*-* | piledriver-*-* | steamroller-*-* | excavator-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
5360 cclist_64="gcc cc"
5361 gcc_64_cflags="$gcc_cflags -m64"
5362 gcc_64_cflags_optlist="cpu arch"
5363 CALLING_CONVENTIONS_OBJS_64='amd64call.lo amd64check$U.lo'
5364 SPEED_CYCLECOUNTER_OBJ_64=x86_64.lo
5365 cyclecounter_size_64=2
5367 cclist_x32="gcc cc"
5368 gcc_x32_cflags="$gcc_cflags -mx32"
5369 gcc_x32_cflags_optlist="$gcc_64_cflags_optlist"
5370 CALLING_CONVENTIONS_OBJS_x32="$CALLING_CONVENTIONS_OBJS_64"
5371 SPEED_CYCLECOUNTER_OBJ_x32="$SPEED_CYCLECOUNTER_OBJ_64"
5372 cyclecounter_size_x32="$cyclecounter_size_64"
5373 path_x32="$path_64"
5374 limb_x32=longlong
5375 any_x32_testlist="sizeof-long-4"
5377 abilist="64 x32 32"
5378 if test "$enable_assembly" = "yes" ; then
5379 extra_functions_64="$extra_functions_64 invert_limb_table"
5380 extra_functions_x32=$extra_functions_64
5383 case $host in
5384 *-*-solaris*)
5385 # Sun cc.
5386 cc_64_cflags="-xO3 -m64"
5388 *-*-mingw* | *-*-cygwin)
5389 limb_64=longlong
5390 CALLING_CONVENTIONS_OBJS_64=""
5392 $as_echo "#define HOST_DOS64 1" >>confdefs.h
5394 GMP_NONSTD_ABI_64=DOS64
5396 esac
5398 esac
5402 # Special CPU "none" used to select generic C, now this is obsolete.
5403 none-*-*)
5404 enable_assembly=no
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the \"none\" host is obsolete, use --disable-assembly" >&5
5406 $as_echo "$as_me: WARNING: the \"none\" host is obsolete, use --disable-assembly" >&2;}
5409 esac
5411 # mingw can be built by the cygwin gcc if -mno-cygwin is added. For
5412 # convenience add this automatically if it works. Actual mingw gcc accepts
5413 # -mno-cygwin too, but of course is the default. mingw only runs on the
5414 # x86s, but allow any CPU here so as to catch "none" too.
5416 case $host in
5417 *-*-mingw*)
5418 gcc_cflags_optlist="$gcc_cflags_optlist nocygwin"
5419 gcc_cflags_nocygwin="-mno-cygwin"
5421 esac
5424 CFLAGS_or_unset=${CFLAGS-'(unset)'}
5425 CPPFLAGS_or_unset=${CPPFLAGS-'(unset)'}
5427 cat >&5 <<EOF
5428 User:
5429 ABI=$ABI
5430 CC=$CC
5431 CFLAGS=$CFLAGS_or_unset
5432 CPPFLAGS=$CPPFLAGS_or_unset
5433 MPN_PATH=$MPN_PATH
5434 GMP:
5435 abilist=$abilist
5436 cclist=$cclist
5440 test_CFLAGS=${CFLAGS+set}
5441 test_CPPFLAGS=${CPPFLAGS+set}
5443 for abi in $abilist; do
5444 abi_last="$abi"
5445 done
5447 # If the user specifies an ABI then it must be in $abilist, after that
5448 # $abilist is restricted to just that choice.
5450 if test -n "$ABI"; then
5451 found=no
5452 for abi in $abilist; do
5453 if test $abi = "$ABI"; then found=yes; break; fi
5454 done
5455 if test $found = no; then
5456 as_fn_error $? "ABI=$ABI is not among the following valid choices: $abilist" "$LINENO" 5
5458 abilist="$ABI"
5461 found_compiler=no
5463 for abi in $abilist; do
5465 echo "checking ABI=$abi"
5467 # Suppose abilist="64 32", then for abi=64, will have abi1="_64" and
5468 # abi2="_64". For abi=32, will have abi1="_32" and abi2="". This is how
5469 # $gcc_cflags becomes a fallback for $gcc_32_cflags (the last in the
5470 # abilist), but there's no fallback for $gcc_64_cflags.
5472 abi1=`echo _$abi | sed 's/[.]//g'`
5473 if test $abi = $abi_last; then abi2=; else abi2="$abi1"; fi
5475 # Compiler choices under this ABI
5476 eval cclist_chosen=\"\$cclist$abi1\"
5477 test -n "$cclist_chosen" || eval cclist_chosen=\"\$cclist$abi2\"
5479 # If there's a user specified $CC then don't use a list for
5480 # $cclist_chosen, just a single value for $ccbase.
5482 if test -n "$CC"; then
5484 # The first word of $CC, stripped of any directory. For instance
5485 # CC="/usr/local/bin/gcc -pipe" will give "gcc".
5487 for ccbase in $CC; do break; done
5488 ccbase=`echo $ccbase | sed 's:.*/::'`
5490 # If this $ccbase is in $cclist_chosen then it's a compiler we know and
5491 # we can do flags defaulting with it. If not, then $cclist_chosen is
5492 # set to "unrecognised" so no default flags are used.
5494 # "unrecognised" is used to avoid bad effects with eval if $ccbase has
5495 # non-symbol characters. For instance ccbase=my+cc would end up with
5496 # something like cflags="$my+cc_cflags" which would give
5497 # cflags="+cc_cflags" rather than the intended empty string for an
5498 # unknown compiler.
5500 found=unrecognised
5501 for i in $cclist_chosen; do
5502 if test "$ccbase" = $i; then
5503 found=$ccbase
5504 break
5506 done
5507 cclist_chosen=$found
5510 for ccbase in $cclist_chosen; do
5512 # When cross compiling, look for a compiler with the $host_alias as a
5513 # prefix, the same way that AC_CHECK_TOOL does. But don't do this to a
5514 # user-selected $CC.
5516 # $cross_compiling will be yes/no/maybe at this point. Do the host
5517 # prefixing for "maybe" as well as "yes".
5519 if test "$cross_compiling" != no && test -z "$CC"; then
5520 cross_compiling_prefix="${host_alias}-"
5523 for ccprefix in $cross_compiling_prefix ""; do
5525 cc="$CC"
5526 test -n "$cc" || cc="$ccprefix$ccbase"
5528 # If the compiler is gcc but installed under another name, then change
5529 # $ccbase so as to use the flags we know for gcc. This helps for
5530 # instance when specifying CC=gcc272 on Debian GNU/Linux, or the
5531 # native cc which is really gcc on NeXT or MacOS-X.
5533 # FIXME: There's a slight misfeature here. If cc is actually gcc but
5534 # gcc is not a known compiler under this $abi then we'll end up
5535 # testing it with no flags and it'll work, but chances are it won't be
5536 # in the right mode for the ABI we desire. Let's quietly hope this
5537 # doesn't happen.
5539 if test $ccbase != gcc; then
5540 cat >conftest.c <<EOF
5541 #if ! defined (__GNUC__) || defined (__INTEL_COMPILER)
5542 choke me
5543 #endif
5545 gmp_compile="$cc -c conftest.c >&5"
5546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5547 (eval $gmp_compile) 2>&5
5548 ac_status=$?
5549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5550 test $ac_status = 0; }; then
5551 rm -f conftest*
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $cc is gcc" >&5
5553 $as_echo_n "checking whether $cc is gcc... " >&6; }
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5555 $as_echo "yes" >&6; }
5556 ccbase=gcc
5557 else
5558 rm -f conftest*
5564 # Similarly if the compiler is IBM xlc but invoked as cc or whatever
5565 # then change $ccbase and make the default xlc flags available.
5566 if test $ccbase != xlc; then
5567 gmp_command="$cc 2>&1 | grep xlc >/dev/null"
5568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_command\""; } >&5
5569 (eval $gmp_command) 2>&5
5570 ac_status=$?
5571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5572 test $ac_status = 0; }; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $cc is xlc" >&5
5574 $as_echo_n "checking whether $cc is xlc... " >&6; }
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5576 $as_echo "yes" >&6; }
5577 ccbase=xlc
5578 else
5584 # acc was Sun's first unbundled compiler back in the SunOS days, or
5585 # something like that, but today its man page says it's not meant to
5586 # be used directly (instead via /usr/ucb/cc). The options are pretty
5587 # much the same as the main SunPRO cc, so share those configs.
5589 case $host in
5590 *sparc*-*-solaris* | *sparc*-*-sunos*)
5591 if test "$ccbase" = acc; then ccbase=cc; fi ;;
5592 esac
5594 for tmp_cflags_maybe in yes no; do
5595 eval cflags=\"\$${ccbase}${abi1}_cflags\"
5596 test -n "$cflags" || eval cflags=\"\$${ccbase}${abi2}_cflags\"
5598 if test "$tmp_cflags_maybe" = yes; then
5599 # don't try cflags_maybe when the user set CFLAGS
5600 if test "$test_CFLAGS" = set; then continue; fi
5601 eval cflags_maybe=\"\$${ccbase}${abi1}_cflags_maybe\"
5602 test -n "$cflags_maybe" || eval cflags_maybe=\"\$${ccbase}${abi2}_cflags_maybe\"
5603 # don't try cflags_maybe if there's nothing set
5604 if test -z "$cflags_maybe"; then continue; fi
5605 cflags="$cflags_maybe $cflags"
5608 # Any user CFLAGS, even an empty string, takes precedence
5609 if test "$test_CFLAGS" = set; then cflags=$CFLAGS; fi
5611 # Any user CPPFLAGS, even an empty string, takes precedence
5612 eval cppflags=\"\$${ccbase}${abi1}_cppflags\"
5613 test -n "$cppflags" || eval cppflags=\"\$${ccbase}${abi2}_cppflags\"
5614 if test "$test_CPPFLAGS" = set; then cppflags=$CPPFLAGS; fi
5616 # --enable-profiling adds -p/-pg even to user-specified CFLAGS.
5617 # This is convenient, but it's perhaps a bit naughty to modify user
5618 # CFLAGS.
5619 case "$enable_profiling" in
5620 prof) cflags="$cflags -p" ;;
5621 gprof) cflags="$cflags -pg" ;;
5622 instrument) cflags="$cflags -finstrument-functions" ;;
5623 esac
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags" >&5
5626 $as_echo_n "checking compiler $cc $cflags $cppflags... " >&6; }
5627 gmp_prog_cc_works=yes
5629 # first see a simple "main()" works, then go on to other checks
5630 if test "$gmp_prog_cc_works" = yes; then
5631 # remove anything that might look like compiler output to our "||" expression
5632 rm -f conftest* a.out b.out a.exe a_out.exe
5633 cat >conftest.c <<EOF
5635 int main () { return 0; }
5637 echo "Test compile: " >&5
5638 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5640 (eval $gmp_compile) 2>&5
5641 ac_status=$?
5642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5643 test $ac_status = 0; }; then
5644 cc_works_part=yes
5645 if test "$cross_compiling" = no; then
5646 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5648 (eval $ac_try) 2>&5
5649 ac_status=$?
5650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5651 test $ac_status = 0; }; }; then :;
5652 else
5653 cc_works_part=norun
5656 else
5657 cc_works_part=no
5659 if test "$cc_works_part" != yes; then
5660 echo "failed program was:" >&5
5661 cat conftest.c >&5
5663 rm -f conftest* a.out b.out a.exe a_out.exe
5664 case $cc_works_part in
5665 yes)
5669 gmp_prog_cc_works="no"
5671 norun)
5672 gmp_prog_cc_works="no, program does not run"
5674 esac
5680 if test "$gmp_prog_cc_works" = yes; then
5681 # remove anything that might look like compiler output to our "||" expression
5682 rm -f conftest* a.out b.out a.exe a_out.exe
5683 cat >conftest.c <<EOF
5684 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
5685 (without -maix64), hence detecting an unusable compiler */
5686 void *g() { return (void *) 0; }
5687 void *f() { return g(); }
5689 int main () { return 0; }
5691 echo "Test compile: function pointer return" >&5
5692 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5694 (eval $gmp_compile) 2>&5
5695 ac_status=$?
5696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5697 test $ac_status = 0; }; then
5698 cc_works_part=yes
5699 if test "$cross_compiling" = no; then
5700 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5702 (eval $ac_try) 2>&5
5703 ac_status=$?
5704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5705 test $ac_status = 0; }; }; then :;
5706 else
5707 cc_works_part=norun
5710 else
5711 cc_works_part=no
5713 if test "$cc_works_part" != yes; then
5714 echo "failed program was:" >&5
5715 cat conftest.c >&5
5717 rm -f conftest* a.out b.out a.exe a_out.exe
5718 case $cc_works_part in
5719 yes)
5723 gmp_prog_cc_works="no, function pointer return"
5725 norun)
5726 gmp_prog_cc_works="no, function pointer return, program does not run"
5728 esac
5734 if test "$gmp_prog_cc_works" = yes; then
5735 # remove anything that might look like compiler output to our "||" expression
5736 rm -f conftest* a.out b.out a.exe a_out.exe
5737 cat >conftest.c <<EOF
5738 /* The following provokes an invalid instruction syntax from i386 gcc
5739 -march=pentiumpro on Solaris 2.8. The native sun assembler
5740 requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
5741 least) doesn't know. */
5742 int n;
5743 int cmov () { return (n >= 0 ? n : 0); }
5745 int main () { return 0; }
5747 echo "Test compile: cmov instruction" >&5
5748 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5750 (eval $gmp_compile) 2>&5
5751 ac_status=$?
5752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5753 test $ac_status = 0; }; then
5754 cc_works_part=yes
5755 if test "$cross_compiling" = no; then
5756 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5758 (eval $ac_try) 2>&5
5759 ac_status=$?
5760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5761 test $ac_status = 0; }; }; then :;
5762 else
5763 cc_works_part=norun
5766 else
5767 cc_works_part=no
5769 if test "$cc_works_part" != yes; then
5770 echo "failed program was:" >&5
5771 cat conftest.c >&5
5773 rm -f conftest* a.out b.out a.exe a_out.exe
5774 case $cc_works_part in
5775 yes)
5779 gmp_prog_cc_works="no, cmov instruction"
5781 norun)
5782 gmp_prog_cc_works="no, cmov instruction, program does not run"
5784 esac
5790 if test "$gmp_prog_cc_works" = yes; then
5791 # remove anything that might look like compiler output to our "||" expression
5792 rm -f conftest* a.out b.out a.exe a_out.exe
5793 cat >conftest.c <<EOF
5794 /* The following provokes a linker invocation problem with gcc 3.0.3
5795 on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630
5796 option causes gcc to incorrectly select the 32-bit libgcc.a, not
5797 the 64-bit one, and consequently it misses out on the __fixunsdfdi
5798 helper (double -> uint64 conversion). */
5799 double d;
5800 unsigned long gcc303 () { return (unsigned long) d; }
5802 int main () { return 0; }
5804 echo "Test compile: double -> ulong conversion" >&5
5805 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5807 (eval $gmp_compile) 2>&5
5808 ac_status=$?
5809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5810 test $ac_status = 0; }; then
5811 cc_works_part=yes
5812 if test "$cross_compiling" = no; then
5813 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5815 (eval $ac_try) 2>&5
5816 ac_status=$?
5817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5818 test $ac_status = 0; }; }; then :;
5819 else
5820 cc_works_part=norun
5823 else
5824 cc_works_part=no
5826 if test "$cc_works_part" != yes; then
5827 echo "failed program was:" >&5
5828 cat conftest.c >&5
5830 rm -f conftest* a.out b.out a.exe a_out.exe
5831 case $cc_works_part in
5832 yes)
5836 gmp_prog_cc_works="no, double -> ulong conversion"
5838 norun)
5839 gmp_prog_cc_works="no, double -> ulong conversion, program does not run"
5841 esac
5847 if test "$gmp_prog_cc_works" = yes; then
5848 # remove anything that might look like compiler output to our "||" expression
5849 rm -f conftest* a.out b.out a.exe a_out.exe
5850 cat >conftest.c <<EOF
5851 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
5852 the assembler doesn't know hppa 2.0 instructions. fneg is a 2.0
5853 instruction, and a negation like this comes out using it. */
5854 double fneg_data;
5855 unsigned long fneg () { return -fneg_data; }
5857 int main () { return 0; }
5859 echo "Test compile: double negation" >&5
5860 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5862 (eval $gmp_compile) 2>&5
5863 ac_status=$?
5864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5865 test $ac_status = 0; }; then
5866 cc_works_part=yes
5867 if test "$cross_compiling" = no; then
5868 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5873 test $ac_status = 0; }; }; then :;
5874 else
5875 cc_works_part=norun
5878 else
5879 cc_works_part=no
5881 if test "$cc_works_part" != yes; then
5882 echo "failed program was:" >&5
5883 cat conftest.c >&5
5885 rm -f conftest* a.out b.out a.exe a_out.exe
5886 case $cc_works_part in
5887 yes)
5891 gmp_prog_cc_works="no, double negation"
5893 norun)
5894 gmp_prog_cc_works="no, double negation, program does not run"
5896 esac
5902 if test "$gmp_prog_cc_works" = yes; then
5903 # remove anything that might look like compiler output to our "||" expression
5904 rm -f conftest* a.out b.out a.exe a_out.exe
5905 cat >conftest.c <<EOF
5906 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
5907 (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
5908 those instructions. Not sure how much of the gmp code will come out
5909 wanting sse2, but it's easiest to reject an option we know is bad. */
5910 double ftod_data;
5911 float ftod () { return (float) ftod_data; }
5913 int main () { return 0; }
5915 echo "Test compile: double -> float conversion" >&5
5916 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5918 (eval $gmp_compile) 2>&5
5919 ac_status=$?
5920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5921 test $ac_status = 0; }; then
5922 cc_works_part=yes
5923 if test "$cross_compiling" = no; then
5924 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5926 (eval $ac_try) 2>&5
5927 ac_status=$?
5928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5929 test $ac_status = 0; }; }; then :;
5930 else
5931 cc_works_part=norun
5934 else
5935 cc_works_part=no
5937 if test "$cc_works_part" != yes; then
5938 echo "failed program was:" >&5
5939 cat conftest.c >&5
5941 rm -f conftest* a.out b.out a.exe a_out.exe
5942 case $cc_works_part in
5943 yes)
5947 gmp_prog_cc_works="no, double -> float conversion"
5949 norun)
5950 gmp_prog_cc_works="no, double -> float conversion, program does not run"
5952 esac
5958 if test "$gmp_prog_cc_works" = yes; then
5959 # remove anything that might look like compiler output to our "||" expression
5960 rm -f conftest* a.out b.out a.exe a_out.exe
5961 cat >conftest.c <<EOF
5962 /* The following provokes an internal compiler error from gcc version
5963 "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
5964 values being spilled into floating point registers. The problem doesn't
5965 show up all the time, but has occurred enough in GMP for us to reject
5966 this compiler+flags. */
5967 #include <string.h> /* for memcpy */
5968 struct try_t
5970 char dst[2];
5971 char size;
5972 long d0, d1, d2, d3, d4, d5, d6;
5973 char overlap;
5975 struct try_t param[6];
5977 param_init ()
5979 struct try_t *p;
5980 memcpy (p, &param[ 2 ], sizeof (*p));
5981 memcpy (p, &param[ 2 ], sizeof (*p));
5982 p->size = 2;
5983 memcpy (p, &param[ 1 ], sizeof (*p));
5984 p->dst[0] = 1;
5985 p->overlap = 2;
5986 memcpy (p, &param[ 3 ], sizeof (*p));
5987 p->dst[0] = 1;
5988 p->overlap = 8;
5989 memcpy (p, &param[ 4 ], sizeof (*p));
5990 memcpy (p, &param[ 4 ], sizeof (*p));
5991 p->overlap = 8;
5992 memcpy (p, &param[ 5 ], sizeof (*p));
5993 memcpy (p, &param[ 5 ], sizeof (*p));
5994 memcpy (p, &param[ 5 ], sizeof (*p));
5995 return 0;
5998 int main () { return 0; }
6000 echo "Test compile: gnupro alpha ev6 char spilling" >&5
6001 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6003 (eval $gmp_compile) 2>&5
6004 ac_status=$?
6005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6006 test $ac_status = 0; }; then
6007 cc_works_part=yes
6008 if test "$cross_compiling" = no; then
6009 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6011 (eval $ac_try) 2>&5
6012 ac_status=$?
6013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6014 test $ac_status = 0; }; }; then :;
6015 else
6016 cc_works_part=norun
6019 else
6020 cc_works_part=no
6022 if test "$cc_works_part" != yes; then
6023 echo "failed program was:" >&5
6024 cat conftest.c >&5
6026 rm -f conftest* a.out b.out a.exe a_out.exe
6027 case $cc_works_part in
6028 yes)
6032 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling"
6034 norun)
6035 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run"
6037 esac
6043 # __builtin_alloca is not available everywhere, check it exists before
6044 # seeing that it works
6045 if test "$gmp_prog_cc_works" = yes; then
6046 # remove anything that might look like compiler output to our "||" expression
6047 rm -f conftest* a.out b.out a.exe a_out.exe
6048 cat >conftest.c <<EOF
6049 int k; int foo () { __builtin_alloca (k); }
6051 echo "Test compile: __builtin_alloca availability" >&5
6052 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6054 (eval $gmp_compile) 2>&5
6055 ac_status=$?
6056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6057 test $ac_status = 0; }; then
6058 cc_works_part=yes
6059 if test "$cross_compiling" = no; then
6060 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6062 (eval $ac_try) 2>&5
6063 ac_status=$?
6064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6065 test $ac_status = 0; }; }; then :;
6066 else
6067 cc_works_part=norun
6070 else
6071 cc_works_part=no
6073 if test "$cc_works_part" != yes; then
6074 echo "failed program was:" >&5
6075 cat conftest.c >&5
6077 rm -f conftest* a.out b.out a.exe a_out.exe
6078 case $cc_works_part in
6079 yes)
6080 if test "$gmp_prog_cc_works" = yes; then
6081 # remove anything that might look like compiler output to our "||" expression
6082 rm -f conftest* a.out b.out a.exe a_out.exe
6083 cat >conftest.c <<EOF
6084 /* The following provokes an internal compiler error from Itanium HP-UX cc
6085 under +O2 or higher. We use this sort of code in mpn/generic/mul_fft.c. */
6086 int k;
6087 int foo ()
6089 int i, **a;
6090 a = __builtin_alloca (k);
6091 for (i = 0; i <= k; i++)
6092 a[i] = __builtin_alloca (1 << i);
6095 int main () { return 0; }
6097 echo "Test compile: alloca array" >&5
6098 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6100 (eval $gmp_compile) 2>&5
6101 ac_status=$?
6102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6103 test $ac_status = 0; }; then
6104 cc_works_part=yes
6105 if test "$cross_compiling" = no; then
6106 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6108 (eval $ac_try) 2>&5
6109 ac_status=$?
6110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6111 test $ac_status = 0; }; }; then :;
6112 else
6113 cc_works_part=norun
6116 else
6117 cc_works_part=no
6119 if test "$cc_works_part" != yes; then
6120 echo "failed program was:" >&5
6121 cat conftest.c >&5
6123 rm -f conftest* a.out b.out a.exe a_out.exe
6124 case $cc_works_part in
6125 yes)
6129 gmp_prog_cc_works="no, alloca array"
6131 norun)
6132 gmp_prog_cc_works="no, alloca array, program does not run"
6134 esac
6143 norun)
6146 esac
6150 if test "$gmp_prog_cc_works" = yes; then
6151 # remove anything that might look like compiler output to our "||" expression
6152 rm -f conftest* a.out b.out a.exe a_out.exe
6153 cat >conftest.c <<EOF
6154 /* The following provokes an internal error from the assembler on
6155 power2-ibm-aix4.3.1.0. gcc -mrios2 compiles to nabs+fcirz, and this
6156 results in "Internal error related to the source program domain".
6158 For reference it seems to be the combination of nabs+fcirz which is bad,
6159 not either alone. This sort of thing occurs in mpz/get_str.c with the
6160 way double chars_per_bit_exactly is applied in MPN_SIZEINBASE. Perhaps
6161 if that code changes to a scaled-integer style then we won't need this
6162 test. */
6164 double fp[1];
6165 int x;
6166 int f ()
6168 int a;
6169 a = (x >= 0 ? x : -x);
6170 return a * fp[0];
6173 int main () { return 0; }
6175 echo "Test compile: abs int -> double conversion" >&5
6176 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6178 (eval $gmp_compile) 2>&5
6179 ac_status=$?
6180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6181 test $ac_status = 0; }; then
6182 cc_works_part=yes
6183 if test "$cross_compiling" = no; then
6184 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6186 (eval $ac_try) 2>&5
6187 ac_status=$?
6188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6189 test $ac_status = 0; }; }; then :;
6190 else
6191 cc_works_part=norun
6194 else
6195 cc_works_part=no
6197 if test "$cc_works_part" != yes; then
6198 echo "failed program was:" >&5
6199 cat conftest.c >&5
6201 rm -f conftest* a.out b.out a.exe a_out.exe
6202 case $cc_works_part in
6203 yes)
6207 gmp_prog_cc_works="no, abs int -> double conversion"
6209 norun)
6210 gmp_prog_cc_works="no, abs int -> double conversion, program does not run"
6212 esac
6218 if test "$gmp_prog_cc_works" = yes; then
6219 # remove anything that might look like compiler output to our "||" expression
6220 rm -f conftest* a.out b.out a.exe a_out.exe
6221 cat >conftest.c <<EOF
6222 /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
6223 Extracted from tests/mpn/t-iord_u.c. Causes Apple's gcc 3.3 build 1640 and
6224 1666 to segfault with e.g., -O2 -mpowerpc64. */
6226 #if defined (__GNUC__) && ! defined (__cplusplus)
6227 typedef unsigned long long t1;typedef t1*t2;
6228 static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
6229 {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;}
6230 f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
6231 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();}}
6232 h(){}g(){}
6233 #else
6234 int dummy;
6235 #endif
6237 int main () { return 0; }
6239 echo "Test compile: long long reliability test 1" >&5
6240 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6242 (eval $gmp_compile) 2>&5
6243 ac_status=$?
6244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6245 test $ac_status = 0; }; then
6246 cc_works_part=yes
6247 if test "$cross_compiling" = no; then
6248 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6250 (eval $ac_try) 2>&5
6251 ac_status=$?
6252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6253 test $ac_status = 0; }; }; then :;
6254 else
6255 cc_works_part=norun
6258 else
6259 cc_works_part=no
6261 if test "$cc_works_part" != yes; then
6262 echo "failed program was:" >&5
6263 cat conftest.c >&5
6265 rm -f conftest* a.out b.out a.exe a_out.exe
6266 case $cc_works_part in
6267 yes)
6271 gmp_prog_cc_works="no, long long reliability test 1"
6273 norun)
6274 gmp_prog_cc_works="no, long long reliability test 1, program does not run"
6276 esac
6282 if test "$gmp_prog_cc_works" = yes; then
6283 # remove anything that might look like compiler output to our "||" expression
6284 rm -f conftest* a.out b.out a.exe a_out.exe
6285 cat >conftest.c <<EOF
6286 /* The following provokes an internal compiler error on powerpc-apple-darwin.
6287 Extracted from mpz/cfdiv_q_2exp.c. Causes Apple's gcc 3.3 build 1640 and
6288 1666 to get an ICE with -O1 -mpowerpc64. */
6290 #if defined (__GNUC__) && ! defined (__cplusplus)
6291 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();}
6292 g(){}
6293 #else
6294 int dummy;
6295 #endif
6297 int main () { return 0; }
6299 echo "Test compile: long long reliability test 2" >&5
6300 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6302 (eval $gmp_compile) 2>&5
6303 ac_status=$?
6304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6305 test $ac_status = 0; }; then
6306 cc_works_part=yes
6307 if test "$cross_compiling" = no; then
6308 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6310 (eval $ac_try) 2>&5
6311 ac_status=$?
6312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6313 test $ac_status = 0; }; }; then :;
6314 else
6315 cc_works_part=norun
6318 else
6319 cc_works_part=no
6321 if test "$cc_works_part" != yes; then
6322 echo "failed program was:" >&5
6323 cat conftest.c >&5
6325 rm -f conftest* a.out b.out a.exe a_out.exe
6326 case $cc_works_part in
6327 yes)
6331 gmp_prog_cc_works="no, long long reliability test 2"
6333 norun)
6334 gmp_prog_cc_works="no, long long reliability test 2, program does not run"
6336 esac
6342 if test "$gmp_prog_cc_works" = yes; then
6343 # remove anything that might look like compiler output to our "||" expression
6344 rm -f conftest* a.out b.out a.exe a_out.exe
6345 cat >conftest.c <<EOF
6346 /* The following is mis-compiled by HP ia-64 cc version
6347 cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
6348 under "cc +O3", both in +DD32 and +DD64 modes. The mpn_lshift_com gets
6349 inlined and its return value somehow botched to be 0 instead of 1. This
6350 arises in the real mpn_lshift_com in mul_fft.c. A lower optimization
6351 level, like +O2 seems ok. This code needs to be run to show the problem,
6352 but that's fine, the offending cc is a native-only compiler so we don't
6353 have to worry about cross compiling. */
6355 #if ! defined (__cplusplus)
6356 unsigned long
6357 lshift_com (rp, up, n, cnt)
6358 unsigned long *rp;
6359 unsigned long *up;
6360 long n;
6361 unsigned cnt;
6363 unsigned long retval, high_limb, low_limb;
6364 unsigned tnc;
6365 long i;
6366 tnc = 8 * sizeof (unsigned long) - cnt;
6367 low_limb = *up++;
6368 retval = low_limb >> tnc;
6369 high_limb = low_limb << cnt;
6370 for (i = n - 1; i != 0; i--)
6372 low_limb = *up++;
6373 *rp++ = ~(high_limb | (low_limb >> tnc));
6374 high_limb = low_limb << cnt;
6376 return retval;
6379 main ()
6381 unsigned long cy, rp[2], up[2];
6382 up[0] = ~ 0L;
6383 up[1] = 0;
6384 cy = lshift_com (rp, up, 2L, 1);
6385 if (cy != 1L)
6386 return 1;
6387 return 0;
6389 #else
6391 main ()
6393 return 0;
6395 #endif
6398 echo "Test compile: mpn_lshift_com optimization" >&5
6399 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6401 (eval $gmp_compile) 2>&5
6402 ac_status=$?
6403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6404 test $ac_status = 0; }; then
6405 cc_works_part=yes
6406 if test "$cross_compiling" = no; then
6407 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6409 (eval $ac_try) 2>&5
6410 ac_status=$?
6411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6412 test $ac_status = 0; }; }; then :;
6413 else
6414 cc_works_part=norun
6417 else
6418 cc_works_part=no
6420 if test "$cc_works_part" != yes; then
6421 echo "failed program was:" >&5
6422 cat conftest.c >&5
6424 rm -f conftest* a.out b.out a.exe a_out.exe
6425 case $cc_works_part in
6426 yes)
6430 gmp_prog_cc_works="no, mpn_lshift_com optimization"
6432 norun)
6433 gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run"
6435 esac
6440 if test "$gmp_prog_cc_works" = yes; then
6441 # remove anything that might look like compiler output to our "||" expression
6442 rm -f conftest* a.out b.out a.exe a_out.exe
6443 cat >conftest.c <<EOF
6444 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
6445 "icc -O3", After several calls, the function writes partial garbage to
6446 the result vector. Perhaps relates to the chk.a.nc insn. This code needs
6447 to be run to show the problem, but that's fine, the offending cc is a
6448 native-only compiler so we don't have to worry about cross compiling. */
6450 #if ! defined (__cplusplus)
6451 #include <stdlib.h>
6452 void
6453 lshift_com (rp, up, n, cnt)
6454 unsigned long *rp;
6455 unsigned long *up;
6456 long n;
6457 unsigned cnt;
6459 unsigned long high_limb, low_limb;
6460 unsigned tnc;
6461 long i;
6462 up += n;
6463 rp += n;
6464 tnc = 8 * sizeof (unsigned long) - cnt;
6465 low_limb = *--up;
6466 high_limb = low_limb << cnt;
6467 for (i = n - 1; i != 0; i--)
6469 low_limb = *--up;
6470 *--rp = ~(high_limb | (low_limb >> tnc));
6471 high_limb = low_limb << cnt;
6473 *--rp = ~high_limb;
6476 main ()
6478 unsigned long *r, *r2;
6479 unsigned long a[88 + 1];
6480 long i;
6481 for (i = 0; i < 88 + 1; i++)
6482 a[i] = ~0L;
6483 r = malloc (10000 * sizeof (unsigned long));
6484 r2 = r;
6485 for (i = 0; i < 528; i += 22)
6487 lshift_com (r2, a,
6488 i / (8 * sizeof (unsigned long)) + 1,
6489 i % (8 * sizeof (unsigned long)));
6490 r2 += 88 + 1;
6492 if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
6493 r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
6494 abort ();
6495 return 0;
6497 #else
6499 main ()
6501 return 0;
6503 #endif
6506 echo "Test compile: mpn_lshift_com optimization 2" >&5
6507 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6509 (eval $gmp_compile) 2>&5
6510 ac_status=$?
6511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6512 test $ac_status = 0; }; then
6513 cc_works_part=yes
6514 if test "$cross_compiling" = no; then
6515 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6517 (eval $ac_try) 2>&5
6518 ac_status=$?
6519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6520 test $ac_status = 0; }; }; then :;
6521 else
6522 cc_works_part=norun
6525 else
6526 cc_works_part=no
6528 if test "$cc_works_part" != yes; then
6529 echo "failed program was:" >&5
6530 cat conftest.c >&5
6532 rm -f conftest* a.out b.out a.exe a_out.exe
6533 case $cc_works_part in
6534 yes)
6538 gmp_prog_cc_works="no, mpn_lshift_com optimization 2"
6540 norun)
6541 gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run"
6543 esac
6549 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
6550 # by recent versions of gcc.
6552 if test "$gmp_prog_cc_works" = yes; then
6553 case $host in
6554 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*)
6555 # this problem only arises in PIC code, so don't need to test when
6556 # --disable-shared. We don't necessarily have $enable_shared set to
6557 # yes at this point, it will still be unset for the default (which is
6558 # yes); hence the use of "!= no".
6559 if test "$enable_shared" != no; then
6560 echo "Testing gcc GOT with eax emitted" >&5
6561 cat >conftest.c <<\EOF
6562 int foo;
6563 int bar () { return foo; }
6565 tmp_got_emitted=no
6566 gmp_compile="$cc $cflags $cppflags -fPIC -S conftest.c >&5 2>&1"
6567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6568 (eval $gmp_compile) 2>&5
6569 ac_status=$?
6570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6571 test $ac_status = 0; }; then
6572 if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
6573 tmp_got_emitted=yes
6576 rm -f conftest.*
6577 echo "Result: $tmp_got_emitted" >&5
6578 if test "$tmp_got_emitted" = yes; then
6579 echo "Testing gas GOT with eax good" >&5
6580 cat >conftest.awk <<\EOF
6581 BEGIN {
6582 want[0] = "001"
6583 want[1] = "043"
6584 want[2] = "105"
6585 want[3] = "147"
6586 want[4] = "211"
6587 want[5] = "253"
6588 want[6] = "315"
6589 want[7] = "357"
6591 want[8] = "005"
6592 want[9] = "002"
6593 want[10] = "000"
6594 want[11] = "000"
6595 want[12] = "000"
6597 want[13] = "376"
6598 want[14] = "334"
6599 want[15] = "272"
6600 want[16] = "230"
6601 want[17] = "166"
6602 want[18] = "124"
6603 want[19] = "062"
6604 want[20] = "020"
6606 result = "yes"
6609 for (f = 2; f <= NF; f++)
6611 for (i = 0; i < 20; i++)
6612 got[i] = got[i+1];
6613 got[20] = $f;
6615 found = 1
6616 for (i = 0; i < 21; i++)
6617 if (got[i] != want[i])
6619 found = 0
6620 break
6622 if (found)
6624 result = "no"
6625 exit
6629 END {
6630 print result
6633 cat >conftest.s <<\EOF
6634 .text
6635 .byte 1, 35, 69, 103, 137, 171, 205, 239
6636 addl $_GLOBAL_OFFSET_TABLE_, %eax
6637 .byte 254, 220, 186, 152, 118, 84, 50, 16
6639 tmp_got_good=yes
6640 gmp_compile="$cc $cflags $cppflags -fPIC -o conftest.o -c conftest.s >&5 2>&1"
6641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6642 (eval $gmp_compile) 2>&5
6643 ac_status=$?
6644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6645 test $ac_status = 0; }; then
6646 tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
6648 rm -f conftest.*
6649 echo "Result: $tmp_got_good" >&5
6650 if test "$tmp_got_good" = no; then
6651 gmp_prog_cc_works="no, bad gas GOT with eax"
6652 else
6656 else
6662 esac
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
6666 $as_echo "$gmp_prog_cc_works" >&6; }
6667 case $gmp_prog_cc_works in
6668 yes)
6672 continue
6674 esac
6677 # If we're supposed to be using a "long long" for a limb, check that
6678 # it works.
6679 eval limb_chosen=\"\$limb$abi1\"
6680 test -n "$limb_chosen" || eval limb_chosen=\"\$limb$abi2\"
6681 if test "$limb_chosen" = longlong; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags has long long" >&5
6683 $as_echo_n "checking compiler $cc $cflags $cppflags has long long... " >&6; }
6684 cat >conftest.c <<EOF
6685 long long foo;
6686 long long bar () { return foo; }
6687 int main () { return 0; }
6689 gmp_prog_cc_works=no
6690 gmp_compile="$cc $cflags $cppflags -c conftest.c >&5"
6691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6692 (eval $gmp_compile) 2>&5
6693 ac_status=$?
6694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6695 test $ac_status = 0; }; then
6696 gmp_prog_cc_works=yes
6697 else
6698 echo "failed program was:" >&5
6699 cat conftest.c >&5
6701 rm -f conftest* a.out b.out a.exe a_out.exe
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
6703 $as_echo "$gmp_prog_cc_works" >&6; }
6704 if test $gmp_prog_cc_works = yes; then
6706 else
6707 continue
6712 # The tests to perform on this $cc, if any
6713 eval testlist=\"\$${ccbase}${abi1}_testlist\"
6714 test -n "$testlist" || eval testlist=\"\$${ccbase}${abi2}_testlist\"
6715 test -n "$testlist" || eval testlist=\"\$any${abi1}_testlist\"
6716 test -n "$testlist" || eval testlist=\"\$any${abi2}_testlist\"
6718 testlist_pass=yes
6719 for tst in $testlist; do
6720 case $tst in
6721 hpc-hppa-2-0) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HP compiler $cc is good for 64-bits" >&5
6722 $as_echo_n "checking whether HP compiler $cc is good for 64-bits... " >&6; }
6723 # Bad compiler output:
6724 # ccom: HP92453-01 G.10.32.05 HP C Compiler
6725 # Good compiler output:
6726 # ccom: HP92453-01 A.10.32.30 HP C Compiler
6727 # Let A.10.32.30 or higher be ok.
6728 echo >conftest.c
6729 gmp_tmp_vs=`$cc -V -c -o conftest.$OBJEXT conftest.c 2>&1 | grep "^ccom:"`
6730 echo "Version string: $gmp_tmp_vs" >&5
6731 rm conftest*
6732 gmp_tmp_v1=`echo $gmp_tmp_vs | sed 's/.* .\.\([0-9]*\).*/\1/'`
6733 gmp_tmp_v2=`echo $gmp_tmp_vs | sed 's/.* .\..*\.\(.*\)\..* HP C.*/\1/'`
6734 gmp_tmp_v3=`echo $gmp_tmp_vs | sed 's/.* .\..*\..*\.\(.*\) HP C.*/\1/'`
6735 echo "Version number: $gmp_tmp_v1.$gmp_tmp_v2.$gmp_tmp_v3" >&5
6736 if test -z "$gmp_tmp_v1"; then
6737 gmp_hpc_64bit=not-applicable
6738 else
6739 gmp_compare_ge=no
6740 if test -n "$gmp_tmp_v1"; then
6741 if test "$gmp_tmp_v1" -gt 10; then
6742 gmp_compare_ge=yes
6743 else
6744 if test "$gmp_tmp_v1" -eq 10; then
6745 if test -n "$gmp_tmp_v2"; then
6746 if test "$gmp_tmp_v2" -gt 32; then
6747 gmp_compare_ge=yes
6748 else
6749 if test "$gmp_tmp_v2" -eq 32; then
6750 if test -n "$gmp_tmp_v3" && test "$gmp_tmp_v3" -ge 30; then
6751 gmp_compare_ge=yes
6763 gmp_hpc_64bit=$gmp_compare_ge
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_hpc_64bit" >&5
6766 $as_echo "$gmp_hpc_64bit" >&6; }
6767 if test $gmp_hpc_64bit = yes; then
6769 else
6770 testlist_pass=no
6773 gcc-arm-umodsi) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ARM gcc unsigned division works" >&5
6774 $as_echo_n "checking whether ARM gcc unsigned division works... " >&6; }
6775 tmp_version=`$cc --version`
6776 echo "$tmp_version" >&5
6777 case $tmp_version in
6778 2.95 | 2.95.[123])
6779 testlist_pass=no
6780 gmp_gcc_arm_umodsi_result="no, gcc 2.95.[0123]" ;;
6783 gmp_gcc_arm_umodsi_result=yes ;;
6784 esac
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_gcc_arm_umodsi_result" >&5
6786 $as_echo "$gmp_gcc_arm_umodsi_result" >&6; }
6788 gcc-mips-o32) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports o32" >&5
6789 $as_echo_n "checking whether gcc supports o32... " >&6; }
6790 echo 'int x;' >conftest.c
6791 echo "$cc -mabi=32 -c conftest.c" >&5
6792 if $cc -mabi=32 -c conftest.c >conftest.out 2>&1; then
6793 result=yes
6794 else
6795 cat conftest.out >&5
6796 if grep "cc1: Invalid option \`abi=32'" conftest.out >/dev/null; then
6797 result=yes
6798 else
6799 result=no
6802 rm -f conftest.*
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6804 $as_echo "$result" >&6; }
6805 if test $result = yes; then
6807 else
6808 testlist_pass=no
6811 hppa-level-2.0) { $as_echo "$as_me:${as_lineno-$LINENO}: checking $cc $cflags assembler knows hppa 2.0" >&5
6812 $as_echo_n "checking $cc $cflags assembler knows hppa 2.0... " >&6; }
6813 result=no
6814 cat >conftest.s <<EOF
6815 .level 2.0
6817 gmp_compile="$cc $cflags -c conftest.s >&5 2>&1"
6818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6819 (eval $gmp_compile) 2>&5
6820 ac_status=$?
6821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6822 test $ac_status = 0; }; then
6823 result=yes
6824 else
6825 echo "failed program was" >&5
6826 cat conftest.s >&5
6828 rm -f conftest*
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6830 $as_echo "$result" >&6; }
6831 if test "$result" = yes; then
6833 else
6834 testlist_pass=no
6837 sizeof*) echo "configure: testlist $tst" >&5
6838 gmp_sizeof_type=`echo "$tst" | sed 's/sizeof-\([a-z]*\).*/\1/'`
6839 gmp_sizeof_want=`echo "$tst" | sed 's/sizeof-[a-z]*-\([0-9]*\).*/\1/'`
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want" >&5
6841 $as_echo_n "checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want... " >&6; }
6842 cat >conftest.c <<EOF
6844 main ()
6846 static int test_array [1 - 2 * (long) (sizeof ($gmp_sizeof_type) != $gmp_sizeof_want)];
6847 test_array[0] = 0;
6848 return 0;
6851 gmp_c_testlist_sizeof=no
6852 gmp_compile="$cc $cflags -c conftest.c >&5"
6853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6854 (eval $gmp_compile) 2>&5
6855 ac_status=$?
6856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6857 test $ac_status = 0; }; then
6858 gmp_c_testlist_sizeof=yes
6860 rm -f conftest*
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_c_testlist_sizeof" >&5
6862 $as_echo "$gmp_c_testlist_sizeof" >&6; }
6863 if test $gmp_c_testlist_sizeof = yes; then
6865 else
6866 testlist_pass=no
6869 esac
6870 if test $testlist_pass = no; then break; fi
6871 done
6873 if test $testlist_pass = yes; then
6874 found_compiler=yes
6875 break
6877 done
6879 if test $found_compiler = yes; then break; fi
6880 done
6882 if test $found_compiler = yes; then break; fi
6883 done
6885 if test $found_compiler = yes; then break; fi
6886 done
6889 # If we recognised the CPU, as indicated by $path being set, then insist
6890 # that we have a working compiler, either from our $cclist choices or from
6891 # $CC. We can't let AC_PROG_CC look around for a compiler because it might
6892 # find one that we've rejected (for not supporting the modes our asm code
6893 # demands, etc).
6895 # If we didn't recognise the CPU (and this includes host_cpu=none), then
6896 # fall through and let AC_PROG_CC look around for a compiler too. This is
6897 # mostly in the interests of following a standard autoconf setup, after all
6898 # we've already tested cc and gcc adequately (hopefully). As of autoconf
6899 # 2.50 the only thing AC_PROG_CC really adds is a check for "cl" (Microsoft
6900 # C on MS-DOS systems).
6902 if test $found_compiler = no && test -n "$path"; then
6903 as_fn_error $? "could not find a working compiler, see config.log for details" "$LINENO" 5
6906 case $host in
6907 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | jaguar-*-* | bulldozer-*-* | piledriver-*-* | steamroller-*-* | excavator-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
6908 # If the user asked for a fat build, override the path and flags set above
6909 if test $enable_fat = yes; then
6910 gcc_cflags_cpu=""
6911 gcc_cflags_arch=""
6913 fat_functions="add_n addmul_1 bdiv_dbm1c com cnd_add_n cnd_sub_n
6914 copyd copyi dive_1 divrem_1
6915 gcd_1 lshift lshiftc mod_1 mod_1_1 mod_1_1_cps mod_1_2
6916 mod_1_2_cps mod_1_4 mod_1_4_cps mod_34lsub1 mode1o mul_1
6917 mul_basecase mullo_basecase pre_divrem_1 pre_mod_1 redc_1
6918 redc_2 rshift sqr_basecase sub_n submul_1"
6920 if test "$abi" = 32; then
6921 extra_functions="$extra_functions fat fat_entry"
6922 path="x86/fat x86"
6923 fat_path="x86 x86/fat x86/i486
6924 x86/k6 x86/k6/mmx x86/k6/k62mmx
6925 x86/k7 x86/k7/mmx
6926 x86/k8 x86/k10 x86/bobcat
6927 x86/pentium x86/pentium/mmx
6928 x86/p6 x86/p6/mmx x86/p6/p3mmx x86/p6/sse2
6929 x86/pentium4 x86/pentium4/mmx x86/pentium4/sse2
6930 x86/core2 x86/coreinhm x86/coreisbr
6931 x86/atom x86/atom/mmx x86/atom/sse2 x86/nano"
6934 if test "$abi" = 64; then
6935 gcc_64_cflags=""
6936 extra_functions_64="$extra_functions_64 fat fat_entry"
6937 path_64="x86_64/fat x86_64"
6938 fat_path="x86_64 x86_64/fat
6939 x86_64/k8 x86_64/k10 x86_64/bd1 x86_64/bobcat
6940 x86_64/pentium4 x86_64/core2 x86_64/coreinhm x86_64/coreisbr
6941 x86_64/coreihwl x86_64/atom x86_64/nano"
6942 fat_functions="$fat_functions addmul_2 addlsh1_n addlsh2_n sublsh1_n"
6945 fat_thresholds="MUL_TOOM22_THRESHOLD MUL_TOOM33_THRESHOLD
6946 SQR_TOOM2_THRESHOLD SQR_TOOM3_THRESHOLD
6947 BMOD_1_TO_MOD_1_THRESHOLD"
6950 esac
6953 if test $found_compiler = yes; then
6955 # If we're creating CFLAGS, then look for optional additions. If the user
6956 # set CFLAGS then leave it alone.
6958 if test "$test_CFLAGS" != set; then
6959 eval optlist=\"\$${ccbase}${abi1}_cflags_optlist\"
6960 test -n "$optlist" || eval optlist=\"\$${ccbase}${abi2}_cflags_optlist\"
6962 for opt in $optlist; do
6963 eval optflags=\"\$${ccbase}${abi1}_cflags_${opt}\"
6964 test -n "$optflags" || eval optflags=\"\$${ccbase}${abi2}_cflags_${opt}\"
6965 test -n "$optflags" || eval optflags=\"\$${ccbase}_cflags_${opt}\"
6967 for flag in $optflags; do
6969 # ~ represents a space in an option spec
6970 flag=`echo "$flag" | tr '~' ' '`
6972 case $flag in
6973 -march=pentium4 | -march=k8)
6974 # For -march settings which enable SSE2 we exclude certain bad
6975 # gcc versions and we need an OS knowing how to save xmm regs.
6977 # This is only for ABI=32, any 64-bit gcc is good and any OS
6978 # knowing x86_64 will know xmm.
6980 # -march=k8 was only introduced in gcc 3.3, so we shouldn't need
6981 # the GMP_GCC_PENTIUM4_SSE2 check (for gcc 3.2 and prior). But
6982 # it doesn't hurt to run it anyway, sharing code with the
6983 # pentium4 case.
6985 if test "$abi" = 32; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc is good for sse2" >&5
6987 $as_echo_n "checking whether gcc is good for sse2... " >&6; }
6988 case `$cc $cflags $cppflags -dumpversion` in
6989 3.[012] | 3.[012].*) result=no ;;
6990 *) result=yes ;;
6991 esac
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6993 $as_echo "$result" >&6; }
6994 if test "$result" = yes; then
6996 else
6997 continue
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the operating system supports XMM registers" >&5
7001 $as_echo_n "checking whether the operating system supports XMM registers... " >&6; }
7002 if ${gmp_cv_os_x86_xmm+:} false; then :
7003 $as_echo_n "(cached) " >&6
7004 else
7005 if test "$build" = "$host"; then
7006 # remove anything that might look like compiler output to our "||" expression
7007 rm -f conftest* a.out b.out a.exe a_out.exe
7008 cat >conftest.s <<EOF
7009 .text
7010 main:
7011 _main:
7012 .globl main
7013 .globl _main
7014 .byte 0x0f, 0x57, 0xc0
7015 xorl %eax, %eax
7018 gmp_compile="$cc $cflags $cppflags conftest.s -o conftest >&5"
7019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7020 (eval $gmp_compile) 2>&5
7021 ac_status=$?
7022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7023 test $ac_status = 0; }; then
7024 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7026 (eval $ac_try) 2>&5
7027 ac_status=$?
7028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7029 test $ac_status = 0; }; }; then
7030 gmp_cv_os_x86_xmm=yes
7031 else
7032 gmp_cv_os_x86_xmm=no
7034 else
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Oops, cannot compile test program" >&5
7036 $as_echo "$as_me: WARNING: Oops, cannot compile test program" >&2;}
7038 rm -f conftest*
7041 if test -z "$gmp_cv_os_x86_xmm"; then
7042 case $host_os in
7043 freebsd[123] | freebsd[123].*)
7044 gmp_cv_os_x86_xmm=no ;;
7045 freebsd*)
7046 gmp_cv_os_x86_xmm=yes ;;
7048 gmp_cv_os_x86_xmm=probably ;;
7049 esac
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_os_x86_xmm" >&5
7054 $as_echo "$gmp_cv_os_x86_xmm" >&6; }
7056 if test "$gmp_cv_os_x86_xmm" = probably; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not certain of OS support for xmm when cross compiling." >&5
7058 $as_echo "$as_me: WARNING: Not certain of OS support for xmm when cross compiling." >&2;}
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&5
7060 $as_echo "$as_me: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&2;}
7063 case $gmp_cv_os_x86_xmm in
7065 continue
7070 esac
7074 -no-cpp-precomp)
7075 # special check, avoiding a warning
7076 if test "$ccbase" = gcc; then
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags -no-cpp-precomp" >&5
7078 $as_echo_n "checking compiler $cc $cflags -no-cpp-precomp... " >&6; }
7079 result=no
7080 cat >conftest.c <<EOF
7081 int main () { return 0; }
7083 gmp_compile="$cc $cflags -no-cpp-precomp conftest.c >conftest.out 2>&1"
7084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7085 (eval $gmp_compile) 2>&5
7086 ac_status=$?
7087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7088 test $ac_status = 0; }; then
7089 if grep "unrecognized option.*-no-cpp-precomp" conftest.out >/dev/null; then : ;
7090 else
7091 result=yes
7094 cat conftest.out >&5
7095 rm -f conftest* a.out b.out a.exe a_out.exe
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7097 $as_echo "$result" >&6; }
7098 if test "$result" = yes; then
7099 cflags="$cflags $flag"
7100 break
7101 else
7102 continue
7107 -Wa,-m*)
7108 case $host in
7109 alpha*-*-*)
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler $cc $cflags $flag" >&5
7111 $as_echo_n "checking assembler $cc $cflags $flag... " >&6; }
7112 result=no
7113 cat >conftest.c <<EOF
7114 int main () {}
7116 gmp_compile="$cc $cflags $flag -c conftest.c >conftest.out 2>&1"
7117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7118 (eval $gmp_compile) 2>&5
7119 ac_status=$?
7120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7121 test $ac_status = 0; }; then
7122 if grep "Unknown CPU identifier" conftest.out >/dev/null; then : ;
7123 else
7124 result=yes
7127 cat conftest.out >&5
7128 rm -f conftest*
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7130 $as_echo "$result" >&6; }
7131 if test "$result" = yes; then
7133 else
7134 continue
7138 esac
7140 -Wa,-oldas)
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cc $cflags $cppflags -Wa,-oldas" >&5
7142 $as_echo_n "checking for $cc $cflags $cppflags -Wa,-oldas... " >&6; }
7143 result=no
7144 cat >conftest.c <<EOF
7146 echo "with empty conftest.c" >&5
7147 gmp_compile="$cc $cflags $cppflags -c conftest.c >&5 2>&1"
7148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7149 (eval $gmp_compile) 2>&5
7150 ac_status=$?
7151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7152 test $ac_status = 0; }; then : ;
7153 else
7154 # empty fails
7155 gmp_compile="$cc $cflags $cppflags -Wa,-oldas -c conftest.c >&5 2>&1"
7156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7157 (eval $gmp_compile) 2>&5
7158 ac_status=$?
7159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7160 test $ac_status = 0; }; then
7161 # but with -Wa,-oldas it works
7162 result=yes
7165 rm -f conftest*
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7167 $as_echo "$result" >&6; }
7168 if test "$result" = yes; then
7169 cflags="$cflags $flag"
7170 break
7171 else
7172 continue
7176 esac
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags $flag" >&5
7179 $as_echo_n "checking compiler $cc $cflags $cppflags $flag... " >&6; }
7180 gmp_prog_cc_works=yes
7182 # first see a simple "main()" works, then go on to other checks
7183 if test "$gmp_prog_cc_works" = yes; then
7184 # remove anything that might look like compiler output to our "||" expression
7185 rm -f conftest* a.out b.out a.exe a_out.exe
7186 cat >conftest.c <<EOF
7188 int main () { return 0; }
7190 echo "Test compile: " >&5
7191 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7193 (eval $gmp_compile) 2>&5
7194 ac_status=$?
7195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7196 test $ac_status = 0; }; then
7197 cc_works_part=yes
7198 if test "$cross_compiling" = no; then
7199 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7201 (eval $ac_try) 2>&5
7202 ac_status=$?
7203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7204 test $ac_status = 0; }; }; then :;
7205 else
7206 cc_works_part=norun
7209 else
7210 cc_works_part=no
7212 if test "$cc_works_part" != yes; then
7213 echo "failed program was:" >&5
7214 cat conftest.c >&5
7216 rm -f conftest* a.out b.out a.exe a_out.exe
7217 case $cc_works_part in
7218 yes)
7222 gmp_prog_cc_works="no"
7224 norun)
7225 gmp_prog_cc_works="no, program does not run"
7227 esac
7233 if test "$gmp_prog_cc_works" = yes; then
7234 # remove anything that might look like compiler output to our "||" expression
7235 rm -f conftest* a.out b.out a.exe a_out.exe
7236 cat >conftest.c <<EOF
7237 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
7238 (without -maix64), hence detecting an unusable compiler */
7239 void *g() { return (void *) 0; }
7240 void *f() { return g(); }
7242 int main () { return 0; }
7244 echo "Test compile: function pointer return" >&5
7245 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7247 (eval $gmp_compile) 2>&5
7248 ac_status=$?
7249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7250 test $ac_status = 0; }; then
7251 cc_works_part=yes
7252 if test "$cross_compiling" = no; then
7253 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7255 (eval $ac_try) 2>&5
7256 ac_status=$?
7257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7258 test $ac_status = 0; }; }; then :;
7259 else
7260 cc_works_part=norun
7263 else
7264 cc_works_part=no
7266 if test "$cc_works_part" != yes; then
7267 echo "failed program was:" >&5
7268 cat conftest.c >&5
7270 rm -f conftest* a.out b.out a.exe a_out.exe
7271 case $cc_works_part in
7272 yes)
7276 gmp_prog_cc_works="no, function pointer return"
7278 norun)
7279 gmp_prog_cc_works="no, function pointer return, program does not run"
7281 esac
7287 if test "$gmp_prog_cc_works" = yes; then
7288 # remove anything that might look like compiler output to our "||" expression
7289 rm -f conftest* a.out b.out a.exe a_out.exe
7290 cat >conftest.c <<EOF
7291 /* The following provokes an invalid instruction syntax from i386 gcc
7292 -march=pentiumpro on Solaris 2.8. The native sun assembler
7293 requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
7294 least) doesn't know. */
7295 int n;
7296 int cmov () { return (n >= 0 ? n : 0); }
7298 int main () { return 0; }
7300 echo "Test compile: cmov instruction" >&5
7301 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7303 (eval $gmp_compile) 2>&5
7304 ac_status=$?
7305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7306 test $ac_status = 0; }; then
7307 cc_works_part=yes
7308 if test "$cross_compiling" = no; then
7309 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7311 (eval $ac_try) 2>&5
7312 ac_status=$?
7313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7314 test $ac_status = 0; }; }; then :;
7315 else
7316 cc_works_part=norun
7319 else
7320 cc_works_part=no
7322 if test "$cc_works_part" != yes; then
7323 echo "failed program was:" >&5
7324 cat conftest.c >&5
7326 rm -f conftest* a.out b.out a.exe a_out.exe
7327 case $cc_works_part in
7328 yes)
7332 gmp_prog_cc_works="no, cmov instruction"
7334 norun)
7335 gmp_prog_cc_works="no, cmov instruction, program does not run"
7337 esac
7343 if test "$gmp_prog_cc_works" = yes; then
7344 # remove anything that might look like compiler output to our "||" expression
7345 rm -f conftest* a.out b.out a.exe a_out.exe
7346 cat >conftest.c <<EOF
7347 /* The following provokes a linker invocation problem with gcc 3.0.3
7348 on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630
7349 option causes gcc to incorrectly select the 32-bit libgcc.a, not
7350 the 64-bit one, and consequently it misses out on the __fixunsdfdi
7351 helper (double -> uint64 conversion). */
7352 double d;
7353 unsigned long gcc303 () { return (unsigned long) d; }
7355 int main () { return 0; }
7357 echo "Test compile: double -> ulong conversion" >&5
7358 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7360 (eval $gmp_compile) 2>&5
7361 ac_status=$?
7362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7363 test $ac_status = 0; }; then
7364 cc_works_part=yes
7365 if test "$cross_compiling" = no; then
7366 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7368 (eval $ac_try) 2>&5
7369 ac_status=$?
7370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7371 test $ac_status = 0; }; }; then :;
7372 else
7373 cc_works_part=norun
7376 else
7377 cc_works_part=no
7379 if test "$cc_works_part" != yes; then
7380 echo "failed program was:" >&5
7381 cat conftest.c >&5
7383 rm -f conftest* a.out b.out a.exe a_out.exe
7384 case $cc_works_part in
7385 yes)
7389 gmp_prog_cc_works="no, double -> ulong conversion"
7391 norun)
7392 gmp_prog_cc_works="no, double -> ulong conversion, program does not run"
7394 esac
7400 if test "$gmp_prog_cc_works" = yes; then
7401 # remove anything that might look like compiler output to our "||" expression
7402 rm -f conftest* a.out b.out a.exe a_out.exe
7403 cat >conftest.c <<EOF
7404 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
7405 the assembler doesn't know hppa 2.0 instructions. fneg is a 2.0
7406 instruction, and a negation like this comes out using it. */
7407 double fneg_data;
7408 unsigned long fneg () { return -fneg_data; }
7410 int main () { return 0; }
7412 echo "Test compile: double negation" >&5
7413 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7415 (eval $gmp_compile) 2>&5
7416 ac_status=$?
7417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7418 test $ac_status = 0; }; then
7419 cc_works_part=yes
7420 if test "$cross_compiling" = no; then
7421 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7423 (eval $ac_try) 2>&5
7424 ac_status=$?
7425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7426 test $ac_status = 0; }; }; then :;
7427 else
7428 cc_works_part=norun
7431 else
7432 cc_works_part=no
7434 if test "$cc_works_part" != yes; then
7435 echo "failed program was:" >&5
7436 cat conftest.c >&5
7438 rm -f conftest* a.out b.out a.exe a_out.exe
7439 case $cc_works_part in
7440 yes)
7444 gmp_prog_cc_works="no, double negation"
7446 norun)
7447 gmp_prog_cc_works="no, double negation, program does not run"
7449 esac
7455 if test "$gmp_prog_cc_works" = yes; then
7456 # remove anything that might look like compiler output to our "||" expression
7457 rm -f conftest* a.out b.out a.exe a_out.exe
7458 cat >conftest.c <<EOF
7459 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
7460 (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
7461 those instructions. Not sure how much of the gmp code will come out
7462 wanting sse2, but it's easiest to reject an option we know is bad. */
7463 double ftod_data;
7464 float ftod () { return (float) ftod_data; }
7466 int main () { return 0; }
7468 echo "Test compile: double -> float conversion" >&5
7469 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7471 (eval $gmp_compile) 2>&5
7472 ac_status=$?
7473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7474 test $ac_status = 0; }; then
7475 cc_works_part=yes
7476 if test "$cross_compiling" = no; then
7477 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7479 (eval $ac_try) 2>&5
7480 ac_status=$?
7481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7482 test $ac_status = 0; }; }; then :;
7483 else
7484 cc_works_part=norun
7487 else
7488 cc_works_part=no
7490 if test "$cc_works_part" != yes; then
7491 echo "failed program was:" >&5
7492 cat conftest.c >&5
7494 rm -f conftest* a.out b.out a.exe a_out.exe
7495 case $cc_works_part in
7496 yes)
7500 gmp_prog_cc_works="no, double -> float conversion"
7502 norun)
7503 gmp_prog_cc_works="no, double -> float conversion, program does not run"
7505 esac
7511 if test "$gmp_prog_cc_works" = yes; then
7512 # remove anything that might look like compiler output to our "||" expression
7513 rm -f conftest* a.out b.out a.exe a_out.exe
7514 cat >conftest.c <<EOF
7515 /* The following provokes an internal compiler error from gcc version
7516 "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
7517 values being spilled into floating point registers. The problem doesn't
7518 show up all the time, but has occurred enough in GMP for us to reject
7519 this compiler+flags. */
7520 #include <string.h> /* for memcpy */
7521 struct try_t
7523 char dst[2];
7524 char size;
7525 long d0, d1, d2, d3, d4, d5, d6;
7526 char overlap;
7528 struct try_t param[6];
7530 param_init ()
7532 struct try_t *p;
7533 memcpy (p, &param[ 2 ], sizeof (*p));
7534 memcpy (p, &param[ 2 ], sizeof (*p));
7535 p->size = 2;
7536 memcpy (p, &param[ 1 ], sizeof (*p));
7537 p->dst[0] = 1;
7538 p->overlap = 2;
7539 memcpy (p, &param[ 3 ], sizeof (*p));
7540 p->dst[0] = 1;
7541 p->overlap = 8;
7542 memcpy (p, &param[ 4 ], sizeof (*p));
7543 memcpy (p, &param[ 4 ], sizeof (*p));
7544 p->overlap = 8;
7545 memcpy (p, &param[ 5 ], sizeof (*p));
7546 memcpy (p, &param[ 5 ], sizeof (*p));
7547 memcpy (p, &param[ 5 ], sizeof (*p));
7548 return 0;
7551 int main () { return 0; }
7553 echo "Test compile: gnupro alpha ev6 char spilling" >&5
7554 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7556 (eval $gmp_compile) 2>&5
7557 ac_status=$?
7558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7559 test $ac_status = 0; }; then
7560 cc_works_part=yes
7561 if test "$cross_compiling" = no; then
7562 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7564 (eval $ac_try) 2>&5
7565 ac_status=$?
7566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7567 test $ac_status = 0; }; }; then :;
7568 else
7569 cc_works_part=norun
7572 else
7573 cc_works_part=no
7575 if test "$cc_works_part" != yes; then
7576 echo "failed program was:" >&5
7577 cat conftest.c >&5
7579 rm -f conftest* a.out b.out a.exe a_out.exe
7580 case $cc_works_part in
7581 yes)
7585 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling"
7587 norun)
7588 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run"
7590 esac
7596 # __builtin_alloca is not available everywhere, check it exists before
7597 # seeing that it works
7598 if test "$gmp_prog_cc_works" = yes; then
7599 # remove anything that might look like compiler output to our "||" expression
7600 rm -f conftest* a.out b.out a.exe a_out.exe
7601 cat >conftest.c <<EOF
7602 int k; int foo () { __builtin_alloca (k); }
7604 echo "Test compile: __builtin_alloca availability" >&5
7605 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7607 (eval $gmp_compile) 2>&5
7608 ac_status=$?
7609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7610 test $ac_status = 0; }; then
7611 cc_works_part=yes
7612 if test "$cross_compiling" = no; then
7613 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7615 (eval $ac_try) 2>&5
7616 ac_status=$?
7617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7618 test $ac_status = 0; }; }; then :;
7619 else
7620 cc_works_part=norun
7623 else
7624 cc_works_part=no
7626 if test "$cc_works_part" != yes; then
7627 echo "failed program was:" >&5
7628 cat conftest.c >&5
7630 rm -f conftest* a.out b.out a.exe a_out.exe
7631 case $cc_works_part in
7632 yes)
7633 if test "$gmp_prog_cc_works" = yes; then
7634 # remove anything that might look like compiler output to our "||" expression
7635 rm -f conftest* a.out b.out a.exe a_out.exe
7636 cat >conftest.c <<EOF
7637 /* The following provokes an internal compiler error from Itanium HP-UX cc
7638 under +O2 or higher. We use this sort of code in mpn/generic/mul_fft.c. */
7639 int k;
7640 int foo ()
7642 int i, **a;
7643 a = __builtin_alloca (k);
7644 for (i = 0; i <= k; i++)
7645 a[i] = __builtin_alloca (1 << i);
7648 int main () { return 0; }
7650 echo "Test compile: alloca array" >&5
7651 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7653 (eval $gmp_compile) 2>&5
7654 ac_status=$?
7655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7656 test $ac_status = 0; }; then
7657 cc_works_part=yes
7658 if test "$cross_compiling" = no; then
7659 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7661 (eval $ac_try) 2>&5
7662 ac_status=$?
7663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7664 test $ac_status = 0; }; }; then :;
7665 else
7666 cc_works_part=norun
7669 else
7670 cc_works_part=no
7672 if test "$cc_works_part" != yes; then
7673 echo "failed program was:" >&5
7674 cat conftest.c >&5
7676 rm -f conftest* a.out b.out a.exe a_out.exe
7677 case $cc_works_part in
7678 yes)
7682 gmp_prog_cc_works="no, alloca array"
7684 norun)
7685 gmp_prog_cc_works="no, alloca array, program does not run"
7687 esac
7696 norun)
7699 esac
7703 if test "$gmp_prog_cc_works" = yes; then
7704 # remove anything that might look like compiler output to our "||" expression
7705 rm -f conftest* a.out b.out a.exe a_out.exe
7706 cat >conftest.c <<EOF
7707 /* The following provokes an internal error from the assembler on
7708 power2-ibm-aix4.3.1.0. gcc -mrios2 compiles to nabs+fcirz, and this
7709 results in "Internal error related to the source program domain".
7711 For reference it seems to be the combination of nabs+fcirz which is bad,
7712 not either alone. This sort of thing occurs in mpz/get_str.c with the
7713 way double chars_per_bit_exactly is applied in MPN_SIZEINBASE. Perhaps
7714 if that code changes to a scaled-integer style then we won't need this
7715 test. */
7717 double fp[1];
7718 int x;
7719 int f ()
7721 int a;
7722 a = (x >= 0 ? x : -x);
7723 return a * fp[0];
7726 int main () { return 0; }
7728 echo "Test compile: abs int -> double conversion" >&5
7729 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7731 (eval $gmp_compile) 2>&5
7732 ac_status=$?
7733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7734 test $ac_status = 0; }; then
7735 cc_works_part=yes
7736 if test "$cross_compiling" = no; then
7737 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7739 (eval $ac_try) 2>&5
7740 ac_status=$?
7741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7742 test $ac_status = 0; }; }; then :;
7743 else
7744 cc_works_part=norun
7747 else
7748 cc_works_part=no
7750 if test "$cc_works_part" != yes; then
7751 echo "failed program was:" >&5
7752 cat conftest.c >&5
7754 rm -f conftest* a.out b.out a.exe a_out.exe
7755 case $cc_works_part in
7756 yes)
7760 gmp_prog_cc_works="no, abs int -> double conversion"
7762 norun)
7763 gmp_prog_cc_works="no, abs int -> double conversion, program does not run"
7765 esac
7771 if test "$gmp_prog_cc_works" = yes; then
7772 # remove anything that might look like compiler output to our "||" expression
7773 rm -f conftest* a.out b.out a.exe a_out.exe
7774 cat >conftest.c <<EOF
7775 /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
7776 Extracted from tests/mpn/t-iord_u.c. Causes Apple's gcc 3.3 build 1640 and
7777 1666 to segfault with e.g., -O2 -mpowerpc64. */
7779 #if defined (__GNUC__) && ! defined (__cplusplus)
7780 typedef unsigned long long t1;typedef t1*t2;
7781 static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
7782 {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;}
7783 f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
7784 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();}}
7785 h(){}g(){}
7786 #else
7787 int dummy;
7788 #endif
7790 int main () { return 0; }
7792 echo "Test compile: long long reliability test 1" >&5
7793 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7795 (eval $gmp_compile) 2>&5
7796 ac_status=$?
7797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7798 test $ac_status = 0; }; then
7799 cc_works_part=yes
7800 if test "$cross_compiling" = no; then
7801 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7803 (eval $ac_try) 2>&5
7804 ac_status=$?
7805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7806 test $ac_status = 0; }; }; then :;
7807 else
7808 cc_works_part=norun
7811 else
7812 cc_works_part=no
7814 if test "$cc_works_part" != yes; then
7815 echo "failed program was:" >&5
7816 cat conftest.c >&5
7818 rm -f conftest* a.out b.out a.exe a_out.exe
7819 case $cc_works_part in
7820 yes)
7824 gmp_prog_cc_works="no, long long reliability test 1"
7826 norun)
7827 gmp_prog_cc_works="no, long long reliability test 1, program does not run"
7829 esac
7835 if test "$gmp_prog_cc_works" = yes; then
7836 # remove anything that might look like compiler output to our "||" expression
7837 rm -f conftest* a.out b.out a.exe a_out.exe
7838 cat >conftest.c <<EOF
7839 /* The following provokes an internal compiler error on powerpc-apple-darwin.
7840 Extracted from mpz/cfdiv_q_2exp.c. Causes Apple's gcc 3.3 build 1640 and
7841 1666 to get an ICE with -O1 -mpowerpc64. */
7843 #if defined (__GNUC__) && ! defined (__cplusplus)
7844 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();}
7845 g(){}
7846 #else
7847 int dummy;
7848 #endif
7850 int main () { return 0; }
7852 echo "Test compile: long long reliability test 2" >&5
7853 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7855 (eval $gmp_compile) 2>&5
7856 ac_status=$?
7857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7858 test $ac_status = 0; }; then
7859 cc_works_part=yes
7860 if test "$cross_compiling" = no; then
7861 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7863 (eval $ac_try) 2>&5
7864 ac_status=$?
7865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7866 test $ac_status = 0; }; }; then :;
7867 else
7868 cc_works_part=norun
7871 else
7872 cc_works_part=no
7874 if test "$cc_works_part" != yes; then
7875 echo "failed program was:" >&5
7876 cat conftest.c >&5
7878 rm -f conftest* a.out b.out a.exe a_out.exe
7879 case $cc_works_part in
7880 yes)
7884 gmp_prog_cc_works="no, long long reliability test 2"
7886 norun)
7887 gmp_prog_cc_works="no, long long reliability test 2, program does not run"
7889 esac
7895 if test "$gmp_prog_cc_works" = yes; then
7896 # remove anything that might look like compiler output to our "||" expression
7897 rm -f conftest* a.out b.out a.exe a_out.exe
7898 cat >conftest.c <<EOF
7899 /* The following is mis-compiled by HP ia-64 cc version
7900 cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
7901 under "cc +O3", both in +DD32 and +DD64 modes. The mpn_lshift_com gets
7902 inlined and its return value somehow botched to be 0 instead of 1. This
7903 arises in the real mpn_lshift_com in mul_fft.c. A lower optimization
7904 level, like +O2 seems ok. This code needs to be run to show the problem,
7905 but that's fine, the offending cc is a native-only compiler so we don't
7906 have to worry about cross compiling. */
7908 #if ! defined (__cplusplus)
7909 unsigned long
7910 lshift_com (rp, up, n, cnt)
7911 unsigned long *rp;
7912 unsigned long *up;
7913 long n;
7914 unsigned cnt;
7916 unsigned long retval, high_limb, low_limb;
7917 unsigned tnc;
7918 long i;
7919 tnc = 8 * sizeof (unsigned long) - cnt;
7920 low_limb = *up++;
7921 retval = low_limb >> tnc;
7922 high_limb = low_limb << cnt;
7923 for (i = n - 1; i != 0; i--)
7925 low_limb = *up++;
7926 *rp++ = ~(high_limb | (low_limb >> tnc));
7927 high_limb = low_limb << cnt;
7929 return retval;
7932 main ()
7934 unsigned long cy, rp[2], up[2];
7935 up[0] = ~ 0L;
7936 up[1] = 0;
7937 cy = lshift_com (rp, up, 2L, 1);
7938 if (cy != 1L)
7939 return 1;
7940 return 0;
7942 #else
7944 main ()
7946 return 0;
7948 #endif
7951 echo "Test compile: mpn_lshift_com optimization" >&5
7952 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7954 (eval $gmp_compile) 2>&5
7955 ac_status=$?
7956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7957 test $ac_status = 0; }; then
7958 cc_works_part=yes
7959 if test "$cross_compiling" = no; then
7960 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7962 (eval $ac_try) 2>&5
7963 ac_status=$?
7964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7965 test $ac_status = 0; }; }; then :;
7966 else
7967 cc_works_part=norun
7970 else
7971 cc_works_part=no
7973 if test "$cc_works_part" != yes; then
7974 echo "failed program was:" >&5
7975 cat conftest.c >&5
7977 rm -f conftest* a.out b.out a.exe a_out.exe
7978 case $cc_works_part in
7979 yes)
7983 gmp_prog_cc_works="no, mpn_lshift_com optimization"
7985 norun)
7986 gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run"
7988 esac
7993 if test "$gmp_prog_cc_works" = yes; then
7994 # remove anything that might look like compiler output to our "||" expression
7995 rm -f conftest* a.out b.out a.exe a_out.exe
7996 cat >conftest.c <<EOF
7997 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
7998 "icc -O3", After several calls, the function writes partial garbage to
7999 the result vector. Perhaps relates to the chk.a.nc insn. This code needs
8000 to be run to show the problem, but that's fine, the offending cc is a
8001 native-only compiler so we don't have to worry about cross compiling. */
8003 #if ! defined (__cplusplus)
8004 #include <stdlib.h>
8005 void
8006 lshift_com (rp, up, n, cnt)
8007 unsigned long *rp;
8008 unsigned long *up;
8009 long n;
8010 unsigned cnt;
8012 unsigned long high_limb, low_limb;
8013 unsigned tnc;
8014 long i;
8015 up += n;
8016 rp += n;
8017 tnc = 8 * sizeof (unsigned long) - cnt;
8018 low_limb = *--up;
8019 high_limb = low_limb << cnt;
8020 for (i = n - 1; i != 0; i--)
8022 low_limb = *--up;
8023 *--rp = ~(high_limb | (low_limb >> tnc));
8024 high_limb = low_limb << cnt;
8026 *--rp = ~high_limb;
8029 main ()
8031 unsigned long *r, *r2;
8032 unsigned long a[88 + 1];
8033 long i;
8034 for (i = 0; i < 88 + 1; i++)
8035 a[i] = ~0L;
8036 r = malloc (10000 * sizeof (unsigned long));
8037 r2 = r;
8038 for (i = 0; i < 528; i += 22)
8040 lshift_com (r2, a,
8041 i / (8 * sizeof (unsigned long)) + 1,
8042 i % (8 * sizeof (unsigned long)));
8043 r2 += 88 + 1;
8045 if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
8046 r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
8047 abort ();
8048 return 0;
8050 #else
8052 main ()
8054 return 0;
8056 #endif
8059 echo "Test compile: mpn_lshift_com optimization 2" >&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
8078 else
8079 cc_works_part=no
8081 if test "$cc_works_part" != yes; then
8082 echo "failed program was:" >&5
8083 cat conftest.c >&5
8085 rm -f conftest* a.out b.out a.exe a_out.exe
8086 case $cc_works_part in
8087 yes)
8091 gmp_prog_cc_works="no, mpn_lshift_com optimization 2"
8093 norun)
8094 gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run"
8096 esac
8102 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
8103 # by recent versions of gcc.
8105 if test "$gmp_prog_cc_works" = yes; then
8106 case $host in
8107 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*)
8108 # this problem only arises in PIC code, so don't need to test when
8109 # --disable-shared. We don't necessarily have $enable_shared set to
8110 # yes at this point, it will still be unset for the default (which is
8111 # yes); hence the use of "!= no".
8112 if test "$enable_shared" != no; then
8113 echo "Testing gcc GOT with eax emitted" >&5
8114 cat >conftest.c <<\EOF
8115 int foo;
8116 int bar () { return foo; }
8118 tmp_got_emitted=no
8119 gmp_compile="$cc $cflags $cppflags $flag -fPIC -S conftest.c >&5 2>&1"
8120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
8121 (eval $gmp_compile) 2>&5
8122 ac_status=$?
8123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8124 test $ac_status = 0; }; then
8125 if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
8126 tmp_got_emitted=yes
8129 rm -f conftest.*
8130 echo "Result: $tmp_got_emitted" >&5
8131 if test "$tmp_got_emitted" = yes; then
8132 echo "Testing gas GOT with eax good" >&5
8133 cat >conftest.awk <<\EOF
8134 BEGIN {
8135 want[0] = "001"
8136 want[1] = "043"
8137 want[2] = "105"
8138 want[3] = "147"
8139 want[4] = "211"
8140 want[5] = "253"
8141 want[6] = "315"
8142 want[7] = "357"
8144 want[8] = "005"
8145 want[9] = "002"
8146 want[10] = "000"
8147 want[11] = "000"
8148 want[12] = "000"
8150 want[13] = "376"
8151 want[14] = "334"
8152 want[15] = "272"
8153 want[16] = "230"
8154 want[17] = "166"
8155 want[18] = "124"
8156 want[19] = "062"
8157 want[20] = "020"
8159 result = "yes"
8162 for (f = 2; f <= NF; f++)
8164 for (i = 0; i < 20; i++)
8165 got[i] = got[i+1];
8166 got[20] = $f;
8168 found = 1
8169 for (i = 0; i < 21; i++)
8170 if (got[i] != want[i])
8172 found = 0
8173 break
8175 if (found)
8177 result = "no"
8178 exit
8182 END {
8183 print result
8186 cat >conftest.s <<\EOF
8187 .text
8188 .byte 1, 35, 69, 103, 137, 171, 205, 239
8189 addl $_GLOBAL_OFFSET_TABLE_, %eax
8190 .byte 254, 220, 186, 152, 118, 84, 50, 16
8192 tmp_got_good=yes
8193 gmp_compile="$cc $cflags $cppflags $flag -fPIC -o conftest.o -c conftest.s >&5 2>&1"
8194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
8195 (eval $gmp_compile) 2>&5
8196 ac_status=$?
8197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8198 test $ac_status = 0; }; then
8199 tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
8201 rm -f conftest.*
8202 echo "Result: $tmp_got_good" >&5
8203 if test "$tmp_got_good" = no; then
8204 gmp_prog_cc_works="no, bad gas GOT with eax"
8205 else
8209 else
8215 esac
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
8219 $as_echo "$gmp_prog_cc_works" >&6; }
8220 case $gmp_prog_cc_works in
8221 yes)
8222 cflags="$cflags $flag"
8223 break
8228 esac
8230 done
8231 done
8234 ABI="$abi"
8235 CC="$cc"
8236 CFLAGS="$cflags"
8237 CPPFLAGS="$cppflags"
8238 eval GMP_NONSTD_ABI=\"\$GMP_NONSTD_ABI_$ABI\"
8240 # Could easily have this in config.h too, if desired.
8241 ABI_nodots=`echo $ABI | sed 's/\./_/'`
8243 echo "define_not_for_expansion(\`HAVE_ABI_$ABI_nodots')" >> $gmp_tmpconfigm4p
8247 # GMP_LDFLAGS substitution, selected according to ABI.
8248 # These are needed on libgmp.la and libmp.la, but currently not on
8249 # convenience libraries like tune/libspeed.la or mpz/libmpz.la.
8251 eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
8252 test -n "$GMP_LDFLAGS" || eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
8257 # extra_functions, selected according to ABI
8258 eval tmp=\"\$extra_functions$abi1\"
8259 test -n "$tmp" || eval tmp=\"\$extra_functions$abi2\"
8260 extra_functions="$tmp"
8263 # Cycle counter, selected according to ABI.
8265 eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi1\"
8266 test -n "$tmp" || eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi2\"
8267 SPEED_CYCLECOUNTER_OBJ="$tmp"
8268 eval tmp=\"\$cyclecounter_size$abi1\"
8269 test -n "$tmp" || eval tmp=\"\$cyclecounter_size$abi2\"
8270 cyclecounter_size="$tmp"
8272 if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
8274 cat >>confdefs.h <<_ACEOF
8275 #define HAVE_SPEED_CYCLECOUNTER $cyclecounter_size
8276 _ACEOF
8282 # Calling conventions checking, selected according to ABI.
8284 eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi1\"
8285 test -n "$tmp" || eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi2\"
8286 if test "$enable_assembly" = "yes"; then
8287 CALLING_CONVENTIONS_OBJS="$tmp"
8288 else
8289 CALLING_CONVENTIONS_OBJS=""
8292 if test -n "$CALLING_CONVENTIONS_OBJS"; then
8294 $as_echo "#define HAVE_CALLING_CONVENTIONS 1" >>confdefs.h
8302 # If the user gave an MPN_PATH, use that verbatim, otherwise choose
8303 # according to the ABI and add "generic".
8305 if test -n "$MPN_PATH"; then
8306 path="$MPN_PATH"
8307 else
8308 eval tmp=\"\$path$abi1\"
8309 test -n "$tmp" || eval tmp=\"\$path$abi2\"
8310 path="$tmp generic"
8314 # Long long limb setup for gmp.h.
8315 case $limb_chosen in
8316 longlong) DEFN_LONG_LONG_LIMB="#define _LONG_LONG_LIMB 1" ;;
8317 *) DEFN_LONG_LONG_LIMB="/* #undef _LONG_LONG_LIMB */" ;;
8318 esac
8322 # The C compiler and preprocessor, put into ANSI mode if possible.
8323 ac_ext=c
8324 ac_cpp='$CPP $CPPFLAGS'
8325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8328 if test -n "$ac_tool_prefix"; then
8329 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
8330 set dummy ${ac_tool_prefix}gcc; ac_word=$2
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8332 $as_echo_n "checking for $ac_word... " >&6; }
8333 if ${ac_cv_prog_CC+:} false; then :
8334 $as_echo_n "(cached) " >&6
8335 else
8336 if test -n "$CC"; then
8337 ac_cv_prog_CC="$CC" # Let the user override the test.
8338 else
8339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340 for as_dir in $PATH
8342 IFS=$as_save_IFS
8343 test -z "$as_dir" && as_dir=.
8344 for ac_exec_ext in '' $ac_executable_extensions; do
8345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8346 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8348 break 2
8350 done
8351 done
8352 IFS=$as_save_IFS
8356 CC=$ac_cv_prog_CC
8357 if test -n "$CC"; then
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8359 $as_echo "$CC" >&6; }
8360 else
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8362 $as_echo "no" >&6; }
8367 if test -z "$ac_cv_prog_CC"; then
8368 ac_ct_CC=$CC
8369 # Extract the first word of "gcc", so it can be a program name with args.
8370 set dummy gcc; ac_word=$2
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8372 $as_echo_n "checking for $ac_word... " >&6; }
8373 if ${ac_cv_prog_ac_ct_CC+:} false; then :
8374 $as_echo_n "(cached) " >&6
8375 else
8376 if test -n "$ac_ct_CC"; then
8377 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8378 else
8379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380 for as_dir in $PATH
8382 IFS=$as_save_IFS
8383 test -z "$as_dir" && as_dir=.
8384 for ac_exec_ext in '' $ac_executable_extensions; do
8385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8386 ac_cv_prog_ac_ct_CC="gcc"
8387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8388 break 2
8390 done
8391 done
8392 IFS=$as_save_IFS
8396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8397 if test -n "$ac_ct_CC"; then
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8399 $as_echo "$ac_ct_CC" >&6; }
8400 else
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8402 $as_echo "no" >&6; }
8405 if test "x$ac_ct_CC" = x; then
8406 CC=""
8407 else
8408 case $cross_compiling:$ac_tool_warned in
8409 yes:)
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8412 ac_tool_warned=yes ;;
8413 esac
8414 CC=$ac_ct_CC
8416 else
8417 CC="$ac_cv_prog_CC"
8420 if test -z "$CC"; then
8421 if test -n "$ac_tool_prefix"; then
8422 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
8423 set dummy ${ac_tool_prefix}cc; ac_word=$2
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425 $as_echo_n "checking for $ac_word... " >&6; }
8426 if ${ac_cv_prog_CC+:} false; then :
8427 $as_echo_n "(cached) " >&6
8428 else
8429 if test -n "$CC"; then
8430 ac_cv_prog_CC="$CC" # Let the user override the test.
8431 else
8432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433 for as_dir in $PATH
8435 IFS=$as_save_IFS
8436 test -z "$as_dir" && as_dir=.
8437 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8439 ac_cv_prog_CC="${ac_tool_prefix}cc"
8440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8441 break 2
8443 done
8444 done
8445 IFS=$as_save_IFS
8449 CC=$ac_cv_prog_CC
8450 if test -n "$CC"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8452 $as_echo "$CC" >&6; }
8453 else
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455 $as_echo "no" >&6; }
8461 if test -z "$CC"; then
8462 # Extract the first word of "cc", so it can be a program name with args.
8463 set dummy cc; ac_word=$2
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8465 $as_echo_n "checking for $ac_word... " >&6; }
8466 if ${ac_cv_prog_CC+:} false; then :
8467 $as_echo_n "(cached) " >&6
8468 else
8469 if test -n "$CC"; then
8470 ac_cv_prog_CC="$CC" # Let the user override the test.
8471 else
8472 ac_prog_rejected=no
8473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8474 for as_dir in $PATH
8476 IFS=$as_save_IFS
8477 test -z "$as_dir" && as_dir=.
8478 for ac_exec_ext in '' $ac_executable_extensions; do
8479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8480 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
8481 ac_prog_rejected=yes
8482 continue
8484 ac_cv_prog_CC="cc"
8485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8486 break 2
8488 done
8489 done
8490 IFS=$as_save_IFS
8492 if test $ac_prog_rejected = yes; then
8493 # We found a bogon in the path, so make sure we never use it.
8494 set dummy $ac_cv_prog_CC
8495 shift
8496 if test $# != 0; then
8497 # We chose a different compiler from the bogus one.
8498 # However, it has the same basename, so the bogon will be chosen
8499 # first if we set CC to just the basename; use the full file name.
8500 shift
8501 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8506 CC=$ac_cv_prog_CC
8507 if test -n "$CC"; then
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8509 $as_echo "$CC" >&6; }
8510 else
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8512 $as_echo "no" >&6; }
8517 if test -z "$CC"; then
8518 if test -n "$ac_tool_prefix"; then
8519 for ac_prog in cl.exe
8521 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8522 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8524 $as_echo_n "checking for $ac_word... " >&6; }
8525 if ${ac_cv_prog_CC+:} false; then :
8526 $as_echo_n "(cached) " >&6
8527 else
8528 if test -n "$CC"; then
8529 ac_cv_prog_CC="$CC" # Let the user override the test.
8530 else
8531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8532 for as_dir in $PATH
8534 IFS=$as_save_IFS
8535 test -z "$as_dir" && as_dir=.
8536 for ac_exec_ext in '' $ac_executable_extensions; do
8537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8538 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8540 break 2
8542 done
8543 done
8544 IFS=$as_save_IFS
8548 CC=$ac_cv_prog_CC
8549 if test -n "$CC"; then
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8551 $as_echo "$CC" >&6; }
8552 else
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554 $as_echo "no" >&6; }
8558 test -n "$CC" && break
8559 done
8561 if test -z "$CC"; then
8562 ac_ct_CC=$CC
8563 for ac_prog in cl.exe
8565 # Extract the first word of "$ac_prog", so it can be a program name with args.
8566 set dummy $ac_prog; ac_word=$2
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8568 $as_echo_n "checking for $ac_word... " >&6; }
8569 if ${ac_cv_prog_ac_ct_CC+:} false; then :
8570 $as_echo_n "(cached) " >&6
8571 else
8572 if test -n "$ac_ct_CC"; then
8573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8574 else
8575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8576 for as_dir in $PATH
8578 IFS=$as_save_IFS
8579 test -z "$as_dir" && as_dir=.
8580 for ac_exec_ext in '' $ac_executable_extensions; do
8581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8582 ac_cv_prog_ac_ct_CC="$ac_prog"
8583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8584 break 2
8586 done
8587 done
8588 IFS=$as_save_IFS
8592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8593 if test -n "$ac_ct_CC"; then
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8595 $as_echo "$ac_ct_CC" >&6; }
8596 else
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8598 $as_echo "no" >&6; }
8602 test -n "$ac_ct_CC" && break
8603 done
8605 if test "x$ac_ct_CC" = x; then
8606 CC=""
8607 else
8608 case $cross_compiling:$ac_tool_warned in
8609 yes:)
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8612 ac_tool_warned=yes ;;
8613 esac
8614 CC=$ac_ct_CC
8621 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8623 as_fn_error $? "no acceptable C compiler found in \$PATH
8624 See \`config.log' for more details" "$LINENO" 5; }
8626 # Provide some information about the compiler.
8627 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8628 set X $ac_compile
8629 ac_compiler=$2
8630 for ac_option in --version -v -V -qversion; do
8631 { { ac_try="$ac_compiler $ac_option >&5"
8632 case "(($ac_try" in
8633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634 *) ac_try_echo=$ac_try;;
8635 esac
8636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8637 $as_echo "$ac_try_echo"; } >&5
8638 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8639 ac_status=$?
8640 if test -s conftest.err; then
8641 sed '10a\
8642 ... rest of stderr output deleted ...
8643 10q' conftest.err >conftest.er1
8644 cat conftest.er1 >&5
8646 rm -f conftest.er1 conftest.err
8647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8648 test $ac_status = 0; }
8649 done
8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8655 main ()
8659 return 0;
8661 _ACEOF
8662 ac_clean_files_save=$ac_clean_files
8663 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
8664 # Try to create an executable without -o first, disregard a.out.
8665 # It will help us diagnose broken compilers, and finding out an intuition
8666 # of exeext.
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
8668 $as_echo_n "checking whether the C compiler works... " >&6; }
8669 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
8671 # The possible output files:
8672 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
8674 ac_rmfiles=
8675 for ac_file in $ac_files
8677 case $ac_file in
8678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
8679 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
8680 esac
8681 done
8682 rm -f $ac_rmfiles
8684 if { { ac_try="$ac_link_default"
8685 case "(($ac_try" in
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8688 esac
8689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8690 $as_echo "$ac_try_echo"; } >&5
8691 (eval "$ac_link_default") 2>&5
8692 ac_status=$?
8693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8694 test $ac_status = 0; }; then :
8695 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
8696 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
8697 # in a Makefile. We should not override ac_cv_exeext if it was cached,
8698 # so that the user can short-circuit this test for compilers unknown to
8699 # Autoconf.
8700 for ac_file in $ac_files ''
8702 test -f "$ac_file" || continue
8703 case $ac_file in
8704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8706 [ab].out )
8707 # We found the default executable, but exeext='' is most
8708 # certainly right.
8709 break;;
8710 *.* )
8711 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
8712 then :; else
8713 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8715 # We set ac_cv_exeext here because the later test for it is not
8716 # safe: cross compilers may not add the suffix if given an `-o'
8717 # argument, so we may need to know it at that point already.
8718 # Even if this section looks crufty: it has the advantage of
8719 # actually working.
8720 break;;
8722 break;;
8723 esac
8724 done
8725 test "$ac_cv_exeext" = no && ac_cv_exeext=
8727 else
8728 ac_file=''
8730 if test -z "$ac_file"; then :
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8732 $as_echo "no" >&6; }
8733 $as_echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8738 as_fn_error 77 "C compiler cannot create executables
8739 See \`config.log' for more details" "$LINENO" 5; }
8740 else
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8742 $as_echo "yes" >&6; }
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
8745 $as_echo_n "checking for C compiler default output file name... " >&6; }
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
8747 $as_echo "$ac_file" >&6; }
8748 ac_exeext=$ac_cv_exeext
8750 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
8751 ac_clean_files=$ac_clean_files_save
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
8753 $as_echo_n "checking for suffix of executables... " >&6; }
8754 if { { ac_try="$ac_link"
8755 case "(($ac_try" in
8756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8757 *) ac_try_echo=$ac_try;;
8758 esac
8759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8760 $as_echo "$ac_try_echo"; } >&5
8761 (eval "$ac_link") 2>&5
8762 ac_status=$?
8763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8764 test $ac_status = 0; }; then :
8765 # If both `conftest.exe' and `conftest' are `present' (well, observable)
8766 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
8767 # work properly (i.e., refer to `conftest.exe'), while it won't with
8768 # `rm'.
8769 for ac_file in conftest.exe conftest conftest.*; do
8770 test -f "$ac_file" || continue
8771 case $ac_file in
8772 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
8773 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8774 break;;
8775 * ) break;;
8776 esac
8777 done
8778 else
8779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8781 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
8782 See \`config.log' for more details" "$LINENO" 5; }
8784 rm -f conftest conftest$ac_cv_exeext
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
8786 $as_echo "$ac_cv_exeext" >&6; }
8788 rm -f conftest.$ac_ext
8789 EXEEXT=$ac_cv_exeext
8790 ac_exeext=$EXEEXT
8791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8792 /* end confdefs.h. */
8793 #include <stdio.h>
8795 main ()
8797 FILE *f = fopen ("conftest.out", "w");
8798 return ferror (f) || fclose (f) != 0;
8801 return 0;
8803 _ACEOF
8804 ac_clean_files="$ac_clean_files conftest.out"
8805 # Check that the compiler produces executables we can run. If not, either
8806 # the compiler is broken, or we cross compile.
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
8808 $as_echo_n "checking whether we are cross compiling... " >&6; }
8809 if test "$cross_compiling" != yes; then
8810 { { ac_try="$ac_link"
8811 case "(($ac_try" in
8812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813 *) ac_try_echo=$ac_try;;
8814 esac
8815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8816 $as_echo "$ac_try_echo"; } >&5
8817 (eval "$ac_link") 2>&5
8818 ac_status=$?
8819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8820 test $ac_status = 0; }
8821 if { ac_try='./conftest$ac_cv_exeext'
8822 { { case "(($ac_try" in
8823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8824 *) ac_try_echo=$ac_try;;
8825 esac
8826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8827 $as_echo "$ac_try_echo"; } >&5
8828 (eval "$ac_try") 2>&5
8829 ac_status=$?
8830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8831 test $ac_status = 0; }; }; then
8832 cross_compiling=no
8833 else
8834 if test "$cross_compiling" = maybe; then
8835 cross_compiling=yes
8836 else
8837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8839 as_fn_error $? "cannot run C compiled programs.
8840 If you meant to cross compile, use \`--host'.
8841 See \`config.log' for more details" "$LINENO" 5; }
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
8846 $as_echo "$cross_compiling" >&6; }
8848 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
8849 ac_clean_files=$ac_clean_files_save
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
8851 $as_echo_n "checking for suffix of object files... " >&6; }
8852 if ${ac_cv_objext+:} false; then :
8853 $as_echo_n "(cached) " >&6
8854 else
8855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856 /* end confdefs.h. */
8859 main ()
8863 return 0;
8865 _ACEOF
8866 rm -f conftest.o conftest.obj
8867 if { { ac_try="$ac_compile"
8868 case "(($ac_try" in
8869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8870 *) ac_try_echo=$ac_try;;
8871 esac
8872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8873 $as_echo "$ac_try_echo"; } >&5
8874 (eval "$ac_compile") 2>&5
8875 ac_status=$?
8876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8877 test $ac_status = 0; }; then :
8878 for ac_file in conftest.o conftest.obj conftest.*; do
8879 test -f "$ac_file" || continue;
8880 case $ac_file in
8881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
8882 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
8883 break;;
8884 esac
8885 done
8886 else
8887 $as_echo "$as_me: failed program was:" >&5
8888 sed 's/^/| /' conftest.$ac_ext >&5
8890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8892 as_fn_error $? "cannot compute suffix of object files: cannot compile
8893 See \`config.log' for more details" "$LINENO" 5; }
8895 rm -f conftest.$ac_cv_objext conftest.$ac_ext
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
8898 $as_echo "$ac_cv_objext" >&6; }
8899 OBJEXT=$ac_cv_objext
8900 ac_objext=$OBJEXT
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8902 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
8903 if ${ac_cv_c_compiler_gnu+:} false; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8910 main ()
8912 #ifndef __GNUC__
8913 choke me
8914 #endif
8917 return 0;
8919 _ACEOF
8920 if ac_fn_c_try_compile "$LINENO"; then :
8921 ac_compiler_gnu=yes
8922 else
8923 ac_compiler_gnu=no
8925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8926 ac_cv_c_compiler_gnu=$ac_compiler_gnu
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8930 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
8931 if test $ac_compiler_gnu = yes; then
8932 GCC=yes
8933 else
8934 GCC=
8936 ac_test_CFLAGS=${CFLAGS+set}
8937 ac_save_CFLAGS=$CFLAGS
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8939 $as_echo_n "checking whether $CC accepts -g... " >&6; }
8940 if ${ac_cv_prog_cc_g+:} false; then :
8941 $as_echo_n "(cached) " >&6
8942 else
8943 ac_save_c_werror_flag=$ac_c_werror_flag
8944 ac_c_werror_flag=yes
8945 ac_cv_prog_cc_g=no
8946 CFLAGS="-g"
8947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8948 /* end confdefs.h. */
8951 main ()
8955 return 0;
8957 _ACEOF
8958 if ac_fn_c_try_compile "$LINENO"; then :
8959 ac_cv_prog_cc_g=yes
8960 else
8961 CFLAGS=""
8962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963 /* end confdefs.h. */
8966 main ()
8970 return 0;
8972 _ACEOF
8973 if ac_fn_c_try_compile "$LINENO"; then :
8975 else
8976 ac_c_werror_flag=$ac_save_c_werror_flag
8977 CFLAGS="-g"
8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h. */
8982 main ()
8986 return 0;
8988 _ACEOF
8989 if ac_fn_c_try_compile "$LINENO"; then :
8990 ac_cv_prog_cc_g=yes
8992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8997 ac_c_werror_flag=$ac_save_c_werror_flag
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
9000 $as_echo "$ac_cv_prog_cc_g" >&6; }
9001 if test "$ac_test_CFLAGS" = set; then
9002 CFLAGS=$ac_save_CFLAGS
9003 elif test $ac_cv_prog_cc_g = yes; then
9004 if test "$GCC" = yes; then
9005 CFLAGS="-g -O2"
9006 else
9007 CFLAGS="-g"
9009 else
9010 if test "$GCC" = yes; then
9011 CFLAGS="-O2"
9012 else
9013 CFLAGS=
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
9017 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
9018 if ${ac_cv_prog_cc_c89+:} false; then :
9019 $as_echo_n "(cached) " >&6
9020 else
9021 ac_cv_prog_cc_c89=no
9022 ac_save_CC=$CC
9023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9024 /* end confdefs.h. */
9025 #include <stdarg.h>
9026 #include <stdio.h>
9027 struct stat;
9028 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
9029 struct buf { int x; };
9030 FILE * (*rcsopen) (struct buf *, struct stat *, int);
9031 static char *e (p, i)
9032 char **p;
9033 int i;
9035 return p[i];
9037 static char *f (char * (*g) (char **, int), char **p, ...)
9039 char *s;
9040 va_list v;
9041 va_start (v,p);
9042 s = g (p, va_arg (v,int));
9043 va_end (v);
9044 return s;
9047 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
9048 function prototypes and stuff, but not '\xHH' hex character constants.
9049 These don't provoke an error unfortunately, instead are silently treated
9050 as 'x'. The following induces an error, until -std is added to get
9051 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
9052 array size at least. It's necessary to write '\x00'==0 to get something
9053 that's true only with -std. */
9054 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
9056 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
9057 inside strings and character constants. */
9058 #define FOO(x) 'x'
9059 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
9061 int test (int i, double x);
9062 struct s1 {int (*f) (int a);};
9063 struct s2 {int (*f) (double a);};
9064 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9065 int argc;
9066 char **argv;
9068 main ()
9070 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
9072 return 0;
9074 _ACEOF
9075 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
9076 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9078 CC="$ac_save_CC $ac_arg"
9079 if ac_fn_c_try_compile "$LINENO"; then :
9080 ac_cv_prog_cc_c89=$ac_arg
9082 rm -f core conftest.err conftest.$ac_objext
9083 test "x$ac_cv_prog_cc_c89" != "xno" && break
9084 done
9085 rm -f conftest.$ac_ext
9086 CC=$ac_save_CC
9089 # AC_CACHE_VAL
9090 case "x$ac_cv_prog_cc_c89" in
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9093 $as_echo "none needed" >&6; } ;;
9094 xno)
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9096 $as_echo "unsupported" >&6; } ;;
9098 CC="$CC $ac_cv_prog_cc_c89"
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
9100 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
9101 esac
9102 if test "x$ac_cv_prog_cc_c89" != xno; then :
9106 ac_ext=c
9107 ac_cpp='$CPP $CPPFLAGS'
9108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9112 case $ac_cv_prog_cc_stdc in #(
9113 no) :
9114 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
9115 *) :
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
9117 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
9118 if ${ac_cv_prog_cc_c99+:} false; then :
9119 $as_echo_n "(cached) " >&6
9120 else
9121 ac_cv_prog_cc_c99=no
9122 ac_save_CC=$CC
9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h. */
9125 #include <stdarg.h>
9126 #include <stdbool.h>
9127 #include <stdlib.h>
9128 #include <wchar.h>
9129 #include <stdio.h>
9131 // Check varargs macros. These examples are taken from C99 6.10.3.5.
9132 #define debug(...) fprintf (stderr, __VA_ARGS__)
9133 #define showlist(...) puts (#__VA_ARGS__)
9134 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
9135 static void
9136 test_varargs_macros (void)
9138 int x = 1234;
9139 int y = 5678;
9140 debug ("Flag");
9141 debug ("X = %d\n", x);
9142 showlist (The first, second, and third items.);
9143 report (x>y, "x is %d but y is %d", x, y);
9146 // Check long long types.
9147 #define BIG64 18446744073709551615ull
9148 #define BIG32 4294967295ul
9149 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
9150 #if !BIG_OK
9151 your preprocessor is broken;
9152 #endif
9153 #if BIG_OK
9154 #else
9155 your preprocessor is broken;
9156 #endif
9157 static long long int bignum = -9223372036854775807LL;
9158 static unsigned long long int ubignum = BIG64;
9160 struct incomplete_array
9162 int datasize;
9163 double data[];
9166 struct named_init {
9167 int number;
9168 const wchar_t *name;
9169 double average;
9172 typedef const char *ccp;
9174 static inline int
9175 test_restrict (ccp restrict text)
9177 // See if C++-style comments work.
9178 // Iterate through items via the restricted pointer.
9179 // Also check for declarations in for loops.
9180 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
9181 continue;
9182 return 0;
9185 // Check varargs and va_copy.
9186 static void
9187 test_varargs (const char *format, ...)
9189 va_list args;
9190 va_start (args, format);
9191 va_list args_copy;
9192 va_copy (args_copy, args);
9194 const char *str;
9195 int number;
9196 float fnumber;
9198 while (*format)
9200 switch (*format++)
9202 case 's': // string
9203 str = va_arg (args_copy, const char *);
9204 break;
9205 case 'd': // int
9206 number = va_arg (args_copy, int);
9207 break;
9208 case 'f': // float
9209 fnumber = va_arg (args_copy, double);
9210 break;
9211 default:
9212 break;
9215 va_end (args_copy);
9216 va_end (args);
9220 main ()
9223 // Check bool.
9224 _Bool success = false;
9226 // Check restrict.
9227 if (test_restrict ("String literal") == 0)
9228 success = true;
9229 char *restrict newvar = "Another string";
9231 // Check varargs.
9232 test_varargs ("s, d' f .", "string", 65, 34.234);
9233 test_varargs_macros ();
9235 // Check flexible array members.
9236 struct incomplete_array *ia =
9237 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
9238 ia->datasize = 10;
9239 for (int i = 0; i < ia->datasize; ++i)
9240 ia->data[i] = i * 1.234;
9242 // Check named initializers.
9243 struct named_init ni = {
9244 .number = 34,
9245 .name = L"Test wide string",
9246 .average = 543.34343,
9249 ni.number = 58;
9251 int dynamic_array[ni.number];
9252 dynamic_array[ni.number - 1] = 543;
9254 // work around unused variable warnings
9255 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
9256 || dynamic_array[ni.number - 1] != 543);
9259 return 0;
9261 _ACEOF
9262 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
9264 CC="$ac_save_CC $ac_arg"
9265 if ac_fn_c_try_compile "$LINENO"; then :
9266 ac_cv_prog_cc_c99=$ac_arg
9268 rm -f core conftest.err conftest.$ac_objext
9269 test "x$ac_cv_prog_cc_c99" != "xno" && break
9270 done
9271 rm -f conftest.$ac_ext
9272 CC=$ac_save_CC
9275 # AC_CACHE_VAL
9276 case "x$ac_cv_prog_cc_c99" in
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9279 $as_echo "none needed" >&6; } ;;
9280 xno)
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9282 $as_echo "unsupported" >&6; } ;;
9284 CC="$CC $ac_cv_prog_cc_c99"
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
9286 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
9287 esac
9288 if test "x$ac_cv_prog_cc_c99" != xno; then :
9289 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
9290 else
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
9292 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
9293 if ${ac_cv_prog_cc_c89+:} false; then :
9294 $as_echo_n "(cached) " >&6
9295 else
9296 ac_cv_prog_cc_c89=no
9297 ac_save_CC=$CC
9298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h. */
9300 #include <stdarg.h>
9301 #include <stdio.h>
9302 struct stat;
9303 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
9304 struct buf { int x; };
9305 FILE * (*rcsopen) (struct buf *, struct stat *, int);
9306 static char *e (p, i)
9307 char **p;
9308 int i;
9310 return p[i];
9312 static char *f (char * (*g) (char **, int), char **p, ...)
9314 char *s;
9315 va_list v;
9316 va_start (v,p);
9317 s = g (p, va_arg (v,int));
9318 va_end (v);
9319 return s;
9322 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
9323 function prototypes and stuff, but not '\xHH' hex character constants.
9324 These don't provoke an error unfortunately, instead are silently treated
9325 as 'x'. The following induces an error, until -std is added to get
9326 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
9327 array size at least. It's necessary to write '\x00'==0 to get something
9328 that's true only with -std. */
9329 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
9331 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
9332 inside strings and character constants. */
9333 #define FOO(x) 'x'
9334 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
9336 int test (int i, double x);
9337 struct s1 {int (*f) (int a);};
9338 struct s2 {int (*f) (double a);};
9339 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9340 int argc;
9341 char **argv;
9343 main ()
9345 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
9347 return 0;
9349 _ACEOF
9350 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
9351 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9353 CC="$ac_save_CC $ac_arg"
9354 if ac_fn_c_try_compile "$LINENO"; then :
9355 ac_cv_prog_cc_c89=$ac_arg
9357 rm -f core conftest.err conftest.$ac_objext
9358 test "x$ac_cv_prog_cc_c89" != "xno" && break
9359 done
9360 rm -f conftest.$ac_ext
9361 CC=$ac_save_CC
9364 # AC_CACHE_VAL
9365 case "x$ac_cv_prog_cc_c89" in
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9368 $as_echo "none needed" >&6; } ;;
9369 xno)
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9371 $as_echo "unsupported" >&6; } ;;
9373 CC="$CC $ac_cv_prog_cc_c89"
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
9375 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
9376 esac
9377 if test "x$ac_cv_prog_cc_c89" != xno; then :
9378 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
9379 else
9380 ac_cv_prog_cc_stdc=no
9385 esac
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
9387 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
9388 if ${ac_cv_prog_cc_stdc+:} false; then :
9389 $as_echo_n "(cached) " >&6
9392 case $ac_cv_prog_cc_stdc in #(
9393 no) :
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9395 $as_echo "unsupported" >&6; } ;; #(
9396 '') :
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9398 $as_echo "none needed" >&6; } ;; #(
9399 *) :
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
9401 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
9402 esac
9404 ac_ext=c
9405 ac_cpp='$CPP $CPPFLAGS'
9406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9410 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9411 # On Suns, sometimes $CPP names a directory.
9412 if test -n "$CPP" && test -d "$CPP"; then
9413 CPP=
9415 if test -z "$CPP"; then
9416 if ${ac_cv_prog_CPP+:} false; then :
9417 $as_echo_n "(cached) " >&6
9418 else
9419 # Double quotes because CPP needs to be expanded
9420 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9422 ac_preproc_ok=false
9423 for ac_c_preproc_warn_flag in '' yes
9425 # Use a header file that comes with gcc, so configuring glibc
9426 # with a fresh cross-compiler works.
9427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9428 # <limits.h> exists even on freestanding compilers.
9429 # On the NeXT, cc -E runs the code through the compiler's parser,
9430 # not just through cpp. "Syntax error" is here to catch this case.
9431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h. */
9433 #ifdef __STDC__
9434 # include <limits.h>
9435 #else
9436 # include <assert.h>
9437 #endif
9438 Syntax error
9439 _ACEOF
9440 if ac_fn_c_try_cpp "$LINENO"; then :
9442 else
9443 # Broken: fails on valid input.
9444 continue
9446 rm -f conftest.err conftest.i conftest.$ac_ext
9448 # OK, works on sane cases. Now check whether nonexistent headers
9449 # can be detected and how.
9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9452 #include <ac_nonexistent.h>
9453 _ACEOF
9454 if ac_fn_c_try_cpp "$LINENO"; then :
9455 # Broken: success on invalid input.
9456 continue
9457 else
9458 # Passes both tests.
9459 ac_preproc_ok=:
9460 break
9462 rm -f conftest.err conftest.i conftest.$ac_ext
9464 done
9465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9466 rm -f conftest.i conftest.err conftest.$ac_ext
9467 if $ac_preproc_ok; then :
9468 break
9471 done
9472 ac_cv_prog_CPP=$CPP
9475 CPP=$ac_cv_prog_CPP
9476 else
9477 ac_cv_prog_CPP=$CPP
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9480 $as_echo "$CPP" >&6; }
9481 ac_preproc_ok=false
9482 for ac_c_preproc_warn_flag in '' yes
9484 # Use a header file that comes with gcc, so configuring glibc
9485 # with a fresh cross-compiler works.
9486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9487 # <limits.h> exists even on freestanding compilers.
9488 # On the NeXT, cc -E runs the code through the compiler's parser,
9489 # not just through cpp. "Syntax error" is here to catch this case.
9490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491 /* end confdefs.h. */
9492 #ifdef __STDC__
9493 # include <limits.h>
9494 #else
9495 # include <assert.h>
9496 #endif
9497 Syntax error
9498 _ACEOF
9499 if ac_fn_c_try_cpp "$LINENO"; then :
9501 else
9502 # Broken: fails on valid input.
9503 continue
9505 rm -f conftest.err conftest.i conftest.$ac_ext
9507 # OK, works on sane cases. Now check whether nonexistent headers
9508 # can be detected and how.
9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510 /* end confdefs.h. */
9511 #include <ac_nonexistent.h>
9512 _ACEOF
9513 if ac_fn_c_try_cpp "$LINENO"; then :
9514 # Broken: success on invalid input.
9515 continue
9516 else
9517 # Passes both tests.
9518 ac_preproc_ok=:
9519 break
9521 rm -f conftest.err conftest.i conftest.$ac_ext
9523 done
9524 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9525 rm -f conftest.i conftest.err conftest.$ac_ext
9526 if $ac_preproc_ok; then :
9528 else
9529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9531 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9532 See \`config.log' for more details" "$LINENO" 5; }
9535 ac_ext=c
9536 ac_cpp='$CPP $CPPFLAGS'
9537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9543 # The C compiler on the build system, and associated tests.
9545 if test -n "$CC_FOR_BUILD"; then
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $CC_FOR_BUILD" >&5
9547 $as_echo_n "checking build system compiler $CC_FOR_BUILD... " >&6; }
9548 # remove anything that might look like compiler output to our "||" expression
9549 rm -f conftest* a.out b.out a.exe a_out.exe
9550 cat >conftest.c <<EOF
9552 main ()
9554 exit(0);
9557 gmp_compile="$CC_FOR_BUILD conftest.c"
9558 cc_for_build_works=no
9559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9560 (eval $gmp_compile) 2>&5
9561 ac_status=$?
9562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9563 test $ac_status = 0; }; then
9564 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
9565 cc_for_build_works=yes
9568 rm -f conftest* a.out b.out a.exe a_out.exe
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
9570 $as_echo "$cc_for_build_works" >&6; }
9571 if test "$cc_for_build_works" = yes; then
9573 else
9574 as_fn_error $? "Specified CC_FOR_BUILD doesn't seem to work" "$LINENO" 5
9577 elif test -n "$HOST_CC"; then
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $HOST_CC" >&5
9579 $as_echo_n "checking build system compiler $HOST_CC... " >&6; }
9580 # remove anything that might look like compiler output to our "||" expression
9581 rm -f conftest* a.out b.out a.exe a_out.exe
9582 cat >conftest.c <<EOF
9584 main ()
9586 exit(0);
9589 gmp_compile="$HOST_CC conftest.c"
9590 cc_for_build_works=no
9591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9592 (eval $gmp_compile) 2>&5
9593 ac_status=$?
9594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9595 test $ac_status = 0; }; then
9596 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
9597 cc_for_build_works=yes
9600 rm -f conftest* a.out b.out a.exe a_out.exe
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
9602 $as_echo "$cc_for_build_works" >&6; }
9603 if test "$cc_for_build_works" = yes; then
9604 CC_FOR_BUILD=$HOST_CC
9605 else
9606 as_fn_error $? "Specified HOST_CC doesn't seem to work" "$LINENO" 5
9609 else
9610 for i in "$CC" "$CC $CFLAGS $CPPFLAGS" cc gcc c89 c99; do
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $i" >&5
9612 $as_echo_n "checking build system compiler $i... " >&6; }
9613 # remove anything that might look like compiler output to our "||" expression
9614 rm -f conftest* a.out b.out a.exe a_out.exe
9615 cat >conftest.c <<EOF
9617 main ()
9619 exit(0);
9622 gmp_compile="$i conftest.c"
9623 cc_for_build_works=no
9624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9625 (eval $gmp_compile) 2>&5
9626 ac_status=$?
9627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9628 test $ac_status = 0; }; then
9629 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
9630 cc_for_build_works=yes
9633 rm -f conftest* a.out b.out a.exe a_out.exe
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
9635 $as_echo "$cc_for_build_works" >&6; }
9636 if test "$cc_for_build_works" = yes; then
9637 CC_FOR_BUILD=$i
9638 break
9639 else
9643 done
9644 if test -z "$CC_FOR_BUILD"; then
9645 as_fn_error $? "Cannot find a build system compiler" "$LINENO" 5
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system preprocessor" >&5
9654 $as_echo_n "checking for build system preprocessor... " >&6; }
9655 if test -z "$CPP_FOR_BUILD"; then
9656 if ${gmp_cv_prog_cpp_for_build+:} false; then :
9657 $as_echo_n "(cached) " >&6
9658 else
9659 cat >conftest.c <<EOF
9660 #define FOO BAR
9662 for i in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"; do
9663 gmp_compile="$i conftest.c"
9664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9665 (eval $gmp_compile) 2>&5
9666 ac_status=$?
9667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9668 test $ac_status = 0; } >&5 2>&1; then
9669 gmp_cv_prog_cpp_for_build=$i
9670 break
9672 done
9673 rm -f conftest* a.out b.out a.exe a_out.exe
9674 if test -z "$gmp_cv_prog_cpp_for_build"; then
9675 as_fn_error $? "Cannot find build system C preprocessor." "$LINENO" 5
9680 CPP_FOR_BUILD=$gmp_cv_prog_cpp_for_build
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
9683 $as_echo "$CPP_FOR_BUILD" >&6; }
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
9690 $as_echo_n "checking for build system executable suffix... " >&6; }
9691 if ${gmp_cv_prog_exeext_for_build+:} false; then :
9692 $as_echo_n "(cached) " >&6
9693 else
9694 cat >conftest.c <<EOF
9696 main ()
9698 exit (0);
9701 for i in .exe ,ff8 ""; do
9702 gmp_compile="$CC_FOR_BUILD conftest.c -o conftest$i"
9703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9704 (eval $gmp_compile) 2>&5
9705 ac_status=$?
9706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9707 test $ac_status = 0; }; then
9708 if (./conftest) 2>&5; then
9709 gmp_cv_prog_exeext_for_build=$i
9710 break
9713 done
9714 rm -f conftest*
9715 if test "${gmp_cv_prog_exeext_for_build+set}" != set; then
9716 as_fn_error $? "Cannot determine executable suffix" "$LINENO" 5
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_exeext_for_build" >&5
9721 $as_echo "$gmp_cv_prog_exeext_for_build" >&6; }
9722 EXEEXT_FOR_BUILD=$gmp_cv_prog_exeext_for_build
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build system compiler is ANSI" >&5
9727 $as_echo_n "checking whether build system compiler is ANSI... " >&6; }
9728 if ${gmp_cv_c_for_build_ansi+:} false; then :
9729 $as_echo_n "(cached) " >&6
9730 else
9731 cat >conftest.c <<EOF
9733 main (int argc, char **argv)
9735 exit(0);
9738 gmp_compile="$CC_FOR_BUILD conftest.c"
9739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9740 (eval $gmp_compile) 2>&5
9741 ac_status=$?
9742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9743 test $ac_status = 0; }; then
9744 gmp_cv_c_for_build_ansi=yes
9745 else
9746 gmp_cv_c_for_build_ansi=no
9748 rm -f conftest* a.out b.out a.exe a_out.exe
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_for_build_ansi" >&5
9752 $as_echo "$gmp_cv_c_for_build_ansi" >&6; }
9753 if test "$gmp_cv_c_for_build_ansi" = yes; then
9754 U_FOR_BUILD=
9755 else
9756 U_FOR_BUILD=_
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system compiler math library" >&5
9762 $as_echo_n "checking for build system compiler math library... " >&6; }
9763 if ${gmp_cv_check_libm_for_build+:} false; then :
9764 $as_echo_n "(cached) " >&6
9765 else
9766 cat >conftest.c <<EOF
9768 main ()
9770 exit(0);
9772 double d;
9773 double
9774 foo ()
9776 return log (d);
9779 gmp_compile="$CC_FOR_BUILD conftest.c -lm"
9780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9781 (eval $gmp_compile) 2>&5
9782 ac_status=$?
9783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9784 test $ac_status = 0; }; then
9785 gmp_cv_check_libm_for_build=-lm
9786 else
9787 gmp_cv_check_libm_for_build=no
9789 rm -f conftest* a.out b.out a.exe a_out.exe
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_check_libm_for_build" >&5
9793 $as_echo "$gmp_cv_check_libm_for_build" >&6; }
9794 case $gmp_cv_check_libm_for_build in
9795 yes) LIBM_FOR_BUILD=-lm
9797 no) LIBM_FOR_BUILD= ;;
9798 *) LIBM_FOR_BUILD=$gmp_cv_check_libm_for_build ;;
9799 esac
9803 # How to assemble, used with CFLAGS etc, see mpn/Makeasm.am.
9804 # Using the compiler is a lot easier than figuring out how to invoke the
9805 # assembler directly.
9807 test -n "$CCAS" || CCAS="$CC -c"
9811 # The C++ compiler, if desired.
9812 want_cxx=no
9813 if test $enable_cxx != no; then
9814 test_CXXFLAGS=${CXXFLAGS+set}
9815 ac_ext=cpp
9816 ac_cpp='$CXXCPP $CPPFLAGS'
9817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9820 if test -z "$CXX"; then
9821 if test -n "$CCC"; then
9822 CXX=$CCC
9823 else
9824 if test -n "$ac_tool_prefix"; then
9825 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9830 $as_echo_n "checking for $ac_word... " >&6; }
9831 if ${ac_cv_prog_CXX+:} false; then :
9832 $as_echo_n "(cached) " >&6
9833 else
9834 if test -n "$CXX"; then
9835 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9836 else
9837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838 for as_dir in $PATH
9840 IFS=$as_save_IFS
9841 test -z "$as_dir" && as_dir=.
9842 for ac_exec_ext in '' $ac_executable_extensions; do
9843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9844 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9846 break 2
9848 done
9849 done
9850 IFS=$as_save_IFS
9854 CXX=$ac_cv_prog_CXX
9855 if test -n "$CXX"; then
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
9857 $as_echo "$CXX" >&6; }
9858 else
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9860 $as_echo "no" >&6; }
9864 test -n "$CXX" && break
9865 done
9867 if test -z "$CXX"; then
9868 ac_ct_CXX=$CXX
9869 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9871 # Extract the first word of "$ac_prog", so it can be a program name with args.
9872 set dummy $ac_prog; ac_word=$2
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9874 $as_echo_n "checking for $ac_word... " >&6; }
9875 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
9876 $as_echo_n "(cached) " >&6
9877 else
9878 if test -n "$ac_ct_CXX"; then
9879 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9880 else
9881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9882 for as_dir in $PATH
9884 IFS=$as_save_IFS
9885 test -z "$as_dir" && as_dir=.
9886 for ac_exec_ext in '' $ac_executable_extensions; do
9887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9888 ac_cv_prog_ac_ct_CXX="$ac_prog"
9889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9890 break 2
9892 done
9893 done
9894 IFS=$as_save_IFS
9898 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9899 if test -n "$ac_ct_CXX"; then
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
9901 $as_echo "$ac_ct_CXX" >&6; }
9902 else
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9904 $as_echo "no" >&6; }
9908 test -n "$ac_ct_CXX" && break
9909 done
9911 if test "x$ac_ct_CXX" = x; then
9912 CXX="g++"
9913 else
9914 case $cross_compiling:$ac_tool_warned in
9915 yes:)
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9918 ac_tool_warned=yes ;;
9919 esac
9920 CXX=$ac_ct_CXX
9926 # Provide some information about the compiler.
9927 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
9928 set X $ac_compile
9929 ac_compiler=$2
9930 for ac_option in --version -v -V -qversion; do
9931 { { ac_try="$ac_compiler $ac_option >&5"
9932 case "(($ac_try" in
9933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934 *) ac_try_echo=$ac_try;;
9935 esac
9936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9937 $as_echo "$ac_try_echo"; } >&5
9938 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9939 ac_status=$?
9940 if test -s conftest.err; then
9941 sed '10a\
9942 ... rest of stderr output deleted ...
9943 10q' conftest.err >conftest.er1
9944 cat conftest.er1 >&5
9946 rm -f conftest.er1 conftest.err
9947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9948 test $ac_status = 0; }
9949 done
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
9952 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9953 if ${ac_cv_cxx_compiler_gnu+:} false; then :
9954 $as_echo_n "(cached) " >&6
9955 else
9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957 /* end confdefs.h. */
9960 main ()
9962 #ifndef __GNUC__
9963 choke me
9964 #endif
9967 return 0;
9969 _ACEOF
9970 if ac_fn_cxx_try_compile "$LINENO"; then :
9971 ac_compiler_gnu=yes
9972 else
9973 ac_compiler_gnu=no
9975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9976 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
9980 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9981 if test $ac_compiler_gnu = yes; then
9982 GXX=yes
9983 else
9984 GXX=
9986 ac_test_CXXFLAGS=${CXXFLAGS+set}
9987 ac_save_CXXFLAGS=$CXXFLAGS
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
9989 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
9990 if ${ac_cv_prog_cxx_g+:} false; then :
9991 $as_echo_n "(cached) " >&6
9992 else
9993 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9994 ac_cxx_werror_flag=yes
9995 ac_cv_prog_cxx_g=no
9996 CXXFLAGS="-g"
9997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h. */
10001 main ()
10005 return 0;
10007 _ACEOF
10008 if ac_fn_cxx_try_compile "$LINENO"; then :
10009 ac_cv_prog_cxx_g=yes
10010 else
10011 CXXFLAGS=""
10012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013 /* end confdefs.h. */
10016 main ()
10020 return 0;
10022 _ACEOF
10023 if ac_fn_cxx_try_compile "$LINENO"; then :
10025 else
10026 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10027 CXXFLAGS="-g"
10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029 /* end confdefs.h. */
10032 main ()
10036 return 0;
10038 _ACEOF
10039 if ac_fn_cxx_try_compile "$LINENO"; then :
10040 ac_cv_prog_cxx_g=yes
10042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10047 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10050 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10051 if test "$ac_test_CXXFLAGS" = set; then
10052 CXXFLAGS=$ac_save_CXXFLAGS
10053 elif test $ac_cv_prog_cxx_g = yes; then
10054 if test "$GXX" = yes; then
10055 CXXFLAGS="-g -O2"
10056 else
10057 CXXFLAGS="-g"
10059 else
10060 if test "$GXX" = yes; then
10061 CXXFLAGS="-O2"
10062 else
10063 CXXFLAGS=
10066 ac_ext=c
10067 ac_cpp='$CPP $CPPFLAGS'
10068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10073 echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&5
10074 cxxflags_ac_prog_cxx=$CXXFLAGS
10075 cxxflags_list=ac_prog_cxx
10077 # If the user didn't specify $CXXFLAGS, then try $CFLAGS, with -g removed
10078 # if AC_PROG_CXX thinks that doesn't work. $CFLAGS stands a good chance
10079 # of working, eg. on a GNU system where CC=gcc and CXX=g++.
10081 if test "$test_CXXFLAGS" != set; then
10082 cxxflags_cflags=$CFLAGS
10083 cxxflags_list="cflags $cxxflags_list"
10084 if test "$ac_prog_cxx_g" = no; then
10085 cxxflags_cflags=`echo "$cxxflags_cflags" | sed -e 's/ -g //' -e 's/^-g //' -e 's/ -g$//'`
10089 # See if the C++ compiler works. If the user specified CXXFLAGS then all
10090 # we're doing is checking whether AC_PROG_CXX succeeded, since it doesn't
10091 # give a fatal error, just leaves CXX set to a default g++. If on the
10092 # other hand the user didn't specify CXXFLAGS then we get to try here our
10093 # $cxxflags_list alternatives.
10095 # Automake includes $CPPFLAGS in a C++ compile, so we do the same here.
10097 for cxxflags_choice in $cxxflags_list; do
10098 eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice\"
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS" >&5
10100 $as_echo_n "checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS... " >&6; }
10101 gmp_prog_cxx_works=yes
10103 # start with a plain "main()", then go on to further checks
10104 if test "$gmp_prog_cxx_works" = yes; then
10105 # remove anything that might look like compiler output to our "||" expression
10106 rm -f conftest* a.out b.out a.exe a_out.exe
10107 cat >conftest.cc <<EOF
10109 int main (void) { return 0; }
10111 echo "Test compile: " >&5
10112 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
10113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
10114 (eval $gmp_cxxcompile) 2>&5
10115 ac_status=$?
10116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10117 test $ac_status = 0; }; then
10118 if test "$cross_compiling" = no; then
10119 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
10120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10121 (eval $ac_try) 2>&5
10122 ac_status=$?
10123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10124 test $ac_status = 0; }; }; then :;
10125 else
10126 gmp_prog_cxx_works="no, program does not run"
10129 else
10130 gmp_prog_cxx_works="no"
10132 case $gmp_prog_cxx_works in
10133 no*)
10134 echo "failed program was:" >&5
10135 cat conftest.cc >&5
10137 esac
10138 rm -f conftest* a.out b.out a.exe a_out.exe
10142 if test "$gmp_prog_cxx_works" = yes; then
10143 # remove anything that might look like compiler output to our "||" expression
10144 rm -f conftest* a.out b.out a.exe a_out.exe
10145 cat >conftest.cc <<EOF
10146 namespace foo { }
10147 using namespace foo;
10149 int main (void) { return 0; }
10151 echo "Test compile: namespace" >&5
10152 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
10153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
10154 (eval $gmp_cxxcompile) 2>&5
10155 ac_status=$?
10156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10157 test $ac_status = 0; }; then
10158 if test "$cross_compiling" = no; then
10159 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
10160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10161 (eval $ac_try) 2>&5
10162 ac_status=$?
10163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10164 test $ac_status = 0; }; }; then :;
10165 else
10166 gmp_prog_cxx_works="no, namespace, program does not run"
10169 else
10170 gmp_prog_cxx_works="no, namespace"
10172 case $gmp_prog_cxx_works in
10173 no*)
10174 echo "failed program was:" >&5
10175 cat conftest.cc >&5
10177 esac
10178 rm -f conftest* a.out b.out a.exe a_out.exe
10182 # GMP requires the standard C++ iostream classes
10183 if test "$gmp_prog_cxx_works" = yes; then
10184 # remove anything that might look like compiler output to our "||" expression
10185 rm -f conftest* a.out b.out a.exe a_out.exe
10186 cat >conftest.cc <<EOF
10187 /* This test rejects g++ 2.7.2 which doesn't have <iostream>, only a
10188 pre-standard iostream.h. */
10189 #include <iostream>
10191 /* This test rejects OSF 5.1 Compaq C++ in its default pre-standard iostream
10192 mode, since that mode puts cout in the global namespace, not "std". */
10193 void someoutput (void) { std::cout << 123; }
10195 int main (void) { return 0; }
10197 echo "Test compile: std iostream" >&5
10198 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
10199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
10200 (eval $gmp_cxxcompile) 2>&5
10201 ac_status=$?
10202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10203 test $ac_status = 0; }; then
10204 if test "$cross_compiling" = no; then
10205 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
10206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10207 (eval $ac_try) 2>&5
10208 ac_status=$?
10209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10210 test $ac_status = 0; }; }; then :;
10211 else
10212 gmp_prog_cxx_works="no, std iostream, program does not run"
10215 else
10216 gmp_prog_cxx_works="no, std iostream"
10218 case $gmp_prog_cxx_works in
10219 no*)
10220 echo "failed program was:" >&5
10221 cat conftest.cc >&5
10223 esac
10224 rm -f conftest* a.out b.out a.exe a_out.exe
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cxx_works" >&5
10229 $as_echo "$gmp_prog_cxx_works" >&6; }
10230 case $gmp_prog_cxx_works in
10231 yes)
10232 want_cxx=yes
10233 break
10238 esac
10240 done
10242 # If --enable-cxx=yes but a C++ compiler can't be found, then abort.
10243 if test $want_cxx = no && test $enable_cxx = yes; then
10244 as_fn_error $? "C++ compiler not available, see config.log for details" "$LINENO" 5
10248 if test $want_cxx = yes; then
10249 WANT_CXX_TRUE=
10250 WANT_CXX_FALSE='#'
10251 else
10252 WANT_CXX_TRUE='#'
10253 WANT_CXX_FALSE=
10257 # FIXME: We're not interested in CXXCPP for ourselves, but if we don't do it
10258 # here then AC_PROG_LIBTOOL will AC_REQUIRE it (via _LT_AC_TAGCONFIG) and
10259 # hence execute it unconditionally, and that will fail if there's no C++
10260 # compiler (and no generic /lib/cpp).
10262 if test $want_cxx = yes; then
10263 ac_ext=cpp
10264 ac_cpp='$CXXCPP $CPPFLAGS'
10265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10269 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10270 if test -z "$CXXCPP"; then
10271 if ${ac_cv_prog_CXXCPP+:} false; then :
10272 $as_echo_n "(cached) " >&6
10273 else
10274 # Double quotes because CXXCPP needs to be expanded
10275 for CXXCPP in "$CXX -E" "/lib/cpp"
10277 ac_preproc_ok=false
10278 for ac_cxx_preproc_warn_flag in '' yes
10280 # Use a header file that comes with gcc, so configuring glibc
10281 # with a fresh cross-compiler works.
10282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10283 # <limits.h> exists even on freestanding compilers.
10284 # On the NeXT, cc -E runs the code through the compiler's parser,
10285 # not just through cpp. "Syntax error" is here to catch this case.
10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10288 #ifdef __STDC__
10289 # include <limits.h>
10290 #else
10291 # include <assert.h>
10292 #endif
10293 Syntax error
10294 _ACEOF
10295 if ac_fn_cxx_try_cpp "$LINENO"; then :
10297 else
10298 # Broken: fails on valid input.
10299 continue
10301 rm -f conftest.err conftest.i conftest.$ac_ext
10303 # OK, works on sane cases. Now check whether nonexistent headers
10304 # can be detected and how.
10305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10306 /* end confdefs.h. */
10307 #include <ac_nonexistent.h>
10308 _ACEOF
10309 if ac_fn_cxx_try_cpp "$LINENO"; then :
10310 # Broken: success on invalid input.
10311 continue
10312 else
10313 # Passes both tests.
10314 ac_preproc_ok=:
10315 break
10317 rm -f conftest.err conftest.i conftest.$ac_ext
10319 done
10320 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10321 rm -f conftest.i conftest.err conftest.$ac_ext
10322 if $ac_preproc_ok; then :
10323 break
10326 done
10327 ac_cv_prog_CXXCPP=$CXXCPP
10330 CXXCPP=$ac_cv_prog_CXXCPP
10331 else
10332 ac_cv_prog_CXXCPP=$CXXCPP
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10335 $as_echo "$CXXCPP" >&6; }
10336 ac_preproc_ok=false
10337 for ac_cxx_preproc_warn_flag in '' yes
10339 # Use a header file that comes with gcc, so configuring glibc
10340 # with a fresh cross-compiler works.
10341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10342 # <limits.h> exists even on freestanding compilers.
10343 # On the NeXT, cc -E runs the code through the compiler's parser,
10344 # not just through cpp. "Syntax error" is here to catch this case.
10345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10346 /* end confdefs.h. */
10347 #ifdef __STDC__
10348 # include <limits.h>
10349 #else
10350 # include <assert.h>
10351 #endif
10352 Syntax error
10353 _ACEOF
10354 if ac_fn_cxx_try_cpp "$LINENO"; then :
10356 else
10357 # Broken: fails on valid input.
10358 continue
10360 rm -f conftest.err conftest.i conftest.$ac_ext
10362 # OK, works on sane cases. Now check whether nonexistent headers
10363 # can be detected and how.
10364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365 /* end confdefs.h. */
10366 #include <ac_nonexistent.h>
10367 _ACEOF
10368 if ac_fn_cxx_try_cpp "$LINENO"; then :
10369 # Broken: success on invalid input.
10370 continue
10371 else
10372 # Passes both tests.
10373 ac_preproc_ok=:
10374 break
10376 rm -f conftest.err conftest.i conftest.$ac_ext
10378 done
10379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10380 rm -f conftest.i conftest.err conftest.$ac_ext
10381 if $ac_preproc_ok; then :
10383 else
10384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10386 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
10387 See \`config.log' for more details" "$LINENO" 5; }
10390 ac_ext=c
10391 ac_cpp='$CPP $CPPFLAGS'
10392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10399 # Path setups for Cray, according to IEEE or CFP. These must come after
10400 # deciding the compiler.
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
10405 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
10406 if ${ac_cv_path_GREP+:} false; then :
10407 $as_echo_n "(cached) " >&6
10408 else
10409 if test -z "$GREP"; then
10410 ac_path_GREP_found=false
10411 # Loop through the user's path and test for each of PROGNAME-LIST
10412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10413 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10415 IFS=$as_save_IFS
10416 test -z "$as_dir" && as_dir=.
10417 for ac_prog in grep ggrep; do
10418 for ac_exec_ext in '' $ac_executable_extensions; do
10419 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
10420 as_fn_executable_p "$ac_path_GREP" || continue
10421 # Check for GNU ac_path_GREP and select it if it is found.
10422 # Check for GNU $ac_path_GREP
10423 case `"$ac_path_GREP" --version 2>&1` in
10424 *GNU*)
10425 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
10427 ac_count=0
10428 $as_echo_n 0123456789 >"conftest.in"
10429 while :
10431 cat "conftest.in" "conftest.in" >"conftest.tmp"
10432 mv "conftest.tmp" "conftest.in"
10433 cp "conftest.in" "conftest.nl"
10434 $as_echo 'GREP' >> "conftest.nl"
10435 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10436 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10437 as_fn_arith $ac_count + 1 && ac_count=$as_val
10438 if test $ac_count -gt ${ac_path_GREP_max-0}; then
10439 # Best one so far, save it but keep looking for a better one
10440 ac_cv_path_GREP="$ac_path_GREP"
10441 ac_path_GREP_max=$ac_count
10443 # 10*(2^10) chars as input seems more than enough
10444 test $ac_count -gt 10 && break
10445 done
10446 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10447 esac
10449 $ac_path_GREP_found && break 3
10450 done
10451 done
10452 done
10453 IFS=$as_save_IFS
10454 if test -z "$ac_cv_path_GREP"; then
10455 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10457 else
10458 ac_cv_path_GREP=$GREP
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
10463 $as_echo "$ac_cv_path_GREP" >&6; }
10464 GREP="$ac_cv_path_GREP"
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
10468 $as_echo_n "checking for egrep... " >&6; }
10469 if ${ac_cv_path_EGREP+:} false; then :
10470 $as_echo_n "(cached) " >&6
10471 else
10472 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10473 then ac_cv_path_EGREP="$GREP -E"
10474 else
10475 if test -z "$EGREP"; then
10476 ac_path_EGREP_found=false
10477 # Loop through the user's path and test for each of PROGNAME-LIST
10478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10479 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10481 IFS=$as_save_IFS
10482 test -z "$as_dir" && as_dir=.
10483 for ac_prog in egrep; do
10484 for ac_exec_ext in '' $ac_executable_extensions; do
10485 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10486 as_fn_executable_p "$ac_path_EGREP" || continue
10487 # Check for GNU ac_path_EGREP and select it if it is found.
10488 # Check for GNU $ac_path_EGREP
10489 case `"$ac_path_EGREP" --version 2>&1` in
10490 *GNU*)
10491 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10493 ac_count=0
10494 $as_echo_n 0123456789 >"conftest.in"
10495 while :
10497 cat "conftest.in" "conftest.in" >"conftest.tmp"
10498 mv "conftest.tmp" "conftest.in"
10499 cp "conftest.in" "conftest.nl"
10500 $as_echo 'EGREP' >> "conftest.nl"
10501 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10503 as_fn_arith $ac_count + 1 && ac_count=$as_val
10504 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10505 # Best one so far, save it but keep looking for a better one
10506 ac_cv_path_EGREP="$ac_path_EGREP"
10507 ac_path_EGREP_max=$ac_count
10509 # 10*(2^10) chars as input seems more than enough
10510 test $ac_count -gt 10 && break
10511 done
10512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10513 esac
10515 $ac_path_EGREP_found && break 3
10516 done
10517 done
10518 done
10519 IFS=$as_save_IFS
10520 if test -z "$ac_cv_path_EGREP"; then
10521 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10523 else
10524 ac_cv_path_EGREP=$EGREP
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
10530 $as_echo "$ac_cv_path_EGREP" >&6; }
10531 EGREP="$ac_cv_path_EGREP"
10534 case $host_cpu in
10535 c90 | t90)
10536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h. */
10538 #ifdef _CRAYIEEE
10540 #endif
10541 _ACEOF
10542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10543 $EGREP "yes" >/dev/null 2>&1; then :
10544 add_path="cray/ieee"
10545 else
10546 add_path="cray/cfp"; extra_functions="mulwwc90"
10548 rm -f conftest*
10551 j90 | sv1)
10552 add_path="cray/cfp"; extra_functions="mulwwj90"
10554 esac
10558 if test -z "$MPN_PATH"; then
10559 path="$add_path $path"
10562 # For a nail build, also look in "nails" subdirectories.
10564 if test $GMP_NAIL_BITS != 0 && test -z "$MPN_PATH"; then
10565 new_path=
10566 for i in $path; do
10567 case $i in
10568 generic) new_path="$new_path $i" ;;
10569 *) new_path="$new_path $i/nails $i" ;;
10570 esac
10571 done
10572 path=$new_path
10576 # Put all directories into CPUVEC_list so as to get a full set of
10577 # CPUVEC_SETUP_$tmp_suffix defines into config.h, even if some of them are
10578 # empty because mmx and/or sse2 had to be dropped.
10580 for i in $fat_path; do
10581 tmp_suffix=`echo $i | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
10582 CPUVEC_list="$CPUVEC_list CPUVEC_SETUP_$tmp_suffix"
10583 done
10586 # If there's any sse2 or mmx in the path, check whether the assembler
10587 # supports it, and remove if not.
10589 # We only need this in ABI=32, for ABI=64 on x86_64 we can assume a new
10590 # enough assembler.
10592 case $host in
10593 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | jaguar-*-* | bulldozer-*-* | piledriver-*-* | steamroller-*-* | excavator-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
10594 if test "$ABI" = 32; then
10595 case "$path $fat_path" in
10596 *mmx*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about MMX instructions" >&5
10597 $as_echo_n "checking if the assembler knows about MMX instructions... " >&6; }
10598 if ${gmp_cv_asm_x86_mmx+:} false; then :
10599 $as_echo_n "(cached) " >&6
10600 else
10601 cat >conftest.s <<EOF
10602 .text
10603 movq %mm0, %mm1
10605 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
10606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
10607 (eval $gmp_assemble) 2>&5
10608 ac_status=$?
10609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10610 test $ac_status = 0; }; then
10611 cat conftest.out >&5
10612 gmp_cv_asm_x86_mmx=yes
10613 case $host in
10614 *-*-solaris*)
10615 if (dis conftest.$OBJEXT >conftest.out) 2>/dev/null; then
10616 if grep "0f 6f c1" conftest.out >/dev/null; then
10617 gmp_cv_asm_x86_mmx=movq-bug
10619 else
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"dis\" not available to check for \"as\" movq bug" >&5
10621 $as_echo "$as_me: WARNING: \"dis\" not available to check for \"as\" movq bug" >&2;}
10623 esac
10624 else
10625 cat conftest.out >&5
10626 echo "configure: failed program was:" >&5
10627 cat conftest.s >&5
10628 gmp_cv_asm_x86_mmx=no
10630 rm -f conftest*
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_mmx" >&5
10634 $as_echo "$gmp_cv_asm_x86_mmx" >&6; }
10636 case $gmp_cv_asm_x86_mmx in
10637 movq-bug)
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10639 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
10641 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has MMX code, but the assembler" >&5
10643 $as_echo "$as_me: WARNING: | Host CPU has MMX code, but the assembler" >&2;}
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
10645 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&5
10647 $as_echo "$as_me: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&2;}
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | movq operands are reversed." >&5
10649 $as_echo "$as_me: WARNING: | movq operands are reversed." >&2;}
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-MMX replacements will be used." >&5
10651 $as_echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
10653 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10655 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10659 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
10661 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&5
10663 $as_echo "$as_me: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&2;}
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
10665 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-MMX replacements will be used." >&5
10667 $as_echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
10669 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10671 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10673 esac
10674 if test "$gmp_cv_asm_x86_mmx" = yes; then
10676 else
10677 tmp_path=
10678 for i in $path; do
10679 case $i in
10680 */*mmx*) ;;
10681 *) tmp_path="$tmp_path $i" ;;
10682 esac
10683 done
10684 path="$tmp_path"
10686 tmp_path=
10687 for i in $fat_path; do
10688 case $i in
10689 */*mmx*) ;;
10690 *) tmp_path="$tmp_path $i" ;;
10691 esac
10692 done
10693 fat_path="$tmp_path"
10698 esac
10699 case "$path $fat_path" in
10700 *sse2*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about SSE2 instructions" >&5
10701 $as_echo_n "checking if the assembler knows about SSE2 instructions... " >&6; }
10702 if ${gmp_cv_asm_x86_sse2+:} false; then :
10703 $as_echo_n "(cached) " >&6
10704 else
10705 cat >conftest.s <<EOF
10706 .text
10707 paddq %mm0, %mm1
10709 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
10710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
10711 (eval $gmp_assemble) 2>&5
10712 ac_status=$?
10713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10714 test $ac_status = 0; }; then
10715 cat conftest.out >&5
10716 gmp_cv_asm_x86_sse2=yes
10717 else
10718 cat conftest.out >&5
10719 echo "configure: failed program was:" >&5
10720 cat conftest.s >&5
10721 gmp_cv_asm_x86_sse2=no
10723 rm -f conftest*
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_sse2" >&5
10728 $as_echo "$gmp_cv_asm_x86_sse2" >&6; }
10729 case $gmp_cv_asm_x86_sse2 in
10730 yes)
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10735 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
10737 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&5
10739 $as_echo "$as_me: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&2;}
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
10741 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-SSE2 replacements will be used." >&5
10743 $as_echo "$as_me: WARNING: | Non-SSE2 replacements will be used." >&2;}
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
10745 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10747 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10748 tmp_path=
10749 for i in $path; do
10750 case $i in
10751 */sse2) ;;
10752 *) tmp_path="$tmp_path $i" ;;
10753 esac
10754 done
10755 path="$tmp_path"
10757 tmp_path=
10758 for i in $fat_path; do
10759 case $i in
10760 */sse2) ;;
10761 *) tmp_path="$tmp_path $i" ;;
10762 esac
10763 done
10764 fat_path="$tmp_path"
10768 esac
10770 esac
10772 case "$path $fat_path" in
10773 *mulx*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about the mulx instruction" >&5
10774 $as_echo_n "checking if the assembler knows about the mulx instruction... " >&6; }
10775 if ${gmp_cv_asm_x86_mulx+:} false; then :
10776 $as_echo_n "(cached) " >&6
10777 else
10778 cat >conftest.s <<EOF
10779 .text
10780 mulx %r8, %r9, %r10
10782 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
10783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
10784 (eval $gmp_assemble) 2>&5
10785 ac_status=$?
10786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10787 test $ac_status = 0; }; then
10788 cat conftest.out >&5
10789 gmp_cv_asm_x86_mulx=yes
10790 else
10791 cat conftest.out >&5
10792 echo "configure: failed program was:" >&5
10793 cat conftest.s >&5
10794 gmp_cv_asm_x86_mulx=no
10796 rm -f conftest*
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_mulx" >&5
10801 $as_echo "$gmp_cv_asm_x86_mulx" >&6; }
10802 case $gmp_cv_asm_x86_mulx in
10803 yes)
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10808 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
10810 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has the mulx instruction, but it can't be" >&5
10812 $as_echo "$as_me: WARNING: | Host CPU has the mulx instruction, but it can't be" >&2;}
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | assembled by" >&5
10814 $as_echo "$as_me: WARNING: | assembled by" >&2;}
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
10816 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Older x86 instructions will be used." >&5
10818 $as_echo "$as_me: WARNING: | Older x86 instructions will be used." >&2;}
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
10820 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10822 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10823 tmp_path=
10824 for i in $path; do
10825 case $i in
10826 */mulx) ;;
10827 *) tmp_path="$tmp_path $i" ;;
10828 esac
10829 done
10830 path="$tmp_path"
10832 tmp_path=
10833 for i in $fat_path; do
10834 case $i in
10835 */mulx) ;;
10836 *) tmp_path="$tmp_path $i" ;;
10837 esac
10838 done
10839 fat_path="$tmp_path"
10843 esac
10845 esac
10846 case "$path $fat_path" in
10847 *adx*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about the adox instruction" >&5
10848 $as_echo_n "checking if the assembler knows about the adox instruction... " >&6; }
10849 if ${gmp_cv_asm_x86_adx+:} false; then :
10850 $as_echo_n "(cached) " >&6
10851 else
10852 cat >conftest.s <<EOF
10853 .text
10854 adox %r8, %r9
10855 adcx %r8, %r9
10857 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
10858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
10859 (eval $gmp_assemble) 2>&5
10860 ac_status=$?
10861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10862 test $ac_status = 0; }; then
10863 cat conftest.out >&5
10864 gmp_cv_asm_x86_adx=yes
10865 else
10866 cat conftest.out >&5
10867 echo "configure: failed program was:" >&5
10868 cat conftest.s >&5
10869 gmp_cv_asm_x86_adx=no
10871 rm -f conftest*
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_adx" >&5
10876 $as_echo "$gmp_cv_asm_x86_adx" >&6; }
10877 case $gmp_cv_asm_x86_adx in
10878 yes)
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10883 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
10885 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has the adcx and adox instructions, but they" >&5
10887 $as_echo "$as_me: WARNING: | Host CPU has the adcx and adox instructions, but they" >&2;}
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | can't be assembled by" >&5
10889 $as_echo "$as_me: WARNING: | can't be assembled by" >&2;}
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
10891 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Older x86 instructions will be used." >&5
10893 $as_echo "$as_me: WARNING: | Older x86 instructions will be used." >&2;}
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
10895 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10897 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10898 tmp_path=
10899 for i in $path; do
10900 case $i in
10901 */adx) ;;
10902 *) tmp_path="$tmp_path $i" ;;
10903 esac
10904 done
10905 path="$tmp_path"
10907 tmp_path=
10908 for i in $fat_path; do
10909 case $i in
10910 */adx) ;;
10911 *) tmp_path="$tmp_path $i" ;;
10912 esac
10913 done
10914 fat_path="$tmp_path"
10918 esac
10920 esac
10922 esac
10925 if test "$enable_assembly" = "no"; then
10926 path="generic"
10927 CFLAGS="$CFLAGS -DNO_ASM"
10928 # for abi in $abilist; do
10929 # eval unset "path_\$abi"
10930 # eval gcc_${abi}_cflags=\"\$gcc_${abi}_cflags -DNO_ASM\"
10931 # done
10935 cat >&5 <<EOF
10936 Decided:
10937 ABI=$ABI
10938 CC=$CC
10939 CFLAGS=$CFLAGS
10940 CPPFLAGS=$CPPFLAGS
10941 GMP_LDFLAGS=$GMP_LDFLAGS
10942 CXX=$CXX
10943 CXXFLAGS=$CXXFLAGS
10944 path=$path
10946 echo "using ABI=\"$ABI\""
10947 echo " CC=\"$CC\""
10948 echo " CFLAGS=\"$CFLAGS\""
10949 echo " CPPFLAGS=\"$CPPFLAGS\""
10950 if test $want_cxx = yes; then
10951 echo " CXX=\"$CXX\""
10952 echo " CXXFLAGS=\"$CXXFLAGS\""
10954 echo " MPN_PATH=\"$path\""
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports --noexecstack option" >&5
10959 $as_echo_n "checking whether assembler supports --noexecstack option... " >&6; }
10960 if ${cl_cv_as_noexecstack+:} false; then :
10961 $as_echo_n "(cached) " >&6
10962 else
10963 cat > conftest.c <<EOF
10964 void foo() {}
10966 if { ac_try='${CC} $CFLAGS $CPPFLAGS
10967 -S -o conftest.s conftest.c >/dev/null'
10968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10969 (eval $ac_try) 2>&5
10970 ac_status=$?
10971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10972 test $ac_status = 0; }; } \
10973 && grep .note.GNU-stack conftest.s >/dev/null \
10974 && { ac_try='${CC} $CFLAGS $CPPFLAGS -Wa,--noexecstack
10975 -c -o conftest.o conftest.s >/dev/null'
10976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10977 (eval $ac_try) 2>&5
10978 ac_status=$?
10979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10980 test $ac_status = 0; }; }
10981 then
10982 cl_cv_as_noexecstack=yes
10983 else
10984 cl_cv_as_noexecstack=no
10986 rm -f conftest*
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_as_noexecstack" >&5
10989 $as_echo "$cl_cv_as_noexecstack" >&6; }
10990 if test "$cl_cv_as_noexecstack" = yes; then
10991 ASMFLAGS="$ASMFLAGS -Wa,--noexecstack"
10997 gmp_user_AR=$AR
10998 if test -n "$ac_tool_prefix"; then
10999 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11000 set dummy ${ac_tool_prefix}ar; ac_word=$2
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11002 $as_echo_n "checking for $ac_word... " >&6; }
11003 if ${ac_cv_prog_AR+:} false; then :
11004 $as_echo_n "(cached) " >&6
11005 else
11006 if test -n "$AR"; then
11007 ac_cv_prog_AR="$AR" # Let the user override the test.
11008 else
11009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11010 for as_dir in $PATH
11012 IFS=$as_save_IFS
11013 test -z "$as_dir" && as_dir=.
11014 for ac_exec_ext in '' $ac_executable_extensions; do
11015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11016 ac_cv_prog_AR="${ac_tool_prefix}ar"
11017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11018 break 2
11020 done
11021 done
11022 IFS=$as_save_IFS
11026 AR=$ac_cv_prog_AR
11027 if test -n "$AR"; then
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11029 $as_echo "$AR" >&6; }
11030 else
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11032 $as_echo "no" >&6; }
11037 if test -z "$ac_cv_prog_AR"; then
11038 ac_ct_AR=$AR
11039 # Extract the first word of "ar", so it can be a program name with args.
11040 set dummy ar; ac_word=$2
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11042 $as_echo_n "checking for $ac_word... " >&6; }
11043 if ${ac_cv_prog_ac_ct_AR+:} false; then :
11044 $as_echo_n "(cached) " >&6
11045 else
11046 if test -n "$ac_ct_AR"; then
11047 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11048 else
11049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11050 for as_dir in $PATH
11052 IFS=$as_save_IFS
11053 test -z "$as_dir" && as_dir=.
11054 for ac_exec_ext in '' $ac_executable_extensions; do
11055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11056 ac_cv_prog_ac_ct_AR="ar"
11057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11058 break 2
11060 done
11061 done
11062 IFS=$as_save_IFS
11066 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11067 if test -n "$ac_ct_AR"; then
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11069 $as_echo "$ac_ct_AR" >&6; }
11070 else
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11072 $as_echo "no" >&6; }
11075 if test "x$ac_ct_AR" = x; then
11076 AR="ar"
11077 else
11078 case $cross_compiling:$ac_tool_warned in
11079 yes:)
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11082 ac_tool_warned=yes ;;
11083 esac
11084 AR=$ac_ct_AR
11086 else
11087 AR="$ac_cv_prog_AR"
11090 if test -z "$gmp_user_AR"; then
11091 eval arflags=\"\$ar${abi1}_flags\"
11092 test -n "$arflags" || eval arflags=\"\$ar${abi2}_flags\"
11093 if test -n "$arflags"; then
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra ar flags" >&5
11095 $as_echo_n "checking for extra ar flags... " >&6; }
11096 AR="$AR $arflags"
11097 ac_cv_prog_AR="$AR $arflags"
11098 ac_cv_prog_ac_ct_AR="$AR $arflags"
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arflags" >&5
11100 $as_echo "$arflags" >&6; }
11103 if test -z "$AR_FLAGS"; then
11104 AR_FLAGS=cq
11108 gmp_user_NM=$NM
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11110 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11111 if ${lt_cv_path_NM+:} false; then :
11112 $as_echo_n "(cached) " >&6
11113 else
11114 if test -n "$NM"; then
11115 # Let the user override the test.
11116 lt_cv_path_NM="$NM"
11117 else
11118 lt_nm_to_check="${ac_tool_prefix}nm"
11119 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11120 lt_nm_to_check="$lt_nm_to_check nm"
11122 for lt_tmp_nm in $lt_nm_to_check; do
11123 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11124 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11125 IFS="$lt_save_ifs"
11126 test -z "$ac_dir" && ac_dir=.
11127 tmp_nm="$ac_dir/$lt_tmp_nm"
11128 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11129 # Check to see if the nm accepts a BSD-compat flag.
11130 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11131 # nm: unknown option "B" ignored
11132 # Tru64's nm complains that /dev/null is an invalid object file
11133 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11134 */dev/null* | *'Invalid file or object type'*)
11135 lt_cv_path_NM="$tmp_nm -B"
11136 break
11139 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11140 */dev/null*)
11141 lt_cv_path_NM="$tmp_nm -p"
11142 break
11145 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11146 continue # so that we can try to find one that supports BSD flags
11148 esac
11150 esac
11152 done
11153 IFS="$lt_save_ifs"
11154 done
11155 : ${lt_cv_path_NM=no}
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11159 $as_echo "$lt_cv_path_NM" >&6; }
11160 if test "$lt_cv_path_NM" != "no"; then
11161 NM="$lt_cv_path_NM"
11162 else
11163 # Didn't find any BSD compatible name lister, look for dumpbin.
11164 if test -n "$DUMPBIN"; then :
11165 # Let the user override the test.
11166 else
11167 if test -n "$ac_tool_prefix"; then
11168 for ac_prog in dumpbin "link -dump"
11170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11171 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11173 $as_echo_n "checking for $ac_word... " >&6; }
11174 if ${ac_cv_prog_DUMPBIN+:} false; then :
11175 $as_echo_n "(cached) " >&6
11176 else
11177 if test -n "$DUMPBIN"; then
11178 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11179 else
11180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11181 for as_dir in $PATH
11183 IFS=$as_save_IFS
11184 test -z "$as_dir" && as_dir=.
11185 for ac_exec_ext in '' $ac_executable_extensions; do
11186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11187 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11189 break 2
11191 done
11192 done
11193 IFS=$as_save_IFS
11197 DUMPBIN=$ac_cv_prog_DUMPBIN
11198 if test -n "$DUMPBIN"; then
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11200 $as_echo "$DUMPBIN" >&6; }
11201 else
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11203 $as_echo "no" >&6; }
11207 test -n "$DUMPBIN" && break
11208 done
11210 if test -z "$DUMPBIN"; then
11211 ac_ct_DUMPBIN=$DUMPBIN
11212 for ac_prog in dumpbin "link -dump"
11214 # Extract the first word of "$ac_prog", so it can be a program name with args.
11215 set dummy $ac_prog; ac_word=$2
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11217 $as_echo_n "checking for $ac_word... " >&6; }
11218 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11219 $as_echo_n "(cached) " >&6
11220 else
11221 if test -n "$ac_ct_DUMPBIN"; then
11222 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11223 else
11224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11225 for as_dir in $PATH
11227 IFS=$as_save_IFS
11228 test -z "$as_dir" && as_dir=.
11229 for ac_exec_ext in '' $ac_executable_extensions; do
11230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11231 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11233 break 2
11235 done
11236 done
11237 IFS=$as_save_IFS
11241 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11242 if test -n "$ac_ct_DUMPBIN"; then
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11244 $as_echo "$ac_ct_DUMPBIN" >&6; }
11245 else
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11247 $as_echo "no" >&6; }
11251 test -n "$ac_ct_DUMPBIN" && break
11252 done
11254 if test "x$ac_ct_DUMPBIN" = x; then
11255 DUMPBIN=":"
11256 else
11257 case $cross_compiling:$ac_tool_warned in
11258 yes:)
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11261 ac_tool_warned=yes ;;
11262 esac
11263 DUMPBIN=$ac_ct_DUMPBIN
11267 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11268 *COFF*)
11269 DUMPBIN="$DUMPBIN -symbols"
11272 DUMPBIN=:
11274 esac
11277 if test "$DUMPBIN" != ":"; then
11278 NM="$DUMPBIN"
11281 test -z "$NM" && NM=nm
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11289 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11290 if ${lt_cv_nm_interface+:} false; then :
11291 $as_echo_n "(cached) " >&6
11292 else
11293 lt_cv_nm_interface="BSD nm"
11294 echo "int some_variable = 0;" > conftest.$ac_ext
11295 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11296 (eval "$ac_compile" 2>conftest.err)
11297 cat conftest.err >&5
11298 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11299 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11300 cat conftest.err >&5
11301 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11302 cat conftest.out >&5
11303 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11304 lt_cv_nm_interface="MS dumpbin"
11306 rm -f conftest*
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11309 $as_echo "$lt_cv_nm_interface" >&6; }
11312 # FIXME: When cross compiling (ie. $ac_tool_prefix not empty), libtool
11313 # defaults to plain "nm" if a "${ac_tool_prefix}nm" is not found. In this
11314 # case run it again to try the native "nm", firstly so that likely locations
11315 # are searched, secondly so that -B or -p are added if necessary for BSD
11316 # format. This is necessary for instance on OSF with "./configure
11317 # --build=alphaev5-dec-osf --host=alphaev6-dec-osf".
11319 if test -z "$gmp_user_NM" && test -n "$ac_tool_prefix" && test "$NM" = nm; then
11320 $as_unset lt_cv_path_NM
11321 gmp_save_ac_tool_prefix=$ac_tool_prefix
11322 ac_tool_prefix=
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11325 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11326 if ${lt_cv_path_NM+:} false; then :
11327 $as_echo_n "(cached) " >&6
11328 else
11329 if test -n "$NM"; then
11330 # Let the user override the test.
11331 lt_cv_path_NM="$NM"
11332 else
11333 lt_nm_to_check="${ac_tool_prefix}nm"
11334 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11335 lt_nm_to_check="$lt_nm_to_check nm"
11337 for lt_tmp_nm in $lt_nm_to_check; do
11338 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11339 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11340 IFS="$lt_save_ifs"
11341 test -z "$ac_dir" && ac_dir=.
11342 tmp_nm="$ac_dir/$lt_tmp_nm"
11343 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11344 # Check to see if the nm accepts a BSD-compat flag.
11345 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11346 # nm: unknown option "B" ignored
11347 # Tru64's nm complains that /dev/null is an invalid object file
11348 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11349 */dev/null* | *'Invalid file or object type'*)
11350 lt_cv_path_NM="$tmp_nm -B"
11351 break
11354 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11355 */dev/null*)
11356 lt_cv_path_NM="$tmp_nm -p"
11357 break
11360 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11361 continue # so that we can try to find one that supports BSD flags
11363 esac
11365 esac
11367 done
11368 IFS="$lt_save_ifs"
11369 done
11370 : ${lt_cv_path_NM=no}
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11374 $as_echo "$lt_cv_path_NM" >&6; }
11375 if test "$lt_cv_path_NM" != "no"; then
11376 NM="$lt_cv_path_NM"
11377 else
11378 # Didn't find any BSD compatible name lister, look for dumpbin.
11379 if test -n "$DUMPBIN"; then :
11380 # Let the user override the test.
11381 else
11382 if test -n "$ac_tool_prefix"; then
11383 for ac_prog in dumpbin "link -dump"
11385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11388 $as_echo_n "checking for $ac_word... " >&6; }
11389 if ${ac_cv_prog_DUMPBIN+:} false; then :
11390 $as_echo_n "(cached) " >&6
11391 else
11392 if test -n "$DUMPBIN"; then
11393 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11394 else
11395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396 for as_dir in $PATH
11398 IFS=$as_save_IFS
11399 test -z "$as_dir" && as_dir=.
11400 for ac_exec_ext in '' $ac_executable_extensions; do
11401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11402 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11404 break 2
11406 done
11407 done
11408 IFS=$as_save_IFS
11412 DUMPBIN=$ac_cv_prog_DUMPBIN
11413 if test -n "$DUMPBIN"; then
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11415 $as_echo "$DUMPBIN" >&6; }
11416 else
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418 $as_echo "no" >&6; }
11422 test -n "$DUMPBIN" && break
11423 done
11425 if test -z "$DUMPBIN"; then
11426 ac_ct_DUMPBIN=$DUMPBIN
11427 for ac_prog in dumpbin "link -dump"
11429 # Extract the first word of "$ac_prog", so it can be a program name with args.
11430 set dummy $ac_prog; ac_word=$2
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11432 $as_echo_n "checking for $ac_word... " >&6; }
11433 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11434 $as_echo_n "(cached) " >&6
11435 else
11436 if test -n "$ac_ct_DUMPBIN"; then
11437 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11438 else
11439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11440 for as_dir in $PATH
11442 IFS=$as_save_IFS
11443 test -z "$as_dir" && as_dir=.
11444 for ac_exec_ext in '' $ac_executable_extensions; do
11445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11446 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11448 break 2
11450 done
11451 done
11452 IFS=$as_save_IFS
11456 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11457 if test -n "$ac_ct_DUMPBIN"; then
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11459 $as_echo "$ac_ct_DUMPBIN" >&6; }
11460 else
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462 $as_echo "no" >&6; }
11466 test -n "$ac_ct_DUMPBIN" && break
11467 done
11469 if test "x$ac_ct_DUMPBIN" = x; then
11470 DUMPBIN=":"
11471 else
11472 case $cross_compiling:$ac_tool_warned in
11473 yes:)
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11476 ac_tool_warned=yes ;;
11477 esac
11478 DUMPBIN=$ac_ct_DUMPBIN
11482 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11483 *COFF*)
11484 DUMPBIN="$DUMPBIN -symbols"
11487 DUMPBIN=:
11489 esac
11492 if test "$DUMPBIN" != ":"; then
11493 NM="$DUMPBIN"
11496 test -z "$NM" && NM=nm
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11501 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11502 if ${lt_cv_nm_interface+:} false; then :
11503 $as_echo_n "(cached) " >&6
11504 else
11505 lt_cv_nm_interface="BSD nm"
11506 echo "int some_variable = 0;" > conftest.$ac_ext
11507 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11508 (eval "$ac_compile" 2>conftest.err)
11509 cat conftest.err >&5
11510 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11511 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11512 cat conftest.err >&5
11513 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11514 cat conftest.out >&5
11515 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11516 lt_cv_nm_interface="MS dumpbin"
11518 rm -f conftest*
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11521 $as_echo "$lt_cv_nm_interface" >&6; }
11523 ac_tool_prefix=$gmp_save_ac_tool_prefix
11526 if test -z "$gmp_user_NM"; then
11527 eval nmflags=\"\$nm${abi1}_flags\"
11528 test -n "$nmflags" || eval nmflags=\"\$nm${abi2}_flags\"
11529 if test -n "$nmflags"; then
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra nm flags" >&5
11531 $as_echo_n "checking for extra nm flags... " >&6; }
11532 NM="$NM $nmflags"
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nmflags" >&5
11534 $as_echo "$nmflags" >&6; }
11539 case $host in
11540 # FIXME: On AIX 3 and 4, $libname.a is included in libtool
11541 # $library_names_spec, so libgmp.a becomes a symlink to libgmp.so, making
11542 # it impossible to build shared and static libraries simultaneously.
11543 # Disable shared libraries by default, but let the user override with
11544 # --enable-shared --disable-static.
11546 # FIXME: This $libname.a problem looks like it might apply to *-*-amigaos*
11547 # and *-*-os2* too, but wait for someone to test this before worrying
11548 # about it. If there is a problem then of course libtool is the right
11549 # place to fix it.
11551 *-*-aix[34]*)
11552 if test -z "$enable_shared"; then enable_shared=no; fi ;;
11553 esac
11556 # Configs for Windows DLLs.
11558 enable_win32_dll=yes
11560 case $host in
11561 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11562 if test -n "$ac_tool_prefix"; then
11563 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11564 set dummy ${ac_tool_prefix}as; ac_word=$2
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11566 $as_echo_n "checking for $ac_word... " >&6; }
11567 if ${ac_cv_prog_AS+:} false; then :
11568 $as_echo_n "(cached) " >&6
11569 else
11570 if test -n "$AS"; then
11571 ac_cv_prog_AS="$AS" # Let the user override the test.
11572 else
11573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11574 for as_dir in $PATH
11576 IFS=$as_save_IFS
11577 test -z "$as_dir" && as_dir=.
11578 for ac_exec_ext in '' $ac_executable_extensions; do
11579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11580 ac_cv_prog_AS="${ac_tool_prefix}as"
11581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11582 break 2
11584 done
11585 done
11586 IFS=$as_save_IFS
11590 AS=$ac_cv_prog_AS
11591 if test -n "$AS"; then
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11593 $as_echo "$AS" >&6; }
11594 else
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11596 $as_echo "no" >&6; }
11601 if test -z "$ac_cv_prog_AS"; then
11602 ac_ct_AS=$AS
11603 # Extract the first word of "as", so it can be a program name with args.
11604 set dummy as; ac_word=$2
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11606 $as_echo_n "checking for $ac_word... " >&6; }
11607 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11608 $as_echo_n "(cached) " >&6
11609 else
11610 if test -n "$ac_ct_AS"; then
11611 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11612 else
11613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11614 for as_dir in $PATH
11616 IFS=$as_save_IFS
11617 test -z "$as_dir" && as_dir=.
11618 for ac_exec_ext in '' $ac_executable_extensions; do
11619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11620 ac_cv_prog_ac_ct_AS="as"
11621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11622 break 2
11624 done
11625 done
11626 IFS=$as_save_IFS
11630 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11631 if test -n "$ac_ct_AS"; then
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11633 $as_echo "$ac_ct_AS" >&6; }
11634 else
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11636 $as_echo "no" >&6; }
11639 if test "x$ac_ct_AS" = x; then
11640 AS="false"
11641 else
11642 case $cross_compiling:$ac_tool_warned in
11643 yes:)
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11646 ac_tool_warned=yes ;;
11647 esac
11648 AS=$ac_ct_AS
11650 else
11651 AS="$ac_cv_prog_AS"
11654 if test -n "$ac_tool_prefix"; then
11655 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11656 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11658 $as_echo_n "checking for $ac_word... " >&6; }
11659 if ${ac_cv_prog_DLLTOOL+:} false; then :
11660 $as_echo_n "(cached) " >&6
11661 else
11662 if test -n "$DLLTOOL"; then
11663 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11664 else
11665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11666 for as_dir in $PATH
11668 IFS=$as_save_IFS
11669 test -z "$as_dir" && as_dir=.
11670 for ac_exec_ext in '' $ac_executable_extensions; do
11671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11672 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11674 break 2
11676 done
11677 done
11678 IFS=$as_save_IFS
11682 DLLTOOL=$ac_cv_prog_DLLTOOL
11683 if test -n "$DLLTOOL"; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11685 $as_echo "$DLLTOOL" >&6; }
11686 else
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688 $as_echo "no" >&6; }
11693 if test -z "$ac_cv_prog_DLLTOOL"; then
11694 ac_ct_DLLTOOL=$DLLTOOL
11695 # Extract the first word of "dlltool", so it can be a program name with args.
11696 set dummy dlltool; ac_word=$2
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11698 $as_echo_n "checking for $ac_word... " >&6; }
11699 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11700 $as_echo_n "(cached) " >&6
11701 else
11702 if test -n "$ac_ct_DLLTOOL"; then
11703 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11704 else
11705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11706 for as_dir in $PATH
11708 IFS=$as_save_IFS
11709 test -z "$as_dir" && as_dir=.
11710 for ac_exec_ext in '' $ac_executable_extensions; do
11711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11712 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11714 break 2
11716 done
11717 done
11718 IFS=$as_save_IFS
11722 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11723 if test -n "$ac_ct_DLLTOOL"; then
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11725 $as_echo "$ac_ct_DLLTOOL" >&6; }
11726 else
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728 $as_echo "no" >&6; }
11731 if test "x$ac_ct_DLLTOOL" = x; then
11732 DLLTOOL="false"
11733 else
11734 case $cross_compiling:$ac_tool_warned in
11735 yes:)
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11738 ac_tool_warned=yes ;;
11739 esac
11740 DLLTOOL=$ac_ct_DLLTOOL
11742 else
11743 DLLTOOL="$ac_cv_prog_DLLTOOL"
11746 if test -n "$ac_tool_prefix"; then
11747 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11748 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11750 $as_echo_n "checking for $ac_word... " >&6; }
11751 if ${ac_cv_prog_OBJDUMP+:} false; then :
11752 $as_echo_n "(cached) " >&6
11753 else
11754 if test -n "$OBJDUMP"; then
11755 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11756 else
11757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11758 for as_dir in $PATH
11760 IFS=$as_save_IFS
11761 test -z "$as_dir" && as_dir=.
11762 for ac_exec_ext in '' $ac_executable_extensions; do
11763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11764 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11766 break 2
11768 done
11769 done
11770 IFS=$as_save_IFS
11774 OBJDUMP=$ac_cv_prog_OBJDUMP
11775 if test -n "$OBJDUMP"; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11777 $as_echo "$OBJDUMP" >&6; }
11778 else
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780 $as_echo "no" >&6; }
11785 if test -z "$ac_cv_prog_OBJDUMP"; then
11786 ac_ct_OBJDUMP=$OBJDUMP
11787 # Extract the first word of "objdump", so it can be a program name with args.
11788 set dummy objdump; ac_word=$2
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11790 $as_echo_n "checking for $ac_word... " >&6; }
11791 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11792 $as_echo_n "(cached) " >&6
11793 else
11794 if test -n "$ac_ct_OBJDUMP"; then
11795 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11796 else
11797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11798 for as_dir in $PATH
11800 IFS=$as_save_IFS
11801 test -z "$as_dir" && as_dir=.
11802 for ac_exec_ext in '' $ac_executable_extensions; do
11803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11804 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11806 break 2
11808 done
11809 done
11810 IFS=$as_save_IFS
11814 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11815 if test -n "$ac_ct_OBJDUMP"; then
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11817 $as_echo "$ac_ct_OBJDUMP" >&6; }
11818 else
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11820 $as_echo "no" >&6; }
11823 if test "x$ac_ct_OBJDUMP" = x; then
11824 OBJDUMP="false"
11825 else
11826 case $cross_compiling:$ac_tool_warned in
11827 yes:)
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11830 ac_tool_warned=yes ;;
11831 esac
11832 OBJDUMP=$ac_ct_OBJDUMP
11834 else
11835 OBJDUMP="$ac_cv_prog_OBJDUMP"
11839 esac
11841 test -z "$AS" && AS=as
11847 test -z "$DLLTOOL" && DLLTOOL=dlltool
11853 test -z "$OBJDUMP" && OBJDUMP=objdump
11862 LIBGMP_DLL=0
11864 case $host in
11865 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
11866 # By default, build only static.
11867 if test -z "$enable_shared"; then
11868 enable_shared=no
11870 # Don't allow both static and DLL.
11871 if test "$enable_shared" != no && test "$enable_static" != no; then
11872 as_fn_error $? "cannot build both static and DLL, since gmp.h is different for each.
11873 Use \"--disable-static --enable-shared\" to build just a DLL." "$LINENO" 5
11876 # "-no-undefined" is required when building a DLL, see documentation on
11877 # AC_LIBTOOL_WIN32_DLL.
11879 # "-Wl,--export-all-symbols" is a bit of a hack, it gets all libgmp and
11880 # libgmpxx functions and variables exported. This is what libtool did
11881 # in the past, and it's convenient for us in the test programs.
11883 # Maybe it'd be prudent to check for --export-all-symbols before using
11884 # it, but it seems to have been in ld since at least 2000, and there's
11885 # not really any alternative we want to take up at the moment.
11887 # "-Wl,output-def" is used to get a .def file for use by MS lib to make
11888 # a .lib import library, described in the manual. libgmp-3.dll.def
11889 # corresponds to the libmp-3.dll.def generated by libtool (as a result
11890 # of -export-symbols on that library).
11892 # Incidentally, libtool does generate an import library libgmp.dll.a,
11893 # but it's "ar" format and cannot be used by the MS linker. There
11894 # doesn't seem to be any GNU tool for generating or converting to .lib.
11896 # FIXME: The .def files produced by -Wl,output-def include isascii,
11897 # iscsym, iscsymf and toascii, apparently because mingw ctype.h doesn't
11898 # inline isascii (used in gmp). It gives an extern inline for
11899 # __isascii, but for some reason not the plain isascii.
11901 if test "$enable_shared" = yes; then
11902 GMP_LDFLAGS="$GMP_LDFLAGS -no-undefined -Wl,--export-all-symbols"
11903 LIBGMP_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmp-3.dll.def"
11904 LIBGMPXX_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmpxx-3.dll.def"
11905 LIBGMP_DLL=1
11908 esac
11911 # Ensure that $CONFIG_SHELL is available for AC_LIBTOOL_SYS_MAX_CMD_LEN.
11912 # It's often set already by _LT_AC_PROG_ECHO_BACKSLASH or
11913 # _AS_LINENO_PREPARE, but not always.
11915 # The symptom of CONFIG_SHELL unset is some "expr" errors during the test,
11916 # and an empty result. This only happens when invoked as "sh configure",
11917 # ie. no path, and can be seen for instance on ia64-*-hpux*.
11919 # FIXME: Newer libtool should have it's own fix for this.
11921 if test -z "$CONFIG_SHELL"; then
11922 CONFIG_SHELL=$SHELL
11925 # Enable CXX in libtool only if we want it, and never enable GCJ, nor RC on
11926 # mingw and cygwin. Under --disable-cxx this avoids some error messages
11927 # from libtool arising from the fact we didn't actually run AC_PROG_CXX.
11928 # Notice that any user-supplied --with-tags setting takes precedence.
11930 # FIXME: Is this the right way to get this effect? Very possibly not, but
11931 # the current _LT_AC_TAGCONFIG doesn't really suggest an alternative.
11933 if test "${with_tags+set}" != set; then
11934 if test $want_cxx = yes; then
11935 with_tags=CXX
11936 else
11937 with_tags=
11941 # The dead hand of AC_REQUIRE makes AC_PROG_LIBTOOL expand and execute
11942 # AC_PROG_F77, even when F77 is not in the selected with_tags. This is
11943 # probably harmless, but it's unsightly and bloats our configure, so pretend
11944 # AC_PROG_F77 has been expanded already.
11946 # FIXME: Rumour has it libtool will one day provide a way for a configure.in
11947 # to say what it wants from among supported languages etc.
11949 #AC_PROVIDE([AC_PROG_F77])
11951 case `pwd` in
11952 *\ * | *\ *)
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11954 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11955 esac
11959 macro_version='2.4.2'
11960 macro_revision='1.3337'
11974 ltmain="$ac_aux_dir/ltmain.sh"
11976 # Backslashify metacharacters that are still active within
11977 # double-quoted strings.
11978 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11980 # Same as above, but do not quote variable references.
11981 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11983 # Sed substitution to delay expansion of an escaped shell variable in a
11984 # double_quote_subst'ed string.
11985 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11987 # Sed substitution to delay expansion of an escaped single quote.
11988 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11990 # Sed substitution to avoid accidental globbing in evaled expressions
11991 no_glob_subst='s/\*/\\\*/g'
11993 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11994 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11995 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11998 $as_echo_n "checking how to print strings... " >&6; }
11999 # Test print first, because it will be a builtin if present.
12000 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
12001 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12002 ECHO='print -r --'
12003 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12004 ECHO='printf %s\n'
12005 else
12006 # Use this function as a fallback that always works.
12007 func_fallback_echo ()
12009 eval 'cat <<_LTECHO_EOF
12011 _LTECHO_EOF'
12013 ECHO='func_fallback_echo'
12016 # func_echo_all arg...
12017 # Invoke $ECHO with all args, space-separated.
12018 func_echo_all ()
12020 $ECHO ""
12023 case "$ECHO" in
12024 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12025 $as_echo "printf" >&6; } ;;
12026 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12027 $as_echo "print -r" >&6; } ;;
12028 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12029 $as_echo "cat" >&6; } ;;
12030 esac
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12046 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12047 if ${ac_cv_path_SED+:} false; then :
12048 $as_echo_n "(cached) " >&6
12049 else
12050 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12051 for ac_i in 1 2 3 4 5 6 7; do
12052 ac_script="$ac_script$as_nl$ac_script"
12053 done
12054 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12055 { ac_script=; unset ac_script;}
12056 if test -z "$SED"; then
12057 ac_path_SED_found=false
12058 # Loop through the user's path and test for each of PROGNAME-LIST
12059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060 for as_dir in $PATH
12062 IFS=$as_save_IFS
12063 test -z "$as_dir" && as_dir=.
12064 for ac_prog in sed gsed; do
12065 for ac_exec_ext in '' $ac_executable_extensions; do
12066 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12067 as_fn_executable_p "$ac_path_SED" || continue
12068 # Check for GNU ac_path_SED and select it if it is found.
12069 # Check for GNU $ac_path_SED
12070 case `"$ac_path_SED" --version 2>&1` in
12071 *GNU*)
12072 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12074 ac_count=0
12075 $as_echo_n 0123456789 >"conftest.in"
12076 while :
12078 cat "conftest.in" "conftest.in" >"conftest.tmp"
12079 mv "conftest.tmp" "conftest.in"
12080 cp "conftest.in" "conftest.nl"
12081 $as_echo '' >> "conftest.nl"
12082 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12083 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12084 as_fn_arith $ac_count + 1 && ac_count=$as_val
12085 if test $ac_count -gt ${ac_path_SED_max-0}; then
12086 # Best one so far, save it but keep looking for a better one
12087 ac_cv_path_SED="$ac_path_SED"
12088 ac_path_SED_max=$ac_count
12090 # 10*(2^10) chars as input seems more than enough
12091 test $ac_count -gt 10 && break
12092 done
12093 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12094 esac
12096 $ac_path_SED_found && break 3
12097 done
12098 done
12099 done
12100 IFS=$as_save_IFS
12101 if test -z "$ac_cv_path_SED"; then
12102 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12104 else
12105 ac_cv_path_SED=$SED
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12110 $as_echo "$ac_cv_path_SED" >&6; }
12111 SED="$ac_cv_path_SED"
12112 rm -f conftest.sed
12114 test -z "$SED" && SED=sed
12115 Xsed="$SED -e 1s/^X//"
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12128 $as_echo_n "checking for fgrep... " >&6; }
12129 if ${ac_cv_path_FGREP+:} false; then :
12130 $as_echo_n "(cached) " >&6
12131 else
12132 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12133 then ac_cv_path_FGREP="$GREP -F"
12134 else
12135 if test -z "$FGREP"; then
12136 ac_path_FGREP_found=false
12137 # Loop through the user's path and test for each of PROGNAME-LIST
12138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12141 IFS=$as_save_IFS
12142 test -z "$as_dir" && as_dir=.
12143 for ac_prog in fgrep; do
12144 for ac_exec_ext in '' $ac_executable_extensions; do
12145 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12146 as_fn_executable_p "$ac_path_FGREP" || continue
12147 # Check for GNU ac_path_FGREP and select it if it is found.
12148 # Check for GNU $ac_path_FGREP
12149 case `"$ac_path_FGREP" --version 2>&1` in
12150 *GNU*)
12151 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12153 ac_count=0
12154 $as_echo_n 0123456789 >"conftest.in"
12155 while :
12157 cat "conftest.in" "conftest.in" >"conftest.tmp"
12158 mv "conftest.tmp" "conftest.in"
12159 cp "conftest.in" "conftest.nl"
12160 $as_echo 'FGREP' >> "conftest.nl"
12161 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12163 as_fn_arith $ac_count + 1 && ac_count=$as_val
12164 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12165 # Best one so far, save it but keep looking for a better one
12166 ac_cv_path_FGREP="$ac_path_FGREP"
12167 ac_path_FGREP_max=$ac_count
12169 # 10*(2^10) chars as input seems more than enough
12170 test $ac_count -gt 10 && break
12171 done
12172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12173 esac
12175 $ac_path_FGREP_found && break 3
12176 done
12177 done
12178 done
12179 IFS=$as_save_IFS
12180 if test -z "$ac_cv_path_FGREP"; then
12181 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12183 else
12184 ac_cv_path_FGREP=$FGREP
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12190 $as_echo "$ac_cv_path_FGREP" >&6; }
12191 FGREP="$ac_cv_path_FGREP"
12194 test -z "$GREP" && GREP=grep
12214 # Check whether --with-gnu-ld was given.
12215 if test "${with_gnu_ld+set}" = set; then :
12216 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12217 else
12218 with_gnu_ld=no
12221 ac_prog=ld
12222 if test "$GCC" = yes; then
12223 # Check if gcc -print-prog-name=ld gives a path.
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12225 $as_echo_n "checking for ld used by $CC... " >&6; }
12226 case $host in
12227 *-*-mingw*)
12228 # gcc leaves a trailing carriage return which upsets mingw
12229 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12231 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12232 esac
12233 case $ac_prog in
12234 # Accept absolute paths.
12235 [\\/]* | ?:[\\/]*)
12236 re_direlt='/[^/][^/]*/\.\./'
12237 # Canonicalize the pathname of ld
12238 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12239 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12240 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12241 done
12242 test -z "$LD" && LD="$ac_prog"
12245 # If it fails, then pretend we aren't using GCC.
12246 ac_prog=ld
12249 # If it is relative, then search for the first ld in PATH.
12250 with_gnu_ld=unknown
12252 esac
12253 elif test "$with_gnu_ld" = yes; then
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12255 $as_echo_n "checking for GNU ld... " >&6; }
12256 else
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12258 $as_echo_n "checking for non-GNU ld... " >&6; }
12260 if ${lt_cv_path_LD+:} false; then :
12261 $as_echo_n "(cached) " >&6
12262 else
12263 if test -z "$LD"; then
12264 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12265 for ac_dir in $PATH; do
12266 IFS="$lt_save_ifs"
12267 test -z "$ac_dir" && ac_dir=.
12268 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12269 lt_cv_path_LD="$ac_dir/$ac_prog"
12270 # Check to see if the program is GNU ld. I'd rather use --version,
12271 # but apparently some variants of GNU ld only accept -v.
12272 # Break only if it was the GNU/non-GNU ld that we prefer.
12273 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12274 *GNU* | *'with BFD'*)
12275 test "$with_gnu_ld" != no && break
12278 test "$with_gnu_ld" != yes && break
12280 esac
12282 done
12283 IFS="$lt_save_ifs"
12284 else
12285 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12289 LD="$lt_cv_path_LD"
12290 if test -n "$LD"; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12292 $as_echo "$LD" >&6; }
12293 else
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295 $as_echo "no" >&6; }
12297 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12299 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12300 if ${lt_cv_prog_gnu_ld+:} false; then :
12301 $as_echo_n "(cached) " >&6
12302 else
12303 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12304 case `$LD -v 2>&1 </dev/null` in
12305 *GNU* | *'with BFD'*)
12306 lt_cv_prog_gnu_ld=yes
12309 lt_cv_prog_gnu_ld=no
12311 esac
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12314 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12315 with_gnu_ld=$lt_cv_prog_gnu_ld
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12326 $as_echo_n "checking whether ln -s works... " >&6; }
12327 LN_S=$as_ln_s
12328 if test "$LN_S" = "ln -s"; then
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12330 $as_echo "yes" >&6; }
12331 else
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12333 $as_echo "no, using $LN_S" >&6; }
12336 # find the maximum length of command line arguments
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12338 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12339 if ${lt_cv_sys_max_cmd_len+:} false; then :
12340 $as_echo_n "(cached) " >&6
12341 else
12343 teststring="ABCD"
12345 case $build_os in
12346 msdosdjgpp*)
12347 # On DJGPP, this test can blow up pretty badly due to problems in libc
12348 # (any single argument exceeding 2000 bytes causes a buffer overrun
12349 # during glob expansion). Even if it were fixed, the result of this
12350 # check would be larger than it should be.
12351 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12354 gnu*)
12355 # Under GNU Hurd, this test is not required because there is
12356 # no limit to the length of command line arguments.
12357 # Libtool will interpret -1 as no limit whatsoever
12358 lt_cv_sys_max_cmd_len=-1;
12361 cygwin* | mingw* | cegcc*)
12362 # On Win9x/ME, this test blows up -- it succeeds, but takes
12363 # about 5 minutes as the teststring grows exponentially.
12364 # Worse, since 9x/ME are not pre-emptively multitasking,
12365 # you end up with a "frozen" computer, even though with patience
12366 # the test eventually succeeds (with a max line length of 256k).
12367 # Instead, let's just punt: use the minimum linelength reported by
12368 # all of the supported platforms: 8192 (on NT/2K/XP).
12369 lt_cv_sys_max_cmd_len=8192;
12372 mint*)
12373 # On MiNT this can take a long time and run out of memory.
12374 lt_cv_sys_max_cmd_len=8192;
12377 amigaos*)
12378 # On AmigaOS with pdksh, this test takes hours, literally.
12379 # So we just punt and use a minimum line length of 8192.
12380 lt_cv_sys_max_cmd_len=8192;
12383 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12384 # This has been around since 386BSD, at least. Likely further.
12385 if test -x /sbin/sysctl; then
12386 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12387 elif test -x /usr/sbin/sysctl; then
12388 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12389 else
12390 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12392 # And add a safety zone
12393 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12394 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12397 interix*)
12398 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12399 lt_cv_sys_max_cmd_len=196608
12402 os2*)
12403 # The test takes a long time on OS/2.
12404 lt_cv_sys_max_cmd_len=8192
12407 osf*)
12408 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12409 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12410 # nice to cause kernel panics so lets avoid the loop below.
12411 # First set a reasonable default.
12412 lt_cv_sys_max_cmd_len=16384
12414 if test -x /sbin/sysconfig; then
12415 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12416 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12417 esac
12420 sco3.2v5*)
12421 lt_cv_sys_max_cmd_len=102400
12423 sysv5* | sco5v6* | sysv4.2uw2*)
12424 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12425 if test -n "$kargmax"; then
12426 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12427 else
12428 lt_cv_sys_max_cmd_len=32768
12432 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12433 if test -n "$lt_cv_sys_max_cmd_len"; then
12434 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12435 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12436 else
12437 # Make teststring a little bigger before we do anything with it.
12438 # a 1K string should be a reasonable start.
12439 for i in 1 2 3 4 5 6 7 8 ; do
12440 teststring=$teststring$teststring
12441 done
12442 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12443 # If test is not a shell built-in, we'll probably end up computing a
12444 # maximum length that is only half of the actual maximum length, but
12445 # we can't tell.
12446 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
12447 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12448 test $i != 17 # 1/2 MB should be enough
12450 i=`expr $i + 1`
12451 teststring=$teststring$teststring
12452 done
12453 # Only check the string length outside the loop.
12454 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12455 teststring=
12456 # Add a significant safety factor because C++ compilers can tack on
12457 # massive amounts of additional arguments before passing them to the
12458 # linker. It appears as though 1/2 is a usable value.
12459 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12462 esac
12466 if test -n $lt_cv_sys_max_cmd_len ; then
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12468 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12469 else
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12471 $as_echo "none" >&6; }
12473 max_cmd_len=$lt_cv_sys_max_cmd_len
12480 : ${CP="cp -f"}
12481 : ${MV="mv -f"}
12482 : ${RM="rm -f"}
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12485 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12486 # Try some XSI features
12487 xsi_shell=no
12488 ( _lt_dummy="a/b/c"
12489 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
12490 = c,a/b,b/c, \
12491 && eval 'test $(( 1 + 1 )) -eq 2 \
12492 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12493 && xsi_shell=yes
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12495 $as_echo "$xsi_shell" >&6; }
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12499 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12500 lt_shell_append=no
12501 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12502 >/dev/null 2>&1 \
12503 && lt_shell_append=yes
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12505 $as_echo "$lt_shell_append" >&6; }
12508 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12509 lt_unset=unset
12510 else
12511 lt_unset=false
12518 # test EBCDIC or ASCII
12519 case `echo X|tr X '\101'` in
12520 A) # ASCII based system
12521 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12522 lt_SP2NL='tr \040 \012'
12523 lt_NL2SP='tr \015\012 \040\040'
12525 *) # EBCDIC based system
12526 lt_SP2NL='tr \100 \n'
12527 lt_NL2SP='tr \r\n \100\100'
12529 esac
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12540 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
12541 if ${lt_cv_to_host_file_cmd+:} false; then :
12542 $as_echo_n "(cached) " >&6
12543 else
12544 case $host in
12545 *-*-mingw* )
12546 case $build in
12547 *-*-mingw* ) # actually msys
12548 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12550 *-*-cygwin* )
12551 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12553 * ) # otherwise, assume *nix
12554 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12556 esac
12558 *-*-cygwin* )
12559 case $build in
12560 *-*-mingw* ) # actually msys
12561 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12563 *-*-cygwin* )
12564 lt_cv_to_host_file_cmd=func_convert_file_noop
12566 * ) # otherwise, assume *nix
12567 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12569 esac
12571 * ) # unhandled hosts (and "normal" native builds)
12572 lt_cv_to_host_file_cmd=func_convert_file_noop
12574 esac
12578 to_host_file_cmd=$lt_cv_to_host_file_cmd
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12580 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12587 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
12588 if ${lt_cv_to_tool_file_cmd+:} false; then :
12589 $as_echo_n "(cached) " >&6
12590 else
12591 #assume ordinary cross tools, or native build.
12592 lt_cv_to_tool_file_cmd=func_convert_file_noop
12593 case $host in
12594 *-*-mingw* )
12595 case $build in
12596 *-*-mingw* ) # actually msys
12597 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12599 esac
12601 esac
12605 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12607 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12614 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12615 if ${lt_cv_ld_reload_flag+:} false; then :
12616 $as_echo_n "(cached) " >&6
12617 else
12618 lt_cv_ld_reload_flag='-r'
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12621 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12622 reload_flag=$lt_cv_ld_reload_flag
12623 case $reload_flag in
12624 "" | " "*) ;;
12625 *) reload_flag=" $reload_flag" ;;
12626 esac
12627 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12628 case $host_os in
12629 cygwin* | mingw* | pw32* | cegcc*)
12630 if test "$GCC" != yes; then
12631 reload_cmds=false
12634 darwin*)
12635 if test "$GCC" = yes; then
12636 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12637 else
12638 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12641 esac
12651 if test -n "$ac_tool_prefix"; then
12652 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12653 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12655 $as_echo_n "checking for $ac_word... " >&6; }
12656 if ${ac_cv_prog_OBJDUMP+:} false; then :
12657 $as_echo_n "(cached) " >&6
12658 else
12659 if test -n "$OBJDUMP"; then
12660 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12661 else
12662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663 for as_dir in $PATH
12665 IFS=$as_save_IFS
12666 test -z "$as_dir" && as_dir=.
12667 for ac_exec_ext in '' $ac_executable_extensions; do
12668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12669 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12671 break 2
12673 done
12674 done
12675 IFS=$as_save_IFS
12679 OBJDUMP=$ac_cv_prog_OBJDUMP
12680 if test -n "$OBJDUMP"; then
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12682 $as_echo "$OBJDUMP" >&6; }
12683 else
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12685 $as_echo "no" >&6; }
12690 if test -z "$ac_cv_prog_OBJDUMP"; then
12691 ac_ct_OBJDUMP=$OBJDUMP
12692 # Extract the first word of "objdump", so it can be a program name with args.
12693 set dummy objdump; ac_word=$2
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12695 $as_echo_n "checking for $ac_word... " >&6; }
12696 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12697 $as_echo_n "(cached) " >&6
12698 else
12699 if test -n "$ac_ct_OBJDUMP"; then
12700 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12701 else
12702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12703 for as_dir in $PATH
12705 IFS=$as_save_IFS
12706 test -z "$as_dir" && as_dir=.
12707 for ac_exec_ext in '' $ac_executable_extensions; do
12708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12709 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12711 break 2
12713 done
12714 done
12715 IFS=$as_save_IFS
12719 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12720 if test -n "$ac_ct_OBJDUMP"; then
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12722 $as_echo "$ac_ct_OBJDUMP" >&6; }
12723 else
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12725 $as_echo "no" >&6; }
12728 if test "x$ac_ct_OBJDUMP" = x; then
12729 OBJDUMP="false"
12730 else
12731 case $cross_compiling:$ac_tool_warned in
12732 yes:)
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12735 ac_tool_warned=yes ;;
12736 esac
12737 OBJDUMP=$ac_ct_OBJDUMP
12739 else
12740 OBJDUMP="$ac_cv_prog_OBJDUMP"
12743 test -z "$OBJDUMP" && OBJDUMP=objdump
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12751 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12752 if ${lt_cv_deplibs_check_method+:} false; then :
12753 $as_echo_n "(cached) " >&6
12754 else
12755 lt_cv_file_magic_cmd='$MAGIC_CMD'
12756 lt_cv_file_magic_test_file=
12757 lt_cv_deplibs_check_method='unknown'
12758 # Need to set the preceding variable on all platforms that support
12759 # interlibrary dependencies.
12760 # 'none' -- dependencies not supported.
12761 # `unknown' -- same as none, but documents that we really don't know.
12762 # 'pass_all' -- all dependencies passed with no checks.
12763 # 'test_compile' -- check by making test program.
12764 # 'file_magic [[regex]]' -- check by looking for files in library path
12765 # which responds to the $file_magic_cmd with a given extended regex.
12766 # If you have `file' or equivalent on your system and you're not sure
12767 # whether `pass_all' will *always* work, you probably want this one.
12769 case $host_os in
12770 aix[4-9]*)
12771 lt_cv_deplibs_check_method=pass_all
12774 beos*)
12775 lt_cv_deplibs_check_method=pass_all
12778 bsdi[45]*)
12779 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12780 lt_cv_file_magic_cmd='/usr/bin/file -L'
12781 lt_cv_file_magic_test_file=/shlib/libc.so
12784 cygwin*)
12785 # func_win32_libid is a shell function defined in ltmain.sh
12786 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12787 lt_cv_file_magic_cmd='func_win32_libid'
12790 mingw* | pw32*)
12791 # Base MSYS/MinGW do not provide the 'file' command needed by
12792 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12793 # unless we find 'file', for example because we are cross-compiling.
12794 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12795 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12796 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12797 lt_cv_file_magic_cmd='func_win32_libid'
12798 else
12799 # Keep this pattern in sync with the one in func_win32_libid.
12800 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12801 lt_cv_file_magic_cmd='$OBJDUMP -f'
12805 cegcc*)
12806 # use the weaker test based on 'objdump'. See mingw*.
12807 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12808 lt_cv_file_magic_cmd='$OBJDUMP -f'
12811 darwin* | rhapsody*)
12812 lt_cv_deplibs_check_method=pass_all
12815 freebsd* | dragonfly*)
12816 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12817 case $host_cpu in
12818 i*86 )
12819 # Not sure whether the presence of OpenBSD here was a mistake.
12820 # Let's accept both of them until this is cleared up.
12821 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12822 lt_cv_file_magic_cmd=/usr/bin/file
12823 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12825 esac
12826 else
12827 lt_cv_deplibs_check_method=pass_all
12831 gnu*)
12832 lt_cv_deplibs_check_method=pass_all
12835 haiku*)
12836 lt_cv_deplibs_check_method=pass_all
12839 hpux10.20* | hpux11*)
12840 lt_cv_file_magic_cmd=/usr/bin/file
12841 case $host_cpu in
12842 ia64*)
12843 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12844 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12846 hppa*64*)
12847 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]'
12848 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12851 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12852 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12854 esac
12857 interix[3-9]*)
12858 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12862 irix5* | irix6* | nonstopux*)
12863 case $LD in
12864 *-32|*"-32 ") libmagic=32-bit;;
12865 *-n32|*"-n32 ") libmagic=N32;;
12866 *-64|*"-64 ") libmagic=64-bit;;
12867 *) libmagic=never-match;;
12868 esac
12869 lt_cv_deplibs_check_method=pass_all
12872 # This must be glibc/ELF.
12873 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12874 lt_cv_deplibs_check_method=pass_all
12877 netbsd*)
12878 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12880 else
12881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12885 newos6*)
12886 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12887 lt_cv_file_magic_cmd=/usr/bin/file
12888 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12891 *nto* | *qnx*)
12892 lt_cv_deplibs_check_method=pass_all
12895 openbsd*)
12896 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12897 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12898 else
12899 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12903 osf3* | osf4* | osf5*)
12904 lt_cv_deplibs_check_method=pass_all
12907 rdos*)
12908 lt_cv_deplibs_check_method=pass_all
12911 solaris*)
12912 lt_cv_deplibs_check_method=pass_all
12915 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12916 lt_cv_deplibs_check_method=pass_all
12919 sysv4 | sysv4.3*)
12920 case $host_vendor in
12921 motorola)
12922 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]'
12923 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12925 ncr)
12926 lt_cv_deplibs_check_method=pass_all
12928 sequent)
12929 lt_cv_file_magic_cmd='/bin/file'
12930 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12932 sni)
12933 lt_cv_file_magic_cmd='/bin/file'
12934 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12935 lt_cv_file_magic_test_file=/lib/libc.so
12937 siemens)
12938 lt_cv_deplibs_check_method=pass_all
12941 lt_cv_deplibs_check_method=pass_all
12943 esac
12946 tpf*)
12947 lt_cv_deplibs_check_method=pass_all
12949 esac
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12953 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12955 file_magic_glob=
12956 want_nocaseglob=no
12957 if test "$build" = "$host"; then
12958 case $host_os in
12959 mingw* | pw32*)
12960 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12961 want_nocaseglob=yes
12962 else
12963 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12966 esac
12969 file_magic_cmd=$lt_cv_file_magic_cmd
12970 deplibs_check_method=$lt_cv_deplibs_check_method
12971 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12994 if test -n "$ac_tool_prefix"; then
12995 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12996 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998 $as_echo_n "checking for $ac_word... " >&6; }
12999 if ${ac_cv_prog_DLLTOOL+:} false; then :
13000 $as_echo_n "(cached) " >&6
13001 else
13002 if test -n "$DLLTOOL"; then
13003 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13004 else
13005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006 for as_dir in $PATH
13008 IFS=$as_save_IFS
13009 test -z "$as_dir" && as_dir=.
13010 for ac_exec_ext in '' $ac_executable_extensions; do
13011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13012 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13014 break 2
13016 done
13017 done
13018 IFS=$as_save_IFS
13022 DLLTOOL=$ac_cv_prog_DLLTOOL
13023 if test -n "$DLLTOOL"; then
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13025 $as_echo "$DLLTOOL" >&6; }
13026 else
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028 $as_echo "no" >&6; }
13033 if test -z "$ac_cv_prog_DLLTOOL"; then
13034 ac_ct_DLLTOOL=$DLLTOOL
13035 # Extract the first word of "dlltool", so it can be a program name with args.
13036 set dummy dlltool; ac_word=$2
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13038 $as_echo_n "checking for $ac_word... " >&6; }
13039 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
13040 $as_echo_n "(cached) " >&6
13041 else
13042 if test -n "$ac_ct_DLLTOOL"; then
13043 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13044 else
13045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13046 for as_dir in $PATH
13048 IFS=$as_save_IFS
13049 test -z "$as_dir" && as_dir=.
13050 for ac_exec_ext in '' $ac_executable_extensions; do
13051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13052 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13054 break 2
13056 done
13057 done
13058 IFS=$as_save_IFS
13062 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13063 if test -n "$ac_ct_DLLTOOL"; then
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13065 $as_echo "$ac_ct_DLLTOOL" >&6; }
13066 else
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13068 $as_echo "no" >&6; }
13071 if test "x$ac_ct_DLLTOOL" = x; then
13072 DLLTOOL="false"
13073 else
13074 case $cross_compiling:$ac_tool_warned in
13075 yes:)
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13078 ac_tool_warned=yes ;;
13079 esac
13080 DLLTOOL=$ac_ct_DLLTOOL
13082 else
13083 DLLTOOL="$ac_cv_prog_DLLTOOL"
13086 test -z "$DLLTOOL" && DLLTOOL=dlltool
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
13095 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
13096 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
13097 $as_echo_n "(cached) " >&6
13098 else
13099 lt_cv_sharedlib_from_linklib_cmd='unknown'
13101 case $host_os in
13102 cygwin* | mingw* | pw32* | cegcc*)
13103 # two different shell functions defined in ltmain.sh
13104 # decide which to use based on capabilities of $DLLTOOL
13105 case `$DLLTOOL --help 2>&1` in
13106 *--identify-strict*)
13107 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
13110 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
13112 esac
13115 # fallback: assume linklib IS sharedlib
13116 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
13118 esac
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
13122 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
13123 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
13124 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
13132 if test -n "$ac_tool_prefix"; then
13133 for ac_prog in ar
13135 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13136 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13138 $as_echo_n "checking for $ac_word... " >&6; }
13139 if ${ac_cv_prog_AR+:} false; then :
13140 $as_echo_n "(cached) " >&6
13141 else
13142 if test -n "$AR"; then
13143 ac_cv_prog_AR="$AR" # Let the user override the test.
13144 else
13145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13146 for as_dir in $PATH
13148 IFS=$as_save_IFS
13149 test -z "$as_dir" && as_dir=.
13150 for ac_exec_ext in '' $ac_executable_extensions; do
13151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13152 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13154 break 2
13156 done
13157 done
13158 IFS=$as_save_IFS
13162 AR=$ac_cv_prog_AR
13163 if test -n "$AR"; then
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13165 $as_echo "$AR" >&6; }
13166 else
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168 $as_echo "no" >&6; }
13172 test -n "$AR" && break
13173 done
13175 if test -z "$AR"; then
13176 ac_ct_AR=$AR
13177 for ac_prog in ar
13179 # Extract the first word of "$ac_prog", so it can be a program name with args.
13180 set dummy $ac_prog; ac_word=$2
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13182 $as_echo_n "checking for $ac_word... " >&6; }
13183 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13184 $as_echo_n "(cached) " >&6
13185 else
13186 if test -n "$ac_ct_AR"; then
13187 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13188 else
13189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13190 for as_dir in $PATH
13192 IFS=$as_save_IFS
13193 test -z "$as_dir" && as_dir=.
13194 for ac_exec_ext in '' $ac_executable_extensions; do
13195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13196 ac_cv_prog_ac_ct_AR="$ac_prog"
13197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13198 break 2
13200 done
13201 done
13202 IFS=$as_save_IFS
13206 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13207 if test -n "$ac_ct_AR"; then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13209 $as_echo "$ac_ct_AR" >&6; }
13210 else
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13212 $as_echo "no" >&6; }
13216 test -n "$ac_ct_AR" && break
13217 done
13219 if test "x$ac_ct_AR" = x; then
13220 AR="false"
13221 else
13222 case $cross_compiling:$ac_tool_warned in
13223 yes:)
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13226 ac_tool_warned=yes ;;
13227 esac
13228 AR=$ac_ct_AR
13232 : ${AR=ar}
13233 : ${AR_FLAGS=cru}
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13246 $as_echo_n "checking for archiver @FILE support... " >&6; }
13247 if ${lt_cv_ar_at_file+:} false; then :
13248 $as_echo_n "(cached) " >&6
13249 else
13250 lt_cv_ar_at_file=no
13251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252 /* end confdefs.h. */
13255 main ()
13259 return 0;
13261 _ACEOF
13262 if ac_fn_c_try_compile "$LINENO"; then :
13263 echo conftest.$ac_objext > conftest.lst
13264 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13266 (eval $lt_ar_try) 2>&5
13267 ac_status=$?
13268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13269 test $ac_status = 0; }
13270 if test "$ac_status" -eq 0; then
13271 # Ensure the archiver fails upon bogus file names.
13272 rm -f conftest.$ac_objext libconftest.a
13273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13274 (eval $lt_ar_try) 2>&5
13275 ac_status=$?
13276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13277 test $ac_status = 0; }
13278 if test "$ac_status" -ne 0; then
13279 lt_cv_ar_at_file=@
13282 rm -f conftest.* libconftest.a
13285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13289 $as_echo "$lt_cv_ar_at_file" >&6; }
13291 if test "x$lt_cv_ar_at_file" = xno; then
13292 archiver_list_spec=
13293 else
13294 archiver_list_spec=$lt_cv_ar_at_file
13303 if test -n "$ac_tool_prefix"; then
13304 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13305 set dummy ${ac_tool_prefix}strip; ac_word=$2
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13307 $as_echo_n "checking for $ac_word... " >&6; }
13308 if ${ac_cv_prog_STRIP+:} false; then :
13309 $as_echo_n "(cached) " >&6
13310 else
13311 if test -n "$STRIP"; then
13312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13313 else
13314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13315 for as_dir in $PATH
13317 IFS=$as_save_IFS
13318 test -z "$as_dir" && as_dir=.
13319 for ac_exec_ext in '' $ac_executable_extensions; do
13320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13321 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13323 break 2
13325 done
13326 done
13327 IFS=$as_save_IFS
13331 STRIP=$ac_cv_prog_STRIP
13332 if test -n "$STRIP"; then
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13334 $as_echo "$STRIP" >&6; }
13335 else
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13337 $as_echo "no" >&6; }
13342 if test -z "$ac_cv_prog_STRIP"; then
13343 ac_ct_STRIP=$STRIP
13344 # Extract the first word of "strip", so it can be a program name with args.
13345 set dummy strip; ac_word=$2
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13347 $as_echo_n "checking for $ac_word... " >&6; }
13348 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13349 $as_echo_n "(cached) " >&6
13350 else
13351 if test -n "$ac_ct_STRIP"; then
13352 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13353 else
13354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13355 for as_dir in $PATH
13357 IFS=$as_save_IFS
13358 test -z "$as_dir" && as_dir=.
13359 for ac_exec_ext in '' $ac_executable_extensions; do
13360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13361 ac_cv_prog_ac_ct_STRIP="strip"
13362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13363 break 2
13365 done
13366 done
13367 IFS=$as_save_IFS
13371 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13372 if test -n "$ac_ct_STRIP"; then
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13374 $as_echo "$ac_ct_STRIP" >&6; }
13375 else
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13377 $as_echo "no" >&6; }
13380 if test "x$ac_ct_STRIP" = x; then
13381 STRIP=":"
13382 else
13383 case $cross_compiling:$ac_tool_warned in
13384 yes:)
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13387 ac_tool_warned=yes ;;
13388 esac
13389 STRIP=$ac_ct_STRIP
13391 else
13392 STRIP="$ac_cv_prog_STRIP"
13395 test -z "$STRIP" && STRIP=:
13402 if test -n "$ac_tool_prefix"; then
13403 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13404 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13406 $as_echo_n "checking for $ac_word... " >&6; }
13407 if ${ac_cv_prog_RANLIB+:} false; then :
13408 $as_echo_n "(cached) " >&6
13409 else
13410 if test -n "$RANLIB"; then
13411 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13412 else
13413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13414 for as_dir in $PATH
13416 IFS=$as_save_IFS
13417 test -z "$as_dir" && as_dir=.
13418 for ac_exec_ext in '' $ac_executable_extensions; do
13419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13420 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13422 break 2
13424 done
13425 done
13426 IFS=$as_save_IFS
13430 RANLIB=$ac_cv_prog_RANLIB
13431 if test -n "$RANLIB"; then
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13433 $as_echo "$RANLIB" >&6; }
13434 else
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13436 $as_echo "no" >&6; }
13441 if test -z "$ac_cv_prog_RANLIB"; then
13442 ac_ct_RANLIB=$RANLIB
13443 # Extract the first word of "ranlib", so it can be a program name with args.
13444 set dummy ranlib; ac_word=$2
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13446 $as_echo_n "checking for $ac_word... " >&6; }
13447 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13448 $as_echo_n "(cached) " >&6
13449 else
13450 if test -n "$ac_ct_RANLIB"; then
13451 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13452 else
13453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13454 for as_dir in $PATH
13456 IFS=$as_save_IFS
13457 test -z "$as_dir" && as_dir=.
13458 for ac_exec_ext in '' $ac_executable_extensions; do
13459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13460 ac_cv_prog_ac_ct_RANLIB="ranlib"
13461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13462 break 2
13464 done
13465 done
13466 IFS=$as_save_IFS
13470 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13471 if test -n "$ac_ct_RANLIB"; then
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13473 $as_echo "$ac_ct_RANLIB" >&6; }
13474 else
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13476 $as_echo "no" >&6; }
13479 if test "x$ac_ct_RANLIB" = x; then
13480 RANLIB=":"
13481 else
13482 case $cross_compiling:$ac_tool_warned in
13483 yes:)
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13486 ac_tool_warned=yes ;;
13487 esac
13488 RANLIB=$ac_ct_RANLIB
13490 else
13491 RANLIB="$ac_cv_prog_RANLIB"
13494 test -z "$RANLIB" && RANLIB=:
13501 # Determine commands to create old-style static archives.
13502 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13503 old_postinstall_cmds='chmod 644 $oldlib'
13504 old_postuninstall_cmds=
13506 if test -n "$RANLIB"; then
13507 case $host_os in
13508 openbsd*)
13509 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13512 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13514 esac
13515 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13518 case $host_os in
13519 darwin*)
13520 lock_old_archive_extraction=yes ;;
13522 lock_old_archive_extraction=no ;;
13523 esac
13563 # If no C compiler was specified, use CC.
13564 LTCC=${LTCC-"$CC"}
13566 # If no C compiler flags were specified, use CFLAGS.
13567 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13569 # Allow CC to be a program name with arguments.
13570 compiler=$CC
13573 # Check for command to grab the raw symbol name followed by C symbol from nm.
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13575 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13576 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
13577 $as_echo_n "(cached) " >&6
13578 else
13580 # These are sane defaults that work on at least a few old systems.
13581 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13583 # Character class describing NM global symbol codes.
13584 symcode='[BCDEGRST]'
13586 # Regexp to match symbols that can be accessed directly from C.
13587 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13589 # Define system-specific variables.
13590 case $host_os in
13591 aix*)
13592 symcode='[BCDT]'
13594 cygwin* | mingw* | pw32* | cegcc*)
13595 symcode='[ABCDGISTW]'
13597 hpux*)
13598 if test "$host_cpu" = ia64; then
13599 symcode='[ABCDEGRST]'
13602 irix* | nonstopux*)
13603 symcode='[BCDEGRST]'
13605 osf*)
13606 symcode='[BCDEGQRST]'
13608 solaris*)
13609 symcode='[BDRT]'
13611 sco3.2v5*)
13612 symcode='[DT]'
13614 sysv4.2uw2*)
13615 symcode='[DT]'
13617 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13618 symcode='[ABDT]'
13620 sysv4)
13621 symcode='[DFNSTU]'
13623 esac
13625 # If we're using GNU nm, then use its standard symbol codes.
13626 case `$NM -V 2>&1` in
13627 *GNU* | *'with BFD'*)
13628 symcode='[ABCDGIRSTW]' ;;
13629 esac
13631 # Transform an extracted symbol line into a proper C declaration.
13632 # Some systems (esp. on ia64) link data and code symbols differently,
13633 # so use this general approach.
13634 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13636 # Transform an extracted symbol line into symbol name and symbol address
13637 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13638 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
13640 # Handle CRLF in mingw tool chain
13641 opt_cr=
13642 case $build_os in
13643 mingw*)
13644 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13646 esac
13648 # Try without a prefix underscore, then with it.
13649 for ac_symprfx in "" "_"; do
13651 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13652 symxfrm="\\1 $ac_symprfx\\2 \\2"
13654 # Write the raw and C identifiers.
13655 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13656 # Fake it for dumpbin and say T for any non-static function
13657 # and D for any global variable.
13658 # Also find C++ and __fastcall symbols from MSVC++,
13659 # which start with @ or ?.
13660 lt_cv_sys_global_symbol_pipe="$AWK '"\
13661 " {last_section=section; section=\$ 3};"\
13662 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13663 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13664 " \$ 0!~/External *\|/{next};"\
13665 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13666 " {if(hide[section]) next};"\
13667 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13668 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13669 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13670 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13671 " ' prfx=^$ac_symprfx"
13672 else
13673 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13675 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
13677 # Check to see that the pipe works correctly.
13678 pipe_works=no
13680 rm -f conftest*
13681 cat > conftest.$ac_ext <<_LT_EOF
13682 #ifdef __cplusplus
13683 extern "C" {
13684 #endif
13685 char nm_test_var;
13686 void nm_test_func(void);
13687 void nm_test_func(void){}
13688 #ifdef __cplusplus
13690 #endif
13691 int main(){nm_test_var='a';nm_test_func();return(0);}
13692 _LT_EOF
13694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13695 (eval $ac_compile) 2>&5
13696 ac_status=$?
13697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13698 test $ac_status = 0; }; then
13699 # Now try to grab the symbols.
13700 nlist=conftest.nm
13701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13702 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13703 ac_status=$?
13704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13705 test $ac_status = 0; } && test -s "$nlist"; then
13706 # Try sorting and uniquifying the output.
13707 if sort "$nlist" | uniq > "$nlist"T; then
13708 mv -f "$nlist"T "$nlist"
13709 else
13710 rm -f "$nlist"T
13713 # Make sure that we snagged all the symbols we need.
13714 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13715 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13716 cat <<_LT_EOF > conftest.$ac_ext
13717 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
13718 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
13719 /* DATA imports from DLLs on WIN32 con't be const, because runtime
13720 relocations are performed -- see ld's documentation on pseudo-relocs. */
13721 # define LT_DLSYM_CONST
13722 #elif defined(__osf__)
13723 /* This system does not cope well with relocations in const data. */
13724 # define LT_DLSYM_CONST
13725 #else
13726 # define LT_DLSYM_CONST const
13727 #endif
13729 #ifdef __cplusplus
13730 extern "C" {
13731 #endif
13733 _LT_EOF
13734 # Now generate the symbol file.
13735 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13737 cat <<_LT_EOF >> conftest.$ac_ext
13739 /* The mapping between symbol names and symbols. */
13740 LT_DLSYM_CONST struct {
13741 const char *name;
13742 void *address;
13744 lt__PROGRAM__LTX_preloaded_symbols[] =
13746 { "@PROGRAM@", (void *) 0 },
13747 _LT_EOF
13748 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13749 cat <<\_LT_EOF >> conftest.$ac_ext
13750 {0, (void *) 0}
13753 /* This works around a problem in FreeBSD linker */
13754 #ifdef FREEBSD_WORKAROUND
13755 static const void *lt_preloaded_setup() {
13756 return lt__PROGRAM__LTX_preloaded_symbols;
13758 #endif
13760 #ifdef __cplusplus
13762 #endif
13763 _LT_EOF
13764 # Now try linking the two files.
13765 mv conftest.$ac_objext conftstm.$ac_objext
13766 lt_globsym_save_LIBS=$LIBS
13767 lt_globsym_save_CFLAGS=$CFLAGS
13768 LIBS="conftstm.$ac_objext"
13769 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13771 (eval $ac_link) 2>&5
13772 ac_status=$?
13773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13774 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13775 pipe_works=yes
13777 LIBS=$lt_globsym_save_LIBS
13778 CFLAGS=$lt_globsym_save_CFLAGS
13779 else
13780 echo "cannot find nm_test_func in $nlist" >&5
13782 else
13783 echo "cannot find nm_test_var in $nlist" >&5
13785 else
13786 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13788 else
13789 echo "$progname: failed program was:" >&5
13790 cat conftest.$ac_ext >&5
13792 rm -rf conftest* conftst*
13794 # Do not use the global_symbol_pipe unless it works.
13795 if test "$pipe_works" = yes; then
13796 break
13797 else
13798 lt_cv_sys_global_symbol_pipe=
13800 done
13804 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13805 lt_cv_sys_global_symbol_to_cdecl=
13807 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13809 $as_echo "failed" >&6; }
13810 else
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13812 $as_echo "ok" >&6; }
13815 # Response file support.
13816 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13817 nm_file_list_spec='@'
13818 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13819 nm_file_list_spec='@'
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13849 $as_echo_n "checking for sysroot... " >&6; }
13851 # Check whether --with-sysroot was given.
13852 if test "${with_sysroot+set}" = set; then :
13853 withval=$with_sysroot;
13854 else
13855 with_sysroot=no
13859 lt_sysroot=
13860 case ${with_sysroot} in #(
13861 yes)
13862 if test "$GCC" = yes; then
13863 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13865 ;; #(
13867 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13868 ;; #(
13869 no|'')
13870 ;; #(
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
13873 $as_echo "${with_sysroot}" >&6; }
13874 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13876 esac
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13879 $as_echo "${lt_sysroot:-no}" >&6; }
13885 # Check whether --enable-libtool-lock was given.
13886 if test "${enable_libtool_lock+set}" = set; then :
13887 enableval=$enable_libtool_lock;
13890 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13892 # Some flags need to be propagated to the compiler or linker for good
13893 # libtool support.
13894 case $host in
13895 ia64-*-hpux*)
13896 # Find out which ABI we are using.
13897 echo 'int i;' > conftest.$ac_ext
13898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13899 (eval $ac_compile) 2>&5
13900 ac_status=$?
13901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13902 test $ac_status = 0; }; then
13903 case `/usr/bin/file conftest.$ac_objext` in
13904 *ELF-32*)
13905 HPUX_IA64_MODE="32"
13907 *ELF-64*)
13908 HPUX_IA64_MODE="64"
13910 esac
13912 rm -rf conftest*
13914 *-*-irix6*)
13915 # Find out which ABI we are using.
13916 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13918 (eval $ac_compile) 2>&5
13919 ac_status=$?
13920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13921 test $ac_status = 0; }; then
13922 if test "$lt_cv_prog_gnu_ld" = yes; then
13923 case `/usr/bin/file conftest.$ac_objext` in
13924 *32-bit*)
13925 LD="${LD-ld} -melf32bsmip"
13927 *N32*)
13928 LD="${LD-ld} -melf32bmipn32"
13930 *64-bit*)
13931 LD="${LD-ld} -melf64bmip"
13933 esac
13934 else
13935 case `/usr/bin/file conftest.$ac_objext` in
13936 *32-bit*)
13937 LD="${LD-ld} -32"
13939 *N32*)
13940 LD="${LD-ld} -n32"
13942 *64-bit*)
13943 LD="${LD-ld} -64"
13945 esac
13948 rm -rf conftest*
13951 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13952 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13953 # Find out which ABI we are using.
13954 echo 'int i;' > conftest.$ac_ext
13955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13956 (eval $ac_compile) 2>&5
13957 ac_status=$?
13958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13959 test $ac_status = 0; }; then
13960 case `/usr/bin/file conftest.o` in
13961 *32-bit*)
13962 case $host in
13963 x86_64-*kfreebsd*-gnu)
13964 LD="${LD-ld} -m elf_i386_fbsd"
13966 x86_64-*linux*)
13967 LD="${LD-ld} -m elf_i386"
13969 ppc64-*linux*|powerpc64-*linux*)
13970 LD="${LD-ld} -m elf32ppclinux"
13972 s390x-*linux*)
13973 LD="${LD-ld} -m elf_s390"
13975 sparc64-*linux*)
13976 LD="${LD-ld} -m elf32_sparc"
13978 esac
13980 *64-bit*)
13981 case $host in
13982 x86_64-*kfreebsd*-gnu)
13983 LD="${LD-ld} -m elf_x86_64_fbsd"
13985 x86_64-*linux*)
13986 LD="${LD-ld} -m elf_x86_64"
13988 ppc*-*linux*|powerpc*-*linux*)
13989 LD="${LD-ld} -m elf64ppc"
13991 s390*-*linux*|s390*-*tpf*)
13992 LD="${LD-ld} -m elf64_s390"
13994 sparc*-*linux*)
13995 LD="${LD-ld} -m elf64_sparc"
13997 esac
13999 esac
14001 rm -rf conftest*
14004 *-*-sco3.2v5*)
14005 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14006 SAVE_CFLAGS="$CFLAGS"
14007 CFLAGS="$CFLAGS -belf"
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14009 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14010 if ${lt_cv_cc_needs_belf+:} false; then :
14011 $as_echo_n "(cached) " >&6
14012 else
14013 ac_ext=c
14014 ac_cpp='$CPP $CPPFLAGS'
14015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14020 /* end confdefs.h. */
14023 main ()
14027 return 0;
14029 _ACEOF
14030 if ac_fn_c_try_link "$LINENO"; then :
14031 lt_cv_cc_needs_belf=yes
14032 else
14033 lt_cv_cc_needs_belf=no
14035 rm -f core conftest.err conftest.$ac_objext \
14036 conftest$ac_exeext conftest.$ac_ext
14037 ac_ext=c
14038 ac_cpp='$CPP $CPPFLAGS'
14039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14045 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14046 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14047 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14048 CFLAGS="$SAVE_CFLAGS"
14051 *-*solaris*)
14052 # Find out which ABI we are using.
14053 echo 'int i;' > conftest.$ac_ext
14054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14055 (eval $ac_compile) 2>&5
14056 ac_status=$?
14057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14058 test $ac_status = 0; }; then
14059 case `/usr/bin/file conftest.o` in
14060 *64-bit*)
14061 case $lt_cv_prog_gnu_ld in
14062 yes*)
14063 case $host in
14064 i?86-*-solaris*)
14065 LD="${LD-ld} -m elf_x86_64"
14067 sparc*-*-solaris*)
14068 LD="${LD-ld} -m elf64_sparc"
14070 esac
14071 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
14072 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14073 LD="${LD-ld}_sol2"
14077 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14078 LD="${LD-ld} -64"
14081 esac
14083 esac
14085 rm -rf conftest*
14087 esac
14089 need_locks="$enable_libtool_lock"
14091 if test -n "$ac_tool_prefix"; then
14092 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14093 set dummy ${ac_tool_prefix}mt; ac_word=$2
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14095 $as_echo_n "checking for $ac_word... " >&6; }
14096 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
14097 $as_echo_n "(cached) " >&6
14098 else
14099 if test -n "$MANIFEST_TOOL"; then
14100 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14101 else
14102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14103 for as_dir in $PATH
14105 IFS=$as_save_IFS
14106 test -z "$as_dir" && as_dir=.
14107 for ac_exec_ext in '' $ac_executable_extensions; do
14108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14109 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14111 break 2
14113 done
14114 done
14115 IFS=$as_save_IFS
14119 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14120 if test -n "$MANIFEST_TOOL"; then
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14122 $as_echo "$MANIFEST_TOOL" >&6; }
14123 else
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14125 $as_echo "no" >&6; }
14130 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14131 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14132 # Extract the first word of "mt", so it can be a program name with args.
14133 set dummy mt; ac_word=$2
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14135 $as_echo_n "checking for $ac_word... " >&6; }
14136 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
14137 $as_echo_n "(cached) " >&6
14138 else
14139 if test -n "$ac_ct_MANIFEST_TOOL"; then
14140 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14141 else
14142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14143 for as_dir in $PATH
14145 IFS=$as_save_IFS
14146 test -z "$as_dir" && as_dir=.
14147 for ac_exec_ext in '' $ac_executable_extensions; do
14148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14149 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14151 break 2
14153 done
14154 done
14155 IFS=$as_save_IFS
14159 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14160 if test -n "$ac_ct_MANIFEST_TOOL"; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14162 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
14163 else
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14165 $as_echo "no" >&6; }
14168 if test "x$ac_ct_MANIFEST_TOOL" = x; then
14169 MANIFEST_TOOL=":"
14170 else
14171 case $cross_compiling:$ac_tool_warned in
14172 yes:)
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14175 ac_tool_warned=yes ;;
14176 esac
14177 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14179 else
14180 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14183 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14185 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14186 if ${lt_cv_path_mainfest_tool+:} false; then :
14187 $as_echo_n "(cached) " >&6
14188 else
14189 lt_cv_path_mainfest_tool=no
14190 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14191 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14192 cat conftest.err >&5
14193 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14194 lt_cv_path_mainfest_tool=yes
14196 rm -f conftest*
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14199 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
14200 if test "x$lt_cv_path_mainfest_tool" != xyes; then
14201 MANIFEST_TOOL=:
14209 case $host_os in
14210 rhapsody* | darwin*)
14211 if test -n "$ac_tool_prefix"; then
14212 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14213 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14215 $as_echo_n "checking for $ac_word... " >&6; }
14216 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14217 $as_echo_n "(cached) " >&6
14218 else
14219 if test -n "$DSYMUTIL"; then
14220 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14221 else
14222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14223 for as_dir in $PATH
14225 IFS=$as_save_IFS
14226 test -z "$as_dir" && as_dir=.
14227 for ac_exec_ext in '' $ac_executable_extensions; do
14228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14229 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14231 break 2
14233 done
14234 done
14235 IFS=$as_save_IFS
14239 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14240 if test -n "$DSYMUTIL"; then
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14242 $as_echo "$DSYMUTIL" >&6; }
14243 else
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14245 $as_echo "no" >&6; }
14250 if test -z "$ac_cv_prog_DSYMUTIL"; then
14251 ac_ct_DSYMUTIL=$DSYMUTIL
14252 # Extract the first word of "dsymutil", so it can be a program name with args.
14253 set dummy dsymutil; ac_word=$2
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14255 $as_echo_n "checking for $ac_word... " >&6; }
14256 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14257 $as_echo_n "(cached) " >&6
14258 else
14259 if test -n "$ac_ct_DSYMUTIL"; then
14260 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14261 else
14262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14263 for as_dir in $PATH
14265 IFS=$as_save_IFS
14266 test -z "$as_dir" && as_dir=.
14267 for ac_exec_ext in '' $ac_executable_extensions; do
14268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14269 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14271 break 2
14273 done
14274 done
14275 IFS=$as_save_IFS
14279 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14280 if test -n "$ac_ct_DSYMUTIL"; then
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14282 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14283 else
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14285 $as_echo "no" >&6; }
14288 if test "x$ac_ct_DSYMUTIL" = x; then
14289 DSYMUTIL=":"
14290 else
14291 case $cross_compiling:$ac_tool_warned in
14292 yes:)
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14295 ac_tool_warned=yes ;;
14296 esac
14297 DSYMUTIL=$ac_ct_DSYMUTIL
14299 else
14300 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14303 if test -n "$ac_tool_prefix"; then
14304 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14305 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14307 $as_echo_n "checking for $ac_word... " >&6; }
14308 if ${ac_cv_prog_NMEDIT+:} false; then :
14309 $as_echo_n "(cached) " >&6
14310 else
14311 if test -n "$NMEDIT"; then
14312 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14313 else
14314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14315 for as_dir in $PATH
14317 IFS=$as_save_IFS
14318 test -z "$as_dir" && as_dir=.
14319 for ac_exec_ext in '' $ac_executable_extensions; do
14320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14321 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14323 break 2
14325 done
14326 done
14327 IFS=$as_save_IFS
14331 NMEDIT=$ac_cv_prog_NMEDIT
14332 if test -n "$NMEDIT"; then
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14334 $as_echo "$NMEDIT" >&6; }
14335 else
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14337 $as_echo "no" >&6; }
14342 if test -z "$ac_cv_prog_NMEDIT"; then
14343 ac_ct_NMEDIT=$NMEDIT
14344 # Extract the first word of "nmedit", so it can be a program name with args.
14345 set dummy nmedit; ac_word=$2
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14347 $as_echo_n "checking for $ac_word... " >&6; }
14348 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14349 $as_echo_n "(cached) " >&6
14350 else
14351 if test -n "$ac_ct_NMEDIT"; then
14352 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14353 else
14354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14355 for as_dir in $PATH
14357 IFS=$as_save_IFS
14358 test -z "$as_dir" && as_dir=.
14359 for ac_exec_ext in '' $ac_executable_extensions; do
14360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14361 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14363 break 2
14365 done
14366 done
14367 IFS=$as_save_IFS
14371 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14372 if test -n "$ac_ct_NMEDIT"; then
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14374 $as_echo "$ac_ct_NMEDIT" >&6; }
14375 else
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14377 $as_echo "no" >&6; }
14380 if test "x$ac_ct_NMEDIT" = x; then
14381 NMEDIT=":"
14382 else
14383 case $cross_compiling:$ac_tool_warned in
14384 yes:)
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14387 ac_tool_warned=yes ;;
14388 esac
14389 NMEDIT=$ac_ct_NMEDIT
14391 else
14392 NMEDIT="$ac_cv_prog_NMEDIT"
14395 if test -n "$ac_tool_prefix"; then
14396 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14397 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14399 $as_echo_n "checking for $ac_word... " >&6; }
14400 if ${ac_cv_prog_LIPO+:} false; then :
14401 $as_echo_n "(cached) " >&6
14402 else
14403 if test -n "$LIPO"; then
14404 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14405 else
14406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14407 for as_dir in $PATH
14409 IFS=$as_save_IFS
14410 test -z "$as_dir" && as_dir=.
14411 for ac_exec_ext in '' $ac_executable_extensions; do
14412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14413 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14415 break 2
14417 done
14418 done
14419 IFS=$as_save_IFS
14423 LIPO=$ac_cv_prog_LIPO
14424 if test -n "$LIPO"; then
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14426 $as_echo "$LIPO" >&6; }
14427 else
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14429 $as_echo "no" >&6; }
14434 if test -z "$ac_cv_prog_LIPO"; then
14435 ac_ct_LIPO=$LIPO
14436 # Extract the first word of "lipo", so it can be a program name with args.
14437 set dummy lipo; ac_word=$2
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14439 $as_echo_n "checking for $ac_word... " >&6; }
14440 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14441 $as_echo_n "(cached) " >&6
14442 else
14443 if test -n "$ac_ct_LIPO"; then
14444 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14445 else
14446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14447 for as_dir in $PATH
14449 IFS=$as_save_IFS
14450 test -z "$as_dir" && as_dir=.
14451 for ac_exec_ext in '' $ac_executable_extensions; do
14452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14453 ac_cv_prog_ac_ct_LIPO="lipo"
14454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14455 break 2
14457 done
14458 done
14459 IFS=$as_save_IFS
14463 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14464 if test -n "$ac_ct_LIPO"; then
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14466 $as_echo "$ac_ct_LIPO" >&6; }
14467 else
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14469 $as_echo "no" >&6; }
14472 if test "x$ac_ct_LIPO" = x; then
14473 LIPO=":"
14474 else
14475 case $cross_compiling:$ac_tool_warned in
14476 yes:)
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14479 ac_tool_warned=yes ;;
14480 esac
14481 LIPO=$ac_ct_LIPO
14483 else
14484 LIPO="$ac_cv_prog_LIPO"
14487 if test -n "$ac_tool_prefix"; then
14488 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14489 set dummy ${ac_tool_prefix}otool; ac_word=$2
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14491 $as_echo_n "checking for $ac_word... " >&6; }
14492 if ${ac_cv_prog_OTOOL+:} false; then :
14493 $as_echo_n "(cached) " >&6
14494 else
14495 if test -n "$OTOOL"; then
14496 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14497 else
14498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14499 for as_dir in $PATH
14501 IFS=$as_save_IFS
14502 test -z "$as_dir" && as_dir=.
14503 for ac_exec_ext in '' $ac_executable_extensions; do
14504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14505 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14507 break 2
14509 done
14510 done
14511 IFS=$as_save_IFS
14515 OTOOL=$ac_cv_prog_OTOOL
14516 if test -n "$OTOOL"; then
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14518 $as_echo "$OTOOL" >&6; }
14519 else
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14521 $as_echo "no" >&6; }
14526 if test -z "$ac_cv_prog_OTOOL"; then
14527 ac_ct_OTOOL=$OTOOL
14528 # Extract the first word of "otool", so it can be a program name with args.
14529 set dummy otool; ac_word=$2
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14531 $as_echo_n "checking for $ac_word... " >&6; }
14532 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14533 $as_echo_n "(cached) " >&6
14534 else
14535 if test -n "$ac_ct_OTOOL"; then
14536 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14537 else
14538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14539 for as_dir in $PATH
14541 IFS=$as_save_IFS
14542 test -z "$as_dir" && as_dir=.
14543 for ac_exec_ext in '' $ac_executable_extensions; do
14544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14545 ac_cv_prog_ac_ct_OTOOL="otool"
14546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14547 break 2
14549 done
14550 done
14551 IFS=$as_save_IFS
14555 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14556 if test -n "$ac_ct_OTOOL"; then
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14558 $as_echo "$ac_ct_OTOOL" >&6; }
14559 else
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14561 $as_echo "no" >&6; }
14564 if test "x$ac_ct_OTOOL" = x; then
14565 OTOOL=":"
14566 else
14567 case $cross_compiling:$ac_tool_warned in
14568 yes:)
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14571 ac_tool_warned=yes ;;
14572 esac
14573 OTOOL=$ac_ct_OTOOL
14575 else
14576 OTOOL="$ac_cv_prog_OTOOL"
14579 if test -n "$ac_tool_prefix"; then
14580 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14581 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14583 $as_echo_n "checking for $ac_word... " >&6; }
14584 if ${ac_cv_prog_OTOOL64+:} false; then :
14585 $as_echo_n "(cached) " >&6
14586 else
14587 if test -n "$OTOOL64"; then
14588 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14589 else
14590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14591 for as_dir in $PATH
14593 IFS=$as_save_IFS
14594 test -z "$as_dir" && as_dir=.
14595 for ac_exec_ext in '' $ac_executable_extensions; do
14596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14597 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14599 break 2
14601 done
14602 done
14603 IFS=$as_save_IFS
14607 OTOOL64=$ac_cv_prog_OTOOL64
14608 if test -n "$OTOOL64"; then
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14610 $as_echo "$OTOOL64" >&6; }
14611 else
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14613 $as_echo "no" >&6; }
14618 if test -z "$ac_cv_prog_OTOOL64"; then
14619 ac_ct_OTOOL64=$OTOOL64
14620 # Extract the first word of "otool64", so it can be a program name with args.
14621 set dummy otool64; ac_word=$2
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14623 $as_echo_n "checking for $ac_word... " >&6; }
14624 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14625 $as_echo_n "(cached) " >&6
14626 else
14627 if test -n "$ac_ct_OTOOL64"; then
14628 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14629 else
14630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14631 for as_dir in $PATH
14633 IFS=$as_save_IFS
14634 test -z "$as_dir" && as_dir=.
14635 for ac_exec_ext in '' $ac_executable_extensions; do
14636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14637 ac_cv_prog_ac_ct_OTOOL64="otool64"
14638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14639 break 2
14641 done
14642 done
14643 IFS=$as_save_IFS
14647 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14648 if test -n "$ac_ct_OTOOL64"; then
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14650 $as_echo "$ac_ct_OTOOL64" >&6; }
14651 else
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14653 $as_echo "no" >&6; }
14656 if test "x$ac_ct_OTOOL64" = x; then
14657 OTOOL64=":"
14658 else
14659 case $cross_compiling:$ac_tool_warned in
14660 yes:)
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14663 ac_tool_warned=yes ;;
14664 esac
14665 OTOOL64=$ac_ct_OTOOL64
14667 else
14668 OTOOL64="$ac_cv_prog_OTOOL64"
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14698 $as_echo_n "checking for -single_module linker flag... " >&6; }
14699 if ${lt_cv_apple_cc_single_mod+:} false; then :
14700 $as_echo_n "(cached) " >&6
14701 else
14702 lt_cv_apple_cc_single_mod=no
14703 if test -z "${LT_MULTI_MODULE}"; then
14704 # By default we will add the -single_module flag. You can override
14705 # by either setting the environment variable LT_MULTI_MODULE
14706 # non-empty at configure time, or by adding -multi_module to the
14707 # link flags.
14708 rm -rf libconftest.dylib*
14709 echo "int foo(void){return 1;}" > conftest.c
14710 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14711 -dynamiclib -Wl,-single_module conftest.c" >&5
14712 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14713 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14714 _lt_result=$?
14715 # If there is a non-empty error log, and "single_module"
14716 # appears in it, assume the flag caused a linker warning
14717 if test -s conftest.err && $GREP single_module conftest.err; then
14718 cat conftest.err >&5
14719 # Otherwise, if the output was created with a 0 exit code from
14720 # the compiler, it worked.
14721 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
14722 lt_cv_apple_cc_single_mod=yes
14723 else
14724 cat conftest.err >&5
14726 rm -rf libconftest.dylib*
14727 rm -f conftest.*
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14731 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14734 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14735 if ${lt_cv_ld_exported_symbols_list+:} false; then :
14736 $as_echo_n "(cached) " >&6
14737 else
14738 lt_cv_ld_exported_symbols_list=no
14739 save_LDFLAGS=$LDFLAGS
14740 echo "_main" > conftest.sym
14741 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14743 /* end confdefs.h. */
14746 main ()
14750 return 0;
14752 _ACEOF
14753 if ac_fn_c_try_link "$LINENO"; then :
14754 lt_cv_ld_exported_symbols_list=yes
14755 else
14756 lt_cv_ld_exported_symbols_list=no
14758 rm -f core conftest.err conftest.$ac_objext \
14759 conftest$ac_exeext conftest.$ac_ext
14760 LDFLAGS="$save_LDFLAGS"
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14764 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14767 $as_echo_n "checking for -force_load linker flag... " >&6; }
14768 if ${lt_cv_ld_force_load+:} false; then :
14769 $as_echo_n "(cached) " >&6
14770 else
14771 lt_cv_ld_force_load=no
14772 cat > conftest.c << _LT_EOF
14773 int forced_loaded() { return 2;}
14774 _LT_EOF
14775 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14776 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14777 echo "$AR cru libconftest.a conftest.o" >&5
14778 $AR cru libconftest.a conftest.o 2>&5
14779 echo "$RANLIB libconftest.a" >&5
14780 $RANLIB libconftest.a 2>&5
14781 cat > conftest.c << _LT_EOF
14782 int main() { return 0;}
14783 _LT_EOF
14784 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14785 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14786 _lt_result=$?
14787 if test -s conftest.err && $GREP force_load conftest.err; then
14788 cat conftest.err >&5
14789 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
14790 lt_cv_ld_force_load=yes
14791 else
14792 cat conftest.err >&5
14794 rm -f conftest.err libconftest.a conftest conftest.c
14795 rm -rf conftest.dSYM
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14799 $as_echo "$lt_cv_ld_force_load" >&6; }
14800 case $host_os in
14801 rhapsody* | darwin1.[012])
14802 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14803 darwin1.*)
14804 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14805 darwin*) # darwin 5.x on
14806 # if running on 10.5 or later, the deployment target defaults
14807 # to the OS version, if on x86, and 10.4, the deployment
14808 # target defaults to 10.4. Don't you love it?
14809 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14810 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14811 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14812 10.[012]*)
14813 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14814 10.*)
14815 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14816 esac
14818 esac
14819 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14820 _lt_dar_single_mod='$single_module'
14822 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14823 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14824 else
14825 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14827 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14828 _lt_dsymutil='~$DSYMUTIL $lib || :'
14829 else
14830 _lt_dsymutil=
14833 esac
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14836 $as_echo_n "checking for ANSI C header files... " >&6; }
14837 if ${ac_cv_header_stdc+:} false; then :
14838 $as_echo_n "(cached) " >&6
14839 else
14840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14841 /* end confdefs.h. */
14842 #include <stdlib.h>
14843 #include <stdarg.h>
14844 #include <string.h>
14845 #include <float.h>
14848 main ()
14852 return 0;
14854 _ACEOF
14855 if ac_fn_c_try_compile "$LINENO"; then :
14856 ac_cv_header_stdc=yes
14857 else
14858 ac_cv_header_stdc=no
14860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14862 if test $ac_cv_header_stdc = yes; then
14863 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14865 /* end confdefs.h. */
14866 #include <string.h>
14868 _ACEOF
14869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14870 $EGREP "memchr" >/dev/null 2>&1; then :
14872 else
14873 ac_cv_header_stdc=no
14875 rm -f conftest*
14879 if test $ac_cv_header_stdc = yes; then
14880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14882 /* end confdefs.h. */
14883 #include <stdlib.h>
14885 _ACEOF
14886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14887 $EGREP "free" >/dev/null 2>&1; then :
14889 else
14890 ac_cv_header_stdc=no
14892 rm -f conftest*
14896 if test $ac_cv_header_stdc = yes; then
14897 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14898 if test "$cross_compiling" = yes; then :
14900 else
14901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902 /* end confdefs.h. */
14903 #include <ctype.h>
14904 #include <stdlib.h>
14905 #if ((' ' & 0x0FF) == 0x020)
14906 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14907 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14908 #else
14909 # define ISLOWER(c) \
14910 (('a' <= (c) && (c) <= 'i') \
14911 || ('j' <= (c) && (c) <= 'r') \
14912 || ('s' <= (c) && (c) <= 'z'))
14913 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14914 #endif
14916 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14918 main ()
14920 int i;
14921 for (i = 0; i < 256; i++)
14922 if (XOR (islower (i), ISLOWER (i))
14923 || toupper (i) != TOUPPER (i))
14924 return 2;
14925 return 0;
14927 _ACEOF
14928 if ac_fn_c_try_run "$LINENO"; then :
14930 else
14931 ac_cv_header_stdc=no
14933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14934 conftest.$ac_objext conftest.beam conftest.$ac_ext
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14940 $as_echo "$ac_cv_header_stdc" >&6; }
14941 if test $ac_cv_header_stdc = yes; then
14943 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14947 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
14948 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
14949 inttypes.h stdint.h unistd.h
14950 do :
14951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14952 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14954 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14955 cat >>confdefs.h <<_ACEOF
14956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14957 _ACEOF
14961 done
14964 for ac_header in dlfcn.h
14965 do :
14966 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14968 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14969 cat >>confdefs.h <<_ACEOF
14970 #define HAVE_DLFCN_H 1
14971 _ACEOF
14975 done
14980 func_stripname_cnf ()
14982 case ${2} in
14983 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14984 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14985 esac
14986 } # func_stripname_cnf
14992 # Set options
14996 enable_dlopen=no
15000 # Check whether --enable-shared was given.
15001 if test "${enable_shared+set}" = set; then :
15002 enableval=$enable_shared; p=${PACKAGE-default}
15003 case $enableval in
15004 yes) enable_shared=yes ;;
15005 no) enable_shared=no ;;
15007 enable_shared=no
15008 # Look at the argument we got. We use all the common list separators.
15009 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15010 for pkg in $enableval; do
15011 IFS="$lt_save_ifs"
15012 if test "X$pkg" = "X$p"; then
15013 enable_shared=yes
15015 done
15016 IFS="$lt_save_ifs"
15018 esac
15019 else
15020 enable_shared=yes
15031 # Check whether --enable-static was given.
15032 if test "${enable_static+set}" = set; then :
15033 enableval=$enable_static; p=${PACKAGE-default}
15034 case $enableval in
15035 yes) enable_static=yes ;;
15036 no) enable_static=no ;;
15038 enable_static=no
15039 # Look at the argument we got. We use all the common list separators.
15040 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15041 for pkg in $enableval; do
15042 IFS="$lt_save_ifs"
15043 if test "X$pkg" = "X$p"; then
15044 enable_static=yes
15046 done
15047 IFS="$lt_save_ifs"
15049 esac
15050 else
15051 enable_static=yes
15063 # Check whether --with-pic was given.
15064 if test "${with_pic+set}" = set; then :
15065 withval=$with_pic; lt_p=${PACKAGE-default}
15066 case $withval in
15067 yes|no) pic_mode=$withval ;;
15069 pic_mode=default
15070 # Look at the argument we got. We use all the common list separators.
15071 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15072 for lt_pkg in $withval; do
15073 IFS="$lt_save_ifs"
15074 if test "X$lt_pkg" = "X$lt_p"; then
15075 pic_mode=yes
15077 done
15078 IFS="$lt_save_ifs"
15080 esac
15081 else
15082 pic_mode=default
15086 test -z "$pic_mode" && pic_mode=default
15094 # Check whether --enable-fast-install was given.
15095 if test "${enable_fast_install+set}" = set; then :
15096 enableval=$enable_fast_install; p=${PACKAGE-default}
15097 case $enableval in
15098 yes) enable_fast_install=yes ;;
15099 no) enable_fast_install=no ;;
15101 enable_fast_install=no
15102 # Look at the argument we got. We use all the common list separators.
15103 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15104 for pkg in $enableval; do
15105 IFS="$lt_save_ifs"
15106 if test "X$pkg" = "X$p"; then
15107 enable_fast_install=yes
15109 done
15110 IFS="$lt_save_ifs"
15112 esac
15113 else
15114 enable_fast_install=yes
15127 # This can be used to rebuild libtool when needed
15128 LIBTOOL_DEPS="$ltmain"
15130 # Always use our own libtool.
15131 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15162 test -z "$LN_S" && LN_S="ln -s"
15177 if test -n "${ZSH_VERSION+set}" ; then
15178 setopt NO_GLOB_SUBST
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15182 $as_echo_n "checking for objdir... " >&6; }
15183 if ${lt_cv_objdir+:} false; then :
15184 $as_echo_n "(cached) " >&6
15185 else
15186 rm -f .libs 2>/dev/null
15187 mkdir .libs 2>/dev/null
15188 if test -d .libs; then
15189 lt_cv_objdir=.libs
15190 else
15191 # MS-DOS does not allow filenames that begin with a dot.
15192 lt_cv_objdir=_libs
15194 rmdir .libs 2>/dev/null
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15197 $as_echo "$lt_cv_objdir" >&6; }
15198 objdir=$lt_cv_objdir
15204 cat >>confdefs.h <<_ACEOF
15205 #define LT_OBJDIR "$lt_cv_objdir/"
15206 _ACEOF
15211 case $host_os in
15212 aix3*)
15213 # AIX sometimes has problems with the GCC collect2 program. For some
15214 # reason, if we set the COLLECT_NAMES environment variable, the problems
15215 # vanish in a puff of smoke.
15216 if test "X${COLLECT_NAMES+set}" != Xset; then
15217 COLLECT_NAMES=
15218 export COLLECT_NAMES
15221 esac
15223 # Global variables:
15224 ofile=libtool
15225 can_build_shared=yes
15227 # All known linkers require a `.a' archive for static linking (except MSVC,
15228 # which needs '.lib').
15229 libext=a
15231 with_gnu_ld="$lt_cv_prog_gnu_ld"
15233 old_CC="$CC"
15234 old_CFLAGS="$CFLAGS"
15236 # Set sane defaults for various variables
15237 test -z "$CC" && CC=cc
15238 test -z "$LTCC" && LTCC=$CC
15239 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15240 test -z "$LD" && LD=ld
15241 test -z "$ac_objext" && ac_objext=o
15243 for cc_temp in $compiler""; do
15244 case $cc_temp in
15245 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15246 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15247 \-*) ;;
15248 *) break;;
15249 esac
15250 done
15251 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15254 # Only perform the check for file, if the check method requires it
15255 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15256 case $deplibs_check_method in
15257 file_magic*)
15258 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15260 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15261 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15262 $as_echo_n "(cached) " >&6
15263 else
15264 case $MAGIC_CMD in
15265 [\\/*] | ?:[\\/]*)
15266 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15269 lt_save_MAGIC_CMD="$MAGIC_CMD"
15270 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15271 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15272 for ac_dir in $ac_dummy; do
15273 IFS="$lt_save_ifs"
15274 test -z "$ac_dir" && ac_dir=.
15275 if test -f $ac_dir/${ac_tool_prefix}file; then
15276 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15277 if test -n "$file_magic_test_file"; then
15278 case $deplibs_check_method in
15279 "file_magic "*)
15280 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15281 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15282 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15283 $EGREP "$file_magic_regex" > /dev/null; then
15285 else
15286 cat <<_LT_EOF 1>&2
15288 *** Warning: the command libtool uses to detect shared libraries,
15289 *** $file_magic_cmd, produces output that libtool cannot recognize.
15290 *** The result is that libtool may fail to recognize shared libraries
15291 *** as such. This will affect the creation of libtool libraries that
15292 *** depend on shared libraries, but programs linked with such libtool
15293 *** libraries will work regardless of this problem. Nevertheless, you
15294 *** may want to report the problem to your system manager and/or to
15295 *** bug-libtool@gnu.org
15297 _LT_EOF
15298 fi ;;
15299 esac
15301 break
15303 done
15304 IFS="$lt_save_ifs"
15305 MAGIC_CMD="$lt_save_MAGIC_CMD"
15307 esac
15310 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15311 if test -n "$MAGIC_CMD"; then
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15313 $as_echo "$MAGIC_CMD" >&6; }
15314 else
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15316 $as_echo "no" >&6; }
15323 if test -z "$lt_cv_path_MAGIC_CMD"; then
15324 if test -n "$ac_tool_prefix"; then
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15326 $as_echo_n "checking for file... " >&6; }
15327 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15328 $as_echo_n "(cached) " >&6
15329 else
15330 case $MAGIC_CMD in
15331 [\\/*] | ?:[\\/]*)
15332 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15335 lt_save_MAGIC_CMD="$MAGIC_CMD"
15336 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15337 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15338 for ac_dir in $ac_dummy; do
15339 IFS="$lt_save_ifs"
15340 test -z "$ac_dir" && ac_dir=.
15341 if test -f $ac_dir/file; then
15342 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15343 if test -n "$file_magic_test_file"; then
15344 case $deplibs_check_method in
15345 "file_magic "*)
15346 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15347 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15348 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15349 $EGREP "$file_magic_regex" > /dev/null; then
15351 else
15352 cat <<_LT_EOF 1>&2
15354 *** Warning: the command libtool uses to detect shared libraries,
15355 *** $file_magic_cmd, produces output that libtool cannot recognize.
15356 *** The result is that libtool may fail to recognize shared libraries
15357 *** as such. This will affect the creation of libtool libraries that
15358 *** depend on shared libraries, but programs linked with such libtool
15359 *** libraries will work regardless of this problem. Nevertheless, you
15360 *** may want to report the problem to your system manager and/or to
15361 *** bug-libtool@gnu.org
15363 _LT_EOF
15364 fi ;;
15365 esac
15367 break
15369 done
15370 IFS="$lt_save_ifs"
15371 MAGIC_CMD="$lt_save_MAGIC_CMD"
15373 esac
15376 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15377 if test -n "$MAGIC_CMD"; then
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15379 $as_echo "$MAGIC_CMD" >&6; }
15380 else
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15382 $as_echo "no" >&6; }
15386 else
15387 MAGIC_CMD=:
15393 esac
15395 # Use C for the default configuration in the libtool script
15397 lt_save_CC="$CC"
15398 ac_ext=c
15399 ac_cpp='$CPP $CPPFLAGS'
15400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15405 # Source file extension for C test sources.
15406 ac_ext=c
15408 # Object file extension for compiled C test sources.
15409 objext=o
15410 objext=$objext
15412 # Code to be used in simple compile tests
15413 lt_simple_compile_test_code="int some_variable = 0;"
15415 # Code to be used in simple link tests
15416 lt_simple_link_test_code='int main(){return(0);}'
15424 # If no C compiler was specified, use CC.
15425 LTCC=${LTCC-"$CC"}
15427 # If no C compiler flags were specified, use CFLAGS.
15428 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15430 # Allow CC to be a program name with arguments.
15431 compiler=$CC
15433 # Save the default compiler, since it gets overwritten when the other
15434 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15435 compiler_DEFAULT=$CC
15437 # save warnings/boilerplate of simple test code
15438 ac_outfile=conftest.$ac_objext
15439 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15440 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15441 _lt_compiler_boilerplate=`cat conftest.err`
15442 $RM conftest*
15444 ac_outfile=conftest.$ac_objext
15445 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15446 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15447 _lt_linker_boilerplate=`cat conftest.err`
15448 $RM -r conftest*
15451 if test -n "$compiler"; then
15453 lt_prog_compiler_no_builtin_flag=
15455 if test "$GCC" = yes; then
15456 case $cc_basename in
15457 nvcc*)
15458 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15460 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15461 esac
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15464 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15465 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15466 $as_echo_n "(cached) " >&6
15467 else
15468 lt_cv_prog_compiler_rtti_exceptions=no
15469 ac_outfile=conftest.$ac_objext
15470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15471 lt_compiler_flag="-fno-rtti -fno-exceptions"
15472 # Insert the option either (1) after the last *FLAGS variable, or
15473 # (2) before a word containing "conftest.", or (3) at the end.
15474 # Note that $ac_compile itself does not contain backslashes and begins
15475 # with a dollar sign (not a hyphen), so the echo should work correctly.
15476 # The option is referenced via a variable to avoid confusing sed.
15477 lt_compile=`echo "$ac_compile" | $SED \
15478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15480 -e 's:$: $lt_compiler_flag:'`
15481 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15482 (eval "$lt_compile" 2>conftest.err)
15483 ac_status=$?
15484 cat conftest.err >&5
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 if (exit $ac_status) && test -s "$ac_outfile"; then
15487 # The compiler can only warn and ignore the option if not recognized
15488 # So say no if there are warnings other than the usual output.
15489 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15490 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15491 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15492 lt_cv_prog_compiler_rtti_exceptions=yes
15495 $RM conftest*
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15499 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15501 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15502 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15503 else
15514 lt_prog_compiler_wl=
15515 lt_prog_compiler_pic=
15516 lt_prog_compiler_static=
15519 if test "$GCC" = yes; then
15520 lt_prog_compiler_wl='-Wl,'
15521 lt_prog_compiler_static='-static'
15523 case $host_os in
15524 aix*)
15525 # All AIX code is PIC.
15526 if test "$host_cpu" = ia64; then
15527 # AIX 5 now supports IA64 processor
15528 lt_prog_compiler_static='-Bstatic'
15532 amigaos*)
15533 case $host_cpu in
15534 powerpc)
15535 # see comment about AmigaOS4 .so support
15536 lt_prog_compiler_pic='-fPIC'
15538 m68k)
15539 # FIXME: we need at least 68020 code to build shared libraries, but
15540 # adding the `-m68020' flag to GCC prevents building anything better,
15541 # like `-m68040'.
15542 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15544 esac
15547 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15548 # PIC is the default for these OSes.
15551 mingw* | cygwin* | pw32* | os2* | cegcc*)
15552 # This hack is so that the source file can tell whether it is being
15553 # built for inclusion in a dll (and should export symbols for example).
15554 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15555 # (--disable-auto-import) libraries
15556 lt_prog_compiler_pic='-DDLL_EXPORT'
15559 darwin* | rhapsody*)
15560 # PIC is the default on this platform
15561 # Common symbols not allowed in MH_DYLIB files
15562 lt_prog_compiler_pic='-fno-common'
15565 haiku*)
15566 # PIC is the default for Haiku.
15567 # The "-static" flag exists, but is broken.
15568 lt_prog_compiler_static=
15571 hpux*)
15572 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15573 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15574 # sets the default TLS model and affects inlining.
15575 case $host_cpu in
15576 hppa*64*)
15577 # +Z the default
15580 lt_prog_compiler_pic='-fPIC'
15582 esac
15585 interix[3-9]*)
15586 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15587 # Instead, we relocate shared libraries at runtime.
15590 msdosdjgpp*)
15591 # Just because we use GCC doesn't mean we suddenly get shared libraries
15592 # on systems that don't support them.
15593 lt_prog_compiler_can_build_shared=no
15594 enable_shared=no
15597 *nto* | *qnx*)
15598 # QNX uses GNU C++, but need to define -shared option too, otherwise
15599 # it will coredump.
15600 lt_prog_compiler_pic='-fPIC -shared'
15603 sysv4*MP*)
15604 if test -d /usr/nec; then
15605 lt_prog_compiler_pic=-Kconform_pic
15610 lt_prog_compiler_pic='-fPIC'
15612 esac
15614 case $cc_basename in
15615 nvcc*) # Cuda Compiler Driver 2.2
15616 lt_prog_compiler_wl='-Xlinker '
15617 if test -n "$lt_prog_compiler_pic"; then
15618 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15621 esac
15622 else
15623 # PORTME Check for flag to pass linker flags through the system compiler.
15624 case $host_os in
15625 aix*)
15626 lt_prog_compiler_wl='-Wl,'
15627 if test "$host_cpu" = ia64; then
15628 # AIX 5 now supports IA64 processor
15629 lt_prog_compiler_static='-Bstatic'
15630 else
15631 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15635 mingw* | cygwin* | pw32* | os2* | cegcc*)
15636 # This hack is so that the source file can tell whether it is being
15637 # built for inclusion in a dll (and should export symbols for example).
15638 lt_prog_compiler_pic='-DDLL_EXPORT'
15641 hpux9* | hpux10* | hpux11*)
15642 lt_prog_compiler_wl='-Wl,'
15643 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15644 # not for PA HP-UX.
15645 case $host_cpu in
15646 hppa*64*|ia64*)
15647 # +Z the default
15650 lt_prog_compiler_pic='+Z'
15652 esac
15653 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15654 lt_prog_compiler_static='${wl}-a ${wl}archive'
15657 irix5* | irix6* | nonstopux*)
15658 lt_prog_compiler_wl='-Wl,'
15659 # PIC (with -KPIC) is the default.
15660 lt_prog_compiler_static='-non_shared'
15663 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15664 case $cc_basename in
15665 # old Intel for x86_64 which still supported -KPIC.
15666 ecc*)
15667 lt_prog_compiler_wl='-Wl,'
15668 lt_prog_compiler_pic='-KPIC'
15669 lt_prog_compiler_static='-static'
15671 # icc used to be incompatible with GCC.
15672 # ICC 10 doesn't accept -KPIC any more.
15673 icc* | ifort*)
15674 lt_prog_compiler_wl='-Wl,'
15675 lt_prog_compiler_pic='-fPIC'
15676 lt_prog_compiler_static='-static'
15678 # Lahey Fortran 8.1.
15679 lf95*)
15680 lt_prog_compiler_wl='-Wl,'
15681 lt_prog_compiler_pic='--shared'
15682 lt_prog_compiler_static='--static'
15684 nagfor*)
15685 # NAG Fortran compiler
15686 lt_prog_compiler_wl='-Wl,-Wl,,'
15687 lt_prog_compiler_pic='-PIC'
15688 lt_prog_compiler_static='-Bstatic'
15690 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15691 # Portland Group compilers (*not* the Pentium gcc compiler,
15692 # which looks to be a dead project)
15693 lt_prog_compiler_wl='-Wl,'
15694 lt_prog_compiler_pic='-fpic'
15695 lt_prog_compiler_static='-Bstatic'
15697 ccc*)
15698 lt_prog_compiler_wl='-Wl,'
15699 # All Alpha code is PIC.
15700 lt_prog_compiler_static='-non_shared'
15702 xl* | bgxl* | bgf* | mpixl*)
15703 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15704 lt_prog_compiler_wl='-Wl,'
15705 lt_prog_compiler_pic='-qpic'
15706 lt_prog_compiler_static='-qstaticlink'
15709 case `$CC -V 2>&1 | sed 5q` in
15710 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15711 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15712 lt_prog_compiler_pic='-KPIC'
15713 lt_prog_compiler_static='-Bstatic'
15714 lt_prog_compiler_wl=''
15716 *Sun\ F* | *Sun*Fortran*)
15717 lt_prog_compiler_pic='-KPIC'
15718 lt_prog_compiler_static='-Bstatic'
15719 lt_prog_compiler_wl='-Qoption ld '
15721 *Sun\ C*)
15722 # Sun C 5.9
15723 lt_prog_compiler_pic='-KPIC'
15724 lt_prog_compiler_static='-Bstatic'
15725 lt_prog_compiler_wl='-Wl,'
15727 *Intel*\ [CF]*Compiler*)
15728 lt_prog_compiler_wl='-Wl,'
15729 lt_prog_compiler_pic='-fPIC'
15730 lt_prog_compiler_static='-static'
15732 *Portland\ Group*)
15733 lt_prog_compiler_wl='-Wl,'
15734 lt_prog_compiler_pic='-fpic'
15735 lt_prog_compiler_static='-Bstatic'
15737 esac
15739 esac
15742 newsos6)
15743 lt_prog_compiler_pic='-KPIC'
15744 lt_prog_compiler_static='-Bstatic'
15747 *nto* | *qnx*)
15748 # QNX uses GNU C++, but need to define -shared option too, otherwise
15749 # it will coredump.
15750 lt_prog_compiler_pic='-fPIC -shared'
15753 osf3* | osf4* | osf5*)
15754 lt_prog_compiler_wl='-Wl,'
15755 # All OSF/1 code is PIC.
15756 lt_prog_compiler_static='-non_shared'
15759 rdos*)
15760 lt_prog_compiler_static='-non_shared'
15763 solaris*)
15764 lt_prog_compiler_pic='-KPIC'
15765 lt_prog_compiler_static='-Bstatic'
15766 case $cc_basename in
15767 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15768 lt_prog_compiler_wl='-Qoption ld ';;
15770 lt_prog_compiler_wl='-Wl,';;
15771 esac
15774 sunos4*)
15775 lt_prog_compiler_wl='-Qoption ld '
15776 lt_prog_compiler_pic='-PIC'
15777 lt_prog_compiler_static='-Bstatic'
15780 sysv4 | sysv4.2uw2* | sysv4.3*)
15781 lt_prog_compiler_wl='-Wl,'
15782 lt_prog_compiler_pic='-KPIC'
15783 lt_prog_compiler_static='-Bstatic'
15786 sysv4*MP*)
15787 if test -d /usr/nec ;then
15788 lt_prog_compiler_pic='-Kconform_pic'
15789 lt_prog_compiler_static='-Bstatic'
15793 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15794 lt_prog_compiler_wl='-Wl,'
15795 lt_prog_compiler_pic='-KPIC'
15796 lt_prog_compiler_static='-Bstatic'
15799 unicos*)
15800 lt_prog_compiler_wl='-Wl,'
15801 lt_prog_compiler_can_build_shared=no
15804 uts4*)
15805 lt_prog_compiler_pic='-pic'
15806 lt_prog_compiler_static='-Bstatic'
15810 lt_prog_compiler_can_build_shared=no
15812 esac
15815 case $host_os in
15816 # For platforms which do not support PIC, -DPIC is meaningless:
15817 *djgpp*)
15818 lt_prog_compiler_pic=
15821 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15823 esac
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15826 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15827 if ${lt_cv_prog_compiler_pic+:} false; then :
15828 $as_echo_n "(cached) " >&6
15829 else
15830 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15833 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
15834 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15837 # Check to make sure the PIC flag actually works.
15839 if test -n "$lt_prog_compiler_pic"; then
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15841 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15842 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15843 $as_echo_n "(cached) " >&6
15844 else
15845 lt_cv_prog_compiler_pic_works=no
15846 ac_outfile=conftest.$ac_objext
15847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15848 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15849 # Insert the option either (1) after the last *FLAGS variable, or
15850 # (2) before a word containing "conftest.", or (3) at the end.
15851 # Note that $ac_compile itself does not contain backslashes and begins
15852 # with a dollar sign (not a hyphen), so the echo should work correctly.
15853 # The option is referenced via a variable to avoid confusing sed.
15854 lt_compile=`echo "$ac_compile" | $SED \
15855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15857 -e 's:$: $lt_compiler_flag:'`
15858 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15859 (eval "$lt_compile" 2>conftest.err)
15860 ac_status=$?
15861 cat conftest.err >&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 if (exit $ac_status) && test -s "$ac_outfile"; then
15864 # The compiler can only warn and ignore the option if not recognized
15865 # So say no if there are warnings other than the usual output.
15866 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15867 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15868 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15869 lt_cv_prog_compiler_pic_works=yes
15872 $RM conftest*
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15876 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15878 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15879 case $lt_prog_compiler_pic in
15880 "" | " "*) ;;
15881 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15882 esac
15883 else
15884 lt_prog_compiler_pic=
15885 lt_prog_compiler_can_build_shared=no
15901 # Check to make sure the static flag actually works.
15903 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15905 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15906 if ${lt_cv_prog_compiler_static_works+:} false; then :
15907 $as_echo_n "(cached) " >&6
15908 else
15909 lt_cv_prog_compiler_static_works=no
15910 save_LDFLAGS="$LDFLAGS"
15911 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15912 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15913 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15914 # The linker can only warn and ignore the option if not recognized
15915 # So say no if there are warnings
15916 if test -s conftest.err; then
15917 # Append any errors to the config.log.
15918 cat conftest.err 1>&5
15919 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15920 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15921 if diff conftest.exp conftest.er2 >/dev/null; then
15922 lt_cv_prog_compiler_static_works=yes
15924 else
15925 lt_cv_prog_compiler_static_works=yes
15928 $RM -r conftest*
15929 LDFLAGS="$save_LDFLAGS"
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15933 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15935 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15937 else
15938 lt_prog_compiler_static=
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15948 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15949 if ${lt_cv_prog_compiler_c_o+:} false; then :
15950 $as_echo_n "(cached) " >&6
15951 else
15952 lt_cv_prog_compiler_c_o=no
15953 $RM -r conftest 2>/dev/null
15954 mkdir conftest
15955 cd conftest
15956 mkdir out
15957 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15959 lt_compiler_flag="-o out/conftest2.$ac_objext"
15960 # Insert the option either (1) after the last *FLAGS variable, or
15961 # (2) before a word containing "conftest.", or (3) at the end.
15962 # Note that $ac_compile itself does not contain backslashes and begins
15963 # with a dollar sign (not a hyphen), so the echo should work correctly.
15964 lt_compile=`echo "$ac_compile" | $SED \
15965 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15967 -e 's:$: $lt_compiler_flag:'`
15968 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15969 (eval "$lt_compile" 2>out/conftest.err)
15970 ac_status=$?
15971 cat out/conftest.err >&5
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15974 then
15975 # The compiler can only warn and ignore the option if not recognized
15976 # So say no if there are warnings
15977 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15978 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15979 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15980 lt_cv_prog_compiler_c_o=yes
15983 chmod u+w . 2>&5
15984 $RM conftest*
15985 # SGI C++ compiler will create directory out/ii_files/ for
15986 # template instantiation
15987 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15988 $RM out/* && rmdir out
15989 cd ..
15990 $RM -r conftest
15991 $RM conftest*
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15995 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16003 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16004 if ${lt_cv_prog_compiler_c_o+:} false; then :
16005 $as_echo_n "(cached) " >&6
16006 else
16007 lt_cv_prog_compiler_c_o=no
16008 $RM -r conftest 2>/dev/null
16009 mkdir conftest
16010 cd conftest
16011 mkdir out
16012 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16014 lt_compiler_flag="-o out/conftest2.$ac_objext"
16015 # Insert the option either (1) after the last *FLAGS variable, or
16016 # (2) before a word containing "conftest.", or (3) at the end.
16017 # Note that $ac_compile itself does not contain backslashes and begins
16018 # with a dollar sign (not a hyphen), so the echo should work correctly.
16019 lt_compile=`echo "$ac_compile" | $SED \
16020 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16021 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16022 -e 's:$: $lt_compiler_flag:'`
16023 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16024 (eval "$lt_compile" 2>out/conftest.err)
16025 ac_status=$?
16026 cat out/conftest.err >&5
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16029 then
16030 # The compiler can only warn and ignore the option if not recognized
16031 # So say no if there are warnings
16032 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16033 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16034 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16035 lt_cv_prog_compiler_c_o=yes
16038 chmod u+w . 2>&5
16039 $RM conftest*
16040 # SGI C++ compiler will create directory out/ii_files/ for
16041 # template instantiation
16042 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16043 $RM out/* && rmdir out
16044 cd ..
16045 $RM -r conftest
16046 $RM conftest*
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16050 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16055 hard_links="nottested"
16056 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16057 # do not overwrite the value of need_locks provided by the user
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16059 $as_echo_n "checking if we can lock with hard links... " >&6; }
16060 hard_links=yes
16061 $RM conftest*
16062 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16063 touch conftest.a
16064 ln conftest.a conftest.b 2>&5 || hard_links=no
16065 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16067 $as_echo "$hard_links" >&6; }
16068 if test "$hard_links" = no; then
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16070 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16071 need_locks=warn
16073 else
16074 need_locks=no
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16083 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16085 runpath_var=
16086 allow_undefined_flag=
16087 always_export_symbols=no
16088 archive_cmds=
16089 archive_expsym_cmds=
16090 compiler_needs_object=no
16091 enable_shared_with_static_runtimes=no
16092 export_dynamic_flag_spec=
16093 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16094 hardcode_automatic=no
16095 hardcode_direct=no
16096 hardcode_direct_absolute=no
16097 hardcode_libdir_flag_spec=
16098 hardcode_libdir_separator=
16099 hardcode_minus_L=no
16100 hardcode_shlibpath_var=unsupported
16101 inherit_rpath=no
16102 link_all_deplibs=unknown
16103 module_cmds=
16104 module_expsym_cmds=
16105 old_archive_from_new_cmds=
16106 old_archive_from_expsyms_cmds=
16107 thread_safe_flag_spec=
16108 whole_archive_flag_spec=
16109 # include_expsyms should be a list of space-separated symbols to be *always*
16110 # included in the symbol list
16111 include_expsyms=
16112 # exclude_expsyms can be an extended regexp of symbols to exclude
16113 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16114 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16115 # as well as any symbol that contains `d'.
16116 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16117 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16118 # platforms (ab)use it in PIC code, but their linkers get confused if
16119 # the symbol is explicitly referenced. Since portable code cannot
16120 # rely on this symbol name, it's probably fine to never include it in
16121 # preloaded symbol tables.
16122 # Exclude shared library initialization/finalization symbols.
16123 extract_expsyms_cmds=
16125 case $host_os in
16126 cygwin* | mingw* | pw32* | cegcc*)
16127 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16128 # When not using gcc, we currently assume that we are using
16129 # Microsoft Visual C++.
16130 if test "$GCC" != yes; then
16131 with_gnu_ld=no
16134 interix*)
16135 # we just hope/assume this is gcc and not c89 (= MSVC++)
16136 with_gnu_ld=yes
16138 openbsd*)
16139 with_gnu_ld=no
16141 esac
16143 ld_shlibs=yes
16145 # On some targets, GNU ld is compatible enough with the native linker
16146 # that we're better off using the native interface for both.
16147 lt_use_gnu_ld_interface=no
16148 if test "$with_gnu_ld" = yes; then
16149 case $host_os in
16150 aix*)
16151 # The AIX port of GNU ld has always aspired to compatibility
16152 # with the native linker. However, as the warning in the GNU ld
16153 # block says, versions before 2.19.5* couldn't really create working
16154 # shared libraries, regardless of the interface used.
16155 case `$LD -v 2>&1` in
16156 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16157 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16158 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16160 lt_use_gnu_ld_interface=yes
16162 esac
16165 lt_use_gnu_ld_interface=yes
16167 esac
16170 if test "$lt_use_gnu_ld_interface" = yes; then
16171 # If archive_cmds runs LD, not CC, wlarc should be empty
16172 wlarc='${wl}'
16174 # Set some defaults for GNU ld with shared library support. These
16175 # are reset later if shared libraries are not supported. Putting them
16176 # here allows them to be overridden if necessary.
16177 runpath_var=LD_RUN_PATH
16178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16179 export_dynamic_flag_spec='${wl}--export-dynamic'
16180 # ancient GNU ld didn't support --whole-archive et. al.
16181 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16182 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16183 else
16184 whole_archive_flag_spec=
16186 supports_anon_versioning=no
16187 case `$LD -v 2>&1` in
16188 *GNU\ gold*) supports_anon_versioning=yes ;;
16189 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16190 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16191 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16192 *\ 2.11.*) ;; # other 2.11 versions
16193 *) supports_anon_versioning=yes ;;
16194 esac
16196 # See if GNU ld supports shared libraries.
16197 case $host_os in
16198 aix[3-9]*)
16199 # On AIX/PPC, the GNU linker is very broken
16200 if test "$host_cpu" != ia64; then
16201 ld_shlibs=no
16202 cat <<_LT_EOF 1>&2
16204 *** Warning: the GNU linker, at least up to release 2.19, is reported
16205 *** to be unable to reliably create shared libraries on AIX.
16206 *** Therefore, libtool is disabling shared libraries support. If you
16207 *** really care for shared libraries, you may want to install binutils
16208 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16209 *** You will then need to restart the configuration process.
16211 _LT_EOF
16215 amigaos*)
16216 case $host_cpu in
16217 powerpc)
16218 # see comment about AmigaOS4 .so support
16219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16220 archive_expsym_cmds=''
16222 m68k)
16223 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)'
16224 hardcode_libdir_flag_spec='-L$libdir'
16225 hardcode_minus_L=yes
16227 esac
16230 beos*)
16231 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16232 allow_undefined_flag=unsupported
16233 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16234 # support --undefined. This deserves some investigation. FIXME
16235 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16236 else
16237 ld_shlibs=no
16241 cygwin* | mingw* | pw32* | cegcc*)
16242 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16243 # as there is no search path for DLLs.
16244 hardcode_libdir_flag_spec='-L$libdir'
16245 export_dynamic_flag_spec='${wl}--export-all-symbols'
16246 allow_undefined_flag=unsupported
16247 always_export_symbols=no
16248 enable_shared_with_static_runtimes=yes
16249 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'
16250 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16252 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16254 # If the export-symbols file already is a .def file (1st line
16255 # is EXPORTS), use it as is; otherwise, prepend...
16256 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16257 cp $export_symbols $output_objdir/$soname.def;
16258 else
16259 echo EXPORTS > $output_objdir/$soname.def;
16260 cat $export_symbols >> $output_objdir/$soname.def;
16262 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16263 else
16264 ld_shlibs=no
16268 haiku*)
16269 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16270 link_all_deplibs=yes
16273 interix[3-9]*)
16274 hardcode_direct=no
16275 hardcode_shlibpath_var=no
16276 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16277 export_dynamic_flag_spec='${wl}-E'
16278 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16279 # Instead, shared libraries are loaded at an image base (0x10000000 by
16280 # default) and relocated if they conflict, which is a slow very memory
16281 # consuming and fragmenting process. To avoid this, we pick a random,
16282 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16283 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16284 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16285 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'
16288 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16289 tmp_diet=no
16290 if test "$host_os" = linux-dietlibc; then
16291 case $cc_basename in
16292 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16293 esac
16295 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16296 && test "$tmp_diet" = no
16297 then
16298 tmp_addflag=' $pic_flag'
16299 tmp_sharedflag='-shared'
16300 case $cc_basename,$host_cpu in
16301 pgcc*) # Portland Group C compiler
16302 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'
16303 tmp_addflag=' $pic_flag'
16305 pgf77* | pgf90* | pgf95* | pgfortran*)
16306 # Portland Group f77 and f90 compilers
16307 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'
16308 tmp_addflag=' $pic_flag -Mnomain' ;;
16309 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16310 tmp_addflag=' -i_dynamic' ;;
16311 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16312 tmp_addflag=' -i_dynamic -nofor_main' ;;
16313 ifc* | ifort*) # Intel Fortran compiler
16314 tmp_addflag=' -nofor_main' ;;
16315 lf95*) # Lahey Fortran 8.1
16316 whole_archive_flag_spec=
16317 tmp_sharedflag='--shared' ;;
16318 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16319 tmp_sharedflag='-qmkshrobj'
16320 tmp_addflag= ;;
16321 nvcc*) # Cuda Compiler Driver 2.2
16322 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'
16323 compiler_needs_object=yes
16325 esac
16326 case `$CC -V 2>&1 | sed 5q` in
16327 *Sun\ C*) # Sun C 5.9
16328 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'
16329 compiler_needs_object=yes
16330 tmp_sharedflag='-G' ;;
16331 *Sun\ F*) # Sun Fortran 8.3
16332 tmp_sharedflag='-G' ;;
16333 esac
16334 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16336 if test "x$supports_anon_versioning" = xyes; then
16337 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16338 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16339 echo "local: *; };" >> $output_objdir/$libname.ver~
16340 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16343 case $cc_basename in
16344 xlf* | bgf* | bgxlf* | mpixlf*)
16345 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16346 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16347 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16348 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16349 if test "x$supports_anon_versioning" = xyes; then
16350 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16351 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16352 echo "local: *; };" >> $output_objdir/$libname.ver~
16353 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16356 esac
16357 else
16358 ld_shlibs=no
16362 netbsd*)
16363 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16364 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16365 wlarc=
16366 else
16367 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16368 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16372 solaris*)
16373 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16374 ld_shlibs=no
16375 cat <<_LT_EOF 1>&2
16377 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16378 *** create shared libraries on Solaris systems. Therefore, libtool
16379 *** is disabling shared libraries support. We urge you to upgrade GNU
16380 *** binutils to release 2.9.1 or newer. Another option is to modify
16381 *** your PATH or compiler configuration so that the native linker is
16382 *** used, and then restart.
16384 _LT_EOF
16385 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16386 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16387 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16388 else
16389 ld_shlibs=no
16393 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16394 case `$LD -v 2>&1` in
16395 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16396 ld_shlibs=no
16397 cat <<_LT_EOF 1>&2
16399 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16400 *** reliably create shared libraries on SCO systems. Therefore, libtool
16401 *** is disabling shared libraries support. We urge you to upgrade GNU
16402 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16403 *** your PATH or compiler configuration so that the native linker is
16404 *** used, and then restart.
16406 _LT_EOF
16409 # For security reasons, it is highly recommended that you always
16410 # use absolute paths for naming shared libraries, and exclude the
16411 # DT_RUNPATH tag from executables and libraries. But doing so
16412 # requires that you compile everything twice, which is a pain.
16413 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16414 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16416 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16417 else
16418 ld_shlibs=no
16421 esac
16424 sunos4*)
16425 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16426 wlarc=
16427 hardcode_direct=yes
16428 hardcode_shlibpath_var=no
16432 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16433 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16434 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16435 else
16436 ld_shlibs=no
16439 esac
16441 if test "$ld_shlibs" = no; then
16442 runpath_var=
16443 hardcode_libdir_flag_spec=
16444 export_dynamic_flag_spec=
16445 whole_archive_flag_spec=
16447 else
16448 # PORTME fill in a description of your system's linker (not GNU ld)
16449 case $host_os in
16450 aix3*)
16451 allow_undefined_flag=unsupported
16452 always_export_symbols=yes
16453 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'
16454 # Note: this linker hardcodes the directories in LIBPATH if there
16455 # are no directories specified by -L.
16456 hardcode_minus_L=yes
16457 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16458 # Neither direct hardcoding nor static linking is supported with a
16459 # broken collect2.
16460 hardcode_direct=unsupported
16464 aix[4-9]*)
16465 if test "$host_cpu" = ia64; then
16466 # On IA64, the linker does run time linking by default, so we don't
16467 # have to do anything special.
16468 aix_use_runtimelinking=no
16469 exp_sym_flag='-Bexport'
16470 no_entry_flag=""
16471 else
16472 # If we're using GNU nm, then we don't want the "-C" option.
16473 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16474 # Also, AIX nm treats weak defined symbols like other global
16475 # defined symbols, whereas GNU nm marks them as "W".
16476 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16477 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16478 else
16479 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16481 aix_use_runtimelinking=no
16483 # Test if we are trying to use run time linking or normal
16484 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16485 # need to do runtime linking.
16486 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16487 for ld_flag in $LDFLAGS; do
16488 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16489 aix_use_runtimelinking=yes
16490 break
16492 done
16494 esac
16496 exp_sym_flag='-bexport'
16497 no_entry_flag='-bnoentry'
16500 # When large executables or shared objects are built, AIX ld can
16501 # have problems creating the table of contents. If linking a library
16502 # or program results in "error TOC overflow" add -mminimal-toc to
16503 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16504 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16506 archive_cmds=''
16507 hardcode_direct=yes
16508 hardcode_direct_absolute=yes
16509 hardcode_libdir_separator=':'
16510 link_all_deplibs=yes
16511 file_list_spec='${wl}-f,'
16513 if test "$GCC" = yes; then
16514 case $host_os in aix4.[012]|aix4.[012].*)
16515 # We only want to do this on AIX 4.2 and lower, the check
16516 # below for broken collect2 doesn't work under 4.3+
16517 collect2name=`${CC} -print-prog-name=collect2`
16518 if test -f "$collect2name" &&
16519 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16520 then
16521 # We have reworked collect2
16523 else
16524 # We have old collect2
16525 hardcode_direct=unsupported
16526 # It fails to find uninstalled libraries when the uninstalled
16527 # path is not listed in the libpath. Setting hardcode_minus_L
16528 # to unsupported forces relinking
16529 hardcode_minus_L=yes
16530 hardcode_libdir_flag_spec='-L$libdir'
16531 hardcode_libdir_separator=
16534 esac
16535 shared_flag='-shared'
16536 if test "$aix_use_runtimelinking" = yes; then
16537 shared_flag="$shared_flag "'${wl}-G'
16539 else
16540 # not using gcc
16541 if test "$host_cpu" = ia64; then
16542 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16543 # chokes on -Wl,-G. The following line is correct:
16544 shared_flag='-G'
16545 else
16546 if test "$aix_use_runtimelinking" = yes; then
16547 shared_flag='${wl}-G'
16548 else
16549 shared_flag='${wl}-bM:SRE'
16554 export_dynamic_flag_spec='${wl}-bexpall'
16555 # It seems that -bexpall does not export symbols beginning with
16556 # underscore (_), so it is better to generate a list of symbols to export.
16557 always_export_symbols=yes
16558 if test "$aix_use_runtimelinking" = yes; then
16559 # Warning - without using the other runtime loading flags (-brtl),
16560 # -berok will link without error, but may produce a broken library.
16561 allow_undefined_flag='-berok'
16562 # Determine the default libpath from the value encoded in an
16563 # empty executable.
16564 if test "${lt_cv_aix_libpath+set}" = set; then
16565 aix_libpath=$lt_cv_aix_libpath
16566 else
16567 if ${lt_cv_aix_libpath_+:} false; then :
16568 $as_echo_n "(cached) " >&6
16569 else
16570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16571 /* end confdefs.h. */
16574 main ()
16578 return 0;
16580 _ACEOF
16581 if ac_fn_c_try_link "$LINENO"; then :
16583 lt_aix_libpath_sed='
16584 /Import File Strings/,/^$/ {
16585 /^0/ {
16586 s/^0 *\([^ ]*\) *$/\1/
16590 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16591 # Check for a 64-bit object if we didn't find anything.
16592 if test -z "$lt_cv_aix_libpath_"; then
16593 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16596 rm -f core conftest.err conftest.$ac_objext \
16597 conftest$ac_exeext conftest.$ac_ext
16598 if test -z "$lt_cv_aix_libpath_"; then
16599 lt_cv_aix_libpath_="/usr/lib:/lib"
16604 aix_libpath=$lt_cv_aix_libpath_
16607 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16608 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16609 else
16610 if test "$host_cpu" = ia64; then
16611 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16612 allow_undefined_flag="-z nodefs"
16613 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"
16614 else
16615 # Determine the default libpath from the value encoded in an
16616 # empty executable.
16617 if test "${lt_cv_aix_libpath+set}" = set; then
16618 aix_libpath=$lt_cv_aix_libpath
16619 else
16620 if ${lt_cv_aix_libpath_+:} false; then :
16621 $as_echo_n "(cached) " >&6
16622 else
16623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16624 /* end confdefs.h. */
16627 main ()
16631 return 0;
16633 _ACEOF
16634 if ac_fn_c_try_link "$LINENO"; then :
16636 lt_aix_libpath_sed='
16637 /Import File Strings/,/^$/ {
16638 /^0/ {
16639 s/^0 *\([^ ]*\) *$/\1/
16643 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16644 # Check for a 64-bit object if we didn't find anything.
16645 if test -z "$lt_cv_aix_libpath_"; then
16646 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16649 rm -f core conftest.err conftest.$ac_objext \
16650 conftest$ac_exeext conftest.$ac_ext
16651 if test -z "$lt_cv_aix_libpath_"; then
16652 lt_cv_aix_libpath_="/usr/lib:/lib"
16657 aix_libpath=$lt_cv_aix_libpath_
16660 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16661 # Warning - without using the other run time loading flags,
16662 # -berok will link without error, but may produce a broken library.
16663 no_undefined_flag=' ${wl}-bernotok'
16664 allow_undefined_flag=' ${wl}-berok'
16665 if test "$with_gnu_ld" = yes; then
16666 # We only use this code for GNU lds that support --whole-archive.
16667 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16668 else
16669 # Exported symbols can be pulled into shared objects from archives
16670 whole_archive_flag_spec='$convenience'
16672 archive_cmds_need_lc=yes
16673 # This is similar to how AIX traditionally builds its shared libraries.
16674 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16679 amigaos*)
16680 case $host_cpu in
16681 powerpc)
16682 # see comment about AmigaOS4 .so support
16683 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16684 archive_expsym_cmds=''
16686 m68k)
16687 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)'
16688 hardcode_libdir_flag_spec='-L$libdir'
16689 hardcode_minus_L=yes
16691 esac
16694 bsdi[45]*)
16695 export_dynamic_flag_spec=-rdynamic
16698 cygwin* | mingw* | pw32* | cegcc*)
16699 # When not using gcc, we currently assume that we are using
16700 # Microsoft Visual C++.
16701 # hardcode_libdir_flag_spec is actually meaningless, as there is
16702 # no search path for DLLs.
16703 case $cc_basename in
16704 cl*)
16705 # Native MSVC
16706 hardcode_libdir_flag_spec=' '
16707 allow_undefined_flag=unsupported
16708 always_export_symbols=yes
16709 file_list_spec='@'
16710 # Tell ltmain to make .lib files, not .a files.
16711 libext=lib
16712 # Tell ltmain to make .dll files, not .so files.
16713 shrext_cmds=".dll"
16714 # FIXME: Setting linknames here is a bad hack.
16715 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16716 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16717 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16718 else
16719 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16721 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16722 linknames='
16723 # The linker will not automatically build a static lib if we build a DLL.
16724 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16725 enable_shared_with_static_runtimes=yes
16726 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16727 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16728 # Don't use ranlib
16729 old_postinstall_cmds='chmod 644 $oldlib'
16730 postlink_cmds='lt_outputfile="@OUTPUT@"~
16731 lt_tool_outputfile="@TOOL_OUTPUT@"~
16732 case $lt_outputfile in
16733 *.exe|*.EXE) ;;
16735 lt_outputfile="$lt_outputfile.exe"
16736 lt_tool_outputfile="$lt_tool_outputfile.exe"
16738 esac~
16739 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16740 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16741 $RM "$lt_outputfile.manifest";
16745 # Assume MSVC wrapper
16746 hardcode_libdir_flag_spec=' '
16747 allow_undefined_flag=unsupported
16748 # Tell ltmain to make .lib files, not .a files.
16749 libext=lib
16750 # Tell ltmain to make .dll files, not .so files.
16751 shrext_cmds=".dll"
16752 # FIXME: Setting linknames here is a bad hack.
16753 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16754 # The linker will automatically build a .lib file if we build a DLL.
16755 old_archive_from_new_cmds='true'
16756 # FIXME: Should let the user specify the lib program.
16757 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16758 enable_shared_with_static_runtimes=yes
16760 esac
16763 darwin* | rhapsody*)
16766 archive_cmds_need_lc=no
16767 hardcode_direct=no
16768 hardcode_automatic=yes
16769 hardcode_shlibpath_var=unsupported
16770 if test "$lt_cv_ld_force_load" = "yes"; then
16771 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\"`'
16773 else
16774 whole_archive_flag_spec=''
16776 link_all_deplibs=yes
16777 allow_undefined_flag="$_lt_dar_allow_undefined"
16778 case $cc_basename in
16779 ifort*) _lt_dar_can_shared=yes ;;
16780 *) _lt_dar_can_shared=$GCC ;;
16781 esac
16782 if test "$_lt_dar_can_shared" = "yes"; then
16783 output_verbose_link_cmd=func_echo_all
16784 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16785 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16786 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}"
16787 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}"
16789 else
16790 ld_shlibs=no
16795 dgux*)
16796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16797 hardcode_libdir_flag_spec='-L$libdir'
16798 hardcode_shlibpath_var=no
16801 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16802 # support. Future versions do this automatically, but an explicit c++rt0.o
16803 # does not break anything, and helps significantly (at the cost of a little
16804 # extra space).
16805 freebsd2.2*)
16806 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16807 hardcode_libdir_flag_spec='-R$libdir'
16808 hardcode_direct=yes
16809 hardcode_shlibpath_var=no
16812 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16813 freebsd2.*)
16814 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16815 hardcode_direct=yes
16816 hardcode_minus_L=yes
16817 hardcode_shlibpath_var=no
16820 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16821 freebsd* | dragonfly*)
16822 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16823 hardcode_libdir_flag_spec='-R$libdir'
16824 hardcode_direct=yes
16825 hardcode_shlibpath_var=no
16828 hpux9*)
16829 if test "$GCC" = yes; then
16830 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16831 else
16832 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16834 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16835 hardcode_libdir_separator=:
16836 hardcode_direct=yes
16838 # hardcode_minus_L: Not really in the search PATH,
16839 # but as the default location of the library.
16840 hardcode_minus_L=yes
16841 export_dynamic_flag_spec='${wl}-E'
16844 hpux10*)
16845 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16846 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16847 else
16848 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16850 if test "$with_gnu_ld" = no; then
16851 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16852 hardcode_libdir_separator=:
16853 hardcode_direct=yes
16854 hardcode_direct_absolute=yes
16855 export_dynamic_flag_spec='${wl}-E'
16856 # hardcode_minus_L: Not really in the search PATH,
16857 # but as the default location of the library.
16858 hardcode_minus_L=yes
16862 hpux11*)
16863 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16864 case $host_cpu in
16865 hppa*64*)
16866 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16868 ia64*)
16869 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16872 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16874 esac
16875 else
16876 case $host_cpu in
16877 hppa*64*)
16878 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16880 ia64*)
16881 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16885 # Older versions of the 11.00 compiler do not understand -b yet
16886 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16888 $as_echo_n "checking if $CC understands -b... " >&6; }
16889 if ${lt_cv_prog_compiler__b+:} false; then :
16890 $as_echo_n "(cached) " >&6
16891 else
16892 lt_cv_prog_compiler__b=no
16893 save_LDFLAGS="$LDFLAGS"
16894 LDFLAGS="$LDFLAGS -b"
16895 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16896 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16897 # The linker can only warn and ignore the option if not recognized
16898 # So say no if there are warnings
16899 if test -s conftest.err; then
16900 # Append any errors to the config.log.
16901 cat conftest.err 1>&5
16902 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16903 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16904 if diff conftest.exp conftest.er2 >/dev/null; then
16905 lt_cv_prog_compiler__b=yes
16907 else
16908 lt_cv_prog_compiler__b=yes
16911 $RM -r conftest*
16912 LDFLAGS="$save_LDFLAGS"
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16916 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16918 if test x"$lt_cv_prog_compiler__b" = xyes; then
16919 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16920 else
16921 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16925 esac
16927 if test "$with_gnu_ld" = no; then
16928 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16929 hardcode_libdir_separator=:
16931 case $host_cpu in
16932 hppa*64*|ia64*)
16933 hardcode_direct=no
16934 hardcode_shlibpath_var=no
16937 hardcode_direct=yes
16938 hardcode_direct_absolute=yes
16939 export_dynamic_flag_spec='${wl}-E'
16941 # hardcode_minus_L: Not really in the search PATH,
16942 # but as the default location of the library.
16943 hardcode_minus_L=yes
16945 esac
16949 irix5* | irix6* | nonstopux*)
16950 if test "$GCC" = yes; then
16951 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'
16952 # Try to use the -exported_symbol ld option, if it does not
16953 # work, assume that -exports_file does not work either and
16954 # implicitly export all symbols.
16955 # This should be the same for all languages, so no per-tag cache variable.
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16957 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16958 if ${lt_cv_irix_exported_symbol+:} false; then :
16959 $as_echo_n "(cached) " >&6
16960 else
16961 save_LDFLAGS="$LDFLAGS"
16962 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16964 /* end confdefs.h. */
16965 int foo (void) { return 0; }
16966 _ACEOF
16967 if ac_fn_c_try_link "$LINENO"; then :
16968 lt_cv_irix_exported_symbol=yes
16969 else
16970 lt_cv_irix_exported_symbol=no
16972 rm -f core conftest.err conftest.$ac_objext \
16973 conftest$ac_exeext conftest.$ac_ext
16974 LDFLAGS="$save_LDFLAGS"
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16977 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16978 if test "$lt_cv_irix_exported_symbol" = yes; then
16979 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'
16981 else
16982 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'
16983 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'
16985 archive_cmds_need_lc='no'
16986 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16987 hardcode_libdir_separator=:
16988 inherit_rpath=yes
16989 link_all_deplibs=yes
16992 netbsd*)
16993 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16994 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16995 else
16996 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16998 hardcode_libdir_flag_spec='-R$libdir'
16999 hardcode_direct=yes
17000 hardcode_shlibpath_var=no
17003 newsos6)
17004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17005 hardcode_direct=yes
17006 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17007 hardcode_libdir_separator=:
17008 hardcode_shlibpath_var=no
17011 *nto* | *qnx*)
17014 openbsd*)
17015 if test -f /usr/libexec/ld.so; then
17016 hardcode_direct=yes
17017 hardcode_shlibpath_var=no
17018 hardcode_direct_absolute=yes
17019 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17020 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17021 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17022 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17023 export_dynamic_flag_spec='${wl}-E'
17024 else
17025 case $host_os in
17026 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17027 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17028 hardcode_libdir_flag_spec='-R$libdir'
17031 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17032 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17034 esac
17036 else
17037 ld_shlibs=no
17041 os2*)
17042 hardcode_libdir_flag_spec='-L$libdir'
17043 hardcode_minus_L=yes
17044 allow_undefined_flag=unsupported
17045 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17046 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17049 osf3*)
17050 if test "$GCC" = yes; then
17051 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17052 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'
17053 else
17054 allow_undefined_flag=' -expect_unresolved \*'
17055 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'
17057 archive_cmds_need_lc='no'
17058 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17059 hardcode_libdir_separator=:
17062 osf4* | osf5*) # as osf3* with the addition of -msym flag
17063 if test "$GCC" = yes; then
17064 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17065 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'
17066 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17067 else
17068 allow_undefined_flag=' -expect_unresolved \*'
17069 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'
17070 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~
17071 $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'
17073 # Both c and cxx compiler support -rpath directly
17074 hardcode_libdir_flag_spec='-rpath $libdir'
17076 archive_cmds_need_lc='no'
17077 hardcode_libdir_separator=:
17080 solaris*)
17081 no_undefined_flag=' -z defs'
17082 if test "$GCC" = yes; then
17083 wlarc='${wl}'
17084 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17085 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17086 $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'
17087 else
17088 case `$CC -V 2>&1` in
17089 *"Compilers 5.0"*)
17090 wlarc=''
17091 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17092 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17093 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17096 wlarc='${wl}'
17097 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17098 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17099 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17101 esac
17103 hardcode_libdir_flag_spec='-R$libdir'
17104 hardcode_shlibpath_var=no
17105 case $host_os in
17106 solaris2.[0-5] | solaris2.[0-5].*) ;;
17108 # The compiler driver will combine and reorder linker options,
17109 # but understands `-z linker_flag'. GCC discards it without `$wl',
17110 # but is careful enough not to reorder.
17111 # Supported since Solaris 2.6 (maybe 2.5.1?)
17112 if test "$GCC" = yes; then
17113 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17114 else
17115 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17118 esac
17119 link_all_deplibs=yes
17122 sunos4*)
17123 if test "x$host_vendor" = xsequent; then
17124 # Use $CC to link under sequent, because it throws in some extra .o
17125 # files that make .init and .fini sections work.
17126 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17127 else
17128 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17130 hardcode_libdir_flag_spec='-L$libdir'
17131 hardcode_direct=yes
17132 hardcode_minus_L=yes
17133 hardcode_shlibpath_var=no
17136 sysv4)
17137 case $host_vendor in
17138 sni)
17139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17140 hardcode_direct=yes # is this really true???
17142 siemens)
17143 ## LD is ld it makes a PLAMLIB
17144 ## CC just makes a GrossModule.
17145 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17146 reload_cmds='$CC -r -o $output$reload_objs'
17147 hardcode_direct=no
17149 motorola)
17150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17151 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17153 esac
17154 runpath_var='LD_RUN_PATH'
17155 hardcode_shlibpath_var=no
17158 sysv4.3*)
17159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17160 hardcode_shlibpath_var=no
17161 export_dynamic_flag_spec='-Bexport'
17164 sysv4*MP*)
17165 if test -d /usr/nec; then
17166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17167 hardcode_shlibpath_var=no
17168 runpath_var=LD_RUN_PATH
17169 hardcode_runpath_var=yes
17170 ld_shlibs=yes
17174 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17175 no_undefined_flag='${wl}-z,text'
17176 archive_cmds_need_lc=no
17177 hardcode_shlibpath_var=no
17178 runpath_var='LD_RUN_PATH'
17180 if test "$GCC" = yes; then
17181 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17182 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17183 else
17184 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17185 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17189 sysv5* | sco3.2v5* | sco5v6*)
17190 # Note: We can NOT use -z defs as we might desire, because we do not
17191 # link with -lc, and that would cause any symbols used from libc to
17192 # always be unresolved, which means just about no library would
17193 # ever link correctly. If we're not using GNU ld we use -z text
17194 # though, which does catch some bad symbols but isn't as heavy-handed
17195 # as -z defs.
17196 no_undefined_flag='${wl}-z,text'
17197 allow_undefined_flag='${wl}-z,nodefs'
17198 archive_cmds_need_lc=no
17199 hardcode_shlibpath_var=no
17200 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17201 hardcode_libdir_separator=':'
17202 link_all_deplibs=yes
17203 export_dynamic_flag_spec='${wl}-Bexport'
17204 runpath_var='LD_RUN_PATH'
17206 if test "$GCC" = yes; then
17207 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17208 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17209 else
17210 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17211 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17215 uts4*)
17216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17217 hardcode_libdir_flag_spec='-L$libdir'
17218 hardcode_shlibpath_var=no
17222 ld_shlibs=no
17224 esac
17226 if test x$host_vendor = xsni; then
17227 case $host in
17228 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17229 export_dynamic_flag_spec='${wl}-Blargedynsym'
17231 esac
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17236 $as_echo "$ld_shlibs" >&6; }
17237 test "$ld_shlibs" = no && can_build_shared=no
17239 with_gnu_ld=$with_gnu_ld
17256 # Do we need to explicitly link libc?
17258 case "x$archive_cmds_need_lc" in
17259 x|xyes)
17260 # Assume -lc should be added
17261 archive_cmds_need_lc=yes
17263 if test "$enable_shared" = yes && test "$GCC" = yes; then
17264 case $archive_cmds in
17265 *'~'*)
17266 # FIXME: we may have to deal with multi-command sequences.
17268 '$CC '*)
17269 # Test whether the compiler implicitly links with -lc since on some
17270 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17271 # to ld, don't add -lc before -lgcc.
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17273 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17274 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17275 $as_echo_n "(cached) " >&6
17276 else
17277 $RM conftest*
17278 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17281 (eval $ac_compile) 2>&5
17282 ac_status=$?
17283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17284 test $ac_status = 0; } 2>conftest.err; then
17285 soname=conftest
17286 lib=conftest
17287 libobjs=conftest.$ac_objext
17288 deplibs=
17289 wl=$lt_prog_compiler_wl
17290 pic_flag=$lt_prog_compiler_pic
17291 compiler_flags=-v
17292 linker_flags=-v
17293 verstring=
17294 output_objdir=.
17295 libname=conftest
17296 lt_save_allow_undefined_flag=$allow_undefined_flag
17297 allow_undefined_flag=
17298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17299 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17300 ac_status=$?
17301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17302 test $ac_status = 0; }
17303 then
17304 lt_cv_archive_cmds_need_lc=no
17305 else
17306 lt_cv_archive_cmds_need_lc=yes
17308 allow_undefined_flag=$lt_save_allow_undefined_flag
17309 else
17310 cat conftest.err 1>&5
17312 $RM conftest*
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17316 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17317 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17319 esac
17322 esac
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17476 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17478 if test "$GCC" = yes; then
17479 case $host_os in
17480 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17481 *) lt_awk_arg="/^libraries:/" ;;
17482 esac
17483 case $host_os in
17484 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17485 *) lt_sed_strip_eq="s,=/,/,g" ;;
17486 esac
17487 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17488 case $lt_search_path_spec in
17489 *\;*)
17490 # if the path contains ";" then we assume it to be the separator
17491 # otherwise default to the standard path separator (i.e. ":") - it is
17492 # assumed that no part of a normal pathname contains ";" but that should
17493 # okay in the real world where ";" in dirpaths is itself problematic.
17494 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17497 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17499 esac
17500 # Ok, now we have the path, separated by spaces, we can step through it
17501 # and add multilib dir if necessary.
17502 lt_tmp_lt_search_path_spec=
17503 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17504 for lt_sys_path in $lt_search_path_spec; do
17505 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17506 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17507 else
17508 test -d "$lt_sys_path" && \
17509 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17511 done
17512 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17513 BEGIN {RS=" "; FS="/|\n";} {
17514 lt_foo="";
17515 lt_count=0;
17516 for (lt_i = NF; lt_i > 0; lt_i--) {
17517 if ($lt_i != "" && $lt_i != ".") {
17518 if ($lt_i == "..") {
17519 lt_count++;
17520 } else {
17521 if (lt_count == 0) {
17522 lt_foo="/" $lt_i lt_foo;
17523 } else {
17524 lt_count--;
17529 if (lt_foo != "") { lt_freq[lt_foo]++; }
17530 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17532 # AWK program above erroneously prepends '/' to C:/dos/paths
17533 # for these hosts.
17534 case $host_os in
17535 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17536 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17537 esac
17538 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17539 else
17540 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17542 library_names_spec=
17543 libname_spec='lib$name'
17544 soname_spec=
17545 shrext_cmds=".so"
17546 postinstall_cmds=
17547 postuninstall_cmds=
17548 finish_cmds=
17549 finish_eval=
17550 shlibpath_var=
17551 shlibpath_overrides_runpath=unknown
17552 version_type=none
17553 dynamic_linker="$host_os ld.so"
17554 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17555 need_lib_prefix=unknown
17556 hardcode_into_libs=no
17558 # when you set need_version to no, make sure it does not cause -set_version
17559 # flags to be left without arguments
17560 need_version=unknown
17562 case $host_os in
17563 aix3*)
17564 version_type=linux # correct to gnu/linux during the next big refactor
17565 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17566 shlibpath_var=LIBPATH
17568 # AIX 3 has no versioning support, so we append a major version to the name.
17569 soname_spec='${libname}${release}${shared_ext}$major'
17572 aix[4-9]*)
17573 version_type=linux # correct to gnu/linux during the next big refactor
17574 need_lib_prefix=no
17575 need_version=no
17576 hardcode_into_libs=yes
17577 if test "$host_cpu" = ia64; then
17578 # AIX 5 supports IA64
17579 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17580 shlibpath_var=LD_LIBRARY_PATH
17581 else
17582 # With GCC up to 2.95.x, collect2 would create an import file
17583 # for dependence libraries. The import file would start with
17584 # the line `#! .'. This would cause the generated library to
17585 # depend on `.', always an invalid library. This was fixed in
17586 # development snapshots of GCC prior to 3.0.
17587 case $host_os in
17588 aix4 | aix4.[01] | aix4.[01].*)
17589 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17590 echo ' yes '
17591 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17593 else
17594 can_build_shared=no
17597 esac
17598 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17599 # soname into executable. Probably we can add versioning support to
17600 # collect2, so additional links can be useful in future.
17601 if test "$aix_use_runtimelinking" = yes; then
17602 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17603 # instead of lib<name>.a to let people know that these are not
17604 # typical AIX shared libraries.
17605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17606 else
17607 # We preserve .a as extension for shared libraries through AIX4.2
17608 # and later when we are not doing run time linking.
17609 library_names_spec='${libname}${release}.a $libname.a'
17610 soname_spec='${libname}${release}${shared_ext}$major'
17612 shlibpath_var=LIBPATH
17616 amigaos*)
17617 case $host_cpu in
17618 powerpc)
17619 # Since July 2007 AmigaOS4 officially supports .so libraries.
17620 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17623 m68k)
17624 library_names_spec='$libname.ixlibrary $libname.a'
17625 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17626 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17628 esac
17631 beos*)
17632 library_names_spec='${libname}${shared_ext}'
17633 dynamic_linker="$host_os ld.so"
17634 shlibpath_var=LIBRARY_PATH
17637 bsdi[45]*)
17638 version_type=linux # correct to gnu/linux during the next big refactor
17639 need_version=no
17640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17641 soname_spec='${libname}${release}${shared_ext}$major'
17642 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17643 shlibpath_var=LD_LIBRARY_PATH
17644 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17645 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17646 # the default ld.so.conf also contains /usr/contrib/lib and
17647 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17648 # libtool to hard-code these into programs
17651 cygwin* | mingw* | pw32* | cegcc*)
17652 version_type=windows
17653 shrext_cmds=".dll"
17654 need_version=no
17655 need_lib_prefix=no
17657 case $GCC,$cc_basename in
17658 yes,*)
17659 # gcc
17660 library_names_spec='$libname.dll.a'
17661 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17662 postinstall_cmds='base_file=`basename \${file}`~
17663 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17664 dldir=$destdir/`dirname \$dlpath`~
17665 test -d \$dldir || mkdir -p \$dldir~
17666 $install_prog $dir/$dlname \$dldir/$dlname~
17667 chmod a+x \$dldir/$dlname~
17668 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17669 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17671 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17672 dlpath=$dir/\$dldll~
17673 $RM \$dlpath'
17674 shlibpath_overrides_runpath=yes
17676 case $host_os in
17677 cygwin*)
17678 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17679 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17681 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17683 mingw* | cegcc*)
17684 # MinGW DLLs use traditional 'lib' prefix
17685 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17687 pw32*)
17688 # pw32 DLLs use 'pw' prefix rather than 'lib'
17689 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17691 esac
17692 dynamic_linker='Win32 ld.exe'
17695 *,cl*)
17696 # Native MSVC
17697 libname_spec='$name'
17698 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17699 library_names_spec='${libname}.dll.lib'
17701 case $build_os in
17702 mingw*)
17703 sys_lib_search_path_spec=
17704 lt_save_ifs=$IFS
17705 IFS=';'
17706 for lt_path in $LIB
17708 IFS=$lt_save_ifs
17709 # Let DOS variable expansion print the short 8.3 style file name.
17710 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17711 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17712 done
17713 IFS=$lt_save_ifs
17714 # Convert to MSYS style.
17715 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17717 cygwin*)
17718 # Convert to unix form, then to dos form, then back to unix form
17719 # but this time dos style (no spaces!) so that the unix form looks
17720 # like /cygdrive/c/PROGRA~1:/cygdr...
17721 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17722 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17723 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17726 sys_lib_search_path_spec="$LIB"
17727 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17728 # It is most probably a Windows format PATH.
17729 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17730 else
17731 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17733 # FIXME: find the short name or the path components, as spaces are
17734 # common. (e.g. "Program Files" -> "PROGRA~1")
17736 esac
17738 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17739 postinstall_cmds='base_file=`basename \${file}`~
17740 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17741 dldir=$destdir/`dirname \$dlpath`~
17742 test -d \$dldir || mkdir -p \$dldir~
17743 $install_prog $dir/$dlname \$dldir/$dlname'
17744 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17745 dlpath=$dir/\$dldll~
17746 $RM \$dlpath'
17747 shlibpath_overrides_runpath=yes
17748 dynamic_linker='Win32 link.exe'
17752 # Assume MSVC wrapper
17753 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17754 dynamic_linker='Win32 ld.exe'
17756 esac
17757 # FIXME: first we should search . and the directory the executable is in
17758 shlibpath_var=PATH
17761 darwin* | rhapsody*)
17762 dynamic_linker="$host_os dyld"
17763 version_type=darwin
17764 need_lib_prefix=no
17765 need_version=no
17766 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17767 soname_spec='${libname}${release}${major}$shared_ext'
17768 shlibpath_overrides_runpath=yes
17769 shlibpath_var=DYLD_LIBRARY_PATH
17770 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17772 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17773 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17776 dgux*)
17777 version_type=linux # correct to gnu/linux during the next big refactor
17778 need_lib_prefix=no
17779 need_version=no
17780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17781 soname_spec='${libname}${release}${shared_ext}$major'
17782 shlibpath_var=LD_LIBRARY_PATH
17785 freebsd* | dragonfly*)
17786 # DragonFly does not have aout. When/if they implement a new
17787 # versioning mechanism, adjust this.
17788 if test -x /usr/bin/objformat; then
17789 objformat=`/usr/bin/objformat`
17790 else
17791 case $host_os in
17792 freebsd[23].*) objformat=aout ;;
17793 *) objformat=elf ;;
17794 esac
17796 version_type=freebsd-$objformat
17797 case $version_type in
17798 freebsd-elf*)
17799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17800 need_version=no
17801 need_lib_prefix=no
17803 freebsd-*)
17804 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17805 need_version=yes
17807 esac
17808 shlibpath_var=LD_LIBRARY_PATH
17809 case $host_os in
17810 freebsd2.*)
17811 shlibpath_overrides_runpath=yes
17813 freebsd3.[01]* | freebsdelf3.[01]*)
17814 shlibpath_overrides_runpath=yes
17815 hardcode_into_libs=yes
17817 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17818 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17819 shlibpath_overrides_runpath=no
17820 hardcode_into_libs=yes
17822 *) # from 4.6 on, and DragonFly
17823 shlibpath_overrides_runpath=yes
17824 hardcode_into_libs=yes
17826 esac
17829 gnu*)
17830 version_type=linux # correct to gnu/linux during the next big refactor
17831 need_lib_prefix=no
17832 need_version=no
17833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17834 soname_spec='${libname}${release}${shared_ext}$major'
17835 shlibpath_var=LD_LIBRARY_PATH
17836 shlibpath_overrides_runpath=no
17837 hardcode_into_libs=yes
17840 haiku*)
17841 version_type=linux # correct to gnu/linux during the next big refactor
17842 need_lib_prefix=no
17843 need_version=no
17844 dynamic_linker="$host_os runtime_loader"
17845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17846 soname_spec='${libname}${release}${shared_ext}$major'
17847 shlibpath_var=LIBRARY_PATH
17848 shlibpath_overrides_runpath=yes
17849 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17850 hardcode_into_libs=yes
17853 hpux9* | hpux10* | hpux11*)
17854 # Give a soname corresponding to the major version so that dld.sl refuses to
17855 # link against other versions.
17856 version_type=sunos
17857 need_lib_prefix=no
17858 need_version=no
17859 case $host_cpu in
17860 ia64*)
17861 shrext_cmds='.so'
17862 hardcode_into_libs=yes
17863 dynamic_linker="$host_os dld.so"
17864 shlibpath_var=LD_LIBRARY_PATH
17865 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17867 soname_spec='${libname}${release}${shared_ext}$major'
17868 if test "X$HPUX_IA64_MODE" = X32; then
17869 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17870 else
17871 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17875 hppa*64*)
17876 shrext_cmds='.sl'
17877 hardcode_into_libs=yes
17878 dynamic_linker="$host_os dld.sl"
17879 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17880 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17882 soname_spec='${libname}${release}${shared_ext}$major'
17883 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17884 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17887 shrext_cmds='.sl'
17888 dynamic_linker="$host_os dld.sl"
17889 shlibpath_var=SHLIB_PATH
17890 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17892 soname_spec='${libname}${release}${shared_ext}$major'
17894 esac
17895 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17896 postinstall_cmds='chmod 555 $lib'
17897 # or fails outright, so override atomically:
17898 install_override_mode=555
17901 interix[3-9]*)
17902 version_type=linux # correct to gnu/linux during the next big refactor
17903 need_lib_prefix=no
17904 need_version=no
17905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17906 soname_spec='${libname}${release}${shared_ext}$major'
17907 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17908 shlibpath_var=LD_LIBRARY_PATH
17909 shlibpath_overrides_runpath=no
17910 hardcode_into_libs=yes
17913 irix5* | irix6* | nonstopux*)
17914 case $host_os in
17915 nonstopux*) version_type=nonstopux ;;
17917 if test "$lt_cv_prog_gnu_ld" = yes; then
17918 version_type=linux # correct to gnu/linux during the next big refactor
17919 else
17920 version_type=irix
17921 fi ;;
17922 esac
17923 need_lib_prefix=no
17924 need_version=no
17925 soname_spec='${libname}${release}${shared_ext}$major'
17926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17927 case $host_os in
17928 irix5* | nonstopux*)
17929 libsuff= shlibsuff=
17932 case $LD in # libtool.m4 will add one of these switches to LD
17933 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17934 libsuff= shlibsuff= libmagic=32-bit;;
17935 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17936 libsuff=32 shlibsuff=N32 libmagic=N32;;
17937 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17938 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17939 *) libsuff= shlibsuff= libmagic=never-match;;
17940 esac
17942 esac
17943 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17944 shlibpath_overrides_runpath=no
17945 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17946 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17947 hardcode_into_libs=yes
17950 # No shared lib support for Linux oldld, aout, or coff.
17951 linux*oldld* | linux*aout* | linux*coff*)
17952 dynamic_linker=no
17955 # This must be glibc/ELF.
17956 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17957 version_type=linux # correct to gnu/linux during the next big refactor
17958 need_lib_prefix=no
17959 need_version=no
17960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17961 soname_spec='${libname}${release}${shared_ext}$major'
17962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17963 shlibpath_var=LD_LIBRARY_PATH
17964 shlibpath_overrides_runpath=no
17966 # Some binutils ld are patched to set DT_RUNPATH
17967 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17968 $as_echo_n "(cached) " >&6
17969 else
17970 lt_cv_shlibpath_overrides_runpath=no
17971 save_LDFLAGS=$LDFLAGS
17972 save_libdir=$libdir
17973 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17974 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17976 /* end confdefs.h. */
17979 main ()
17983 return 0;
17985 _ACEOF
17986 if ac_fn_c_try_link "$LINENO"; then :
17987 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17988 lt_cv_shlibpath_overrides_runpath=yes
17991 rm -f core conftest.err conftest.$ac_objext \
17992 conftest$ac_exeext conftest.$ac_ext
17993 LDFLAGS=$save_LDFLAGS
17994 libdir=$save_libdir
17998 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18000 # This implies no fast_install, which is unacceptable.
18001 # Some rework will be needed to allow for fast_install
18002 # before this can be enabled.
18003 hardcode_into_libs=yes
18005 # Append ld.so.conf contents to the search path
18006 if test -f /etc/ld.so.conf; then
18007 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' ' '`
18008 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18011 # We used to test for /lib/ld.so.1 and disable shared libraries on
18012 # powerpc, because MkLinux only supported shared libraries with the
18013 # GNU dynamic linker. Since this was broken with cross compilers,
18014 # most powerpc-linux boxes support dynamic linking these days and
18015 # people can always --disable-shared, the test was removed, and we
18016 # assume the GNU/Linux dynamic linker is in use.
18017 dynamic_linker='GNU/Linux ld.so'
18020 netbsd*)
18021 version_type=sunos
18022 need_lib_prefix=no
18023 need_version=no
18024 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18027 dynamic_linker='NetBSD (a.out) ld.so'
18028 else
18029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18030 soname_spec='${libname}${release}${shared_ext}$major'
18031 dynamic_linker='NetBSD ld.elf_so'
18033 shlibpath_var=LD_LIBRARY_PATH
18034 shlibpath_overrides_runpath=yes
18035 hardcode_into_libs=yes
18038 newsos6)
18039 version_type=linux # correct to gnu/linux during the next big refactor
18040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18041 shlibpath_var=LD_LIBRARY_PATH
18042 shlibpath_overrides_runpath=yes
18045 *nto* | *qnx*)
18046 version_type=qnx
18047 need_lib_prefix=no
18048 need_version=no
18049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18050 soname_spec='${libname}${release}${shared_ext}$major'
18051 shlibpath_var=LD_LIBRARY_PATH
18052 shlibpath_overrides_runpath=no
18053 hardcode_into_libs=yes
18054 dynamic_linker='ldqnx.so'
18057 openbsd*)
18058 version_type=sunos
18059 sys_lib_dlsearch_path_spec="/usr/lib"
18060 need_lib_prefix=no
18061 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18062 case $host_os in
18063 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18064 *) need_version=no ;;
18065 esac
18066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18068 shlibpath_var=LD_LIBRARY_PATH
18069 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18070 case $host_os in
18071 openbsd2.[89] | openbsd2.[89].*)
18072 shlibpath_overrides_runpath=no
18075 shlibpath_overrides_runpath=yes
18077 esac
18078 else
18079 shlibpath_overrides_runpath=yes
18083 os2*)
18084 libname_spec='$name'
18085 shrext_cmds=".dll"
18086 need_lib_prefix=no
18087 library_names_spec='$libname${shared_ext} $libname.a'
18088 dynamic_linker='OS/2 ld.exe'
18089 shlibpath_var=LIBPATH
18092 osf3* | osf4* | osf5*)
18093 version_type=osf
18094 need_lib_prefix=no
18095 need_version=no
18096 soname_spec='${libname}${release}${shared_ext}$major'
18097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18098 shlibpath_var=LD_LIBRARY_PATH
18099 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18100 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18103 rdos*)
18104 dynamic_linker=no
18107 solaris*)
18108 version_type=linux # correct to gnu/linux during the next big refactor
18109 need_lib_prefix=no
18110 need_version=no
18111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18112 soname_spec='${libname}${release}${shared_ext}$major'
18113 shlibpath_var=LD_LIBRARY_PATH
18114 shlibpath_overrides_runpath=yes
18115 hardcode_into_libs=yes
18116 # ldd complains unless libraries are executable
18117 postinstall_cmds='chmod +x $lib'
18120 sunos4*)
18121 version_type=sunos
18122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18123 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18124 shlibpath_var=LD_LIBRARY_PATH
18125 shlibpath_overrides_runpath=yes
18126 if test "$with_gnu_ld" = yes; then
18127 need_lib_prefix=no
18129 need_version=yes
18132 sysv4 | sysv4.3*)
18133 version_type=linux # correct to gnu/linux during the next big refactor
18134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18135 soname_spec='${libname}${release}${shared_ext}$major'
18136 shlibpath_var=LD_LIBRARY_PATH
18137 case $host_vendor in
18138 sni)
18139 shlibpath_overrides_runpath=no
18140 need_lib_prefix=no
18141 runpath_var=LD_RUN_PATH
18143 siemens)
18144 need_lib_prefix=no
18146 motorola)
18147 need_lib_prefix=no
18148 need_version=no
18149 shlibpath_overrides_runpath=no
18150 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18152 esac
18155 sysv4*MP*)
18156 if test -d /usr/nec ;then
18157 version_type=linux # correct to gnu/linux during the next big refactor
18158 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18159 soname_spec='$libname${shared_ext}.$major'
18160 shlibpath_var=LD_LIBRARY_PATH
18164 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18165 version_type=freebsd-elf
18166 need_lib_prefix=no
18167 need_version=no
18168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18169 soname_spec='${libname}${release}${shared_ext}$major'
18170 shlibpath_var=LD_LIBRARY_PATH
18171 shlibpath_overrides_runpath=yes
18172 hardcode_into_libs=yes
18173 if test "$with_gnu_ld" = yes; then
18174 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18175 else
18176 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18177 case $host_os in
18178 sco3.2v5*)
18179 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18181 esac
18183 sys_lib_dlsearch_path_spec='/usr/lib'
18186 tpf*)
18187 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18188 version_type=linux # correct to gnu/linux during the next big refactor
18189 need_lib_prefix=no
18190 need_version=no
18191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18192 shlibpath_var=LD_LIBRARY_PATH
18193 shlibpath_overrides_runpath=no
18194 hardcode_into_libs=yes
18197 uts4*)
18198 version_type=linux # correct to gnu/linux during the next big refactor
18199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18200 soname_spec='${libname}${release}${shared_ext}$major'
18201 shlibpath_var=LD_LIBRARY_PATH
18205 dynamic_linker=no
18207 esac
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18209 $as_echo "$dynamic_linker" >&6; }
18210 test "$dynamic_linker" = no && can_build_shared=no
18212 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18213 if test "$GCC" = yes; then
18214 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18217 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18218 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18220 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18221 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18316 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18317 hardcode_action=
18318 if test -n "$hardcode_libdir_flag_spec" ||
18319 test -n "$runpath_var" ||
18320 test "X$hardcode_automatic" = "Xyes" ; then
18322 # We can hardcode non-existent directories.
18323 if test "$hardcode_direct" != no &&
18324 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18325 # have to relink, otherwise we might link with an installed library
18326 # when we should be linking with a yet-to-be-installed one
18327 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18328 test "$hardcode_minus_L" != no; then
18329 # Linking always hardcodes the temporary library directory.
18330 hardcode_action=relink
18331 else
18332 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18333 hardcode_action=immediate
18335 else
18336 # We cannot hardcode anything, or else we can only hardcode existing
18337 # directories.
18338 hardcode_action=unsupported
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18341 $as_echo "$hardcode_action" >&6; }
18343 if test "$hardcode_action" = relink ||
18344 test "$inherit_rpath" = yes; then
18345 # Fast installation is not supported
18346 enable_fast_install=no
18347 elif test "$shlibpath_overrides_runpath" = yes ||
18348 test "$enable_shared" = no; then
18349 # Fast installation is not necessary
18350 enable_fast_install=needless
18358 if test "x$enable_dlopen" != xyes; then
18359 enable_dlopen=unknown
18360 enable_dlopen_self=unknown
18361 enable_dlopen_self_static=unknown
18362 else
18363 lt_cv_dlopen=no
18364 lt_cv_dlopen_libs=
18366 case $host_os in
18367 beos*)
18368 lt_cv_dlopen="load_add_on"
18369 lt_cv_dlopen_libs=
18370 lt_cv_dlopen_self=yes
18373 mingw* | pw32* | cegcc*)
18374 lt_cv_dlopen="LoadLibrary"
18375 lt_cv_dlopen_libs=
18378 cygwin*)
18379 lt_cv_dlopen="dlopen"
18380 lt_cv_dlopen_libs=
18383 darwin*)
18384 # if libdl is installed we need to link against it
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18386 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18387 if ${ac_cv_lib_dl_dlopen+:} false; then :
18388 $as_echo_n "(cached) " >&6
18389 else
18390 ac_check_lib_save_LIBS=$LIBS
18391 LIBS="-ldl $LIBS"
18392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18393 /* end confdefs.h. */
18395 /* Override any GCC internal prototype to avoid an error.
18396 Use char because int might match the return type of a GCC
18397 builtin and then its argument prototype would still apply. */
18398 #ifdef __cplusplus
18399 extern "C"
18400 #endif
18401 char dlopen ();
18403 main ()
18405 return dlopen ();
18407 return 0;
18409 _ACEOF
18410 if ac_fn_c_try_link "$LINENO"; then :
18411 ac_cv_lib_dl_dlopen=yes
18412 else
18413 ac_cv_lib_dl_dlopen=no
18415 rm -f core conftest.err conftest.$ac_objext \
18416 conftest$ac_exeext conftest.$ac_ext
18417 LIBS=$ac_check_lib_save_LIBS
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18420 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18421 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18422 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18423 else
18425 lt_cv_dlopen="dyld"
18426 lt_cv_dlopen_libs=
18427 lt_cv_dlopen_self=yes
18434 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18435 if test "x$ac_cv_func_shl_load" = xyes; then :
18436 lt_cv_dlopen="shl_load"
18437 else
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18439 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18440 if ${ac_cv_lib_dld_shl_load+:} false; then :
18441 $as_echo_n "(cached) " >&6
18442 else
18443 ac_check_lib_save_LIBS=$LIBS
18444 LIBS="-ldld $LIBS"
18445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446 /* end confdefs.h. */
18448 /* Override any GCC internal prototype to avoid an error.
18449 Use char because int might match the return type of a GCC
18450 builtin and then its argument prototype would still apply. */
18451 #ifdef __cplusplus
18452 extern "C"
18453 #endif
18454 char shl_load ();
18456 main ()
18458 return shl_load ();
18460 return 0;
18462 _ACEOF
18463 if ac_fn_c_try_link "$LINENO"; then :
18464 ac_cv_lib_dld_shl_load=yes
18465 else
18466 ac_cv_lib_dld_shl_load=no
18468 rm -f core conftest.err conftest.$ac_objext \
18469 conftest$ac_exeext conftest.$ac_ext
18470 LIBS=$ac_check_lib_save_LIBS
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18473 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18474 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18475 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18476 else
18477 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18478 if test "x$ac_cv_func_dlopen" = xyes; then :
18479 lt_cv_dlopen="dlopen"
18480 else
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18482 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18483 if ${ac_cv_lib_dl_dlopen+:} false; then :
18484 $as_echo_n "(cached) " >&6
18485 else
18486 ac_check_lib_save_LIBS=$LIBS
18487 LIBS="-ldl $LIBS"
18488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18489 /* end confdefs.h. */
18491 /* Override any GCC internal prototype to avoid an error.
18492 Use char because int might match the return type of a GCC
18493 builtin and then its argument prototype would still apply. */
18494 #ifdef __cplusplus
18495 extern "C"
18496 #endif
18497 char dlopen ();
18499 main ()
18501 return dlopen ();
18503 return 0;
18505 _ACEOF
18506 if ac_fn_c_try_link "$LINENO"; then :
18507 ac_cv_lib_dl_dlopen=yes
18508 else
18509 ac_cv_lib_dl_dlopen=no
18511 rm -f core conftest.err conftest.$ac_objext \
18512 conftest$ac_exeext conftest.$ac_ext
18513 LIBS=$ac_check_lib_save_LIBS
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18516 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18517 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18518 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18519 else
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18521 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18522 if ${ac_cv_lib_svld_dlopen+:} false; then :
18523 $as_echo_n "(cached) " >&6
18524 else
18525 ac_check_lib_save_LIBS=$LIBS
18526 LIBS="-lsvld $LIBS"
18527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18528 /* end confdefs.h. */
18530 /* Override any GCC internal prototype to avoid an error.
18531 Use char because int might match the return type of a GCC
18532 builtin and then its argument prototype would still apply. */
18533 #ifdef __cplusplus
18534 extern "C"
18535 #endif
18536 char dlopen ();
18538 main ()
18540 return dlopen ();
18542 return 0;
18544 _ACEOF
18545 if ac_fn_c_try_link "$LINENO"; then :
18546 ac_cv_lib_svld_dlopen=yes
18547 else
18548 ac_cv_lib_svld_dlopen=no
18550 rm -f core conftest.err conftest.$ac_objext \
18551 conftest$ac_exeext conftest.$ac_ext
18552 LIBS=$ac_check_lib_save_LIBS
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18555 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18556 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18557 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18558 else
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18560 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18561 if ${ac_cv_lib_dld_dld_link+:} false; then :
18562 $as_echo_n "(cached) " >&6
18563 else
18564 ac_check_lib_save_LIBS=$LIBS
18565 LIBS="-ldld $LIBS"
18566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18567 /* end confdefs.h. */
18569 /* Override any GCC internal prototype to avoid an error.
18570 Use char because int might match the return type of a GCC
18571 builtin and then its argument prototype would still apply. */
18572 #ifdef __cplusplus
18573 extern "C"
18574 #endif
18575 char dld_link ();
18577 main ()
18579 return dld_link ();
18581 return 0;
18583 _ACEOF
18584 if ac_fn_c_try_link "$LINENO"; then :
18585 ac_cv_lib_dld_dld_link=yes
18586 else
18587 ac_cv_lib_dld_dld_link=no
18589 rm -f core conftest.err conftest.$ac_objext \
18590 conftest$ac_exeext conftest.$ac_ext
18591 LIBS=$ac_check_lib_save_LIBS
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18594 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18595 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18596 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18615 esac
18617 if test "x$lt_cv_dlopen" != xno; then
18618 enable_dlopen=yes
18619 else
18620 enable_dlopen=no
18623 case $lt_cv_dlopen in
18624 dlopen)
18625 save_CPPFLAGS="$CPPFLAGS"
18626 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18628 save_LDFLAGS="$LDFLAGS"
18629 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18631 save_LIBS="$LIBS"
18632 LIBS="$lt_cv_dlopen_libs $LIBS"
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18635 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18636 if ${lt_cv_dlopen_self+:} false; then :
18637 $as_echo_n "(cached) " >&6
18638 else
18639 if test "$cross_compiling" = yes; then :
18640 lt_cv_dlopen_self=cross
18641 else
18642 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18643 lt_status=$lt_dlunknown
18644 cat > conftest.$ac_ext <<_LT_EOF
18645 #line $LINENO "configure"
18646 #include "confdefs.h"
18648 #if HAVE_DLFCN_H
18649 #include <dlfcn.h>
18650 #endif
18652 #include <stdio.h>
18654 #ifdef RTLD_GLOBAL
18655 # define LT_DLGLOBAL RTLD_GLOBAL
18656 #else
18657 # ifdef DL_GLOBAL
18658 # define LT_DLGLOBAL DL_GLOBAL
18659 # else
18660 # define LT_DLGLOBAL 0
18661 # endif
18662 #endif
18664 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18665 find out it does not work in some platform. */
18666 #ifndef LT_DLLAZY_OR_NOW
18667 # ifdef RTLD_LAZY
18668 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18669 # else
18670 # ifdef DL_LAZY
18671 # define LT_DLLAZY_OR_NOW DL_LAZY
18672 # else
18673 # ifdef RTLD_NOW
18674 # define LT_DLLAZY_OR_NOW RTLD_NOW
18675 # else
18676 # ifdef DL_NOW
18677 # define LT_DLLAZY_OR_NOW DL_NOW
18678 # else
18679 # define LT_DLLAZY_OR_NOW 0
18680 # endif
18681 # endif
18682 # endif
18683 # endif
18684 #endif
18686 /* When -fvisbility=hidden is used, assume the code has been annotated
18687 correspondingly for the symbols needed. */
18688 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18689 int fnord () __attribute__((visibility("default")));
18690 #endif
18692 int fnord () { return 42; }
18693 int main ()
18695 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18696 int status = $lt_dlunknown;
18698 if (self)
18700 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18701 else
18703 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18704 else puts (dlerror ());
18706 /* dlclose (self); */
18708 else
18709 puts (dlerror ());
18711 return status;
18713 _LT_EOF
18714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18715 (eval $ac_link) 2>&5
18716 ac_status=$?
18717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18718 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18719 (./conftest; exit; ) >&5 2>/dev/null
18720 lt_status=$?
18721 case x$lt_status in
18722 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18723 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18724 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18725 esac
18726 else :
18727 # compilation failed
18728 lt_cv_dlopen_self=no
18731 rm -fr conftest*
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18736 $as_echo "$lt_cv_dlopen_self" >&6; }
18738 if test "x$lt_cv_dlopen_self" = xyes; then
18739 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18741 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18742 if ${lt_cv_dlopen_self_static+:} false; then :
18743 $as_echo_n "(cached) " >&6
18744 else
18745 if test "$cross_compiling" = yes; then :
18746 lt_cv_dlopen_self_static=cross
18747 else
18748 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18749 lt_status=$lt_dlunknown
18750 cat > conftest.$ac_ext <<_LT_EOF
18751 #line $LINENO "configure"
18752 #include "confdefs.h"
18754 #if HAVE_DLFCN_H
18755 #include <dlfcn.h>
18756 #endif
18758 #include <stdio.h>
18760 #ifdef RTLD_GLOBAL
18761 # define LT_DLGLOBAL RTLD_GLOBAL
18762 #else
18763 # ifdef DL_GLOBAL
18764 # define LT_DLGLOBAL DL_GLOBAL
18765 # else
18766 # define LT_DLGLOBAL 0
18767 # endif
18768 #endif
18770 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18771 find out it does not work in some platform. */
18772 #ifndef LT_DLLAZY_OR_NOW
18773 # ifdef RTLD_LAZY
18774 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18775 # else
18776 # ifdef DL_LAZY
18777 # define LT_DLLAZY_OR_NOW DL_LAZY
18778 # else
18779 # ifdef RTLD_NOW
18780 # define LT_DLLAZY_OR_NOW RTLD_NOW
18781 # else
18782 # ifdef DL_NOW
18783 # define LT_DLLAZY_OR_NOW DL_NOW
18784 # else
18785 # define LT_DLLAZY_OR_NOW 0
18786 # endif
18787 # endif
18788 # endif
18789 # endif
18790 #endif
18792 /* When -fvisbility=hidden is used, assume the code has been annotated
18793 correspondingly for the symbols needed. */
18794 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18795 int fnord () __attribute__((visibility("default")));
18796 #endif
18798 int fnord () { return 42; }
18799 int main ()
18801 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18802 int status = $lt_dlunknown;
18804 if (self)
18806 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18807 else
18809 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18810 else puts (dlerror ());
18812 /* dlclose (self); */
18814 else
18815 puts (dlerror ());
18817 return status;
18819 _LT_EOF
18820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18821 (eval $ac_link) 2>&5
18822 ac_status=$?
18823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18824 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18825 (./conftest; exit; ) >&5 2>/dev/null
18826 lt_status=$?
18827 case x$lt_status in
18828 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18829 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18830 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18831 esac
18832 else :
18833 # compilation failed
18834 lt_cv_dlopen_self_static=no
18837 rm -fr conftest*
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18842 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18845 CPPFLAGS="$save_CPPFLAGS"
18846 LDFLAGS="$save_LDFLAGS"
18847 LIBS="$save_LIBS"
18849 esac
18851 case $lt_cv_dlopen_self in
18852 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18853 *) enable_dlopen_self=unknown ;;
18854 esac
18856 case $lt_cv_dlopen_self_static in
18857 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18858 *) enable_dlopen_self_static=unknown ;;
18859 esac
18878 striplib=
18879 old_striplib=
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18881 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18882 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18883 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18884 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18886 $as_echo "yes" >&6; }
18887 else
18888 # FIXME - insert some real tests, host_os isn't really good enough
18889 case $host_os in
18890 darwin*)
18891 if test -n "$STRIP" ; then
18892 striplib="$STRIP -x"
18893 old_striplib="$STRIP -S"
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18895 $as_echo "yes" >&6; }
18896 else
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18898 $as_echo "no" >&6; }
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18903 $as_echo "no" >&6; }
18905 esac
18919 # Report which library types will actually be built
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18921 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18923 $as_echo "$can_build_shared" >&6; }
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18926 $as_echo_n "checking whether to build shared libraries... " >&6; }
18927 test "$can_build_shared" = "no" && enable_shared=no
18929 # On AIX, shared libraries and static libraries use the same namespace, and
18930 # are all built from PIC.
18931 case $host_os in
18932 aix3*)
18933 test "$enable_shared" = yes && enable_static=no
18934 if test -n "$RANLIB"; then
18935 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18936 postinstall_cmds='$RANLIB $lib'
18940 aix[4-9]*)
18941 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18942 test "$enable_shared" = yes && enable_static=no
18945 esac
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18947 $as_echo "$enable_shared" >&6; }
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18950 $as_echo_n "checking whether to build static libraries... " >&6; }
18951 # Make sure either enable_shared or enable_static is yes.
18952 test "$enable_shared" = yes || enable_static=yes
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18954 $as_echo "$enable_static" >&6; }
18960 ac_ext=c
18961 ac_cpp='$CPP $CPPFLAGS'
18962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18966 CC="$lt_save_CC"
18968 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18969 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18970 (test "X$CXX" != "Xg++"))) ; then
18971 ac_ext=cpp
18972 ac_cpp='$CXXCPP $CPPFLAGS'
18973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18977 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18978 if test -z "$CXXCPP"; then
18979 if ${ac_cv_prog_CXXCPP+:} false; then :
18980 $as_echo_n "(cached) " >&6
18981 else
18982 # Double quotes because CXXCPP needs to be expanded
18983 for CXXCPP in "$CXX -E" "/lib/cpp"
18985 ac_preproc_ok=false
18986 for ac_cxx_preproc_warn_flag in '' yes
18988 # Use a header file that comes with gcc, so configuring glibc
18989 # with a fresh cross-compiler works.
18990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18991 # <limits.h> exists even on freestanding compilers.
18992 # On the NeXT, cc -E runs the code through the compiler's parser,
18993 # not just through cpp. "Syntax error" is here to catch this case.
18994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18995 /* end confdefs.h. */
18996 #ifdef __STDC__
18997 # include <limits.h>
18998 #else
18999 # include <assert.h>
19000 #endif
19001 Syntax error
19002 _ACEOF
19003 if ac_fn_cxx_try_cpp "$LINENO"; then :
19005 else
19006 # Broken: fails on valid input.
19007 continue
19009 rm -f conftest.err conftest.i conftest.$ac_ext
19011 # OK, works on sane cases. Now check whether nonexistent headers
19012 # can be detected and how.
19013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19014 /* end confdefs.h. */
19015 #include <ac_nonexistent.h>
19016 _ACEOF
19017 if ac_fn_cxx_try_cpp "$LINENO"; then :
19018 # Broken: success on invalid input.
19019 continue
19020 else
19021 # Passes both tests.
19022 ac_preproc_ok=:
19023 break
19025 rm -f conftest.err conftest.i conftest.$ac_ext
19027 done
19028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19029 rm -f conftest.i conftest.err conftest.$ac_ext
19030 if $ac_preproc_ok; then :
19031 break
19034 done
19035 ac_cv_prog_CXXCPP=$CXXCPP
19038 CXXCPP=$ac_cv_prog_CXXCPP
19039 else
19040 ac_cv_prog_CXXCPP=$CXXCPP
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19043 $as_echo "$CXXCPP" >&6; }
19044 ac_preproc_ok=false
19045 for ac_cxx_preproc_warn_flag in '' yes
19047 # Use a header file that comes with gcc, so configuring glibc
19048 # with a fresh cross-compiler works.
19049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19050 # <limits.h> exists even on freestanding compilers.
19051 # On the NeXT, cc -E runs the code through the compiler's parser,
19052 # not just through cpp. "Syntax error" is here to catch this case.
19053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19054 /* end confdefs.h. */
19055 #ifdef __STDC__
19056 # include <limits.h>
19057 #else
19058 # include <assert.h>
19059 #endif
19060 Syntax error
19061 _ACEOF
19062 if ac_fn_cxx_try_cpp "$LINENO"; then :
19064 else
19065 # Broken: fails on valid input.
19066 continue
19068 rm -f conftest.err conftest.i conftest.$ac_ext
19070 # OK, works on sane cases. Now check whether nonexistent headers
19071 # can be detected and how.
19072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19073 /* end confdefs.h. */
19074 #include <ac_nonexistent.h>
19075 _ACEOF
19076 if ac_fn_cxx_try_cpp "$LINENO"; then :
19077 # Broken: success on invalid input.
19078 continue
19079 else
19080 # Passes both tests.
19081 ac_preproc_ok=:
19082 break
19084 rm -f conftest.err conftest.i conftest.$ac_ext
19086 done
19087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19088 rm -f conftest.i conftest.err conftest.$ac_ext
19089 if $ac_preproc_ok; then :
19091 else
19092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19094 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19095 See \`config.log' for more details" "$LINENO" 5; }
19098 ac_ext=c
19099 ac_cpp='$CPP $CPPFLAGS'
19100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19104 else
19105 _lt_caught_CXX_error=yes
19108 ac_ext=cpp
19109 ac_cpp='$CXXCPP $CPPFLAGS'
19110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19114 archive_cmds_need_lc_CXX=no
19115 allow_undefined_flag_CXX=
19116 always_export_symbols_CXX=no
19117 archive_expsym_cmds_CXX=
19118 compiler_needs_object_CXX=no
19119 export_dynamic_flag_spec_CXX=
19120 hardcode_direct_CXX=no
19121 hardcode_direct_absolute_CXX=no
19122 hardcode_libdir_flag_spec_CXX=
19123 hardcode_libdir_separator_CXX=
19124 hardcode_minus_L_CXX=no
19125 hardcode_shlibpath_var_CXX=unsupported
19126 hardcode_automatic_CXX=no
19127 inherit_rpath_CXX=no
19128 module_cmds_CXX=
19129 module_expsym_cmds_CXX=
19130 link_all_deplibs_CXX=unknown
19131 old_archive_cmds_CXX=$old_archive_cmds
19132 reload_flag_CXX=$reload_flag
19133 reload_cmds_CXX=$reload_cmds
19134 no_undefined_flag_CXX=
19135 whole_archive_flag_spec_CXX=
19136 enable_shared_with_static_runtimes_CXX=no
19138 # Source file extension for C++ test sources.
19139 ac_ext=cpp
19141 # Object file extension for compiled C++ test sources.
19142 objext=o
19143 objext_CXX=$objext
19145 # No sense in running all these tests if we already determined that
19146 # the CXX compiler isn't working. Some variables (like enable_shared)
19147 # are currently assumed to apply to all compilers on this platform,
19148 # and will be corrupted by setting them based on a non-working compiler.
19149 if test "$_lt_caught_CXX_error" != yes; then
19150 # Code to be used in simple compile tests
19151 lt_simple_compile_test_code="int some_variable = 0;"
19153 # Code to be used in simple link tests
19154 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19156 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19163 # If no C compiler was specified, use CC.
19164 LTCC=${LTCC-"$CC"}
19166 # If no C compiler flags were specified, use CFLAGS.
19167 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19169 # Allow CC to be a program name with arguments.
19170 compiler=$CC
19173 # save warnings/boilerplate of simple test code
19174 ac_outfile=conftest.$ac_objext
19175 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19176 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19177 _lt_compiler_boilerplate=`cat conftest.err`
19178 $RM conftest*
19180 ac_outfile=conftest.$ac_objext
19181 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19182 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19183 _lt_linker_boilerplate=`cat conftest.err`
19184 $RM -r conftest*
19187 # Allow CC to be a program name with arguments.
19188 lt_save_CC=$CC
19189 lt_save_CFLAGS=$CFLAGS
19190 lt_save_LD=$LD
19191 lt_save_GCC=$GCC
19192 GCC=$GXX
19193 lt_save_with_gnu_ld=$with_gnu_ld
19194 lt_save_path_LD=$lt_cv_path_LD
19195 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19196 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19197 else
19198 $as_unset lt_cv_prog_gnu_ld
19200 if test -n "${lt_cv_path_LDCXX+set}"; then
19201 lt_cv_path_LD=$lt_cv_path_LDCXX
19202 else
19203 $as_unset lt_cv_path_LD
19205 test -z "${LDCXX+set}" || LD=$LDCXX
19206 CC=${CXX-"c++"}
19207 CFLAGS=$CXXFLAGS
19208 compiler=$CC
19209 compiler_CXX=$CC
19210 for cc_temp in $compiler""; do
19211 case $cc_temp in
19212 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19213 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19214 \-*) ;;
19215 *) break;;
19216 esac
19217 done
19218 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19221 if test -n "$compiler"; then
19222 # We don't want -fno-exception when compiling C++ code, so set the
19223 # no_builtin_flag separately
19224 if test "$GXX" = yes; then
19225 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19226 else
19227 lt_prog_compiler_no_builtin_flag_CXX=
19230 if test "$GXX" = yes; then
19231 # Set up default GNU C++ configuration
19235 # Check whether --with-gnu-ld was given.
19236 if test "${with_gnu_ld+set}" = set; then :
19237 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19238 else
19239 with_gnu_ld=no
19242 ac_prog=ld
19243 if test "$GCC" = yes; then
19244 # Check if gcc -print-prog-name=ld gives a path.
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19246 $as_echo_n "checking for ld used by $CC... " >&6; }
19247 case $host in
19248 *-*-mingw*)
19249 # gcc leaves a trailing carriage return which upsets mingw
19250 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19252 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19253 esac
19254 case $ac_prog in
19255 # Accept absolute paths.
19256 [\\/]* | ?:[\\/]*)
19257 re_direlt='/[^/][^/]*/\.\./'
19258 # Canonicalize the pathname of ld
19259 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19260 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19261 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19262 done
19263 test -z "$LD" && LD="$ac_prog"
19266 # If it fails, then pretend we aren't using GCC.
19267 ac_prog=ld
19270 # If it is relative, then search for the first ld in PATH.
19271 with_gnu_ld=unknown
19273 esac
19274 elif test "$with_gnu_ld" = yes; then
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19276 $as_echo_n "checking for GNU ld... " >&6; }
19277 else
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19279 $as_echo_n "checking for non-GNU ld... " >&6; }
19281 if ${lt_cv_path_LD+:} false; then :
19282 $as_echo_n "(cached) " >&6
19283 else
19284 if test -z "$LD"; then
19285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19286 for ac_dir in $PATH; do
19287 IFS="$lt_save_ifs"
19288 test -z "$ac_dir" && ac_dir=.
19289 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19290 lt_cv_path_LD="$ac_dir/$ac_prog"
19291 # Check to see if the program is GNU ld. I'd rather use --version,
19292 # but apparently some variants of GNU ld only accept -v.
19293 # Break only if it was the GNU/non-GNU ld that we prefer.
19294 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19295 *GNU* | *'with BFD'*)
19296 test "$with_gnu_ld" != no && break
19299 test "$with_gnu_ld" != yes && break
19301 esac
19303 done
19304 IFS="$lt_save_ifs"
19305 else
19306 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19310 LD="$lt_cv_path_LD"
19311 if test -n "$LD"; then
19312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19313 $as_echo "$LD" >&6; }
19314 else
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19316 $as_echo "no" >&6; }
19318 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19320 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19321 if ${lt_cv_prog_gnu_ld+:} false; then :
19322 $as_echo_n "(cached) " >&6
19323 else
19324 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19325 case `$LD -v 2>&1 </dev/null` in
19326 *GNU* | *'with BFD'*)
19327 lt_cv_prog_gnu_ld=yes
19330 lt_cv_prog_gnu_ld=no
19332 esac
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19335 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19336 with_gnu_ld=$lt_cv_prog_gnu_ld
19344 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19345 # archiving commands below assume that GNU ld is being used.
19346 if test "$with_gnu_ld" = yes; then
19347 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19348 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'
19350 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19351 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19353 # If archive_cmds runs LD, not CC, wlarc should be empty
19354 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19355 # investigate it a little bit more. (MM)
19356 wlarc='${wl}'
19358 # ancient GNU ld didn't support --whole-archive et. al.
19359 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19360 $GREP 'no-whole-archive' > /dev/null; then
19361 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19362 else
19363 whole_archive_flag_spec_CXX=
19365 else
19366 with_gnu_ld=no
19367 wlarc=
19369 # A generic and very simple default shared library creation
19370 # command for GNU C++ for the case where it uses the native
19371 # linker, instead of GNU ld. If possible, this setting should
19372 # overridden to take advantage of the native linker features on
19373 # the platform it is being used on.
19374 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19377 # Commands to make compiler produce verbose output that lists
19378 # what "hidden" libraries, object files and flags are used when
19379 # linking a shared library.
19380 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19382 else
19383 GXX=no
19384 with_gnu_ld=no
19385 wlarc=
19388 # PORTME: fill in a description of your system's C++ link characteristics
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19390 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19391 ld_shlibs_CXX=yes
19392 case $host_os in
19393 aix3*)
19394 # FIXME: insert proper C++ library support
19395 ld_shlibs_CXX=no
19397 aix[4-9]*)
19398 if test "$host_cpu" = ia64; then
19399 # On IA64, the linker does run time linking by default, so we don't
19400 # have to do anything special.
19401 aix_use_runtimelinking=no
19402 exp_sym_flag='-Bexport'
19403 no_entry_flag=""
19404 else
19405 aix_use_runtimelinking=no
19407 # Test if we are trying to use run time linking or normal
19408 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19409 # need to do runtime linking.
19410 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19411 for ld_flag in $LDFLAGS; do
19412 case $ld_flag in
19413 *-brtl*)
19414 aix_use_runtimelinking=yes
19415 break
19417 esac
19418 done
19420 esac
19422 exp_sym_flag='-bexport'
19423 no_entry_flag='-bnoentry'
19426 # When large executables or shared objects are built, AIX ld can
19427 # have problems creating the table of contents. If linking a library
19428 # or program results in "error TOC overflow" add -mminimal-toc to
19429 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19430 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19432 archive_cmds_CXX=''
19433 hardcode_direct_CXX=yes
19434 hardcode_direct_absolute_CXX=yes
19435 hardcode_libdir_separator_CXX=':'
19436 link_all_deplibs_CXX=yes
19437 file_list_spec_CXX='${wl}-f,'
19439 if test "$GXX" = yes; then
19440 case $host_os in aix4.[012]|aix4.[012].*)
19441 # We only want to do this on AIX 4.2 and lower, the check
19442 # below for broken collect2 doesn't work under 4.3+
19443 collect2name=`${CC} -print-prog-name=collect2`
19444 if test -f "$collect2name" &&
19445 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19446 then
19447 # We have reworked collect2
19449 else
19450 # We have old collect2
19451 hardcode_direct_CXX=unsupported
19452 # It fails to find uninstalled libraries when the uninstalled
19453 # path is not listed in the libpath. Setting hardcode_minus_L
19454 # to unsupported forces relinking
19455 hardcode_minus_L_CXX=yes
19456 hardcode_libdir_flag_spec_CXX='-L$libdir'
19457 hardcode_libdir_separator_CXX=
19459 esac
19460 shared_flag='-shared'
19461 if test "$aix_use_runtimelinking" = yes; then
19462 shared_flag="$shared_flag "'${wl}-G'
19464 else
19465 # not using gcc
19466 if test "$host_cpu" = ia64; then
19467 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19468 # chokes on -Wl,-G. The following line is correct:
19469 shared_flag='-G'
19470 else
19471 if test "$aix_use_runtimelinking" = yes; then
19472 shared_flag='${wl}-G'
19473 else
19474 shared_flag='${wl}-bM:SRE'
19479 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19480 # It seems that -bexpall does not export symbols beginning with
19481 # underscore (_), so it is better to generate a list of symbols to
19482 # export.
19483 always_export_symbols_CXX=yes
19484 if test "$aix_use_runtimelinking" = yes; then
19485 # Warning - without using the other runtime loading flags (-brtl),
19486 # -berok will link without error, but may produce a broken library.
19487 allow_undefined_flag_CXX='-berok'
19488 # Determine the default libpath from the value encoded in an empty
19489 # executable.
19490 if test "${lt_cv_aix_libpath+set}" = set; then
19491 aix_libpath=$lt_cv_aix_libpath
19492 else
19493 if ${lt_cv_aix_libpath__CXX+:} false; then :
19494 $as_echo_n "(cached) " >&6
19495 else
19496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19497 /* end confdefs.h. */
19500 main ()
19504 return 0;
19506 _ACEOF
19507 if ac_fn_cxx_try_link "$LINENO"; then :
19509 lt_aix_libpath_sed='
19510 /Import File Strings/,/^$/ {
19511 /^0/ {
19512 s/^0 *\([^ ]*\) *$/\1/
19516 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19517 # Check for a 64-bit object if we didn't find anything.
19518 if test -z "$lt_cv_aix_libpath__CXX"; then
19519 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19522 rm -f core conftest.err conftest.$ac_objext \
19523 conftest$ac_exeext conftest.$ac_ext
19524 if test -z "$lt_cv_aix_libpath__CXX"; then
19525 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
19530 aix_libpath=$lt_cv_aix_libpath__CXX
19533 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19535 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19536 else
19537 if test "$host_cpu" = ia64; then
19538 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19539 allow_undefined_flag_CXX="-z nodefs"
19540 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"
19541 else
19542 # Determine the default libpath from the value encoded in an
19543 # empty executable.
19544 if test "${lt_cv_aix_libpath+set}" = set; then
19545 aix_libpath=$lt_cv_aix_libpath
19546 else
19547 if ${lt_cv_aix_libpath__CXX+:} false; then :
19548 $as_echo_n "(cached) " >&6
19549 else
19550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19551 /* end confdefs.h. */
19554 main ()
19558 return 0;
19560 _ACEOF
19561 if ac_fn_cxx_try_link "$LINENO"; then :
19563 lt_aix_libpath_sed='
19564 /Import File Strings/,/^$/ {
19565 /^0/ {
19566 s/^0 *\([^ ]*\) *$/\1/
19570 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19571 # Check for a 64-bit object if we didn't find anything.
19572 if test -z "$lt_cv_aix_libpath__CXX"; then
19573 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19576 rm -f core conftest.err conftest.$ac_objext \
19577 conftest$ac_exeext conftest.$ac_ext
19578 if test -z "$lt_cv_aix_libpath__CXX"; then
19579 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
19584 aix_libpath=$lt_cv_aix_libpath__CXX
19587 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19588 # Warning - without using the other run time loading flags,
19589 # -berok will link without error, but may produce a broken library.
19590 no_undefined_flag_CXX=' ${wl}-bernotok'
19591 allow_undefined_flag_CXX=' ${wl}-berok'
19592 if test "$with_gnu_ld" = yes; then
19593 # We only use this code for GNU lds that support --whole-archive.
19594 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19595 else
19596 # Exported symbols can be pulled into shared objects from archives
19597 whole_archive_flag_spec_CXX='$convenience'
19599 archive_cmds_need_lc_CXX=yes
19600 # This is similar to how AIX traditionally builds its shared
19601 # libraries.
19602 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19607 beos*)
19608 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19609 allow_undefined_flag_CXX=unsupported
19610 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19611 # support --undefined. This deserves some investigation. FIXME
19612 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19613 else
19614 ld_shlibs_CXX=no
19618 chorus*)
19619 case $cc_basename in
19621 # FIXME: insert proper C++ library support
19622 ld_shlibs_CXX=no
19624 esac
19627 cygwin* | mingw* | pw32* | cegcc*)
19628 case $GXX,$cc_basename in
19629 ,cl* | no,cl*)
19630 # Native MSVC
19631 # hardcode_libdir_flag_spec is actually meaningless, as there is
19632 # no search path for DLLs.
19633 hardcode_libdir_flag_spec_CXX=' '
19634 allow_undefined_flag_CXX=unsupported
19635 always_export_symbols_CXX=yes
19636 file_list_spec_CXX='@'
19637 # Tell ltmain to make .lib files, not .a files.
19638 libext=lib
19639 # Tell ltmain to make .dll files, not .so files.
19640 shrext_cmds=".dll"
19641 # FIXME: Setting linknames here is a bad hack.
19642 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
19643 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19644 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
19645 else
19646 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
19648 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19649 linknames='
19650 # The linker will not automatically build a static lib if we build a DLL.
19651 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
19652 enable_shared_with_static_runtimes_CXX=yes
19653 # Don't use ranlib
19654 old_postinstall_cmds_CXX='chmod 644 $oldlib'
19655 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
19656 lt_tool_outputfile="@TOOL_OUTPUT@"~
19657 case $lt_outputfile in
19658 *.exe|*.EXE) ;;
19660 lt_outputfile="$lt_outputfile.exe"
19661 lt_tool_outputfile="$lt_tool_outputfile.exe"
19663 esac~
19664 func_to_tool_file "$lt_outputfile"~
19665 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
19666 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19667 $RM "$lt_outputfile.manifest";
19671 # g++
19672 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19673 # as there is no search path for DLLs.
19674 hardcode_libdir_flag_spec_CXX='-L$libdir'
19675 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19676 allow_undefined_flag_CXX=unsupported
19677 always_export_symbols_CXX=no
19678 enable_shared_with_static_runtimes_CXX=yes
19680 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19681 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'
19682 # If the export-symbols file already is a .def file (1st line
19683 # is EXPORTS), use it as is; otherwise, prepend...
19684 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19685 cp $export_symbols $output_objdir/$soname.def;
19686 else
19687 echo EXPORTS > $output_objdir/$soname.def;
19688 cat $export_symbols >> $output_objdir/$soname.def;
19690 $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'
19691 else
19692 ld_shlibs_CXX=no
19695 esac
19697 darwin* | rhapsody*)
19700 archive_cmds_need_lc_CXX=no
19701 hardcode_direct_CXX=no
19702 hardcode_automatic_CXX=yes
19703 hardcode_shlibpath_var_CXX=unsupported
19704 if test "$lt_cv_ld_force_load" = "yes"; then
19705 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\"`'
19707 else
19708 whole_archive_flag_spec_CXX=''
19710 link_all_deplibs_CXX=yes
19711 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19712 case $cc_basename in
19713 ifort*) _lt_dar_can_shared=yes ;;
19714 *) _lt_dar_can_shared=$GCC ;;
19715 esac
19716 if test "$_lt_dar_can_shared" = "yes"; then
19717 output_verbose_link_cmd=func_echo_all
19718 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}"
19719 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19720 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}"
19721 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}"
19722 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19723 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}"
19724 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}"
19727 else
19728 ld_shlibs_CXX=no
19733 dgux*)
19734 case $cc_basename in
19735 ec++*)
19736 # FIXME: insert proper C++ library support
19737 ld_shlibs_CXX=no
19739 ghcx*)
19740 # Green Hills C++ Compiler
19741 # FIXME: insert proper C++ library support
19742 ld_shlibs_CXX=no
19745 # FIXME: insert proper C++ library support
19746 ld_shlibs_CXX=no
19748 esac
19751 freebsd2.*)
19752 # C++ shared libraries reported to be fairly broken before
19753 # switch to ELF
19754 ld_shlibs_CXX=no
19757 freebsd-elf*)
19758 archive_cmds_need_lc_CXX=no
19761 freebsd* | dragonfly*)
19762 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19763 # conventions
19764 ld_shlibs_CXX=yes
19767 gnu*)
19770 haiku*)
19771 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19772 link_all_deplibs_CXX=yes
19775 hpux9*)
19776 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19777 hardcode_libdir_separator_CXX=:
19778 export_dynamic_flag_spec_CXX='${wl}-E'
19779 hardcode_direct_CXX=yes
19780 hardcode_minus_L_CXX=yes # Not in the search PATH,
19781 # but as the default
19782 # location of the library.
19784 case $cc_basename in
19785 CC*)
19786 # FIXME: insert proper C++ library support
19787 ld_shlibs_CXX=no
19789 aCC*)
19790 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19791 # Commands to make compiler produce verbose output that lists
19792 # what "hidden" libraries, object files and flags are used when
19793 # linking a shared library.
19795 # There doesn't appear to be a way to prevent this compiler from
19796 # explicitly linking system object files so we need to strip them
19797 # from the output so that they don't get included in the library
19798 # dependencies.
19799 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"'
19802 if test "$GXX" = yes; then
19803 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19804 else
19805 # FIXME: insert proper C++ library support
19806 ld_shlibs_CXX=no
19809 esac
19812 hpux10*|hpux11*)
19813 if test $with_gnu_ld = no; then
19814 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19815 hardcode_libdir_separator_CXX=:
19817 case $host_cpu in
19818 hppa*64*|ia64*)
19821 export_dynamic_flag_spec_CXX='${wl}-E'
19823 esac
19825 case $host_cpu in
19826 hppa*64*|ia64*)
19827 hardcode_direct_CXX=no
19828 hardcode_shlibpath_var_CXX=no
19831 hardcode_direct_CXX=yes
19832 hardcode_direct_absolute_CXX=yes
19833 hardcode_minus_L_CXX=yes # Not in the search PATH,
19834 # but as the default
19835 # location of the library.
19837 esac
19839 case $cc_basename in
19840 CC*)
19841 # FIXME: insert proper C++ library support
19842 ld_shlibs_CXX=no
19844 aCC*)
19845 case $host_cpu in
19846 hppa*64*)
19847 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19849 ia64*)
19850 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19853 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19855 esac
19856 # Commands to make compiler produce verbose output that lists
19857 # what "hidden" libraries, object files and flags are used when
19858 # linking a shared library.
19860 # There doesn't appear to be a way to prevent this compiler from
19861 # explicitly linking system object files so we need to strip them
19862 # from the output so that they don't get included in the library
19863 # dependencies.
19864 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"'
19867 if test "$GXX" = yes; then
19868 if test $with_gnu_ld = no; then
19869 case $host_cpu in
19870 hppa*64*)
19871 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19873 ia64*)
19874 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19877 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'
19879 esac
19881 else
19882 # FIXME: insert proper C++ library support
19883 ld_shlibs_CXX=no
19886 esac
19889 interix[3-9]*)
19890 hardcode_direct_CXX=no
19891 hardcode_shlibpath_var_CXX=no
19892 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19893 export_dynamic_flag_spec_CXX='${wl}-E'
19894 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19895 # Instead, shared libraries are loaded at an image base (0x10000000 by
19896 # default) and relocated if they conflict, which is a slow very memory
19897 # consuming and fragmenting process. To avoid this, we pick a random,
19898 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19899 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19900 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'
19901 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'
19903 irix5* | irix6*)
19904 case $cc_basename in
19905 CC*)
19906 # SGI C++
19907 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'
19909 # Archives containing C++ object files must be created using
19910 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19911 # necessary to make sure instantiated templates are included
19912 # in the archive.
19913 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19916 if test "$GXX" = yes; then
19917 if test "$with_gnu_ld" = no; then
19918 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'
19919 else
19920 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'
19923 link_all_deplibs_CXX=yes
19925 esac
19926 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19927 hardcode_libdir_separator_CXX=:
19928 inherit_rpath_CXX=yes
19931 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19932 case $cc_basename in
19933 KCC*)
19934 # Kuck and Associates, Inc. (KAI) C++ Compiler
19936 # KCC will only create a shared library if the output file
19937 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19938 # to its proper name (with version) after linking.
19939 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'
19940 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'
19941 # Commands to make compiler produce verbose output that lists
19942 # what "hidden" libraries, object files and flags are used when
19943 # linking a shared library.
19945 # There doesn't appear to be a way to prevent this compiler from
19946 # explicitly linking system object files so we need to strip them
19947 # from the output so that they don't get included in the library
19948 # dependencies.
19949 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"'
19951 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19952 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19954 # Archives containing C++ object files must be created using
19955 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19956 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19958 icpc* | ecpc* )
19959 # Intel C++
19960 with_gnu_ld=yes
19961 # version 8.0 and above of icpc choke on multiply defined symbols
19962 # if we add $predep_objects and $postdep_objects, however 7.1 and
19963 # earlier do not add the objects themselves.
19964 case `$CC -V 2>&1` in
19965 *"Version 7."*)
19966 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19967 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'
19969 *) # Version 8.0 or newer
19970 tmp_idyn=
19971 case $host_cpu in
19972 ia64*) tmp_idyn=' -i_dynamic';;
19973 esac
19974 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19975 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'
19977 esac
19978 archive_cmds_need_lc_CXX=no
19979 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19980 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19981 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19983 pgCC* | pgcpp*)
19984 # Portland Group C++ compiler
19985 case `$CC -V` in
19986 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19987 prelink_cmds_CXX='tpldir=Template.dir~
19988 rm -rf $tpldir~
19989 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19990 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19991 old_archive_cmds_CXX='tpldir=Template.dir~
19992 rm -rf $tpldir~
19993 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19994 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19995 $RANLIB $oldlib'
19996 archive_cmds_CXX='tpldir=Template.dir~
19997 rm -rf $tpldir~
19998 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19999 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20000 archive_expsym_cmds_CXX='tpldir=Template.dir~
20001 rm -rf $tpldir~
20002 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20003 $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'
20005 *) # Version 6 and above use weak symbols
20006 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20007 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'
20009 esac
20011 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20012 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20013 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'
20015 cxx*)
20016 # Compaq C++
20017 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20018 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'
20020 runpath_var=LD_RUN_PATH
20021 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20022 hardcode_libdir_separator_CXX=:
20024 # Commands to make compiler produce verbose output that lists
20025 # what "hidden" libraries, object files and flags are used when
20026 # linking a shared library.
20028 # There doesn't appear to be a way to prevent this compiler from
20029 # explicitly linking system object files so we need to strip them
20030 # from the output so that they don't get included in the library
20031 # dependencies.
20032 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'
20034 xl* | mpixl* | bgxl*)
20035 # IBM XL 8.0 on PPC, with GNU ld
20036 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20037 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20038 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20039 if test "x$supports_anon_versioning" = xyes; then
20040 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20041 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20042 echo "local: *; };" >> $output_objdir/$libname.ver~
20043 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20047 case `$CC -V 2>&1 | sed 5q` in
20048 *Sun\ C*)
20049 # Sun C++ 5.9
20050 no_undefined_flag_CXX=' -zdefs'
20051 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20052 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'
20053 hardcode_libdir_flag_spec_CXX='-R$libdir'
20054 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'
20055 compiler_needs_object_CXX=yes
20057 # Not sure whether something based on
20058 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20059 # would be better.
20060 output_verbose_link_cmd='func_echo_all'
20062 # Archives containing C++ object files must be created using
20063 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20064 # necessary to make sure instantiated templates are included
20065 # in the archive.
20066 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20068 esac
20070 esac
20073 lynxos*)
20074 # FIXME: insert proper C++ library support
20075 ld_shlibs_CXX=no
20078 m88k*)
20079 # FIXME: insert proper C++ library support
20080 ld_shlibs_CXX=no
20083 mvs*)
20084 case $cc_basename in
20085 cxx*)
20086 # FIXME: insert proper C++ library support
20087 ld_shlibs_CXX=no
20090 # FIXME: insert proper C++ library support
20091 ld_shlibs_CXX=no
20093 esac
20096 netbsd*)
20097 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20098 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20099 wlarc=
20100 hardcode_libdir_flag_spec_CXX='-R$libdir'
20101 hardcode_direct_CXX=yes
20102 hardcode_shlibpath_var_CXX=no
20104 # Workaround some broken pre-1.5 toolchains
20105 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20108 *nto* | *qnx*)
20109 ld_shlibs_CXX=yes
20112 openbsd2*)
20113 # C++ shared libraries are fairly broken
20114 ld_shlibs_CXX=no
20117 openbsd*)
20118 if test -f /usr/libexec/ld.so; then
20119 hardcode_direct_CXX=yes
20120 hardcode_shlibpath_var_CXX=no
20121 hardcode_direct_absolute_CXX=yes
20122 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20123 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20124 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20125 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20126 export_dynamic_flag_spec_CXX='${wl}-E'
20127 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20129 output_verbose_link_cmd=func_echo_all
20130 else
20131 ld_shlibs_CXX=no
20135 osf3* | osf4* | osf5*)
20136 case $cc_basename in
20137 KCC*)
20138 # Kuck and Associates, Inc. (KAI) C++ Compiler
20140 # KCC will only create a shared library if the output file
20141 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20142 # to its proper name (with version) after linking.
20143 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'
20145 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20146 hardcode_libdir_separator_CXX=:
20148 # Archives containing C++ object files must be created using
20149 # the KAI C++ compiler.
20150 case $host in
20151 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20152 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20153 esac
20155 RCC*)
20156 # Rational C++ 2.4.1
20157 # FIXME: insert proper C++ library support
20158 ld_shlibs_CXX=no
20160 cxx*)
20161 case $host in
20162 osf3*)
20163 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20164 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'
20165 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20168 allow_undefined_flag_CXX=' -expect_unresolved \*'
20169 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'
20170 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20171 echo "-hidden">> $lib.exp~
20172 $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~
20173 $RM $lib.exp'
20174 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20176 esac
20178 hardcode_libdir_separator_CXX=:
20180 # Commands to make compiler produce verbose output that lists
20181 # what "hidden" libraries, object files and flags are used when
20182 # linking a shared library.
20184 # There doesn't appear to be a way to prevent this compiler from
20185 # explicitly linking system object files so we need to strip them
20186 # from the output so that they don't get included in the library
20187 # dependencies.
20188 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"'
20191 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20192 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20193 case $host in
20194 osf3*)
20195 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'
20198 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'
20200 esac
20202 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20203 hardcode_libdir_separator_CXX=:
20205 # Commands to make compiler produce verbose output that lists
20206 # what "hidden" libraries, object files and flags are used when
20207 # linking a shared library.
20208 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20210 else
20211 # FIXME: insert proper C++ library support
20212 ld_shlibs_CXX=no
20215 esac
20218 psos*)
20219 # FIXME: insert proper C++ library support
20220 ld_shlibs_CXX=no
20223 sunos4*)
20224 case $cc_basename in
20225 CC*)
20226 # Sun C++ 4.x
20227 # FIXME: insert proper C++ library support
20228 ld_shlibs_CXX=no
20230 lcc*)
20231 # Lucid
20232 # FIXME: insert proper C++ library support
20233 ld_shlibs_CXX=no
20236 # FIXME: insert proper C++ library support
20237 ld_shlibs_CXX=no
20239 esac
20242 solaris*)
20243 case $cc_basename in
20244 CC* | sunCC*)
20245 # Sun C++ 4.2, 5.x and Centerline C++
20246 archive_cmds_need_lc_CXX=yes
20247 no_undefined_flag_CXX=' -zdefs'
20248 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20249 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20250 $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'
20252 hardcode_libdir_flag_spec_CXX='-R$libdir'
20253 hardcode_shlibpath_var_CXX=no
20254 case $host_os in
20255 solaris2.[0-5] | solaris2.[0-5].*) ;;
20257 # The compiler driver will combine and reorder linker options,
20258 # but understands `-z linker_flag'.
20259 # Supported since Solaris 2.6 (maybe 2.5.1?)
20260 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20262 esac
20263 link_all_deplibs_CXX=yes
20265 output_verbose_link_cmd='func_echo_all'
20267 # Archives containing C++ object files must be created using
20268 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20269 # necessary to make sure instantiated templates are included
20270 # in the archive.
20271 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20273 gcx*)
20274 # Green Hills C++ Compiler
20275 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20277 # The C++ compiler must be used to create the archive.
20278 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20281 # GNU C++ compiler with Solaris linker
20282 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20283 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20284 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20285 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20286 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20287 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20289 # Commands to make compiler produce verbose output that lists
20290 # what "hidden" libraries, object files and flags are used when
20291 # linking a shared library.
20292 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20293 else
20294 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20295 # platform.
20296 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20297 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20298 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20300 # Commands to make compiler produce verbose output that lists
20301 # what "hidden" libraries, object files and flags are used when
20302 # linking a shared library.
20303 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20306 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20307 case $host_os in
20308 solaris2.[0-5] | solaris2.[0-5].*) ;;
20310 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20312 esac
20315 esac
20318 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20319 no_undefined_flag_CXX='${wl}-z,text'
20320 archive_cmds_need_lc_CXX=no
20321 hardcode_shlibpath_var_CXX=no
20322 runpath_var='LD_RUN_PATH'
20324 case $cc_basename in
20325 CC*)
20326 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20327 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20330 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20331 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20333 esac
20336 sysv5* | sco3.2v5* | sco5v6*)
20337 # Note: We can NOT use -z defs as we might desire, because we do not
20338 # link with -lc, and that would cause any symbols used from libc to
20339 # always be unresolved, which means just about no library would
20340 # ever link correctly. If we're not using GNU ld we use -z text
20341 # though, which does catch some bad symbols but isn't as heavy-handed
20342 # as -z defs.
20343 no_undefined_flag_CXX='${wl}-z,text'
20344 allow_undefined_flag_CXX='${wl}-z,nodefs'
20345 archive_cmds_need_lc_CXX=no
20346 hardcode_shlibpath_var_CXX=no
20347 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20348 hardcode_libdir_separator_CXX=':'
20349 link_all_deplibs_CXX=yes
20350 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20351 runpath_var='LD_RUN_PATH'
20353 case $cc_basename in
20354 CC*)
20355 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20356 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20357 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20358 '"$old_archive_cmds_CXX"
20359 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20360 '"$reload_cmds_CXX"
20363 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20364 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20366 esac
20369 tandem*)
20370 case $cc_basename in
20371 NCC*)
20372 # NonStop-UX NCC 3.20
20373 # FIXME: insert proper C++ library support
20374 ld_shlibs_CXX=no
20377 # FIXME: insert proper C++ library support
20378 ld_shlibs_CXX=no
20380 esac
20383 vxworks*)
20384 # FIXME: insert proper C++ library support
20385 ld_shlibs_CXX=no
20389 # FIXME: insert proper C++ library support
20390 ld_shlibs_CXX=no
20392 esac
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20395 $as_echo "$ld_shlibs_CXX" >&6; }
20396 test "$ld_shlibs_CXX" = no && can_build_shared=no
20398 GCC_CXX="$GXX"
20399 LD_CXX="$LD"
20401 ## CAVEAT EMPTOR:
20402 ## There is no encapsulation within the following macros, do not change
20403 ## the running order or otherwise move them around unless you know exactly
20404 ## what you are doing...
20405 # Dependencies to place before and after the object being linked:
20406 predep_objects_CXX=
20407 postdep_objects_CXX=
20408 predeps_CXX=
20409 postdeps_CXX=
20410 compiler_lib_search_path_CXX=
20412 cat > conftest.$ac_ext <<_LT_EOF
20413 class Foo
20415 public:
20416 Foo (void) { a = 0; }
20417 private:
20418 int a;
20420 _LT_EOF
20423 _lt_libdeps_save_CFLAGS=$CFLAGS
20424 case "$CC $CFLAGS " in #(
20425 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
20426 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
20427 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
20428 esac
20430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20431 (eval $ac_compile) 2>&5
20432 ac_status=$?
20433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20434 test $ac_status = 0; }; then
20435 # Parse the compiler output and extract the necessary
20436 # objects, libraries and library flags.
20438 # Sentinel used to keep track of whether or not we are before
20439 # the conftest object file.
20440 pre_test_object_deps_done=no
20442 for p in `eval "$output_verbose_link_cmd"`; do
20443 case ${prev}${p} in
20445 -L* | -R* | -l*)
20446 # Some compilers place space between "-{L,R}" and the path.
20447 # Remove the space.
20448 if test $p = "-L" ||
20449 test $p = "-R"; then
20450 prev=$p
20451 continue
20454 # Expand the sysroot to ease extracting the directories later.
20455 if test -z "$prev"; then
20456 case $p in
20457 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
20458 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
20459 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
20460 esac
20462 case $p in
20463 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
20464 esac
20465 if test "$pre_test_object_deps_done" = no; then
20466 case ${prev} in
20467 -L | -R)
20468 # Internal compiler library paths should come after those
20469 # provided the user. The postdeps already come after the
20470 # user supplied libs so there is no need to process them.
20471 if test -z "$compiler_lib_search_path_CXX"; then
20472 compiler_lib_search_path_CXX="${prev}${p}"
20473 else
20474 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20477 # The "-l" case would never come before the object being
20478 # linked, so don't bother handling this case.
20479 esac
20480 else
20481 if test -z "$postdeps_CXX"; then
20482 postdeps_CXX="${prev}${p}"
20483 else
20484 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20487 prev=
20490 *.lto.$objext) ;; # Ignore GCC LTO objects
20491 *.$objext)
20492 # This assumes that the test object file only shows up
20493 # once in the compiler output.
20494 if test "$p" = "conftest.$objext"; then
20495 pre_test_object_deps_done=yes
20496 continue
20499 if test "$pre_test_object_deps_done" = no; then
20500 if test -z "$predep_objects_CXX"; then
20501 predep_objects_CXX="$p"
20502 else
20503 predep_objects_CXX="$predep_objects_CXX $p"
20505 else
20506 if test -z "$postdep_objects_CXX"; then
20507 postdep_objects_CXX="$p"
20508 else
20509 postdep_objects_CXX="$postdep_objects_CXX $p"
20514 *) ;; # Ignore the rest.
20516 esac
20517 done
20519 # Clean up.
20520 rm -f a.out a.exe
20521 else
20522 echo "libtool.m4: error: problem compiling CXX test program"
20525 $RM -f confest.$objext
20526 CFLAGS=$_lt_libdeps_save_CFLAGS
20528 # PORTME: override above test on systems where it is broken
20529 case $host_os in
20530 interix[3-9]*)
20531 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20532 # hack all around it, let's just trust "g++" to DTRT.
20533 predep_objects_CXX=
20534 postdep_objects_CXX=
20535 postdeps_CXX=
20538 linux*)
20539 case `$CC -V 2>&1 | sed 5q` in
20540 *Sun\ C*)
20541 # Sun C++ 5.9
20543 # The more standards-conforming stlport4 library is
20544 # incompatible with the Cstd library. Avoid specifying
20545 # it if it's in CXXFLAGS. Ignore libCrun as
20546 # -library=stlport4 depends on it.
20547 case " $CXX $CXXFLAGS " in
20548 *" -library=stlport4 "*)
20549 solaris_use_stlport4=yes
20551 esac
20553 if test "$solaris_use_stlport4" != yes; then
20554 postdeps_CXX='-library=Cstd -library=Crun'
20557 esac
20560 solaris*)
20561 case $cc_basename in
20562 CC* | sunCC*)
20563 # The more standards-conforming stlport4 library is
20564 # incompatible with the Cstd library. Avoid specifying
20565 # it if it's in CXXFLAGS. Ignore libCrun as
20566 # -library=stlport4 depends on it.
20567 case " $CXX $CXXFLAGS " in
20568 *" -library=stlport4 "*)
20569 solaris_use_stlport4=yes
20571 esac
20573 # Adding this requires a known-good setup of shared libraries for
20574 # Sun compiler versions before 5.6, else PIC objects from an old
20575 # archive will be linked into the output, leading to subtle bugs.
20576 if test "$solaris_use_stlport4" != yes; then
20577 postdeps_CXX='-library=Cstd -library=Crun'
20580 esac
20582 esac
20585 case " $postdeps_CXX " in
20586 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20587 esac
20588 compiler_lib_search_dirs_CXX=
20589 if test -n "${compiler_lib_search_path_CXX}"; then
20590 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20623 lt_prog_compiler_wl_CXX=
20624 lt_prog_compiler_pic_CXX=
20625 lt_prog_compiler_static_CXX=
20628 # C++ specific cases for pic, static, wl, etc.
20629 if test "$GXX" = yes; then
20630 lt_prog_compiler_wl_CXX='-Wl,'
20631 lt_prog_compiler_static_CXX='-static'
20633 case $host_os in
20634 aix*)
20635 # All AIX code is PIC.
20636 if test "$host_cpu" = ia64; then
20637 # AIX 5 now supports IA64 processor
20638 lt_prog_compiler_static_CXX='-Bstatic'
20642 amigaos*)
20643 case $host_cpu in
20644 powerpc)
20645 # see comment about AmigaOS4 .so support
20646 lt_prog_compiler_pic_CXX='-fPIC'
20648 m68k)
20649 # FIXME: we need at least 68020 code to build shared libraries, but
20650 # adding the `-m68020' flag to GCC prevents building anything better,
20651 # like `-m68040'.
20652 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20654 esac
20657 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20658 # PIC is the default for these OSes.
20660 mingw* | cygwin* | os2* | pw32* | cegcc*)
20661 # This hack is so that the source file can tell whether it is being
20662 # built for inclusion in a dll (and should export symbols for example).
20663 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20664 # (--disable-auto-import) libraries
20665 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20667 darwin* | rhapsody*)
20668 # PIC is the default on this platform
20669 # Common symbols not allowed in MH_DYLIB files
20670 lt_prog_compiler_pic_CXX='-fno-common'
20672 *djgpp*)
20673 # DJGPP does not support shared libraries at all
20674 lt_prog_compiler_pic_CXX=
20676 haiku*)
20677 # PIC is the default for Haiku.
20678 # The "-static" flag exists, but is broken.
20679 lt_prog_compiler_static_CXX=
20681 interix[3-9]*)
20682 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20683 # Instead, we relocate shared libraries at runtime.
20685 sysv4*MP*)
20686 if test -d /usr/nec; then
20687 lt_prog_compiler_pic_CXX=-Kconform_pic
20690 hpux*)
20691 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20692 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20693 # sets the default TLS model and affects inlining.
20694 case $host_cpu in
20695 hppa*64*)
20698 lt_prog_compiler_pic_CXX='-fPIC'
20700 esac
20702 *qnx* | *nto*)
20703 # QNX uses GNU C++, but need to define -shared option too, otherwise
20704 # it will coredump.
20705 lt_prog_compiler_pic_CXX='-fPIC -shared'
20708 lt_prog_compiler_pic_CXX='-fPIC'
20710 esac
20711 else
20712 case $host_os in
20713 aix[4-9]*)
20714 # All AIX code is PIC.
20715 if test "$host_cpu" = ia64; then
20716 # AIX 5 now supports IA64 processor
20717 lt_prog_compiler_static_CXX='-Bstatic'
20718 else
20719 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20722 chorus*)
20723 case $cc_basename in
20724 cxch68*)
20725 # Green Hills C++ Compiler
20726 # _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"
20728 esac
20730 mingw* | cygwin* | os2* | pw32* | cegcc*)
20731 # This hack is so that the source file can tell whether it is being
20732 # built for inclusion in a dll (and should export symbols for example).
20733 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20735 dgux*)
20736 case $cc_basename in
20737 ec++*)
20738 lt_prog_compiler_pic_CXX='-KPIC'
20740 ghcx*)
20741 # Green Hills C++ Compiler
20742 lt_prog_compiler_pic_CXX='-pic'
20746 esac
20748 freebsd* | dragonfly*)
20749 # FreeBSD uses GNU C++
20751 hpux9* | hpux10* | hpux11*)
20752 case $cc_basename in
20753 CC*)
20754 lt_prog_compiler_wl_CXX='-Wl,'
20755 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20756 if test "$host_cpu" != ia64; then
20757 lt_prog_compiler_pic_CXX='+Z'
20760 aCC*)
20761 lt_prog_compiler_wl_CXX='-Wl,'
20762 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20763 case $host_cpu in
20764 hppa*64*|ia64*)
20765 # +Z the default
20768 lt_prog_compiler_pic_CXX='+Z'
20770 esac
20774 esac
20776 interix*)
20777 # This is c89, which is MS Visual C++ (no shared libs)
20778 # Anyone wants to do a port?
20780 irix5* | irix6* | nonstopux*)
20781 case $cc_basename in
20782 CC*)
20783 lt_prog_compiler_wl_CXX='-Wl,'
20784 lt_prog_compiler_static_CXX='-non_shared'
20785 # CC pic flag -KPIC is the default.
20789 esac
20791 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20792 case $cc_basename in
20793 KCC*)
20794 # KAI C++ Compiler
20795 lt_prog_compiler_wl_CXX='--backend -Wl,'
20796 lt_prog_compiler_pic_CXX='-fPIC'
20798 ecpc* )
20799 # old Intel C++ for x86_64 which still supported -KPIC.
20800 lt_prog_compiler_wl_CXX='-Wl,'
20801 lt_prog_compiler_pic_CXX='-KPIC'
20802 lt_prog_compiler_static_CXX='-static'
20804 icpc* )
20805 # Intel C++, used to be incompatible with GCC.
20806 # ICC 10 doesn't accept -KPIC any more.
20807 lt_prog_compiler_wl_CXX='-Wl,'
20808 lt_prog_compiler_pic_CXX='-fPIC'
20809 lt_prog_compiler_static_CXX='-static'
20811 pgCC* | pgcpp*)
20812 # Portland Group C++ compiler
20813 lt_prog_compiler_wl_CXX='-Wl,'
20814 lt_prog_compiler_pic_CXX='-fpic'
20815 lt_prog_compiler_static_CXX='-Bstatic'
20817 cxx*)
20818 # Compaq C++
20819 # Make sure the PIC flag is empty. It appears that all Alpha
20820 # Linux and Compaq Tru64 Unix objects are PIC.
20821 lt_prog_compiler_pic_CXX=
20822 lt_prog_compiler_static_CXX='-non_shared'
20824 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20825 # IBM XL 8.0, 9.0 on PPC and BlueGene
20826 lt_prog_compiler_wl_CXX='-Wl,'
20827 lt_prog_compiler_pic_CXX='-qpic'
20828 lt_prog_compiler_static_CXX='-qstaticlink'
20831 case `$CC -V 2>&1 | sed 5q` in
20832 *Sun\ C*)
20833 # Sun C++ 5.9
20834 lt_prog_compiler_pic_CXX='-KPIC'
20835 lt_prog_compiler_static_CXX='-Bstatic'
20836 lt_prog_compiler_wl_CXX='-Qoption ld '
20838 esac
20840 esac
20842 lynxos*)
20844 m88k*)
20846 mvs*)
20847 case $cc_basename in
20848 cxx*)
20849 lt_prog_compiler_pic_CXX='-W c,exportall'
20853 esac
20855 netbsd*)
20857 *qnx* | *nto*)
20858 # QNX uses GNU C++, but need to define -shared option too, otherwise
20859 # it will coredump.
20860 lt_prog_compiler_pic_CXX='-fPIC -shared'
20862 osf3* | osf4* | osf5*)
20863 case $cc_basename in
20864 KCC*)
20865 lt_prog_compiler_wl_CXX='--backend -Wl,'
20867 RCC*)
20868 # Rational C++ 2.4.1
20869 lt_prog_compiler_pic_CXX='-pic'
20871 cxx*)
20872 # Digital/Compaq C++
20873 lt_prog_compiler_wl_CXX='-Wl,'
20874 # Make sure the PIC flag is empty. It appears that all Alpha
20875 # Linux and Compaq Tru64 Unix objects are PIC.
20876 lt_prog_compiler_pic_CXX=
20877 lt_prog_compiler_static_CXX='-non_shared'
20881 esac
20883 psos*)
20885 solaris*)
20886 case $cc_basename in
20887 CC* | sunCC*)
20888 # Sun C++ 4.2, 5.x and Centerline C++
20889 lt_prog_compiler_pic_CXX='-KPIC'
20890 lt_prog_compiler_static_CXX='-Bstatic'
20891 lt_prog_compiler_wl_CXX='-Qoption ld '
20893 gcx*)
20894 # Green Hills C++ Compiler
20895 lt_prog_compiler_pic_CXX='-PIC'
20899 esac
20901 sunos4*)
20902 case $cc_basename in
20903 CC*)
20904 # Sun C++ 4.x
20905 lt_prog_compiler_pic_CXX='-pic'
20906 lt_prog_compiler_static_CXX='-Bstatic'
20908 lcc*)
20909 # Lucid
20910 lt_prog_compiler_pic_CXX='-pic'
20914 esac
20916 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20917 case $cc_basename in
20918 CC*)
20919 lt_prog_compiler_wl_CXX='-Wl,'
20920 lt_prog_compiler_pic_CXX='-KPIC'
20921 lt_prog_compiler_static_CXX='-Bstatic'
20923 esac
20925 tandem*)
20926 case $cc_basename in
20927 NCC*)
20928 # NonStop-UX NCC 3.20
20929 lt_prog_compiler_pic_CXX='-KPIC'
20933 esac
20935 vxworks*)
20938 lt_prog_compiler_can_build_shared_CXX=no
20940 esac
20943 case $host_os in
20944 # For platforms which do not support PIC, -DPIC is meaningless:
20945 *djgpp*)
20946 lt_prog_compiler_pic_CXX=
20949 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20951 esac
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20954 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20955 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20956 $as_echo_n "(cached) " >&6
20957 else
20958 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20961 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20962 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
20965 # Check to make sure the PIC flag actually works.
20967 if test -n "$lt_prog_compiler_pic_CXX"; then
20968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20969 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20970 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
20971 $as_echo_n "(cached) " >&6
20972 else
20973 lt_cv_prog_compiler_pic_works_CXX=no
20974 ac_outfile=conftest.$ac_objext
20975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20976 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20977 # Insert the option either (1) after the last *FLAGS variable, or
20978 # (2) before a word containing "conftest.", or (3) at the end.
20979 # Note that $ac_compile itself does not contain backslashes and begins
20980 # with a dollar sign (not a hyphen), so the echo should work correctly.
20981 # The option is referenced via a variable to avoid confusing sed.
20982 lt_compile=`echo "$ac_compile" | $SED \
20983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20985 -e 's:$: $lt_compiler_flag:'`
20986 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20987 (eval "$lt_compile" 2>conftest.err)
20988 ac_status=$?
20989 cat conftest.err >&5
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 if (exit $ac_status) && test -s "$ac_outfile"; then
20992 # The compiler can only warn and ignore the option if not recognized
20993 # So say no if there are warnings other than the usual output.
20994 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20996 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20997 lt_cv_prog_compiler_pic_works_CXX=yes
21000 $RM conftest*
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21004 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21006 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21007 case $lt_prog_compiler_pic_CXX in
21008 "" | " "*) ;;
21009 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21010 esac
21011 else
21012 lt_prog_compiler_pic_CXX=
21013 lt_prog_compiler_can_build_shared_CXX=no
21023 # Check to make sure the static flag actually works.
21025 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21027 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21028 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21029 $as_echo_n "(cached) " >&6
21030 else
21031 lt_cv_prog_compiler_static_works_CXX=no
21032 save_LDFLAGS="$LDFLAGS"
21033 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21034 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21035 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21036 # The linker can only warn and ignore the option if not recognized
21037 # So say no if there are warnings
21038 if test -s conftest.err; then
21039 # Append any errors to the config.log.
21040 cat conftest.err 1>&5
21041 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21042 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21043 if diff conftest.exp conftest.er2 >/dev/null; then
21044 lt_cv_prog_compiler_static_works_CXX=yes
21046 else
21047 lt_cv_prog_compiler_static_works_CXX=yes
21050 $RM -r conftest*
21051 LDFLAGS="$save_LDFLAGS"
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21055 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21057 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21059 else
21060 lt_prog_compiler_static_CXX=
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21067 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21068 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21069 $as_echo_n "(cached) " >&6
21070 else
21071 lt_cv_prog_compiler_c_o_CXX=no
21072 $RM -r conftest 2>/dev/null
21073 mkdir conftest
21074 cd conftest
21075 mkdir out
21076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21078 lt_compiler_flag="-o out/conftest2.$ac_objext"
21079 # Insert the option either (1) after the last *FLAGS variable, or
21080 # (2) before a word containing "conftest.", or (3) at the end.
21081 # Note that $ac_compile itself does not contain backslashes and begins
21082 # with a dollar sign (not a hyphen), so the echo should work correctly.
21083 lt_compile=`echo "$ac_compile" | $SED \
21084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21086 -e 's:$: $lt_compiler_flag:'`
21087 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21088 (eval "$lt_compile" 2>out/conftest.err)
21089 ac_status=$?
21090 cat out/conftest.err >&5
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21093 then
21094 # The compiler can only warn and ignore the option if not recognized
21095 # So say no if there are warnings
21096 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21097 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21098 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21099 lt_cv_prog_compiler_c_o_CXX=yes
21102 chmod u+w . 2>&5
21103 $RM conftest*
21104 # SGI C++ compiler will create directory out/ii_files/ for
21105 # template instantiation
21106 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21107 $RM out/* && rmdir out
21108 cd ..
21109 $RM -r conftest
21110 $RM conftest*
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21114 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21119 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21120 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21121 $as_echo_n "(cached) " >&6
21122 else
21123 lt_cv_prog_compiler_c_o_CXX=no
21124 $RM -r conftest 2>/dev/null
21125 mkdir conftest
21126 cd conftest
21127 mkdir out
21128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21130 lt_compiler_flag="-o out/conftest2.$ac_objext"
21131 # Insert the option either (1) after the last *FLAGS variable, or
21132 # (2) before a word containing "conftest.", or (3) at the end.
21133 # Note that $ac_compile itself does not contain backslashes and begins
21134 # with a dollar sign (not a hyphen), so the echo should work correctly.
21135 lt_compile=`echo "$ac_compile" | $SED \
21136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21138 -e 's:$: $lt_compiler_flag:'`
21139 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21140 (eval "$lt_compile" 2>out/conftest.err)
21141 ac_status=$?
21142 cat out/conftest.err >&5
21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21145 then
21146 # The compiler can only warn and ignore the option if not recognized
21147 # So say no if there are warnings
21148 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21149 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21150 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21151 lt_cv_prog_compiler_c_o_CXX=yes
21154 chmod u+w . 2>&5
21155 $RM conftest*
21156 # SGI C++ compiler will create directory out/ii_files/ for
21157 # template instantiation
21158 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21159 $RM out/* && rmdir out
21160 cd ..
21161 $RM -r conftest
21162 $RM conftest*
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21166 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21171 hard_links="nottested"
21172 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21173 # do not overwrite the value of need_locks provided by the user
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21175 $as_echo_n "checking if we can lock with hard links... " >&6; }
21176 hard_links=yes
21177 $RM conftest*
21178 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21179 touch conftest.a
21180 ln conftest.a conftest.b 2>&5 || hard_links=no
21181 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21183 $as_echo "$hard_links" >&6; }
21184 if test "$hard_links" = no; then
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21186 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21187 need_locks=warn
21189 else
21190 need_locks=no
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21196 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21198 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21199 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21200 case $host_os in
21201 aix[4-9]*)
21202 # If we're using GNU nm, then we don't want the "-C" option.
21203 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21204 # Also, AIX nm treats weak defined symbols like other global defined
21205 # symbols, whereas GNU nm marks them as "W".
21206 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21207 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
21208 else
21209 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
21212 pw32*)
21213 export_symbols_cmds_CXX="$ltdll_cmds"
21215 cygwin* | mingw* | cegcc*)
21216 case $cc_basename in
21217 cl*)
21218 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
21221 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'
21222 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
21224 esac
21227 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21229 esac
21231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21232 $as_echo "$ld_shlibs_CXX" >&6; }
21233 test "$ld_shlibs_CXX" = no && can_build_shared=no
21235 with_gnu_ld_CXX=$with_gnu_ld
21243 # Do we need to explicitly link libc?
21245 case "x$archive_cmds_need_lc_CXX" in
21246 x|xyes)
21247 # Assume -lc should be added
21248 archive_cmds_need_lc_CXX=yes
21250 if test "$enable_shared" = yes && test "$GCC" = yes; then
21251 case $archive_cmds_CXX in
21252 *'~'*)
21253 # FIXME: we may have to deal with multi-command sequences.
21255 '$CC '*)
21256 # Test whether the compiler implicitly links with -lc since on some
21257 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21258 # to ld, don't add -lc before -lgcc.
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21260 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21261 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21262 $as_echo_n "(cached) " >&6
21263 else
21264 $RM conftest*
21265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21268 (eval $ac_compile) 2>&5
21269 ac_status=$?
21270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21271 test $ac_status = 0; } 2>conftest.err; then
21272 soname=conftest
21273 lib=conftest
21274 libobjs=conftest.$ac_objext
21275 deplibs=
21276 wl=$lt_prog_compiler_wl_CXX
21277 pic_flag=$lt_prog_compiler_pic_CXX
21278 compiler_flags=-v
21279 linker_flags=-v
21280 verstring=
21281 output_objdir=.
21282 libname=conftest
21283 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21284 allow_undefined_flag_CXX=
21285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21286 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21287 ac_status=$?
21288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21289 test $ac_status = 0; }
21290 then
21291 lt_cv_archive_cmds_need_lc_CXX=no
21292 else
21293 lt_cv_archive_cmds_need_lc_CXX=yes
21295 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21296 else
21297 cat conftest.err 1>&5
21299 $RM conftest*
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21303 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21304 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21306 esac
21309 esac
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21373 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21375 library_names_spec=
21376 libname_spec='lib$name'
21377 soname_spec=
21378 shrext_cmds=".so"
21379 postinstall_cmds=
21380 postuninstall_cmds=
21381 finish_cmds=
21382 finish_eval=
21383 shlibpath_var=
21384 shlibpath_overrides_runpath=unknown
21385 version_type=none
21386 dynamic_linker="$host_os ld.so"
21387 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21388 need_lib_prefix=unknown
21389 hardcode_into_libs=no
21391 # when you set need_version to no, make sure it does not cause -set_version
21392 # flags to be left without arguments
21393 need_version=unknown
21395 case $host_os in
21396 aix3*)
21397 version_type=linux # correct to gnu/linux during the next big refactor
21398 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21399 shlibpath_var=LIBPATH
21401 # AIX 3 has no versioning support, so we append a major version to the name.
21402 soname_spec='${libname}${release}${shared_ext}$major'
21405 aix[4-9]*)
21406 version_type=linux # correct to gnu/linux during the next big refactor
21407 need_lib_prefix=no
21408 need_version=no
21409 hardcode_into_libs=yes
21410 if test "$host_cpu" = ia64; then
21411 # AIX 5 supports IA64
21412 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21413 shlibpath_var=LD_LIBRARY_PATH
21414 else
21415 # With GCC up to 2.95.x, collect2 would create an import file
21416 # for dependence libraries. The import file would start with
21417 # the line `#! .'. This would cause the generated library to
21418 # depend on `.', always an invalid library. This was fixed in
21419 # development snapshots of GCC prior to 3.0.
21420 case $host_os in
21421 aix4 | aix4.[01] | aix4.[01].*)
21422 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21423 echo ' yes '
21424 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21426 else
21427 can_build_shared=no
21430 esac
21431 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21432 # soname into executable. Probably we can add versioning support to
21433 # collect2, so additional links can be useful in future.
21434 if test "$aix_use_runtimelinking" = yes; then
21435 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21436 # instead of lib<name>.a to let people know that these are not
21437 # typical AIX shared libraries.
21438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21439 else
21440 # We preserve .a as extension for shared libraries through AIX4.2
21441 # and later when we are not doing run time linking.
21442 library_names_spec='${libname}${release}.a $libname.a'
21443 soname_spec='${libname}${release}${shared_ext}$major'
21445 shlibpath_var=LIBPATH
21449 amigaos*)
21450 case $host_cpu in
21451 powerpc)
21452 # Since July 2007 AmigaOS4 officially supports .so libraries.
21453 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21456 m68k)
21457 library_names_spec='$libname.ixlibrary $libname.a'
21458 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21459 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
21461 esac
21464 beos*)
21465 library_names_spec='${libname}${shared_ext}'
21466 dynamic_linker="$host_os ld.so"
21467 shlibpath_var=LIBRARY_PATH
21470 bsdi[45]*)
21471 version_type=linux # correct to gnu/linux during the next big refactor
21472 need_version=no
21473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21474 soname_spec='${libname}${release}${shared_ext}$major'
21475 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21476 shlibpath_var=LD_LIBRARY_PATH
21477 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21478 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21479 # the default ld.so.conf also contains /usr/contrib/lib and
21480 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21481 # libtool to hard-code these into programs
21484 cygwin* | mingw* | pw32* | cegcc*)
21485 version_type=windows
21486 shrext_cmds=".dll"
21487 need_version=no
21488 need_lib_prefix=no
21490 case $GCC,$cc_basename in
21491 yes,*)
21492 # gcc
21493 library_names_spec='$libname.dll.a'
21494 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21495 postinstall_cmds='base_file=`basename \${file}`~
21496 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21497 dldir=$destdir/`dirname \$dlpath`~
21498 test -d \$dldir || mkdir -p \$dldir~
21499 $install_prog $dir/$dlname \$dldir/$dlname~
21500 chmod a+x \$dldir/$dlname~
21501 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21502 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21504 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21505 dlpath=$dir/\$dldll~
21506 $RM \$dlpath'
21507 shlibpath_overrides_runpath=yes
21509 case $host_os in
21510 cygwin*)
21511 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21512 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21515 mingw* | cegcc*)
21516 # MinGW DLLs use traditional 'lib' prefix
21517 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21519 pw32*)
21520 # pw32 DLLs use 'pw' prefix rather than 'lib'
21521 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21523 esac
21524 dynamic_linker='Win32 ld.exe'
21527 *,cl*)
21528 # Native MSVC
21529 libname_spec='$name'
21530 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21531 library_names_spec='${libname}.dll.lib'
21533 case $build_os in
21534 mingw*)
21535 sys_lib_search_path_spec=
21536 lt_save_ifs=$IFS
21537 IFS=';'
21538 for lt_path in $LIB
21540 IFS=$lt_save_ifs
21541 # Let DOS variable expansion print the short 8.3 style file name.
21542 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21543 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21544 done
21545 IFS=$lt_save_ifs
21546 # Convert to MSYS style.
21547 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21549 cygwin*)
21550 # Convert to unix form, then to dos form, then back to unix form
21551 # but this time dos style (no spaces!) so that the unix form looks
21552 # like /cygdrive/c/PROGRA~1:/cygdr...
21553 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21554 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21555 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21558 sys_lib_search_path_spec="$LIB"
21559 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21560 # It is most probably a Windows format PATH.
21561 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21562 else
21563 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21565 # FIXME: find the short name or the path components, as spaces are
21566 # common. (e.g. "Program Files" -> "PROGRA~1")
21568 esac
21570 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21571 postinstall_cmds='base_file=`basename \${file}`~
21572 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21573 dldir=$destdir/`dirname \$dlpath`~
21574 test -d \$dldir || mkdir -p \$dldir~
21575 $install_prog $dir/$dlname \$dldir/$dlname'
21576 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21577 dlpath=$dir/\$dldll~
21578 $RM \$dlpath'
21579 shlibpath_overrides_runpath=yes
21580 dynamic_linker='Win32 link.exe'
21584 # Assume MSVC wrapper
21585 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21586 dynamic_linker='Win32 ld.exe'
21588 esac
21589 # FIXME: first we should search . and the directory the executable is in
21590 shlibpath_var=PATH
21593 darwin* | rhapsody*)
21594 dynamic_linker="$host_os dyld"
21595 version_type=darwin
21596 need_lib_prefix=no
21597 need_version=no
21598 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21599 soname_spec='${libname}${release}${major}$shared_ext'
21600 shlibpath_overrides_runpath=yes
21601 shlibpath_var=DYLD_LIBRARY_PATH
21602 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21604 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21607 dgux*)
21608 version_type=linux # correct to gnu/linux during the next big refactor
21609 need_lib_prefix=no
21610 need_version=no
21611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21612 soname_spec='${libname}${release}${shared_ext}$major'
21613 shlibpath_var=LD_LIBRARY_PATH
21616 freebsd* | dragonfly*)
21617 # DragonFly does not have aout. When/if they implement a new
21618 # versioning mechanism, adjust this.
21619 if test -x /usr/bin/objformat; then
21620 objformat=`/usr/bin/objformat`
21621 else
21622 case $host_os in
21623 freebsd[23].*) objformat=aout ;;
21624 *) objformat=elf ;;
21625 esac
21627 version_type=freebsd-$objformat
21628 case $version_type in
21629 freebsd-elf*)
21630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21631 need_version=no
21632 need_lib_prefix=no
21634 freebsd-*)
21635 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21636 need_version=yes
21638 esac
21639 shlibpath_var=LD_LIBRARY_PATH
21640 case $host_os in
21641 freebsd2.*)
21642 shlibpath_overrides_runpath=yes
21644 freebsd3.[01]* | freebsdelf3.[01]*)
21645 shlibpath_overrides_runpath=yes
21646 hardcode_into_libs=yes
21648 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21649 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21650 shlibpath_overrides_runpath=no
21651 hardcode_into_libs=yes
21653 *) # from 4.6 on, and DragonFly
21654 shlibpath_overrides_runpath=yes
21655 hardcode_into_libs=yes
21657 esac
21660 gnu*)
21661 version_type=linux # correct to gnu/linux during the next big refactor
21662 need_lib_prefix=no
21663 need_version=no
21664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21665 soname_spec='${libname}${release}${shared_ext}$major'
21666 shlibpath_var=LD_LIBRARY_PATH
21667 shlibpath_overrides_runpath=no
21668 hardcode_into_libs=yes
21671 haiku*)
21672 version_type=linux # correct to gnu/linux during the next big refactor
21673 need_lib_prefix=no
21674 need_version=no
21675 dynamic_linker="$host_os runtime_loader"
21676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21677 soname_spec='${libname}${release}${shared_ext}$major'
21678 shlibpath_var=LIBRARY_PATH
21679 shlibpath_overrides_runpath=yes
21680 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21681 hardcode_into_libs=yes
21684 hpux9* | hpux10* | hpux11*)
21685 # Give a soname corresponding to the major version so that dld.sl refuses to
21686 # link against other versions.
21687 version_type=sunos
21688 need_lib_prefix=no
21689 need_version=no
21690 case $host_cpu in
21691 ia64*)
21692 shrext_cmds='.so'
21693 hardcode_into_libs=yes
21694 dynamic_linker="$host_os dld.so"
21695 shlibpath_var=LD_LIBRARY_PATH
21696 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21698 soname_spec='${libname}${release}${shared_ext}$major'
21699 if test "X$HPUX_IA64_MODE" = X32; then
21700 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21701 else
21702 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21704 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21706 hppa*64*)
21707 shrext_cmds='.sl'
21708 hardcode_into_libs=yes
21709 dynamic_linker="$host_os dld.sl"
21710 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21711 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21713 soname_spec='${libname}${release}${shared_ext}$major'
21714 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21715 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21718 shrext_cmds='.sl'
21719 dynamic_linker="$host_os dld.sl"
21720 shlibpath_var=SHLIB_PATH
21721 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21723 soname_spec='${libname}${release}${shared_ext}$major'
21725 esac
21726 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21727 postinstall_cmds='chmod 555 $lib'
21728 # or fails outright, so override atomically:
21729 install_override_mode=555
21732 interix[3-9]*)
21733 version_type=linux # correct to gnu/linux during the next big refactor
21734 need_lib_prefix=no
21735 need_version=no
21736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21737 soname_spec='${libname}${release}${shared_ext}$major'
21738 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21739 shlibpath_var=LD_LIBRARY_PATH
21740 shlibpath_overrides_runpath=no
21741 hardcode_into_libs=yes
21744 irix5* | irix6* | nonstopux*)
21745 case $host_os in
21746 nonstopux*) version_type=nonstopux ;;
21748 if test "$lt_cv_prog_gnu_ld" = yes; then
21749 version_type=linux # correct to gnu/linux during the next big refactor
21750 else
21751 version_type=irix
21752 fi ;;
21753 esac
21754 need_lib_prefix=no
21755 need_version=no
21756 soname_spec='${libname}${release}${shared_ext}$major'
21757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21758 case $host_os in
21759 irix5* | nonstopux*)
21760 libsuff= shlibsuff=
21763 case $LD in # libtool.m4 will add one of these switches to LD
21764 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21765 libsuff= shlibsuff= libmagic=32-bit;;
21766 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21767 libsuff=32 shlibsuff=N32 libmagic=N32;;
21768 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21769 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21770 *) libsuff= shlibsuff= libmagic=never-match;;
21771 esac
21773 esac
21774 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21775 shlibpath_overrides_runpath=no
21776 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21777 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21778 hardcode_into_libs=yes
21781 # No shared lib support for Linux oldld, aout, or coff.
21782 linux*oldld* | linux*aout* | linux*coff*)
21783 dynamic_linker=no
21786 # This must be glibc/ELF.
21787 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21788 version_type=linux # correct to gnu/linux during the next big refactor
21789 need_lib_prefix=no
21790 need_version=no
21791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21792 soname_spec='${libname}${release}${shared_ext}$major'
21793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21794 shlibpath_var=LD_LIBRARY_PATH
21795 shlibpath_overrides_runpath=no
21797 # Some binutils ld are patched to set DT_RUNPATH
21798 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21799 $as_echo_n "(cached) " >&6
21800 else
21801 lt_cv_shlibpath_overrides_runpath=no
21802 save_LDFLAGS=$LDFLAGS
21803 save_libdir=$libdir
21804 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21805 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21807 /* end confdefs.h. */
21810 main ()
21814 return 0;
21816 _ACEOF
21817 if ac_fn_cxx_try_link "$LINENO"; then :
21818 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21819 lt_cv_shlibpath_overrides_runpath=yes
21822 rm -f core conftest.err conftest.$ac_objext \
21823 conftest$ac_exeext conftest.$ac_ext
21824 LDFLAGS=$save_LDFLAGS
21825 libdir=$save_libdir
21829 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21831 # This implies no fast_install, which is unacceptable.
21832 # Some rework will be needed to allow for fast_install
21833 # before this can be enabled.
21834 hardcode_into_libs=yes
21836 # Append ld.so.conf contents to the search path
21837 if test -f /etc/ld.so.conf; then
21838 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' ' '`
21839 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21842 # We used to test for /lib/ld.so.1 and disable shared libraries on
21843 # powerpc, because MkLinux only supported shared libraries with the
21844 # GNU dynamic linker. Since this was broken with cross compilers,
21845 # most powerpc-linux boxes support dynamic linking these days and
21846 # people can always --disable-shared, the test was removed, and we
21847 # assume the GNU/Linux dynamic linker is in use.
21848 dynamic_linker='GNU/Linux ld.so'
21851 netbsd*)
21852 version_type=sunos
21853 need_lib_prefix=no
21854 need_version=no
21855 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21857 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21858 dynamic_linker='NetBSD (a.out) ld.so'
21859 else
21860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21861 soname_spec='${libname}${release}${shared_ext}$major'
21862 dynamic_linker='NetBSD ld.elf_so'
21864 shlibpath_var=LD_LIBRARY_PATH
21865 shlibpath_overrides_runpath=yes
21866 hardcode_into_libs=yes
21869 newsos6)
21870 version_type=linux # correct to gnu/linux during the next big refactor
21871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21872 shlibpath_var=LD_LIBRARY_PATH
21873 shlibpath_overrides_runpath=yes
21876 *nto* | *qnx*)
21877 version_type=qnx
21878 need_lib_prefix=no
21879 need_version=no
21880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21881 soname_spec='${libname}${release}${shared_ext}$major'
21882 shlibpath_var=LD_LIBRARY_PATH
21883 shlibpath_overrides_runpath=no
21884 hardcode_into_libs=yes
21885 dynamic_linker='ldqnx.so'
21888 openbsd*)
21889 version_type=sunos
21890 sys_lib_dlsearch_path_spec="/usr/lib"
21891 need_lib_prefix=no
21892 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21893 case $host_os in
21894 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21895 *) need_version=no ;;
21896 esac
21897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21899 shlibpath_var=LD_LIBRARY_PATH
21900 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21901 case $host_os in
21902 openbsd2.[89] | openbsd2.[89].*)
21903 shlibpath_overrides_runpath=no
21906 shlibpath_overrides_runpath=yes
21908 esac
21909 else
21910 shlibpath_overrides_runpath=yes
21914 os2*)
21915 libname_spec='$name'
21916 shrext_cmds=".dll"
21917 need_lib_prefix=no
21918 library_names_spec='$libname${shared_ext} $libname.a'
21919 dynamic_linker='OS/2 ld.exe'
21920 shlibpath_var=LIBPATH
21923 osf3* | osf4* | osf5*)
21924 version_type=osf
21925 need_lib_prefix=no
21926 need_version=no
21927 soname_spec='${libname}${release}${shared_ext}$major'
21928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21929 shlibpath_var=LD_LIBRARY_PATH
21930 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21931 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21934 rdos*)
21935 dynamic_linker=no
21938 solaris*)
21939 version_type=linux # correct to gnu/linux during the next big refactor
21940 need_lib_prefix=no
21941 need_version=no
21942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21943 soname_spec='${libname}${release}${shared_ext}$major'
21944 shlibpath_var=LD_LIBRARY_PATH
21945 shlibpath_overrides_runpath=yes
21946 hardcode_into_libs=yes
21947 # ldd complains unless libraries are executable
21948 postinstall_cmds='chmod +x $lib'
21951 sunos4*)
21952 version_type=sunos
21953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21954 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21955 shlibpath_var=LD_LIBRARY_PATH
21956 shlibpath_overrides_runpath=yes
21957 if test "$with_gnu_ld" = yes; then
21958 need_lib_prefix=no
21960 need_version=yes
21963 sysv4 | sysv4.3*)
21964 version_type=linux # correct to gnu/linux during the next big refactor
21965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21966 soname_spec='${libname}${release}${shared_ext}$major'
21967 shlibpath_var=LD_LIBRARY_PATH
21968 case $host_vendor in
21969 sni)
21970 shlibpath_overrides_runpath=no
21971 need_lib_prefix=no
21972 runpath_var=LD_RUN_PATH
21974 siemens)
21975 need_lib_prefix=no
21977 motorola)
21978 need_lib_prefix=no
21979 need_version=no
21980 shlibpath_overrides_runpath=no
21981 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21983 esac
21986 sysv4*MP*)
21987 if test -d /usr/nec ;then
21988 version_type=linux # correct to gnu/linux during the next big refactor
21989 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21990 soname_spec='$libname${shared_ext}.$major'
21991 shlibpath_var=LD_LIBRARY_PATH
21995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21996 version_type=freebsd-elf
21997 need_lib_prefix=no
21998 need_version=no
21999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22000 soname_spec='${libname}${release}${shared_ext}$major'
22001 shlibpath_var=LD_LIBRARY_PATH
22002 shlibpath_overrides_runpath=yes
22003 hardcode_into_libs=yes
22004 if test "$with_gnu_ld" = yes; then
22005 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22006 else
22007 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22008 case $host_os in
22009 sco3.2v5*)
22010 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22012 esac
22014 sys_lib_dlsearch_path_spec='/usr/lib'
22017 tpf*)
22018 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22019 version_type=linux # correct to gnu/linux during the next big refactor
22020 need_lib_prefix=no
22021 need_version=no
22022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22023 shlibpath_var=LD_LIBRARY_PATH
22024 shlibpath_overrides_runpath=no
22025 hardcode_into_libs=yes
22028 uts4*)
22029 version_type=linux # correct to gnu/linux during the next big refactor
22030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22031 soname_spec='${libname}${release}${shared_ext}$major'
22032 shlibpath_var=LD_LIBRARY_PATH
22036 dynamic_linker=no
22038 esac
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22040 $as_echo "$dynamic_linker" >&6; }
22041 test "$dynamic_linker" = no && can_build_shared=no
22043 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22044 if test "$GCC" = yes; then
22045 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22048 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22049 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22051 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22052 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22093 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22094 hardcode_action_CXX=
22095 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22096 test -n "$runpath_var_CXX" ||
22097 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22099 # We can hardcode non-existent directories.
22100 if test "$hardcode_direct_CXX" != no &&
22101 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22102 # have to relink, otherwise we might link with an installed library
22103 # when we should be linking with a yet-to-be-installed one
22104 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22105 test "$hardcode_minus_L_CXX" != no; then
22106 # Linking always hardcodes the temporary library directory.
22107 hardcode_action_CXX=relink
22108 else
22109 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22110 hardcode_action_CXX=immediate
22112 else
22113 # We cannot hardcode anything, or else we can only hardcode existing
22114 # directories.
22115 hardcode_action_CXX=unsupported
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22118 $as_echo "$hardcode_action_CXX" >&6; }
22120 if test "$hardcode_action_CXX" = relink ||
22121 test "$inherit_rpath_CXX" = yes; then
22122 # Fast installation is not supported
22123 enable_fast_install=no
22124 elif test "$shlibpath_overrides_runpath" = yes ||
22125 test "$enable_shared" = no; then
22126 # Fast installation is not necessary
22127 enable_fast_install=needless
22136 fi # test -n "$compiler"
22138 CC=$lt_save_CC
22139 CFLAGS=$lt_save_CFLAGS
22140 LDCXX=$LD
22141 LD=$lt_save_LD
22142 GCC=$lt_save_GCC
22143 with_gnu_ld=$lt_save_with_gnu_ld
22144 lt_cv_path_LDCXX=$lt_cv_path_LD
22145 lt_cv_path_LD=$lt_save_path_LD
22146 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22147 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22148 fi # test "$_lt_caught_CXX_error" != yes
22150 ac_ext=c
22151 ac_cpp='$CPP $CPPFLAGS'
22152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22170 ac_config_commands="$ac_config_commands libtool"
22175 # Only expand once:
22179 # Generate an error here if attempting to build both shared and static when
22180 # $libname.a is in $library_names_spec (as mentioned above), rather than
22181 # wait for ar or ld to fail.
22183 if test "$enable_shared" = yes && test "$enable_static" = yes; then
22184 case $library_names_spec in
22185 *libname.a*)
22186 as_fn_error $? "cannot create both shared and static libraries on this system, --disable one of the two" "$LINENO" 5
22188 esac
22191 if test "$enable_static" = yes; then
22192 ENABLE_STATIC_TRUE=
22193 ENABLE_STATIC_FALSE='#'
22194 else
22195 ENABLE_STATIC_TRUE='#'
22196 ENABLE_STATIC_FALSE=
22201 # Many of these library and header checks are for the benefit of
22202 # supplementary programs. libgmp doesn't use anything too weird.
22204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
22205 $as_echo_n "checking for ANSI C header files... " >&6; }
22206 if ${ac_cv_header_stdc+:} false; then :
22207 $as_echo_n "(cached) " >&6
22208 else
22209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22210 /* end confdefs.h. */
22211 #include <stdlib.h>
22212 #include <stdarg.h>
22213 #include <string.h>
22214 #include <float.h>
22217 main ()
22221 return 0;
22223 _ACEOF
22224 if ac_fn_c_try_compile "$LINENO"; then :
22225 ac_cv_header_stdc=yes
22226 else
22227 ac_cv_header_stdc=no
22229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22231 if test $ac_cv_header_stdc = yes; then
22232 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22234 /* end confdefs.h. */
22235 #include <string.h>
22237 _ACEOF
22238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22239 $EGREP "memchr" >/dev/null 2>&1; then :
22241 else
22242 ac_cv_header_stdc=no
22244 rm -f conftest*
22248 if test $ac_cv_header_stdc = yes; then
22249 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22251 /* end confdefs.h. */
22252 #include <stdlib.h>
22254 _ACEOF
22255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22256 $EGREP "free" >/dev/null 2>&1; then :
22258 else
22259 ac_cv_header_stdc=no
22261 rm -f conftest*
22265 if test $ac_cv_header_stdc = yes; then
22266 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22267 if test "$cross_compiling" = yes; then :
22269 else
22270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22271 /* end confdefs.h. */
22272 #include <ctype.h>
22273 #include <stdlib.h>
22274 #if ((' ' & 0x0FF) == 0x020)
22275 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22276 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22277 #else
22278 # define ISLOWER(c) \
22279 (('a' <= (c) && (c) <= 'i') \
22280 || ('j' <= (c) && (c) <= 'r') \
22281 || ('s' <= (c) && (c) <= 'z'))
22282 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22283 #endif
22285 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22287 main ()
22289 int i;
22290 for (i = 0; i < 256; i++)
22291 if (XOR (islower (i), ISLOWER (i))
22292 || toupper (i) != TOUPPER (i))
22293 return 2;
22294 return 0;
22296 _ACEOF
22297 if ac_fn_c_try_run "$LINENO"; then :
22299 else
22300 ac_cv_header_stdc=no
22302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22303 conftest.$ac_objext conftest.beam conftest.$ac_ext
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
22309 $as_echo "$ac_cv_header_stdc" >&6; }
22310 if test $ac_cv_header_stdc = yes; then
22312 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22317 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22318 if ${ac_cv_header_time+:} false; then :
22319 $as_echo_n "(cached) " >&6
22320 else
22321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22322 /* end confdefs.h. */
22323 #include <sys/types.h>
22324 #include <sys/time.h>
22325 #include <time.h>
22328 main ()
22330 if ((struct tm *) 0)
22331 return 0;
22333 return 0;
22335 _ACEOF
22336 if ac_fn_c_try_compile "$LINENO"; then :
22337 ac_cv_header_time=yes
22338 else
22339 ac_cv_header_time=no
22341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22344 $as_echo "$ac_cv_header_time" >&6; }
22345 if test $ac_cv_header_time = yes; then
22347 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22352 # Reasons for testing:
22353 # float.h - not in SunOS bundled cc
22354 # invent.h - IRIX specific
22355 # langinfo.h - X/Open standard only, not in djgpp for instance
22356 # locale.h - old systems won't have this
22357 # nl_types.h - X/Open standard only, not in djgpp for instance
22358 # (usually langinfo.h gives nl_item etc, but not on netbsd 1.4.1)
22359 # sys/attributes.h - IRIX specific
22360 # sys/iograph.h - IRIX specific
22361 # sys/mman.h - not in Cray Unicos
22362 # sys/param.h - not in mingw
22363 # sys/processor.h - solaris specific, though also present in macos
22364 # sys/pstat.h - HPUX specific
22365 # sys/resource.h - not in mingw
22366 # sys/sysctl.h - not in mingw
22367 # sys/sysinfo.h - OSF specific
22368 # sys/syssgi.h - IRIX specific
22369 # sys/systemcfg.h - AIX specific
22370 # sys/time.h - autoconf suggests testing, don't know anywhere without it
22371 # sys/times.h - not in mingw
22372 # machine/hal_sysinfo.h - OSF specific
22374 # inttypes.h, stdint.h, unistd.h and sys/types.h are already in the autoconf
22375 # default tests
22377 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
22378 do :
22379 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22380 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22381 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22382 cat >>confdefs.h <<_ACEOF
22383 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22384 _ACEOF
22388 done
22391 # On SunOS, sys/resource.h needs sys/time.h (for struct timeval)
22392 for ac_header in sys/resource.h
22393 do :
22394 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "#if TIME_WITH_SYS_TIME
22395 # include <sys/time.h>
22396 # include <time.h>
22397 #else
22398 # if HAVE_SYS_TIME_H
22399 # include <sys/time.h>
22400 # else
22401 # include <time.h>
22402 # endif
22403 #endif
22405 if test "x$ac_cv_header_sys_resource_h" = xyes; then :
22406 cat >>confdefs.h <<_ACEOF
22407 #define HAVE_SYS_RESOURCE_H 1
22408 _ACEOF
22412 done
22415 # On NetBSD and OpenBSD, sys/sysctl.h needs sys/param.h for various constants
22416 for ac_header in sys/sysctl.h
22417 do :
22418 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if HAVE_SYS_PARAM_H
22419 # include <sys/param.h>
22420 #endif
22422 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
22423 cat >>confdefs.h <<_ACEOF
22424 #define HAVE_SYS_SYSCTL_H 1
22425 _ACEOF
22429 done
22432 # On OSF 4.0, <machine/hal_sysinfo.h> must have <sys/sysinfo.h> for ulong_t
22433 for ac_header in machine/hal_sysinfo.h
22434 do :
22435 ac_fn_c_check_header_compile "$LINENO" "machine/hal_sysinfo.h" "ac_cv_header_machine_hal_sysinfo_h" "#if HAVE_SYS_SYSINFO_H
22436 # include <sys/sysinfo.h>
22437 #endif
22439 if test "x$ac_cv_header_machine_hal_sysinfo_h" = xyes; then :
22440 cat >>confdefs.h <<_ACEOF
22441 #define HAVE_MACHINE_HAL_SYSINFO_H 1
22442 _ACEOF
22446 done
22449 # Reasons for testing:
22450 # optarg - not declared in mingw
22451 # fgetc, fscanf, ungetc, vfprintf - not declared in SunOS 4
22452 # sys_errlist, sys_nerr - not declared in SunOS 4
22454 # optarg should be in unistd.h and the rest in stdio.h, both of which are
22455 # in the autoconf default includes.
22457 # sys_errlist and sys_nerr are supposed to be in <errno.h> on SunOS according
22458 # to the man page (but aren't), in glibc they're in stdio.h.
22460 ac_fn_c_check_decl "$LINENO" "fgetc" "ac_cv_have_decl_fgetc" "$ac_includes_default"
22461 if test "x$ac_cv_have_decl_fgetc" = xyes; then :
22462 ac_have_decl=1
22463 else
22464 ac_have_decl=0
22467 cat >>confdefs.h <<_ACEOF
22468 #define HAVE_DECL_FGETC $ac_have_decl
22469 _ACEOF
22470 ac_fn_c_check_decl "$LINENO" "fscanf" "ac_cv_have_decl_fscanf" "$ac_includes_default"
22471 if test "x$ac_cv_have_decl_fscanf" = xyes; then :
22472 ac_have_decl=1
22473 else
22474 ac_have_decl=0
22477 cat >>confdefs.h <<_ACEOF
22478 #define HAVE_DECL_FSCANF $ac_have_decl
22479 _ACEOF
22480 ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "$ac_includes_default"
22481 if test "x$ac_cv_have_decl_optarg" = xyes; then :
22482 ac_have_decl=1
22483 else
22484 ac_have_decl=0
22487 cat >>confdefs.h <<_ACEOF
22488 #define HAVE_DECL_OPTARG $ac_have_decl
22489 _ACEOF
22490 ac_fn_c_check_decl "$LINENO" "ungetc" "ac_cv_have_decl_ungetc" "$ac_includes_default"
22491 if test "x$ac_cv_have_decl_ungetc" = xyes; then :
22492 ac_have_decl=1
22493 else
22494 ac_have_decl=0
22497 cat >>confdefs.h <<_ACEOF
22498 #define HAVE_DECL_UNGETC $ac_have_decl
22499 _ACEOF
22500 ac_fn_c_check_decl "$LINENO" "vfprintf" "ac_cv_have_decl_vfprintf" "$ac_includes_default"
22501 if test "x$ac_cv_have_decl_vfprintf" = xyes; then :
22502 ac_have_decl=1
22503 else
22504 ac_have_decl=0
22507 cat >>confdefs.h <<_ACEOF
22508 #define HAVE_DECL_VFPRINTF $ac_have_decl
22509 _ACEOF
22511 ac_fn_c_check_decl "$LINENO" "sys_errlist" "ac_cv_have_decl_sys_errlist" "#include <stdio.h>
22512 #include <errno.h>
22514 if test "x$ac_cv_have_decl_sys_errlist" = xyes; then :
22515 ac_have_decl=1
22516 else
22517 ac_have_decl=0
22520 cat >>confdefs.h <<_ACEOF
22521 #define HAVE_DECL_SYS_ERRLIST $ac_have_decl
22522 _ACEOF
22523 ac_fn_c_check_decl "$LINENO" "sys_nerr" "ac_cv_have_decl_sys_nerr" "#include <stdio.h>
22524 #include <errno.h>
22526 if test "x$ac_cv_have_decl_sys_nerr" = xyes; then :
22527 ac_have_decl=1
22528 else
22529 ac_have_decl=0
22532 cat >>confdefs.h <<_ACEOF
22533 #define HAVE_DECL_SYS_NERR $ac_have_decl
22534 _ACEOF
22537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22538 $as_echo_n "checking return type of signal handlers... " >&6; }
22539 if ${ac_cv_type_signal+:} false; then :
22540 $as_echo_n "(cached) " >&6
22541 else
22542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22543 /* end confdefs.h. */
22544 #include <sys/types.h>
22545 #include <signal.h>
22548 main ()
22550 return *(signal (0, 0)) (0) == 1;
22552 return 0;
22554 _ACEOF
22555 if ac_fn_c_try_compile "$LINENO"; then :
22556 ac_cv_type_signal=int
22557 else
22558 ac_cv_type_signal=void
22560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22563 $as_echo "$ac_cv_type_signal" >&6; }
22565 cat >>confdefs.h <<_ACEOF
22566 #define RETSIGTYPE $ac_cv_type_signal
22567 _ACEOF
22571 # Reasons for testing:
22572 # intmax_t - C99
22573 # long double - not in the HP bundled K&R cc
22574 # long long - only in reasonably recent compilers
22575 # ptrdiff_t - seems to be everywhere, maybe don't need to check this
22576 # quad_t - BSD specific
22577 # uint_least32_t - C99
22579 # the default includes are sufficient for all these types
22581 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22582 if test "x$ac_cv_type_intmax_t" = xyes; then :
22584 cat >>confdefs.h <<_ACEOF
22585 #define HAVE_INTMAX_T 1
22586 _ACEOF
22590 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
22591 if test "x$ac_cv_type_long_double" = xyes; then :
22593 cat >>confdefs.h <<_ACEOF
22594 #define HAVE_LONG_DOUBLE 1
22595 _ACEOF
22599 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22600 if test "x$ac_cv_type_long_long" = xyes; then :
22602 cat >>confdefs.h <<_ACEOF
22603 #define HAVE_LONG_LONG 1
22604 _ACEOF
22608 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
22609 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
22611 cat >>confdefs.h <<_ACEOF
22612 #define HAVE_PTRDIFF_T 1
22613 _ACEOF
22617 ac_fn_c_check_type "$LINENO" "quad_t" "ac_cv_type_quad_t" "$ac_includes_default"
22618 if test "x$ac_cv_type_quad_t" = xyes; then :
22620 cat >>confdefs.h <<_ACEOF
22621 #define HAVE_QUAD_T 1
22622 _ACEOF
22626 ac_fn_c_check_type "$LINENO" "uint_least32_t" "ac_cv_type_uint_least32_t" "$ac_includes_default"
22627 if test "x$ac_cv_type_uint_least32_t" = xyes; then :
22629 cat >>confdefs.h <<_ACEOF
22630 #define HAVE_UINT_LEAST32_T 1
22631 _ACEOF
22635 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22636 if test "x$ac_cv_type_intptr_t" = xyes; then :
22638 cat >>confdefs.h <<_ACEOF
22639 #define HAVE_INTPTR_T 1
22640 _ACEOF
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
22647 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
22648 if ${ac_cv_c_stringize+:} false; then :
22649 $as_echo_n "(cached) " >&6
22650 else
22651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22652 /* end confdefs.h. */
22653 #define x(y) #y
22655 char *s = x(teststring);
22656 _ACEOF
22657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22658 $EGREP "#teststring" >/dev/null 2>&1; then :
22659 ac_cv_c_stringize=no
22660 else
22661 ac_cv_c_stringize=yes
22663 rm -f conftest*
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
22667 $as_echo "$ac_cv_c_stringize" >&6; }
22668 if test $ac_cv_c_stringize = yes; then
22670 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
22675 # FIXME: Really want #ifndef __cplusplus around the #define volatile
22676 # replacement autoconf gives, since volatile is always available in C++.
22677 # But we don't use it in C++ currently.
22678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22679 $as_echo_n "checking for working volatile... " >&6; }
22680 if ${ac_cv_c_volatile+:} false; then :
22681 $as_echo_n "(cached) " >&6
22682 else
22683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22684 /* end confdefs.h. */
22687 main ()
22690 volatile int x;
22691 int * volatile y = (int *) 0;
22692 return !x && !y;
22694 return 0;
22696 _ACEOF
22697 if ac_fn_c_try_compile "$LINENO"; then :
22698 ac_cv_c_volatile=yes
22699 else
22700 ac_cv_c_volatile=no
22702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22705 $as_echo "$ac_cv_c_volatile" >&6; }
22706 if test $ac_cv_c_volatile = no; then
22708 $as_echo "#define volatile /**/" >>confdefs.h
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
22714 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
22715 if ${ac_cv_c_restrict+:} false; then :
22716 $as_echo_n "(cached) " >&6
22717 else
22718 ac_cv_c_restrict=no
22719 # The order here caters to the fact that C++ does not require restrict.
22720 for ac_kw in __restrict __restrict__ _Restrict restrict; do
22721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22722 /* end confdefs.h. */
22723 typedef int * int_ptr;
22724 int foo (int_ptr $ac_kw ip) {
22725 return ip[0];
22728 main ()
22730 int s[1];
22731 int * $ac_kw t = s;
22732 t[0] = 0;
22733 return foo(t)
22735 return 0;
22737 _ACEOF
22738 if ac_fn_c_try_compile "$LINENO"; then :
22739 ac_cv_c_restrict=$ac_kw
22741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22742 test "$ac_cv_c_restrict" != no && break
22743 done
22746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
22747 $as_echo "$ac_cv_c_restrict" >&6; }
22749 case $ac_cv_c_restrict in
22750 restrict) ;;
22751 no) $as_echo "#define restrict /**/" >>confdefs.h
22753 *) cat >>confdefs.h <<_ACEOF
22754 #define restrict $ac_cv_c_restrict
22755 _ACEOF
22757 esac
22760 # GMP_C_STDARG
22761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((const)) works" >&5
22762 $as_echo_n "checking whether gcc __attribute__ ((const)) works... " >&6; }
22763 if ${gmp_cv_c_attribute_const+:} false; then :
22764 $as_echo_n "(cached) " >&6
22765 else
22766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22767 /* end confdefs.h. */
22768 int foo (int x) __attribute__ ((const));
22770 main ()
22774 return 0;
22776 _ACEOF
22777 if ac_fn_c_try_compile "$LINENO"; then :
22778 gmp_cv_c_attribute_const=yes
22779 else
22780 gmp_cv_c_attribute_const=no
22782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_const" >&5
22786 $as_echo "$gmp_cv_c_attribute_const" >&6; }
22787 if test $gmp_cv_c_attribute_const = yes; then
22789 $as_echo "#define HAVE_ATTRIBUTE_CONST 1" >>confdefs.h
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((malloc)) works" >&5
22794 $as_echo_n "checking whether gcc __attribute__ ((malloc)) works... " >&6; }
22795 if ${gmp_cv_c_attribute_malloc+:} false; then :
22796 $as_echo_n "(cached) " >&6
22797 else
22798 cat >conftest.c <<EOF
22799 void *foo (int x) __attribute__ ((malloc));
22801 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1"
22802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
22803 (eval $gmp_compile) 2>&5
22804 ac_status=$?
22805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22806 test $ac_status = 0; }; then
22807 if grep "attribute directive ignored" conftest.out >/dev/null; then
22808 gmp_cv_c_attribute_malloc=no
22809 else
22810 gmp_cv_c_attribute_malloc=yes
22812 else
22813 gmp_cv_c_attribute_malloc=no
22815 cat conftest.out >&5
22816 rm -f conftest*
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_malloc" >&5
22820 $as_echo "$gmp_cv_c_attribute_malloc" >&6; }
22821 if test $gmp_cv_c_attribute_malloc = yes; then
22823 $as_echo "#define HAVE_ATTRIBUTE_MALLOC 1" >>confdefs.h
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5
22828 $as_echo_n "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; }
22829 if ${gmp_cv_c_attribute_mode+:} false; then :
22830 $as_echo_n "(cached) " >&6
22831 else
22832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22833 /* end confdefs.h. */
22834 typedef int SItype __attribute__ ((mode (SI)));
22836 main ()
22840 return 0;
22842 _ACEOF
22843 if ac_fn_c_try_compile "$LINENO"; then :
22844 gmp_cv_c_attribute_mode=yes
22845 else
22846 gmp_cv_c_attribute_mode=no
22848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5
22852 $as_echo "$gmp_cv_c_attribute_mode" >&6; }
22853 if test $gmp_cv_c_attribute_mode = yes; then
22855 $as_echo "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((noreturn)) works" >&5
22860 $as_echo_n "checking whether gcc __attribute__ ((noreturn)) works... " >&6; }
22861 if ${gmp_cv_c_attribute_noreturn+:} false; then :
22862 $as_echo_n "(cached) " >&6
22863 else
22864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22865 /* end confdefs.h. */
22866 void foo (int x) __attribute__ ((noreturn));
22868 main ()
22872 return 0;
22874 _ACEOF
22875 if ac_fn_c_try_compile "$LINENO"; then :
22876 gmp_cv_c_attribute_noreturn=yes
22877 else
22878 gmp_cv_c_attribute_noreturn=no
22880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_noreturn" >&5
22884 $as_echo "$gmp_cv_c_attribute_noreturn" >&6; }
22885 if test $gmp_cv_c_attribute_noreturn = yes; then
22887 $as_echo "#define HAVE_ATTRIBUTE_NORETURN 1" >>confdefs.h
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22893 $as_echo_n "checking for inline... " >&6; }
22894 if ${ac_cv_c_inline+:} false; then :
22895 $as_echo_n "(cached) " >&6
22896 else
22897 ac_cv_c_inline=no
22898 for ac_kw in inline __inline__ __inline; do
22899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22900 /* end confdefs.h. */
22901 #ifndef __cplusplus
22902 typedef int foo_t;
22903 static $ac_kw foo_t static_foo () {return 0; }
22904 $ac_kw foo_t foo () {return 0; }
22905 #endif
22907 _ACEOF
22908 if ac_fn_c_try_compile "$LINENO"; then :
22909 ac_cv_c_inline=$ac_kw
22911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22912 test "$ac_cv_c_inline" != no && break
22913 done
22916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22917 $as_echo "$ac_cv_c_inline" >&6; }
22919 case $ac_cv_c_inline in
22920 inline | yes) ;;
22922 case $ac_cv_c_inline in
22923 no) ac_val=;;
22924 *) ac_val=$ac_cv_c_inline;;
22925 esac
22926 cat >>confdefs.h <<_ACEOF
22927 #ifndef __cplusplus
22928 #define inline $ac_val
22929 #endif
22930 _ACEOF
22932 esac
22935 case $ac_cv_c_inline in
22936 no) ;;
22938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22939 /* end confdefs.h. */
22940 #define __GMP_WITHIN_CONFIGURE_INLINE 1
22941 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
22942 #define GMP_NAIL_BITS $GMP_NAIL_BITS
22943 #define GMP_LIMB_BITS 123
22944 $DEFN_LONG_LONG_LIMB
22945 #include "$srcdir/gmp-h.in"
22947 #ifndef __GMP_EXTERN_INLINE
22948 die die die
22949 #endif
22952 main ()
22956 return 0;
22958 _ACEOF
22959 if ac_fn_c_try_compile "$LINENO"; then :
22961 else
22962 case $ac_cv_c_inline in
22963 yes) tmp_inline=inline ;;
22964 *) tmp_inline=$ac_cv_c_inline ;;
22965 esac
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&5
22967 $as_echo "$as_me: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&2;}
22969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22971 esac
22974 # from libtool
22975 LIBM=
22976 case $host in
22977 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
22978 # These system don't have libm, or don't need it
22980 *-ncr-sysv4.3*)
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
22982 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
22983 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
22984 $as_echo_n "(cached) " >&6
22985 else
22986 ac_check_lib_save_LIBS=$LIBS
22987 LIBS="-lmw $LIBS"
22988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22989 /* end confdefs.h. */
22991 /* Override any GCC internal prototype to avoid an error.
22992 Use char because int might match the return type of a GCC
22993 builtin and then its argument prototype would still apply. */
22994 #ifdef __cplusplus
22995 extern "C"
22996 #endif
22997 char _mwvalidcheckl ();
22999 main ()
23001 return _mwvalidcheckl ();
23003 return 0;
23005 _ACEOF
23006 if ac_fn_c_try_link "$LINENO"; then :
23007 ac_cv_lib_mw__mwvalidcheckl=yes
23008 else
23009 ac_cv_lib_mw__mwvalidcheckl=no
23011 rm -f core conftest.err conftest.$ac_objext \
23012 conftest$ac_exeext conftest.$ac_ext
23013 LIBS=$ac_check_lib_save_LIBS
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
23016 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
23017 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
23018 LIBM="-lmw"
23021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
23022 $as_echo_n "checking for cos in -lm... " >&6; }
23023 if ${ac_cv_lib_m_cos+:} false; then :
23024 $as_echo_n "(cached) " >&6
23025 else
23026 ac_check_lib_save_LIBS=$LIBS
23027 LIBS="-lm $LIBS"
23028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23029 /* end confdefs.h. */
23031 /* Override any GCC internal prototype to avoid an error.
23032 Use char because int might match the return type of a GCC
23033 builtin and then its argument prototype would still apply. */
23034 #ifdef __cplusplus
23035 extern "C"
23036 #endif
23037 char cos ();
23039 main ()
23041 return cos ();
23043 return 0;
23045 _ACEOF
23046 if ac_fn_c_try_link "$LINENO"; then :
23047 ac_cv_lib_m_cos=yes
23048 else
23049 ac_cv_lib_m_cos=no
23051 rm -f core conftest.err conftest.$ac_objext \
23052 conftest$ac_exeext conftest.$ac_ext
23053 LIBS=$ac_check_lib_save_LIBS
23055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
23056 $as_echo "$ac_cv_lib_m_cos" >&6; }
23057 if test "x$ac_cv_lib_m_cos" = xyes; then :
23058 LIBM="$LIBM -lm"
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
23064 $as_echo_n "checking for cos in -lm... " >&6; }
23065 if ${ac_cv_lib_m_cos+:} false; then :
23066 $as_echo_n "(cached) " >&6
23067 else
23068 ac_check_lib_save_LIBS=$LIBS
23069 LIBS="-lm $LIBS"
23070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23071 /* end confdefs.h. */
23073 /* Override any GCC internal prototype to avoid an error.
23074 Use char because int might match the return type of a GCC
23075 builtin and then its argument prototype would still apply. */
23076 #ifdef __cplusplus
23077 extern "C"
23078 #endif
23079 char cos ();
23081 main ()
23083 return cos ();
23085 return 0;
23087 _ACEOF
23088 if ac_fn_c_try_link "$LINENO"; then :
23089 ac_cv_lib_m_cos=yes
23090 else
23091 ac_cv_lib_m_cos=no
23093 rm -f core conftest.err conftest.$ac_objext \
23094 conftest$ac_exeext conftest.$ac_ext
23095 LIBS=$ac_check_lib_save_LIBS
23097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
23098 $as_echo "$ac_cv_lib_m_cos" >&6; }
23099 if test "x$ac_cv_lib_m_cos" = xyes; then :
23100 LIBM="-lm"
23104 esac
23109 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23110 # for constant arguments. Useless!
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
23112 $as_echo_n "checking for working alloca.h... " >&6; }
23113 if ${gmp_cv_header_alloca+:} false; then :
23114 $as_echo_n "(cached) " >&6
23115 else
23116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23117 /* end confdefs.h. */
23118 #include <alloca.h>
23120 main ()
23122 char *p = (char *) alloca (2 * sizeof (int));
23124 return 0;
23126 _ACEOF
23127 if ac_fn_c_try_link "$LINENO"; then :
23128 gmp_cv_header_alloca=yes
23129 else
23130 gmp_cv_header_alloca=no
23132 rm -f core conftest.err conftest.$ac_objext \
23133 conftest$ac_exeext conftest.$ac_ext
23135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_header_alloca" >&5
23136 $as_echo "$gmp_cv_header_alloca" >&6; }
23137 if test $gmp_cv_header_alloca = yes; then
23139 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
23144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca (via gmp-impl.h)" >&5
23145 $as_echo_n "checking for alloca (via gmp-impl.h)... " >&6; }
23146 if ${gmp_cv_func_alloca+:} false; then :
23147 $as_echo_n "(cached) " >&6
23148 else
23149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23150 /* end confdefs.h. */
23151 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
23152 #define GMP_NAIL_BITS $GMP_NAIL_BITS
23153 #define GMP_LIMB_BITS 123
23154 $DEFN_LONG_LONG_LIMB
23155 #include "$srcdir/gmp-h.in"
23157 #include "$srcdir/gmp-impl.h"
23160 main ()
23162 char *p = (char *) alloca (1);
23164 return 0;
23166 _ACEOF
23167 if ac_fn_c_try_link "$LINENO"; then :
23168 gmp_cv_func_alloca=yes
23169 else
23170 gmp_cv_func_alloca=no
23172 rm -f core conftest.err conftest.$ac_objext \
23173 conftest$ac_exeext conftest.$ac_ext
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_alloca" >&5
23176 $as_echo "$gmp_cv_func_alloca" >&6; }
23177 if test $gmp_cv_func_alloca = yes; then
23179 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to allocate temporary memory" >&5
23185 $as_echo_n "checking how to allocate temporary memory... " >&6; }
23186 if ${gmp_cv_option_alloca+:} false; then :
23187 $as_echo_n "(cached) " >&6
23188 else
23189 case $enable_alloca in
23190 yes)
23191 gmp_cv_option_alloca=alloca
23194 gmp_cv_option_alloca=malloc-reentrant
23196 reentrant | notreentrant)
23197 case $gmp_cv_func_alloca in
23198 yes) gmp_cv_option_alloca=alloca ;;
23199 *) gmp_cv_option_alloca=malloc-$enable_alloca ;;
23200 esac
23203 gmp_cv_option_alloca=$enable_alloca
23205 esac
23208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_option_alloca" >&5
23209 $as_echo "$gmp_cv_option_alloca" >&6; }
23213 case $gmp_cv_option_alloca in
23214 alloca)
23215 if test $gmp_cv_func_alloca = no; then
23216 as_fn_error $? "--enable-alloca=alloca specified, but alloca not available" "$LINENO" 5
23218 $as_echo "#define WANT_TMP_ALLOCA 1" >>confdefs.h
23220 TAL_OBJECT=tal-reent$U.lo
23222 malloc-reentrant)
23223 $as_echo "#define WANT_TMP_REENTRANT 1" >>confdefs.h
23225 TAL_OBJECT=tal-reent$U.lo
23227 malloc-notreentrant)
23228 $as_echo "#define WANT_TMP_NOTREENTRANT 1" >>confdefs.h
23230 TAL_OBJECT=tal-notreent$U.lo
23232 debug)
23233 $as_echo "#define WANT_TMP_DEBUG 1" >>confdefs.h
23235 TAL_OBJECT=tal-debug$U.lo
23238 # checks at the start of configure.in should protect us
23239 as_fn_error $? "unrecognised --enable-alloca=$gmp_cv_option_alloca" "$LINENO" 5
23241 esac
23245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23246 /* end confdefs.h. */
23247 #include <stdio.h>
23248 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
23249 #define GMP_NAIL_BITS $GMP_NAIL_BITS
23250 #define GMP_LIMB_BITS 123
23251 $DEFN_LONG_LONG_LIMB
23252 #include "$srcdir/gmp-h.in"
23254 #if ! _GMP_H_HAVE_FILE
23255 die die die
23256 #endif
23259 main ()
23263 return 0;
23265 _ACEOF
23266 if ac_fn_c_try_compile "$LINENO"; then :
23268 else
23269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&5
23270 $as_echo "$as_me: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&2;}
23272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23276 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23277 if ${ac_cv_c_bigendian+:} false; then :
23278 $as_echo_n "(cached) " >&6
23279 else
23280 ac_cv_c_bigendian=unknown
23281 # See if we're dealing with a universal compiler.
23282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23283 /* end confdefs.h. */
23284 #ifndef __APPLE_CC__
23285 not a universal capable compiler
23286 #endif
23287 typedef int dummy;
23289 _ACEOF
23290 if ac_fn_c_try_compile "$LINENO"; then :
23292 # Check for potential -arch flags. It is not universal unless
23293 # there are at least two -arch flags with different values.
23294 ac_arch=
23295 ac_prev=
23296 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23297 if test -n "$ac_prev"; then
23298 case $ac_word in
23299 i?86 | x86_64 | ppc | ppc64)
23300 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23301 ac_arch=$ac_word
23302 else
23303 ac_cv_c_bigendian=universal
23304 break
23307 esac
23308 ac_prev=
23309 elif test "x$ac_word" = "x-arch"; then
23310 ac_prev=arch
23312 done
23314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23315 if test $ac_cv_c_bigendian = unknown; then
23316 # See if sys/param.h defines the BYTE_ORDER macro.
23317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23318 /* end confdefs.h. */
23319 #include <sys/types.h>
23320 #include <sys/param.h>
23323 main ()
23325 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23326 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23327 && LITTLE_ENDIAN)
23328 bogus endian macros
23329 #endif
23332 return 0;
23334 _ACEOF
23335 if ac_fn_c_try_compile "$LINENO"; then :
23336 # It does; now see whether it defined to BIG_ENDIAN or not.
23337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23338 /* end confdefs.h. */
23339 #include <sys/types.h>
23340 #include <sys/param.h>
23343 main ()
23345 #if BYTE_ORDER != BIG_ENDIAN
23346 not big endian
23347 #endif
23350 return 0;
23352 _ACEOF
23353 if ac_fn_c_try_compile "$LINENO"; then :
23354 ac_cv_c_bigendian=yes
23355 else
23356 ac_cv_c_bigendian=no
23358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23362 if test $ac_cv_c_bigendian = unknown; then
23363 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23365 /* end confdefs.h. */
23366 #include <limits.h>
23369 main ()
23371 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23372 bogus endian macros
23373 #endif
23376 return 0;
23378 _ACEOF
23379 if ac_fn_c_try_compile "$LINENO"; then :
23380 # It does; now see whether it defined to _BIG_ENDIAN or not.
23381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23382 /* end confdefs.h. */
23383 #include <limits.h>
23386 main ()
23388 #ifndef _BIG_ENDIAN
23389 not big endian
23390 #endif
23393 return 0;
23395 _ACEOF
23396 if ac_fn_c_try_compile "$LINENO"; then :
23397 ac_cv_c_bigendian=yes
23398 else
23399 ac_cv_c_bigendian=no
23401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23405 if test $ac_cv_c_bigendian = unknown; then
23406 # Compile a test program.
23407 if test "$cross_compiling" = yes; then :
23408 # Try to guess by grepping values from an object file.
23409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23410 /* end confdefs.h. */
23411 short int ascii_mm[] =
23412 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23413 short int ascii_ii[] =
23414 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23415 int use_ascii (int i) {
23416 return ascii_mm[i] + ascii_ii[i];
23418 short int ebcdic_ii[] =
23419 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23420 short int ebcdic_mm[] =
23421 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23422 int use_ebcdic (int i) {
23423 return ebcdic_mm[i] + ebcdic_ii[i];
23425 extern int foo;
23428 main ()
23430 return use_ascii (foo) == use_ebcdic (foo);
23432 return 0;
23434 _ACEOF
23435 if ac_fn_c_try_compile "$LINENO"; then :
23436 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23437 ac_cv_c_bigendian=yes
23439 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23440 if test "$ac_cv_c_bigendian" = unknown; then
23441 ac_cv_c_bigendian=no
23442 else
23443 # finding both strings is unlikely to happen, but who knows?
23444 ac_cv_c_bigendian=unknown
23448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23449 else
23450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23451 /* end confdefs.h. */
23452 $ac_includes_default
23454 main ()
23457 /* Are we little or big endian? From Harbison&Steele. */
23458 union
23460 long int l;
23461 char c[sizeof (long int)];
23462 } u;
23463 u.l = 1;
23464 return u.c[sizeof (long int) - 1] == 1;
23467 return 0;
23469 _ACEOF
23470 if ac_fn_c_try_run "$LINENO"; then :
23471 ac_cv_c_bigendian=no
23472 else
23473 ac_cv_c_bigendian=yes
23475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23476 conftest.$ac_objext conftest.beam conftest.$ac_ext
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23482 $as_echo "$ac_cv_c_bigendian" >&6; }
23483 case $ac_cv_c_bigendian in #(
23484 yes)
23485 $as_echo "#define HAVE_LIMB_BIG_ENDIAN 1" >>confdefs.h
23488 echo "define_not_for_expansion(\`HAVE_LIMB_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
23489 ;; #(
23491 $as_echo "#define HAVE_LIMB_LITTLE_ENDIAN 1" >>confdefs.h
23494 echo "define_not_for_expansion(\`HAVE_LIMB_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
23496 ;; #(
23497 universal)
23499 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23501 ;; #(
23503 : ;;
23504 esac
23510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking format of \`double' floating point" >&5
23511 $as_echo_n "checking format of \`double' floating point... " >&6; }
23512 if ${gmp_cv_c_double_format+:} false; then :
23513 $as_echo_n "(cached) " >&6
23514 else
23515 gmp_cv_c_double_format=unknown
23516 cat >conftest.c <<\EOF
23517 struct foo {
23518 char before[8];
23519 double x;
23520 char after[8];
23522 extern struct foo foo;
23523 struct foo foo = {
23524 { '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
23525 -123456789.0,
23526 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' },
23529 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
23530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
23531 (eval $gmp_compile) 2>&5
23532 ac_status=$?
23533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23534 test $ac_status = 0; }; then
23535 cat >conftest.awk <<\EOF
23537 BEGIN {
23538 found = 0
23542 for (f = 2; f <= NF; f++)
23544 for (i = 0; i < 23; i++)
23545 got[i] = got[i+1];
23546 got[23] = $f;
23548 # match the special begin and end sequences
23549 if (got[0] != "001") continue
23550 if (got[1] != "043") continue
23551 if (got[2] != "105") continue
23552 if (got[3] != "147") continue
23553 if (got[4] != "211") continue
23554 if (got[5] != "253") continue
23555 if (got[6] != "315") continue
23556 if (got[7] != "357") continue
23557 if (got[16] != "376") continue
23558 if (got[17] != "334") continue
23559 if (got[18] != "272") continue
23560 if (got[19] != "230") continue
23561 if (got[20] != "166") continue
23562 if (got[21] != "124") continue
23563 if (got[22] != "062") continue
23564 if (got[23] != "020") continue
23566 saw = " (" got[8] " " got[9] " " got[10] " " got[11] " " got[12] " " got[13] " " got[14] " " got[15] ")"
23568 if (got[8] == "000" && \
23569 got[9] == "000" && \
23570 got[10] == "000" && \
23571 got[11] == "124" && \
23572 got[12] == "064" && \
23573 got[13] == "157" && \
23574 got[14] == "235" && \
23575 got[15] == "301")
23577 print "IEEE little endian"
23578 found = 1
23579 exit
23582 # Little endian with the two 4-byte halves swapped, as used by ARM
23583 # when the chip is in little endian mode.
23585 if (got[8] == "064" && \
23586 got[9] == "157" && \
23587 got[10] == "235" && \
23588 got[11] == "301" && \
23589 got[12] == "000" && \
23590 got[13] == "000" && \
23591 got[14] == "000" && \
23592 got[15] == "124")
23594 print "IEEE little endian, swapped halves"
23595 found = 1
23596 exit
23599 # gcc 2.95.4 on one GNU/Linux ARM system was seen generating 000 in
23600 # the last byte, whereas 124 is correct. Not sure where the bug
23601 # actually lies, but a running program didn't seem to get a full
23602 # mantissa worth of working bits.
23604 # We match this case explicitly so we can give a nice result message,
23605 # but we deliberately exclude it from the normal IEEE double setups
23606 # since it's too broken.
23608 if (got[8] == "064" && \
23609 got[9] == "157" && \
23610 got[10] == "235" && \
23611 got[11] == "301" && \
23612 got[12] == "000" && \
23613 got[13] == "000" && \
23614 got[14] == "000" && \
23615 got[15] == "000")
23617 print "bad ARM software floats"
23618 found = 1
23619 exit
23622 if (got[8] == "301" && \
23623 got[9] == "235" && \
23624 got[10] == "157" && \
23625 got[11] == "064" && \
23626 got[12] == "124" && \
23627 got[13] == "000" && \
23628 got[14] == "000" && \
23629 got[15] == "000")
23631 print "IEEE big endian"
23632 found = 1
23633 exit
23636 if (got[8] == "353" && \
23637 got[9] == "315" && \
23638 got[10] == "242" && \
23639 got[11] == "171" && \
23640 got[12] == "000" && \
23641 got[13] == "240" && \
23642 got[14] == "000" && \
23643 got[15] == "000")
23645 print "VAX D"
23646 found = 1
23647 exit
23650 if (got[8] == "275" && \
23651 got[9] == "301" && \
23652 got[10] == "064" && \
23653 got[11] == "157" && \
23654 got[12] == "000" && \
23655 got[13] == "124" && \
23656 got[14] == "000" && \
23657 got[15] == "000")
23659 print "VAX G"
23660 found = 1
23661 exit
23664 if (got[8] == "300" && \
23665 got[9] == "033" && \
23666 got[10] == "353" && \
23667 got[11] == "171" && \
23668 got[12] == "242" && \
23669 got[13] == "240" && \
23670 got[14] == "000" && \
23671 got[15] == "000")
23673 print "Cray CFP"
23674 found = 1
23675 exit
23680 END {
23681 if (! found)
23682 print "unknown", saw
23686 gmp_cv_c_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
23687 case $gmp_cv_c_double_format in
23688 unknown*)
23689 echo "cannot match anything, conftest.$OBJEXT contains" >&5
23690 od -b conftest.$OBJEXT >&5
23692 esac
23693 else
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
23695 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
23697 rm -f conftest*
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_double_format" >&5
23701 $as_echo "$gmp_cv_c_double_format" >&6; }
23705 case $gmp_cv_c_double_format in
23706 "IEEE big endian")
23707 $as_echo "#define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1" >>confdefs.h
23710 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
23713 "IEEE little endian")
23714 $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1" >>confdefs.h
23717 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
23720 "IEEE little endian, swapped halves")
23721 $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_SWAPPED 1" >>confdefs.h
23723 "VAX D")
23724 $as_echo "#define HAVE_DOUBLE_VAX_D 1" >>confdefs.h
23726 "VAX G")
23727 $as_echo "#define HAVE_DOUBLE_VAX_G 1" >>confdefs.h
23729 "Cray CFP")
23730 $as_echo "#define HAVE_DOUBLE_CRAY_CFP 1" >>confdefs.h
23732 "bad ARM software floats")
23734 unknown*)
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine float format." >&5
23736 $as_echo "$as_me: WARNING: Could not determine float format." >&2;}
23737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Conversions to and from \"double\" may be slow." >&5
23738 $as_echo "$as_me: WARNING: Conversions to and from \"double\" may be slow." >&2;}
23741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&5
23742 $as_echo "$as_me: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&2;}
23744 esac
23748 # Reasons for testing:
23749 # alarm - not in mingw
23750 # attr_get - IRIX specific
23751 # clock_gettime - not in glibc 2.2.4, only very recent systems
23752 # cputime - not in glibc
23753 # getsysinfo - OSF specific
23754 # getrusage - not in mingw
23755 # gettimeofday - not in mingw
23756 # mmap - not in mingw, djgpp
23757 # nl_langinfo - X/Open standard only, not in djgpp for instance
23758 # obstack_vprintf - glibc specific
23759 # processor_info - solaris specific
23760 # pstat_getprocessor - HPUX specific (10.x and up)
23761 # raise - an ANSI-ism, though probably almost universal by now
23762 # read_real_time - AIX specific
23763 # sigaction - not in mingw
23764 # sigaltstack - not in mingw, or old AIX (reputedly)
23765 # sigstack - not in mingw
23766 # strerror - not in SunOS
23767 # strnlen - glibc extension (some other systems too)
23768 # syssgi - IRIX specific
23769 # times - not in mingw
23771 # AC_FUNC_STRNLEN is not used because we don't want the AC_LIBOBJ
23772 # replacement setups it gives. It detects a faulty strnlen on AIX, but
23773 # missing out on that test is ok since our only use of strnlen is in
23774 # __gmp_replacement_vsnprintf which is not required on AIX since it has a
23775 # vsnprintf.
23777 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
23778 do :
23779 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23780 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23781 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23782 cat >>confdefs.h <<_ACEOF
23783 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23784 _ACEOF
23787 done
23790 # clock_gettime is in librt on *-*-osf5.1 and on glibc, so att -lrt to
23791 # TUNE_LIBS if needed. On linux (tested on x86_32, 2.6.26),
23792 # clock_getres reports ns accuracy, while in a quick test on osf
23793 # clock_getres said only 1 millisecond.
23795 old_LIBS="$LIBS"
23796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
23797 $as_echo_n "checking for library containing clock_gettime... " >&6; }
23798 if ${ac_cv_search_clock_gettime+:} false; then :
23799 $as_echo_n "(cached) " >&6
23800 else
23801 ac_func_search_save_LIBS=$LIBS
23802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23803 /* end confdefs.h. */
23805 /* Override any GCC internal prototype to avoid an error.
23806 Use char because int might match the return type of a GCC
23807 builtin and then its argument prototype would still apply. */
23808 #ifdef __cplusplus
23809 extern "C"
23810 #endif
23811 char clock_gettime ();
23813 main ()
23815 return clock_gettime ();
23817 return 0;
23819 _ACEOF
23820 for ac_lib in '' rt; do
23821 if test -z "$ac_lib"; then
23822 ac_res="none required"
23823 else
23824 ac_res=-l$ac_lib
23825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23827 if ac_fn_c_try_link "$LINENO"; then :
23828 ac_cv_search_clock_gettime=$ac_res
23830 rm -f core conftest.err conftest.$ac_objext \
23831 conftest$ac_exeext
23832 if ${ac_cv_search_clock_gettime+:} false; then :
23833 break
23835 done
23836 if ${ac_cv_search_clock_gettime+:} false; then :
23838 else
23839 ac_cv_search_clock_gettime=no
23841 rm conftest.$ac_ext
23842 LIBS=$ac_func_search_save_LIBS
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
23845 $as_echo "$ac_cv_search_clock_gettime" >&6; }
23846 ac_res=$ac_cv_search_clock_gettime
23847 if test "$ac_res" != no; then :
23848 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23851 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
23855 TUNE_LIBS="$LIBS"
23856 LIBS="$old_LIBS"
23860 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
23861 if test "x$ac_cv_func_vsnprintf" = xyes; then :
23862 gmp_vsnprintf_exists=yes
23863 else
23864 gmp_vsnprintf_exists=no
23867 if test "$gmp_vsnprintf_exists" = no; then
23868 gmp_cv_func_vsnprintf=no
23869 else
23870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf works" >&5
23871 $as_echo_n "checking whether vsnprintf works... " >&6; }
23872 if ${gmp_cv_func_vsnprintf+:} false; then :
23873 $as_echo_n "(cached) " >&6
23874 else
23875 gmp_cv_func_vsnprintf=yes
23876 for i in 'return check ("hello world");' 'int n; return check ("%nhello world", &n);'; do
23877 if test "$cross_compiling" = yes; then :
23878 gmp_cv_func_vsnprintf=probably; break
23879 else
23880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23881 /* end confdefs.h. */
23883 #include <string.h> /* for strcmp */
23884 #include <stdio.h> /* for vsnprintf */
23886 #include <stdarg.h>
23889 check (const char *fmt, ...)
23891 static char buf[128];
23892 va_list ap;
23893 int ret;
23895 va_start (ap, fmt);
23897 ret = vsnprintf (buf, 4, fmt, ap);
23899 if (strcmp (buf, "hel") != 0)
23900 return 1;
23902 /* allowed return values */
23903 if (ret != -1 && ret != 3 && ret != 11)
23904 return 2;
23906 return 0;
23910 main ()
23915 _ACEOF
23916 if ac_fn_c_try_run "$LINENO"; then :
23918 else
23919 gmp_cv_func_vsnprintf=no; break
23921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23922 conftest.$ac_objext conftest.beam conftest.$ac_ext
23925 done
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_vsnprintf" >&5
23929 $as_echo "$gmp_cv_func_vsnprintf" >&6; }
23930 if test "$gmp_cv_func_vsnprintf" = probably; then
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&5
23932 $as_echo "$as_me: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&2;}
23934 if test "$gmp_cv_func_vsnprintf" != no; then
23936 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
23941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sscanf needs writable input" >&5
23942 $as_echo_n "checking whether sscanf needs writable input... " >&6; }
23943 if ${gmp_cv_func_sscanf_writable_input+:} false; then :
23944 $as_echo_n "(cached) " >&6
23945 else
23946 case $host in
23947 *-*-hpux9 | *-*-hpux9.*)
23948 gmp_cv_func_sscanf_writable_input=yes ;;
23949 *) gmp_cv_func_sscanf_writable_input=no ;;
23950 esac
23953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_sscanf_writable_input" >&5
23954 $as_echo "$gmp_cv_func_sscanf_writable_input" >&6; }
23955 case $gmp_cv_func_sscanf_writable_input in
23956 yes)
23957 $as_echo "#define SSCANF_WRITABLE_INPUT 1" >>confdefs.h
23959 no) ;;
23960 *) as_fn_error $? "unrecognised \$gmp_cv_func_sscanf_writable_input" "$LINENO" 5 ;;
23961 esac
23964 # Reasons for checking:
23965 # pst_processor psp_iticksperclktick - not in hpux 9
23967 ac_fn_c_check_member "$LINENO" "struct pst_processor" "psp_iticksperclktick" "ac_cv_member_struct_pst_processor_psp_iticksperclktick" "#include <sys/pstat.h>
23969 if test "x$ac_cv_member_struct_pst_processor_psp_iticksperclktick" = xyes; then :
23971 $as_echo "#define HAVE_PSP_ITICKSPERCLKTICK 1" >>confdefs.h
23976 # C++ tests, when required
23978 if test $enable_cxx = yes; then
23979 ac_ext=cpp
23980 ac_cpp='$CXXCPP $CPPFLAGS'
23981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23986 # Reasons for testing:
23987 # <sstream> - not in g++ 2.95.2
23988 # std::locale - not in g++ 2.95.4
23991 for ac_header in sstream
23992 do :
23993 ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default"
23994 if test "x$ac_cv_header_sstream" = xyes; then :
23995 cat >>confdefs.h <<_ACEOF
23996 #define HAVE_SSTREAM 1
23997 _ACEOF
24001 done
24003 ac_fn_cxx_check_type "$LINENO" "std::locale" "ac_cv_type_std__locale" "#include <locale>
24005 if test "x$ac_cv_type_std__locale" = xyes; then :
24007 cat >>confdefs.h <<_ACEOF
24008 #define HAVE_STD__LOCALE 1
24009 _ACEOF
24015 ac_ext=c
24016 ac_cpp='$CPP $CPPFLAGS'
24017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24024 # Pick the correct source files in $path and link them to mpn/.
24025 # $gmp_mpn_functions lists all functions we need.
24027 # The rule is to find a file with the function name and a .asm, .S,
24028 # .s, or .c extension. Certain multi-function files with special names
24029 # can provide some functions too. (mpn/Makefile.am passes
24030 # -DOPERATION_<func> to get them to generate the right code.)
24032 # Note: $gmp_mpn_functions must have mod_1 before pre_mod_1 so the former
24033 # can optionally provide the latter as an extra entrypoint. Likewise
24034 # divrem_1 and pre_divrem_1.
24036 gmp_mpn_functions_optional="umul udiv \
24037 invert_limb sqr_diagonal sqr_diag_addlsh1 \
24038 mul_2 mul_3 mul_4 mul_5 mul_6 \
24039 addmul_2 addmul_3 addmul_4 addmul_5 addmul_6 addmul_7 addmul_8 \
24040 addlsh1_n sublsh1_n rsblsh1_n rsh1add_n rsh1sub_n \
24041 addlsh2_n sublsh2_n rsblsh2_n \
24042 addlsh_n sublsh_n rsblsh_n \
24043 add_n_sub_n addaddmul_1msb0"
24045 gmp_mpn_functions="$extra_functions \
24046 add add_1 add_n sub sub_1 sub_n cnd_add_n cnd_sub_n neg com \
24047 mul_1 addmul_1 submul_1 \
24048 add_err1_n add_err2_n add_err3_n sub_err1_n sub_err2_n sub_err3_n \
24049 lshift rshift dive_1 diveby3 divis divrem divrem_1 divrem_2 \
24050 fib2_ui mod_1 mod_34lsub1 mode1o pre_divrem_1 pre_mod_1 dump \
24051 mod_1_1 mod_1_2 mod_1_3 mod_1_4 lshiftc \
24052 mul mul_fft mul_n sqr mul_basecase sqr_basecase nussbaumer_mul \
24053 mulmid_basecase toom42_mulmid mulmid_n mulmid \
24054 random random2 pow_1 \
24055 rootrem sqrtrem sizeinbase get_str set_str \
24056 scan0 scan1 popcount hamdist cmp \
24057 perfsqr perfpow \
24058 gcd_1 gcd gcdext_1 gcdext gcd_subdiv_step \
24059 gcdext_lehmer \
24060 div_q tdiv_qr jacbase jacobi_2 jacobi get_d \
24061 matrix22_mul matrix22_mul1_inverse_vector \
24062 hgcd_matrix hgcd2 hgcd_step hgcd_reduce hgcd hgcd_appr \
24063 hgcd2_jacobi hgcd_jacobi \
24064 mullo_n mullo_basecase \
24065 toom22_mul toom32_mul toom42_mul toom52_mul toom62_mul \
24066 toom33_mul toom43_mul toom53_mul toom54_mul toom63_mul \
24067 toom44_mul \
24068 toom6h_mul toom6_sqr toom8h_mul toom8_sqr \
24069 toom_couple_handling \
24070 toom2_sqr toom3_sqr toom4_sqr \
24071 toom_eval_dgr3_pm1 toom_eval_dgr3_pm2 \
24072 toom_eval_pm1 toom_eval_pm2 toom_eval_pm2exp toom_eval_pm2rexp \
24073 toom_interpolate_5pts toom_interpolate_6pts toom_interpolate_7pts \
24074 toom_interpolate_8pts toom_interpolate_12pts toom_interpolate_16pts \
24075 invertappr invert binvert mulmod_bnm1 sqrmod_bnm1 \
24076 div_qr_1 div_qr_1n_pi1 \
24077 div_qr_2 div_qr_2n_pi1 div_qr_2u_pi1 \
24078 sbpi1_div_q sbpi1_div_qr sbpi1_divappr_q \
24079 dcpi1_div_q dcpi1_div_qr dcpi1_divappr_q \
24080 mu_div_qr mu_divappr_q mu_div_q \
24081 bdiv_q_1 \
24082 sbpi1_bdiv_q sbpi1_bdiv_qr \
24083 dcpi1_bdiv_q dcpi1_bdiv_qr \
24084 mu_bdiv_q mu_bdiv_qr \
24085 bdiv_q bdiv_qr broot brootinv bsqrt bsqrtinv \
24086 divexact bdiv_dbm1c redc_1 redc_2 redc_n powm powlo sec_powm \
24087 sec_mul sec_sqr sec_div_qr sec_div_r sec_pi1_div_qr sec_pi1_div_r \
24088 sec_add_1 sec_sub_1 sec_invert \
24089 trialdiv remove \
24090 and_n andn_n nand_n ior_n iorn_n nior_n xor_n xnor_n \
24091 copyi copyd zero sec_tabselect \
24092 comb_tables \
24093 $gmp_mpn_functions_optional"
24097 # the list of all object files used by mpn/Makefile.in and the
24098 # top-level Makefile.in, respectively
24099 mpn_objects=
24100 mpn_objs_in_libgmp=
24102 # links from the sources, to be removed by "make distclean"
24103 gmp_srclinks=
24106 # mpn_relative_top_srcdir is $top_srcdir, but for use from within the mpn
24107 # build directory. If $srcdir is relative then we use a relative path too,
24108 # so the two trees can be moved together.
24109 case $srcdir in
24110 [\\/]* | ?:[\\/]*) # absolute, as per autoconf
24111 mpn_relative_top_srcdir=$srcdir ;;
24112 *) # relative
24113 mpn_relative_top_srcdir=../$srcdir ;;
24114 esac
24121 # Fat binary setups.
24123 # We proceed through each $fat_path directory, and look for $fat_function
24124 # routines there. Those found are incorporated in the build by generating a
24125 # little mpn/<foo>.asm or mpn/<foo>.c file in the build directory, with
24126 # suitable function renaming, and adding that to $mpn_objects (the same as a
24127 # normal mpn file).
24129 # fat.h is generated with macros to let internal calls to each $fat_function
24130 # go directly through __gmpn_cpuvec, plus macros and declarations helping to
24131 # setup that structure, on a per-directory basis ready for
24132 # mpn/<cpu>/fat/fat.c.
24134 # fat.h includes thresholds listed in $fat_thresholds, extracted from
24135 # gmp-mparam.h in each directory. An overall maximum for each threshold is
24136 # established, for use in making fixed size arrays of temporary space.
24137 # (Eg. MUL_TOOM33_THRESHOLD_LIMIT used by mpn/generic/mul.c.)
24139 # It'd be possible to do some of this manually, but when there's more than a
24140 # few functions and a few directories it becomes very tedious, and very
24141 # prone to having some routine accidentally omitted. On that basis it seems
24142 # best to automate as much as possible, even if the code to do so is a bit
24143 # ugly.
24146 if test -n "$fat_path"; then
24147 # Usually the mpn build directory is created with mpn/Makefile
24148 # instantiation, but we want to write to it sooner.
24149 mkdir mpn 2>/dev/null
24151 echo "/* fat.h - setups for fat binaries." >fat.h
24152 echo " Generated by configure - DO NOT EDIT. */" >>fat.h
24155 $as_echo "#define WANT_FAT_BINARY 1" >>confdefs.h
24158 echo 'define(<WANT_FAT_BINARY>, <yes>)' >>$gmp_tmpconfigm4
24161 # Don't want normal copies of fat functions
24162 for tmp_fn in $fat_functions; do
24163 remove_from_list_tmp=
24164 for remove_from_list_i in $gmp_mpn_functions; do
24165 if test $remove_from_list_i = $tmp_fn; then :;
24166 else
24167 remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i"
24169 done
24170 gmp_mpn_functions=$remove_from_list_tmp
24172 remove_from_list_tmp=
24173 for remove_from_list_i in $gmp_mpn_functions_optional; do
24174 if test $remove_from_list_i = $tmp_fn; then :;
24175 else
24176 remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i"
24178 done
24179 gmp_mpn_functions_optional=$remove_from_list_tmp
24181 done
24183 for tmp_fn in $fat_functions; do
24184 case $tmp_fn in
24185 dive_1) tmp_fbase=divexact_1 ;;
24186 diveby3) tmp_fbase=divexact_by3c ;;
24187 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
24188 mode1o) tmp_fbase=modexact_1c_odd ;;
24189 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
24190 mod_1_1) tmp_fbase=mod_1_1p ;;
24191 mod_1_1_cps) tmp_fbase=mod_1_1p_cps ;;
24192 mod_1_2) tmp_fbase=mod_1s_2p ;;
24193 mod_1_2_cps) tmp_fbase=mod_1s_2p_cps ;;
24194 mod_1_3) tmp_fbase=mod_1s_3p ;;
24195 mod_1_3_cps) tmp_fbase=mod_1s_3p_cps ;;
24196 mod_1_4) tmp_fbase=mod_1s_4p ;;
24197 mod_1_4_cps) tmp_fbase=mod_1s_4p_cps ;;
24198 *) tmp_fbase=$tmp_fn ;;
24199 esac
24201 echo "
24202 #ifndef OPERATION_$tmp_fn
24203 #undef mpn_$tmp_fbase
24204 #define mpn_$tmp_fbase (*__gmpn_cpuvec.$tmp_fbase)
24205 #endif
24206 DECL_$tmp_fbase (__MPN(${tmp_fbase}_init));" >>fat.h
24207 # encourage various macros to use fat functions
24208 cat >>confdefs.h <<_ACEOF
24209 #define HAVE_NATIVE_mpn_$tmp_fbase 1
24210 _ACEOF
24212 done
24214 echo "" >>fat.h
24215 echo "/* variable thresholds */" >>fat.h
24216 for tmp_tn in $fat_thresholds; do
24217 echo "#undef $tmp_tn" >>fat.h
24218 echo "#define $tmp_tn CPUVEC_THRESHOLD (`echo $tmp_tn | tr [A-Z] [a-z]`)" >>fat.h
24219 done
24221 echo "
24222 /* Copy all fields into __gmpn_cpuvec.
24223 memcpy is not used because it might operate byte-wise (depending on its
24224 implementation), and we need the function pointer writes to be atomic.
24225 "volatile" discourages the compiler from trying to optimize this. */
24226 #define CPUVEC_INSTALL(vec) \\
24227 do { \\
24228 volatile struct cpuvec_t *p = &__gmpn_cpuvec; \\" >>fat.h
24229 for tmp_fn in $fat_functions; do
24230 case $tmp_fn in
24231 dive_1) tmp_fbase=divexact_1 ;;
24232 diveby3) tmp_fbase=divexact_by3c ;;
24233 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
24234 mode1o) tmp_fbase=modexact_1c_odd ;;
24235 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
24236 mod_1_1) tmp_fbase=mod_1_1p ;;
24237 mod_1_1_cps) tmp_fbase=mod_1_1p_cps ;;
24238 mod_1_2) tmp_fbase=mod_1s_2p ;;
24239 mod_1_2_cps) tmp_fbase=mod_1s_2p_cps ;;
24240 mod_1_3) tmp_fbase=mod_1s_3p ;;
24241 mod_1_3_cps) tmp_fbase=mod_1s_3p_cps ;;
24242 mod_1_4) tmp_fbase=mod_1s_4p ;;
24243 mod_1_4_cps) tmp_fbase=mod_1s_4p_cps ;;
24244 *) tmp_fbase=$tmp_fn ;;
24245 esac
24247 echo " p->$tmp_fbase = vec.$tmp_fbase; \\" >>fat.h
24248 done
24249 for tmp_tn in $fat_thresholds; do
24250 tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]`
24251 echo " p->$tmp_field_name = vec.$tmp_field_name; \\" >>fat.h
24252 done
24253 echo " } while (0)" >>fat.h
24255 echo "
24256 /* A helper to check all fields are filled. */
24257 #define ASSERT_CPUVEC(vec) \\
24258 do { \\" >>fat.h
24259 for tmp_fn in $fat_functions; do
24260 case $tmp_fn in
24261 dive_1) tmp_fbase=divexact_1 ;;
24262 diveby3) tmp_fbase=divexact_by3c ;;
24263 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
24264 mode1o) tmp_fbase=modexact_1c_odd ;;
24265 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
24266 mod_1_1) tmp_fbase=mod_1_1p ;;
24267 mod_1_1_cps) tmp_fbase=mod_1_1p_cps ;;
24268 mod_1_2) tmp_fbase=mod_1s_2p ;;
24269 mod_1_2_cps) tmp_fbase=mod_1s_2p_cps ;;
24270 mod_1_3) tmp_fbase=mod_1s_3p ;;
24271 mod_1_3_cps) tmp_fbase=mod_1s_3p_cps ;;
24272 mod_1_4) tmp_fbase=mod_1s_4p ;;
24273 mod_1_4_cps) tmp_fbase=mod_1s_4p_cps ;;
24274 *) tmp_fbase=$tmp_fn ;;
24275 esac
24277 echo " ASSERT (vec.$tmp_fbase != NULL); \\" >>fat.h
24278 done
24279 for tmp_tn in $fat_thresholds; do
24280 tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]`
24281 echo " ASSERT (vec.$tmp_field_name != 0); \\" >>fat.h
24282 done
24283 echo " } while (0)" >>fat.h
24285 echo "
24286 /* Call ITERATE(field) for each fat threshold field. */
24287 #define ITERATE_FAT_THRESHOLDS() \\
24288 do { \\" >>fat.h
24289 for tmp_tn in $fat_thresholds; do
24290 tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]`
24291 echo " ITERATE ($tmp_tn, $tmp_field_name); \\" >>fat.h
24292 done
24293 echo " } while (0)" >>fat.h
24295 for tmp_dir in $fat_path; do
24296 CPUVEC_SETUP=
24297 THRESH_ASM_SETUP=
24298 echo "" >>fat.h
24299 tmp_suffix=`echo $tmp_dir | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
24301 # In order to keep names unique on a DOS 8.3 filesystem, use a prefix
24302 # (rather than a suffix) for the generated file names, and abbreviate.
24303 case $tmp_suffix in
24304 pentium) tmp_prefix=p ;;
24305 pentium_mmx) tmp_prefix=pm ;;
24306 p6_mmx) tmp_prefix=p2 ;;
24307 p6_p3mmx) tmp_prefix=p3 ;;
24308 pentium4) tmp_prefix=p4 ;;
24309 pentium4_mmx) tmp_prefix=p4m ;;
24310 pentium4_sse2) tmp_prefix=p4s ;;
24311 k6_mmx) tmp_prefix=k6m ;;
24312 k6_k62mmx) tmp_prefix=k62 ;;
24313 k7_mmx) tmp_prefix=k7m ;;
24314 *) tmp_prefix=$tmp_suffix ;;
24315 esac
24317 # Extract desired thresholds from gmp-mparam.h file in this directory,
24318 # if present.
24319 tmp_mparam=$srcdir/mpn/$tmp_dir/gmp-mparam.h
24320 if test -f $tmp_mparam; then
24321 for tmp_tn in $fat_thresholds; do
24322 tmp_thresh=`sed -n "s/^#define $tmp_tn[ ]*\\([0-9][0-9]*\\).*$/\\1/p" $tmp_mparam`
24323 if test -n "$tmp_thresh"; then
24324 THRESH_ASM_SETUP="${THRESH_ASM_SETUP}define($tmp_tn,$tmp_thresh)
24326 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.`echo $tmp_tn | tr [A-Z] [a-z]` = $tmp_thresh; \\
24328 eval tmp_limit=\$${tmp_tn}_LIMIT
24329 if test -z "$tmp_limit"; then
24330 tmp_limit=0
24332 if test $tmp_thresh -gt $tmp_limit; then
24333 eval ${tmp_tn}_LIMIT=$tmp_thresh
24336 done
24339 for tmp_fn in $fat_functions; do
24340 # functions that can be provided by multi-function files
24341 tmp_mulfunc=
24342 case $tmp_fn in
24343 add_n|sub_n) tmp_mulfunc="aors_n" ;;
24344 add_err1_n|sub_err1_n)
24345 tmp_mulfunc="aors_err1_n" ;;
24346 add_err2_n|sub_err2_n)
24347 tmp_mulfunc="aors_err2_n" ;;
24348 add_err3_n|sub_err3_n)
24349 tmp_mulfunc="aors_err3_n" ;;
24350 cnd_add_n|cnd_sub_n) tmp_mulfunc="cnd_aors_n" ;;
24351 sec_add_1|sec_sub_1) tmp_mulfunc="sec_aors_1" ;;
24352 addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
24353 mul_2|addmul_2) tmp_mulfunc="aormul_2" ;;
24354 mul_3|addmul_3) tmp_mulfunc="aormul_3" ;;
24355 mul_4|addmul_4) tmp_mulfunc="aormul_4" ;;
24356 popcount|hamdist) tmp_mulfunc="popham" ;;
24357 and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
24358 tmp_mulfunc="logops_n" ;;
24359 lshift|rshift) tmp_mulfunc="lorrshift";;
24360 addlsh1_n)
24361 tmp_mulfunc="aorslsh1_n aorrlsh1_n aorsorrlsh1_n";;
24362 sublsh1_n)
24363 tmp_mulfunc="aorslsh1_n sorrlsh1_n aorsorrlsh1_n";;
24364 rsblsh1_n)
24365 tmp_mulfunc="aorrlsh1_n sorrlsh1_n aorsorrlsh1_n";;
24366 addlsh2_n)
24367 tmp_mulfunc="aorslsh2_n aorrlsh2_n aorsorrlsh2_n";;
24368 sublsh2_n)
24369 tmp_mulfunc="aorslsh2_n sorrlsh2_n aorsorrlsh2_n";;
24370 rsblsh2_n)
24371 tmp_mulfunc="aorrlsh2_n sorrlsh2_n aorsorrlsh2_n";;
24372 addlsh_n)
24373 tmp_mulfunc="aorslsh_n aorrlsh_n aorsorrlsh_n";;
24374 sublsh_n)
24375 tmp_mulfunc="aorslsh_n sorrlsh_n aorsorrlsh_n";;
24376 rsblsh_n)
24377 tmp_mulfunc="aorrlsh_n sorrlsh_n aorsorrlsh_n";;
24378 rsh1add_n|rsh1sub_n)
24379 tmp_mulfunc="rsh1aors_n";;
24380 sec_div_qr|sec_div_r)
24381 tmp_mulfunc="sec_div";;
24382 sec_pi1_div_qr|sec_pi1_div_r)
24383 tmp_mulfunc="sec_pi1_div";;
24384 esac
24387 for tmp_base in $tmp_fn $tmp_mulfunc; do
24388 for tmp_ext in asm S s c; do
24389 tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
24390 if test -f $tmp_file; then
24392 # If the host uses a non-standard ABI, check if tmp_file supports it
24394 if test -n "$GMP_NONSTD_ABI" && test $tmp_ext != "c"; then
24395 abi=`sed -n 's/^[ ]*ABI_SUPPORT(\(.*\))/\1/p' $tmp_file `
24396 if echo "$abi" | grep -q "\\b${GMP_NONSTD_ABI}\\b"; then
24397 true
24398 else
24399 continue
24403 mpn_objects="$mpn_objects ${tmp_prefix}_$tmp_fn.lo"
24404 mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/${tmp_prefix}_$tmp_fn.lo"
24406 case $tmp_fn in
24407 dive_1) tmp_fbase=divexact_1 ;;
24408 diveby3) tmp_fbase=divexact_by3c ;;
24409 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
24410 mode1o) tmp_fbase=modexact_1c_odd ;;
24411 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
24412 mod_1_1) tmp_fbase=mod_1_1p ;;
24413 mod_1_1_cps) tmp_fbase=mod_1_1p_cps ;;
24414 mod_1_2) tmp_fbase=mod_1s_2p ;;
24415 mod_1_2_cps) tmp_fbase=mod_1s_2p_cps ;;
24416 mod_1_3) tmp_fbase=mod_1s_3p ;;
24417 mod_1_3_cps) tmp_fbase=mod_1s_3p_cps ;;
24418 mod_1_4) tmp_fbase=mod_1s_4p ;;
24419 mod_1_4_cps) tmp_fbase=mod_1s_4p_cps ;;
24420 *) tmp_fbase=$tmp_fn ;;
24421 esac
24424 # carry-in variant, eg. divrem_1c or modexact_1c_odd
24425 case $tmp_fbase in
24426 *_1*) tmp_fbasec=`echo $tmp_fbase | sed 's/_1/_1c/'` ;;
24427 *) tmp_fbasec=${tmp_fbase}c ;;
24428 esac
24430 # Create a little file doing an include from srcdir. The
24431 # OPERATION and renamings aren't all needed all the time, but
24432 # they don't hurt if unused.
24434 # FIXME: Should generate these via config.status commands.
24435 # Would need them all in one AC_CONFIG_COMMANDS though, since
24436 # that macro doesn't accept a set of separate commands generated
24437 # by shell code.
24439 case $tmp_ext in
24440 asm)
24441 # hide the d-n-l from autoconf's error checking
24442 tmp_d_n_l=d""nl
24443 echo "$tmp_d_n_l mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
24444 $tmp_d_n_l Generated by configure - DO NOT EDIT.
24446 define(OPERATION_$tmp_fn)
24447 define(__gmpn_$tmp_fbase, __gmpn_${tmp_fbase}_$tmp_suffix)
24448 define(__gmpn_$tmp_fbasec,__gmpn_${tmp_fbasec}_${tmp_suffix})
24449 define(__gmpn_preinv_${tmp_fbase},__gmpn_preinv_${tmp_fbase}_${tmp_suffix})
24450 define(__gmpn_${tmp_fbase}_cps,__gmpn_${tmp_fbase}_cps_${tmp_suffix})
24452 $tmp_d_n_l For k6 and k7 gcd_1 calling their corresponding mpn_modexact_1_odd
24453 ifdef(\`__gmpn_modexact_1_odd',,
24454 \`define(__gmpn_modexact_1_odd,__gmpn_modexact_1_odd_${tmp_suffix})')
24456 $THRESH_ASM_SETUP
24457 include($mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.asm)
24458 " >mpn/${tmp_prefix}_$tmp_fn.asm
24461 echo "/* mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
24462 Generated by configure - DO NOT EDIT. */
24464 #define OPERATION_$tmp_fn 1
24465 #define __gmpn_$tmp_fbase __gmpn_${tmp_fbase}_$tmp_suffix
24466 #define __gmpn_$tmp_fbasec __gmpn_${tmp_fbasec}_${tmp_suffix}
24467 #define __gmpn_preinv_${tmp_fbase} __gmpn_preinv_${tmp_fbase}_${tmp_suffix}
24468 #define __gmpn_${tmp_fbase}_cps __gmpn_${tmp_fbase}_cps_${tmp_suffix}
24470 #include \"$mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.c\"
24471 " >mpn/${tmp_prefix}_$tmp_fn.c
24473 esac
24475 # Prototype, and append to CPUVEC_SETUP for this directory.
24476 echo "DECL_$tmp_fbase (__gmpn_${tmp_fbase}_$tmp_suffix);" >>fat.h
24477 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.$tmp_fbase = __gmpn_${tmp_fbase}_${tmp_suffix}; \\
24479 # Ditto for any preinv variant (preinv_divrem_1, preinv_mod_1).
24480 if grep "^PROLOGUE(mpn_preinv_$tmp_fn)" $tmp_file >/dev/null; then
24481 echo "DECL_preinv_$tmp_fbase (__gmpn_preinv_${tmp_fbase}_$tmp_suffix);" >>fat.h
24482 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.preinv_$tmp_fbase = __gmpn_preinv_${tmp_fbase}_${tmp_suffix}; \\
24486 # Ditto for any mod_1...cps variant
24487 if grep "^PROLOGUE(mpn_${tmp_fbase}_cps)" $tmp_file >/dev/null; then
24488 echo "DECL_${tmp_fbase}_cps (__gmpn_${tmp_fbase}_cps_$tmp_suffix);" >>fat.h
24489 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.${tmp_fbase}_cps = __gmpn_${tmp_fbase}_cps_${tmp_suffix}; \\
24493 done
24494 done
24495 done
24497 # Emit CPUVEC_SETUP for this directory
24498 echo "" >>fat.h
24499 echo "#define CPUVEC_SETUP_$tmp_suffix \\" >>fat.h
24500 echo " do { \\" >>fat.h
24501 echo "$CPUVEC_SETUP } while (0)" >>fat.h
24502 done
24504 # Emit threshold limits
24505 echo "" >>fat.h
24506 for tmp_tn in $fat_thresholds; do
24507 eval tmp_limit=\$${tmp_tn}_LIMIT
24508 echo "#define ${tmp_tn}_LIMIT $tmp_limit" >>fat.h
24509 done
24513 # Normal binary setups.
24516 for tmp_ext in asm S s c; do
24517 eval found_$tmp_ext=no
24518 done
24520 for tmp_fn in $gmp_mpn_functions; do
24521 for tmp_ext in asm S s c; do
24522 test "$no_create" = yes || rm -f mpn/$tmp_fn.$tmp_ext
24523 done
24525 # mpn_preinv_divrem_1 might have been provided by divrem_1.asm, likewise
24526 # mpn_preinv_mod_1 by mod_1.asm.
24527 case $tmp_fn in
24528 pre_divrem_1)
24529 if test "$HAVE_NATIVE_mpn_preinv_divrem_1" = yes; then continue; fi ;;
24530 pre_mod_1)
24531 if test "$HAVE_NATIVE_mpn_preinv_mod_1" = yes; then continue; fi ;;
24532 esac
24534 # functions that can be provided by multi-function files
24535 tmp_mulfunc=
24536 case $tmp_fn in
24537 add_n|sub_n) tmp_mulfunc="aors_n" ;;
24538 add_err1_n|sub_err1_n)
24539 tmp_mulfunc="aors_err1_n" ;;
24540 add_err2_n|sub_err2_n)
24541 tmp_mulfunc="aors_err2_n" ;;
24542 add_err3_n|sub_err3_n)
24543 tmp_mulfunc="aors_err3_n" ;;
24544 cnd_add_n|cnd_sub_n) tmp_mulfunc="cnd_aors_n" ;;
24545 sec_add_1|sec_sub_1) tmp_mulfunc="sec_aors_1" ;;
24546 addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
24547 mul_2|addmul_2) tmp_mulfunc="aormul_2" ;;
24548 mul_3|addmul_3) tmp_mulfunc="aormul_3" ;;
24549 mul_4|addmul_4) tmp_mulfunc="aormul_4" ;;
24550 popcount|hamdist) tmp_mulfunc="popham" ;;
24551 and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
24552 tmp_mulfunc="logops_n" ;;
24553 lshift|rshift) tmp_mulfunc="lorrshift";;
24554 addlsh1_n)
24555 tmp_mulfunc="aorslsh1_n aorrlsh1_n aorsorrlsh1_n";;
24556 sublsh1_n)
24557 tmp_mulfunc="aorslsh1_n sorrlsh1_n aorsorrlsh1_n";;
24558 rsblsh1_n)
24559 tmp_mulfunc="aorrlsh1_n sorrlsh1_n aorsorrlsh1_n";;
24560 addlsh2_n)
24561 tmp_mulfunc="aorslsh2_n aorrlsh2_n aorsorrlsh2_n";;
24562 sublsh2_n)
24563 tmp_mulfunc="aorslsh2_n sorrlsh2_n aorsorrlsh2_n";;
24564 rsblsh2_n)
24565 tmp_mulfunc="aorrlsh2_n sorrlsh2_n aorsorrlsh2_n";;
24566 addlsh_n)
24567 tmp_mulfunc="aorslsh_n aorrlsh_n aorsorrlsh_n";;
24568 sublsh_n)
24569 tmp_mulfunc="aorslsh_n sorrlsh_n aorsorrlsh_n";;
24570 rsblsh_n)
24571 tmp_mulfunc="aorrlsh_n sorrlsh_n aorsorrlsh_n";;
24572 rsh1add_n|rsh1sub_n)
24573 tmp_mulfunc="rsh1aors_n";;
24574 sec_div_qr|sec_div_r)
24575 tmp_mulfunc="sec_div";;
24576 sec_pi1_div_qr|sec_pi1_div_r)
24577 tmp_mulfunc="sec_pi1_div";;
24578 esac
24581 found=no
24582 for tmp_dir in $path; do
24583 for tmp_base in $tmp_fn $tmp_mulfunc; do
24584 for tmp_ext in asm S s c; do
24585 tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
24586 if test -f $tmp_file; then
24588 # For a nails build, check if the file supports our nail bits.
24589 # Generic code always supports all nails.
24591 # FIXME: When a multi-function file is selected to provide one of
24592 # the nails-neutral routines, like logops_n for and_n, the
24593 # PROLOGUE grepping will create HAVE_NATIVE_mpn_<foo> defines for
24594 # all functions in that file, even if they haven't all been
24595 # nailified. Not sure what to do about this, it's only really a
24596 # problem for logops_n, and it's not too terrible to insist those
24597 # get nailified always.
24599 if test $GMP_NAIL_BITS != 0 && test $tmp_dir != generic; then
24600 case $tmp_fn in
24601 and_n | ior_n | xor_n | andn_n | \
24602 copyi | copyd | \
24603 popcount | hamdist | \
24604 udiv | udiv_w_sdiv | umul | \
24605 cntlz | invert_limb)
24606 # these operations are either unaffected by nails or defined
24607 # to operate on full limbs
24610 nails=`sed -n 's/^[ ]*NAILS_SUPPORT(\(.*\))/\1/p' $tmp_file `
24611 for n in $nails; do
24612 case $n in
24613 *-*)
24614 n_start=`echo "$n" | sed -n 's/\(.*\)-.*/\1/p'`
24615 n_end=`echo "$n" | sed -n 's/.*-\(.*\)/\1/p'`
24618 n_start=$n
24619 n_end=$n
24621 esac
24622 if test $GMP_NAIL_BITS -ge $n_start && test $GMP_NAIL_BITS -le $n_end; then
24623 found=yes
24624 break
24626 done
24627 if test $found != yes; then
24628 continue
24631 esac
24634 # If the host uses a non-standard ABI, check if tmp_file supports it
24636 if test -n "$GMP_NONSTD_ABI" && test $tmp_ext != "c"; then
24637 abi=`sed -n 's/^[ ]*ABI_SUPPORT(\(.*\))/\1/p' $tmp_file `
24638 if echo "$abi" | grep -q "\\b${GMP_NONSTD_ABI}\\b"; then
24639 true
24640 else
24641 continue
24645 found=yes
24646 eval found_$tmp_ext=yes
24648 if test $tmp_ext = c; then
24649 tmp_u='$U'
24650 else
24651 tmp_u=
24654 mpn_objects="$mpn_objects $tmp_fn$tmp_u.lo"
24655 mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/$tmp_fn$tmp_u.lo"
24656 ac_config_links="$ac_config_links mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext"
24658 gmp_srclinks="$gmp_srclinks mpn/$tmp_fn.$tmp_ext"
24660 # Duplicate AC_DEFINEs are harmless, so it doesn't matter
24661 # that multi-function files get grepped here repeatedly.
24662 # The PROLOGUE pattern excludes the optional second parameter.
24663 gmp_ep=`
24664 sed -n 's/^[ ]*MULFUNC_PROLOGUE(\(.*\))/\1/p' $tmp_file ;
24665 sed -n 's/^[ ]*PROLOGUE(\([^,]*\).*)/\1/p' $tmp_file
24667 for gmp_tmp in $gmp_ep; do
24668 cat >>confdefs.h <<_ACEOF
24669 #define HAVE_NATIVE_$gmp_tmp 1
24670 _ACEOF
24672 eval HAVE_NATIVE_$gmp_tmp=yes
24673 done
24675 case $tmp_fn in
24676 sqr_basecase) sqr_basecase_source=$tmp_file ;;
24677 esac
24679 break
24681 done
24682 if test $found = yes; then break ; fi
24683 done
24684 if test $found = yes; then break ; fi
24685 done
24687 if test $found = no; then
24688 for tmp_optional in $gmp_mpn_functions_optional; do
24689 if test $tmp_optional = $tmp_fn; then
24690 found=yes
24692 done
24693 if test $found = no; then
24694 as_fn_error $? "no version of $tmp_fn found in path: $path" "$LINENO" 5
24697 done
24699 # All cycle counters are .asm files currently
24700 if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
24701 found_asm=yes
24708 # Don't demand an m4 unless it's actually needed.
24709 if test $found_asm = yes; then
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable m4" >&5
24712 $as_echo_n "checking for suitable m4... " >&6; }
24713 if ${gmp_cv_prog_m4+:} false; then :
24714 $as_echo_n "(cached) " >&6
24715 else
24716 if test -n "$M4"; then
24717 gmp_cv_prog_m4="$M4"
24718 else
24719 cat >conftest.m4 <<\EOF
24720 define(dollarhash,``$#'')ifelse(dollarhash(x),1,`define(t1,Y)',
24721 ``bad: $# not supported (SunOS /usr/bin/m4)
24722 '')ifelse(eval(89),89,`define(t2,Y)',
24723 `bad: eval() doesnt support 8 or 9 in a constant (OpenBSD 2.6 m4)
24724 ')ifelse(eval(9,9),10,`define(t3,Y)',
24725 `bad: eval() doesnt support radix in eval (FreeBSD 8.x,9.0,9.1,9.2 m4)
24726 ')ifelse(t1`'t2`'t3,YYY,`good
24729 echo "trying m4" >&5
24730 gmp_tmp_val=`(m4 conftest.m4) 2>&5`
24731 echo "$gmp_tmp_val" >&5
24732 if test "$gmp_tmp_val" = good; then
24733 gmp_cv_prog_m4="m4"
24734 else
24735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
24736 ac_dummy="$PATH:/usr/5bin"
24737 for ac_dir in $ac_dummy; do
24738 test -z "$ac_dir" && ac_dir=.
24739 echo "trying $ac_dir/m4" >&5
24740 gmp_tmp_val=`($ac_dir/m4 conftest.m4) 2>&5`
24741 echo "$gmp_tmp_val" >&5
24742 if test "$gmp_tmp_val" = good; then
24743 gmp_cv_prog_m4="$ac_dir/m4"
24744 break
24746 done
24747 IFS="$ac_save_ifs"
24748 if test -z "$gmp_cv_prog_m4"; then
24749 as_fn_error $? "No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." "$LINENO" 5
24752 rm -f conftest.m4
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_m4" >&5
24756 $as_echo "$gmp_cv_prog_m4" >&6; }
24757 M4="$gmp_cv_prog_m4"
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if m4wrap produces spurious output" >&5
24762 $as_echo_n "checking if m4wrap produces spurious output... " >&6; }
24763 if ${gmp_cv_m4_m4wrap_spurious+:} false; then :
24764 $as_echo_n "(cached) " >&6
24765 else
24766 # hide the d-n-l from autoconf's error checking
24767 tmp_d_n_l=d""nl
24768 cat >conftest.m4 <<EOF
24769 changequote({,})define(x,)m4wrap({x})$tmp_d_n_l
24771 echo test input is >&5
24772 cat conftest.m4 >&5
24773 tmp_chars=`$M4 conftest.m4 | wc -c`
24774 echo produces $tmp_chars chars output >&5
24775 rm -f conftest.m4
24776 if test $tmp_chars = 0; then
24777 gmp_cv_m4_m4wrap_spurious=no
24778 else
24779 gmp_cv_m4_m4wrap_spurious=yes
24783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_m4_m4wrap_spurious" >&5
24784 $as_echo "$gmp_cv_m4_m4wrap_spurious" >&6; }
24786 echo "define(<M4WRAP_SPURIOUS>,<$gmp_cv_m4_m4wrap_spurious>)" >> $gmp_tmpconfigm4
24789 # else
24790 # It's unclear why this m4-not-needed stuff was ever done.
24791 # if test -z "$M4" ; then
24792 # M4=m4-not-needed
24793 # fi
24796 # Only do the GMP_ASM checks if there's a .S or .asm wanting them.
24797 if test $found_asm = no && test $found_S = no; then
24798 gmp_asm_syntax_testing=no
24801 if test "$gmp_asm_syntax_testing" != no; then
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to text section" >&5
24803 $as_echo_n "checking how to switch to text section... " >&6; }
24804 if ${gmp_cv_asm_text+:} false; then :
24805 $as_echo_n "(cached) " >&6
24806 else
24807 for i in ".text" ".code" ".csect .text[PR]"; do
24808 echo "trying $i" >&5
24809 cat >conftest.s <<EOF
24812 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
24813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
24814 (eval $gmp_assemble) 2>&5
24815 ac_status=$?
24816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24817 test $ac_status = 0; }; then
24818 cat conftest.out >&5
24819 gmp_cv_asm_text=$i
24820 rm -f conftest*
24821 break
24822 else
24823 cat conftest.out >&5
24824 echo "configure: failed program was:" >&5
24825 cat conftest.s >&5
24828 rm -f conftest*
24830 done
24831 if test -z "$gmp_cv_asm_text"; then
24832 as_fn_error $? "Cannot determine text section directive" "$LINENO" 5
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_text" >&5
24837 $as_echo "$gmp_cv_asm_text" >&6; }
24838 echo "define(<TEXT>, <$gmp_cv_asm_text>)" >> $gmp_tmpconfigm4
24840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to data section" >&5
24841 $as_echo_n "checking how to switch to data section... " >&6; }
24842 if ${gmp_cv_asm_data+:} false; then :
24843 $as_echo_n "(cached) " >&6
24844 else
24845 case $host in
24846 *-*-aix*) gmp_cv_asm_data=".csect .data[RW]" ;;
24847 *) gmp_cv_asm_data=".data" ;;
24848 esac
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_data" >&5
24852 $as_echo "$gmp_cv_asm_data" >&6; }
24853 echo "define(<DATA>, <$gmp_cv_asm_data>)" >> $gmp_tmpconfigm4
24856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler label suffix" >&5
24857 $as_echo_n "checking for assembler label suffix... " >&6; }
24858 if ${gmp_cv_asm_label_suffix+:} false; then :
24859 $as_echo_n "(cached) " >&6
24860 else
24861 gmp_cv_asm_label_suffix=unknown
24862 for i in "" ":"; do
24863 echo "trying $i" >&5
24864 cat >conftest.s <<EOF
24865 $gmp_cv_asm_text
24866 somelabel$i
24868 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
24869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
24870 (eval $gmp_assemble) 2>&5
24871 ac_status=$?
24872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24873 test $ac_status = 0; }; then
24874 cat conftest.out >&5
24875 gmp_cv_asm_label_suffix=$i
24876 rm -f conftest*
24877 break
24878 else
24879 cat conftest.out >&5
24880 echo "configure: failed program was:" >&5
24881 cat conftest.s >&5
24882 cat conftest.out >&5
24884 rm -f conftest*
24886 done
24887 if test "$gmp_cv_asm_label_suffix" = "unknown"; then
24888 as_fn_error $? "Cannot determine label suffix" "$LINENO" 5
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_label_suffix" >&5
24893 $as_echo "$gmp_cv_asm_label_suffix" >&6; }
24894 echo "define(<LABEL_SUFFIX>, <$gmp_cv_asm_label_suffix>)" >> $gmp_tmpconfigm4
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global directive" >&5
24898 $as_echo_n "checking for assembler global directive... " >&6; }
24899 if ${gmp_cv_asm_globl+:} false; then :
24900 $as_echo_n "(cached) " >&6
24901 else
24902 case $host in
24903 hppa*-*-*) gmp_cv_asm_globl=.export ;;
24904 ia64*-*-* | itanium-*-* | itanium2-*-*) gmp_cv_asm_globl=.global ;;
24905 *) gmp_cv_asm_globl=.globl ;;
24906 esac
24909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_globl" >&5
24910 $as_echo "$gmp_cv_asm_globl" >&6; }
24911 echo "define(<GLOBL>, <$gmp_cv_asm_globl>)" >> $gmp_tmpconfigm4
24914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global directive attribute" >&5
24915 $as_echo_n "checking for assembler global directive attribute... " >&6; }
24916 if ${gmp_cv_asm_globl_attr+:} false; then :
24917 $as_echo_n "(cached) " >&6
24918 else
24919 case $gmp_cv_asm_globl in
24920 .export) gmp_cv_asm_globl_attr=",entry" ;;
24921 *) gmp_cv_asm_globl_attr="" ;;
24922 esac
24925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_globl_attr" >&5
24926 $as_echo "$gmp_cv_asm_globl_attr" >&6; }
24927 echo "define(<GLOBL_ATTR>, <$gmp_cv_asm_globl_attr>)" >> $gmp_tmpconfigm4
24930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if globals are prefixed by underscore" >&5
24931 $as_echo_n "checking if globals are prefixed by underscore... " >&6; }
24932 if ${gmp_cv_asm_underscore+:} false; then :
24933 $as_echo_n "(cached) " >&6
24934 else
24935 gmp_cv_asm_underscore="unknown"
24936 cat >conftest.c <<EOF
24937 int gurkmacka;
24939 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5"
24940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
24941 (eval $gmp_compile) 2>&5
24942 ac_status=$?
24943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24944 test $ac_status = 0; }; then
24945 $NM conftest.$OBJEXT >conftest.out
24946 if grep _gurkmacka conftest.out >/dev/null; then
24947 gmp_cv_asm_underscore=yes
24948 elif grep gurkmacka conftest.out >/dev/null; then
24949 gmp_cv_asm_underscore=no
24950 else
24951 echo "configure: $NM doesn't have gurkmacka:" >&5
24952 cat conftest.out >&5
24954 else
24955 echo "configure: failed program was:" >&5
24956 cat conftest.c >&5
24958 rm -f conftest*
24961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_underscore" >&5
24962 $as_echo "$gmp_cv_asm_underscore" >&6; }
24963 case $gmp_cv_asm_underscore in
24964 yes)
24966 echo 'define(<GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
24970 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
24974 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Cannot determine global symbol prefix." >&5
24976 $as_echo "$as_me: WARNING: | Cannot determine global symbol prefix." >&2;}
24977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $NM output doesn't contain a global data symbol." >&5
24978 $as_echo "$as_me: WARNING: | $NM output doesn't contain a global data symbol." >&2;}
24979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Will proceed with no underscore." >&5
24980 $as_echo "$as_me: WARNING: | Will proceed with no underscore." >&2;}
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | If this is wrong then you'll get link errors referring" >&5
24982 $as_echo "$as_me: WARNING: | If this is wrong then you'll get link errors referring" >&2;}
24983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | to ___gmpn_add_n (note three underscores)." >&5
24984 $as_echo "$as_me: WARNING: | to ___gmpn_add_n (note three underscores)." >&2;}
24985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | In this case do a fresh build with an override," >&5
24986 $as_echo "$as_me: WARNING: | In this case do a fresh build with an override," >&2;}
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&5
24988 $as_echo "$as_me: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&2;}
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
24990 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
24992 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
24995 esac
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to read-only data section" >&5
25002 $as_echo_n "checking how to switch to read-only data section... " >&6; }
25003 if ${gmp_cv_asm_rodata+:} false; then :
25004 $as_echo_n "(cached) " >&6
25005 else
25007 case $host in
25008 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | x86_64-*-*)
25009 gmp_cv_asm_rodata="$gmp_cv_asm_data" ;;
25011 gmp_cv_asm_rodata="$gmp_cv_asm_text" ;;
25012 esac
25014 cat >conftest.c <<EOF
25015 extern const int foo[]; /* Suppresses C++'s suppression of foo */
25016 const int foo[] = {1,2,3};
25018 echo "Test program:" >&5
25019 cat conftest.c >&5
25020 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
25021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
25022 (eval $gmp_compile) 2>&5
25023 ac_status=$?
25024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25025 test $ac_status = 0; }; then
25026 echo "Compiler output:" >&5
25027 cat conftest.s >&5
25028 if test $gmp_cv_asm_underscore = yes; then
25029 tmp_gsym_prefix=_
25030 else
25031 tmp_gsym_prefix=
25033 # must see our label
25034 if grep "^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" conftest.s >/dev/null 2>&5; then
25035 # take the last directive before our label (hence skipping segments
25036 # getting debugging info etc)
25037 tmp_match=`sed -n "/^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix/q
25038 /^[. ]*data/p
25039 /^[. ]*rdata/p
25040 /^[. ]*text/p
25041 /^[. ]*section/p
25042 /^[. ]*csect/p
25043 /^[. ]*CSECT/p" conftest.s | sed -n '$p'`
25044 echo "Match: $tmp_match" >&5
25045 if test -n "$tmp_match"; then
25046 gmp_cv_asm_rodata=$tmp_match
25048 else
25049 echo "Couldn't find label: ^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" >&5
25052 rm -f conftest*
25055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_rodata" >&5
25056 $as_echo "$gmp_cv_asm_rodata" >&6; }
25057 echo "define(<RODATA>, <$gmp_cv_asm_rodata>)" >> $gmp_tmpconfigm4
25059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .type directive" >&5
25060 $as_echo_n "checking for assembler .type directive... " >&6; }
25061 if ${gmp_cv_asm_type+:} false; then :
25062 $as_echo_n "(cached) " >&6
25063 else
25064 gmp_cv_asm_type=
25065 for gmp_tmp_prefix in @ \# %; do
25066 cat >conftest.s <<EOF
25067 .type sym,${gmp_tmp_prefix}function
25069 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
25070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
25071 (eval $gmp_assemble) 2>&5
25072 ac_status=$?
25073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25074 test $ac_status = 0; }; then
25075 cat conftest.out >&5
25076 if grep "\.type pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
25077 else
25078 gmp_cv_asm_type=".type \$1,${gmp_tmp_prefix}\$2"
25079 break
25081 else
25082 cat conftest.out >&5
25083 echo "configure: failed program was:" >&5
25084 cat conftest.s >&5
25087 rm -f conftest*
25089 done
25090 rm -f conftest*
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_type" >&5
25094 $as_echo "$gmp_cv_asm_type" >&6; }
25095 echo "define(<TYPE>, <$gmp_cv_asm_type>)" >> $gmp_tmpconfigm4
25097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .size directive" >&5
25098 $as_echo_n "checking for assembler .size directive... " >&6; }
25099 if ${gmp_cv_asm_size+:} false; then :
25100 $as_echo_n "(cached) " >&6
25101 else
25102 gmp_cv_asm_size=
25103 cat >conftest.s <<EOF
25104 .size sym,1
25106 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
25107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
25108 (eval $gmp_assemble) 2>&5
25109 ac_status=$?
25110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25111 test $ac_status = 0; }; then
25112 cat conftest.out >&5
25113 if grep "\.size pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
25114 else
25115 gmp_cv_asm_size=".size \$1,\$2"
25117 else
25118 cat conftest.out >&5
25119 echo "configure: failed program was:" >&5
25120 cat conftest.s >&5
25123 rm -f conftest*
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_size" >&5
25128 $as_echo "$gmp_cv_asm_size" >&6; }
25129 echo "define(<SIZE>, <$gmp_cv_asm_size>)" >> $gmp_tmpconfigm4
25134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler local label prefix" >&5
25135 $as_echo_n "checking for assembler local label prefix... " >&6; }
25136 if ${gmp_cv_asm_lsym_prefix+:} false; then :
25137 $as_echo_n "(cached) " >&6
25138 else
25139 gmp_tmp_pre_appears=yes
25140 for gmp_tmp_pre in L .L $L $ L$; do
25141 echo "Trying $gmp_tmp_pre" >&5
25142 cat >conftest.s <<EOF
25143 $gmp_cv_asm_text
25144 dummy${gmp_cv_asm_label_suffix}
25145 ${gmp_tmp_pre}gurkmacka${gmp_cv_asm_label_suffix}
25147 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
25148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
25149 (eval $gmp_assemble) 2>&5
25150 ac_status=$?
25151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25152 test $ac_status = 0; }; then
25153 cat conftest.out >&5
25154 if $NM conftest.$OBJEXT >conftest.nm 2>&5; then : ; else
25155 cat conftest.nm >&5
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$NM\" failure" >&5
25157 $as_echo "$as_me: WARNING: \"$NM\" failure" >&2;}
25158 break
25160 cat conftest.nm >&5
25161 if grep gurkmacka conftest.nm >/dev/null; then : ; else
25162 # no mention of the symbol, this is good
25163 echo "$gmp_tmp_pre label doesn't appear in object file at all (good)" >&5
25164 gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
25165 gmp_tmp_pre_appears=no
25166 break
25168 if grep ' [a-zN] .*gurkmacka' conftest.nm >/dev/null; then
25169 # symbol mentioned as a local, use this if nothing better
25170 echo "$gmp_tmp_pre label is local but still in object file" >&5
25171 if test -z "$gmp_cv_asm_lsym_prefix"; then
25172 gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
25174 else
25175 echo "$gmp_tmp_pre label is something unknown" >&5
25178 else
25179 cat conftest.out >&5
25180 echo "configure: failed program was:" >&5
25181 cat conftest.s >&5
25184 rm -f conftest*
25186 done
25187 rm -f conftest*
25188 if test -z "$gmp_cv_asm_lsym_prefix"; then
25189 gmp_cv_asm_lsym_prefix=L
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&5
25191 $as_echo "$as_me: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&2;}
25193 # for development purposes, note whether we got a purely temporary local label
25194 echo "Local label appears in object files: $gmp_tmp_pre_appears" >&5
25197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_lsym_prefix" >&5
25198 $as_echo "$gmp_cv_asm_lsym_prefix" >&6; }
25199 echo "define(<LSYM_PREFIX>, <${gmp_cv_asm_lsym_prefix}>)" >> $gmp_tmpconfigm4
25201 cat >>confdefs.h <<_ACEOF
25202 #define LSYM_PREFIX "$gmp_cv_asm_lsym_prefix"
25203 _ACEOF
25208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler byte directive" >&5
25209 $as_echo_n "checking for assembler byte directive... " >&6; }
25210 if ${gmp_cv_asm_byte+:} false; then :
25211 $as_echo_n "(cached) " >&6
25212 else
25213 for i in .byte data1; do
25214 echo "trying $i" >&5
25215 cat >conftest.s <<EOF
25216 $gmp_cv_asm_data
25217 $i 0
25220 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
25221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
25222 (eval $gmp_assemble) 2>&5
25223 ac_status=$?
25224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25225 test $ac_status = 0; }; then
25226 cat conftest.out >&5
25227 gmp_cv_asm_byte=$i
25228 rm -f conftest*
25229 break
25230 else
25231 cat conftest.out >&5
25232 echo "configure: failed program was:" >&5
25233 cat conftest.s >&5
25234 cat conftest.out >&5
25236 rm -f conftest*
25238 done
25239 if test -z "$gmp_cv_asm_byte"; then
25240 as_fn_error $? "Cannot determine how to emit a data byte" "$LINENO" 5
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_byte" >&5
25245 $as_echo "$gmp_cv_asm_byte" >&6; }
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a 32-bit word" >&5
25253 $as_echo_n "checking how to define a 32-bit word... " >&6; }
25254 if ${gmp_cv_asm_w32+:} false; then :
25255 $as_echo_n "(cached) " >&6
25256 else
25257 case $host in
25258 *-*-hpux*)
25259 # FIXME: HPUX puts first symbol at 0x40000000, breaking our assumption
25260 # that it's at 0x0. We'll have to declare another symbol before the
25261 # .long/.word and look at the distance between the two symbols. The
25262 # only problem is that the sed expression(s) barfs (on Solaris, for
25263 # example) for the symbol with value 0. For now, HPUX uses .word.
25264 gmp_cv_asm_w32=".word"
25266 *-*-*)
25267 gmp_tmp_val=
25268 for gmp_tmp_op in .long .word data4; do
25269 cat >conftest.s <<EOF
25270 $gmp_cv_asm_data
25271 $gmp_cv_asm_globl foo
25272 $gmp_tmp_op 0
25273 foo$gmp_cv_asm_label_suffix
25274 $gmp_cv_asm_byte 0
25276 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
25277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
25278 (eval $gmp_assemble) 2>&5
25279 ac_status=$?
25280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25281 test $ac_status = 0; }; then
25282 cat conftest.out >&5
25283 gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
25284 sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
25285 if test "$gmp_tmp_val" = 4; then
25286 gmp_cv_asm_w32="$gmp_tmp_op"
25287 break
25289 else
25290 cat conftest.out >&5
25291 echo "configure: failed program was:" >&5
25292 cat conftest.s >&5
25295 rm -f conftest*
25297 done
25298 rm -f conftest*
25300 esac
25301 if test -z "$gmp_cv_asm_w32"; then
25302 as_fn_error $? "cannot determine how to define a 32-bit word" "$LINENO" 5
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_w32" >&5
25307 $as_echo "$gmp_cv_asm_w32" >&6; }
25308 echo "define(<W32>, <$gmp_cv_asm_w32>)" >> $gmp_tmpconfigm4
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align assembly directive is logarithmic" >&5
25316 $as_echo_n "checking if .align assembly directive is logarithmic... " >&6; }
25317 if ${gmp_cv_asm_align_log+:} false; then :
25318 $as_echo_n "(cached) " >&6
25319 else
25320 cat >conftest.s <<EOF
25321 $gmp_cv_asm_data
25322 .align 4
25323 $gmp_cv_asm_globl foo
25324 $gmp_cv_asm_byte 1
25325 .align 4
25326 foo$gmp_cv_asm_label_suffix
25327 $gmp_cv_asm_byte 2
25329 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
25330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
25331 (eval $gmp_assemble) 2>&5
25332 ac_status=$?
25333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25334 test $ac_status = 0; }; then
25335 cat conftest.out >&5
25336 gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
25337 sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
25338 if test "$gmp_tmp_val" = "10" || test "$gmp_tmp_val" = "16"; then
25339 gmp_cv_asm_align_log=yes
25340 else
25341 gmp_cv_asm_align_log=no
25343 else
25344 cat conftest.out >&5
25345 echo "configure: failed program was:" >&5
25346 cat conftest.s >&5
25347 as_fn_error $? "cannot assemble alignment test" "$LINENO" 5
25349 rm -f conftest*
25352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_align_log" >&5
25353 $as_echo "$gmp_cv_asm_align_log" >&6; }
25356 echo "define(<ALIGN_LOGARITHMIC>,<$gmp_cv_asm_align_log>)" >> $gmp_tmpconfigm4
25360 case $host in
25361 hppa*-*-*)
25362 # for both pa32 and pa64
25364 echo "include_mpn(\`pa32/pa-defs.m4')" >> $gmp_tmpconfigm4i
25367 ia64*-*-* | itanium-*-* | itanium2-*-*)
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler .align padding is good" >&5
25369 $as_echo_n "checking whether assembler .align padding is good... " >&6; }
25370 if ${gmp_cv_asm_ia64_align_ok+:} false; then :
25371 $as_echo_n "(cached) " >&6
25372 else
25373 cat >conftest.awk <<\EOF
25374 BEGIN {
25375 want[0] = "011"
25376 want[1] = "160"
25377 want[2] = "074"
25378 want[3] = "040"
25379 want[4] = "000"
25380 want[5] = "040"
25381 want[6] = "020"
25382 want[7] = "221"
25383 want[8] = "114"
25384 want[9] = "000"
25385 want[10] = "100"
25386 want[11] = "200"
25387 want[12] = "122"
25388 want[13] = "261"
25389 want[14] = "000"
25390 want[15] = "200"
25392 want[16] = "000"
25393 want[17] = "004"
25394 want[18] = "000"
25395 want[19] = "000"
25396 want[20] = "000"
25397 want[21] = "000"
25398 want[22] = "002"
25399 want[23] = "000"
25400 want[24] = "000"
25401 want[25] = "000"
25402 want[26] = "000"
25403 want[27] = "001"
25404 want[28] = "000"
25405 want[29] = "000"
25406 want[30] = "000"
25407 want[31] = "014"
25409 want[32] = "011"
25410 want[33] = "270"
25411 want[34] = "140"
25412 want[35] = "062"
25413 want[36] = "000"
25414 want[37] = "040"
25415 want[38] = "240"
25416 want[39] = "331"
25417 want[40] = "160"
25418 want[41] = "000"
25419 want[42] = "100"
25420 want[43] = "240"
25421 want[44] = "343"
25422 want[45] = "371"
25423 want[46] = "000"
25424 want[47] = "200"
25426 result = "yes"
25429 for (f = 2; f <= NF; f++)
25431 for (i = 0; i < 47; i++)
25432 got[i] = got[i+1];
25433 got[47] = $f;
25435 found = 1
25436 for (i = 0; i < 48; i++)
25437 if (got[i] != want[i])
25439 found = 0
25440 break
25442 if (found)
25444 result = "no"
25445 exit
25449 END {
25450 print result
25453 cat >conftest.s <<EOF
25454 .text
25455 .align 32
25456 { .mmi; add r14 = r15, r16
25457 add r17 = r18, r19
25458 add r20 = r21, r22 ;; }
25459 .align 32
25460 { .mmi; add r23 = r24, r25
25461 add r26 = r27, r28
25462 add r29 = r30, r31 ;; }
25465 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
25466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
25467 (eval $gmp_assemble) 2>&5
25468 ac_status=$?
25469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25470 test $ac_status = 0; }; then
25471 cat conftest.out >&5
25472 gmp_cv_asm_ia64_align_ok=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
25473 else
25474 cat conftest.out >&5
25475 echo "configure: failed program was:" >&5
25476 cat conftest.s >&5
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
25478 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
25479 gmp_cv_asm_ia64_align_ok=yes
25481 rm -f conftest*
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_ia64_align_ok" >&5
25486 $as_echo "$gmp_cv_asm_ia64_align_ok" >&6; }
25488 echo "define(<IA64_ALIGN_OK>, <\`$gmp_cv_asm_ia64_align_ok'>)" >> $gmp_tmpconfigm4
25492 m68k-*-* | m68[0-9][0-9][0-9]-*-*)
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler instruction and register style" >&5
25495 $as_echo_n "checking assembler instruction and register style... " >&6; }
25496 if ${gmp_cv_asm_m68k_instruction+:} false; then :
25497 $as_echo_n "(cached) " >&6
25498 else
25499 for i in "addl %d0,%d1" "add.l %d0,%d1" "addl d0,d1" "add.l d0,d1"; do
25500 cat >conftest.s <<EOF
25501 $gmp_cv_asm_text
25504 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
25505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
25506 (eval $gmp_assemble) 2>&5
25507 ac_status=$?
25508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25509 test $ac_status = 0; }; then
25510 cat conftest.out >&5
25511 gmp_cv_asm_m68k_instruction=$i
25512 rm -f conftest*
25513 break
25514 else
25515 cat conftest.out >&5
25516 echo "configure: failed program was:" >&5
25517 cat conftest.s >&5
25520 rm -f conftest*
25522 done
25523 if test -z "$gmp_cv_asm_m68k_instruction"; then
25524 as_fn_error $? "cannot determine assembler instruction and register style" "$LINENO" 5
25528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_instruction" >&5
25529 $as_echo "$gmp_cv_asm_m68k_instruction" >&6; }
25530 case $gmp_cv_asm_m68k_instruction in
25531 "addl d0,d1") want_dot_size=no; want_register_percent=no ;;
25532 "addl %d0,%d1") want_dot_size=no; want_register_percent=yes ;;
25533 "add.l d0,d1") want_dot_size=yes; want_register_percent=no ;;
25534 "add.l %d0,%d1") want_dot_size=yes; want_register_percent=yes ;;
25535 *) as_fn_error $? "oops, unrecognised instruction and register style" "$LINENO" 5 ;;
25536 esac
25538 echo "define(<WANT_REGISTER_PERCENT>, <\`$want_register_percent'>)" >> $gmp_tmpconfigm4
25541 echo "define(<WANT_DOT_SIZE>, <\`$want_dot_size'>)" >> $gmp_tmpconfigm4
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler addressing style" >&5
25547 $as_echo_n "checking assembler addressing style... " >&6; }
25548 if ${gmp_cv_asm_m68k_addressing+:} false; then :
25549 $as_echo_n "(cached) " >&6
25550 else
25551 case $gmp_cv_asm_m68k_instruction in
25552 addl*) movel=movel ;;
25553 add.l*) movel=move.l ;;
25554 *) as_fn_error $? "oops, unrecognised gmp_cv_asm_m68k_instruction" "$LINENO" 5 ;;
25555 esac
25556 case $gmp_cv_asm_m68k_instruction in
25557 *"%d0,%d1") dreg=%d0; areg=%a0 ;;
25558 *"d0,d1") dreg=d0; areg=a0 ;;
25559 *) as_fn_error $? "oops, unrecognised gmp_cv_asm_m68k_instruction" "$LINENO" 5 ;;
25560 esac
25561 cat >conftest.s <<EOF
25562 $gmp_cv_asm_text
25563 $movel $dreg, $areg@-
25565 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
25566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
25567 (eval $gmp_assemble) 2>&5
25568 ac_status=$?
25569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25570 test $ac_status = 0; }; then
25571 cat conftest.out >&5
25572 gmp_cv_asm_m68k_addressing=mit
25573 else
25574 cat conftest.out >&5
25575 echo "configure: failed program was:" >&5
25576 cat conftest.s >&5
25577 cat >conftest.s <<EOF
25578 $gmp_cv_asm_text
25579 $movel $dreg, -($areg)
25581 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
25582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
25583 (eval $gmp_assemble) 2>&5
25584 ac_status=$?
25585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25586 test $ac_status = 0; }; then
25587 cat conftest.out >&5
25588 gmp_cv_asm_m68k_addressing=motorola
25589 else
25590 cat conftest.out >&5
25591 echo "configure: failed program was:" >&5
25592 cat conftest.s >&5
25593 as_fn_error $? "cannot determine assembler addressing style" "$LINENO" 5
25595 rm -f conftest*
25598 rm -f conftest*
25602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_addressing" >&5
25603 $as_echo "$gmp_cv_asm_m68k_addressing" >&6; }
25605 echo "define(<WANT_ADDRESSING>, <\`$gmp_cv_asm_m68k_addressing'>)" >> $gmp_tmpconfigm4
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler shortest branches" >&5
25610 $as_echo_n "checking assembler shortest branches... " >&6; }
25611 if ${gmp_cv_asm_m68k_branches+:} false; then :
25612 $as_echo_n "(cached) " >&6
25613 else
25614 for i in jra jbra bra; do
25615 cat >conftest.s <<EOF
25616 $gmp_cv_asm_text
25617 foo$gmp_cv_asm_label_suffix
25618 $i foo
25620 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
25621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
25622 (eval $gmp_assemble) 2>&5
25623 ac_status=$?
25624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25625 test $ac_status = 0; }; then
25626 cat conftest.out >&5
25627 gmp_cv_asm_m68k_branches=$i
25628 rm -f conftest*
25629 break
25630 else
25631 cat conftest.out >&5
25632 echo "configure: failed program was:" >&5
25633 cat conftest.s >&5
25636 rm -f conftest*
25638 done
25639 if test -z "$gmp_cv_asm_m68k_branches"; then
25640 as_fn_error $? "cannot determine assembler branching style" "$LINENO" 5
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_branches" >&5
25645 $as_echo "$gmp_cv_asm_m68k_branches" >&6; }
25647 echo "define(<WANT_BRANCHES>, <\`$gmp_cv_asm_m68k_branches'>)" >> $gmp_tmpconfigm4
25651 powerpc*-*-* | power[3-9]-*-*)
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler output is PIC by default" >&5
25654 $as_echo_n "checking whether compiler output is PIC by default... " >&6; }
25655 if ${gmp_cv_asm_powerpc_pic+:} false; then :
25656 $as_echo_n "(cached) " >&6
25657 else
25658 gmp_cv_asm_powerpc_pic=yes
25659 cat >conftest.c <<EOF
25660 int foo;
25661 int *bar() { return &foo; }
25663 echo "Test program:" >&5
25664 cat conftest.c >&5
25665 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
25666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
25667 (eval $gmp_compile) 2>&5
25668 ac_status=$?
25669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25670 test $ac_status = 0; }; then
25671 echo "Compiler output:" >&5
25672 cat conftest.s >&5
25673 if grep 'foo@ha' conftest.s >/dev/null 2>&5; then
25674 gmp_cv_asm_powerpc_pic=no
25676 if grep 'ha16(_foo)' conftest.s >/dev/null 2>&5; then
25677 gmp_cv_asm_powerpc_pic=no
25680 rm -f conftest*
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_pic" >&5
25684 $as_echo "$gmp_cv_asm_powerpc_pic" >&6; }
25686 echo "define(<PIC_ALWAYS>,<$gmp_cv_asm_powerpc_pic>)" >> $gmp_tmpconfigm4
25690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler needs r on registers" >&5
25691 $as_echo_n "checking if the assembler needs r on registers... " >&6; }
25692 if ${gmp_cv_asm_powerpc_r_registers+:} false; then :
25693 $as_echo_n "(cached) " >&6
25694 else
25695 cat >conftest.s <<EOF
25696 $gmp_cv_asm_text
25697 mtctr 6
25699 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
25700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
25701 (eval $gmp_assemble) 2>&5
25702 ac_status=$?
25703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25704 test $ac_status = 0; }; then
25705 cat conftest.out >&5
25706 gmp_cv_asm_powerpc_r_registers=no
25707 else
25708 cat conftest.out >&5
25709 echo "configure: failed program was:" >&5
25710 cat conftest.s >&5
25711 cat >conftest.s <<EOF
25712 $gmp_cv_asm_text
25713 mtctr r6
25715 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
25716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
25717 (eval $gmp_assemble) 2>&5
25718 ac_status=$?
25719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25720 test $ac_status = 0; }; then
25721 cat conftest.out >&5
25722 gmp_cv_asm_powerpc_r_registers=yes
25723 else
25724 cat conftest.out >&5
25725 echo "configure: failed program was:" >&5
25726 cat conftest.s >&5
25727 as_fn_error $? "neither \"mtctr 6\" nor \"mtctr r6\" works" "$LINENO" 5
25729 rm -f conftest*
25732 rm -f conftest*
25735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_r_registers" >&5
25736 $as_echo "$gmp_cv_asm_powerpc_r_registers" >&6; }
25739 echo "define(<WANT_R_REGISTERS>,<$gmp_cv_asm_powerpc_r_registers>)" >> $gmp_tmpconfigm4
25743 echo "include_mpn(\`powerpc32/powerpc-defs.m4')" >> $gmp_tmpconfigm4i
25746 # Check for Linux ELFv2 ABI
25747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25748 /* end confdefs.h. */
25749 #if _CALL_ELF == 2
25751 #endif
25752 _ACEOF
25753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25754 $EGREP "yes" >/dev/null 2>&1; then :
25756 echo "define(<ELFv2_ABI>)" >> $gmp_tmpconfigm4
25759 rm -f conftest*
25762 case $host in
25763 *-*-aix*)
25764 case $ABI in
25765 mode64)
25766 echo "include_mpn(\`powerpc64/aix.m4')" >> $gmp_tmpconfigm4i
25769 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
25771 esac
25773 *-*-linux* | *-*-*bsd*)
25774 case $ABI in
25775 mode64)
25776 echo "include_mpn(\`powerpc64/elf.m4')" >> $gmp_tmpconfigm4i
25778 mode32 | 32)
25779 echo "include_mpn(\`powerpc32/elf.m4')" >> $gmp_tmpconfigm4i
25781 esac
25783 *-*-darwin*)
25784 case $ABI in
25785 mode64)
25786 echo "include_mpn(\`powerpc64/darwin.m4')" >> $gmp_tmpconfigm4i
25788 mode32 | 32)
25789 echo "include_mpn(\`powerpc32/darwin.m4')" >> $gmp_tmpconfigm4i
25791 esac
25794 # Assume unrecognized operating system is the powerpc eABI
25796 echo "include_mpn(\`powerpc32/eabi.m4')" >> $gmp_tmpconfigm4i
25799 esac
25801 power*-*-aix*)
25803 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
25806 *sparc*-*-*)
25807 case $ABI in
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler accepts \".register\"" >&5
25811 $as_echo_n "checking if the assembler accepts \".register\"... " >&6; }
25812 if ${gmp_cv_asm_sparc_register+:} false; then :
25813 $as_echo_n "(cached) " >&6
25814 else
25815 cat >conftest.s <<EOF
25816 $gmp_cv_asm_text
25817 .register %g2,#scratch
25820 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
25821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
25822 (eval $gmp_assemble) 2>&5
25823 ac_status=$?
25824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25825 test $ac_status = 0; }; then
25826 cat conftest.out >&5
25827 gmp_cv_asm_sparc_register=yes
25828 else
25829 cat conftest.out >&5
25830 echo "configure: failed program was:" >&5
25831 cat conftest.s >&5
25832 gmp_cv_asm_sparc_register=no
25834 rm -f conftest*
25837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_sparc_register" >&5
25838 $as_echo "$gmp_cv_asm_sparc_register" >&6; }
25841 echo "define(<HAVE_REGISTER>,<$gmp_cv_asm_sparc_register>)" >> $gmp_tmpconfigm4
25845 esac
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler accepts gotdata relocations" >&5
25848 $as_echo_n "checking if the assembler accepts gotdata relocations... " >&6; }
25849 if ${gmp_cv_asm_sparc_gotdata+:} false; then :
25850 $as_echo_n "(cached) " >&6
25851 else
25852 cat >conftest.s <<EOF
25853 $gmp_cv_asm_text
25854 .text
25855 sethi %gdop_hix22(symbol), %g1
25856 or %g1, %gdop_lox10(symbol), %g1
25859 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
25860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
25861 (eval $gmp_assemble) 2>&5
25862 ac_status=$?
25863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25864 test $ac_status = 0; }; then
25865 cat conftest.out >&5
25866 gmp_cv_asm_sparc_gotdata=yes
25867 else
25868 cat conftest.out >&5
25869 echo "configure: failed program was:" >&5
25870 cat conftest.s >&5
25871 gmp_cv_asm_sparc_gotdata=no
25873 rm -f conftest*
25876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_sparc_gotdata" >&5
25877 $as_echo "$gmp_cv_asm_sparc_gotdata" >&6; }
25880 echo "define(<HAVE_GOTDATA>,<$gmp_cv_asm_sparc_gotdata>)" >> $gmp_tmpconfigm4
25884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler can support shared PIC thunks" >&5
25885 $as_echo_n "checking if the assembler can support shared PIC thunks... " >&6; }
25886 if ${gmp_cv_asm_sparc_shared_thunks+:} false; then :
25887 $as_echo_n "(cached) " >&6
25888 else
25889 cat >conftest.s <<EOF
25890 $gmp_cv_asm_text
25891 .section .text.__sparc_get_pc_thunk.l7,"axG",@progbits,__sparc_get_pc_thunk.l7,comdat
25892 .weak __sparc_get_pc_thunk.l7
25893 .hidden __sparc_get_pc_thunk.l7
25894 .type __sparc_get_pc_thunk.l7, #function
25895 __sparc_get_pc_thunk.l7:
25896 jmp %o7+8
25897 add %o7, %l7, %l7
25900 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
25901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
25902 (eval $gmp_assemble) 2>&5
25903 ac_status=$?
25904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25905 test $ac_status = 0; }; then
25906 cat conftest.out >&5
25907 gmp_cv_asm_sparc_shared_thunks=yes
25908 else
25909 cat conftest.out >&5
25910 echo "configure: failed program was:" >&5
25911 cat conftest.s >&5
25912 gmp_cv_asm_sparc_shared_thunks=no
25914 rm -f conftest*
25917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_sparc_shared_thunks" >&5
25918 $as_echo "$gmp_cv_asm_sparc_shared_thunks" >&6; }
25921 echo "define(<HAVE_SHARED_THUNKS>,<$gmp_cv_asm_sparc_shared_thunks>)" >> $gmp_tmpconfigm4
25925 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | jaguar-*-* | bulldozer-*-* | piledriver-*-* | steamroller-*-* | excavator-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
25927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the .align directive accepts an 0x90 fill in .text" >&5
25928 $as_echo_n "checking if the .align directive accepts an 0x90 fill in .text... " >&6; }
25929 if ${gmp_cv_asm_align_fill_0x90+:} false; then :
25930 $as_echo_n "(cached) " >&6
25931 else
25932 cat >conftest.s <<EOF
25933 $gmp_cv_asm_text
25934 .align 4, 0x90
25935 .byte 0
25936 .align 4, 0x90
25938 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
25939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
25940 (eval $gmp_assemble) 2>&5
25941 ac_status=$?
25942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25943 test $ac_status = 0; }; then
25944 cat conftest.out >&5
25945 if grep "Warning: Fill parameter ignored for executable section" conftest.out >/dev/null; then
25946 echo "Suppressing this warning by omitting 0x90" 1>&5
25947 gmp_cv_asm_align_fill_0x90=no
25948 else
25949 gmp_cv_asm_align_fill_0x90=yes
25951 else
25952 cat conftest.out >&5
25953 echo "configure: failed program was:" >&5
25954 cat conftest.s >&5
25955 gmp_cv_asm_align_fill_0x90=no
25957 rm -f conftest*
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_align_fill_0x90" >&5
25961 $as_echo "$gmp_cv_asm_align_fill_0x90" >&6; }
25964 echo "define(<ALIGN_FILL_0x90>,<$gmp_cv_asm_align_fill_0x90>)" >> $gmp_tmpconfigm4
25967 case $ABI in
25970 echo "include_mpn(\`x86/x86-defs.m4')" >> $gmp_tmpconfigm4i
25972 $as_echo "#define HAVE_HOST_CPU_FAMILY_x86 1" >>confdefs.h
25979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler COFF type directives" >&5
25980 $as_echo_n "checking for assembler COFF type directives... " >&6; }
25981 if ${gmp_cv_asm_x86_coff_type+:} false; then :
25982 $as_echo_n "(cached) " >&6
25983 else
25984 cat >conftest.s <<EOF
25985 $gmp_cv_asm_text
25986 $gmp_cv_asm_globl ${tmp_gsym_prefix}foo$gmp_cv_asm_globl_attr
25987 .def ${tmp_gsym_prefix}foo
25988 .scl 2
25989 .type 32
25990 .endef
25991 ${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix
25994 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
25995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
25996 (eval $gmp_assemble) 2>&5
25997 ac_status=$?
25998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25999 test $ac_status = 0; }; then
26000 cat conftest.out >&5
26001 gmp_cv_asm_x86_coff_type=yes
26002 else
26003 cat conftest.out >&5
26004 echo "configure: failed program was:" >&5
26005 cat conftest.s >&5
26006 gmp_cv_asm_x86_coff_type=no
26008 rm -f conftest*
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_coff_type" >&5
26013 $as_echo "$gmp_cv_asm_x86_coff_type" >&6; }
26014 echo "define(<HAVE_COFF_TYPE>, <$gmp_cv_asm_x86_coff_type>)" >> $gmp_tmpconfigm4
26023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore" >&5
26024 $as_echo_n "checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore... " >&6; }
26025 if ${gmp_cv_asm_x86_got_underscore+:} false; then :
26026 $as_echo_n "(cached) " >&6
26027 else
26028 gmp_cv_asm_x86_got_underscore="not applicable"
26029 if test $gmp_cv_asm_underscore = yes; then
26030 tmp_gsym_prefix=_
26031 else
26032 tmp_gsym_prefix=
26034 for tmp_underscore in "" "_"; do
26035 cat >conftest.s <<EOF
26036 $gmp_cv_asm_text
26037 $gmp_cv_asm_globl ${tmp_gsym_prefix}main$gmp_cv_asm_globl_attr
26038 ${tmp_gsym_prefix}main$gmp_cv_asm_label_suffix
26039 addl $ ${tmp_underscore}_GLOBAL_OFFSET_TABLE_, %ebx
26041 gmp_compile="$CCAS $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.s >&5 && $CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.$OBJEXT >&5"
26042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
26043 (eval $gmp_compile) 2>&5
26044 ac_status=$?
26045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26046 test $ac_status = 0; }; then
26047 if test "$tmp_underscore" = "_"; then
26048 gmp_cv_asm_x86_got_underscore=yes
26049 else
26050 gmp_cv_asm_x86_got_underscore=no
26052 break
26054 done
26055 rm -f conftest* a.out b.out a.exe a_out.exe
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_got_underscore" >&5
26059 $as_echo "$gmp_cv_asm_x86_got_underscore" >&6; }
26060 if test "$gmp_cv_asm_x86_got_underscore" = "yes"; then
26062 echo 'define(<GOT_GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
26064 else
26066 echo 'define(<GOT_GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler takes cl with shldl" >&5
26072 $as_echo_n "checking if the assembler takes cl with shldl... " >&6; }
26073 if ${gmp_cv_asm_x86_shldl_cl+:} false; then :
26074 $as_echo_n "(cached) " >&6
26075 else
26076 cat >conftest.s <<EOF
26077 $gmp_cv_asm_text
26078 shldl %cl, %eax, %ebx
26080 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26082 (eval $gmp_assemble) 2>&5
26083 ac_status=$?
26084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26085 test $ac_status = 0; }; then
26086 cat conftest.out >&5
26087 gmp_cv_asm_x86_shldl_cl=yes
26088 else
26089 cat conftest.out >&5
26090 echo "configure: failed program was:" >&5
26091 cat conftest.s >&5
26092 gmp_cv_asm_x86_shldl_cl=no
26094 rm -f conftest*
26098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_shldl_cl" >&5
26099 $as_echo "$gmp_cv_asm_x86_shldl_cl" >&6; }
26100 if test "$gmp_cv_asm_x86_shldl_cl" = "yes"; then
26102 echo 'define(<WANT_SHLDL_CL>, <1>)' >>$gmp_tmpconfigm4
26104 else
26106 echo 'define(<WANT_SHLDL_CL>, <0>)' >>$gmp_tmpconfigm4
26110 case $enable_profiling in
26111 prof | gprof) # Check whether --enable-shared was given.
26112 if test "${enable_shared+set}" = set; then :
26113 enableval=$enable_shared; p=${PACKAGE-default}
26114 case $enableval in
26115 yes) enable_shared=yes ;;
26116 no) enable_shared=no ;;
26118 enable_shared=no
26119 # Look at the argument we got. We use all the common list separators.
26120 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
26121 for pkg in $enableval; do
26122 IFS="$lt_save_ifs"
26123 if test "X$pkg" = "X$p"; then
26124 enable_shared=yes
26126 done
26127 IFS="$lt_save_ifs"
26129 esac
26130 else
26131 enable_shared=yes
26141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to call x86 mcount" >&5
26142 $as_echo_n "checking how to call x86 mcount... " >&6; }
26143 cat >conftest.c <<EOF
26144 foo(){bar();}
26147 if test "$enable_static" = yes; then
26148 gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c 1>&5"
26149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_asmout_compile\""; } >&5
26150 (eval $gmp_asmout_compile) 2>&5
26151 ac_status=$?
26152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26153 test $ac_status = 0; }; then
26154 if grep '\.data' conftest.s >/dev/null; then
26155 mcount_nonpic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
26156 else
26157 mcount_nonpic_reg=
26159 mcount_nonpic_call=`grep 'call.*mcount' conftest.s`
26160 if test -z "$mcount_nonpic_call"; then
26161 as_fn_error $? "Cannot find mcount call for non-PIC" "$LINENO" 5
26163 else
26164 as_fn_error $? "Cannot compile test program for non-PIC" "$LINENO" 5
26168 if test "$enable_shared" = yes; then
26169 gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic -S conftest.c 1>&5"
26170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_asmout_compile\""; } >&5
26171 (eval $gmp_asmout_compile) 2>&5
26172 ac_status=$?
26173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26174 test $ac_status = 0; }; then
26175 if grep '\.data' conftest.s >/dev/null; then
26176 case $lt_prog_compiler_pic in
26177 *-DDLL_EXPORT*)
26178 # Windows DLLs have non-PIC style mcount
26179 mcount_pic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
26182 mcount_pic_reg=`sed -n 's/.*GOTOFF.*,\(%[a-z]*\).*$/\1/p' conftest.s`
26184 esac
26185 else
26186 mcount_pic_reg=
26188 mcount_pic_call=`grep 'call.*mcount' conftest.s`
26189 if test -z "$mcount_pic_call"; then
26190 as_fn_error $? "Cannot find mcount call for PIC" "$LINENO" 5
26192 else
26193 as_fn_error $? "Cannot compile test program for PIC" "$LINENO" 5
26198 echo "define(<MCOUNT_NONPIC_REG>, <\`$mcount_nonpic_reg'>)" >> $gmp_tmpconfigm4
26201 echo "define(<MCOUNT_NONPIC_CALL>,<\`$mcount_nonpic_call'>)" >> $gmp_tmpconfigm4
26204 echo "define(<MCOUNT_PIC_REG>, <\`$mcount_pic_reg'>)" >> $gmp_tmpconfigm4
26207 echo "define(<MCOUNT_PIC_CALL>, <\`$mcount_pic_call'>)" >> $gmp_tmpconfigm4
26210 rm -f conftest.*
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: determined" >&5
26212 $as_echo "determined" >&6; }
26214 esac
26215 case $host in
26216 *-*-darwin*)
26218 echo "include_mpn(\`x86/darwin.m4')" >> $gmp_tmpconfigm4i
26220 esac
26222 64|x32)
26224 echo "include_mpn(\`x86_64/x86_64-defs.m4')" >> $gmp_tmpconfigm4i
26226 $as_echo "#define HAVE_HOST_CPU_FAMILY_x86_64 1" >>confdefs.h
26228 case $host in
26229 *-*-darwin*)
26231 echo "include_mpn(\`x86_64/darwin.m4')" >> $gmp_tmpconfigm4i
26233 *-*-mingw* | *-*-cygwin)
26235 echo "include_mpn(\`x86_64/dos64.m4')" >> $gmp_tmpconfigm4i
26237 *-openbsd*)
26239 echo "define(<OPENBSD>,1)" >> $gmp_tmpconfigm4
26241 esac
26243 esac
26245 esac
26248 # For --enable-minithres, prepend "minithres" to path so that its special
26249 # gmp-mparam.h will be used.
26250 if test $enable_minithres = yes; then
26251 path="minithres $path"
26254 # Create link for gmp-mparam.h.
26255 gmp_mparam_source=
26256 for gmp_mparam_dir in $path; do
26257 test "$no_create" = yes || rm -f gmp-mparam.h
26258 tmp_file=$srcdir/mpn/$gmp_mparam_dir/gmp-mparam.h
26259 if test -f $tmp_file; then
26260 ac_config_links="$ac_config_links gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h"
26262 gmp_srclinks="$gmp_srclinks gmp-mparam.h"
26263 gmp_mparam_source=$tmp_file
26264 break
26266 done
26267 if test -z "$gmp_mparam_source"; then
26268 as_fn_error $? "no version of gmp-mparam.h found in path: $path" "$LINENO" 5
26271 # For a helpful message from tune/tuneup.c
26272 gmp_mparam_suggest=$gmp_mparam_source
26273 if test "$gmp_mparam_dir" = generic; then
26274 for i in $path; do break; done
26275 if test "$i" != generic; then
26276 gmp_mparam_suggest="new file $srcdir/mpn/$i/gmp-mparam.h"
26280 cat >>confdefs.h <<_ACEOF
26281 #define GMP_MPARAM_H_SUGGEST "$gmp_mparam_source"
26282 _ACEOF
26286 # Copy relevant parameters from gmp-mparam.h to config.m4.
26287 # We only do this for parameters that are used by some assembly files.
26288 # Fat binaries do this on a per-file basis, so skip in that case.
26290 if test -z "$fat_path"; then
26291 for i in SQR_TOOM2_THRESHOLD BMOD_1_TO_MOD_1_THRESHOLD SHLD_SLOW SHRD_SLOW; do
26292 value=`sed -n 's/^#define '$i'[ ]*\([0-9][0-9]*\).*$/\1/p' $gmp_mparam_source`
26293 if test -n "$value"; then
26295 echo "define(<$i>,<$value>)" >> $gmp_tmpconfigm4
26298 done
26302 # Sizes of some types, needed at preprocessing time.
26304 # FIXME: The assumption that GMP_LIMB_BITS is 8*sizeof(mp_limb_t) might
26305 # be slightly rash, but it's true everywhere we know of and ought to be true
26306 # of any sensible system. In a generic C build, grepping LONG_BIT out of
26307 # <limits.h> might be an alternative, for maximum portability.
26309 # The cast to long int works around a bug in the HP C Compiler
26310 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26311 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26312 # This bug is HP SR number 8606223364.
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
26314 $as_echo_n "checking size of void *... " >&6; }
26315 if ${ac_cv_sizeof_void_p+:} false; then :
26316 $as_echo_n "(cached) " >&6
26317 else
26318 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
26320 else
26321 if test "$ac_cv_type_void_p" = yes; then
26322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26324 as_fn_error 77 "cannot compute sizeof (void *)
26325 See \`config.log' for more details" "$LINENO" 5; }
26326 else
26327 ac_cv_sizeof_void_p=0
26332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
26333 $as_echo "$ac_cv_sizeof_void_p" >&6; }
26337 cat >>confdefs.h <<_ACEOF
26338 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
26339 _ACEOF
26342 # The cast to long int works around a bug in the HP C Compiler
26343 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26344 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26345 # This bug is HP SR number 8606223364.
26346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
26347 $as_echo_n "checking size of unsigned short... " >&6; }
26348 if ${ac_cv_sizeof_unsigned_short+:} false; then :
26349 $as_echo_n "(cached) " >&6
26350 else
26351 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
26353 else
26354 if test "$ac_cv_type_unsigned_short" = yes; then
26355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26357 as_fn_error 77 "cannot compute sizeof (unsigned short)
26358 See \`config.log' for more details" "$LINENO" 5; }
26359 else
26360 ac_cv_sizeof_unsigned_short=0
26365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
26366 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
26370 cat >>confdefs.h <<_ACEOF
26371 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
26372 _ACEOF
26375 # The cast to long int works around a bug in the HP C Compiler
26376 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26377 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26378 # This bug is HP SR number 8606223364.
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5
26380 $as_echo_n "checking size of unsigned... " >&6; }
26381 if ${ac_cv_sizeof_unsigned+:} false; then :
26382 $as_echo_n "(cached) " >&6
26383 else
26384 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned" "$ac_includes_default"; then :
26386 else
26387 if test "$ac_cv_type_unsigned" = yes; then
26388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26390 as_fn_error 77 "cannot compute sizeof (unsigned)
26391 See \`config.log' for more details" "$LINENO" 5; }
26392 else
26393 ac_cv_sizeof_unsigned=0
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5
26399 $as_echo "$ac_cv_sizeof_unsigned" >&6; }
26403 cat >>confdefs.h <<_ACEOF
26404 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
26405 _ACEOF
26408 # The cast to long int works around a bug in the HP C Compiler
26409 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26410 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26411 # This bug is HP SR number 8606223364.
26412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
26413 $as_echo_n "checking size of unsigned long... " >&6; }
26414 if ${ac_cv_sizeof_unsigned_long+:} false; then :
26415 $as_echo_n "(cached) " >&6
26416 else
26417 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
26419 else
26420 if test "$ac_cv_type_unsigned_long" = yes; then
26421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26423 as_fn_error 77 "cannot compute sizeof (unsigned long)
26424 See \`config.log' for more details" "$LINENO" 5; }
26425 else
26426 ac_cv_sizeof_unsigned_long=0
26431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
26432 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
26436 cat >>confdefs.h <<_ACEOF
26437 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
26438 _ACEOF
26441 # The cast to long int works around a bug in the HP C Compiler
26442 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26443 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26444 # This bug is HP SR number 8606223364.
26445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of mp_limb_t" >&5
26446 $as_echo_n "checking size of mp_limb_t... " >&6; }
26447 if ${ac_cv_sizeof_mp_limb_t+:} false; then :
26448 $as_echo_n "(cached) " >&6
26449 else
26450 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 */
26451 #define GMP_NAIL_BITS $GMP_NAIL_BITS
26452 #define GMP_LIMB_BITS 123
26453 $DEFN_LONG_LONG_LIMB
26454 #include \"$srcdir/gmp-h.in\"
26456 "; then :
26458 else
26459 if test "$ac_cv_type_mp_limb_t" = yes; then
26460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26462 as_fn_error 77 "cannot compute sizeof (mp_limb_t)
26463 See \`config.log' for more details" "$LINENO" 5; }
26464 else
26465 ac_cv_sizeof_mp_limb_t=0
26470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_mp_limb_t" >&5
26471 $as_echo "$ac_cv_sizeof_mp_limb_t" >&6; }
26475 cat >>confdefs.h <<_ACEOF
26476 #define SIZEOF_MP_LIMB_T $ac_cv_sizeof_mp_limb_t
26477 _ACEOF
26480 if test "$ac_cv_sizeof_mp_limb_t" = 0; then
26481 as_fn_error $? "Oops, mp_limb_t doesn't seem to work" "$LINENO" 5
26483 GMP_LIMB_BITS=`expr 8 \* $ac_cv_sizeof_mp_limb_t`
26486 echo "define(<SIZEOF_UNSIGNED>,<$ac_cv_sizeof_unsigned>)" >> $gmp_tmpconfigm4
26489 # Check compiler limb size matches gmp-mparam.h
26491 # FIXME: Some of the cycle counter objects in the tune directory depend on
26492 # the size of ulong, it'd be possible to check that here, though a mismatch
26493 # probably wouldn't want to be fatal, none of the libgmp assembler code
26494 # depends on ulong.
26496 mparam_bits=`sed -n 's/^#define GMP_LIMB_BITS[ ][ ]*\([0-9]*\).*$/\1/p' $gmp_mparam_source`
26497 if test -n "$mparam_bits" && test "$mparam_bits" -ne $GMP_LIMB_BITS; then
26498 if test "$test_CFLAGS" = set; then
26499 as_fn_error $? "Oops, mp_limb_t is $GMP_LIMB_BITS bits, but the assembler code
26500 in this configuration expects $mparam_bits bits.
26501 You appear to have set \$CFLAGS, perhaps you also need to tell GMP the
26502 intended ABI, see \"ABI and ISA\" in the manual." "$LINENO" 5
26503 else
26504 as_fn_error $? "Oops, mp_limb_t is $GMP_LIMB_BITS bits, but the assembler code
26505 in this configuration expects $mparam_bits bits." "$LINENO" 5
26510 echo "define(<GMP_LIMB_BITS>,$GMP_LIMB_BITS)" >> $gmp_tmpconfigm4
26513 echo "define(<GMP_NAIL_BITS>,$GMP_NAIL_BITS)" >> $gmp_tmpconfigm4
26516 echo "define(<GMP_NUMB_BITS>,eval(GMP_LIMB_BITS-GMP_NAIL_BITS))" >> $gmp_tmpconfigm4
26525 # A recompiled sqr_basecase for use in the tune program, if necessary.
26526 TUNE_SQR_OBJ=
26527 test -d tune || mkdir tune
26528 case $sqr_basecase_source in
26529 *.asm)
26530 sqr_max=`sed -n 's/^def...(SQR_TOOM2_THRESHOLD_MAX, *\([0-9]*\))/\1/p' $sqr_basecase_source`
26531 if test -n "$sqr_max"; then
26532 TUNE_SQR_OBJ=sqr_asm.o
26534 cat >>confdefs.h <<_ACEOF
26535 #define TUNE_SQR_TOOM2_MAX $sqr_max
26536 _ACEOF
26539 cat >tune/sqr_basecase.c <<EOF
26540 /* not sure that an empty file can compile, so put in a dummy */
26541 int sqr_basecase_dummy;
26544 *.c)
26545 TUNE_SQR_OBJ=
26546 $as_echo "#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC" >>confdefs.h
26548 cat >tune/sqr_basecase.c <<EOF
26549 #define TUNE_PROGRAM_BUILD 1
26550 #define TUNE_PROGRAM_BUILD_SQR 1
26551 #include "mpn/sqr_basecase.c"
26554 esac
26558 # Configs for demos/pexpr.c.
26560 ac_config_files="$ac_config_files demos/pexpr-config.h:demos/pexpr-config-h.in"
26562 case $ac_cv_func_clock in
26563 yes) HAVE_CLOCK_01=1
26565 no) HAVE_CLOCK_01=0 ;;
26566 esac
26568 case $ac_cv_func_cputime in
26569 yes) HAVE_CPUTIME_01=1
26571 no) HAVE_CPUTIME_01=0 ;;
26572 esac
26574 case $ac_cv_func_getrusage in
26575 yes) HAVE_GETRUSAGE_01=1
26577 no) HAVE_GETRUSAGE_01=0 ;;
26578 esac
26580 case $ac_cv_func_gettimeofday in
26581 yes) HAVE_GETTIMEOFDAY_01=1
26583 no) HAVE_GETTIMEOFDAY_01=0 ;;
26584 esac
26586 case $ac_cv_func_sigaction in
26587 yes) HAVE_SIGACTION_01=1
26589 no) HAVE_SIGACTION_01=0 ;;
26590 esac
26592 case $ac_cv_func_sigaltstack in
26593 yes) HAVE_SIGALTSTACK_01=1
26595 no) HAVE_SIGALTSTACK_01=0 ;;
26596 esac
26598 case $ac_cv_func_sigstack in
26599 yes) HAVE_SIGSTACK_01=1
26601 no) HAVE_SIGSTACK_01=0 ;;
26602 esac
26605 case $ac_cv_header_sys_resource_h in
26606 yes) HAVE_SYS_RESOURCE_H_01=1
26608 no) HAVE_SYS_RESOURCE_H_01=0 ;;
26609 esac
26612 ac_fn_c_check_type "$LINENO" "stack_t" "ac_cv_type_stack_t" "#include <signal.h>
26614 if test "x$ac_cv_type_stack_t" = xyes; then :
26616 cat >>confdefs.h <<_ACEOF
26617 #define HAVE_STACK_T 1
26618 _ACEOF
26620 HAVE_STACK_T_01=1
26621 else
26622 HAVE_STACK_T_01=0
26627 # Configs for demos/calc directory
26629 # AC_SUBST+AC_CONFIG_FILES is used for calc-config.h, rather than AC_DEFINE+
26630 # AC_CONFIG_HEADERS, since with the latter automake (1.8) will then put the
26631 # directory (ie. demos/calc) into $(DEFAULT_INCLUDES) for every Makefile.in,
26632 # which would look very strange.
26634 # -lcurses is required by libreadline. On a typical SVR4 style system this
26635 # normally doesn't have to be given explicitly, since libreadline.so will
26636 # have a NEEDED record for it. But if someone for some reason is using only
26637 # a static libreadline.a then we must give -lcurses. Readline (as of
26638 # version 4.3) doesn't use libtool, so we can't rely on a .la to cover
26639 # necessary dependencies.
26641 # On a couple of systems we've seen libreadline available, but the headers
26642 # not in the default include path, so check for readline/readline.h. We've
26643 # also seen readline/history.h missing, not sure if that's just a broken
26644 # install or a very old version, but check that too.
26646 ac_config_files="$ac_config_files demos/calc/calc-config.h:demos/calc/calc-config-h.in"
26648 LIBCURSES=
26649 if test $with_readline != no; then
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lncurses" >&5
26651 $as_echo_n "checking for tputs in -lncurses... " >&6; }
26652 if ${ac_cv_lib_ncurses_tputs+:} false; then :
26653 $as_echo_n "(cached) " >&6
26654 else
26655 ac_check_lib_save_LIBS=$LIBS
26656 LIBS="-lncurses $LIBS"
26657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26658 /* end confdefs.h. */
26660 /* Override any GCC internal prototype to avoid an error.
26661 Use char because int might match the return type of a GCC
26662 builtin and then its argument prototype would still apply. */
26663 #ifdef __cplusplus
26664 extern "C"
26665 #endif
26666 char tputs ();
26668 main ()
26670 return tputs ();
26672 return 0;
26674 _ACEOF
26675 if ac_fn_c_try_link "$LINENO"; then :
26676 ac_cv_lib_ncurses_tputs=yes
26677 else
26678 ac_cv_lib_ncurses_tputs=no
26680 rm -f core conftest.err conftest.$ac_objext \
26681 conftest$ac_exeext conftest.$ac_ext
26682 LIBS=$ac_check_lib_save_LIBS
26684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tputs" >&5
26685 $as_echo "$ac_cv_lib_ncurses_tputs" >&6; }
26686 if test "x$ac_cv_lib_ncurses_tputs" = xyes; then :
26687 LIBCURSES=-lncurses
26688 else
26689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lcurses" >&5
26690 $as_echo_n "checking for tputs in -lcurses... " >&6; }
26691 if ${ac_cv_lib_curses_tputs+:} false; then :
26692 $as_echo_n "(cached) " >&6
26693 else
26694 ac_check_lib_save_LIBS=$LIBS
26695 LIBS="-lcurses $LIBS"
26696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26697 /* end confdefs.h. */
26699 /* Override any GCC internal prototype to avoid an error.
26700 Use char because int might match the return type of a GCC
26701 builtin and then its argument prototype would still apply. */
26702 #ifdef __cplusplus
26703 extern "C"
26704 #endif
26705 char tputs ();
26707 main ()
26709 return tputs ();
26711 return 0;
26713 _ACEOF
26714 if ac_fn_c_try_link "$LINENO"; then :
26715 ac_cv_lib_curses_tputs=yes
26716 else
26717 ac_cv_lib_curses_tputs=no
26719 rm -f core conftest.err conftest.$ac_objext \
26720 conftest$ac_exeext conftest.$ac_ext
26721 LIBS=$ac_check_lib_save_LIBS
26723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tputs" >&5
26724 $as_echo "$ac_cv_lib_curses_tputs" >&6; }
26725 if test "x$ac_cv_lib_curses_tputs" = xyes; then :
26726 LIBCURSES=-lcurses
26733 use_readline=$with_readline
26734 if test $with_readline = detect; then
26735 use_readline=no
26736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
26737 $as_echo_n "checking for readline in -lreadline... " >&6; }
26738 if ${ac_cv_lib_readline_readline+:} false; then :
26739 $as_echo_n "(cached) " >&6
26740 else
26741 ac_check_lib_save_LIBS=$LIBS
26742 LIBS="-lreadline $LIBCURSES $LIBS"
26743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26744 /* end confdefs.h. */
26746 /* Override any GCC internal prototype to avoid an error.
26747 Use char because int might match the return type of a GCC
26748 builtin and then its argument prototype would still apply. */
26749 #ifdef __cplusplus
26750 extern "C"
26751 #endif
26752 char readline ();
26754 main ()
26756 return readline ();
26758 return 0;
26760 _ACEOF
26761 if ac_fn_c_try_link "$LINENO"; then :
26762 ac_cv_lib_readline_readline=yes
26763 else
26764 ac_cv_lib_readline_readline=no
26766 rm -f core conftest.err conftest.$ac_objext \
26767 conftest$ac_exeext conftest.$ac_ext
26768 LIBS=$ac_check_lib_save_LIBS
26770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
26771 $as_echo "$ac_cv_lib_readline_readline" >&6; }
26772 if test "x$ac_cv_lib_readline_readline" = xyes; then :
26773 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
26774 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
26775 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
26776 if test "x$ac_cv_header_readline_history_h" = xyes; then :
26777 use_readline=yes
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking readline detected" >&5
26787 $as_echo_n "checking readline detected... " >&6; }
26788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_readline" >&5
26789 $as_echo "$use_readline" >&6; }
26791 if test $use_readline = yes; then
26792 WITH_READLINE_01=1
26794 LIBREADLINE=-lreadline
26796 else
26797 WITH_READLINE_01=0
26799 for ac_prog in 'bison -y' byacc
26801 # Extract the first word of "$ac_prog", so it can be a program name with args.
26802 set dummy $ac_prog; ac_word=$2
26803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26804 $as_echo_n "checking for $ac_word... " >&6; }
26805 if ${ac_cv_prog_YACC+:} false; then :
26806 $as_echo_n "(cached) " >&6
26807 else
26808 if test -n "$YACC"; then
26809 ac_cv_prog_YACC="$YACC" # Let the user override the test.
26810 else
26811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26812 for as_dir in $PATH
26814 IFS=$as_save_IFS
26815 test -z "$as_dir" && as_dir=.
26816 for ac_exec_ext in '' $ac_executable_extensions; do
26817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26818 ac_cv_prog_YACC="$ac_prog"
26819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26820 break 2
26822 done
26823 done
26824 IFS=$as_save_IFS
26828 YACC=$ac_cv_prog_YACC
26829 if test -n "$YACC"; then
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
26831 $as_echo "$YACC" >&6; }
26832 else
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26834 $as_echo "no" >&6; }
26838 test -n "$YACC" && break
26839 done
26840 test -n "$YACC" || YACC="yacc"
26842 for ac_prog in flex lex
26844 # Extract the first word of "$ac_prog", so it can be a program name with args.
26845 set dummy $ac_prog; ac_word=$2
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26847 $as_echo_n "checking for $ac_word... " >&6; }
26848 if ${ac_cv_prog_LEX+:} false; then :
26849 $as_echo_n "(cached) " >&6
26850 else
26851 if test -n "$LEX"; then
26852 ac_cv_prog_LEX="$LEX" # Let the user override the test.
26853 else
26854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26855 for as_dir in $PATH
26857 IFS=$as_save_IFS
26858 test -z "$as_dir" && as_dir=.
26859 for ac_exec_ext in '' $ac_executable_extensions; do
26860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26861 ac_cv_prog_LEX="$ac_prog"
26862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26863 break 2
26865 done
26866 done
26867 IFS=$as_save_IFS
26871 LEX=$ac_cv_prog_LEX
26872 if test -n "$LEX"; then
26873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
26874 $as_echo "$LEX" >&6; }
26875 else
26876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26877 $as_echo "no" >&6; }
26881 test -n "$LEX" && break
26882 done
26883 test -n "$LEX" || LEX=":"
26885 if test "x$LEX" != "x:"; then
26886 cat >conftest.l <<_ACEOF
26888 a { ECHO; }
26889 b { REJECT; }
26890 c { yymore (); }
26891 d { yyless (1); }
26892 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
26893 yyless ((input () != 0)); }
26894 f { unput (yytext[0]); }
26895 . { BEGIN INITIAL; }
26897 #ifdef YYTEXT_POINTER
26898 extern char *yytext;
26899 #endif
26901 main (void)
26903 return ! yylex () + ! yywrap ();
26905 _ACEOF
26906 { { ac_try="$LEX conftest.l"
26907 case "(($ac_try" in
26908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26909 *) ac_try_echo=$ac_try;;
26910 esac
26911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26912 $as_echo "$ac_try_echo"; } >&5
26913 (eval "$LEX conftest.l") 2>&5
26914 ac_status=$?
26915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26916 test $ac_status = 0; }
26917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
26918 $as_echo_n "checking lex output file root... " >&6; }
26919 if ${ac_cv_prog_lex_root+:} false; then :
26920 $as_echo_n "(cached) " >&6
26921 else
26923 if test -f lex.yy.c; then
26924 ac_cv_prog_lex_root=lex.yy
26925 elif test -f lexyy.c; then
26926 ac_cv_prog_lex_root=lexyy
26927 else
26928 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
26931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
26932 $as_echo "$ac_cv_prog_lex_root" >&6; }
26933 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
26935 if test -z "${LEXLIB+set}"; then
26936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
26937 $as_echo_n "checking lex library... " >&6; }
26938 if ${ac_cv_lib_lex+:} false; then :
26939 $as_echo_n "(cached) " >&6
26940 else
26942 ac_save_LIBS=$LIBS
26943 ac_cv_lib_lex='none needed'
26944 for ac_lib in '' -lfl -ll; do
26945 LIBS="$ac_lib $ac_save_LIBS"
26946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26947 /* end confdefs.h. */
26948 `cat $LEX_OUTPUT_ROOT.c`
26949 _ACEOF
26950 if ac_fn_c_try_link "$LINENO"; then :
26951 ac_cv_lib_lex=$ac_lib
26953 rm -f core conftest.err conftest.$ac_objext \
26954 conftest$ac_exeext conftest.$ac_ext
26955 test "$ac_cv_lib_lex" != 'none needed' && break
26956 done
26957 LIBS=$ac_save_LIBS
26960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
26961 $as_echo "$ac_cv_lib_lex" >&6; }
26962 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
26967 $as_echo_n "checking whether yytext is a pointer... " >&6; }
26968 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
26969 $as_echo_n "(cached) " >&6
26970 else
26971 # POSIX says lex can declare yytext either as a pointer or an array; the
26972 # default is implementation-dependent. Figure out which it is, since
26973 # not all implementations provide the %pointer and %array declarations.
26974 ac_cv_prog_lex_yytext_pointer=no
26975 ac_save_LIBS=$LIBS
26976 LIBS="$LEXLIB $ac_save_LIBS"
26977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26978 /* end confdefs.h. */
26980 #define YYTEXT_POINTER 1
26981 `cat $LEX_OUTPUT_ROOT.c`
26982 _ACEOF
26983 if ac_fn_c_try_link "$LINENO"; then :
26984 ac_cv_prog_lex_yytext_pointer=yes
26986 rm -f core conftest.err conftest.$ac_objext \
26987 conftest$ac_exeext conftest.$ac_ext
26988 LIBS=$ac_save_LIBS
26991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
26992 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
26993 if test $ac_cv_prog_lex_yytext_pointer = yes; then
26995 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
26998 rm -f conftest.l $LEX_OUTPUT_ROOT.c
27001 if test "$LEX" = :; then
27002 LEX=${am_missing_run}flex
27005 # Configs for demos/expr directory
27007 # Libtool already runs an AC_CHECK_TOOL for ranlib, but we give
27008 # AC_PROG_RANLIB anyway since automake is supposed to complain if it's not
27009 # called. (Automake 1.8.4 doesn't, at least not when the only library is in
27010 # an EXTRA_LIBRARIES.)
27012 if test -n "$ac_tool_prefix"; then
27013 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
27014 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
27015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27016 $as_echo_n "checking for $ac_word... " >&6; }
27017 if ${ac_cv_prog_RANLIB+:} false; then :
27018 $as_echo_n "(cached) " >&6
27019 else
27020 if test -n "$RANLIB"; then
27021 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
27022 else
27023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27024 for as_dir in $PATH
27026 IFS=$as_save_IFS
27027 test -z "$as_dir" && as_dir=.
27028 for ac_exec_ext in '' $ac_executable_extensions; do
27029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27030 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
27031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27032 break 2
27034 done
27035 done
27036 IFS=$as_save_IFS
27040 RANLIB=$ac_cv_prog_RANLIB
27041 if test -n "$RANLIB"; then
27042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
27043 $as_echo "$RANLIB" >&6; }
27044 else
27045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27046 $as_echo "no" >&6; }
27051 if test -z "$ac_cv_prog_RANLIB"; then
27052 ac_ct_RANLIB=$RANLIB
27053 # Extract the first word of "ranlib", so it can be a program name with args.
27054 set dummy ranlib; ac_word=$2
27055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27056 $as_echo_n "checking for $ac_word... " >&6; }
27057 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
27058 $as_echo_n "(cached) " >&6
27059 else
27060 if test -n "$ac_ct_RANLIB"; then
27061 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
27062 else
27063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27064 for as_dir in $PATH
27066 IFS=$as_save_IFS
27067 test -z "$as_dir" && as_dir=.
27068 for ac_exec_ext in '' $ac_executable_extensions; do
27069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27070 ac_cv_prog_ac_ct_RANLIB="ranlib"
27071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27072 break 2
27074 done
27075 done
27076 IFS=$as_save_IFS
27080 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
27081 if test -n "$ac_ct_RANLIB"; then
27082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
27083 $as_echo "$ac_ct_RANLIB" >&6; }
27084 else
27085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27086 $as_echo "no" >&6; }
27089 if test "x$ac_ct_RANLIB" = x; then
27090 RANLIB=":"
27091 else
27092 case $cross_compiling:$ac_tool_warned in
27093 yes:)
27094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27096 ac_tool_warned=yes ;;
27097 esac
27098 RANLIB=$ac_ct_RANLIB
27100 else
27101 RANLIB="$ac_cv_prog_RANLIB"
27106 # Create config.m4.
27108 echo "creating $gmp_configm4"
27109 echo "d""nl $gmp_configm4. Generated automatically by configure." > $gmp_configm4
27110 if test -f $gmp_tmpconfigm4; then
27111 echo "changequote(<,>)" >> $gmp_configm4
27112 echo "ifdef(<__CONFIG_M4_INCLUDED__>,,<" >> $gmp_configm4
27113 cat $gmp_tmpconfigm4 >> $gmp_configm4
27114 echo ">)" >> $gmp_configm4
27115 echo "changequote(\`,')" >> $gmp_configm4
27116 rm $gmp_tmpconfigm4
27118 echo "ifdef(\`__CONFIG_M4_INCLUDED__',,\`" >> $gmp_configm4
27119 if test -f $gmp_tmpconfigm4i; then
27120 cat $gmp_tmpconfigm4i >> $gmp_configm4
27121 rm $gmp_tmpconfigm4i
27123 if test -f $gmp_tmpconfigm4p; then
27124 cat $gmp_tmpconfigm4p >> $gmp_configm4
27125 rm $gmp_tmpconfigm4p
27127 echo "')" >> $gmp_configm4
27128 echo "define(\`__CONFIG_M4_INCLUDED__')" >> $gmp_configm4
27131 # Create Makefiles
27132 # FIXME: Upcoming version of autoconf/automake may not like broken lines.
27133 # Right now automake isn't accepting the new AC_CONFIG_FILES scheme.
27135 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"
27137 cat >confcache <<\_ACEOF
27138 # This file is a shell script that caches the results of configure
27139 # tests run on this system so they can be shared between configure
27140 # scripts and configure runs, see configure's option --config-cache.
27141 # It is not useful on other systems. If it contains results you don't
27142 # want to keep, you may remove or edit it.
27144 # config.status only pays attention to the cache file if you give it
27145 # the --recheck option to rerun configure.
27147 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27148 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27149 # following values.
27151 _ACEOF
27153 # The following way of writing the cache mishandles newlines in values,
27154 # but we know of no workaround that is simple, portable, and efficient.
27155 # So, we kill variables containing newlines.
27156 # Ultrix sh set writes to stderr and can't be redirected directly,
27157 # and sets the high bit in the cache file unless we assign to the vars.
27159 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27160 eval ac_val=\$$ac_var
27161 case $ac_val in #(
27162 *${as_nl}*)
27163 case $ac_var in #(
27164 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27165 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27166 esac
27167 case $ac_var in #(
27168 _ | IFS | as_nl) ;; #(
27169 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27170 *) { eval $ac_var=; unset $ac_var;} ;;
27171 esac ;;
27172 esac
27173 done
27175 (set) 2>&1 |
27176 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27177 *${as_nl}ac_space=\ *)
27178 # `set' does not quote correctly, so add quotes: double-quote
27179 # substitution turns \\\\ into \\, and sed turns \\ into \.
27180 sed -n \
27181 "s/'/'\\\\''/g;
27182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27183 ;; #(
27185 # `set' quotes correctly as required by POSIX, so do not add quotes.
27186 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27188 esac |
27189 sort
27191 sed '
27192 /^ac_cv_env_/b end
27193 t clear
27194 :clear
27195 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27196 t end
27197 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27198 :end' >>confcache
27199 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27200 if test -w "$cache_file"; then
27201 if test "x$cache_file" != "x/dev/null"; then
27202 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27203 $as_echo "$as_me: updating cache $cache_file" >&6;}
27204 if test ! -f "$cache_file" || test -h "$cache_file"; then
27205 cat confcache >"$cache_file"
27206 else
27207 case $cache_file in #(
27208 */* | ?:*)
27209 mv -f confcache "$cache_file"$$ &&
27210 mv -f "$cache_file"$$ "$cache_file" ;; #(
27212 mv -f confcache "$cache_file" ;;
27213 esac
27216 else
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27218 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27221 rm -f confcache
27223 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27224 # Let make expand exec_prefix.
27225 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27227 DEFS=-DHAVE_CONFIG_H
27229 ac_libobjs=
27230 ac_ltlibobjs=
27232 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27233 # 1. Remove the extension, and $U if already installed.
27234 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27235 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27236 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27237 # will be set to the directory where LIBOBJS objects are built.
27238 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27239 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27240 done
27241 LIBOBJS=$ac_libobjs
27243 LTLIBOBJS=$ac_ltlibobjs
27246 if test -n "$EXEEXT"; then
27247 am__EXEEXT_TRUE=
27248 am__EXEEXT_FALSE='#'
27249 else
27250 am__EXEEXT_TRUE='#'
27251 am__EXEEXT_FALSE=
27254 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27255 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
27256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27258 if test -z "${WANT_CXX_TRUE}" && test -z "${WANT_CXX_FALSE}"; then
27259 as_fn_error $? "conditional \"WANT_CXX\" was never defined.
27260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27262 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
27263 as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined.
27264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27268 : "${CONFIG_STATUS=./config.status}"
27269 ac_write_fail=0
27270 ac_clean_files_save=$ac_clean_files
27271 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27272 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27273 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27274 as_write_fail=0
27275 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27276 #! $SHELL
27277 # Generated by $as_me.
27278 # Run this file to recreate the current configuration.
27279 # Compiler output produced by configure, useful for debugging
27280 # configure, is in config.log if it exists.
27282 debug=false
27283 ac_cs_recheck=false
27284 ac_cs_silent=false
27286 SHELL=\${CONFIG_SHELL-$SHELL}
27287 export SHELL
27288 _ASEOF
27289 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27290 ## -------------------- ##
27291 ## M4sh Initialization. ##
27292 ## -------------------- ##
27294 # Be more Bourne compatible
27295 DUALCASE=1; export DUALCASE # for MKS sh
27296 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27297 emulate sh
27298 NULLCMD=:
27299 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27300 # is contrary to our usage. Disable this feature.
27301 alias -g '${1+"$@"}'='"$@"'
27302 setopt NO_GLOB_SUBST
27303 else
27304 case `(set -o) 2>/dev/null` in #(
27305 *posix*) :
27306 set -o posix ;; #(
27307 *) :
27309 esac
27313 as_nl='
27315 export as_nl
27316 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27317 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27318 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27319 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27320 # Prefer a ksh shell builtin over an external printf program on Solaris,
27321 # but without wasting forks for bash or zsh.
27322 if test -z "$BASH_VERSION$ZSH_VERSION" \
27323 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27324 as_echo='print -r --'
27325 as_echo_n='print -rn --'
27326 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27327 as_echo='printf %s\n'
27328 as_echo_n='printf %s'
27329 else
27330 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27331 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27332 as_echo_n='/usr/ucb/echo -n'
27333 else
27334 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27335 as_echo_n_body='eval
27336 arg=$1;
27337 case $arg in #(
27338 *"$as_nl"*)
27339 expr "X$arg" : "X\\(.*\\)$as_nl";
27340 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27341 esac;
27342 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27344 export as_echo_n_body
27345 as_echo_n='sh -c $as_echo_n_body as_echo'
27347 export as_echo_body
27348 as_echo='sh -c $as_echo_body as_echo'
27351 # The user is always right.
27352 if test "${PATH_SEPARATOR+set}" != set; then
27353 PATH_SEPARATOR=:
27354 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27355 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27356 PATH_SEPARATOR=';'
27361 # IFS
27362 # We need space, tab and new line, in precisely that order. Quoting is
27363 # there to prevent editors from complaining about space-tab.
27364 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27365 # splitting by setting IFS to empty value.)
27366 IFS=" "" $as_nl"
27368 # Find who we are. Look in the path if we contain no directory separator.
27369 as_myself=
27370 case $0 in #((
27371 *[\\/]* ) as_myself=$0 ;;
27372 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27373 for as_dir in $PATH
27375 IFS=$as_save_IFS
27376 test -z "$as_dir" && as_dir=.
27377 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27378 done
27379 IFS=$as_save_IFS
27382 esac
27383 # We did not find ourselves, most probably we were run as `sh COMMAND'
27384 # in which case we are not to be found in the path.
27385 if test "x$as_myself" = x; then
27386 as_myself=$0
27388 if test ! -f "$as_myself"; then
27389 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27390 exit 1
27393 # Unset variables that we do not need and which cause bugs (e.g. in
27394 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27395 # suppresses any "Segmentation fault" message there. '((' could
27396 # trigger a bug in pdksh 5.2.14.
27397 for as_var in BASH_ENV ENV MAIL MAILPATH
27398 do eval test x\${$as_var+set} = xset \
27399 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27400 done
27401 PS1='$ '
27402 PS2='> '
27403 PS4='+ '
27405 # NLS nuisances.
27406 LC_ALL=C
27407 export LC_ALL
27408 LANGUAGE=C
27409 export LANGUAGE
27411 # CDPATH.
27412 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27416 # ----------------------------------------
27417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27419 # script with STATUS, using 1 if that was 0.
27420 as_fn_error ()
27422 as_status=$1; test $as_status -eq 0 && as_status=1
27423 if test "$4"; then
27424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27427 $as_echo "$as_me: error: $2" >&2
27428 as_fn_exit $as_status
27429 } # as_fn_error
27432 # as_fn_set_status STATUS
27433 # -----------------------
27434 # Set $? to STATUS, without forking.
27435 as_fn_set_status ()
27437 return $1
27438 } # as_fn_set_status
27440 # as_fn_exit STATUS
27441 # -----------------
27442 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27443 as_fn_exit ()
27445 set +e
27446 as_fn_set_status $1
27447 exit $1
27448 } # as_fn_exit
27450 # as_fn_unset VAR
27451 # ---------------
27452 # Portably unset VAR.
27453 as_fn_unset ()
27455 { eval $1=; unset $1;}
27457 as_unset=as_fn_unset
27458 # as_fn_append VAR VALUE
27459 # ----------------------
27460 # Append the text in VALUE to the end of the definition contained in VAR. Take
27461 # advantage of any shell optimizations that allow amortized linear growth over
27462 # repeated appends, instead of the typical quadratic growth present in naive
27463 # implementations.
27464 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27465 eval 'as_fn_append ()
27467 eval $1+=\$2
27469 else
27470 as_fn_append ()
27472 eval $1=\$$1\$2
27474 fi # as_fn_append
27476 # as_fn_arith ARG...
27477 # ------------------
27478 # Perform arithmetic evaluation on the ARGs, and store the result in the
27479 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27480 # must be portable across $(()) and expr.
27481 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27482 eval 'as_fn_arith ()
27484 as_val=$(( $* ))
27486 else
27487 as_fn_arith ()
27489 as_val=`expr "$@" || test $? -eq 1`
27491 fi # as_fn_arith
27494 if expr a : '\(a\)' >/dev/null 2>&1 &&
27495 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27496 as_expr=expr
27497 else
27498 as_expr=false
27501 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27502 as_basename=basename
27503 else
27504 as_basename=false
27507 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27508 as_dirname=dirname
27509 else
27510 as_dirname=false
27513 as_me=`$as_basename -- "$0" ||
27514 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27515 X"$0" : 'X\(//\)$' \| \
27516 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27517 $as_echo X/"$0" |
27518 sed '/^.*\/\([^/][^/]*\)\/*$/{
27519 s//\1/
27522 /^X\/\(\/\/\)$/{
27523 s//\1/
27526 /^X\/\(\/\).*/{
27527 s//\1/
27530 s/.*/./; q'`
27532 # Avoid depending upon Character Ranges.
27533 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27534 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27535 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27536 as_cr_digits='0123456789'
27537 as_cr_alnum=$as_cr_Letters$as_cr_digits
27539 ECHO_C= ECHO_N= ECHO_T=
27540 case `echo -n x` in #(((((
27541 -n*)
27542 case `echo 'xy\c'` in
27543 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27544 xy) ECHO_C='\c';;
27545 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27546 ECHO_T=' ';;
27547 esac;;
27549 ECHO_N='-n';;
27550 esac
27552 rm -f conf$$ conf$$.exe conf$$.file
27553 if test -d conf$$.dir; then
27554 rm -f conf$$.dir/conf$$.file
27555 else
27556 rm -f conf$$.dir
27557 mkdir conf$$.dir 2>/dev/null
27559 if (echo >conf$$.file) 2>/dev/null; then
27560 if ln -s conf$$.file conf$$ 2>/dev/null; then
27561 as_ln_s='ln -s'
27562 # ... but there are two gotchas:
27563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27565 # In both cases, we have to default to `cp -pR'.
27566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27567 as_ln_s='cp -pR'
27568 elif ln conf$$.file conf$$ 2>/dev/null; then
27569 as_ln_s=ln
27570 else
27571 as_ln_s='cp -pR'
27573 else
27574 as_ln_s='cp -pR'
27576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27577 rmdir conf$$.dir 2>/dev/null
27580 # as_fn_mkdir_p
27581 # -------------
27582 # Create "$as_dir" as a directory, including parents if necessary.
27583 as_fn_mkdir_p ()
27586 case $as_dir in #(
27587 -*) as_dir=./$as_dir;;
27588 esac
27589 test -d "$as_dir" || eval $as_mkdir_p || {
27590 as_dirs=
27591 while :; do
27592 case $as_dir in #(
27593 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27594 *) as_qdir=$as_dir;;
27595 esac
27596 as_dirs="'$as_qdir' $as_dirs"
27597 as_dir=`$as_dirname -- "$as_dir" ||
27598 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27599 X"$as_dir" : 'X\(//\)[^/]' \| \
27600 X"$as_dir" : 'X\(//\)$' \| \
27601 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27602 $as_echo X"$as_dir" |
27603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27604 s//\1/
27607 /^X\(\/\/\)[^/].*/{
27608 s//\1/
27611 /^X\(\/\/\)$/{
27612 s//\1/
27615 /^X\(\/\).*/{
27616 s//\1/
27619 s/.*/./; q'`
27620 test -d "$as_dir" && break
27621 done
27622 test -z "$as_dirs" || eval "mkdir $as_dirs"
27623 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27626 } # as_fn_mkdir_p
27627 if mkdir -p . 2>/dev/null; then
27628 as_mkdir_p='mkdir -p "$as_dir"'
27629 else
27630 test -d ./-p && rmdir ./-p
27631 as_mkdir_p=false
27635 # as_fn_executable_p FILE
27636 # -----------------------
27637 # Test if FILE is an executable regular file.
27638 as_fn_executable_p ()
27640 test -f "$1" && test -x "$1"
27641 } # as_fn_executable_p
27642 as_test_x='test -x'
27643 as_executable_p=as_fn_executable_p
27645 # Sed expression to map a string onto a valid CPP name.
27646 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27648 # Sed expression to map a string onto a valid variable name.
27649 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27652 exec 6>&1
27653 ## ----------------------------------- ##
27654 ## Main body of $CONFIG_STATUS script. ##
27655 ## ----------------------------------- ##
27656 _ASEOF
27657 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27660 # Save the log message, to keep $0 and so on meaningful, and to
27661 # report actual input values of CONFIG_FILES etc. instead of their
27662 # values after options handling.
27663 ac_log="
27664 This file was extended by GNU MP $as_me 6.0.0, which was
27665 generated by GNU Autoconf 2.69. Invocation command line was
27667 CONFIG_FILES = $CONFIG_FILES
27668 CONFIG_HEADERS = $CONFIG_HEADERS
27669 CONFIG_LINKS = $CONFIG_LINKS
27670 CONFIG_COMMANDS = $CONFIG_COMMANDS
27671 $ $0 $@
27673 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27676 _ACEOF
27678 case $ac_config_files in *"
27679 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27680 esac
27682 case $ac_config_headers in *"
27683 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27684 esac
27687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27688 # Files that config.status was made for.
27689 config_files="$ac_config_files"
27690 config_headers="$ac_config_headers"
27691 config_links="$ac_config_links"
27692 config_commands="$ac_config_commands"
27694 _ACEOF
27696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27697 ac_cs_usage="\
27698 \`$as_me' instantiates files and other configuration actions
27699 from templates according to the current configuration. Unless the files
27700 and actions are specified as TAGs, all are instantiated by default.
27702 Usage: $0 [OPTION]... [TAG]...
27704 -h, --help print this help, then exit
27705 -V, --version print version number and configuration settings, then exit
27706 --config print configuration, then exit
27707 -q, --quiet, --silent
27708 do not print progress messages
27709 -d, --debug don't remove temporary files
27710 --recheck update $as_me by reconfiguring in the same conditions
27711 --file=FILE[:TEMPLATE]
27712 instantiate the configuration file FILE
27713 --header=FILE[:TEMPLATE]
27714 instantiate the configuration header FILE
27716 Configuration files:
27717 $config_files
27719 Configuration headers:
27720 $config_headers
27722 Configuration links:
27723 $config_links
27725 Configuration commands:
27726 $config_commands
27728 Report bugs to <gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html>.
27729 GNU MP home page: <http://www.gnu.org/software/gmp/>.
27730 General help using GNU software: <http://www.gnu.org/gethelp/>."
27732 _ACEOF
27733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27734 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27735 ac_cs_version="\\
27736 GNU MP config.status 6.0.0
27737 configured by $0, generated by GNU Autoconf 2.69,
27738 with options \\"\$ac_cs_config\\"
27740 Copyright (C) 2012 Free Software Foundation, Inc.
27741 This config.status script is free software; the Free Software Foundation
27742 gives unlimited permission to copy, distribute and modify it."
27744 ac_pwd='$ac_pwd'
27745 srcdir='$srcdir'
27746 INSTALL='$INSTALL'
27747 MKDIR_P='$MKDIR_P'
27748 AWK='$AWK'
27749 test -n "\$AWK" || AWK=awk
27750 _ACEOF
27752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27753 # The default lists apply if the user does not specify any file.
27754 ac_need_defaults=:
27755 while test $# != 0
27757 case $1 in
27758 --*=?*)
27759 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27760 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27761 ac_shift=:
27763 --*=)
27764 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27765 ac_optarg=
27766 ac_shift=:
27769 ac_option=$1
27770 ac_optarg=$2
27771 ac_shift=shift
27773 esac
27775 case $ac_option in
27776 # Handling of the options.
27777 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27778 ac_cs_recheck=: ;;
27779 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27780 $as_echo "$ac_cs_version"; exit ;;
27781 --config | --confi | --conf | --con | --co | --c )
27782 $as_echo "$ac_cs_config"; exit ;;
27783 --debug | --debu | --deb | --de | --d | -d )
27784 debug=: ;;
27785 --file | --fil | --fi | --f )
27786 $ac_shift
27787 case $ac_optarg in
27788 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27789 '') as_fn_error $? "missing file argument" ;;
27790 esac
27791 as_fn_append CONFIG_FILES " '$ac_optarg'"
27792 ac_need_defaults=false;;
27793 --header | --heade | --head | --hea )
27794 $ac_shift
27795 case $ac_optarg in
27796 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27797 esac
27798 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27799 ac_need_defaults=false;;
27800 --he | --h)
27801 # Conflict between --help and --header
27802 as_fn_error $? "ambiguous option: \`$1'
27803 Try \`$0 --help' for more information.";;
27804 --help | --hel | -h )
27805 $as_echo "$ac_cs_usage"; exit ;;
27806 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27807 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27808 ac_cs_silent=: ;;
27810 # This is an error.
27811 -*) as_fn_error $? "unrecognized option: \`$1'
27812 Try \`$0 --help' for more information." ;;
27814 *) as_fn_append ac_config_targets " $1"
27815 ac_need_defaults=false ;;
27817 esac
27818 shift
27819 done
27821 ac_configure_extra_args=
27823 if $ac_cs_silent; then
27824 exec 6>/dev/null
27825 ac_configure_extra_args="$ac_configure_extra_args --silent"
27828 _ACEOF
27829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27830 if \$ac_cs_recheck; then
27831 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27832 shift
27833 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27834 CONFIG_SHELL='$SHELL'
27835 export CONFIG_SHELL
27836 exec "\$@"
27839 _ACEOF
27840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27841 exec 5>>config.log
27843 echo
27844 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27845 ## Running $as_me. ##
27846 _ASBOX
27847 $as_echo "$ac_log"
27848 } >&5
27850 _ACEOF
27851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27853 # INIT-COMMANDS
27857 # The HP-UX ksh and POSIX shell print the target directory to stdout
27858 # if CDPATH is set.
27859 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27861 sed_quote_subst='$sed_quote_subst'
27862 double_quote_subst='$double_quote_subst'
27863 delay_variable_subst='$delay_variable_subst'
27864 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27865 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
27866 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27867 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27868 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27869 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27870 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27871 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27872 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27873 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27874 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27875 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27876 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27877 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27878 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27879 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27880 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27881 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27882 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27883 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27884 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27885 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27886 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27887 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27888 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27889 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27890 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27891 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27892 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27893 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27894 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27895 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27896 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27897 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27898 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27899 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27900 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27901 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27902 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27903 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27904 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27905 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27906 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27907 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27908 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27909 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27910 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27911 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27912 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27913 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27914 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27915 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27916 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27917 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27918 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27919 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27920 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27921 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"`'
27922 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27923 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27924 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27925 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27926 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27927 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27928 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27929 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27930 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27931 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27932 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27933 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27934 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27935 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27936 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27937 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27938 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27939 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27940 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27941 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27942 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27943 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27944 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27945 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27946 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27947 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27948 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27949 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27950 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27951 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27952 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27953 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27954 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27955 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27956 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27957 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27958 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27959 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27960 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27961 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27962 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27963 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27964 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27965 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27966 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27967 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27968 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27969 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27970 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27971 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27972 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27973 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27974 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27975 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27976 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27977 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27978 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27979 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27980 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27981 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27982 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27983 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27984 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27985 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27986 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27987 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27988 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27989 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27990 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27991 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27992 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27993 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27994 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27995 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27996 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27997 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27998 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27999 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
28000 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
28001 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
28002 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
28003 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28004 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28005 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
28006 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
28007 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
28008 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
28009 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
28010 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
28011 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
28012 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
28013 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
28014 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28015 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28016 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
28017 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28018 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28019 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28020 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28021 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28022 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28023 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
28024 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
28025 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
28026 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28027 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
28028 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
28029 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
28030 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
28031 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
28032 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
28033 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
28034 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
28035 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
28036 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28037 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
28038 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
28039 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28040 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28041 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
28042 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
28043 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
28044 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
28045 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
28046 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
28047 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
28048 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
28050 LTCC='$LTCC'
28051 LTCFLAGS='$LTCFLAGS'
28052 compiler='$compiler_DEFAULT'
28054 # A function that is used when there is no print builtin or printf.
28055 func_fallback_echo ()
28057 eval 'cat <<_LTECHO_EOF
28059 _LTECHO_EOF'
28062 # Quote evaled strings.
28063 for var in NM \
28064 AS \
28065 DLLTOOL \
28066 OBJDUMP \
28067 SHELL \
28068 ECHO \
28069 PATH_SEPARATOR \
28070 SED \
28071 GREP \
28072 EGREP \
28073 FGREP \
28074 LD \
28075 LN_S \
28076 lt_SP2NL \
28077 lt_NL2SP \
28078 reload_flag \
28079 deplibs_check_method \
28080 file_magic_cmd \
28081 file_magic_glob \
28082 want_nocaseglob \
28083 sharedlib_from_linklib_cmd \
28084 AR \
28085 AR_FLAGS \
28086 archiver_list_spec \
28087 STRIP \
28088 RANLIB \
28089 CC \
28090 CFLAGS \
28091 compiler \
28092 lt_cv_sys_global_symbol_pipe \
28093 lt_cv_sys_global_symbol_to_cdecl \
28094 lt_cv_sys_global_symbol_to_c_name_address \
28095 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28096 nm_file_list_spec \
28097 lt_prog_compiler_no_builtin_flag \
28098 lt_prog_compiler_pic \
28099 lt_prog_compiler_wl \
28100 lt_prog_compiler_static \
28101 lt_cv_prog_compiler_c_o \
28102 need_locks \
28103 MANIFEST_TOOL \
28104 DSYMUTIL \
28105 NMEDIT \
28106 LIPO \
28107 OTOOL \
28108 OTOOL64 \
28109 shrext_cmds \
28110 export_dynamic_flag_spec \
28111 whole_archive_flag_spec \
28112 compiler_needs_object \
28113 with_gnu_ld \
28114 allow_undefined_flag \
28115 no_undefined_flag \
28116 hardcode_libdir_flag_spec \
28117 hardcode_libdir_separator \
28118 exclude_expsyms \
28119 include_expsyms \
28120 file_list_spec \
28121 variables_saved_for_relink \
28122 libname_spec \
28123 library_names_spec \
28124 soname_spec \
28125 install_override_mode \
28126 finish_eval \
28127 old_striplib \
28128 striplib \
28129 compiler_lib_search_dirs \
28130 predep_objects \
28131 postdep_objects \
28132 predeps \
28133 postdeps \
28134 compiler_lib_search_path \
28135 LD_CXX \
28136 reload_flag_CXX \
28137 compiler_CXX \
28138 lt_prog_compiler_no_builtin_flag_CXX \
28139 lt_prog_compiler_pic_CXX \
28140 lt_prog_compiler_wl_CXX \
28141 lt_prog_compiler_static_CXX \
28142 lt_cv_prog_compiler_c_o_CXX \
28143 export_dynamic_flag_spec_CXX \
28144 whole_archive_flag_spec_CXX \
28145 compiler_needs_object_CXX \
28146 with_gnu_ld_CXX \
28147 allow_undefined_flag_CXX \
28148 no_undefined_flag_CXX \
28149 hardcode_libdir_flag_spec_CXX \
28150 hardcode_libdir_separator_CXX \
28151 exclude_expsyms_CXX \
28152 include_expsyms_CXX \
28153 file_list_spec_CXX \
28154 compiler_lib_search_dirs_CXX \
28155 predep_objects_CXX \
28156 postdep_objects_CXX \
28157 predeps_CXX \
28158 postdeps_CXX \
28159 compiler_lib_search_path_CXX; do
28160 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28161 *[\\\\\\\`\\"\\\$]*)
28162 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28165 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28167 esac
28168 done
28170 # Double-quote double-evaled strings.
28171 for var in reload_cmds \
28172 old_postinstall_cmds \
28173 old_postuninstall_cmds \
28174 old_archive_cmds \
28175 extract_expsyms_cmds \
28176 old_archive_from_new_cmds \
28177 old_archive_from_expsyms_cmds \
28178 archive_cmds \
28179 archive_expsym_cmds \
28180 module_cmds \
28181 module_expsym_cmds \
28182 export_symbols_cmds \
28183 prelink_cmds \
28184 postlink_cmds \
28185 postinstall_cmds \
28186 postuninstall_cmds \
28187 finish_cmds \
28188 sys_lib_search_path_spec \
28189 sys_lib_dlsearch_path_spec \
28190 reload_cmds_CXX \
28191 old_archive_cmds_CXX \
28192 old_archive_from_new_cmds_CXX \
28193 old_archive_from_expsyms_cmds_CXX \
28194 archive_cmds_CXX \
28195 archive_expsym_cmds_CXX \
28196 module_cmds_CXX \
28197 module_expsym_cmds_CXX \
28198 export_symbols_cmds_CXX \
28199 prelink_cmds_CXX \
28200 postlink_cmds_CXX; do
28201 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28202 *[\\\\\\\`\\"\\\$]*)
28203 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28206 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28208 esac
28209 done
28211 ac_aux_dir='$ac_aux_dir'
28212 xsi_shell='$xsi_shell'
28213 lt_shell_append='$lt_shell_append'
28215 # See if we are running on zsh, and set the options which allow our
28216 # commands through without removal of \ escapes INIT.
28217 if test -n "\${ZSH_VERSION+set}" ; then
28218 setopt NO_GLOB_SUBST
28222 PACKAGE='$PACKAGE'
28223 VERSION='$VERSION'
28224 TIMESTAMP='$TIMESTAMP'
28225 RM='$RM'
28226 ofile='$ofile'
28233 _ACEOF
28235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28237 # Handling of arguments.
28238 for ac_config_target in $ac_config_targets
28240 case $ac_config_target in
28241 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
28242 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28243 "mpn/$tmp_fn.$tmp_ext") CONFIG_LINKS="$CONFIG_LINKS mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext" ;;
28244 "gmp-mparam.h") CONFIG_LINKS="$CONFIG_LINKS gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h" ;;
28245 "demos/pexpr-config.h") CONFIG_FILES="$CONFIG_FILES demos/pexpr-config.h:demos/pexpr-config-h.in" ;;
28246 "demos/calc/calc-config.h") CONFIG_FILES="$CONFIG_FILES demos/calc/calc-config.h:demos/calc/calc-config-h.in" ;;
28247 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28248 "mpf/Makefile") CONFIG_FILES="$CONFIG_FILES mpf/Makefile" ;;
28249 "mpn/Makefile") CONFIG_FILES="$CONFIG_FILES mpn/Makefile" ;;
28250 "mpq/Makefile") CONFIG_FILES="$CONFIG_FILES mpq/Makefile" ;;
28251 "mpz/Makefile") CONFIG_FILES="$CONFIG_FILES mpz/Makefile" ;;
28252 "printf/Makefile") CONFIG_FILES="$CONFIG_FILES printf/Makefile" ;;
28253 "scanf/Makefile") CONFIG_FILES="$CONFIG_FILES scanf/Makefile" ;;
28254 "rand/Makefile") CONFIG_FILES="$CONFIG_FILES rand/Makefile" ;;
28255 "cxx/Makefile") CONFIG_FILES="$CONFIG_FILES cxx/Makefile" ;;
28256 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
28257 "tests/devel/Makefile") CONFIG_FILES="$CONFIG_FILES tests/devel/Makefile" ;;
28258 "tests/mpf/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpf/Makefile" ;;
28259 "tests/mpn/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpn/Makefile" ;;
28260 "tests/mpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpq/Makefile" ;;
28261 "tests/mpz/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpz/Makefile" ;;
28262 "tests/rand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rand/Makefile" ;;
28263 "tests/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
28264 "tests/cxx/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxx/Makefile" ;;
28265 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
28266 "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
28267 "demos/Makefile") CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;;
28268 "demos/calc/Makefile") CONFIG_FILES="$CONFIG_FILES demos/calc/Makefile" ;;
28269 "demos/expr/Makefile") CONFIG_FILES="$CONFIG_FILES demos/expr/Makefile" ;;
28270 "gmp.h") CONFIG_FILES="$CONFIG_FILES gmp.h:gmp-h.in" ;;
28272 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28273 esac
28274 done
28277 # If the user did not use the arguments to specify the items to instantiate,
28278 # then the envvar interface is used. Set only those that are not.
28279 # We use the long form for the default assignment because of an extremely
28280 # bizarre bug on SunOS 4.1.3.
28281 if $ac_need_defaults; then
28282 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28283 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28284 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
28285 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28288 # Have a temporary directory for convenience. Make it in the build tree
28289 # simply because there is no reason against having it here, and in addition,
28290 # creating and moving files from /tmp can sometimes cause problems.
28291 # Hook for its removal unless debugging.
28292 # Note that there is a small window in which the directory will not be cleaned:
28293 # after its creation but before its name has been assigned to `$tmp'.
28294 $debug ||
28296 tmp= ac_tmp=
28297 trap 'exit_status=$?
28298 : "${ac_tmp:=$tmp}"
28299 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28301 trap 'as_fn_exit 1' 1 2 13 15
28303 # Create a (secure) tmp directory for tmp files.
28306 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28307 test -d "$tmp"
28308 } ||
28310 tmp=./conf$$-$RANDOM
28311 (umask 077 && mkdir "$tmp")
28312 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28313 ac_tmp=$tmp
28315 # Set up the scripts for CONFIG_FILES section.
28316 # No need to generate them if there are no CONFIG_FILES.
28317 # This happens for instance with `./config.status config.h'.
28318 if test -n "$CONFIG_FILES"; then
28321 ac_cr=`echo X | tr X '\015'`
28322 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28323 # But we know of no other shell where ac_cr would be empty at this
28324 # point, so we can use a bashism as a fallback.
28325 if test "x$ac_cr" = x; then
28326 eval ac_cr=\$\'\\r\'
28328 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28329 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28330 ac_cs_awk_cr='\\r'
28331 else
28332 ac_cs_awk_cr=$ac_cr
28335 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28336 _ACEOF
28340 echo "cat >conf$$subs.awk <<_ACEOF" &&
28341 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28342 echo "_ACEOF"
28343 } >conf$$subs.sh ||
28344 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28345 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28346 ac_delim='%!_!# '
28347 for ac_last_try in false false false false false :; do
28348 . ./conf$$subs.sh ||
28349 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28351 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28352 if test $ac_delim_n = $ac_delim_num; then
28353 break
28354 elif $ac_last_try; then
28355 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28356 else
28357 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28359 done
28360 rm -f conf$$subs.sh
28362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28363 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28364 _ACEOF
28365 sed -n '
28367 s/^/S["/; s/!.*/"]=/
28370 s/^[^!]*!//
28371 :repl
28372 t repl
28373 s/'"$ac_delim"'$//
28374 t delim
28377 s/\(.\{148\}\)..*/\1/
28378 t more1
28379 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28382 b repl
28383 :more1
28384 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28387 s/.\{148\}//
28388 t nl
28389 :delim
28391 s/\(.\{148\}\)..*/\1/
28392 t more2
28393 s/["\\]/\\&/g; s/^/"/; s/$/"/
28396 :more2
28397 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28400 s/.\{148\}//
28401 t delim
28402 ' <conf$$subs.awk | sed '
28403 /^[^""]/{
28405 s/\n//
28407 ' >>$CONFIG_STATUS || ac_write_fail=1
28408 rm -f conf$$subs.awk
28409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28410 _ACAWK
28411 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28412 for (key in S) S_is_set[key] = 1
28413 FS = "\a"
28417 line = $ 0
28418 nfields = split(line, field, "@")
28419 substed = 0
28420 len = length(field[1])
28421 for (i = 2; i < nfields; i++) {
28422 key = field[i]
28423 keylen = length(key)
28424 if (S_is_set[key]) {
28425 value = S[key]
28426 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28427 len += length(value) + length(field[++i])
28428 substed = 1
28429 } else
28430 len += 1 + keylen
28433 print line
28436 _ACAWK
28437 _ACEOF
28438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28439 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28440 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28441 else
28443 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28444 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28445 _ACEOF
28447 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28448 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28449 # trailing colons and then remove the whole line if VPATH becomes empty
28450 # (actually we leave an empty line to preserve line numbers).
28451 if test "x$srcdir" = x.; then
28452 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
28454 s///
28455 s/^/:/
28456 s/[ ]*$/:/
28457 s/:\$(srcdir):/:/g
28458 s/:\${srcdir}:/:/g
28459 s/:@srcdir@:/:/g
28460 s/^:*//
28461 s/:*$//
28463 s/\(=[ ]*\).*/\1/
28465 s/\n//
28466 s/^[^=]*=[ ]*$//
28470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28471 fi # test -n "$CONFIG_FILES"
28473 # Set up the scripts for CONFIG_HEADERS section.
28474 # No need to generate them if there are no CONFIG_HEADERS.
28475 # This happens for instance with `./config.status Makefile'.
28476 if test -n "$CONFIG_HEADERS"; then
28477 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28478 BEGIN {
28479 _ACEOF
28481 # Transform confdefs.h into an awk script `defines.awk', embedded as
28482 # here-document in config.status, that substitutes the proper values into
28483 # config.h.in to produce config.h.
28485 # Create a delimiter string that does not exist in confdefs.h, to ease
28486 # handling of long lines.
28487 ac_delim='%!_!# '
28488 for ac_last_try in false false :; do
28489 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28490 if test -z "$ac_tt"; then
28491 break
28492 elif $ac_last_try; then
28493 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28494 else
28495 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28497 done
28499 # For the awk script, D is an array of macro values keyed by name,
28500 # likewise P contains macro parameters if any. Preserve backslash
28501 # newline sequences.
28503 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28504 sed -n '
28505 s/.\{148\}/&'"$ac_delim"'/g
28506 t rset
28507 :rset
28508 s/^[ ]*#[ ]*define[ ][ ]*/ /
28509 t def
28511 :def
28512 s/\\$//
28513 t bsnl
28514 s/["\\]/\\&/g
28515 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28516 D["\1"]=" \3"/p
28517 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28519 :bsnl
28520 s/["\\]/\\&/g
28521 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28522 D["\1"]=" \3\\\\\\n"\\/p
28523 t cont
28524 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28525 t cont
28527 :cont
28529 s/.\{148\}/&'"$ac_delim"'/g
28530 t clear
28531 :clear
28532 s/\\$//
28533 t bsnlc
28534 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28536 :bsnlc
28537 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28538 b cont
28539 ' <confdefs.h | sed '
28540 s/'"$ac_delim"'/"\\\
28541 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28544 for (key in D) D_is_set[key] = 1
28545 FS = "\a"
28547 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28548 line = \$ 0
28549 split(line, arg, " ")
28550 if (arg[1] == "#") {
28551 defundef = arg[2]
28552 mac1 = arg[3]
28553 } else {
28554 defundef = substr(arg[1], 2)
28555 mac1 = arg[2]
28557 split(mac1, mac2, "(") #)
28558 macro = mac2[1]
28559 prefix = substr(line, 1, index(line, defundef) - 1)
28560 if (D_is_set[macro]) {
28561 # Preserve the white space surrounding the "#".
28562 print prefix "define", macro P[macro] D[macro]
28563 next
28564 } else {
28565 # Replace #undef with comments. This is necessary, for example,
28566 # in the case of _POSIX_SOURCE, which is predefined and required
28567 # on some systems where configure will not decide to define it.
28568 if (defundef == "undef") {
28569 print "/*", prefix defundef, macro, "*/"
28570 next
28574 { print }
28575 _ACAWK
28576 _ACEOF
28577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28578 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28579 fi # test -n "$CONFIG_HEADERS"
28582 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
28583 shift
28584 for ac_tag
28586 case $ac_tag in
28587 :[FHLC]) ac_mode=$ac_tag; continue;;
28588 esac
28589 case $ac_mode$ac_tag in
28590 :[FHL]*:*);;
28591 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28592 :[FH]-) ac_tag=-:-;;
28593 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28594 esac
28595 ac_save_IFS=$IFS
28596 IFS=:
28597 set x $ac_tag
28598 IFS=$ac_save_IFS
28599 shift
28600 ac_file=$1
28601 shift
28603 case $ac_mode in
28604 :L) ac_source=$1;;
28605 :[FH])
28606 ac_file_inputs=
28607 for ac_f
28609 case $ac_f in
28610 -) ac_f="$ac_tmp/stdin";;
28611 *) # Look for the file first in the build tree, then in the source tree
28612 # (if the path is not absolute). The absolute path cannot be DOS-style,
28613 # because $ac_f cannot contain `:'.
28614 test -f "$ac_f" ||
28615 case $ac_f in
28616 [\\/$]*) false;;
28617 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28618 esac ||
28619 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28620 esac
28621 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28622 as_fn_append ac_file_inputs " '$ac_f'"
28623 done
28625 # Let's still pretend it is `configure' which instantiates (i.e., don't
28626 # use $as_me), people would be surprised to read:
28627 # /* config.h. Generated by config.status. */
28628 configure_input='Generated from '`
28629 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28630 `' by configure.'
28631 if test x"$ac_file" != x-; then
28632 configure_input="$ac_file. $configure_input"
28633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28634 $as_echo "$as_me: creating $ac_file" >&6;}
28636 # Neutralize special characters interpreted by sed in replacement strings.
28637 case $configure_input in #(
28638 *\&* | *\|* | *\\* )
28639 ac_sed_conf_input=`$as_echo "$configure_input" |
28640 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28641 *) ac_sed_conf_input=$configure_input;;
28642 esac
28644 case $ac_tag in
28645 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28646 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28647 esac
28649 esac
28651 ac_dir=`$as_dirname -- "$ac_file" ||
28652 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28653 X"$ac_file" : 'X\(//\)[^/]' \| \
28654 X"$ac_file" : 'X\(//\)$' \| \
28655 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28656 $as_echo X"$ac_file" |
28657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28658 s//\1/
28661 /^X\(\/\/\)[^/].*/{
28662 s//\1/
28665 /^X\(\/\/\)$/{
28666 s//\1/
28669 /^X\(\/\).*/{
28670 s//\1/
28673 s/.*/./; q'`
28674 as_dir="$ac_dir"; as_fn_mkdir_p
28675 ac_builddir=.
28677 case "$ac_dir" in
28678 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28680 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28681 # A ".." for each directory in $ac_dir_suffix.
28682 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28683 case $ac_top_builddir_sub in
28684 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28685 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28686 esac ;;
28687 esac
28688 ac_abs_top_builddir=$ac_pwd
28689 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28690 # for backward compatibility:
28691 ac_top_builddir=$ac_top_build_prefix
28693 case $srcdir in
28694 .) # We are building in place.
28695 ac_srcdir=.
28696 ac_top_srcdir=$ac_top_builddir_sub
28697 ac_abs_top_srcdir=$ac_pwd ;;
28698 [\\/]* | ?:[\\/]* ) # Absolute name.
28699 ac_srcdir=$srcdir$ac_dir_suffix;
28700 ac_top_srcdir=$srcdir
28701 ac_abs_top_srcdir=$srcdir ;;
28702 *) # Relative name.
28703 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28704 ac_top_srcdir=$ac_top_build_prefix$srcdir
28705 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28706 esac
28707 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28710 case $ac_mode in
28713 # CONFIG_FILE
28716 case $INSTALL in
28717 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28718 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28719 esac
28720 ac_MKDIR_P=$MKDIR_P
28721 case $MKDIR_P in
28722 [\\/$]* | ?:[\\/]* ) ;;
28723 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28724 esac
28725 _ACEOF
28727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28728 # If the template does not know about datarootdir, expand it.
28729 # FIXME: This hack should be removed a few years after 2.60.
28730 ac_datarootdir_hack=; ac_datarootdir_seen=
28731 ac_sed_dataroot='
28732 /datarootdir/ {
28736 /@datadir@/p
28737 /@docdir@/p
28738 /@infodir@/p
28739 /@localedir@/p
28740 /@mandir@/p'
28741 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28742 *datarootdir*) ac_datarootdir_seen=yes;;
28743 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28745 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28746 _ACEOF
28747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28748 ac_datarootdir_hack='
28749 s&@datadir@&$datadir&g
28750 s&@docdir@&$docdir&g
28751 s&@infodir@&$infodir&g
28752 s&@localedir@&$localedir&g
28753 s&@mandir@&$mandir&g
28754 s&\\\${datarootdir}&$datarootdir&g' ;;
28755 esac
28756 _ACEOF
28758 # Neutralize VPATH when `$srcdir' = `.'.
28759 # Shell code in configure.ac might set extrasub.
28760 # FIXME: do we really want to maintain this feature?
28761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28762 ac_sed_extra="$ac_vpsub
28763 $extrasub
28764 _ACEOF
28765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28767 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28768 s|@configure_input@|$ac_sed_conf_input|;t t
28769 s&@top_builddir@&$ac_top_builddir_sub&;t t
28770 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28771 s&@srcdir@&$ac_srcdir&;t t
28772 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28773 s&@top_srcdir@&$ac_top_srcdir&;t t
28774 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28775 s&@builddir@&$ac_builddir&;t t
28776 s&@abs_builddir@&$ac_abs_builddir&;t t
28777 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28778 s&@INSTALL@&$ac_INSTALL&;t t
28779 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28780 $ac_datarootdir_hack
28782 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28783 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28785 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28786 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28787 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28788 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28790 which seems to be undefined. Please make sure it is defined" >&5
28791 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28792 which seems to be undefined. Please make sure it is defined" >&2;}
28794 rm -f "$ac_tmp/stdin"
28795 case $ac_file in
28796 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28797 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28798 esac \
28799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28803 # CONFIG_HEADER
28805 if test x"$ac_file" != x-; then
28807 $as_echo "/* $configure_input */" \
28808 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28809 } >"$ac_tmp/config.h" \
28810 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28811 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28812 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28813 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28814 else
28815 rm -f "$ac_file"
28816 mv "$ac_tmp/config.h" "$ac_file" \
28817 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28819 else
28820 $as_echo "/* $configure_input */" \
28821 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28822 || as_fn_error $? "could not create -" "$LINENO" 5
28824 # Compute "$ac_file"'s index in $config_headers.
28825 _am_arg="$ac_file"
28826 _am_stamp_count=1
28827 for _am_header in $config_headers :; do
28828 case $_am_header in
28829 $_am_arg | $_am_arg:* )
28830 break ;;
28832 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28833 esac
28834 done
28835 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28836 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28837 X"$_am_arg" : 'X\(//\)[^/]' \| \
28838 X"$_am_arg" : 'X\(//\)$' \| \
28839 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28840 $as_echo X"$_am_arg" |
28841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28842 s//\1/
28845 /^X\(\/\/\)[^/].*/{
28846 s//\1/
28849 /^X\(\/\/\)$/{
28850 s//\1/
28853 /^X\(\/\).*/{
28854 s//\1/
28857 s/.*/./; q'`/stamp-h$_am_stamp_count
28861 # CONFIG_LINK
28864 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
28866 else
28867 # Prefer the file from the source tree if names are identical.
28868 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
28869 ac_source=$srcdir/$ac_source
28872 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
28873 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
28875 if test ! -r "$ac_source"; then
28876 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
28878 rm -f "$ac_file"
28880 # Try a relative symlink, then a hard link, then a copy.
28881 case $ac_source in
28882 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
28883 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
28884 esac
28885 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
28886 ln "$ac_source" "$ac_file" 2>/dev/null ||
28887 cp -p "$ac_source" "$ac_file" ||
28888 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
28891 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28892 $as_echo "$as_me: executing $ac_file commands" >&6;}
28894 esac
28897 case $ac_file$ac_mode in
28898 "libtool":C)
28900 # See if we are running on zsh, and set the options which allow our
28901 # commands through without removal of \ escapes.
28902 if test -n "${ZSH_VERSION+set}" ; then
28903 setopt NO_GLOB_SUBST
28906 cfgfile="${ofile}T"
28907 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28908 $RM "$cfgfile"
28910 cat <<_LT_EOF >> "$cfgfile"
28911 #! $SHELL
28913 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28914 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28915 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28916 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28918 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28919 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
28920 # Foundation, Inc.
28921 # Written by Gordon Matzigkeit, 1996
28923 # This file is part of GNU Libtool.
28925 # GNU Libtool is free software; you can redistribute it and/or
28926 # modify it under the terms of the GNU General Public License as
28927 # published by the Free Software Foundation; either version 2 of
28928 # the License, or (at your option) any later version.
28930 # As a special exception to the GNU General Public License,
28931 # if you distribute this file as part of a program or library that
28932 # is built using GNU Libtool, you may include this file under the
28933 # same distribution terms that you use for the rest of that program.
28935 # GNU Libtool is distributed in the hope that it will be useful,
28936 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28937 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28938 # GNU General Public License for more details.
28940 # You should have received a copy of the GNU General Public License
28941 # along with GNU Libtool; see the file COPYING. If not, a copy
28942 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28943 # obtained by writing to the Free Software Foundation, Inc.,
28944 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28947 # The names of the tagged configurations supported by this script.
28948 available_tags="CXX "
28950 # ### BEGIN LIBTOOL CONFIG
28952 # A BSD- or MS-compatible name lister.
28953 NM=$lt_NM
28955 # Assembler program.
28956 AS=$lt_AS
28958 # DLL creation program.
28959 DLLTOOL=$lt_DLLTOOL
28961 # Object dumper program.
28962 OBJDUMP=$lt_OBJDUMP
28964 # Which release of libtool.m4 was used?
28965 macro_version=$macro_version
28966 macro_revision=$macro_revision
28968 # Whether or not to build shared libraries.
28969 build_libtool_libs=$enable_shared
28971 # Whether or not to build static libraries.
28972 build_old_libs=$enable_static
28974 # What type of objects to build.
28975 pic_mode=$pic_mode
28977 # Whether or not to optimize for fast installation.
28978 fast_install=$enable_fast_install
28980 # Shell to use when invoking shell scripts.
28981 SHELL=$lt_SHELL
28983 # An echo program that protects backslashes.
28984 ECHO=$lt_ECHO
28986 # The PATH separator for the build system.
28987 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28989 # The host system.
28990 host_alias=$host_alias
28991 host=$host
28992 host_os=$host_os
28994 # The build system.
28995 build_alias=$build_alias
28996 build=$build
28997 build_os=$build_os
28999 # A sed program that does not truncate output.
29000 SED=$lt_SED
29002 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
29003 Xsed="\$SED -e 1s/^X//"
29005 # A grep program that handles long lines.
29006 GREP=$lt_GREP
29008 # An ERE matcher.
29009 EGREP=$lt_EGREP
29011 # A literal string matcher.
29012 FGREP=$lt_FGREP
29014 # Whether we need soft or hard links.
29015 LN_S=$lt_LN_S
29017 # What is the maximum length of a command?
29018 max_cmd_len=$max_cmd_len
29020 # Object file suffix (normally "o").
29021 objext=$ac_objext
29023 # Executable file suffix (normally "").
29024 exeext=$exeext
29026 # whether the shell understands "unset".
29027 lt_unset=$lt_unset
29029 # turn spaces into newlines.
29030 SP2NL=$lt_lt_SP2NL
29032 # turn newlines into spaces.
29033 NL2SP=$lt_lt_NL2SP
29035 # convert \$build file names to \$host format.
29036 to_host_file_cmd=$lt_cv_to_host_file_cmd
29038 # convert \$build files to toolchain format.
29039 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
29041 # Method to check whether dependent libraries are shared objects.
29042 deplibs_check_method=$lt_deplibs_check_method
29044 # Command to use when deplibs_check_method = "file_magic".
29045 file_magic_cmd=$lt_file_magic_cmd
29047 # How to find potential files when deplibs_check_method = "file_magic".
29048 file_magic_glob=$lt_file_magic_glob
29050 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
29051 want_nocaseglob=$lt_want_nocaseglob
29053 # Command to associate shared and link libraries.
29054 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
29056 # The archiver.
29057 AR=$lt_AR
29059 # Flags to create an archive.
29060 AR_FLAGS=$lt_AR_FLAGS
29062 # How to feed a file listing to the archiver.
29063 archiver_list_spec=$lt_archiver_list_spec
29065 # A symbol stripping program.
29066 STRIP=$lt_STRIP
29068 # Commands used to install an old-style archive.
29069 RANLIB=$lt_RANLIB
29070 old_postinstall_cmds=$lt_old_postinstall_cmds
29071 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29073 # Whether to use a lock for old archive extraction.
29074 lock_old_archive_extraction=$lock_old_archive_extraction
29076 # A C compiler.
29077 LTCC=$lt_CC
29079 # LTCC compiler flags.
29080 LTCFLAGS=$lt_CFLAGS
29082 # Take the output of nm and produce a listing of raw symbols and C names.
29083 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29085 # Transform the output of nm in a proper C declaration.
29086 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29088 # Transform the output of nm in a C name address pair.
29089 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29091 # Transform the output of nm in a C name address pair when lib prefix is needed.
29092 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29094 # Specify filename containing input files for \$NM.
29095 nm_file_list_spec=$lt_nm_file_list_spec
29097 # The root where to search for dependent libraries,and in which our libraries should be installed.
29098 lt_sysroot=$lt_sysroot
29100 # The name of the directory that contains temporary libtool files.
29101 objdir=$objdir
29103 # Used to examine libraries when file_magic_cmd begins with "file".
29104 MAGIC_CMD=$MAGIC_CMD
29106 # Must we lock files when doing compilation?
29107 need_locks=$lt_need_locks
29109 # Manifest tool.
29110 MANIFEST_TOOL=$lt_MANIFEST_TOOL
29112 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29113 DSYMUTIL=$lt_DSYMUTIL
29115 # Tool to change global to local symbols on Mac OS X.
29116 NMEDIT=$lt_NMEDIT
29118 # Tool to manipulate fat objects and archives on Mac OS X.
29119 LIPO=$lt_LIPO
29121 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29122 OTOOL=$lt_OTOOL
29124 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29125 OTOOL64=$lt_OTOOL64
29127 # Old archive suffix (normally "a").
29128 libext=$libext
29130 # Shared library suffix (normally ".so").
29131 shrext_cmds=$lt_shrext_cmds
29133 # The commands to extract the exported symbol list from a shared archive.
29134 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29136 # Variables whose values should be saved in libtool wrapper scripts and
29137 # restored at link time.
29138 variables_saved_for_relink=$lt_variables_saved_for_relink
29140 # Do we need the "lib" prefix for modules?
29141 need_lib_prefix=$need_lib_prefix
29143 # Do we need a version for libraries?
29144 need_version=$need_version
29146 # Library versioning type.
29147 version_type=$version_type
29149 # Shared library runtime path variable.
29150 runpath_var=$runpath_var
29152 # Shared library path variable.
29153 shlibpath_var=$shlibpath_var
29155 # Is shlibpath searched before the hard-coded library search path?
29156 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29158 # Format of library name prefix.
29159 libname_spec=$lt_libname_spec
29161 # List of archive names. First name is the real one, the rest are links.
29162 # The last name is the one that the linker finds with -lNAME
29163 library_names_spec=$lt_library_names_spec
29165 # The coded name of the library, if different from the real name.
29166 soname_spec=$lt_soname_spec
29168 # Permission mode override for installation of shared libraries.
29169 install_override_mode=$lt_install_override_mode
29171 # Command to use after installation of a shared archive.
29172 postinstall_cmds=$lt_postinstall_cmds
29174 # Command to use after uninstallation of a shared archive.
29175 postuninstall_cmds=$lt_postuninstall_cmds
29177 # Commands used to finish a libtool library installation in a directory.
29178 finish_cmds=$lt_finish_cmds
29180 # As "finish_cmds", except a single script fragment to be evaled but
29181 # not shown.
29182 finish_eval=$lt_finish_eval
29184 # Whether we should hardcode library paths into libraries.
29185 hardcode_into_libs=$hardcode_into_libs
29187 # Compile-time system search path for libraries.
29188 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29190 # Run-time system search path for libraries.
29191 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29193 # Whether dlopen is supported.
29194 dlopen_support=$enable_dlopen
29196 # Whether dlopen of programs is supported.
29197 dlopen_self=$enable_dlopen_self
29199 # Whether dlopen of statically linked programs is supported.
29200 dlopen_self_static=$enable_dlopen_self_static
29202 # Commands to strip libraries.
29203 old_striplib=$lt_old_striplib
29204 striplib=$lt_striplib
29207 # The linker used to build libraries.
29208 LD=$lt_LD
29210 # How to create reloadable object files.
29211 reload_flag=$lt_reload_flag
29212 reload_cmds=$lt_reload_cmds
29214 # Commands used to build an old-style archive.
29215 old_archive_cmds=$lt_old_archive_cmds
29217 # A language specific compiler.
29218 CC=$lt_compiler
29220 # Is the compiler the GNU compiler?
29221 with_gcc=$GCC
29223 # Compiler flag to turn off builtin functions.
29224 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29226 # Additional compiler flags for building library objects.
29227 pic_flag=$lt_lt_prog_compiler_pic
29229 # How to pass a linker flag through the compiler.
29230 wl=$lt_lt_prog_compiler_wl
29232 # Compiler flag to prevent dynamic linking.
29233 link_static_flag=$lt_lt_prog_compiler_static
29235 # Does compiler simultaneously support -c and -o options?
29236 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29238 # Whether or not to add -lc for building shared libraries.
29239 build_libtool_need_lc=$archive_cmds_need_lc
29241 # Whether or not to disallow shared libs when runtime libs are static.
29242 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29244 # Compiler flag to allow reflexive dlopens.
29245 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29247 # Compiler flag to generate shared objects directly from archives.
29248 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29250 # Whether the compiler copes with passing no objects directly.
29251 compiler_needs_object=$lt_compiler_needs_object
29253 # Create an old-style archive from a shared archive.
29254 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29256 # Create a temporary old-style archive to link instead of a shared archive.
29257 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29259 # Commands used to build a shared archive.
29260 archive_cmds=$lt_archive_cmds
29261 archive_expsym_cmds=$lt_archive_expsym_cmds
29263 # Commands used to build a loadable module if different from building
29264 # a shared archive.
29265 module_cmds=$lt_module_cmds
29266 module_expsym_cmds=$lt_module_expsym_cmds
29268 # Whether we are building with GNU ld or not.
29269 with_gnu_ld=$lt_with_gnu_ld
29271 # Flag that allows shared libraries with undefined symbols to be built.
29272 allow_undefined_flag=$lt_allow_undefined_flag
29274 # Flag that enforces no undefined symbols.
29275 no_undefined_flag=$lt_no_undefined_flag
29277 # Flag to hardcode \$libdir into a binary during linking.
29278 # This must work even if \$libdir does not exist
29279 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29281 # Whether we need a single "-rpath" flag with a separated argument.
29282 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29284 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29285 # DIR into the resulting binary.
29286 hardcode_direct=$hardcode_direct
29288 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29289 # DIR into the resulting binary and the resulting library dependency is
29290 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29291 # library is relocated.
29292 hardcode_direct_absolute=$hardcode_direct_absolute
29294 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29295 # into the resulting binary.
29296 hardcode_minus_L=$hardcode_minus_L
29298 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29299 # into the resulting binary.
29300 hardcode_shlibpath_var=$hardcode_shlibpath_var
29302 # Set to "yes" if building a shared library automatically hardcodes DIR
29303 # into the library and all subsequent libraries and executables linked
29304 # against it.
29305 hardcode_automatic=$hardcode_automatic
29307 # Set to yes if linker adds runtime paths of dependent libraries
29308 # to runtime path list.
29309 inherit_rpath=$inherit_rpath
29311 # Whether libtool must link a program against all its dependency libraries.
29312 link_all_deplibs=$link_all_deplibs
29314 # Set to "yes" if exported symbols are required.
29315 always_export_symbols=$always_export_symbols
29317 # The commands to list exported symbols.
29318 export_symbols_cmds=$lt_export_symbols_cmds
29320 # Symbols that should not be listed in the preloaded symbols.
29321 exclude_expsyms=$lt_exclude_expsyms
29323 # Symbols that must always be exported.
29324 include_expsyms=$lt_include_expsyms
29326 # Commands necessary for linking programs (against libraries) with templates.
29327 prelink_cmds=$lt_prelink_cmds
29329 # Commands necessary for finishing linking programs.
29330 postlink_cmds=$lt_postlink_cmds
29332 # Specify filename containing input files.
29333 file_list_spec=$lt_file_list_spec
29335 # How to hardcode a shared library path into an executable.
29336 hardcode_action=$hardcode_action
29338 # The directories searched by this compiler when creating a shared library.
29339 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29341 # Dependencies to place before and after the objects being linked to
29342 # create a shared library.
29343 predep_objects=$lt_predep_objects
29344 postdep_objects=$lt_postdep_objects
29345 predeps=$lt_predeps
29346 postdeps=$lt_postdeps
29348 # The library search path used internally by the compiler when linking
29349 # a shared library.
29350 compiler_lib_search_path=$lt_compiler_lib_search_path
29352 # ### END LIBTOOL CONFIG
29354 _LT_EOF
29356 case $host_os in
29357 aix3*)
29358 cat <<\_LT_EOF >> "$cfgfile"
29359 # AIX sometimes has problems with the GCC collect2 program. For some
29360 # reason, if we set the COLLECT_NAMES environment variable, the problems
29361 # vanish in a puff of smoke.
29362 if test "X${COLLECT_NAMES+set}" != Xset; then
29363 COLLECT_NAMES=
29364 export COLLECT_NAMES
29366 _LT_EOF
29368 esac
29371 ltmain="$ac_aux_dir/ltmain.sh"
29374 # We use sed instead of cat because bash on DJGPP gets confused if
29375 # if finds mixed CR/LF and LF-only lines. Since sed operates in
29376 # text mode, it properly converts lines to CR/LF. This bash problem
29377 # is reportedly fixed, but why not run on old versions too?
29378 sed '$q' "$ltmain" >> "$cfgfile" \
29379 || (rm -f "$cfgfile"; exit 1)
29381 if test x"$xsi_shell" = xyes; then
29382 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
29383 func_dirname ()\
29385 \ case ${1} in\
29386 \ */*) func_dirname_result="${1%/*}${2}" ;;\
29387 \ * ) func_dirname_result="${3}" ;;\
29388 \ esac\
29389 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
29390 && mv -f "$cfgfile.tmp" "$cfgfile" \
29391 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29392 test 0 -eq $? || _lt_function_replace_fail=:
29395 sed -e '/^func_basename ()$/,/^} # func_basename /c\
29396 func_basename ()\
29398 \ func_basename_result="${1##*/}"\
29399 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
29400 && mv -f "$cfgfile.tmp" "$cfgfile" \
29401 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29402 test 0 -eq $? || _lt_function_replace_fail=:
29405 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
29406 func_dirname_and_basename ()\
29408 \ case ${1} in\
29409 \ */*) func_dirname_result="${1%/*}${2}" ;;\
29410 \ * ) func_dirname_result="${3}" ;;\
29411 \ esac\
29412 \ func_basename_result="${1##*/}"\
29413 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
29414 && mv -f "$cfgfile.tmp" "$cfgfile" \
29415 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29416 test 0 -eq $? || _lt_function_replace_fail=:
29419 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
29420 func_stripname ()\
29422 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
29423 \ # positional parameters, so assign one to ordinary parameter first.\
29424 \ func_stripname_result=${3}\
29425 \ func_stripname_result=${func_stripname_result#"${1}"}\
29426 \ func_stripname_result=${func_stripname_result%"${2}"}\
29427 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
29428 && mv -f "$cfgfile.tmp" "$cfgfile" \
29429 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29430 test 0 -eq $? || _lt_function_replace_fail=:
29433 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
29434 func_split_long_opt ()\
29436 \ func_split_long_opt_name=${1%%=*}\
29437 \ func_split_long_opt_arg=${1#*=}\
29438 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
29439 && mv -f "$cfgfile.tmp" "$cfgfile" \
29440 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29441 test 0 -eq $? || _lt_function_replace_fail=:
29444 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
29445 func_split_short_opt ()\
29447 \ func_split_short_opt_arg=${1#??}\
29448 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
29449 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
29450 && mv -f "$cfgfile.tmp" "$cfgfile" \
29451 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29452 test 0 -eq $? || _lt_function_replace_fail=:
29455 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
29456 func_lo2o ()\
29458 \ case ${1} in\
29459 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
29460 \ *) func_lo2o_result=${1} ;;\
29461 \ esac\
29462 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
29463 && mv -f "$cfgfile.tmp" "$cfgfile" \
29464 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29465 test 0 -eq $? || _lt_function_replace_fail=:
29468 sed -e '/^func_xform ()$/,/^} # func_xform /c\
29469 func_xform ()\
29471 func_xform_result=${1%.*}.lo\
29472 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
29473 && mv -f "$cfgfile.tmp" "$cfgfile" \
29474 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29475 test 0 -eq $? || _lt_function_replace_fail=:
29478 sed -e '/^func_arith ()$/,/^} # func_arith /c\
29479 func_arith ()\
29481 func_arith_result=$(( $* ))\
29482 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
29483 && mv -f "$cfgfile.tmp" "$cfgfile" \
29484 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29485 test 0 -eq $? || _lt_function_replace_fail=:
29488 sed -e '/^func_len ()$/,/^} # func_len /c\
29489 func_len ()\
29491 func_len_result=${#1}\
29492 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
29493 && mv -f "$cfgfile.tmp" "$cfgfile" \
29494 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29495 test 0 -eq $? || _lt_function_replace_fail=:
29499 if test x"$lt_shell_append" = xyes; then
29500 sed -e '/^func_append ()$/,/^} # func_append /c\
29501 func_append ()\
29503 eval "${1}+=\\${2}"\
29504 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
29505 && mv -f "$cfgfile.tmp" "$cfgfile" \
29506 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29507 test 0 -eq $? || _lt_function_replace_fail=:
29510 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
29511 func_append_quoted ()\
29513 \ func_quote_for_eval "${2}"\
29514 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
29515 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
29516 && mv -f "$cfgfile.tmp" "$cfgfile" \
29517 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29518 test 0 -eq $? || _lt_function_replace_fail=:
29521 # Save a `func_append' function call where possible by direct use of '+='
29522 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
29523 && mv -f "$cfgfile.tmp" "$cfgfile" \
29524 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29525 test 0 -eq $? || _lt_function_replace_fail=:
29526 else
29527 # Save a `func_append' function call even when '+=' is not available
29528 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
29529 && mv -f "$cfgfile.tmp" "$cfgfile" \
29530 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29531 test 0 -eq $? || _lt_function_replace_fail=:
29534 if test x"$_lt_function_replace_fail" = x":"; then
29535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
29536 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
29540 mv -f "$cfgfile" "$ofile" ||
29541 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29542 chmod +x "$ofile"
29545 cat <<_LT_EOF >> "$ofile"
29547 # ### BEGIN LIBTOOL TAG CONFIG: CXX
29549 # The linker used to build libraries.
29550 LD=$lt_LD_CXX
29552 # How to create reloadable object files.
29553 reload_flag=$lt_reload_flag_CXX
29554 reload_cmds=$lt_reload_cmds_CXX
29556 # Commands used to build an old-style archive.
29557 old_archive_cmds=$lt_old_archive_cmds_CXX
29559 # A language specific compiler.
29560 CC=$lt_compiler_CXX
29562 # Is the compiler the GNU compiler?
29563 with_gcc=$GCC_CXX
29565 # Compiler flag to turn off builtin functions.
29566 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
29568 # Additional compiler flags for building library objects.
29569 pic_flag=$lt_lt_prog_compiler_pic_CXX
29571 # How to pass a linker flag through the compiler.
29572 wl=$lt_lt_prog_compiler_wl_CXX
29574 # Compiler flag to prevent dynamic linking.
29575 link_static_flag=$lt_lt_prog_compiler_static_CXX
29577 # Does compiler simultaneously support -c and -o options?
29578 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
29580 # Whether or not to add -lc for building shared libraries.
29581 build_libtool_need_lc=$archive_cmds_need_lc_CXX
29583 # Whether or not to disallow shared libs when runtime libs are static.
29584 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
29586 # Compiler flag to allow reflexive dlopens.
29587 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
29589 # Compiler flag to generate shared objects directly from archives.
29590 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
29592 # Whether the compiler copes with passing no objects directly.
29593 compiler_needs_object=$lt_compiler_needs_object_CXX
29595 # Create an old-style archive from a shared archive.
29596 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
29598 # Create a temporary old-style archive to link instead of a shared archive.
29599 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
29601 # Commands used to build a shared archive.
29602 archive_cmds=$lt_archive_cmds_CXX
29603 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
29605 # Commands used to build a loadable module if different from building
29606 # a shared archive.
29607 module_cmds=$lt_module_cmds_CXX
29608 module_expsym_cmds=$lt_module_expsym_cmds_CXX
29610 # Whether we are building with GNU ld or not.
29611 with_gnu_ld=$lt_with_gnu_ld_CXX
29613 # Flag that allows shared libraries with undefined symbols to be built.
29614 allow_undefined_flag=$lt_allow_undefined_flag_CXX
29616 # Flag that enforces no undefined symbols.
29617 no_undefined_flag=$lt_no_undefined_flag_CXX
29619 # Flag to hardcode \$libdir into a binary during linking.
29620 # This must work even if \$libdir does not exist
29621 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
29623 # Whether we need a single "-rpath" flag with a separated argument.
29624 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
29626 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29627 # DIR into the resulting binary.
29628 hardcode_direct=$hardcode_direct_CXX
29630 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29631 # DIR into the resulting binary and the resulting library dependency is
29632 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29633 # library is relocated.
29634 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
29636 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29637 # into the resulting binary.
29638 hardcode_minus_L=$hardcode_minus_L_CXX
29640 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29641 # into the resulting binary.
29642 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
29644 # Set to "yes" if building a shared library automatically hardcodes DIR
29645 # into the library and all subsequent libraries and executables linked
29646 # against it.
29647 hardcode_automatic=$hardcode_automatic_CXX
29649 # Set to yes if linker adds runtime paths of dependent libraries
29650 # to runtime path list.
29651 inherit_rpath=$inherit_rpath_CXX
29653 # Whether libtool must link a program against all its dependency libraries.
29654 link_all_deplibs=$link_all_deplibs_CXX
29656 # Set to "yes" if exported symbols are required.
29657 always_export_symbols=$always_export_symbols_CXX
29659 # The commands to list exported symbols.
29660 export_symbols_cmds=$lt_export_symbols_cmds_CXX
29662 # Symbols that should not be listed in the preloaded symbols.
29663 exclude_expsyms=$lt_exclude_expsyms_CXX
29665 # Symbols that must always be exported.
29666 include_expsyms=$lt_include_expsyms_CXX
29668 # Commands necessary for linking programs (against libraries) with templates.
29669 prelink_cmds=$lt_prelink_cmds_CXX
29671 # Commands necessary for finishing linking programs.
29672 postlink_cmds=$lt_postlink_cmds_CXX
29674 # Specify filename containing input files.
29675 file_list_spec=$lt_file_list_spec_CXX
29677 # How to hardcode a shared library path into an executable.
29678 hardcode_action=$hardcode_action_CXX
29680 # The directories searched by this compiler when creating a shared library.
29681 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
29683 # Dependencies to place before and after the objects being linked to
29684 # create a shared library.
29685 predep_objects=$lt_predep_objects_CXX
29686 postdep_objects=$lt_postdep_objects_CXX
29687 predeps=$lt_predeps_CXX
29688 postdeps=$lt_postdeps_CXX
29690 # The library search path used internally by the compiler when linking
29691 # a shared library.
29692 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
29694 # ### END LIBTOOL TAG CONFIG: CXX
29695 _LT_EOF
29699 esac
29700 done # for ac_tag
29703 as_fn_exit 0
29704 _ACEOF
29705 ac_clean_files=$ac_clean_files_save
29707 test $ac_write_fail = 0 ||
29708 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29711 # configure is writing to config.log, and then calls config.status.
29712 # config.status does its own redirection, appending to config.log.
29713 # Unfortunately, on DOS this fails, as config.log is still kept open
29714 # by configure, so config.status won't be able to write to it; its
29715 # output is simply discarded. So we exec the FD to /dev/null,
29716 # effectively closing config.log, so it can be properly (re)opened and
29717 # appended to by config.status. When coming back to configure, we
29718 # need to make the FD available again.
29719 if test "$no_create" != yes; then
29720 ac_cs_success=:
29721 ac_config_status_args=
29722 test "$silent" = yes &&
29723 ac_config_status_args="$ac_config_status_args --quiet"
29724 exec 5>/dev/null
29725 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29726 exec 5>>config.log
29727 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29728 # would make configure fail if this is the last instruction.
29729 $ac_cs_success || as_fn_exit 1
29731 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29733 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29737 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
29739 Version: ${PACKAGE_STRING}
29740 Host type: ${host}
29741 ABI: ${ABI}
29742 Install prefix: ${prefix}
29743 Compiler: ${CC}
29744 Static libraries: ${enable_static}
29745 Shared libraries: ${enable_shared}
29746 " >&5
29747 $as_echo "$as_me: summary of build options:
29749 Version: ${PACKAGE_STRING}
29750 Host type: ${host}
29751 ABI: ${ABI}
29752 Install prefix: ${prefix}
29753 Compiler: ${CC}
29754 Static libraries: ${enable_static}
29755 Shared libraries: ${enable_shared}
29756 " >&6;}
29758 if test x$cross_compiling = xyes ; then
29759 case "$host" in
29760 *-*-mingw* | *-*-cygwin)
29761 if test x$ABI = x64 ; then
29762 { $as_echo "$as_me:${as_lineno-$LINENO}: If wine64 is installed, use make check TESTS_ENVIRONMENT=wine64." >&5
29763 $as_echo "$as_me: If wine64 is installed, use make check TESTS_ENVIRONMENT=wine64." >&6;}
29764 else
29765 { $as_echo "$as_me:${as_lineno-$LINENO}: If wine is installed, use make check TESTS_ENVIRONMENT=wine." >&5
29766 $as_echo "$as_me: If wine is installed, use make check TESTS_ENVIRONMENT=wine." >&6;}
29769 esac