configure revision 1.5 1 #! /bin/sh
2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for GNU MP 5.1.3.
5 #
6 # Report bugs to <gmp-bugs (at] gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html>.
7 #
8 #
9 #
10 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
11 # 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
12 #
13 # This file is part of the GNU MP Library.
14 #
15 # The GNU MP Library is free software; you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License as published
17 # by the Free Software Foundation; either version 3 of the License, or (at
18 # your option) any later version.
19 #
20 # The GNU MP Library is distributed in the hope that it will be useful, but
21 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
22 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
23 # License for more details.
24 #
25 # You should have received a copy of the GNU Lesser General Public License
26 # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
27 #
28 #
29 #
30 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
31 #
32 #
33 # This configure script is free software; the Free Software Foundation
34 # gives unlimited permission to copy, distribute and modify it.
35 ## -------------------- ##
36 ## M4sh Initialization. ##
37 ## -------------------- ##
38
39 # Be more Bourne compatible
40 DUALCASE=1; export DUALCASE # for MKS sh
41 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42 emulate sh
43 NULLCMD=:
44 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
45 # is contrary to our usage. Disable this feature.
46 alias -g '${1+"$@"}'='"$@"'
47 setopt NO_GLOB_SUBST
48 else
49 case `(set -o) 2>/dev/null` in #(
50 *posix*) :
51 set -o posix ;; #(
52 *) :
53 ;;
54 esac
55 fi
56
57
58 as_nl='
59 '
60 export as_nl
61 # Printing a long string crashes Solaris 7 /usr/bin/printf.
62 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
63 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
64 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
65 # Prefer a ksh shell builtin over an external printf program on Solaris,
66 # but without wasting forks for bash or zsh.
67 if test -z "$BASH_VERSION$ZSH_VERSION" \
68 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
69 as_echo='print -r --'
70 as_echo_n='print -rn --'
71 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
72 as_echo='printf %s\n'
73 as_echo_n='printf %s'
74 else
75 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
76 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
77 as_echo_n='/usr/ucb/echo -n'
78 else
79 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
80 as_echo_n_body='eval
81 arg=$1;
82 case $arg in #(
83 *"$as_nl"*)
84 expr "X$arg" : "X\\(.*\\)$as_nl";
85 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
86 esac;
87 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
88 '
89 export as_echo_n_body
90 as_echo_n='sh -c $as_echo_n_body as_echo'
91 fi
92 export as_echo_body
93 as_echo='sh -c $as_echo_body as_echo'
94 fi
95
96 # The user is always right.
97 if test "${PATH_SEPARATOR+set}" != set; then
98 PATH_SEPARATOR=:
99 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
100 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
101 PATH_SEPARATOR=';'
102 }
103 fi
104
105
106 # IFS
107 # We need space, tab and new line, in precisely that order. Quoting is
108 # there to prevent editors from complaining about space-tab.
109 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
110 # splitting by setting IFS to empty value.)
111 IFS=" "" $as_nl"
112
113 # Find who we are. Look in the path if we contain no directory separator.
114 as_myself=
115 case $0 in #((
116 *[\\/]* ) as_myself=$0 ;;
117 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118 for as_dir in $PATH
119 do
120 IFS=$as_save_IFS
121 test -z "$as_dir" && as_dir=.
122 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 done
124 IFS=$as_save_IFS
125
126 ;;
127 esac
128 # We did not find ourselves, most probably we were run as `sh COMMAND'
129 # in which case we are not to be found in the path.
130 if test "x$as_myself" = x; then
131 as_myself=$0
132 fi
133 if test ! -f "$as_myself"; then
134 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
135 exit 1
136 fi
137
138 # Unset variables that we do not need and which cause bugs (e.g. in
139 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
140 # suppresses any "Segmentation fault" message there. '((' could
141 # trigger a bug in pdksh 5.2.14.
142 for as_var in BASH_ENV ENV MAIL MAILPATH
143 do eval test x\${$as_var+set} = xset \
144 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
145 done
146 PS1='$ '
147 PS2='> '
148 PS4='+ '
149
150 # NLS nuisances.
151 LC_ALL=C
152 export LC_ALL
153 LANGUAGE=C
154 export LANGUAGE
155
156 # CDPATH.
157 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
158
159 # Use a proper internal environment variable to ensure we don't fall
160 # into an infinite loop, continuously re-executing ourselves.
161 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
162 _as_can_reexec=no; export _as_can_reexec;
163 # We cannot yet assume a decent shell, so we have to provide a
164 # neutralization value for shells without unset; and this also
165 # works around shells that cannot unset nonexistent variables.
166 # Preserve -v and -x to the replacement shell.
167 BASH_ENV=/dev/null
168 ENV=/dev/null
169 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
170 case $- in # ((((
171 *v*x* | *x*v* ) as_opts=-vx ;;
172 *v* ) as_opts=-v ;;
173 *x* ) as_opts=-x ;;
174 * ) as_opts= ;;
175 esac
176 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
177 # Admittedly, this is quite paranoid, since all the known shells bail
178 # out after a failed `exec'.
179 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
180 as_fn_exit 255
181 fi
182 # We don't want this to propagate to other subprocesses.
183 { _as_can_reexec=; unset _as_can_reexec;}
184 if test "x$CONFIG_SHELL" = x; then
185 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
186 emulate sh
187 NULLCMD=:
188 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
189 # is contrary to our usage. Disable this feature.
190 alias -g '\${1+\"\$@\"}'='\"\$@\"'
191 setopt NO_GLOB_SUBST
192 else
193 case \`(set -o) 2>/dev/null\` in #(
194 *posix*) :
195 set -o posix ;; #(
196 *) :
197 ;;
198 esac
199 fi
200 "
201 as_required="as_fn_return () { (exit \$1); }
202 as_fn_success () { as_fn_return 0; }
203 as_fn_failure () { as_fn_return 1; }
204 as_fn_ret_success () { return 0; }
205 as_fn_ret_failure () { return 1; }
206
207 exitcode=0
208 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
209 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
210 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
211 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
212 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
213
214 else
215 exitcode=1; echo positional parameters were not saved.
216 fi
217 test x\$exitcode = x0 || exit 1
218 test -x / || exit 1"
219 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
220 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
221 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
222 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
223 test \$(( 1 + 1 )) = 2 || exit 1
224
225 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
226 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
227 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
228 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
229 PATH=/empty FPATH=/empty; export PATH FPATH
230 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
231 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
232 if (eval "$as_required") 2>/dev/null; then :
233 as_have_required=yes
234 else
235 as_have_required=no
236 fi
237 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
238
239 else
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 as_found=false
242 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 do
244 IFS=$as_save_IFS
245 test -z "$as_dir" && as_dir=.
246 as_found=:
247 case $as_dir in #(
248 /*)
249 for as_base in sh bash ksh sh5; do
250 # Try only shells that exist, to save several forks.
251 as_shell=$as_dir/$as_base
252 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
253 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
254 CONFIG_SHELL=$as_shell as_have_required=yes
255 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
256 break 2
257 fi
258 fi
259 done;;
260 esac
261 as_found=false
262 done
263 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
264 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
265 CONFIG_SHELL=$SHELL as_have_required=yes
266 fi; }
267 IFS=$as_save_IFS
268
269
270 if test "x$CONFIG_SHELL" != x; then :
271 export CONFIG_SHELL
272 # We cannot yet assume a decent shell, so we have to provide a
273 # neutralization value for shells without unset; and this also
274 # works around shells that cannot unset nonexistent variables.
275 # Preserve -v and -x to the replacement shell.
276 BASH_ENV=/dev/null
277 ENV=/dev/null
278 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
279 case $- in # ((((
280 *v*x* | *x*v* ) as_opts=-vx ;;
281 *v* ) as_opts=-v ;;
282 *x* ) as_opts=-x ;;
283 * ) as_opts= ;;
284 esac
285 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
286 # Admittedly, this is quite paranoid, since all the known shells bail
287 # out after a failed `exec'.
288 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
289 exit 255
290 fi
291
292 if test x$as_have_required = xno; then :
293 $as_echo "$0: This script requires a shell more modern than all"
294 $as_echo "$0: the shells that I found on your system."
295 if test x${ZSH_VERSION+set} = xset ; then
296 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
297 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
298 else
299 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
300 $0: gmp-bugs (at] gmplib.org, see
301 $0: http://gmplib.org/manual/Reporting-Bugs.html about your
302 $0: system, including any error possibly output before this
303 $0: message. Then install a modern shell, or manually run
304 $0: the script under such a shell if you do have one."
305 fi
306 exit 1
307 fi
308 fi
309 fi
310 SHELL=${CONFIG_SHELL-/bin/sh}
311 export SHELL
312 # Unset more variables known to interfere with behavior of common tools.
313 CLICOLOR_FORCE= GREP_OPTIONS=
314 unset CLICOLOR_FORCE GREP_OPTIONS
315
316 ## --------------------- ##
317 ## M4sh Shell Functions. ##
318 ## --------------------- ##
319 # as_fn_unset VAR
320 # ---------------
321 # Portably unset VAR.
322 as_fn_unset ()
323 {
324 { eval $1=; unset $1;}
325 }
326 as_unset=as_fn_unset
327
328 # as_fn_set_status STATUS
329 # -----------------------
330 # Set $? to STATUS, without forking.
331 as_fn_set_status ()
332 {
333 return $1
334 } # as_fn_set_status
335
336 # as_fn_exit STATUS
337 # -----------------
338 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
339 as_fn_exit ()
340 {
341 set +e
342 as_fn_set_status $1
343 exit $1
344 } # as_fn_exit
345
346 # as_fn_mkdir_p
347 # -------------
348 # Create "$as_dir" as a directory, including parents if necessary.
349 as_fn_mkdir_p ()
350 {
351
352 case $as_dir in #(
353 -*) as_dir=./$as_dir;;
354 esac
355 test -d "$as_dir" || eval $as_mkdir_p || {
356 as_dirs=
357 while :; do
358 case $as_dir in #(
359 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
360 *) as_qdir=$as_dir;;
361 esac
362 as_dirs="'$as_qdir' $as_dirs"
363 as_dir=`$as_dirname -- "$as_dir" ||
364 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
365 X"$as_dir" : 'X\(//\)[^/]' \| \
366 X"$as_dir" : 'X\(//\)$' \| \
367 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
368 $as_echo X"$as_dir" |
369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
370 s//\1/
371 q
372 }
373 /^X\(\/\/\)[^/].*/{
374 s//\1/
375 q
376 }
377 /^X\(\/\/\)$/{
378 s//\1/
379 q
380 }
381 /^X\(\/\).*/{
382 s//\1/
383 q
384 }
385 s/.*/./; q'`
386 test -d "$as_dir" && break
387 done
388 test -z "$as_dirs" || eval "mkdir $as_dirs"
389 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
390
391
392 } # as_fn_mkdir_p
393
394 # as_fn_executable_p FILE
395 # -----------------------
396 # Test if FILE is an executable regular file.
397 as_fn_executable_p ()
398 {
399 test -f "$1" && test -x "$1"
400 } # as_fn_executable_p
401 # as_fn_append VAR VALUE
402 # ----------------------
403 # Append the text in VALUE to the end of the definition contained in VAR. Take
404 # advantage of any shell optimizations that allow amortized linear growth over
405 # repeated appends, instead of the typical quadratic growth present in naive
406 # implementations.
407 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
408 eval 'as_fn_append ()
409 {
410 eval $1+=\$2
411 }'
412 else
413 as_fn_append ()
414 {
415 eval $1=\$$1\$2
416 }
417 fi # as_fn_append
418
419 # as_fn_arith ARG...
420 # ------------------
421 # Perform arithmetic evaluation on the ARGs, and store the result in the
422 # global $as_val. Take advantage of shells that can avoid forks. The arguments
423 # must be portable across $(()) and expr.
424 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
425 eval 'as_fn_arith ()
426 {
427 as_val=$(( $* ))
428 }'
429 else
430 as_fn_arith ()
431 {
432 as_val=`expr "$@" || test $? -eq 1`
433 }
434 fi # as_fn_arith
435
436
437 # as_fn_error STATUS ERROR [LINENO LOG_FD]
438 # ----------------------------------------
439 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
440 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
441 # script with STATUS, using 1 if that was 0.
442 as_fn_error ()
443 {
444 as_status=$1; test $as_status -eq 0 && as_status=1
445 if test "$4"; then
446 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
447 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
448 fi
449 $as_echo "$as_me: error: $2" >&2
450 as_fn_exit $as_status
451 } # as_fn_error
452
453 if expr a : '\(a\)' >/dev/null 2>&1 &&
454 test "X`expr 00001 : '.*\(...\)'`" = X001; then
455 as_expr=expr
456 else
457 as_expr=false
458 fi
459
460 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
461 as_basename=basename
462 else
463 as_basename=false
464 fi
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 as_me=`$as_basename -- "$0" ||
473 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
474 X"$0" : 'X\(//\)$' \| \
475 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
476 $as_echo X/"$0" |
477 sed '/^.*\/\([^/][^/]*\)\/*$/{
478 s//\1/
479 q
480 }
481 /^X\/\(\/\/\)$/{
482 s//\1/
483 q
484 }
485 /^X\/\(\/\).*/{
486 s//\1/
487 q
488 }
489 s/.*/./; q'`
490
491 # Avoid depending upon Character Ranges.
492 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
493 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
494 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
495 as_cr_digits='0123456789'
496 as_cr_alnum=$as_cr_Letters$as_cr_digits
497
498
499 as_lineno_1=$LINENO as_lineno_1a=$LINENO
500 as_lineno_2=$LINENO as_lineno_2a=$LINENO
501 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
502 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
503 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
504 sed -n '
505 p
506 /[$]LINENO/=
507 ' <$as_myself |
508 sed '
509 s/[$]LINENO.*/&-/
510 t lineno
511 b
512 :lineno
513 N
514 :loop
515 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
516 t loop
517 s/-\n.*//
518 ' >$as_me.lineno &&
519 chmod +x "$as_me.lineno" ||
520 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
521
522 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
523 # already done that, so ensure we don't try to do so again and fall
524 # in an infinite loop. This has already happened in practice.
525 _as_can_reexec=no; export _as_can_reexec
526 # Don't try to exec as it changes $[0], causing all sort of problems
527 # (the dirname of $[0] is not the place where we might find the
528 # original and so on. Autoconf is especially sensitive to this).
529 . "./$as_me.lineno"
530 # Exit status is that of the last command.
531 exit
532 }
533
534 ECHO_C= ECHO_N= ECHO_T=
535 case `echo -n x` in #(((((
536 -n*)
537 case `echo 'xy\c'` in
538 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
539 xy) ECHO_C='\c';;
540 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
541 ECHO_T=' ';;
542 esac;;
543 *)
544 ECHO_N='-n';;
545 esac
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560 # In both cases, we have to default to `cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
567 fi
568 else
569 as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
586
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
589
590 SHELL=${CONFIG_SHELL-/bin/sh}
591
592
593 test -n "$DJDIR" || exec 7<&0 </dev/null
594 exec 6>&1
595
596 # Name of the host.
597 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
598 # so uname gets run too.
599 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
600
601 #
602 # Initializations.
603 #
604 ac_default_prefix=/usr/local
605 ac_clean_files=
606 ac_config_libobj_dir=.
607 LIBOBJS=
608 cross_compiling=no
609 subdirs=
610 MFLAGS=
611 MAKEFLAGS=
612
613 # Identity of this package.
614 PACKAGE_NAME='GNU MP'
615 PACKAGE_TARNAME='gmp'
616 PACKAGE_VERSION='5.1.3'
617 PACKAGE_STRING='GNU MP 5.1.3'
618 PACKAGE_BUGREPORT='gmp-bugs (at] gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html'
619 PACKAGE_URL='http://www.gnu.org/software/gmp/'
620
621 ac_unique_file="gmp-impl.h"
622 # Factoring default headers for most tests.
623 ac_includes_default="\
624 #include <stdio.h>
625 #ifdef HAVE_SYS_TYPES_H
626 # include <sys/types.h>
627 #endif
628 #ifdef HAVE_SYS_STAT_H
629 # include <sys/stat.h>
630 #endif
631 #ifdef STDC_HEADERS
632 # include <stdlib.h>
633 # include <stddef.h>
634 #else
635 # ifdef HAVE_STDLIB_H
636 # include <stdlib.h>
637 # endif
638 #endif
639 #ifdef HAVE_STRING_H
640 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
641 # include <memory.h>
642 # endif
643 # include <string.h>
644 #endif
645 #ifdef HAVE_STRINGS_H
646 # include <strings.h>
647 #endif
648 #ifdef HAVE_INTTYPES_H
649 # include <inttypes.h>
650 #endif
651 #ifdef HAVE_STDINT_H
652 # include <stdint.h>
653 #endif
654 #ifdef HAVE_UNISTD_H
655 # include <unistd.h>
656 #endif"
657
658 ac_subst_vars='am__EXEEXT_FALSE
659 am__EXEEXT_TRUE
660 LTLIBOBJS
661 LIBOBJS
662 LEXLIB
663 LEX_OUTPUT_ROOT
664 LEX
665 YFLAGS
666 YACC
667 LIBREADLINE
668 WITH_READLINE_01
669 LIBCURSES
670 HAVE_STACK_T_01
671 HAVE_SYS_RESOURCE_H_01
672 HAVE_SIGSTACK_01
673 HAVE_SIGALTSTACK_01
674 HAVE_SIGACTION_01
675 HAVE_GETTIMEOFDAY_01
676 HAVE_GETRUSAGE_01
677 HAVE_CPUTIME_01
678 HAVE_CLOCK_01
679 TUNE_SQR_OBJ
680 gmp_srclinks
681 mpn_objs_in_libgmp
682 mpn_objects
683 GMP_LIMB_BITS
684 M4
685 TUNE_LIBS
686 TAL_OBJECT
687 LIBM
688 ENABLE_STATIC_FALSE
689 ENABLE_STATIC_TRUE
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 MANIFEST_TOOL
696 RANLIB
697 ac_ct_AR
698 LN_S
699 LD
700 FGREP
701 SED
702 LIBTOOL
703 LIBGMP_DLL
704 OBJDUMP
705 DLLTOOL
706 AS
707 NM
708 ac_ct_DUMPBIN
709 DUMPBIN
710 AR
711 ASMFLAGS
712 EGREP
713 GREP
714 CXXCPP
715 WANT_CXX_FALSE
716 WANT_CXX_TRUE
717 ac_ct_CXX
718 CXXFLAGS
719 CXX
720 CCAS
721 LIBM_FOR_BUILD
722 U_FOR_BUILD
723 EXEEXT_FOR_BUILD
724 CPP_FOR_BUILD
725 CC_FOR_BUILD
726 CPP
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
733 CC
734 DEFN_LONG_LONG_LIMB
735 CALLING_CONVENTIONS_OBJS
736 SPEED_CYCLECOUNTER_OBJ
737 LIBGMPXX_LDFLAGS
738 LIBGMP_LDFLAGS
739 GMP_LDFLAGS
740 HAVE_HOST_CPU_FAMILY_powerpc
741 HAVE_HOST_CPU_FAMILY_power
742 ABI
743 GMP_NAIL_BITS
744 MAINT
745 MAINTAINER_MODE_FALSE
746 MAINTAINER_MODE_TRUE
747 am__untar
748 am__tar
749 AMTAR
750 am__leading_dot
751 SET_MAKE
752 AWK
753 mkdir_p
754 MKDIR_P
755 INSTALL_STRIP_PROGRAM
756 STRIP
757 install_sh
758 MAKEINFO
759 AUTOHEADER
760 AUTOMAKE
761 AUTOCONF
762 ACLOCAL
763 VERSION
764 PACKAGE
765 CYGPATH_W
766 am__isrc
767 INSTALL_DATA
768 INSTALL_SCRIPT
769 INSTALL_PROGRAM
770 host_os
771 host_vendor
772 host_cpu
773 host
774 build_os
775 build_vendor
776 build_cpu
777 build
778 target_alias
779 host_alias
780 build_alias
781 LIBS
782 ECHO_T
783 ECHO_N
784 ECHO_C
785 DEFS
786 mandir
787 localedir
788 libdir
789 psdir
790 pdfdir
791 dvidir
792 htmldir
793 infodir
794 docdir
795 oldincludedir
796 includedir
797 localstatedir
798 sharedstatedir
799 sysconfdir
800 datadir
801 datarootdir
802 libexecdir
803 sbindir
804 bindir
805 program_transform_name
806 prefix
807 exec_prefix
808 PACKAGE_URL
809 PACKAGE_BUGREPORT
810 PACKAGE_STRING
811 PACKAGE_VERSION
812 PACKAGE_TARNAME
813 PACKAGE_NAME
814 PATH_SEPARATOR
815 SHELL'
816 ac_subst_files=''
817 ac_user_opts='
818 enable_option_checking
819 enable_maintainer_mode
820 enable_assert
821 enable_alloca
822 enable_cxx
823 enable_assembly
824 enable_fft
825 enable_old_fft_full
826 enable_nails
827 enable_profiling
828 with_readline
829 enable_fat
830 enable_minithres
831 enable_shared
832 enable_static
833 with_pic
834 enable_fast_install
835 with_gnu_ld
836 with_sysroot
837 enable_libtool_lock
838 '
839 ac_precious_vars='build_alias
840 host_alias
841 target_alias
842 ABI
843 CC
844 CFLAGS
845 LDFLAGS
846 LIBS
847 CPPFLAGS
848 CPP
849 CC_FOR_BUILD
850 CPP_FOR_BUILD
851 CXX
852 CXXFLAGS
853 CCC
854 CXXCPP
855 M4
856 YACC
857 YFLAGS'
858
859
860 # Initialize some variables set by options.
861 ac_init_help=
862 ac_init_version=false
863 ac_unrecognized_opts=
864 ac_unrecognized_sep=
865 # The variables have the same names as the options, with
866 # dashes changed to underlines.
867 cache_file=/dev/null
868 exec_prefix=NONE
869 no_create=
870 no_recursion=
871 prefix=NONE
872 program_prefix=NONE
873 program_suffix=NONE
874 program_transform_name=s,x,x,
875 silent=
876 site=
877 srcdir=
878 verbose=
879 x_includes=NONE
880 x_libraries=NONE
881
882 # Installation directory options.
883 # These are left unexpanded so users can "make install exec_prefix=/foo"
884 # and all the variables that are supposed to be based on exec_prefix
885 # by default will actually change.
886 # Use braces instead of parens because sh, perl, etc. also accept them.
887 # (The list follows the same order as the GNU Coding Standards.)
888 bindir='${exec_prefix}/bin'
889 sbindir='${exec_prefix}/sbin'
890 libexecdir='${exec_prefix}/libexec'
891 datarootdir='${prefix}/share'
892 datadir='${datarootdir}'
893 sysconfdir='${prefix}/etc'
894 sharedstatedir='${prefix}/com'
895 localstatedir='${prefix}/var'
896 includedir='${prefix}/include'
897 oldincludedir='/usr/include'
898 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899 infodir='${datarootdir}/info'
900 htmldir='${docdir}'
901 dvidir='${docdir}'
902 pdfdir='${docdir}'
903 psdir='${docdir}'
904 libdir='${exec_prefix}/lib'
905 localedir='${datarootdir}/locale'
906 mandir='${datarootdir}/man'
907
908 ac_prev=
909 ac_dashdash=
910 for ac_option
911 do
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
915 ac_prev=
916 continue
917 fi
918
919 case $ac_option in
920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 *=) ac_optarg= ;;
922 *) ac_optarg=yes ;;
923 esac
924
925 # Accept the important Cygnus configure options, so we can diagnose typos.
926
927 case $ac_dashdash$ac_option in
928 --)
929 ac_dashdash=yes ;;
930
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 ac_prev=bindir ;;
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934 bindir=$ac_optarg ;;
935
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
940
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
947
948 --config-cache | -C)
949 cache_file=config.cache ;;
950
951 -datadir | --datadir | --datadi | --datad)
952 ac_prev=datadir ;;
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
955
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
962
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=no ;;
978
979 -docdir | --docdir | --docdi | --doc | --do)
980 ac_prev=docdir ;;
981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982 docdir=$ac_optarg ;;
983
984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985 ac_prev=dvidir ;;
986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987 dvidir=$ac_optarg ;;
988
989 -enable-* | --enable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998 "enable_$ac_useropt"
999 "*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1004
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1013
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1016 with_gas=yes ;;
1017
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1024
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1029
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031 ac_prev=htmldir ;;
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033 | --ht=*)
1034 htmldir=$ac_optarg ;;
1035
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1042
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1044 ac_prev=infodir ;;
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1047
1048 -libdir | --libdir | --libdi | --libd)
1049 ac_prev=libdir ;;
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1052
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1059
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1064
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1071
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073 ac_prev=mandir ;;
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1076
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1079 with_fp=no ;;
1080
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1083 no_create=yes ;;
1084
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087 no_recursion=yes ;;
1088
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1097
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099 ac_prev=prefix ;;
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1102
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1109
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1116
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1133
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135 ac_prev=pdfdir ;;
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1138
1139 -psdir | --psdir | --psdi | --psd | --ps)
1140 ac_prev=psdir ;;
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142 psdir=$ac_optarg ;;
1143
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1146 silent=yes ;;
1147
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149 ac_prev=sbindir ;;
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151 | --sbi=* | --sb=*)
1152 sbindir=$ac_optarg ;;
1153
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1157 | --sha | --sh)
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162 | --sha=* | --sh=*)
1163 sharedstatedir=$ac_optarg ;;
1164
1165 -site | --site | --sit)
1166 ac_prev=site ;;
1167 -site=* | --site=* | --sit=*)
1168 site=$ac_optarg ;;
1169
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171 ac_prev=srcdir ;;
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1174
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1181
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1186
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 verbose=yes ;;
1189
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1192
1193 -with-* | --with-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=\$ac_optarg ;;
1208
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=no ;;
1224
1225 --x)
1226 # Obsolete; use --with-x.
1227 with_x=yes ;;
1228
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1235
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1242
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1245 ;;
1246
1247 *=*)
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253 esac
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1256
1257 *)
1258 # FIXME: should be removed in autoconf 3.0.
1259 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263 ;;
1264
1265 esac
1266 done
1267
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1271 fi
1272
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1275 no) ;;
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278 esac
1279 fi
1280
1281 # Check all directory arguments for consistency.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1286 do
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1289 case $ac_val in
1290 */ )
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1293 esac
1294 # Be sure to have absolute directory names.
1295 case $ac_val in
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 esac
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300 done
1301
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1308
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 elif test "x$build_alias" != "x$host_alias"; then
1314 cross_compiling=yes
1315 fi
1316 fi
1317
1318 ac_tool_prefix=
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321 test "$silent" = yes && exec 6>/dev/null
1322
1323
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 as_fn_error $? "working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 as_fn_error $? "pwd does not report name of working directory"
1330
1331
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 $as_echo X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)[^/].*/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\).*/{
1355 s//\1/
1356 q
1357 }
1358 s/.*/./; q'`
1359 srcdir=$ac_confdir
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 srcdir=..
1362 fi
1363 else
1364 ac_srcdir_defaulted=no
1365 fi
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369 fi
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 ac_abs_confdir=`(
1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373 pwd)`
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1377 fi
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1381 case $srcdir in
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 esac
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 done
1390
1391 #
1392 # Report the --help message.
1393 #
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
1398 \`configure' configures GNU MP 5.1.3 to adapt to many kinds of systems.
1399
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1404
1405 Defaults for the options are specified in brackets.
1406
1407 Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking ...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1423
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1428
1429 For better control, use the options below.
1430
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/gmp]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451 _ACEOF
1452
1453 cat <<\_ACEOF
1454
1455 Program names:
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459
1460 System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463 _ACEOF
1464 fi
1465
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of GNU MP 5.1.3:";;
1469 esac
1470 cat <<\_ACEOF
1471
1472 Optional Features:
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --enable-maintainer-mode enable make rules and dependencies not useful
1477 (and sometimes confusing) to the casual installer
1478 --enable-assert enable ASSERT checking [[default=no]]
1479 --enable-alloca how to get temp memory [[default=reentrant]]
1480 --enable-cxx enable C++ support [[default=no]]
1481 --enable-assembly enable the use of assembly loops [[default=yes]]
1482 --enable-fft enable FFTs for multiplication [[default=yes]]
1483 --enable-old-fft-full enable old mpn_mul_fft_full for multiplication
1484 [[default=no]]
1485 --enable-nails use nails on limbs [[default=no]]
1486 --enable-profiling build with profiler support [[default=no]]
1487 --enable-fat build a fat binary on systems that support it
1488 [[default=no]]
1489 --enable-minithres choose minimal thresholds for testing [[default=no]]
1490 --enable-shared[=PKGS] build shared libraries [default=yes]
1491 --enable-static[=PKGS] build static libraries [default=yes]
1492 --enable-fast-install[=PKGS]
1493 optimize for fast installation [default=yes]
1494 --disable-libtool-lock avoid locking (might break parallel builds)
1495
1496 Optional Packages:
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --with-readline readline support in calc demo program
1500 [[default=detect]]
1501 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1502 both]
1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1504 --with-sysroot=DIR Search for dependent libraries within DIR
1505 (or the compiler's sysroot if not specified).
1506
1507 Some influential environment variables:
1508 ABI desired ABI (for processors supporting more than one ABI)
1509 CC C compiler command
1510 CFLAGS C compiler flags
1511 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1512 nonstandard directory <lib dir>
1513 LIBS libraries to pass to the linker, e.g. -l<library>
1514 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1515 you have headers in a nonstandard directory <include dir>
1516 CPP C preprocessor
1517 CC_FOR_BUILD
1518 build system C compiler
1519 CPP_FOR_BUILD
1520 build system C preprocessor
1521 CXX C++ compiler command
1522 CXXFLAGS C++ compiler flags
1523 CXXCPP C++ preprocessor
1524 M4 m4 macro processor
1525 YACC The `Yet Another Compiler Compiler' implementation to use.
1526 Defaults to the first program found out of: `bison -y', `byacc',
1527 `yacc'.
1528 YFLAGS The list of arguments that will be passed by default to $YACC.
1529 This script will default YFLAGS to the empty string to avoid a
1530 default value of `-d' given by some make applications.
1531
1532 Use these variables to override the choices made by `configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1534
1535 Report bugs to <gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html>.
1536 GNU MP home page: <http://www.gnu.org/software/gmp/>.
1537 General help using GNU software: <http://www.gnu.org/gethelp/>.
1538 _ACEOF
1539 ac_status=$?
1540 fi
1541
1542 if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545 test -d "$ac_dir" ||
1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547 continue
1548 ac_builddir=.
1549
1550 case "$ac_dir" in
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *)
1553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559 esac ;;
1560 esac
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1565
1566 case $srcdir in
1567 .) # We are building in place.
1568 ac_srcdir=.
1569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
1572 ac_srcdir=$srcdir$ac_dir_suffix;
1573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1575 *) # Relative name.
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579 esac
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581
1582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for guested configure.
1584 if test -f "$ac_srcdir/configure.gnu"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587 elif test -f "$ac_srcdir/configure"; then
1588 echo &&
1589 $SHELL "$ac_srcdir/configure" --help=recursive
1590 else
1591 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592 fi || ac_status=$?
1593 cd "$ac_pwd" || { ac_status=$?; break; }
1594 done
1595 fi
1596
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1599 cat <<\_ACEOF
1600 GNU MP configure 5.1.3
1601 generated by GNU Autoconf 2.69
1602
1603 Copyright (C) 2012 Free Software Foundation, Inc.
1604 This configure script is free software; the Free Software Foundation
1605 gives unlimited permission to copy, distribute and modify it.
1606
1607
1608
1609 Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
1610 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
1611
1612 This file is part of the GNU MP Library.
1613
1614 The GNU MP Library is free software; you can redistribute it and/or modify
1615 it under the terms of the GNU Lesser General Public License as published
1616 by the Free Software Foundation; either version 3 of the License, or (at
1617 your option) any later version.
1618
1619 The GNU MP Library is distributed in the hope that it will be useful, but
1620 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1621 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
1622 License for more details.
1623
1624 You should have received a copy of the GNU Lesser General Public License
1625 along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
1626
1627 _ACEOF
1628 exit
1629 fi
1630
1631 ## ------------------------ ##
1632 ## Autoconf initialization. ##
1633 ## ------------------------ ##
1634
1635 # ac_fn_c_try_compile LINENO
1636 # --------------------------
1637 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1638 ac_fn_c_try_compile ()
1639 {
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 rm -f conftest.$ac_objext
1642 if { { ac_try="$ac_compile"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_compile") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1655 fi
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } && {
1658 test -z "$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 } && test -s conftest.$ac_objext; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=1
1667 fi
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 as_fn_set_status $ac_retval
1670
1671 } # ac_fn_c_try_compile
1672
1673 # ac_fn_c_try_cpp LINENO
1674 # ----------------------
1675 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_cpp ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if { { ac_try="$ac_cpp conftest.$ac_ext"
1680 case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1687 ac_status=$?
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1692 fi
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } > conftest.i && {
1695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 }; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 ac_retval=1
1704 fi
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1707
1708 } # ac_fn_c_try_cpp
1709
1710 # ac_fn_cxx_try_compile LINENO
1711 # ----------------------------
1712 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_cxx_try_compile ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 rm -f conftest.$ac_objext
1717 if { { ac_try="$ac_compile"
1718 case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_compile") 2>conftest.err
1725 ac_status=$?
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1730 fi
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && {
1733 test -z "$ac_cxx_werror_flag" ||
1734 test ! -s conftest.err
1735 } && test -s conftest.$ac_objext; then :
1736 ac_retval=0
1737 else
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741 ac_retval=1
1742 fi
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1745
1746 } # ac_fn_cxx_try_compile
1747
1748 # ac_fn_cxx_try_cpp LINENO
1749 # ------------------------
1750 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_cxx_try_cpp ()
1752 {
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 if { { ac_try="$ac_cpp conftest.$ac_ext"
1755 case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1762 ac_status=$?
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1767 fi
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } > conftest.i && {
1770 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1771 test ! -s conftest.err
1772 }; then :
1773 ac_retval=0
1774 else
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1777
1778 ac_retval=1
1779 fi
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1782
1783 } # ac_fn_cxx_try_cpp
1784
1785 # ac_fn_c_try_link LINENO
1786 # -----------------------
1787 # Try to link conftest.$ac_ext, and return whether this succeeded.
1788 ac_fn_c_try_link ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 rm -f conftest.$ac_objext conftest$ac_exeext
1792 if { { ac_try="$ac_link"
1793 case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_link") 2>conftest.err
1800 ac_status=$?
1801 if test -s conftest.err; then
1802 grep -v '^ *+' conftest.err >conftest.er1
1803 cat conftest.er1 >&5
1804 mv -f conftest.er1 conftest.err
1805 fi
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && {
1808 test -z "$ac_c_werror_flag" ||
1809 test ! -s conftest.err
1810 } && test -s conftest$ac_exeext && {
1811 test "$cross_compiling" = yes ||
1812 test -x conftest$ac_exeext
1813 }; then :
1814 ac_retval=0
1815 else
1816 $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1818
1819 ac_retval=1
1820 fi
1821 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1822 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1823 # interfere with the next link command; also delete a directory that is
1824 # left behind by Apple's compiler. We do this before executing the actions.
1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
1828
1829 } # ac_fn_c_try_link
1830
1831 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1832 # -------------------------------------------------------
1833 # Tests whether HEADER exists and can be compiled using the include files in
1834 # INCLUDES, setting the cache variable VAR accordingly.
1835 ac_fn_c_check_header_compile ()
1836 {
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if eval \${$3+:} false; then :
1841 $as_echo_n "(cached) " >&6
1842 else
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1845 $4
1846 #include <$2>
1847 _ACEOF
1848 if ac_fn_c_try_compile "$LINENO"; then :
1849 eval "$3=yes"
1850 else
1851 eval "$3=no"
1852 fi
1853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854 fi
1855 eval ac_res=\$$3
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859
1860 } # ac_fn_c_check_header_compile
1861
1862 # ac_fn_c_try_run LINENO
1863 # ----------------------
1864 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1865 # that executables *can* be run.
1866 ac_fn_c_try_run ()
1867 {
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 if { { ac_try="$ac_link"
1870 case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_link") 2>&5
1877 ac_status=$?
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1880 { { case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1883 esac
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_try") 2>&5
1887 ac_status=$?
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; }; }; then :
1890 ac_retval=0
1891 else
1892 $as_echo "$as_me: program exited with status $ac_status" >&5
1893 $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1895
1896 ac_retval=$ac_status
1897 fi
1898 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 as_fn_set_status $ac_retval
1901
1902 } # ac_fn_c_try_run
1903
1904 # ac_fn_c_check_func LINENO FUNC VAR
1905 # ----------------------------------
1906 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1907 ac_fn_c_check_func ()
1908 {
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval \${$3+:} false; then :
1913 $as_echo_n "(cached) " >&6
1914 else
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1917 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1919 #define $2 innocuous_$2
1920
1921 /* System header to define __stub macros and hopefully few prototypes,
1922 which can conflict with char $2 (); below.
1923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1924 <limits.h> exists even on freestanding compilers. */
1925
1926 #ifdef __STDC__
1927 # include <limits.h>
1928 #else
1929 # include <assert.h>
1930 #endif
1931
1932 #undef $2
1933
1934 /* Override any GCC internal prototype to avoid an error.
1935 Use char because int might match the return type of a GCC
1936 builtin and then its argument prototype would still apply. */
1937 #ifdef __cplusplus
1938 extern "C"
1939 #endif
1940 char $2 ();
1941 /* The GNU C library defines this for functions which it implements
1942 to always fail with ENOSYS. Some functions are actually named
1943 something starting with __ and the normal name is an alias. */
1944 #if defined __stub_$2 || defined __stub___$2
1945 choke me
1946 #endif
1947
1948 int
1949 main ()
1950 {
1951 return $2 ();
1952 ;
1953 return 0;
1954 }
1955 _ACEOF
1956 if ac_fn_c_try_link "$LINENO"; then :
1957 eval "$3=yes"
1958 else
1959 eval "$3=no"
1960 fi
1961 rm -f core conftest.err conftest.$ac_objext \
1962 conftest$ac_exeext conftest.$ac_ext
1963 fi
1964 eval ac_res=\$$3
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968
1969 } # ac_fn_c_check_func
1970
1971 # ac_fn_cxx_try_link LINENO
1972 # -------------------------
1973 # Try to link conftest.$ac_ext, and return whether this succeeded.
1974 ac_fn_cxx_try_link ()
1975 {
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977 rm -f conftest.$ac_objext conftest$ac_exeext
1978 if { { ac_try="$ac_link"
1979 case "(($ac_try" in
1980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1981 *) ac_try_echo=$ac_try;;
1982 esac
1983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984 $as_echo "$ac_try_echo"; } >&5
1985 (eval "$ac_link") 2>conftest.err
1986 ac_status=$?
1987 if test -s conftest.err; then
1988 grep -v '^ *+' conftest.err >conftest.er1
1989 cat conftest.er1 >&5
1990 mv -f conftest.er1 conftest.err
1991 fi
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; } && {
1994 test -z "$ac_cxx_werror_flag" ||
1995 test ! -s conftest.err
1996 } && test -s conftest$ac_exeext && {
1997 test "$cross_compiling" = yes ||
1998 test -x conftest$ac_exeext
1999 }; then :
2000 ac_retval=0
2001 else
2002 $as_echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.$ac_ext >&5
2004
2005 ac_retval=1
2006 fi
2007 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2008 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2009 # interfere with the next link command; also delete a directory that is
2010 # left behind by Apple's compiler. We do this before executing the actions.
2011 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 as_fn_set_status $ac_retval
2014
2015 } # ac_fn_cxx_try_link
2016
2017 # ac_fn_f77_try_link LINENO
2018 # -------------------------
2019 # Try to link conftest.$ac_ext, and return whether this succeeded.
2020 ac_fn_f77_try_link ()
2021 {
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 rm -f conftest.$ac_objext conftest$ac_exeext
2024 if { { ac_try="$ac_link"
2025 case "(($ac_try" in
2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2028 esac
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_link") 2>conftest.err
2032 ac_status=$?
2033 if test -s conftest.err; then
2034 grep -v '^ *+' conftest.err >conftest.er1
2035 cat conftest.er1 >&5
2036 mv -f conftest.er1 conftest.err
2037 fi
2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; } && {
2040 test -z "$ac_f77_werror_flag" ||
2041 test ! -s conftest.err
2042 } && test -s conftest$ac_exeext && {
2043 test "$cross_compiling" = yes ||
2044 test -x conftest$ac_exeext
2045 }; then :
2046 ac_retval=0
2047 else
2048 $as_echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2050
2051 ac_retval=1
2052 fi
2053 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2054 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2055 # interfere with the next link command; also delete a directory that is
2056 # left behind by Apple's compiler. We do this before executing the actions.
2057 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059 as_fn_set_status $ac_retval
2060
2061 } # ac_fn_f77_try_link
2062
2063 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2064 # -------------------------------------------------------
2065 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2066 # the include files in INCLUDES and setting the cache variable VAR
2067 # accordingly.
2068 ac_fn_c_check_header_mongrel ()
2069 {
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 if eval \${$3+:} false; then :
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 $as_echo_n "checking for $2... " >&6; }
2074 if eval \${$3+:} false; then :
2075 $as_echo_n "(cached) " >&6
2076 fi
2077 eval ac_res=\$$3
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2080 else
2081 # Is the header compilable?
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2083 $as_echo_n "checking $2 usability... " >&6; }
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2086 $4
2087 #include <$2>
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 ac_header_compiler=yes
2091 else
2092 ac_header_compiler=no
2093 fi
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2096 $as_echo "$ac_header_compiler" >&6; }
2097
2098 # Is the header present?
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2100 $as_echo_n "checking $2 presence... " >&6; }
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2103 #include <$2>
2104 _ACEOF
2105 if ac_fn_c_try_cpp "$LINENO"; then :
2106 ac_header_preproc=yes
2107 else
2108 ac_header_preproc=no
2109 fi
2110 rm -f conftest.err conftest.i conftest.$ac_ext
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2112 $as_echo "$ac_header_preproc" >&6; }
2113
2114 # So? What about this header?
2115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2116 yes:no: )
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2118 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2120 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2121 ;;
2122 no:yes:* )
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2124 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2126 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2128 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2130 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2132 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2133 ( $as_echo "## ssssssssssssssssssssssssssssssssss ##
2134 ## Report this to gmp-bugs (at] gmplib.org ##
2135 ## ssssssssssssssssssssssssssssssssss ##"
2136 ) | sed "s/^/$as_me: WARNING: /" >&2
2137 ;;
2138 esac
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2140 $as_echo_n "checking for $2... " >&6; }
2141 if eval \${$3+:} false; then :
2142 $as_echo_n "(cached) " >&6
2143 else
2144 eval "$3=\$ac_header_compiler"
2145 fi
2146 eval ac_res=\$$3
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148 $as_echo "$ac_res" >&6; }
2149 fi
2150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151
2152 } # ac_fn_c_check_header_mongrel
2153
2154 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2155 # ---------------------------------------------
2156 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2157 # accordingly.
2158 ac_fn_c_check_decl ()
2159 {
2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161 as_decl_name=`echo $2|sed 's/ *(.*//'`
2162 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2164 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2165 if eval \${$3+:} false; then :
2166 $as_echo_n "(cached) " >&6
2167 else
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2170 $4
2171 int
2172 main ()
2173 {
2174 #ifndef $as_decl_name
2175 #ifdef __cplusplus
2176 (void) $as_decl_use;
2177 #else
2178 (void) $as_decl_name;
2179 #endif
2180 #endif
2181
2182 ;
2183 return 0;
2184 }
2185 _ACEOF
2186 if ac_fn_c_try_compile "$LINENO"; then :
2187 eval "$3=yes"
2188 else
2189 eval "$3=no"
2190 fi
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 fi
2193 eval ac_res=\$$3
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195 $as_echo "$ac_res" >&6; }
2196 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197
2198 } # ac_fn_c_check_decl
2199
2200 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2201 # -------------------------------------------
2202 # Tests whether TYPE exists after having included INCLUDES, setting cache
2203 # variable VAR accordingly.
2204 ac_fn_c_check_type ()
2205 {
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2208 $as_echo_n "checking for $2... " >&6; }
2209 if eval \${$3+:} false; then :
2210 $as_echo_n "(cached) " >&6
2211 else
2212 eval "$3=no"
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2215 $4
2216 int
2217 main ()
2218 {
2219 if (sizeof ($2))
2220 return 0;
2221 ;
2222 return 0;
2223 }
2224 _ACEOF
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2228 $4
2229 int
2230 main ()
2231 {
2232 if (sizeof (($2)))
2233 return 0;
2234 ;
2235 return 0;
2236 }
2237 _ACEOF
2238 if ac_fn_c_try_compile "$LINENO"; then :
2239
2240 else
2241 eval "$3=yes"
2242 fi
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 fi
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 fi
2247 eval ac_res=\$$3
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2249 $as_echo "$ac_res" >&6; }
2250 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251
2252 } # ac_fn_c_check_type
2253
2254 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2255 # ----------------------------------------------------
2256 # Tries to find if the field MEMBER exists in type AGGR, after including
2257 # INCLUDES, setting cache variable VAR accordingly.
2258 ac_fn_c_check_member ()
2259 {
2260 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2262 $as_echo_n "checking for $2.$3... " >&6; }
2263 if eval \${$4+:} false; then :
2264 $as_echo_n "(cached) " >&6
2265 else
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2268 $5
2269 int
2270 main ()
2271 {
2272 static $2 ac_aggr;
2273 if (ac_aggr.$3)
2274 return 0;
2275 ;
2276 return 0;
2277 }
2278 _ACEOF
2279 if ac_fn_c_try_compile "$LINENO"; then :
2280 eval "$4=yes"
2281 else
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2284 $5
2285 int
2286 main ()
2287 {
2288 static $2 ac_aggr;
2289 if (sizeof ac_aggr.$3)
2290 return 0;
2291 ;
2292 return 0;
2293 }
2294 _ACEOF
2295 if ac_fn_c_try_compile "$LINENO"; then :
2296 eval "$4=yes"
2297 else
2298 eval "$4=no"
2299 fi
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 fi
2302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 fi
2304 eval ac_res=\$$4
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2306 $as_echo "$ac_res" >&6; }
2307 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2308
2309 } # ac_fn_c_check_member
2310
2311 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2312 # ---------------------------------------------------------
2313 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2314 # the include files in INCLUDES and setting the cache variable VAR
2315 # accordingly.
2316 ac_fn_cxx_check_header_mongrel ()
2317 {
2318 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2319 if eval \${$3+:} false; then :
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2321 $as_echo_n "checking for $2... " >&6; }
2322 if eval \${$3+:} false; then :
2323 $as_echo_n "(cached) " >&6
2324 fi
2325 eval ac_res=\$$3
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2327 $as_echo "$ac_res" >&6; }
2328 else
2329 # Is the header compilable?
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2331 $as_echo_n "checking $2 usability... " >&6; }
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2334 $4
2335 #include <$2>
2336 _ACEOF
2337 if ac_fn_cxx_try_compile "$LINENO"; then :
2338 ac_header_compiler=yes
2339 else
2340 ac_header_compiler=no
2341 fi
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2344 $as_echo "$ac_header_compiler" >&6; }
2345
2346 # Is the header present?
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2348 $as_echo_n "checking $2 presence... " >&6; }
2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2351 #include <$2>
2352 _ACEOF
2353 if ac_fn_cxx_try_cpp "$LINENO"; then :
2354 ac_header_preproc=yes
2355 else
2356 ac_header_preproc=no
2357 fi
2358 rm -f conftest.err conftest.i conftest.$ac_ext
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2360 $as_echo "$ac_header_preproc" >&6; }
2361
2362 # So? What about this header?
2363 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2364 yes:no: )
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2366 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2368 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2369 ;;
2370 no:yes:* )
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2372 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2374 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2376 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2378 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2380 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2381 ( $as_echo "## ssssssssssssssssssssssssssssssssss ##
2382 ## Report this to gmp-bugs (at] gmplib.org ##
2383 ## ssssssssssssssssssssssssssssssssss ##"
2384 ) | sed "s/^/$as_me: WARNING: /" >&2
2385 ;;
2386 esac
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2388 $as_echo_n "checking for $2... " >&6; }
2389 if eval \${$3+:} false; then :
2390 $as_echo_n "(cached) " >&6
2391 else
2392 eval "$3=\$ac_header_compiler"
2393 fi
2394 eval ac_res=\$$3
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2396 $as_echo "$ac_res" >&6; }
2397 fi
2398 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2399
2400 } # ac_fn_cxx_check_header_mongrel
2401
2402 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2403 # ---------------------------------------------
2404 # Tests whether TYPE exists after having included INCLUDES, setting cache
2405 # variable VAR accordingly.
2406 ac_fn_cxx_check_type ()
2407 {
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2410 $as_echo_n "checking for $2... " >&6; }
2411 if eval \${$3+:} false; then :
2412 $as_echo_n "(cached) " >&6
2413 else
2414 eval "$3=no"
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h. */
2417 $4
2418 int
2419 main ()
2420 {
2421 if (sizeof ($2))
2422 return 0;
2423 ;
2424 return 0;
2425 }
2426 _ACEOF
2427 if ac_fn_cxx_try_compile "$LINENO"; then :
2428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h. */
2430 $4
2431 int
2432 main ()
2433 {
2434 if (sizeof (($2)))
2435 return 0;
2436 ;
2437 return 0;
2438 }
2439 _ACEOF
2440 if ac_fn_cxx_try_compile "$LINENO"; then :
2441
2442 else
2443 eval "$3=yes"
2444 fi
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 fi
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 fi
2449 eval ac_res=\$$3
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2451 $as_echo "$ac_res" >&6; }
2452 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2453
2454 } # ac_fn_cxx_check_type
2455
2456 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2457 # --------------------------------------------
2458 # Tries to find the compile-time value of EXPR in a program that includes
2459 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2460 # computed
2461 ac_fn_c_compute_int ()
2462 {
2463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2464 if test "$cross_compiling" = yes; then
2465 # Depending upon the size, compute the lo and hi bounds.
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2468 $4
2469 int
2470 main ()
2471 {
2472 static int test_array [1 - 2 * !(($2) >= 0)];
2473 test_array [0] = 0;
2474 return test_array [0];
2475
2476 ;
2477 return 0;
2478 }
2479 _ACEOF
2480 if ac_fn_c_try_compile "$LINENO"; then :
2481 ac_lo=0 ac_mid=0
2482 while :; do
2483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484 /* end confdefs.h. */
2485 $4
2486 int
2487 main ()
2488 {
2489 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2490 test_array [0] = 0;
2491 return test_array [0];
2492
2493 ;
2494 return 0;
2495 }
2496 _ACEOF
2497 if ac_fn_c_try_compile "$LINENO"; then :
2498 ac_hi=$ac_mid; break
2499 else
2500 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2501 if test $ac_lo -le $ac_mid; then
2502 ac_lo= ac_hi=
2503 break
2504 fi
2505 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2506 fi
2507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2508 done
2509 else
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2512 $4
2513 int
2514 main ()
2515 {
2516 static int test_array [1 - 2 * !(($2) < 0)];
2517 test_array [0] = 0;
2518 return test_array [0];
2519
2520 ;
2521 return 0;
2522 }
2523 _ACEOF
2524 if ac_fn_c_try_compile "$LINENO"; then :
2525 ac_hi=-1 ac_mid=-1
2526 while :; do
2527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528 /* end confdefs.h. */
2529 $4
2530 int
2531 main ()
2532 {
2533 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2534 test_array [0] = 0;
2535 return test_array [0];
2536
2537 ;
2538 return 0;
2539 }
2540 _ACEOF
2541 if ac_fn_c_try_compile "$LINENO"; then :
2542 ac_lo=$ac_mid; break
2543 else
2544 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2545 if test $ac_mid -le $ac_hi; then
2546 ac_lo= ac_hi=
2547 break
2548 fi
2549 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2550 fi
2551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552 done
2553 else
2554 ac_lo= ac_hi=
2555 fi
2556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2557 fi
2558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559 # Binary search between lo and hi bounds.
2560 while test "x$ac_lo" != "x$ac_hi"; do
2561 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h. */
2564 $4
2565 int
2566 main ()
2567 {
2568 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2569 test_array [0] = 0;
2570 return test_array [0];
2571
2572 ;
2573 return 0;
2574 }
2575 _ACEOF
2576 if ac_fn_c_try_compile "$LINENO"; then :
2577 ac_hi=$ac_mid
2578 else
2579 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2580 fi
2581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 done
2583 case $ac_lo in #((
2584 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2585 '') ac_retval=1 ;;
2586 esac
2587 else
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h. */
2590 $4
2591 static long int longval () { return $2; }
2592 static unsigned long int ulongval () { return $2; }
2593 #include <stdio.h>
2594 #include <stdlib.h>
2595 int
2596 main ()
2597 {
2598
2599 FILE *f = fopen ("conftest.val", "w");
2600 if (! f)
2601 return 1;
2602 if (($2) < 0)
2603 {
2604 long int i = longval ();
2605 if (i != ($2))
2606 return 1;
2607 fprintf (f, "%ld", i);
2608 }
2609 else
2610 {
2611 unsigned long int i = ulongval ();
2612 if (i != ($2))
2613 return 1;
2614 fprintf (f, "%lu", i);
2615 }
2616 /* Do not output a trailing newline, as this causes \r\n confusion
2617 on some platforms. */
2618 return ferror (f) || fclose (f) != 0;
2619
2620 ;
2621 return 0;
2622 }
2623 _ACEOF
2624 if ac_fn_c_try_run "$LINENO"; then :
2625 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2626 else
2627 ac_retval=1
2628 fi
2629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2630 conftest.$ac_objext conftest.beam conftest.$ac_ext
2631 rm -f conftest.val
2632
2633 fi
2634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2635 as_fn_set_status $ac_retval
2636
2637 } # ac_fn_c_compute_int
2638 cat >config.log <<_ACEOF
2639 This file contains any messages produced by compilers while
2640 running configure, to aid debugging if configure makes a mistake.
2641
2642 It was created by GNU MP $as_me 5.1.3, which was
2643 generated by GNU Autoconf 2.69. Invocation command line was
2644
2645 $ $0 $@
2646
2647 _ACEOF
2648 exec 5>>config.log
2649 {
2650 cat <<_ASUNAME
2651 ## --------- ##
2652 ## Platform. ##
2653 ## --------- ##
2654
2655 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2656 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2657 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2658 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2659 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2660
2661 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2662 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2663
2664 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2665 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2666 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2667 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2668 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2669 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2670 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2671
2672 _ASUNAME
2673
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 for as_dir in $PATH
2676 do
2677 IFS=$as_save_IFS
2678 test -z "$as_dir" && as_dir=.
2679 $as_echo "PATH: $as_dir"
2680 done
2681 IFS=$as_save_IFS
2682
2683 } >&5
2684
2685 cat >&5 <<_ACEOF
2686
2687
2688 ## ----------- ##
2689 ## Core tests. ##
2690 ## ----------- ##
2691
2692 _ACEOF
2693
2694
2695 # Keep a trace of the command line.
2696 # Strip out --no-create and --no-recursion so they do not pile up.
2697 # Strip out --silent because we don't want to record it for future runs.
2698 # Also quote any args containing shell meta-characters.
2699 # Make two passes to allow for proper duplicate-argument suppression.
2700 ac_configure_args=
2701 ac_configure_args0=
2702 ac_configure_args1=
2703 ac_must_keep_next=false
2704 for ac_pass in 1 2
2705 do
2706 for ac_arg
2707 do
2708 case $ac_arg in
2709 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2710 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2711 | -silent | --silent | --silen | --sile | --sil)
2712 continue ;;
2713 *\'*)
2714 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2715 esac
2716 case $ac_pass in
2717 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2718 2)
2719 as_fn_append ac_configure_args1 " '$ac_arg'"
2720 if test $ac_must_keep_next = true; then
2721 ac_must_keep_next=false # Got value, back to normal.
2722 else
2723 case $ac_arg in
2724 *=* | --config-cache | -C | -disable-* | --disable-* \
2725 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2726 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2727 | -with-* | --with-* | -without-* | --without-* | --x)
2728 case "$ac_configure_args0 " in
2729 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2730 esac
2731 ;;
2732 -* ) ac_must_keep_next=true ;;
2733 esac
2734 fi
2735 as_fn_append ac_configure_args " '$ac_arg'"
2736 ;;
2737 esac
2738 done
2739 done
2740 { ac_configure_args0=; unset ac_configure_args0;}
2741 { ac_configure_args1=; unset ac_configure_args1;}
2742
2743 # When interrupted or exit'd, cleanup temporary files, and complete
2744 # config.log. We remove comments because anyway the quotes in there
2745 # would cause problems or look ugly.
2746 # WARNING: Use '\'' to represent an apostrophe within the trap.
2747 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2748 trap 'exit_status=$?
2749 # Save into config.log some information that might help in debugging.
2750 {
2751 echo
2752
2753 $as_echo "## ---------------- ##
2754 ## Cache variables. ##
2755 ## ---------------- ##"
2756 echo
2757 # The following way of writing the cache mishandles newlines in values,
2758 (
2759 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2760 eval ac_val=\$$ac_var
2761 case $ac_val in #(
2762 *${as_nl}*)
2763 case $ac_var in #(
2764 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2765 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2766 esac
2767 case $ac_var in #(
2768 _ | IFS | as_nl) ;; #(
2769 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2770 *) { eval $ac_var=; unset $ac_var;} ;;
2771 esac ;;
2772 esac
2773 done
2774 (set) 2>&1 |
2775 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2776 *${as_nl}ac_space=\ *)
2777 sed -n \
2778 "s/'\''/'\''\\\\'\'''\''/g;
2779 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2780 ;; #(
2781 *)
2782 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2783 ;;
2784 esac |
2785 sort
2786 )
2787 echo
2788
2789 $as_echo "## ----------------- ##
2790 ## Output variables. ##
2791 ## ----------------- ##"
2792 echo
2793 for ac_var in $ac_subst_vars
2794 do
2795 eval ac_val=\$$ac_var
2796 case $ac_val in
2797 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2798 esac
2799 $as_echo "$ac_var='\''$ac_val'\''"
2800 done | sort
2801 echo
2802
2803 if test -n "$ac_subst_files"; then
2804 $as_echo "## ------------------- ##
2805 ## File substitutions. ##
2806 ## ------------------- ##"
2807 echo
2808 for ac_var in $ac_subst_files
2809 do
2810 eval ac_val=\$$ac_var
2811 case $ac_val in
2812 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2813 esac
2814 $as_echo "$ac_var='\''$ac_val'\''"
2815 done | sort
2816 echo
2817 fi
2818
2819 if test -s confdefs.h; then
2820 $as_echo "## ----------- ##
2821 ## confdefs.h. ##
2822 ## ----------- ##"
2823 echo
2824 cat confdefs.h
2825 echo
2826 fi
2827 test "$ac_signal" != 0 &&
2828 $as_echo "$as_me: caught signal $ac_signal"
2829 $as_echo "$as_me: exit $exit_status"
2830 } >&5
2831 rm -f core *.core core.conftest.* &&
2832 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2833 exit $exit_status
2834 ' 0
2835 for ac_signal in 1 2 13 15; do
2836 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2837 done
2838 ac_signal=0
2839
2840 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2841 rm -f -r conftest* confdefs.h
2842
2843 $as_echo "/* confdefs.h */" > confdefs.h
2844
2845 # Predefined preprocessor variables.
2846
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_NAME "$PACKAGE_NAME"
2849 _ACEOF
2850
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2853 _ACEOF
2854
2855 cat >>confdefs.h <<_ACEOF
2856 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2857 _ACEOF
2858
2859 cat >>confdefs.h <<_ACEOF
2860 #define PACKAGE_STRING "$PACKAGE_STRING"
2861 _ACEOF
2862
2863 cat >>confdefs.h <<_ACEOF
2864 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2865 _ACEOF
2866
2867 cat >>confdefs.h <<_ACEOF
2868 #define PACKAGE_URL "$PACKAGE_URL"
2869 _ACEOF
2870
2871
2872 # Let the site file select an alternate cache file if it wants to.
2873 # Prefer an explicitly selected file to automatically selected ones.
2874 ac_site_file1=NONE
2875 ac_site_file2=NONE
2876 if test -n "$CONFIG_SITE"; then
2877 # We do not want a PATH search for config.site.
2878 case $CONFIG_SITE in #((
2879 -*) ac_site_file1=./$CONFIG_SITE;;
2880 */*) ac_site_file1=$CONFIG_SITE;;
2881 *) ac_site_file1=./$CONFIG_SITE;;
2882 esac
2883 elif test "x$prefix" != xNONE; then
2884 ac_site_file1=$prefix/share/config.site
2885 ac_site_file2=$prefix/etc/config.site
2886 else
2887 ac_site_file1=$ac_default_prefix/share/config.site
2888 ac_site_file2=$ac_default_prefix/etc/config.site
2889 fi
2890 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2891 do
2892 test "x$ac_site_file" = xNONE && continue
2893 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2895 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2896 sed 's/^/| /' "$ac_site_file" >&5
2897 . "$ac_site_file" \
2898 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2900 as_fn_error $? "failed to load site script $ac_site_file
2901 See \`config.log' for more details" "$LINENO" 5; }
2902 fi
2903 done
2904
2905 if test -r "$cache_file"; then
2906 # Some versions of bash will fail to source /dev/null (special files
2907 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2908 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2910 $as_echo "$as_me: loading cache $cache_file" >&6;}
2911 case $cache_file in
2912 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2913 *) . "./$cache_file";;
2914 esac
2915 fi
2916 else
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2918 $as_echo "$as_me: creating cache $cache_file" >&6;}
2919 >$cache_file
2920 fi
2921
2922 # Check that the precious variables saved in the cache have kept the same
2923 # value.
2924 ac_cache_corrupted=false
2925 for ac_var in $ac_precious_vars; do
2926 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2927 eval ac_new_set=\$ac_env_${ac_var}_set
2928 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2929 eval ac_new_val=\$ac_env_${ac_var}_value
2930 case $ac_old_set,$ac_new_set in
2931 set,)
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2933 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2934 ac_cache_corrupted=: ;;
2935 ,set)
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2937 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2938 ac_cache_corrupted=: ;;
2939 ,);;
2940 *)
2941 if test "x$ac_old_val" != "x$ac_new_val"; then
2942 # differences in whitespace do not lead to failure.
2943 ac_old_val_w=`echo x $ac_old_val`
2944 ac_new_val_w=`echo x $ac_new_val`
2945 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2947 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2948 ac_cache_corrupted=:
2949 else
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2951 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2952 eval $ac_var=\$ac_old_val
2953 fi
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2955 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2957 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2958 fi;;
2959 esac
2960 # Pass precious variables to config.status.
2961 if test "$ac_new_set" = set; then
2962 case $ac_new_val in
2963 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2964 *) ac_arg=$ac_var=$ac_new_val ;;
2965 esac
2966 case " $ac_configure_args " in
2967 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2968 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2969 esac
2970 fi
2971 done
2972 if $ac_cache_corrupted; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2976 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2977 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2978 fi
2979 ## -------------------- ##
2980 ## Main body of script. ##
2981 ## -------------------- ##
2982
2983 ac_ext=c
2984 ac_cpp='$CPP $CPPFLAGS'
2985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999 # If --target is not used then $target_alias is empty, but if say
3000 # "./configure athlon-pc-freebsd3.5" is used, then all three of
3001 # $build_alias, $host_alias and $target_alias are set to
3002 # "athlon-pc-freebsd3.5".
3003 #
3004 if test -n "$target_alias" && test "$target_alias" != "$host_alias"; then
3005 as_fn_error $? "--target is not appropriate for GMP
3006 Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
3007 explicitly. Use --host if cross-compiling (see \"Installing GMP\" in the
3008 manual for more on this)." "$LINENO" 5
3009 fi
3010
3011 gmp_configm4="config.m4"
3012 gmp_tmpconfigm4=cnfm4.tmp
3013 gmp_tmpconfigm4i=cnfm4i.tmp
3014 gmp_tmpconfigm4p=cnfm4p.tmp
3015 rm -f $gmp_tmpconfigm4 $gmp_tmpconfigm4i $gmp_tmpconfigm4p
3016
3017 # CONFIG_TOP_SRCDIR is a path from the mpn builddir to the top srcdir.
3018 # The pattern here tests for an absolute path the same way as
3019 # _AC_OUTPUT_FILES in autoconf acgeneral.m4.
3020 case $srcdir in
3021 [\\/]* | ?:[\\/]* ) tmp="$srcdir" ;;
3022 *) tmp="../$srcdir" ;;
3023 esac
3024 echo "define(<CONFIG_TOP_SRCDIR>,<\`$tmp'>)" >>$gmp_tmpconfigm4
3025
3026 # All CPUs use asm-defs.m4
3027 echo "include(CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4')" >>$gmp_tmpconfigm4i
3028
3029
3030 ac_aux_dir=
3031 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3032 if test -f "$ac_dir/install-sh"; then
3033 ac_aux_dir=$ac_dir
3034 ac_install_sh="$ac_aux_dir/install-sh -c"
3035 break
3036 elif test -f "$ac_dir/install.sh"; then
3037 ac_aux_dir=$ac_dir
3038 ac_install_sh="$ac_aux_dir/install.sh -c"
3039 break
3040 elif test -f "$ac_dir/shtool"; then
3041 ac_aux_dir=$ac_dir
3042 ac_install_sh="$ac_aux_dir/shtool install -c"
3043 break
3044 fi
3045 done
3046 if test -z "$ac_aux_dir"; then
3047 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3048 fi
3049
3050 # These three variables are undocumented and unsupported,
3051 # and are intended to be withdrawn in a future Autoconf release.
3052 # They can cause serious problems if a builder's source tree is in a directory
3053 # whose full name contains unusual characters.
3054 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3055 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3056 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3057
3058
3059 # Make sure we can run config.sub.
3060 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3061 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3062
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3064 $as_echo_n "checking build system type... " >&6; }
3065 if ${ac_cv_build+:} false; then :
3066 $as_echo_n "(cached) " >&6
3067 else
3068 ac_build_alias=$build_alias
3069 test "x$ac_build_alias" = x &&
3070 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3071 test "x$ac_build_alias" = x &&
3072 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3073 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3074 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3075
3076 fi
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3078 $as_echo "$ac_cv_build" >&6; }
3079 case $ac_cv_build in
3080 *-*-*) ;;
3081 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3082 esac
3083 build=$ac_cv_build
3084 ac_save_IFS=$IFS; IFS='-'
3085 set x $ac_cv_build
3086 shift
3087 build_cpu=$1
3088 build_vendor=$2
3089 shift; shift
3090 # Remember, the first character of IFS is used to create $*,
3091 # except with old shells:
3092 build_os=$*
3093 IFS=$ac_save_IFS
3094 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3095
3096
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3098 $as_echo_n "checking host system type... " >&6; }
3099 if ${ac_cv_host+:} false; then :
3100 $as_echo_n "(cached) " >&6
3101 else
3102 if test "x$host_alias" = x; then
3103 ac_cv_host=$ac_cv_build
3104 else
3105 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3106 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3107 fi
3108
3109 fi
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3111 $as_echo "$ac_cv_host" >&6; }
3112 case $ac_cv_host in
3113 *-*-*) ;;
3114 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3115 esac
3116 host=$ac_cv_host
3117 ac_save_IFS=$IFS; IFS='-'
3118 set x $ac_cv_host
3119 shift
3120 host_cpu=$1
3121 host_vendor=$2
3122 shift; shift
3123 # Remember, the first character of IFS is used to create $*,
3124 # except with old shells:
3125 host_os=$*
3126 IFS=$ac_save_IFS
3127 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3128
3129
3130
3131 am__api_version='1.11'
3132
3133 # Find a good install program. We prefer a C program (faster),
3134 # so one script is as good as another. But avoid the broken or
3135 # incompatible versions:
3136 # SysV /etc/install, /usr/sbin/install
3137 # SunOS /usr/etc/install
3138 # IRIX /sbin/install
3139 # AIX /bin/install
3140 # AmigaOS /C/install, which installs bootblocks on floppy discs
3141 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3142 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3143 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3144 # OS/2's system install, which has a completely different semantic
3145 # ./install, which can be erroneously created by make from ./install.sh.
3146 # Reject install programs that cannot install multiple files.
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3148 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3149 if test -z "$INSTALL"; then
3150 if ${ac_cv_path_install+:} false; then :
3151 $as_echo_n "(cached) " >&6
3152 else
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3155 do
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
3158 # Account for people who put trailing slashes in PATH elements.
3159 case $as_dir/ in #((
3160 ./ | .// | /[cC]/* | \
3161 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3162 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3163 /usr/ucb/* ) ;;
3164 *)
3165 # OSF1 and SCO ODT 3.0 have their own names for install.
3166 # Don't use installbsd from OSF since it installs stuff as root
3167 # by default.
3168 for ac_prog in ginstall scoinst install; do
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3171 if test $ac_prog = install &&
3172 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3173 # AIX install. It has an incompatible calling convention.
3174 :
3175 elif test $ac_prog = install &&
3176 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3177 # program-specific install script used by HP pwplus--don't use.
3178 :
3179 else
3180 rm -rf conftest.one conftest.two conftest.dir
3181 echo one > conftest.one
3182 echo two > conftest.two
3183 mkdir conftest.dir
3184 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3185 test -s conftest.one && test -s conftest.two &&
3186 test -s conftest.dir/conftest.one &&
3187 test -s conftest.dir/conftest.two
3188 then
3189 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3190 break 3
3191 fi
3192 fi
3193 fi
3194 done
3195 done
3196 ;;
3197 esac
3198
3199 done
3200 IFS=$as_save_IFS
3201
3202 rm -rf conftest.one conftest.two conftest.dir
3203
3204 fi
3205 if test "${ac_cv_path_install+set}" = set; then
3206 INSTALL=$ac_cv_path_install
3207 else
3208 # As a last resort, use the slow shell script. Don't cache a
3209 # value for INSTALL within a source directory, because that will
3210 # break other packages using the cache if that directory is
3211 # removed, or if the value is a relative name.
3212 INSTALL=$ac_install_sh
3213 fi
3214 fi
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3216 $as_echo "$INSTALL" >&6; }
3217
3218 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3219 # It thinks the first close brace ends the variable substitution.
3220 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3221
3222 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3223
3224 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3225
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3227 $as_echo_n "checking whether build environment is sane... " >&6; }
3228 # Just in case
3229 sleep 1
3230 echo timestamp > conftest.file
3231 # Reject unsafe characters in $srcdir or the absolute working directory
3232 # name. Accept space and tab only in the latter.
3233 am_lf='
3234 '
3235 case `pwd` in
3236 *[\\\"\#\$\&\'\`$am_lf]*)
3237 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3238 esac
3239 case $srcdir in
3240 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3241 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3242 esac
3243
3244 # Do `set' in a subshell so we don't clobber the current shell's
3245 # arguments. Must try -L first in case configure is actually a
3246 # symlink; some systems play weird games with the mod time of symlinks
3247 # (eg FreeBSD returns the mod time of the symlink's containing
3248 # directory).
3249 if (
3250 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3251 if test "$*" = "X"; then
3252 # -L didn't work.
3253 set X `ls -t "$srcdir/configure" conftest.file`
3254 fi
3255 rm -f conftest.file
3256 if test "$*" != "X $srcdir/configure conftest.file" \
3257 && test "$*" != "X conftest.file $srcdir/configure"; then
3258
3259 # If neither matched, then we have a broken ls. This can happen
3260 # if, for instance, CONFIG_SHELL is bash and it inherits a
3261 # broken ls alias from the environment. This has actually
3262 # happened. Such a system could not be considered "sane".
3263 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3264 alias in your environment" "$LINENO" 5
3265 fi
3266
3267 test "$2" = conftest.file
3268 )
3269 then
3270 # Ok.
3271 :
3272 else
3273 as_fn_error $? "newly created file is older than distributed files!
3274 Check your system clock" "$LINENO" 5
3275 fi
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3277 $as_echo "yes" >&6; }
3278 test "$program_prefix" != NONE &&
3279 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3280 # Use a double $ so make ignores it.
3281 test "$program_suffix" != NONE &&
3282 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3283 # Double any \ or $.
3284 # By default was `s,x,x', remove it if useless.
3285 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3286 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3287
3288 # expand $ac_aux_dir to an absolute path
3289 am_aux_dir=`cd $ac_aux_dir && pwd`
3290
3291 if test x"${MISSING+set}" != xset; then
3292 case $am_aux_dir in
3293 *\ * | *\ *)
3294 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3295 *)
3296 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3297 esac
3298 fi
3299 # Use eval to expand $SHELL
3300 if eval "$MISSING --run true"; then
3301 am_missing_run="$MISSING --run "
3302 else
3303 am_missing_run=
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3305 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3306 fi
3307
3308 if test x"${install_sh}" != xset; then
3309 case $am_aux_dir in
3310 *\ * | *\ *)
3311 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3312 *)
3313 install_sh="\${SHELL} $am_aux_dir/install-sh"
3314 esac
3315 fi
3316
3317 # Installed binaries are usually stripped using `strip' when the user
3318 # run `make install-strip'. However `strip' might not be the right
3319 # tool to use in cross-compilation environments, therefore Automake
3320 # will honor the `STRIP' environment variable to overrule this program.
3321 if test "$cross_compiling" != no; then
3322 if test -n "$ac_tool_prefix"; then
3323 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3324 set dummy ${ac_tool_prefix}strip; ac_word=$2
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 $as_echo_n "checking for $ac_word... " >&6; }
3327 if ${ac_cv_prog_STRIP+:} false; then :
3328 $as_echo_n "(cached) " >&6
3329 else
3330 if test -n "$STRIP"; then
3331 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3332 else
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH
3335 do
3336 IFS=$as_save_IFS
3337 test -z "$as_dir" && as_dir=.
3338 for ac_exec_ext in '' $ac_executable_extensions; do
3339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3340 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342 break 2
3343 fi
3344 done
3345 done
3346 IFS=$as_save_IFS
3347
3348 fi
3349 fi
3350 STRIP=$ac_cv_prog_STRIP
3351 if test -n "$STRIP"; then
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3353 $as_echo "$STRIP" >&6; }
3354 else
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3357 fi
3358
3359
3360 fi
3361 if test -z "$ac_cv_prog_STRIP"; then
3362 ac_ct_STRIP=$STRIP
3363 # Extract the first word of "strip", so it can be a program name with args.
3364 set dummy strip; ac_word=$2
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366 $as_echo_n "checking for $ac_word... " >&6; }
3367 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3368 $as_echo_n "(cached) " >&6
3369 else
3370 if test -n "$ac_ct_STRIP"; then
3371 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3375 do
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380 ac_cv_prog_ac_ct_STRIP="strip"
3381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 break 2
3383 fi
3384 done
3385 done
3386 IFS=$as_save_IFS
3387
3388 fi
3389 fi
3390 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3391 if test -n "$ac_ct_STRIP"; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3393 $as_echo "$ac_ct_STRIP" >&6; }
3394 else
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 $as_echo "no" >&6; }
3397 fi
3398
3399 if test "x$ac_ct_STRIP" = x; then
3400 STRIP=":"
3401 else
3402 case $cross_compiling:$ac_tool_warned in
3403 yes:)
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3406 ac_tool_warned=yes ;;
3407 esac
3408 STRIP=$ac_ct_STRIP
3409 fi
3410 else
3411 STRIP="$ac_cv_prog_STRIP"
3412 fi
3413
3414 fi
3415 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3416
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3418 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3419 if test -z "$MKDIR_P"; then
3420 if ${ac_cv_path_mkdir+:} false; then :
3421 $as_echo_n "(cached) " >&6
3422 else
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3425 do
3426 IFS=$as_save_IFS
3427 test -z "$as_dir" && as_dir=.
3428 for ac_prog in mkdir gmkdir; do
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3431 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3432 'mkdir (GNU coreutils) '* | \
3433 'mkdir (coreutils) '* | \
3434 'mkdir (fileutils) '4.1*)
3435 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3436 break 3;;
3437 esac
3438 done
3439 done
3440 done
3441 IFS=$as_save_IFS
3442
3443 fi
3444
3445 test -d ./--version && rmdir ./--version
3446 if test "${ac_cv_path_mkdir+set}" = set; then
3447 MKDIR_P="$ac_cv_path_mkdir -p"
3448 else
3449 # As a last resort, use the slow shell script. Don't cache a
3450 # value for MKDIR_P within a source directory, because that will
3451 # break other packages using the cache if that directory is
3452 # removed, or if the value is a relative name.
3453 MKDIR_P="$ac_install_sh -d"
3454 fi
3455 fi
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3457 $as_echo "$MKDIR_P" >&6; }
3458
3459 mkdir_p="$MKDIR_P"
3460 case $mkdir_p in
3461 [\\/$]* | ?:[\\/]*) ;;
3462 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3463 esac
3464
3465 for ac_prog in gawk mawk nawk awk
3466 do
3467 # Extract the first word of "$ac_prog", so it can be a program name with args.
3468 set dummy $ac_prog; ac_word=$2
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470 $as_echo_n "checking for $ac_word... " >&6; }
3471 if ${ac_cv_prog_AWK+:} false; then :
3472 $as_echo_n "(cached) " >&6
3473 else
3474 if test -n "$AWK"; then
3475 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3476 else
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH
3479 do
3480 IFS=$as_save_IFS
3481 test -z "$as_dir" && as_dir=.
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3484 ac_cv_prog_AWK="$ac_prog"
3485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 break 2
3487 fi
3488 done
3489 done
3490 IFS=$as_save_IFS
3491
3492 fi
3493 fi
3494 AWK=$ac_cv_prog_AWK
3495 if test -n "$AWK"; then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3497 $as_echo "$AWK" >&6; }
3498 else
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 $as_echo "no" >&6; }
3501 fi
3502
3503
3504 test -n "$AWK" && break
3505 done
3506
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3508 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3509 set x ${MAKE-make}
3510 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3511 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 cat >conftest.make <<\_ACEOF
3515 SHELL = /bin/sh
3516 all:
3517 @echo '@@@%%%=$(MAKE)=@@@%%%'
3518 _ACEOF
3519 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3520 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3521 *@@@%%%=?*=@@@%%%*)
3522 eval ac_cv_prog_make_${ac_make}_set=yes;;
3523 *)
3524 eval ac_cv_prog_make_${ac_make}_set=no;;
3525 esac
3526 rm -f conftest.make
3527 fi
3528 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3530 $as_echo "yes" >&6; }
3531 SET_MAKE=
3532 else
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3535 SET_MAKE="MAKE=${MAKE-make}"
3536 fi
3537
3538 rm -rf .tst 2>/dev/null
3539 mkdir .tst 2>/dev/null
3540 if test -d .tst; then
3541 am__leading_dot=.
3542 else
3543 am__leading_dot=_
3544 fi
3545 rmdir .tst 2>/dev/null
3546
3547 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3548 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3549 # is not polluted with repeated "-I."
3550 am__isrc=' -I$(srcdir)'
3551 # test to see if srcdir already configured
3552 if test -f $srcdir/config.status; then
3553 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3554 fi
3555 fi
3556
3557 # test whether we have cygpath
3558 if test -z "$CYGPATH_W"; then
3559 if (cygpath --version) >/dev/null 2>/dev/null; then
3560 CYGPATH_W='cygpath -w'
3561 else
3562 CYGPATH_W=echo
3563 fi
3564 fi
3565
3566
3567 # Define the identity of the package.
3568 PACKAGE='gmp'
3569 VERSION='5.1.3'
3570
3571
3572 cat >>confdefs.h <<_ACEOF
3573 #define PACKAGE "$PACKAGE"
3574 _ACEOF
3575
3576
3577 cat >>confdefs.h <<_ACEOF
3578 #define VERSION "$VERSION"
3579 _ACEOF
3580
3581 # Some tools Automake needs.
3582
3583 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3584
3585
3586 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3587
3588
3589 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3590
3591
3592 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3593
3594
3595 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3596
3597 # We need awk for the "check" target. The system "awk" is bad on
3598 # some platforms.
3599 # Always define AMTAR for backward compatibility. Yes, it's still used
3600 # in the wild :-( We should find a proper way to deprecate it ...
3601 AMTAR='$${TAR-tar}'
3602
3603 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3604
3605
3606
3607
3608
3609 ac_config_headers="$ac_config_headers config.h:config.in"
3610
3611
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3613 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3614 # Check whether --enable-maintainer-mode was given.
3615 if test "${enable_maintainer_mode+set}" = set; then :
3616 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3617 else
3618 USE_MAINTAINER_MODE=no
3619 fi
3620
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3622 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3623 if test $USE_MAINTAINER_MODE = yes; then
3624 MAINTAINER_MODE_TRUE=
3625 MAINTAINER_MODE_FALSE='#'
3626 else
3627 MAINTAINER_MODE_TRUE='#'
3628 MAINTAINER_MODE_FALSE=
3629 fi
3630
3631 MAINT=$MAINTAINER_MODE_TRUE
3632
3633
3634
3635
3636 # Check whether --enable-assert was given.
3637 if test "${enable_assert+set}" = set; then :
3638 enableval=$enable_assert; case $enableval in
3639 yes|no) ;;
3640 *) as_fn_error $? "bad value $enableval for --enable-assert, need yes or no" "$LINENO" 5 ;;
3641 esac
3642 else
3643 enable_assert=no
3644 fi
3645
3646
3647 if test "$enable_assert" = "yes"; then
3648
3649 $as_echo "#define WANT_ASSERT 1" >>confdefs.h
3650
3651 want_assert_01=1
3652 else
3653 want_assert_01=0
3654 fi
3655
3656 echo "define(<WANT_ASSERT>,$want_assert_01)" >> $gmp_tmpconfigm4
3657
3658
3659
3660 # Check whether --enable-alloca was given.
3661 if test "${enable_alloca+set}" = set; then :
3662 enableval=$enable_alloca; case $enableval in
3663 alloca|malloc-reentrant|malloc-notreentrant) ;;
3664 yes|no|reentrant|notreentrant) ;;
3665 debug) ;;
3666 *)
3667 as_fn_error $? "bad value $enableval for --enable-alloca, need one of:
3668 yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" "$LINENO" 5 ;;
3669 esac
3670 else
3671 enable_alloca=reentrant
3672 fi
3673
3674
3675
3676 # IMPROVE ME: The default for C++ is disabled. The tests currently
3677 # performed below for a working C++ compiler are not particularly strong,
3678 # and in general can't be expected to get the right setup on their own. The
3679 # most significant problem is getting the ABI the same. Defaulting CXXFLAGS
3680 # to CFLAGS takes only a small step towards this. It's also probably worth
3681 # worrying whether the C and C++ runtimes from say gcc and a vendor C++ can
3682 # work together. Some rather broken C++ installations were encountered
3683 # during testing, and though such things clearly aren't GMP's problem, if
3684 # --enable-cxx=detect were to be the default then some careful checks of
3685 # which, if any, C++ compiler on the system is up to scratch would be
3686 # wanted.
3687 #
3688 # Check whether --enable-cxx was given.
3689 if test "${enable_cxx+set}" = set; then :
3690 enableval=$enable_cxx; case $enableval in
3691 yes|no|detect) ;;
3692 *) as_fn_error $? "bad value $enableval for --enable-cxx, need yes/no/detect" "$LINENO" 5 ;;
3693 esac
3694 else
3695 enable_cxx=no
3696 fi
3697
3698
3699
3700 # Check whether --enable-assembly was given.
3701 if test "${enable_assembly+set}" = set; then :
3702 enableval=$enable_assembly; case $enableval in
3703 yes|no) ;;
3704 *) as_fn_error $? "bad value $enableval for --enable-assembly, need yes or no" "$LINENO" 5 ;;
3705 esac
3706 else
3707 enable_assembly=yes
3708 fi
3709
3710
3711 if test "$enable_assembly" = "yes"; then
3712
3713 $as_echo "#define WANT_ASSEMBLY 1" >>confdefs.h
3714
3715 fi
3716
3717
3718 # Check whether --enable-fft was given.
3719 if test "${enable_fft+set}" = set; then :
3720 enableval=$enable_fft; case $enableval in
3721 yes|no) ;;
3722 *) as_fn_error $? "bad value $enableval for --enable-fft, need yes or no" "$LINENO" 5 ;;
3723 esac
3724 else
3725 enable_fft=yes
3726 fi
3727
3728
3729 if test "$enable_fft" = "yes"; then
3730
3731 $as_echo "#define WANT_FFT 1" >>confdefs.h
3732
3733 fi
3734
3735
3736 # Check whether --enable-old-fft-full was given.
3737 if test "${enable_old_fft_full+set}" = set; then :
3738 enableval=$enable_old_fft_full; case $enableval in
3739 yes|no) ;;
3740 *) as_fn_error $? "bad value $enableval for --enable-old-fft-full, need yes or no" "$LINENO" 5 ;;
3741 esac
3742 else
3743 enable_old_fft_full=no
3744 fi
3745
3746
3747 if test "$enable_old_fft_full" = "yes"; then
3748
3749 $as_echo "#define WANT_OLD_FFT_FULL 1" >>confdefs.h
3750
3751 fi
3752
3753
3754 # Check whether --enable-nails was given.
3755 if test "${enable_nails+set}" = set; then :
3756 enableval=$enable_nails; case $enableval in
3757 yes|no|[02468]|[0-9][02468]) ;;
3758 *[13579])
3759 as_fn_error $? "bad value $enableval for --enable-nails, only even nail sizes supported" "$LINENO" 5 ;;
3760 *)
3761 as_fn_error $? "bad value $enableval for --enable-nails, need yes/no/number" "$LINENO" 5 ;;
3762 esac
3763 else
3764 enable_nails=no
3765 fi
3766
3767
3768 case $enable_nails in
3769 yes) GMP_NAIL_BITS=2 ;;
3770 no) GMP_NAIL_BITS=0 ;;
3771 *) GMP_NAIL_BITS=$enable_nails ;;
3772 esac
3773
3774
3775
3776 # Check whether --enable-profiling was given.
3777 if test "${enable_profiling+set}" = set; then :
3778 enableval=$enable_profiling; case $enableval in
3779 no|prof|gprof|instrument) ;;
3780 *) as_fn_error $? "bad value $enableval for --enable-profiling, need no/prof/gprof/instrument" "$LINENO" 5 ;;
3781 esac
3782 else
3783 enable_profiling=no
3784 fi
3785
3786
3787 case $enable_profiling in
3788 prof)
3789
3790 $as_echo "#define WANT_PROFILING_PROF 1" >>confdefs.h
3791
3792 ;;
3793 gprof)
3794
3795 $as_echo "#define WANT_PROFILING_GPROF 1" >>confdefs.h
3796
3797 ;;
3798 instrument)
3799
3800 $as_echo "#define WANT_PROFILING_INSTRUMENT 1" >>confdefs.h
3801
3802 ;;
3803 esac
3804
3805
3806 echo "define(<WANT_PROFILING>,<\`$enable_profiling'>)" >> $gmp_tmpconfigm4
3807
3808
3809 # -fomit-frame-pointer is incompatible with -pg on some chips
3810 if test "$enable_profiling" = gprof; then
3811 fomit_frame_pointer=
3812 else
3813 fomit_frame_pointer="-fomit-frame-pointer"
3814 fi
3815
3816
3817
3818 # Check whether --with-readline was given.
3819 if test "${with_readline+set}" = set; then :
3820 withval=$with_readline; case $withval in
3821 yes|no|detect) ;;
3822 *) as_fn_error $? "bad value $withval for --with-readline, need yes/no/detect" "$LINENO" 5 ;;
3823 esac
3824 else
3825 with_readline=detect
3826 fi
3827
3828
3829
3830 # Check whether --enable-fat was given.
3831 if test "${enable_fat+set}" = set; then :
3832 enableval=$enable_fat; case $enableval in
3833 yes|no) ;;
3834 *) as_fn_error $? "bad value $enableval for --enable-fat, need yes or no" "$LINENO" 5 ;;
3835 esac
3836 else
3837 enable_fat=no
3838 fi
3839
3840
3841
3842 # Check whether --enable-minithres was given.
3843 if test "${enable_minithres+set}" = set; then :
3844 enableval=$enable_minithres; case $enableval in
3845 yes|no) ;;
3846 *) as_fn_error $? "bad value $enableval for --enable-minithres, need yes or no" "$LINENO" 5 ;;
3847 esac
3848 else
3849 enable_minithres=no
3850 fi
3851
3852
3853
3854 if test $enable_fat = yes && test $enable_assembly = no ; then
3855 as_fn_error $? "when doing a fat build, disabling assembly will not work" "$LINENO" 5
3856 fi
3857
3858
3859 tmp_host=`echo $host_cpu | sed 's/\./_/'`
3860 cat >>confdefs.h <<_ACEOF
3861 #define HAVE_HOST_CPU_$tmp_host 1
3862 _ACEOF
3863
3864
3865 echo "define_not_for_expansion(\`HAVE_HOST_CPU_$tmp_host')" >> $gmp_tmpconfigm4p
3866
3867
3868
3869
3870
3871
3872 # Table of compilers, options, and mpn paths. This code has various related
3873 # purposes
3874 #
3875 # - better default CC/CFLAGS selections than autoconf otherwise gives
3876 # - default CC/CFLAGS selections for extra CPU types specific to GMP
3877 # - a few tests for known bad compilers
3878 # - choice of ABIs on suitable systems
3879 # - selection of corresponding mpn search path
3880 #
3881 # After GMP specific searches and tests, the standard autoconf AC_PROG_CC is
3882 # called. User selections of CC etc are respected.
3883 #
3884 # Care is taken not to use macros like AC_TRY_COMPILE during the GMP
3885 # pre-testing, since they of course depend on AC_PROG_CC, and also some of
3886 # them cache their results, which is not wanted.
3887 #
3888 # The ABI selection mechanism is unique to GMP. All that reaches autoconf
3889 # is a different selection of CC/CFLAGS according to the best ABI the system
3890 # supports, and/or what the user selects. Naturally the mpn assembler code
3891 # selected is very dependent on the ABI.
3892 #
3893 # The closest the standard tools come to a notion of ABI is something like
3894 # "sparc64" which encodes a CPU and an ABI together. This doesn't seem to
3895 # scale well for GMP, where exact CPU types like "ultrasparc2" are wanted,
3896 # separate from the ABI used on them.
3897 #
3898 #
3899 # The variables set here are
3900 #
3901 # cclist the compiler choices
3902 # xx_cflags flags for compiler xx
3903 # xx_cflags_maybe flags for compiler xx, if they work
3904 # xx_cppflags cpp flags for compiler xx
3905 # xx_cflags_optlist list of sets of optional flags
3906 # xx_cflags_yyy set yyy of optional flags for compiler xx
3907 # xx_ldflags -Wc,-foo flags for libtool linking with compiler xx
3908 # ar_flags extra flags for $AR
3909 # nm_flags extra flags for $NM
3910 # limb limb size, can be "longlong"
3911 # path mpn search path
3912 # extra_functions extra mpn functions
3913 # fat_path fat binary mpn search path [if fat binary desired]
3914 # fat_functions fat functions
3915 # fat_thresholds fat thresholds
3916 #
3917 # Suppose xx_cflags_optlist="arch", then flags from $xx_cflags_arch are
3918 # tried, and the first flag that works will be used. An optlist like "arch
3919 # cpu optimize" can be used to get multiple independent sets of flags tried.
3920 # The first that works from each will be used. If no flag in a set works
3921 # then nothing from that set is added.
3922 #
3923 # For multiple ABIs, the scheme extends as follows.
3924 #
3925 # abilist set of ABI choices
3926 # cclist_aa compiler choices in ABI aa
3927 # xx_aa_cflags flags for xx in ABI aa
3928 # xx_aa_cflags_maybe flags for xx in ABI aa, if they work
3929 # xx_aa_cppflags cpp flags for xx in ABI aa
3930 # xx_aa_cflags_optlist list of sets of optional flags in ABI aa
3931 # xx_aa_cflags_yyy set yyy of optional flags for compiler xx in ABI aa
3932 # xx_aa_ldflags -Wc,-foo flags for libtool linking
3933 # ar_aa_flags extra flags for $AR in ABI aa
3934 # nm_aa_flags extra flags for $NM in ABI aa
3935 # limb_aa limb size in ABI aa, can be "longlong"
3936 # path_aa mpn search path in ABI aa
3937 # extra_functions_aa extra mpn functions in ABI aa
3938 #
3939 # As a convenience, the unadorned xx_cflags (etc) are used for the last ABI
3940 # in ablist, if an xx_aa_cflags for that ABI isn't given. For example if
3941 # abilist="64 32" then $cc_64_cflags will be used for the 64-bit ABI, but
3942 # for the 32-bit either $cc_32_cflags or $cc_cflags is used, whichever is
3943 # defined. This makes it easy to add some 64-bit compilers and flags to an
3944 # unadorned 32-bit set.
3945 #
3946 # limb=longlong (or limb_aa=longlong) applies to all compilers within that
3947 # ABI. It won't work to have some needing long long and some not, since a
3948 # single instantiated gmp.h will be used by both.
3949 #
3950 # SPEED_CYCLECOUNTER, cyclecounter_size and CALLING_CONVENTIONS_OBJS are
3951 # also set here, with an ABI suffix.
3952 #
3953 #
3954 #
3955 # A table-driven approach like this to mapping cpu type to good compiler
3956 # options is a bit of a maintenance burden, but there's not much uniformity
3957 # between options specifications on different compilers. Some sort of
3958 # separately updatable tool might be cute.
3959 #
3960 # The use of lots of variables like this, direct and indirect, tends to
3961 # obscure when and how various things are done, but unfortunately it's
3962 # pretty much the only way. If shell subroutines were portable then actual
3963 # code like "if this .. do that" could be written, but attempting the same
3964 # with full copies of GMP_PROG_CC_WORKS etc expanded at every point would
3965 # hugely bloat the output.
3966
3967
3968
3969
3970 # abilist needs to be non-empty, "standard" is just a generic name here
3971 abilist="standard"
3972
3973 # FIXME: We'd like to prefer an ANSI compiler, perhaps by preferring
3974 # c89 over cc here. But note that on HP-UX c89 provides a castrated
3975 # environment, and would want to be excluded somehow. Maybe
3976 # AC_PROG_CC_STDC already does enough to stick cc into ANSI mode and
3977 # we don't need to worry.
3978 #
3979 cclist="gcc cc"
3980
3981 gcc_cflags="-O2 -pedantic"
3982 gcc_64_cflags="-O2 -pedantic"
3983 cc_cflags="-O"
3984 cc_64_cflags="-O"
3985
3986 SPEED_CYCLECOUNTER_OBJ=
3987 cyclecounter_size=2
3988
3989 HAVE_HOST_CPU_FAMILY_power=0
3990
3991 HAVE_HOST_CPU_FAMILY_powerpc=0
3992
3993
3994 case $host in
3995
3996 a29k*-*-*)
3997 path="a29k"
3998 ;;
3999
4000
4001 alpha*-*-*)
4002 $as_echo "#define HAVE_HOST_CPU_FAMILY_alpha 1" >>confdefs.h
4003
4004 case $host_cpu in
4005 alphaev5* | alphapca5*)
4006 path="alpha/ev5 alpha" ;;
4007 alphaev67 | alphaev68 | alphaev7*)
4008 path="alpha/ev67 alpha/ev6 alpha" ;;
4009 alphaev6)
4010 path="alpha/ev6 alpha" ;;
4011 *)
4012 path="alpha" ;;
4013 esac
4014 extra_functions="cntlz"
4015 gcc_cflags_optlist="asm cpu oldas" # need asm ahead of cpu, see below
4016 gcc_cflags_oldas="-Wa,-oldas" # see GMP_GCC_WA_OLDAS.
4017
4018 # gcc 2.7.2.3 doesn't know any -mcpu= for alpha, apparently.
4019 # gcc 2.95 knows -mcpu= ev4, ev5, ev56, pca56, ev6.
4020 # gcc 3.0 adds nothing.
4021 # gcc 3.1 adds ev45, ev67 (but ev45 is the same as ev4).
4022 # gcc 3.2 adds nothing.
4023 #
4024 # gcc version "2.9-gnupro-99r1" under "-O2 -mcpu=ev6" strikes internal
4025 # compiler errors too easily and is rejected by GMP_PROG_CC_WORKS. Each
4026 # -mcpu=ev6 below has a fallback to -mcpu=ev56 for this reason.
4027 #
4028 case $host_cpu in
4029 alpha) gcc_cflags_cpu="-mcpu=ev4" ;;
4030 alphaev5) gcc_cflags_cpu="-mcpu=ev5" ;;
4031 alphaev56) gcc_cflags_cpu="-mcpu=ev56" ;;
4032 alphapca56 | alphapca57)
4033 gcc_cflags_cpu="-mcpu=pca56" ;;
4034 alphaev6) gcc_cflags_cpu="-mcpu=ev6 -mcpu=ev56" ;;
4035 alphaev67 | alphaev68 | alphaev7*)
4036 gcc_cflags_cpu="-mcpu=ev67 -mcpu=ev6 -mcpu=ev56" ;;
4037 esac
4038
4039 # gcc version "2.9-gnupro-99r1" on alphaev68-dec-osf5.1 has been seen
4040 # accepting -mcpu=ev6, but not putting the assembler in the right mode
4041 # for what it produces. We need to do this for it, and need to do it
4042 # before testing the -mcpu options.
4043 #
4044 # On old versions of gcc, which don't know -mcpu=, we believe an
4045 # explicit -Wa,-mev5 etc will be necessary to put the assembler in
4046 # the right mode for our .asm files and longlong.h asm blocks.
4047 #
4048 # On newer versions of gcc, when -mcpu= is known, we must give a -Wa
4049 # which is at least as high as the code gcc will generate. gcc
4050 # establishes what it needs with a ".arch" directive, our command line
4051 # option seems to override that.
4052 #
4053 # gas prior to 2.14 doesn't accept -mev67, but -mev6 seems enough for
4054 # ctlz and cttz (in 2.10.0 at least).
4055 #
4056 # OSF `as' accepts ev68 but stupidly treats it as ev4. -arch only seems
4057 # to affect insns like ldbu which are expanded as macros when necessary.
4058 # Insns like ctlz which were never available as macros are always
4059 # accepted and always generate their plain code.
4060 #
4061 case $host_cpu in
4062 alpha) gcc_cflags_asm="-Wa,-arch,ev4 -Wa,-mev4" ;;
4063 alphaev5) gcc_cflags_asm="-Wa,-arch,ev5 -Wa,-mev5" ;;
4064 alphaev56) gcc_cflags_asm="-Wa,-arch,ev56 -Wa,-mev56" ;;
4065 alphapca56 | alphapca57)
4066 gcc_cflags_asm="-Wa,-arch,pca56 -Wa,-mpca56" ;;
4067 alphaev6) gcc_cflags_asm="-Wa,-arch,ev6 -Wa,-mev6" ;;
4068 alphaev67 | alphaev68 | alphaev7*)
4069 gcc_cflags_asm="-Wa,-arch,ev67 -Wa,-mev67 -Wa,-arch,ev6 -Wa,-mev6" ;;
4070 esac
4071
4072 # It might be better to ask "cc" whether it's Cray C or DEC C,
4073 # instead of relying on the OS part of $host. But it's hard to
4074 # imagine either of those compilers anywhere except their native
4075 # systems.
4076 #
4077
4078 echo "include_mpn(\`alpha/alpha-defs.m4')" >> $gmp_tmpconfigm4i
4079
4080 case $host in
4081 *-cray-unicos*)
4082 cc_cflags="-O" # no -g, it silently disables all optimizations
4083
4084 echo "include_mpn(\`alpha/unicos.m4')" >> $gmp_tmpconfigm4i
4085
4086 # Don't perform any assembly syntax tests on this beast.
4087 gmp_asm_syntax_testing=no
4088 ;;
4089 *-*-osf*)
4090
4091 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
4092
4093 cc_cflags=""
4094 cc_cflags_optlist="opt cpu"
4095
4096 # not sure if -fast works on old versions, so make it optional
4097 cc_cflags_opt="-fast -O2"
4098
4099 # DEC C V5.9-005 knows ev4, ev5, ev56, pca56, ev6.
4100 # Compaq C V6.3-029 adds ev67.
4101 #
4102 case $host_cpu in
4103 alpha) cc_cflags_cpu="-arch~ev4~-tune~ev4" ;;
4104 alphaev5) cc_cflags_cpu="-arch~ev5~-tune~ev5" ;;
4105 alphaev56) cc_cflags_cpu="-arch~ev56~-tune~ev56" ;;
4106 alphapca56 | alphapca57)
4107 cc_cflags_cpu="-arch~pca56~-tune~pca56" ;;
4108 alphaev6) cc_cflags_cpu="-arch~ev6~-tune~ev6" ;;
4109 alphaev67 | alphaev68 | alphaev7*)
4110 cc_cflags_cpu="-arch~ev67~-tune~ev67 -arch~ev6~-tune~ev6" ;;
4111 esac
4112 ;;
4113 *)
4114
4115 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
4116
4117 ;;
4118 esac
4119
4120 case $host in
4121 *-*-unicos*)
4122 # tune/alpha.asm assumes int==4bytes but unicos uses int==8bytes
4123 ;;
4124 *)
4125 SPEED_CYCLECOUNTER_OBJ=alpha.lo
4126 cyclecounter_size=1 ;;
4127 esac
4128 ;;
4129
4130
4131 # Cray vector machines.
4132 # This must come after alpha* so that we can recognize present and future
4133 # vector processors with a wildcard.
4134 *-cray-unicos*)
4135 gmp_asm_syntax_testing=no
4136 cclist="cc"
4137 # We used to have -hscalar0 here as a workaround for miscompilation of
4138 # mpz/import.c, but let's hope Cray fixes their bugs instead, since
4139 # -hscalar0 causes disastrously poor code to be generated.
4140 cc_cflags="-O3 -hnofastmd -htask0 -Wa,-B"
4141 path="cray"
4142 ;;
4143
4144
4145 arm*-*-*)
4146 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4147 gcc_cflags_optlist="arch tune"
4148 gcc_cflags_maybe="-marm"
4149 gcc_testlist="gcc-arm-umodsi"
4150
4151 echo "include_mpn(\`arm/arm-defs.m4')" >> $gmp_tmpconfigm4i
4152
4153 CALLING_CONVENTIONS_OBJS='arm32call.lo arm32check.lo'
4154
4155 case $host_cpu in
4156 armsa1 | armv4*)
4157 path="arm"
4158 gcc_cflags_arch="-march=armv4"
4159 ;;
4160 armxscale | arm926 | arm946 | arm966 | arm1026 | armv5*)
4161 path="arm/v5 arm"
4162 gcc_cflags_arch="-march=armv5"
4163 ;;
4164 arm11mpcore | arm1136 | arm1176 | armv6*)
4165 path="arm/v6 arm/v5 arm"
4166 gcc_cflags_arch="-march=armv6"
4167 ;;
4168 arm1156)
4169 path="arm/v6t2 arm/v6 arm/v5 arm"
4170 gcc_cflags_arch="-march=armv6t2"
4171 ;;
4172 armcortexa9)
4173 path="arm/v7a/cora9 arm/v6t2 arm/v6 arm/v5 arm"
4174 gcc_cflags_arch="-march=armv7-a"
4175 gcc_cflags_tune="-mtune=cortex-a9"
4176 ;;
4177 armcortexa15)
4178 path="arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm"
4179 gcc_cflags_arch="-march=armv7-a"
4180 gcc_cflags_tune="-mtune=cortex-a15 -mtune=cortex-a9"
4181 ;;
4182 armcortexa5 | armcortexa8 | armv7a*)
4183 path="arm/v6t2 arm/v6 arm/v5 arm"
4184 gcc_cflags_arch="-march=armv7-a"
4185 ;;
4186 *)
4187 path="arm"
4188 ;;
4189 esac
4190 ;;
4191
4192
4193 clipper*-*-*)
4194 path="clipper"
4195 ;;
4196
4197
4198 # Fujitsu
4199 f30[01]-fujitsu-sysv*)
4200 cclist="gcc vcc"
4201 # FIXME: flags for vcc?
4202 vcc_cflags="-g"
4203 path="fujitsu"
4204 ;;
4205
4206
4207 hppa*-*-*)
4208 # HP cc (the one sold separately) is K&R by default, but AM_C_PROTOTYPES
4209 # will add "-Ae", or "-Aa -D_HPUX_SOURCE", to put it into ansi mode, if
4210 # possible.
4211 #
4212 # gcc for hppa 2.0 can be built either for 2.0n (32-bit) or 2.0w
4213 # (64-bit), but not both, so there's no option to choose the desired
4214 # mode, we must instead detect which of the two it is. This is done by
4215 # checking sizeof(long), either 4 or 8 bytes respectively. Do this in
4216 # ABI=1.0 too, in case someone tries to build that with a 2.0w gcc.
4217 #
4218 gcc_cflags_optlist="arch"
4219 gcc_testlist="sizeof-long-4"
4220 SPEED_CYCLECOUNTER_OBJ=hppa.lo
4221 cyclecounter_size=1
4222
4223 # FIXME: For hppa2.0*, path should be "pa32/hppa2_0 pa32/hppa1_1 pa32".
4224 # (Can't remember why this isn't done already, have to check what .asm
4225 # files are available in each and how they run on a typical 2.0 cpu.)
4226 #
4227 case $host_cpu in
4228 hppa1.0*) path="pa32" ;;
4229 hppa7000*) path="pa32/hppa1_1 pa32" ;;
4230 hppa2.0* | hppa64)
4231 path="pa32/hppa2_0 pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
4232 *) # default to 7100
4233 path="pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
4234 esac
4235
4236 # gcc 2.7.2.3 knows -mpa-risc-1-0 and -mpa-risc-1-1
4237 # gcc 2.95 adds -mpa-risc-2-0, plus synonyms -march=1.0, 1.1 and 2.0
4238 #
4239 # We don't use -mpa-risc-2-0 in ABI=1.0 because 64-bit registers may not
4240 # be saved by the kernel on an old system. Actually gcc (as of 3.2)
4241 # only adds a few float instructions with -mpa-risc-2-0, so it would
4242 # probably be safe, but let's not take the chance. In any case, a
4243 # configuration like --host=hppa2.0 ABI=1.0 is far from optimal.
4244 #
4245 case $host_cpu in
4246 hppa1.0*) gcc_cflags_arch="-mpa-risc-1-0" ;;
4247 *) # default to 7100
4248 gcc_cflags_arch="-mpa-risc-1-1" ;;
4249 esac
4250
4251 case $host_cpu in
4252 hppa1.0*) cc_cflags="+O2" ;;
4253 *) # default to 7100
4254 cc_cflags="+DA1.1 +O2" ;;
4255 esac
4256
4257 case $host in
4258 hppa2.0*-*-* | hppa64-*-*)
4259 cclist_20n="gcc cc"
4260 abilist="2.0n 1.0"
4261 path_20n="pa64"
4262 limb_20n=longlong
4263 any_20n_testlist="sizeof-long-4"
4264 SPEED_CYCLECOUNTER_OBJ_20n=hppa2.lo
4265 cyclecounter_size_20n=2
4266
4267 # -mpa-risc-2-0 is only an optional flag, in case an old gcc is
4268 # used. Assembler support for 2.0 is essential though, for our asm
4269 # files.
4270 gcc_20n_cflags="$gcc_cflags"
4271 gcc_20n_cflags_optlist="arch"
4272 gcc_20n_cflags_arch="-mpa-risc-2-0 -mpa-risc-1-1"
4273 gcc_20n_testlist="sizeof-long-4 hppa-level-2.0"
4274
4275 cc_20n_cflags="+DA2.0 +e +O2 -Wl,+vnocompatwarnings"
4276 cc_20n_testlist="hpc-hppa-2-0"
4277
4278 # ABI=2.0w is available for hppa2.0w and hppa2.0, but not for
4279 # hppa2.0n, on the assumption that that the latter indicates a
4280 # desire for ABI=2.0n.
4281 case $host in
4282 hppa2.0n-*-*) ;;
4283 *)
4284 # HPUX 10 and earlier cannot run 2.0w. Not sure about other
4285 # systems (GNU/Linux for instance), but lets assume they're ok.
4286 case $host in
4287 *-*-hpux[1-9] | *-*-hpux[1-9].* | *-*-hpux10 | *-*-hpux10.*) ;;
4288 *-*-linux*) abilist="1.0" ;; # due to linux permanent kernel bug
4289 *) abilist="2.0w $abilist" ;;
4290 esac
4291
4292 cclist_20w="gcc cc"
4293 gcc_20w_cflags="$gcc_cflags -mpa-risc-2-0"
4294 cc_20w_cflags="+DD64 +O2"
4295 cc_20w_testlist="hpc-hppa-2-0"
4296 path_20w="pa64"
4297 any_20w_testlist="sizeof-long-8"
4298 SPEED_CYCLECOUNTER_OBJ_20w=hppa2w.lo
4299 cyclecounter_size_20w=2
4300 ;;
4301 esac
4302 ;;
4303 esac
4304 ;;
4305
4306
4307 i960*-*-*)
4308 path="i960"
4309 ;;
4310
4311
4312 ia64*-*-* | itanium-*-* | itanium2-*-*)
4313 abilist="64"
4314
4315 echo "include_mpn(\`ia64/ia64-defs.m4')" >> $gmp_tmpconfigm4i
4316
4317 SPEED_CYCLECOUNTER_OBJ=ia64.lo
4318 any_32_testlist="sizeof-long-4"
4319
4320 case $host_cpu in
4321 itanium) path="ia64/itanium ia64" ;;
4322 itanium2) path="ia64/itanium2 ia64" ;;
4323 *) path="ia64" ;;
4324 esac
4325
4326 gcc_64_cflags_optlist="tune"
4327 gcc_32_cflags_optlist=$gcc_64_cflags_optlist
4328
4329 # gcc pre-release 3.4 adds -mtune itanium and itanium2
4330 case $host_cpu in
4331 itanium) gcc_cflags_tune="-mtune=itanium" ;;
4332 itanium2) gcc_cflags_tune="-mtune=itanium2" ;;
4333 esac
4334
4335 case $host in
4336 *-*-linux*)
4337 cclist="gcc icc"
4338 icc_cflags="-no-gcc"
4339 icc_cflags_optlist="opt"
4340 # Don't use -O3, it is for "large data sets" and also miscompiles GMP.
4341 # But icc miscompiles GMP at any optimization level, at higher levels
4342 # it miscompiles more files...
4343 icc_cflags_opt="-O2 -O1"
4344 ;;
4345
4346 *-*-hpux*)
4347 # HP cc sometimes gets internal errors if the optimization level is
4348 # too high. GMP_PROG_CC_WORKS detects this, the "_opt" fallbacks
4349 # let us use whatever seems to work.
4350 #
4351 abilist="32 64"
4352 any_64_testlist="sizeof-long-8"
4353
4354 cclist_32="gcc cc"
4355 path_32="ia64"
4356 cc_32_cflags=""
4357 cc_32_cflags_optlist="opt"
4358 cc_32_cflags_opt="+O3 +O2 +O1"
4359 gcc_32_cflags="$gcc_cflags -milp32"
4360 limb_32=longlong
4361 SPEED_CYCLECOUNTER_OBJ_32=ia64.lo
4362 cyclecounter_size_32=2
4363
4364 # Must have +DD64 in CPPFLAGS to get the right __LP64__ for headers,
4365 # but also need it in CFLAGS for linking programs, since automake
4366 # only uses CFLAGS when linking, not CPPFLAGS.
4367 # FIXME: Maybe should use cc_64_ldflags for this, but that would
4368 # need GMP_LDFLAGS used consistently by all the programs.
4369 #
4370 cc_64_cflags="+DD64"
4371 cc_64_cppflags="+DD64"
4372 cc_64_cflags_optlist="opt"
4373 cc_64_cflags_opt="+O3 +O2 +O1"
4374 gcc_64_cflags="$gcc_cflags -mlp64"
4375 ;;
4376 esac
4377 ;;
4378
4379
4380 # Motorola Coldfire
4381 #
4382 m5407-*-*)
4383
4384 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4385 gcc_cflags_optlist="arch"
4386 gcc_cflags_arch="-m5407"
4387 ;;
4388
4389
4390 # Motorola 68k
4391 #
4392 m68k-*-* | m68[0-9][0-9][0-9]-*-*)
4393 $as_echo "#define HAVE_HOST_CPU_FAMILY_m68k 1" >>confdefs.h
4394
4395
4396 echo "include_mpn(\`m68k/m68k-defs.m4')" >> $gmp_tmpconfigm4i
4397
4398 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4399 gcc_cflags_optlist="arch"
4400
4401 # gcc 2.7.2 knows -m68000, -m68020, -m68030, -m68040.
4402 # gcc 2.95 adds -mcpu32, -m68060.
4403 # FIXME: Maybe "-m68020 -mnobitfield" would suit cpu32 on 2.7.2.
4404 #
4405 case $host_cpu in
4406 m68020) gcc_cflags_arch="-m68020" ;;
4407 m68030) gcc_cflags_arch="-m68030" ;;
4408 m68040) gcc_cflags_arch="-m68040" ;;
4409 m68060) gcc_cflags_arch="-m68060 -m68000" ;;
4410 m68360) gcc_cflags_arch="-mcpu32 -m68000" ;;
4411 *) gcc_cflags_arch="-m68000" ;;
4412 esac
4413
4414 # FIXME: m68k/mc68020 looks like it's ok for cpu32, but this wants to be
4415 # tested. Will need to introduce an m68k/cpu32 if m68k/mc68020 ever uses
4416 # the bitfield instructions.
4417 case $host_cpu in
4418 m680[234]0 | m68360) path="m68k/mc68020 m68k" ;;
4419 *) path="m68k" ;;
4420 esac
4421 ;;
4422
4423
4424 # Motorola 88k
4425 m88k*-*-*)
4426 path="m88k"
4427 ;;
4428 m88110*-*-*)
4429 gcc_cflags="$gcc_cflags -m88110"
4430 path="m88k/mc88110 m88k"
4431 ;;
4432
4433
4434 # National Semiconductor 32k
4435 ns32k*-*-*)
4436 path="ns32k"
4437 ;;
4438
4439
4440 # IRIX 5 and earlier can only run 32-bit o32.
4441 #
4442 # IRIX 6 and up always has a 64-bit mips CPU can run n32 or 64. n32 is
4443 # preferred over 64, but only because that's been the default in past
4444 # versions of GMP. The two are equally efficient.
4445 #
4446 # Linux kernel 2.2.13 arch/mips/kernel/irixelf.c has a comment about not
4447 # supporting n32 or 64.
4448 #
4449 # For reference, libtool (eg. 1.5.6) recognises the n32 ABI and knows the
4450 # right options to use when linking (both cc and gcc), so no need for
4451 # anything special from us.
4452 #
4453 mips*-*-*)
4454 abilist="o32"
4455 gcc_cflags_optlist="abi"
4456 gcc_cflags_abi="-mabi=32"
4457 gcc_testlist="gcc-mips-o32"
4458 path="mips32"
4459 cc_cflags="-O2 -o32" # no -g, it disables all optimizations
4460 # this suits both mips32 and mips64
4461
4462 echo "include_mpn(\`mips32/mips-defs.m4')" >> $gmp_tmpconfigm4i
4463
4464
4465 case $host in
4466 mips64*-*-* | mips*-*-irix[6789]*)
4467 abilist="n32 64 o32"
4468
4469 cclist_n32="gcc cc"
4470 gcc_n32_cflags="$gcc_cflags -mabi=n32"
4471 cc_n32_cflags="-O2 -n32" # no -g, it disables all optimizations
4472 limb_n32=longlong
4473 path_n32="mips64"
4474
4475 cclist_64="gcc cc"
4476 gcc_64_cflags="$gcc_cflags -mabi=64"
4477 gcc_64_ldflags="-Wc,-mabi=64"
4478 cc_64_cflags="-O2 -64" # no -g, it disables all optimizations
4479 cc_64_ldflags="-Wc,-64"
4480 path_64="mips64"
4481 ;;
4482 esac
4483 ;;
4484
4485
4486 # Darwin (powerpc-apple-darwin1.3) has it's hacked gcc installed as cc.
4487 # Our usual "gcc in disguise" detection means gcc_cflags etc here gets
4488 # used.
4489 #
4490 # The darwin pre-compiling preprocessor is disabled with -no-cpp-precomp
4491 # since it doesn't like "__attribute__ ((mode (SI)))" etc in gmp-impl.h,
4492 # and so always ends up running the plain preprocessor anyway. This could
4493 # be done in CPPFLAGS rather than CFLAGS, but there's not many places
4494 # preprocessing is done separately, and this is only a speedup, the normal
4495 # preprocessor gets run if there's any problems.
4496 #
4497 # We used to use -Wa,-mppc with gcc, but can't remember exactly why.
4498 # Presumably it was for old versions of gcc where -mpowerpc doesn't put
4499 # the assembler in the right mode. In any case -Wa,-mppc is not good, for
4500 # instance -mcpu=604 makes recent gcc use -m604 to get access to the
4501 # "fsel" instruction, but a -Wa,-mppc overrides that, making code that
4502 # comes out with fsel fail.
4503 #
4504 # (Note also that the darwin assembler doesn't accept "-mppc", so any
4505 # -Wa,-mppc was used only if it worked. The right flag on darwin would be
4506 # "-arch ppc" or some such, but that's already the default.)
4507 #
4508 powerpc*-*-* | power[3-9]-*-*)
4509 $as_echo "#define HAVE_HOST_CPU_FAMILY_powerpc 1" >>confdefs.h
4510
4511 HAVE_HOST_CPU_FAMILY_powerpc=1
4512 abilist="32"
4513 cclist="gcc cc"
4514 cc_cflags="-O2"
4515 gcc_32_cflags="$gcc_cflags -mpowerpc"
4516 gcc_cflags_optlist="precomp subtype asm cpu"
4517 gcc_cflags_precomp="-no-cpp-precomp"
4518 gcc_cflags_subtype="-force_cpusubtype_ALL" # for vmx on darwin
4519 gcc_cflags_asm=""
4520 gcc_cflags_cpu=""
4521 vmx_path=""
4522
4523 # grab this object, though it's not a true cycle counter routine
4524 SPEED_CYCLECOUNTER_OBJ=powerpc.lo
4525 cyclecounter_size=0
4526
4527 case $host_cpu in
4528 powerpc740 | powerpc750)
4529 path="powerpc32/750 powerpc32" ;;
4530 powerpc7400 | powerpc7410)
4531 path="powerpc32/vmx powerpc32/750 powerpc32" ;;
4532 powerpc74[45]?)
4533 path="powerpc32/vmx powerpc32" ;;
4534 *)
4535 path="powerpc32" ;;
4536 esac
4537
4538 case $host_cpu in
4539 powerpc401) gcc_cflags_cpu="-mcpu=401" ;;
4540 powerpc403) gcc_cflags_cpu="-mcpu=403"
4541 xlc_cflags_arch="-qarch=403 -qarch=ppc" ;;
4542 powerpc405) gcc_cflags_cpu="-mcpu=405" ;;
4543 powerpc505) gcc_cflags_cpu="-mcpu=505" ;;
4544 powerpc601) gcc_cflags_cpu="-mcpu=601"
4545 xlc_cflags_arch="-qarch=601 -qarch=ppc" ;;
4546 powerpc602) gcc_cflags_cpu="-mcpu=602"
4547 xlc_cflags_arch="-qarch=602 -qarch=ppc" ;;
4548 powerpc603) gcc_cflags_cpu="-mcpu=603"
4549 xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
4550 powerpc603e) gcc_cflags_cpu="-mcpu=603e -mcpu=603"
4551 xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
4552 powerpc604) gcc_cflags_cpu="-mcpu=604"
4553 xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
4554 powerpc604e) gcc_cflags_cpu="-mcpu=604e -mcpu=604"
4555 xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
4556 powerpc620) gcc_cflags_cpu="-mcpu=620" ;;
4557 powerpc630) gcc_cflags_cpu="-mcpu=630"
4558 xlc_cflags_arch="-qarch=pwr3"
4559 cpu_path="p3 p3-p7" ;;
4560 powerpc740) gcc_cflags_cpu="-mcpu=740" ;;
4561 powerpc7400 | powerpc7410)
4562 gcc_cflags_asm="-Wa,-maltivec"
4563 gcc_cflags_cpu="-mcpu=7400 -mcpu=750" ;;
4564 powerpc74[45]?)
4565 gcc_cflags_asm="-Wa,-maltivec"
4566 gcc_cflags_cpu="-mcpu=7450" ;;
4567 powerpc750) gcc_cflags_cpu="-mcpu=750" ;;
4568 powerpc801) gcc_cflags_cpu="-mcpu=801" ;;
4569 powerpc821) gcc_cflags_cpu="-mcpu=821" ;;
4570 powerpc823) gcc_cflags_cpu="-mcpu=823" ;;
4571 powerpc860) gcc_cflags_cpu="-mcpu=860" ;;
4572 powerpc970) gcc_cflags_cpu="-mtune=970"
4573 xlc_cflags_arch="-qarch=970 -qarch=pwr3"
4574 vmx_path="powerpc64/vmx"
4575 cpu_path="p4 p3-p7" ;;
4576 power4) gcc_cflags_cpu="-mtune=power4"
4577 xlc_cflags_arch="-qarch=pwr4"
4578 cpu_path="p4 p3-p7" ;;
4579 power5) gcc_cflags_cpu="-mtune=power5 -mtune=power4"
4580 xlc_cflags_arch="-qarch=pwr5"
4581 cpu_path="p5 p4 p3-p7" ;;
4582 power6) gcc_cflags_cpu="-mtune=power6"
4583 xlc_cflags_arch="-qarch=pwr6"
4584 cpu_path="p6 p3-p7" ;;
4585 power7) gcc_cflags_cpu="-mtune=power7 -mtune=power5"
4586 xlc_cflags_arch="-qarch=pwr7 -qarch=pwr5"
4587 cpu_path="p7 p5 p4 p3-p7" ;;
4588 esac
4589
4590 case $host in
4591 *-*-aix*)
4592 cclist="gcc xlc cc"
4593 gcc_32_cflags_maybe="-maix32"
4594 xlc_cflags="-O2 -qmaxmem=20000"
4595 xlc_cflags_optlist="arch"
4596 xlc_32_cflags_maybe="-q32"
4597 ar_32_flags="-X32"
4598 nm_32_flags="-X32"
4599 esac
4600
4601 case $host in
4602 powerpc64-*-* | powerpc64le-*-* | powerpc620-*-* | powerpc630-*-* | powerpc970-*-* | power[3-9]-*-*)
4603 case $host in
4604 *-*-aix*)
4605 # On AIX a true 64-bit ABI is available.
4606 # Need -Wc to pass object type flags through to the linker.
4607 abilist="mode64 $abilist"
4608 cclist_mode64="gcc xlc"
4609 gcc_mode64_cflags="$gcc_cflags -maix64 -mpowerpc64"
4610 gcc_mode64_cflags_optlist="cpu"
4611 gcc_mode64_ldflags="-Wc,-maix64"
4612 xlc_mode64_cflags="-O2 -q64 -qmaxmem=20000"
4613 xlc_mode64_cflags_optlist="arch"
4614 xlc_mode64_ldflags="-Wc,-q64"
4615 # Must indicate object type to ar and nm
4616 ar_mode64_flags="-X64"
4617 nm_mode64_flags="-X64"
4618 path_mode64=""
4619 p=""
4620 for i in $cpu_path
4621 do path_mode64="${path_mode64}powerpc64/mode64/$i "
4622 path_mode64="${path_mode64}powerpc64/$i "
4623 p="${p} powerpc32/$i "
4624 done
4625 path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64"
4626 path="$p $path"
4627 # grab this object, though it's not a true cycle counter routine
4628 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
4629 cyclecounter_size_mode64=0
4630 ;;
4631 *-*-darwin*)
4632 # On Darwin we can use 64-bit instructions with a longlong limb,
4633 # but the chip still in 32-bit mode.
4634 # In theory this can be used on any OS which knows how to save
4635 # 64-bit registers in a context switch.
4636 #
4637 # Note that we must use -mpowerpc64 with gcc, since the
4638 # longlong.h macros expect limb operands in a single 64-bit
4639 # register, not two 32-bit registers as would be given for a
4640 # long long without -mpowerpc64. In theory we could detect and
4641 # accommodate both styles, but the proper 64-bit registers will
4642 # be fastest and are what we really want to use.
4643 #
4644 # One would think -mpowerpc64 would set the assembler in the right
4645 # mode to handle 64-bit instructions. But for that, also
4646 # -force_cpusubtype_ALL is needed.
4647 #
4648 # Do not use -fast for Darwin, it actually adds options
4649 # incompatible with a shared library.
4650 #
4651 abilist="mode64 mode32 $abilist"
4652 gcc_32_cflags_maybe="-m32"
4653 gcc_cflags_opt="-O3 -O2 -O1" # will this become used?
4654 cclist_mode32="gcc"
4655 gcc_mode32_cflags_maybe="-m32"
4656 gcc_mode32_cflags="-mpowerpc64"
4657 gcc_mode32_cflags_optlist="subtype cpu opt"
4658 gcc_mode32_cflags_subtype="-force_cpusubtype_ALL"
4659 gcc_mode32_cflags_opt="-O3 -O2 -O1"
4660 limb_mode32=longlong
4661 cclist_mode64="gcc"
4662 gcc_mode64_cflags="-m64"
4663 gcc_mode64_cflags_optlist="cpu opt"
4664 gcc_mode64_cflags_opt="-O3 -O2 -O1"
4665 path_mode64=""
4666 path_mode32=""
4667 p=""
4668 for i in $cpu_path
4669 do path_mode64="${path_mode64}powerpc64/mode64/$i "
4670 path_mode64="${path_mode64}powerpc64/$i "
4671 path_mode32="${path_mode32}powerpc64/mode32/$i "
4672 path_mode32="${path_mode32}powerpc64/$i "
4673 p="${p} powerpc32/$i "
4674 done
4675 path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64"
4676 path_mode32="${path_mode32}powerpc64/mode32 $vmx_path powerpc64"
4677 path="$p $path"
4678 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
4679 cyclecounter_size_mode64=0
4680 any_mode64_testlist="sizeof-long-8"
4681 ;;
4682 *-*-linux* | *-*-*bsd*)
4683 # On GNU/Linux, assume the processor is in 64-bit mode. Some
4684 # environments have a gcc that is always in 64-bit mode, while
4685 # others require -m64, hence the use of cflags_maybe. The
4686 # sizeof-long-8 test checks the mode is right (for the no option
4687 # case).
4688 #
4689 # -mpowerpc64 is not used, since it should be the default in
4690 # 64-bit mode. (We need its effect for the various longlong.h
4691 # asm macros to be right of course.)
4692 #
4693 # gcc64 was an early port of gcc to 64-bit mode, but should be
4694 # obsolete before too long. We prefer plain gcc when it knows
4695 # 64-bits.
4696 #
4697 abilist="mode64 mode32 $abilist"
4698 gcc_32_cflags_maybe="-m32"
4699 cclist_mode32="gcc"
4700 gcc_mode32_cflags_maybe="-m32"
4701 gcc_mode32_cflags="-mpowerpc64"
4702 gcc_mode32_cflags_optlist="cpu opt"
4703 gcc_mode32_cflags_opt="-O3 -O2 -O1"
4704 limb_mode32=longlong
4705 cclist_mode64="gcc gcc64"
4706 gcc_mode64_cflags_maybe="-m64"
4707 gcc_mode64_cflags_optlist="cpu opt"
4708 gcc_mode64_cflags_opt="-O3 -O2 -O1"
4709 path_mode64=""
4710 path_mode32=""
4711 p=""
4712 for i in $cpu_path
4713 do path_mode64="${path_mode64}powerpc64/mode64/$i "
4714 path_mode64="${path_mode64}powerpc64/$i "
4715 path_mode32="${path_mode32}powerpc64/mode32/$i "
4716 path_mode32="${path_mode32}powerpc64/$i "
4717 p="${p} powerpc32/$i "
4718 done
4719 path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64"
4720 path_mode32="${path_mode32}powerpc64/mode32 $vmx_path powerpc64"
4721 path="$p $path"
4722 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
4723 cyclecounter_size_mode64=0
4724 any_mode64_testlist="sizeof-long-8"
4725 ;;
4726 esac
4727 ;;
4728 esac
4729 ;;
4730
4731
4732 # POWER 32-bit
4733 power-*-* | power[12]-*-* | power2sc-*-*)
4734 $as_echo "#define HAVE_HOST_CPU_FAMILY_power 1" >>confdefs.h
4735
4736 HAVE_HOST_CPU_FAMILY_power=1
4737 cclist="gcc"
4738 extra_functions="udiv_w_sdiv"
4739 path="power"
4740
4741 # gcc 2.7.2 knows rios1, rios2, rsc
4742 #
4743 # -mcpu=rios2 can tickle an AIX assembler bug (see GMP_PROG_CC_WORKS) so
4744 # there needs to be a fallback to just -mpower.
4745 #
4746 gcc_cflags_optlist="cpu"
4747 case $host in
4748 power-*-*) gcc_cflags_cpu="-mcpu=power -mpower" ;;
4749 power1-*-*) gcc_cflags_cpu="-mcpu=rios1 -mpower" ;;
4750 power2-*-*) gcc_cflags_cpu="-mcpu=rios2 -mpower" ;;
4751 power2sc-*-*) gcc_cflags_cpu="-mcpu=rsc -mpower" ;;
4752 esac
4753 case $host in
4754 *-*-aix*)
4755 cclist="gcc xlc"
4756 xlc_cflags="-O2 -qarch=pwr -qmaxmem=20000"
4757 ;;
4758 esac
4759 ;;
4760
4761
4762 pyramid-*-*)
4763 path="pyr"
4764 ;;
4765
4766
4767 # IBM System/390 and z/Architecture
4768 s390-*-* | z900esa-*-* | z990esa-*-* | z9esa-*-* | z10esa-*-* | z196esa-*-* | s390x-*-* | z900-*-* | z990-*-* | z9-*-* | z10-*-* | z196-*-*)
4769 abilist="32"
4770 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4771 gcc_cflags_optlist="arch"
4772 path="s390_32"
4773 extra_functions="udiv_w_sdiv"
4774 gcc_32_cflags_maybe="-m31"
4775
4776 case $host_cpu in
4777 s390)
4778 ;;
4779 z900 | z900esa)
4780 cpu="z900"
4781 gccarch="$cpu"
4782 path="s390_32/esame/$cpu s390_32/esame s390_32"
4783 gcc_cflags_arch="-march=$gccarch"
4784 cat >>confdefs.h <<_ACEOF
4785 #define HAVE_HOST_CPU_s390_$cpu 1
4786 _ACEOF
4787
4788 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4789
4790 extra_functions=""
4791 ;;
4792 z990 | z990esa)
4793 cpu="z990"
4794 gccarch="$cpu"
4795 path="s390_32/esame/$cpu s390_32/esame s390_32"
4796 gcc_cflags_arch="-march=$gccarch"
4797 cat >>confdefs.h <<_ACEOF
4798 #define HAVE_HOST_CPU_s390_$cpu 1
4799 _ACEOF
4800
4801 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4802
4803 extra_functions=""
4804 ;;
4805 z9 | z9esa)
4806 cpu="z9"
4807 gccarch="z9-109"
4808 path="s390_32/esame/$cpu s390_32/esame s390_32"
4809 gcc_cflags_arch="-march=$gccarch"
4810 cat >>confdefs.h <<_ACEOF
4811 #define HAVE_HOST_CPU_s390_$cpu 1
4812 _ACEOF
4813
4814 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4815
4816 extra_functions=""
4817 ;;
4818 z10 | z10esa)
4819 cpu="z10"
4820 gccarch="z10"
4821 path="s390_32/esame/$cpu s390_32/esame s390_32"
4822 gcc_cflags_arch="-march=$gccarch"
4823 cat >>confdefs.h <<_ACEOF
4824 #define HAVE_HOST_CPU_s390_$cpu 1
4825 _ACEOF
4826
4827 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4828
4829 extra_functions=""
4830 ;;
4831 z196 | z196esa)
4832 cpu="z196"
4833 gccarch="z196"
4834 path="s390_32/esame/$cpu s390_32/esame s390_32"
4835 gcc_cflags_arch="-march=$gccarch"
4836 cat >>confdefs.h <<_ACEOF
4837 #define HAVE_HOST_CPU_s390_$cpu 1
4838 _ACEOF
4839
4840 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4841
4842 extra_functions=""
4843 ;;
4844 esac
4845
4846 case $host in
4847 s390x-*-* | z900-*-* | z990-*-* | z9-*-* | z10-*-* | z196-*-*)
4848 abilist="64 32"
4849 cclist_64="gcc"
4850 gcc_64_cflags_optlist="arch"
4851 gcc_64_cflags="$gcc_cflags -m64"
4852 path_64="s390_64/$host_cpu s390_64"
4853 extra_functions=""
4854 ;;
4855 esac
4856 ;;
4857
4858
4859 sh-*-*) path="sh" ;;
4860 sh[2-4]-*-*) path="sh/sh2 sh" ;;
4861
4862
4863 *sparc*-*-*)
4864 # sizeof(long)==4 or 8 is tested, to ensure we get the right ABI. We've
4865 # had various bug reports where users have set CFLAGS for their desired
4866 # mode, but not set our ABI. For some reason it's sparc where this
4867 # keeps coming up, presumably users there are accustomed to driving the
4868 # compiler mode that way. The effect of our testlist setting is to
4869 # reject ABI=64 in favour of ABI=32 if the user has forced the flags to
4870 # 32-bit mode.
4871 #
4872 abilist="32"
4873 cclist="gcc acc cc"
4874 any_testlist="sizeof-long-4"
4875
4876 echo "include_mpn(\`sparc32/sparc-defs.m4')" >> $gmp_tmpconfigm4i
4877
4878
4879 case $host_cpu in
4880 sparcv8 | microsparc | turbosparc)
4881 path="sparc32/v8 sparc32" ;;
4882 supersparc)
4883 path="sparc32/v8/supersparc sparc32/v8 sparc32" ;;
4884 sparc64 | sparcv9* | ultrasparc | ultrasparc[234]*)
4885 path="sparc32/v9 sparc32/v8 sparc32" ;;
4886 ultrasparct[12345])
4887 path="sparc32/ultrasparct1 sparc32/v8 sparc32" ;;
4888 *)
4889 path="sparc32" ;;
4890 esac
4891
4892 # gcc 2.7.2 doesn't know about v9 and doesn't pass -xarch=v8plus to the
4893 # assembler. Add it explicitly since the solaris assembler won't accept
4894 # our sparc32/v9 asm code without it. gas accepts -xarch=v8plus too, so
4895 # it can be in the cflags unconditionally (though gas doesn't need it).
4896 #
4897 # gcc -m32 is needed to force 32-bit mode on a dual-ABI system, but past
4898 # gcc doesn't know that flag, hence cflags_maybe. Note that -m32 cannot
4899 # be done through the optlist since the plain cflags would be run first
4900 # and we don't want to require the default mode (whatever it is) works.
4901 #
4902 # Note it's gcc_32_cflags_maybe and not gcc_cflags_maybe because the
4903 # latter would be used in the 64-bit ABI on systems like "*bsd" where
4904 # abilist="64" only.
4905 #
4906 case $host_cpu in
4907 ultrasparct[345])
4908 gcc_32_cflags="$gcc_cflags -Wa,-xarch=v8plusd" ;;
4909 sparc64 | sparcv9* | ultrasparc*)
4910 gcc_32_cflags="$gcc_cflags -Wa,-xarch=v8plus" ;;
4911 esac
4912 gcc_32_cflags_maybe="-m32"
4913 gcc_cflags_optlist="cpu"
4914
4915 # gcc 2.7.2 knows -mcypress, -msupersparc, -mv8, -msparclite.
4916 # gcc 2.95 knows -mcpu= v7, hypersparc, sparclite86x, f930, f934,
4917 # sparclet, tsc701, v9, ultrasparc. A warning is given that the
4918 # plain -m forms will disappear.
4919 # gcc 3.0 adds nothing.
4920 # gcc 3.1 adds nothing.
4921 # gcc 3.2 adds nothing.
4922 # gcc 3.3 adds ultrasparc3.
4923 #
4924 case $host_cpu in
4925 supersparc) gcc_cflags_cpu="-mcpu=supersparc -msupersparc" ;;
4926 sparcv8 | microsparc | turbosparc)
4927 gcc_cflags_cpu="-mcpu=v8 -mv8" ;;
4928 sparc64 | sparcv9*) gcc_cflags_cpu="-mcpu=v9 -mv8" ;;
4929 ultrasparc3) gcc_cflags_cpu="-mcpu=ultrasparc3 -mcpu=ultrasparc -mv8" ;;
4930 ultrasparc*) gcc_cflags_cpu="-mcpu=ultrasparc -mv8" ;;
4931 *) gcc_cflags_cpu="-mcpu=v7 -mcypress" ;;
4932 esac
4933
4934 # SunPRO cc and acc, and SunOS bundled cc
4935 case $host in
4936 *-*-solaris* | *-*-sunos*)
4937 # Note no -g, it disables all optimizations.
4938 cc_cflags=
4939 cc_cflags_optlist="opt arch cpu"
4940
4941 # SunOS cc doesn't know -xO4, fallback to -O2.
4942 cc_cflags_opt="-xO4 -O2"
4943
4944 # SunOS cc doesn't know -xarch, apparently always generating v7
4945 # code, so make this optional
4946 case $host_cpu in
4947 sparcv8 | microsparc | supersparc | turbosparc)
4948 cc_cflags_arch="-xarch=v8" ;;
4949 ultrasparct[345]) cc_cflags_arch="-xarch=v8plusd" ;;
4950 sparc64 | sparcv9* | ultrasparc*) cc_cflags_arch="-xarch=v8plus" ;;
4951 *) cc_cflags_arch="-xarch=v7" ;;
4952 esac
4953
4954 # SunOS cc doesn't know -xchip and doesn't seem to have an equivalent.
4955 # SunPRO cc 5 recognises -xchip=generic, old, super, super2, micro,
4956 # micro2, hyper, hyper2, powerup, ultra, ultra2, ultra2i.
4957 # SunPRO cc 6 adds -xchip=ultra2e, ultra3cu.
4958 #
4959 # FIXME: Which of ultra, ultra2 or ultra2i is the best fallback for
4960 # ultrasparc3?
4961 #
4962 case $host_cpu in
4963 supersparc) cc_cflags_cpu="-xchip=super" ;;
4964 microsparc) cc_cflags_cpu="-xchip=micro" ;;
4965 turbosparc) cc_cflags_cpu="-xchip=micro2" ;;
4966 ultrasparc) cc_cflags_cpu="-xchip=ultra" ;;
4967 ultrasparc2) cc_cflags_cpu="-xchip=ultra2" ;;
4968 ultrasparc2i) cc_cflags_cpu="-xchip=ultra2i" ;;
4969 ultrasparc3) cc_cflags_cpu="-xchip=ultra3 -xchip=ultra" ;;
4970 *) cc_cflags_cpu="-xchip=generic" ;;
4971 esac
4972 esac
4973
4974 case $host_cpu in
4975 sparc64 | sparcv9* | ultrasparc*)
4976 case $host in
4977 # Solaris 6 and earlier cannot run ABI=64 since it doesn't save
4978 # registers properly, so ABI=32 is left as the only choice.
4979 #
4980 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
4981
4982 # BSD sparc64 ports are 64-bit-only systems, so ABI=64 is the only
4983 # choice. In fact they need no special compiler flags, gcc -m64
4984 # is the default, but it doesn't hurt to add it. v9 CPUs always
4985 # use the sparc64 port, since the plain 32-bit sparc ports don't
4986 # run on a v9.
4987 #
4988 *-*-*bsd*) abilist="64" ;;
4989
4990 # For all other systems, we try both 64 and 32.
4991 #
4992 # GNU/Linux sparc64 has only recently gained a 64-bit user mode.
4993 # In the past sparc64 meant a v9 cpu, but there were no 64-bit
4994 # operations in user mode. We assume that if "gcc -m64" works
4995 # then the system is suitable. Hopefully even if someone attempts
4996 # to put a new gcc and/or glibc on an old system it won't run.
4997 #
4998 *) abilist="64 32" ;;
4999 esac
5000
5001 case $host_cpu in
5002 ultrasparc | ultrasparc2 | ultrasparc2i)
5003 path_64="sparc64/ultrasparc1234 sparc64" ;;
5004 ultrasparc[34])
5005 path_64="sparc64/ultrasparc34 sparc64/ultrasparc1234 sparc64" ;;
5006 ultrasparct[12345])
5007 path_64="sparc64/ultrasparct1 sparc64" ;;
5008 *)
5009 path_64="sparc64"
5010 esac
5011
5012 cclist_64="gcc"
5013 any_64_testlist="sizeof-long-8"
5014
5015 # gcc -mptr64 is probably implied by -m64, but we're not sure if
5016 # this was always so. On Solaris in the past we always used both
5017 # "-m64 -mptr64".
5018 #
5019 # gcc -Wa,-xarch=v9 is thought to be necessary in some cases on
5020 # solaris, but it would seem likely that if gcc is going to generate
5021 # 64-bit code it will have to add that option itself where needed.
5022 # An extra copy of this option should be harmless though, but leave
5023 # it until we're sure. (Might want -xarch=v9a or -xarch=v9b for the
5024 # higher cpu types instead.)
5025 #
5026 gcc_64_cflags="$gcc_cflags -m64 -mptr64"
5027 gcc_64_ldflags="-Wc,-m64"
5028 gcc_64_cflags_optlist="cpu"
5029
5030 case $host in
5031 *-*-solaris*)
5032 # Sun cc.
5033 #
5034 # We used to have -fast and some fixup options here, but it
5035 # recurrently caused problems with miscompilation. Of course,
5036 # -fast is documented as miscompiling things for the sake of speed.
5037 #
5038 cclist_64="$cclist_64 cc"
5039 cc_64_cflags="-xO3 -xarch=v9"
5040 cc_64_cflags_optlist="cpu"
5041 ;;
5042 esac
5043
5044 # using the v9 %tick register
5045 SPEED_CYCLECOUNTER_OBJ_32=sparcv9.lo
5046 SPEED_CYCLECOUNTER_OBJ_64=sparcv9.lo
5047 cyclecounter_size_32=2
5048 cyclecounter_size_64=2
5049 ;;
5050 esac
5051 ;;
5052
5053
5054 # VAX
5055 vax*-*-*elf*)
5056 # Use elf conventions (i.e., '%' register prefix, no global prefix)
5057 #
5058
5059 echo "include_mpn(\`vax/elf.m4')" >> $gmp_tmpconfigm4i
5060
5061 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
5062 path="vax"
5063 extra_functions="udiv_w_sdiv"
5064 ;;
5065 vax*-*-*)
5066 # Default to aout conventions (i.e., no register prefix, '_' global prefix)
5067 #
5068 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
5069 path="vax"
5070 extra_functions="udiv_w_sdiv"
5071 ;;
5072
5073
5074 # AMD and Intel x86 configurations, including AMD64
5075 #
5076 # Rumour has it gcc -O2 used to give worse register allocation than just
5077 # -O, but lets assume that's no longer true.
5078 #
5079 # -m32 forces 32-bit mode on a bi-arch 32/64 amd64 build of gcc. -m64 is
5080 # the default in such a build (we think), so -m32 is essential for ABI=32.
5081 # This is, of course, done for any $host_cpu, not just x86_64, so we can
5082 # get such a gcc into the right mode to cross-compile to say i486-*-*.
5083 #
5084 # -m32 is not available in gcc 2.95 and earlier, hence cflags_maybe to use
5085 # it when it works. We check sizeof(long)==4 to ensure we get the right
5086 # mode, in case -m32 has failed not because it's an old gcc, but because
5087 # it's a dual 32/64-bit gcc without a 32-bit libc, or whatever.
5088 #
5089 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
5090 abilist="32"
5091 cclist="gcc icc cc"
5092 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
5093 gcc_32_cflags_maybe="-m32"
5094 icc_cflags="-no-gcc"
5095 icc_cflags_optlist="opt"
5096 icc_cflags_opt="-O3 -O2 -O1"
5097 any_32_testlist="sizeof-long-4"
5098 CALLING_CONVENTIONS_OBJS='x86call.lo x86check$U.lo'
5099
5100 # Availability of rdtsc is checked at run-time.
5101 SPEED_CYCLECOUNTER_OBJ=pentium.lo
5102
5103 # gcc 2.7.2 only knows i386 and i486, using -m386 or -m486. These
5104 # represent -mcpu= since -m486 doesn't generate 486 specific insns.
5105 # gcc 2.95 adds k6, pentium and pentiumpro, and takes -march= and -mcpu=.
5106 # gcc 3.0 adds athlon.
5107 # gcc 3.1 adds k6-2, k6-3, pentium-mmx, pentium2, pentium3, pentium4,
5108 # athlon-tbird, athlon-4, athlon-xp, athlon-mp.
5109 # gcc 3.2 adds winchip2.
5110 # gcc 3.3 adds winchip-c6.
5111 # gcc 3.3.1 from mandrake adds k8 and knows -mtune.
5112 # gcc 3.4 adds c3, c3-2, k8, and deprecates -mcpu in favour of -mtune.
5113 #
5114 # In gcc 2.95.[0123], -march=pentiumpro provoked a stack slot bug in an
5115 # old version of mpz/powm.c. Seems to be fine with the current code, so
5116 # no need for any restrictions on that option.
5117 #
5118 # -march=pentiumpro can fail if the assembler doesn't know "cmov"
5119 # (eg. solaris 2.8 native "as"), so always have -march=pentium after
5120 # that as a fallback.
5121 #
5122 # -march=pentium4 and -march=k8 enable SSE2 instructions, which may or
5123 # may not be supported by the assembler and/or the OS, and is bad in gcc
5124 # prior to 3.3. The tests will reject these if no good, so fallbacks
5125 # like "-march=pentium4 -mno-sse2" are given to try also without SSE2.
5126 # Note the relevant -march types are listed in the optflags handling
5127 # below, be sure to update there if adding new types emitting SSE2.
5128 #
5129 # -mtune is used at the start of each cpu option list to give something
5130 # gcc 3.4 will use, thereby avoiding warnings from -mcpu. -mcpu forms
5131 # are retained for use by prior gcc. For example pentium has
5132 # "-mtune=pentium -mcpu=pentium ...", the -mtune is for 3.4 and the
5133 # -mcpu for prior. If there's a brand new choice in 3.4 for a chip,
5134 # like k8 for x86_64, then it can be the -mtune at the start, no need to
5135 # duplicate anything.
5136 #
5137 gcc_cflags_optlist="cpu arch"
5138 case $host_cpu in
5139 i386*)
5140 gcc_cflags_cpu="-mtune=i386 -mcpu=i386 -m386"
5141 gcc_cflags_arch="-march=i386"
5142 path="x86"
5143 ;;
5144 i486*)
5145 gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486"
5146 gcc_cflags_arch="-march=i486"
5147 path="x86/i486 x86"
5148 ;;
5149 i586 | pentium)
5150 gcc_cflags_cpu="-mtune=pentium -mcpu=pentium -m486"
5151 gcc_cflags_arch="-march=pentium"
5152 path="x86/pentium x86"
5153 ;;
5154 pentiummmx)
5155 gcc_cflags_cpu="-mtune=pentium-mmx -mcpu=pentium-mmx -mcpu=pentium -m486"
5156 gcc_cflags_arch="-march=pentium-mmx -march=pentium"
5157 path="x86/pentium/mmx x86/pentium x86"
5158 ;;
5159 i686 | pentiumpro)
5160 gcc_cflags_cpu="-mtune=pentiumpro -mcpu=pentiumpro -mcpu=i486 -m486"
5161 gcc_cflags_arch="-march=pentiumpro -march=pentium"
5162 path="x86/p6 x86"
5163 ;;
5164 pentium2)
5165 gcc_cflags_cpu="-mtune=pentium2 -mcpu=pentium2 -mcpu=pentiumpro -mcpu=i486 -m486"
5166 gcc_cflags_arch="-march=pentium2 -march=pentiumpro -march=pentium"
5167 path="x86/p6/mmx x86/p6 x86"
5168 ;;
5169 pentium3)
5170 gcc_cflags_cpu="-mtune=pentium3 -mcpu=pentium3 -mcpu=pentiumpro -mcpu=i486 -m486"
5171 gcc_cflags_arch="-march=pentium3 -march=pentiumpro -march=pentium"
5172 path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86"
5173 ;;
5174 pentiumm)
5175 gcc_cflags_cpu="-mtune=pentium3 -mcpu=pentium3 -mcpu=pentiumpro -mcpu=i486 -m486"
5176 gcc_cflags_arch="-march=pentium3 -march=pentiumpro -march=pentium"
5177 path="x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86"
5178 ;;
5179 k6)
5180 gcc_cflags_cpu="-mtune=k6 -mcpu=k6 -mcpu=i486 -m486"
5181 gcc_cflags_arch="-march=k6"
5182 path="x86/k6/mmx x86/k6 x86"
5183 ;;
5184 k62)
5185 gcc_cflags_cpu="-mtune=k6-2 -mcpu=k6-2 -mcpu=k6 -mcpu=i486 -m486"
5186 gcc_cflags_arch="-march=k6-2 -march=k6"
5187 path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86"
5188 ;;
5189 k63)
5190 gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486"
5191 gcc_cflags_arch="-march=k6-3 -march=k6"
5192 path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86"
5193 ;;
5194 geode)
5195 gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486"
5196 gcc_cflags_arch="-march=k6-3 -march=k6"
5197 path="x86/geode x86/k6/k62mmx x86/k6/mmx x86/k6 x86"
5198 ;;
5199 athlon)
5200 # Athlon instruction costs are close to P6 (3 cycle load latency,
5201 # 4-6 cycle mul, 40 cycle div, pairable adc, etc) so if gcc doesn't
5202 # know athlon (eg. 2.95.2 doesn't) then fall back on pentiumpro.
5203 gcc_cflags_cpu="-mtune=athlon -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
5204 gcc_cflags_arch="-march=athlon -march=pentiumpro -march=pentium"
5205 path="x86/k7/mmx x86/k7 x86"
5206 ;;
5207 i786 | pentium4)
5208 # pentiumpro is the primary fallback when gcc doesn't know pentium4.
5209 # This gets us cmov to eliminate branches. Maybe "athlon" would be
5210 # a possibility on gcc 3.0.
5211 #
5212 gcc_cflags_cpu="-mtune=pentium4 -mcpu=pentium4 -mcpu=pentiumpro -mcpu=i486 -m486"
5213 gcc_cflags_arch="-march=pentium4 -march=pentium4~-mno-sse2 -march=pentiumpro -march=pentium"
5214 gcc_64_cflags_cpu="-mtune=nocona"
5215 path="x86/pentium4/sse2 x86/pentium4/mmx x86/pentium4 x86"
5216 path_64="x86_64/pentium4 x86_64"
5217 ;;
5218 viac32)
5219 # Not sure of the best fallbacks here for -mcpu.
5220 # c3-2 has sse and mmx, so pentium3 is good for -march.
5221 gcc_cflags_cpu="-mtune=c3-2 -mcpu=c3-2 -mcpu=i486 -m486"
5222 gcc_cflags_arch="-march=c3-2 -march=pentium3 -march=pentiumpro -march=pentium"
5223 path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86"
5224 ;;
5225 viac3*)
5226 # Not sure of the best fallbacks here.
5227 gcc_cflags_cpu="-mtune=c3 -mcpu=c3 -mcpu=i486 -m486"
5228 gcc_cflags_arch="-march=c3 -march=pentium-mmx -march=pentium"
5229 path="x86/pentium/mmx x86/pentium x86"
5230 ;;
5231 athlon64 | k8 | x86_64)
5232 gcc_cflags_cpu="-mtune=k8 -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
5233 gcc_cflags_arch="-march=k8 -march=k8~-mno-sse2 -march=athlon -march=pentiumpro -march=pentium"
5234 path="x86/k8 x86/k7/mmx x86/k7 x86"
5235 path_64="x86_64/k8 x86_64"
5236 ;;
5237 k10)
5238 gcc_cflags_cpu="-mtune=amdfam10 -mtune=k8"
5239 gcc_cflags_arch="-march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5240 path="x86/k10 x86/k8 x86/k7/mmx x86/k7 x86"
5241 path_64="x86_64/k10 x86_64/k8 x86_64"
5242 ;;
5243 bobcat)
5244 gcc_cflags_cpu="-mtune=btver1 -mtune=amdfam10 -mtune=k8"
5245 gcc_cflags_arch="-march=btver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5246 path="x86/bobcat x86/k7/mmx x86/k7 x86"
5247 path_64="x86_64/bobcat x86_64/k10 x86_64/k8 x86_64"
5248 ;;
5249 bulldozer | bd1)
5250 gcc_cflags_cpu="-mtune=bdver1 -mtune=amdfam10 -mtune=k8"
5251 gcc_cflags_arch="-march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5252 path="x86/bd1 x86/k7/mmx x86/k7 x86"
5253 path_64="x86_64/bd1 x86_64/k10 x86_64/k8 x86_64"
5254 ;;
5255 core2)
5256 gcc_cflags_cpu="-mtune=core2 -mtune=k8"
5257 gcc_cflags_arch="-march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
5258 path="x86/core2 x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86"
5259 path_64="x86_64/core2 x86_64"
5260 ;;
5261 corei | coreinhm | coreiwsm)
5262 gcc_cflags_cpu="-mtune=corei7 -mtune=core2 -mtune=k8"
5263 gcc_cflags_arch="-march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
5264 path="x86/coreinhm x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86"
5265 path_64="x86_64/coreinhm x86_64/core2 x86_64"
5266 ;;
5267 coreisbr | coreihwl | coreibwl)
5268 gcc_cflags_cpu="-mtune=corei7 -mtune=core2 -mtune=k8"
5269 gcc_cflags_arch="-march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
5270 path="x86/coreisbr x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86"
5271 path_64="x86_64/coreisbr x86_64/coreinhm x86_64/core2 x86_64"
5272 ;;
5273 atom)
5274 gcc_cflags_cpu="-mtune=atom -mtune=pentium3"
5275 gcc_cflags_arch="-march=atom -march=pentium3"
5276 path="x86/atom/sse2 x86/atom/mmx x86/atom x86"
5277 path_64="x86_64/atom x86_64"
5278 ;;
5279 nano)
5280 gcc_cflags_cpu="-mtune=nano"
5281 gcc_cflags_arch="-march=nano"
5282 path="x86/nano x86"
5283 path_64="x86_64/nano x86_64"
5284 ;;
5285 *)
5286 gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486"
5287 gcc_cflags_arch="-march=i486"
5288 path="x86"
5289 path_64="x86_64"
5290 ;;
5291 esac
5292
5293 case $host in
5294 athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
5295 cclist_64="gcc"
5296 gcc_64_cflags="$gcc_cflags -m64"
5297 gcc_64_cflags_optlist="cpu arch"
5298 CALLING_CONVENTIONS_OBJS_64='amd64call.lo amd64check$U.lo'
5299 SPEED_CYCLECOUNTER_OBJ_64=x86_64.lo
5300 cyclecounter_size_64=2
5301
5302 cclist_x32="gcc"
5303 gcc_x32_cflags="$gcc_cflags -mx32"
5304 gcc_x32_cflags_optlist="$gcc_64_cflags_optlist"
5305 CALLING_CONVENTIONS_OBJS_x32="$CALLING_CONVENTIONS_OBJS_64"
5306 SPEED_CYCLECOUNTER_OBJ_x32="$SPEED_CYCLECOUNTER_OBJ_64"
5307 cyclecounter_size_x32="$cyclecounter_size_64"
5308 path_x32="$path_64"
5309 limb_x32=longlong
5310 any_x32_testlist="sizeof-long-4"
5311
5312 abilist="64 x32 32"
5313 if test "$enable_assembly" = "yes" ; then
5314 extra_functions_64="invert_limb_table"
5315 extra_functions_x32=$extra_functions_64
5316 fi
5317
5318 case $host in
5319 *-*-solaris*)
5320 # Sun cc.
5321 cclist_64="$cclist_64 cc"
5322 cc_64_cflags="-xO3 -m64"
5323 ;;
5324 *-*-mingw* | *-*-cygwin)
5325 limb_64=longlong
5326 CALLING_CONVENTIONS_OBJS_64=""
5327
5328 $as_echo "#define HOST_DOS64 1" >>confdefs.h
5329
5330 GMP_NONSTD_ABI_64=DOS64
5331 ;;
5332 esac
5333 ;;
5334 esac
5335 ;;
5336
5337
5338 # FIXME: z8kx won't get through config.sub. Could make 16 versus 32 bit
5339 # limb an ABI option perhaps.
5340 z8kx*-*-*)
5341 path="z8000x"
5342 extra_functions="udiv_w_sdiv"
5343 ;;
5344 z8k*-*-*)
5345 path="z8000"
5346 extra_functions="udiv_w_sdiv"
5347 ;;
5348
5349
5350 # Special CPU "none" used to select generic C, now this is obsolete.
5351 none-*-*)
5352 enable_assembly=no
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the \"none\" host is obsolete, use --disable-assembly" >&5
5354 $as_echo "$as_me: WARNING: the \"none\" host is obsolete, use --disable-assembly" >&2;}
5355 ;;
5356
5357 esac
5358
5359 # mingw can be built by the cygwin gcc if -mno-cygwin is added. For
5360 # convenience add this automatically if it works. Actual mingw gcc accepts
5361 # -mno-cygwin too, but of course is the default. mingw only runs on the
5362 # x86s, but allow any CPU here so as to catch "none" too.
5363 #
5364 case $host in
5365 *-*-mingw*)
5366 gcc_cflags_optlist="$gcc_cflags_optlist nocygwin"
5367 gcc_cflags_nocygwin="-mno-cygwin"
5368 ;;
5369 esac
5370
5371
5372 CFLAGS_or_unset=${CFLAGS-'(unset)'}
5373 CPPFLAGS_or_unset=${CPPFLAGS-'(unset)'}
5374
5375 cat >&5 <<EOF
5376 User:
5377 ABI=$ABI
5378 CC=$CC
5379 CFLAGS=$CFLAGS_or_unset
5380 CPPFLAGS=$CPPFLAGS_or_unset
5381 MPN_PATH=$MPN_PATH
5382 GMP:
5383 abilist=$abilist
5384 cclist=$cclist
5385 EOF
5386
5387
5388 test_CFLAGS=${CFLAGS+set}
5389 test_CPPFLAGS=${CPPFLAGS+set}
5390
5391 for abi in $abilist; do
5392 abi_last="$abi"
5393 done
5394
5395 # If the user specifies an ABI then it must be in $abilist, after that
5396 # $abilist is restricted to just that choice.
5397 #
5398 if test -n "$ABI"; then
5399 found=no
5400 for abi in $abilist; do
5401 if test $abi = "$ABI"; then found=yes; break; fi
5402 done
5403 if test $found = no; then
5404 as_fn_error $? "ABI=$ABI is not among the following valid choices: $abilist" "$LINENO" 5
5405 fi
5406 abilist="$ABI"
5407 fi
5408
5409 found_compiler=no
5410
5411 for abi in $abilist; do
5412
5413 echo "checking ABI=$abi"
5414
5415 # Suppose abilist="64 32", then for abi=64, will have abi1="_64" and
5416 # abi2="_64". For abi=32, will have abi1="_32" and abi2="". This is how
5417 # $gcc_cflags becomes a fallback for $gcc_32_cflags (the last in the
5418 # abilist), but there's no fallback for $gcc_64_cflags.
5419 #
5420 abi1=`echo _$abi | sed 's/[.]//g'`
5421 if test $abi = $abi_last; then abi2=; else abi2="$abi1"; fi
5422
5423 # Compiler choices under this ABI
5424 eval cclist_chosen=\"\$cclist$abi1\"
5425 test -n "$cclist_chosen" || eval cclist_chosen=\"\$cclist$abi2\"
5426
5427 # If there's a user specified $CC then don't use a list for
5428 # $cclist_chosen, just a single value for $ccbase.
5429 #
5430 if test -n "$CC"; then
5431
5432 # The first word of $CC, stripped of any directory. For instance
5433 # CC="/usr/local/bin/gcc -pipe" will give "gcc".
5434 #
5435 for ccbase in $CC; do break; done
5436 ccbase=`echo $ccbase | sed 's:.*/::'`
5437
5438 # If this $ccbase is in $cclist_chosen then it's a compiler we know and
5439 # we can do flags defaulting with it. If not, then $cclist_chosen is
5440 # set to "unrecognised" so no default flags are used.
5441 #
5442 # "unrecognised" is used to avoid bad effects with eval if $ccbase has
5443 # non-symbol characters. For instance ccbase=my+cc would end up with
5444 # something like cflags="$my+cc_cflags" which would give
5445 # cflags="+cc_cflags" rather than the intended empty string for an
5446 # unknown compiler.
5447 #
5448 found=unrecognised
5449 for i in $cclist_chosen; do
5450 if test "$ccbase" = $i; then
5451 found=$ccbase
5452 break
5453 fi
5454 done
5455 cclist_chosen=$found
5456 fi
5457
5458 for ccbase in $cclist_chosen; do
5459
5460 # When cross compiling, look for a compiler with the $host_alias as a
5461 # prefix, the same way that AC_CHECK_TOOL does. But don't do this to a
5462 # user-selected $CC.
5463 #
5464 # $cross_compiling will be yes/no/maybe at this point. Do the host
5465 # prefixing for "maybe" as well as "yes".
5466 #
5467 if test "$cross_compiling" != no && test -z "$CC"; then
5468 cross_compiling_prefix="${host_alias}-"
5469 fi
5470
5471 for ccprefix in $cross_compiling_prefix ""; do
5472
5473 cc="$CC"
5474 test -n "$cc" || cc="$ccprefix$ccbase"
5475
5476 # If the compiler is gcc but installed under another name, then change
5477 # $ccbase so as to use the flags we know for gcc. This helps for
5478 # instance when specifying CC=gcc272 on Debian GNU/Linux, or the
5479 # native cc which is really gcc on NeXT or MacOS-X.
5480 #
5481 # FIXME: There's a slight misfeature here. If cc is actually gcc but
5482 # gcc is not a known compiler under this $abi then we'll end up
5483 # testing it with no flags and it'll work, but chances are it won't be
5484 # in the right mode for the ABI we desire. Let's quietly hope this
5485 # doesn't happen.
5486 #
5487 if test $ccbase != gcc; then
5488 cat >conftest.c <<EOF
5489 #if ! defined (__GNUC__) || defined (__INTEL_COMPILER)
5490 choke me
5491 #endif
5492 EOF
5493 gmp_compile="$cc -c conftest.c >&5"
5494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5495 (eval $gmp_compile) 2>&5
5496 ac_status=$?
5497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5498 test $ac_status = 0; }; then
5499 rm -f conftest*
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $cc is gcc" >&5
5501 $as_echo_n "checking whether $cc is gcc... " >&6; }
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5503 $as_echo "yes" >&6; }
5504 ccbase=gcc
5505 else
5506 rm -f conftest*
5507 :
5508 fi
5509
5510 fi
5511
5512 # Similarly if the compiler is IBM xlc but invoked as cc or whatever
5513 # then change $ccbase and make the default xlc flags available.
5514 if test $ccbase != xlc; then
5515 gmp_command="$cc 2>&1 | grep xlc >/dev/null"
5516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_command\""; } >&5
5517 (eval $gmp_command) 2>&5
5518 ac_status=$?
5519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5520 test $ac_status = 0; }; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $cc is xlc" >&5
5522 $as_echo_n "checking whether $cc is xlc... " >&6; }
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5524 $as_echo "yes" >&6; }
5525 ccbase=xlc
5526 else
5527 :
5528 fi
5529
5530 fi
5531
5532 # acc was Sun's first unbundled compiler back in the SunOS days, or
5533 # something like that, but today its man page says it's not meant to
5534 # be used directly (instead via /usr/ucb/cc). The options are pretty
5535 # much the same as the main SunPRO cc, so share those configs.
5536 #
5537 case $host in
5538 *sparc*-*-solaris* | *sparc*-*-sunos*)
5539 if test "$ccbase" = acc; then ccbase=cc; fi ;;
5540 esac
5541
5542 for tmp_cflags_maybe in yes no; do
5543 eval cflags=\"\$${ccbase}${abi1}_cflags\"
5544 test -n "$cflags" || eval cflags=\"\$${ccbase}${abi2}_cflags\"
5545
5546 if test "$tmp_cflags_maybe" = yes; then
5547 # don't try cflags_maybe when the user set CFLAGS
5548 if test "$test_CFLAGS" = set; then continue; fi
5549 eval cflags_maybe=\"\$${ccbase}${abi1}_cflags_maybe\"
5550 test -n "$cflags_maybe" || eval cflags_maybe=\"\$${ccbase}${abi2}_cflags_maybe\"
5551 # don't try cflags_maybe if there's nothing set
5552 if test -z "$cflags_maybe"; then continue; fi
5553 cflags="$cflags_maybe $cflags"
5554 fi
5555
5556 # Any user CFLAGS, even an empty string, takes precedence
5557 if test "$test_CFLAGS" = set; then cflags=$CFLAGS; fi
5558
5559 # Any user CPPFLAGS, even an empty string, takes precedence
5560 eval cppflags=\"\$${ccbase}${abi1}_cppflags\"
5561 test -n "$cppflags" || eval cppflags=\"\$${ccbase}${abi2}_cppflags\"
5562 if test "$test_CPPFLAGS" = set; then cppflags=$CPPFLAGS; fi
5563
5564 # --enable-profiling adds -p/-pg even to user-specified CFLAGS.
5565 # This is convenient, but it's perhaps a bit naughty to modify user
5566 # CFLAGS.
5567 case "$enable_profiling" in
5568 prof) cflags="$cflags -p" ;;
5569 gprof) cflags="$cflags -pg" ;;
5570 instrument) cflags="$cflags -finstrument-functions" ;;
5571 esac
5572
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags" >&5
5574 $as_echo_n "checking compiler $cc $cflags $cppflags... " >&6; }
5575 gmp_prog_cc_works=yes
5576
5577 # first see a simple "main()" works, then go on to other checks
5578 if test "$gmp_prog_cc_works" = yes; then
5579 # remove anything that might look like compiler output to our "||" expression
5580 rm -f conftest* a.out b.out a.exe a_out.exe
5581 cat >conftest.c <<EOF
5582
5583 int main () { return 0; }
5584 EOF
5585 echo "Test compile: " >&5
5586 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5588 (eval $gmp_compile) 2>&5
5589 ac_status=$?
5590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5591 test $ac_status = 0; }; then
5592 cc_works_part=yes
5593 if test "$cross_compiling" = no; then
5594 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5596 (eval $ac_try) 2>&5
5597 ac_status=$?
5598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5599 test $ac_status = 0; }; }; then :;
5600 else
5601 cc_works_part=norun
5602 fi
5603 fi
5604 else
5605 cc_works_part=no
5606 fi
5607 if test "$cc_works_part" != yes; then
5608 echo "failed program was:" >&5
5609 cat conftest.c >&5
5610 fi
5611 rm -f conftest* a.out b.out a.exe a_out.exe
5612 case $cc_works_part in
5613 yes)
5614
5615 ;;
5616 no)
5617 gmp_prog_cc_works="no"
5618 ;;
5619 norun)
5620 gmp_prog_cc_works="no, program does not run"
5621 ;;
5622 esac
5623 fi
5624
5625
5626
5627
5628 if test "$gmp_prog_cc_works" = yes; then
5629 # remove anything that might look like compiler output to our "||" expression
5630 rm -f conftest* a.out b.out a.exe a_out.exe
5631 cat >conftest.c <<EOF
5632 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
5633 (without -maix64), hence detecting an unusable compiler */
5634 void *g() { return (void *) 0; }
5635 void *f() { return g(); }
5636
5637 int main () { return 0; }
5638 EOF
5639 echo "Test compile: function pointer return" >&5
5640 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5642 (eval $gmp_compile) 2>&5
5643 ac_status=$?
5644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5645 test $ac_status = 0; }; then
5646 cc_works_part=yes
5647 if test "$cross_compiling" = no; then
5648 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5650 (eval $ac_try) 2>&5
5651 ac_status=$?
5652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5653 test $ac_status = 0; }; }; then :;
5654 else
5655 cc_works_part=norun
5656 fi
5657 fi
5658 else
5659 cc_works_part=no
5660 fi
5661 if test "$cc_works_part" != yes; then
5662 echo "failed program was:" >&5
5663 cat conftest.c >&5
5664 fi
5665 rm -f conftest* a.out b.out a.exe a_out.exe
5666 case $cc_works_part in
5667 yes)
5668
5669 ;;
5670 no)
5671 gmp_prog_cc_works="no, function pointer return"
5672 ;;
5673 norun)
5674 gmp_prog_cc_works="no, function pointer return, program does not run"
5675 ;;
5676 esac
5677 fi
5678
5679
5680
5681
5682 if test "$gmp_prog_cc_works" = yes; then
5683 # remove anything that might look like compiler output to our "||" expression
5684 rm -f conftest* a.out b.out a.exe a_out.exe
5685 cat >conftest.c <<EOF
5686 /* The following provokes an invalid instruction syntax from i386 gcc
5687 -march=pentiumpro on Solaris 2.8. The native sun assembler
5688 requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
5689 least) doesn't know. */
5690 int n;
5691 int cmov () { return (n >= 0 ? n : 0); }
5692
5693 int main () { return 0; }
5694 EOF
5695 echo "Test compile: cmov instruction" >&5
5696 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5698 (eval $gmp_compile) 2>&5
5699 ac_status=$?
5700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5701 test $ac_status = 0; }; then
5702 cc_works_part=yes
5703 if test "$cross_compiling" = no; then
5704 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5706 (eval $ac_try) 2>&5
5707 ac_status=$?
5708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5709 test $ac_status = 0; }; }; then :;
5710 else
5711 cc_works_part=norun
5712 fi
5713 fi
5714 else
5715 cc_works_part=no
5716 fi
5717 if test "$cc_works_part" != yes; then
5718 echo "failed program was:" >&5
5719 cat conftest.c >&5
5720 fi
5721 rm -f conftest* a.out b.out a.exe a_out.exe
5722 case $cc_works_part in
5723 yes)
5724
5725 ;;
5726 no)
5727 gmp_prog_cc_works="no, cmov instruction"
5728 ;;
5729 norun)
5730 gmp_prog_cc_works="no, cmov instruction, program does not run"
5731 ;;
5732 esac
5733 fi
5734
5735
5736
5737
5738 if test "$gmp_prog_cc_works" = yes; then
5739 # remove anything that might look like compiler output to our "||" expression
5740 rm -f conftest* a.out b.out a.exe a_out.exe
5741 cat >conftest.c <<EOF
5742 /* The following provokes a linker invocation problem with gcc 3.0.3
5743 on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630
5744 option causes gcc to incorrectly select the 32-bit libgcc.a, not
5745 the 64-bit one, and consequently it misses out on the __fixunsdfdi
5746 helper (double -> uint64 conversion). */
5747 double d;
5748 unsigned long gcc303 () { return (unsigned long) d; }
5749
5750 int main () { return 0; }
5751 EOF
5752 echo "Test compile: double -> ulong conversion" >&5
5753 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5755 (eval $gmp_compile) 2>&5
5756 ac_status=$?
5757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5758 test $ac_status = 0; }; then
5759 cc_works_part=yes
5760 if test "$cross_compiling" = no; then
5761 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5763 (eval $ac_try) 2>&5
5764 ac_status=$?
5765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5766 test $ac_status = 0; }; }; then :;
5767 else
5768 cc_works_part=norun
5769 fi
5770 fi
5771 else
5772 cc_works_part=no
5773 fi
5774 if test "$cc_works_part" != yes; then
5775 echo "failed program was:" >&5
5776 cat conftest.c >&5
5777 fi
5778 rm -f conftest* a.out b.out a.exe a_out.exe
5779 case $cc_works_part in
5780 yes)
5781
5782 ;;
5783 no)
5784 gmp_prog_cc_works="no, double -> ulong conversion"
5785 ;;
5786 norun)
5787 gmp_prog_cc_works="no, double -> ulong conversion, program does not run"
5788 ;;
5789 esac
5790 fi
5791
5792
5793
5794
5795 if test "$gmp_prog_cc_works" = yes; then
5796 # remove anything that might look like compiler output to our "||" expression
5797 rm -f conftest* a.out b.out a.exe a_out.exe
5798 cat >conftest.c <<EOF
5799 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
5800 the assembler doesn't know hppa 2.0 instructions. fneg is a 2.0
5801 instruction, and a negation like this comes out using it. */
5802 double fneg_data;
5803 unsigned long fneg () { return -fneg_data; }
5804
5805 int main () { return 0; }
5806 EOF
5807 echo "Test compile: double negation" >&5
5808 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5810 (eval $gmp_compile) 2>&5
5811 ac_status=$?
5812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5813 test $ac_status = 0; }; then
5814 cc_works_part=yes
5815 if test "$cross_compiling" = no; then
5816 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5818 (eval $ac_try) 2>&5
5819 ac_status=$?
5820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5821 test $ac_status = 0; }; }; then :;
5822 else
5823 cc_works_part=norun
5824 fi
5825 fi
5826 else
5827 cc_works_part=no
5828 fi
5829 if test "$cc_works_part" != yes; then
5830 echo "failed program was:" >&5
5831 cat conftest.c >&5
5832 fi
5833 rm -f conftest* a.out b.out a.exe a_out.exe
5834 case $cc_works_part in
5835 yes)
5836
5837 ;;
5838 no)
5839 gmp_prog_cc_works="no, double negation"
5840 ;;
5841 norun)
5842 gmp_prog_cc_works="no, double negation, program does not run"
5843 ;;
5844 esac
5845 fi
5846
5847
5848
5849
5850 if test "$gmp_prog_cc_works" = yes; then
5851 # remove anything that might look like compiler output to our "||" expression
5852 rm -f conftest* a.out b.out a.exe a_out.exe
5853 cat >conftest.c <<EOF
5854 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
5855 (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
5856 those instructions. Not sure how much of the gmp code will come out
5857 wanting sse2, but it's easiest to reject an option we know is bad. */
5858 double ftod_data;
5859 float ftod () { return (float) ftod_data; }
5860
5861 int main () { return 0; }
5862 EOF
5863 echo "Test compile: double -> float conversion" >&5
5864 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5866 (eval $gmp_compile) 2>&5
5867 ac_status=$?
5868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5869 test $ac_status = 0; }; then
5870 cc_works_part=yes
5871 if test "$cross_compiling" = no; then
5872 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5874 (eval $ac_try) 2>&5
5875 ac_status=$?
5876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5877 test $ac_status = 0; }; }; then :;
5878 else
5879 cc_works_part=norun
5880 fi
5881 fi
5882 else
5883 cc_works_part=no
5884 fi
5885 if test "$cc_works_part" != yes; then
5886 echo "failed program was:" >&5
5887 cat conftest.c >&5
5888 fi
5889 rm -f conftest* a.out b.out a.exe a_out.exe
5890 case $cc_works_part in
5891 yes)
5892
5893 ;;
5894 no)
5895 gmp_prog_cc_works="no, double -> float conversion"
5896 ;;
5897 norun)
5898 gmp_prog_cc_works="no, double -> float conversion, program does not run"
5899 ;;
5900 esac
5901 fi
5902
5903
5904
5905
5906 if test "$gmp_prog_cc_works" = yes; then
5907 # remove anything that might look like compiler output to our "||" expression
5908 rm -f conftest* a.out b.out a.exe a_out.exe
5909 cat >conftest.c <<EOF
5910 /* The following provokes an internal compiler error from gcc version
5911 "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
5912 values being spilled into floating point registers. The problem doesn't
5913 show up all the time, but has occurred enough in GMP for us to reject
5914 this compiler+flags. */
5915 #include <string.h> /* for memcpy */
5916 struct try_t
5917 {
5918 char dst[2];
5919 char size;
5920 long d0, d1, d2, d3, d4, d5, d6;
5921 char overlap;
5922 };
5923 struct try_t param[6];
5924 int
5925 param_init ()
5926 {
5927 struct try_t *p;
5928 memcpy (p, ¶m[ 2 ], sizeof (*p));
5929 memcpy (p, ¶m[ 2 ], sizeof (*p));
5930 p->size = 2;
5931 memcpy (p, ¶m[ 1 ], sizeof (*p));
5932 p->dst[0] = 1;
5933 p->overlap = 2;
5934 memcpy (p, ¶m[ 3 ], sizeof (*p));
5935 p->dst[0] = 1;
5936 p->overlap = 8;
5937 memcpy (p, ¶m[ 4 ], sizeof (*p));
5938 memcpy (p, ¶m[ 4 ], sizeof (*p));
5939 p->overlap = 8;
5940 memcpy (p, ¶m[ 5 ], sizeof (*p));
5941 memcpy (p, ¶m[ 5 ], sizeof (*p));
5942 memcpy (p, ¶m[ 5 ], sizeof (*p));
5943 return 0;
5944 }
5945
5946 int main () { return 0; }
5947 EOF
5948 echo "Test compile: gnupro alpha ev6 char spilling" >&5
5949 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5951 (eval $gmp_compile) 2>&5
5952 ac_status=$?
5953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5954 test $ac_status = 0; }; then
5955 cc_works_part=yes
5956 if test "$cross_compiling" = no; then
5957 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5959 (eval $ac_try) 2>&5
5960 ac_status=$?
5961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5962 test $ac_status = 0; }; }; then :;
5963 else
5964 cc_works_part=norun
5965 fi
5966 fi
5967 else
5968 cc_works_part=no
5969 fi
5970 if test "$cc_works_part" != yes; then
5971 echo "failed program was:" >&5
5972 cat conftest.c >&5
5973 fi
5974 rm -f conftest* a.out b.out a.exe a_out.exe
5975 case $cc_works_part in
5976 yes)
5977
5978 ;;
5979 no)
5980 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling"
5981 ;;
5982 norun)
5983 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run"
5984 ;;
5985 esac
5986 fi
5987
5988
5989
5990
5991 # __builtin_alloca is not available everywhere, check it exists before
5992 # seeing that it works
5993 if test "$gmp_prog_cc_works" = yes; then
5994 # remove anything that might look like compiler output to our "||" expression
5995 rm -f conftest* a.out b.out a.exe a_out.exe
5996 cat >conftest.c <<EOF
5997 int k; int foo () { __builtin_alloca (k); }
5998 EOF
5999 echo "Test compile: __builtin_alloca availability" >&5
6000 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6002 (eval $gmp_compile) 2>&5
6003 ac_status=$?
6004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6005 test $ac_status = 0; }; then
6006 cc_works_part=yes
6007 if test "$cross_compiling" = no; then
6008 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6010 (eval $ac_try) 2>&5
6011 ac_status=$?
6012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6013 test $ac_status = 0; }; }; then :;
6014 else
6015 cc_works_part=norun
6016 fi
6017 fi
6018 else
6019 cc_works_part=no
6020 fi
6021 if test "$cc_works_part" != yes; then
6022 echo "failed program was:" >&5
6023 cat conftest.c >&5
6024 fi
6025 rm -f conftest* a.out b.out a.exe a_out.exe
6026 case $cc_works_part in
6027 yes)
6028 if test "$gmp_prog_cc_works" = yes; then
6029 # remove anything that might look like compiler output to our "||" expression
6030 rm -f conftest* a.out b.out a.exe a_out.exe
6031 cat >conftest.c <<EOF
6032 /* The following provokes an internal compiler error from Itanium HP-UX cc
6033 under +O2 or higher. We use this sort of code in mpn/generic/mul_fft.c. */
6034 int k;
6035 int foo ()
6036 {
6037 int i, **a;
6038 a = __builtin_alloca (k);
6039 for (i = 0; i <= k; i++)
6040 a[i] = __builtin_alloca (1 << i);
6041 }
6042
6043 int main () { return 0; }
6044 EOF
6045 echo "Test compile: alloca array" >&5
6046 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6048 (eval $gmp_compile) 2>&5
6049 ac_status=$?
6050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6051 test $ac_status = 0; }; then
6052 cc_works_part=yes
6053 if test "$cross_compiling" = no; then
6054 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6056 (eval $ac_try) 2>&5
6057 ac_status=$?
6058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6059 test $ac_status = 0; }; }; then :;
6060 else
6061 cc_works_part=norun
6062 fi
6063 fi
6064 else
6065 cc_works_part=no
6066 fi
6067 if test "$cc_works_part" != yes; then
6068 echo "failed program was:" >&5
6069 cat conftest.c >&5
6070 fi
6071 rm -f conftest* a.out b.out a.exe a_out.exe
6072 case $cc_works_part in
6073 yes)
6074
6075 ;;
6076 no)
6077 gmp_prog_cc_works="no, alloca array"
6078 ;;
6079 norun)
6080 gmp_prog_cc_works="no, alloca array, program does not run"
6081 ;;
6082 esac
6083 fi
6084
6085
6086
6087 ;;
6088 no)
6089
6090 ;;
6091 norun)
6092
6093 ;;
6094 esac
6095 fi
6096
6097
6098 if test "$gmp_prog_cc_works" = yes; then
6099 # remove anything that might look like compiler output to our "||" expression
6100 rm -f conftest* a.out b.out a.exe a_out.exe
6101 cat >conftest.c <<EOF
6102 /* The following provokes an internal error from the assembler on
6103 power2-ibm-aix4.3.1.0. gcc -mrios2 compiles to nabs+fcirz, and this
6104 results in "Internal error related to the source program domain".
6105
6106 For reference it seems to be the combination of nabs+fcirz which is bad,
6107 not either alone. This sort of thing occurs in mpz/get_str.c with the
6108 way double chars_per_bit_exactly is applied in MPN_SIZEINBASE. Perhaps
6109 if that code changes to a scaled-integer style then we won't need this
6110 test. */
6111
6112 double fp[1];
6113 int x;
6114 int f ()
6115 {
6116 int a;
6117 a = (x >= 0 ? x : -x);
6118 return a * fp[0];
6119 }
6120
6121 int main () { return 0; }
6122 EOF
6123 echo "Test compile: abs int -> double conversion" >&5
6124 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6126 (eval $gmp_compile) 2>&5
6127 ac_status=$?
6128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6129 test $ac_status = 0; }; then
6130 cc_works_part=yes
6131 if test "$cross_compiling" = no; then
6132 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6134 (eval $ac_try) 2>&5
6135 ac_status=$?
6136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6137 test $ac_status = 0; }; }; then :;
6138 else
6139 cc_works_part=norun
6140 fi
6141 fi
6142 else
6143 cc_works_part=no
6144 fi
6145 if test "$cc_works_part" != yes; then
6146 echo "failed program was:" >&5
6147 cat conftest.c >&5
6148 fi
6149 rm -f conftest* a.out b.out a.exe a_out.exe
6150 case $cc_works_part in
6151 yes)
6152
6153 ;;
6154 no)
6155 gmp_prog_cc_works="no, abs int -> double conversion"
6156 ;;
6157 norun)
6158 gmp_prog_cc_works="no, abs int -> double conversion, program does not run"
6159 ;;
6160 esac
6161 fi
6162
6163
6164
6165
6166 if test "$gmp_prog_cc_works" = yes; then
6167 # remove anything that might look like compiler output to our "||" expression
6168 rm -f conftest* a.out b.out a.exe a_out.exe
6169 cat >conftest.c <<EOF
6170 /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
6171 Extracted from tests/mpn/t-iord_u.c. Causes Apple's gcc 3.3 build 1640 and
6172 1666 to segfault with e.g., -O2 -mpowerpc64. */
6173
6174 #if defined (__GNUC__) && ! defined (__cplusplus)
6175 typedef unsigned long long t1;typedef t1*t2;
6176 static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
6177 {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;}
6178 f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
6179 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();}}
6180 h(){}g(){}
6181 #else
6182 int dummy;
6183 #endif
6184
6185 int main () { return 0; }
6186 EOF
6187 echo "Test compile: long long reliability test 1" >&5
6188 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6190 (eval $gmp_compile) 2>&5
6191 ac_status=$?
6192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6193 test $ac_status = 0; }; then
6194 cc_works_part=yes
6195 if test "$cross_compiling" = no; then
6196 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6198 (eval $ac_try) 2>&5
6199 ac_status=$?
6200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6201 test $ac_status = 0; }; }; then :;
6202 else
6203 cc_works_part=norun
6204 fi
6205 fi
6206 else
6207 cc_works_part=no
6208 fi
6209 if test "$cc_works_part" != yes; then
6210 echo "failed program was:" >&5
6211 cat conftest.c >&5
6212 fi
6213 rm -f conftest* a.out b.out a.exe a_out.exe
6214 case $cc_works_part in
6215 yes)
6216
6217 ;;
6218 no)
6219 gmp_prog_cc_works="no, long long reliability test 1"
6220 ;;
6221 norun)
6222 gmp_prog_cc_works="no, long long reliability test 1, program does not run"
6223 ;;
6224 esac
6225 fi
6226
6227
6228
6229
6230 if test "$gmp_prog_cc_works" = yes; then
6231 # remove anything that might look like compiler output to our "||" expression
6232 rm -f conftest* a.out b.out a.exe a_out.exe
6233 cat >conftest.c <<EOF
6234 /* The following provokes an internal compiler error on powerpc-apple-darwin.
6235 Extracted from mpz/cfdiv_q_2exp.c. Causes Apple's gcc 3.3 build 1640 and
6236 1666 to get an ICE with -O1 -mpowerpc64. */
6237
6238 #if defined (__GNUC__) && ! defined (__cplusplus)
6239 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();}
6240 g(){}
6241 #else
6242 int dummy;
6243 #endif
6244
6245 int main () { return 0; }
6246 EOF
6247 echo "Test compile: long long reliability test 2" >&5
6248 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6250 (eval $gmp_compile) 2>&5
6251 ac_status=$?
6252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6253 test $ac_status = 0; }; then
6254 cc_works_part=yes
6255 if test "$cross_compiling" = no; then
6256 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6258 (eval $ac_try) 2>&5
6259 ac_status=$?
6260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6261 test $ac_status = 0; }; }; then :;
6262 else
6263 cc_works_part=norun
6264 fi
6265 fi
6266 else
6267 cc_works_part=no
6268 fi
6269 if test "$cc_works_part" != yes; then
6270 echo "failed program was:" >&5
6271 cat conftest.c >&5
6272 fi
6273 rm -f conftest* a.out b.out a.exe a_out.exe
6274 case $cc_works_part in
6275 yes)
6276
6277 ;;
6278 no)
6279 gmp_prog_cc_works="no, long long reliability test 2"
6280 ;;
6281 norun)
6282 gmp_prog_cc_works="no, long long reliability test 2, program does not run"
6283 ;;
6284 esac
6285 fi
6286
6287
6288
6289
6290 if test "$gmp_prog_cc_works" = yes; then
6291 # remove anything that might look like compiler output to our "||" expression
6292 rm -f conftest* a.out b.out a.exe a_out.exe
6293 cat >conftest.c <<EOF
6294 /* The following is mis-compiled by HP ia-64 cc version
6295 cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
6296 under "cc +O3", both in +DD32 and +DD64 modes. The mpn_lshift_com gets
6297 inlined and its return value somehow botched to be 0 instead of 1. This
6298 arises in the real mpn_lshift_com in mul_fft.c. A lower optimization
6299 level, like +O2 seems ok. This code needs to be run to show the problem,
6300 but that's fine, the offending cc is a native-only compiler so we don't
6301 have to worry about cross compiling. */
6302
6303 #if ! defined (__cplusplus)
6304 unsigned long
6305 lshift_com (rp, up, n, cnt)
6306 unsigned long *rp;
6307 unsigned long *up;
6308 long n;
6309 unsigned cnt;
6310 {
6311 unsigned long retval, high_limb, low_limb;
6312 unsigned tnc;
6313 long i;
6314 tnc = 8 * sizeof (unsigned long) - cnt;
6315 low_limb = *up++;
6316 retval = low_limb >> tnc;
6317 high_limb = low_limb << cnt;
6318 for (i = n - 1; i != 0; i--)
6319 {
6320 low_limb = *up++;
6321 *rp++ = ~(high_limb | (low_limb >> tnc));
6322 high_limb = low_limb << cnt;
6323 }
6324 return retval;
6325 }
6326 int
6327 main ()
6328 {
6329 unsigned long cy, rp[2], up[2];
6330 up[0] = ~ 0L;
6331 up[1] = 0;
6332 cy = lshift_com (rp, up, 2L, 1);
6333 if (cy != 1L)
6334 return 1;
6335 return 0;
6336 }
6337 #else
6338 int
6339 main ()
6340 {
6341 return 0;
6342 }
6343 #endif
6344
6345 EOF
6346 echo "Test compile: mpn_lshift_com optimization" >&5
6347 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6349 (eval $gmp_compile) 2>&5
6350 ac_status=$?
6351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6352 test $ac_status = 0; }; then
6353 cc_works_part=yes
6354 if test "$cross_compiling" = no; then
6355 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6357 (eval $ac_try) 2>&5
6358 ac_status=$?
6359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6360 test $ac_status = 0; }; }; then :;
6361 else
6362 cc_works_part=norun
6363 fi
6364 fi
6365 else
6366 cc_works_part=no
6367 fi
6368 if test "$cc_works_part" != yes; then
6369 echo "failed program was:" >&5
6370 cat conftest.c >&5
6371 fi
6372 rm -f conftest* a.out b.out a.exe a_out.exe
6373 case $cc_works_part in
6374 yes)
6375
6376 ;;
6377 no)
6378 gmp_prog_cc_works="no, mpn_lshift_com optimization"
6379 ;;
6380 norun)
6381 gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run"
6382 ;;
6383 esac
6384 fi
6385
6386
6387
6388 if test "$gmp_prog_cc_works" = yes; then
6389 # remove anything that might look like compiler output to our "||" expression
6390 rm -f conftest* a.out b.out a.exe a_out.exe
6391 cat >conftest.c <<EOF
6392 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
6393 "icc -O3", After several calls, the function writes parial garbage to
6394 the result vector. Perhaps relates to the chk.a.nc insn. This code needs
6395 to be run to show the problem, but that's fine, the offending cc is a
6396 native-only compiler so we don't have to worry about cross compiling. */
6397
6398 #if ! defined (__cplusplus)
6399 #include <stdlib.h>
6400 void
6401 lshift_com (rp, up, n, cnt)
6402 unsigned long *rp;
6403 unsigned long *up;
6404 long n;
6405 unsigned cnt;
6406 {
6407 unsigned long high_limb, low_limb;
6408 unsigned tnc;
6409 long i;
6410 up += n;
6411 rp += n;
6412 tnc = 8 * sizeof (unsigned long) - cnt;
6413 low_limb = *--up;
6414 high_limb = low_limb << cnt;
6415 for (i = n - 1; i != 0; i--)
6416 {
6417 low_limb = *--up;
6418 *--rp = ~(high_limb | (low_limb >> tnc));
6419 high_limb = low_limb << cnt;
6420 }
6421 *--rp = ~high_limb;
6422 }
6423 int
6424 main ()
6425 {
6426 unsigned long *r, *r2;
6427 unsigned long a[88 + 1];
6428 long i;
6429 for (i = 0; i < 88 + 1; i++)
6430 a[i] = ~0L;
6431 r = malloc (10000 * sizeof (unsigned long));
6432 r2 = r;
6433 for (i = 0; i < 528; i += 22)
6434 {
6435 lshift_com (r2, a,
6436 i / (8 * sizeof (unsigned long)) + 1,
6437 i % (8 * sizeof (unsigned long)));
6438 r2 += 88 + 1;
6439 }
6440 if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
6441 r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
6442 abort ();
6443 return 0;
6444 }
6445 #else
6446 int
6447 main ()
6448 {
6449 return 0;
6450 }
6451 #endif
6452
6453 EOF
6454 echo "Test compile: mpn_lshift_com optimization 2" >&5
6455 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6457 (eval $gmp_compile) 2>&5
6458 ac_status=$?
6459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6460 test $ac_status = 0; }; then
6461 cc_works_part=yes
6462 if test "$cross_compiling" = no; then
6463 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6465 (eval $ac_try) 2>&5
6466 ac_status=$?
6467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468 test $ac_status = 0; }; }; then :;
6469 else
6470 cc_works_part=norun
6471 fi
6472 fi
6473 else
6474 cc_works_part=no
6475 fi
6476 if test "$cc_works_part" != yes; then
6477 echo "failed program was:" >&5
6478 cat conftest.c >&5
6479 fi
6480 rm -f conftest* a.out b.out a.exe a_out.exe
6481 case $cc_works_part in
6482 yes)
6483
6484 ;;
6485 no)
6486 gmp_prog_cc_works="no, mpn_lshift_com optimization 2"
6487 ;;
6488 norun)
6489 gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run"
6490 ;;
6491 esac
6492 fi
6493
6494
6495
6496
6497 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
6498 # by recent versions of gcc.
6499 #
6500 if test "$gmp_prog_cc_works" = yes; then
6501 case $host in
6502 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*)
6503 # this problem only arises in PIC code, so don't need to test when
6504 # --disable-shared. We don't necessarily have $enable_shared set to
6505 # yes at this point, it will still be unset for the default (which is
6506 # yes); hence the use of "!= no".
6507 if test "$enable_shared" != no; then
6508 echo "Testing gcc GOT with eax emitted" >&5
6509 cat >conftest.c <<\EOF
6510 int foo;
6511 int bar () { return foo; }
6512 EOF
6513 tmp_got_emitted=no
6514 gmp_compile="$cc $cflags $cppflags -fPIC -S conftest.c >&5 2>&1"
6515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6516 (eval $gmp_compile) 2>&5
6517 ac_status=$?
6518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6519 test $ac_status = 0; }; then
6520 if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
6521 tmp_got_emitted=yes
6522 fi
6523 fi
6524 rm -f conftest.*
6525 echo "Result: $tmp_got_emitted" >&5
6526 if test "$tmp_got_emitted" = yes; then
6527 echo "Testing gas GOT with eax good" >&5
6528 cat >conftest.awk <<\EOF
6529 BEGIN {
6530 want[0] = "001"
6531 want[1] = "043"
6532 want[2] = "105"
6533 want[3] = "147"
6534 want[4] = "211"
6535 want[5] = "253"
6536 want[6] = "315"
6537 want[7] = "357"
6538
6539 want[8] = "005"
6540 want[9] = "002"
6541 want[10] = "000"
6542 want[11] = "000"
6543 want[12] = "000"
6544
6545 want[13] = "376"
6546 want[14] = "334"
6547 want[15] = "272"
6548 want[16] = "230"
6549 want[17] = "166"
6550 want[18] = "124"
6551 want[19] = "062"
6552 want[20] = "020"
6553
6554 result = "yes"
6555 }
6556 {
6557 for (f = 2; f <= NF; f++)
6558 {
6559 for (i = 0; i < 20; i++)
6560 got[i] = got[i+1];
6561 got[20] = $f;
6562
6563 found = 1
6564 for (i = 0; i < 21; i++)
6565 if (got[i] != want[i])
6566 {
6567 found = 0
6568 break
6569 }
6570 if (found)
6571 {
6572 result = "no"
6573 exit
6574 }
6575 }
6576 }
6577 END {
6578 print result
6579 }
6580 EOF
6581 cat >conftest.s <<\EOF
6582 .text
6583 .byte 1, 35, 69, 103, 137, 171, 205, 239
6584 addl $_GLOBAL_OFFSET_TABLE_, %eax
6585 .byte 254, 220, 186, 152, 118, 84, 50, 16
6586 EOF
6587 tmp_got_good=yes
6588 gmp_compile="$cc $cflags $cppflags -fPIC -o conftest.o -c conftest.s >&5 2>&1"
6589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6590 (eval $gmp_compile) 2>&5
6591 ac_status=$?
6592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6593 test $ac_status = 0; }; then
6594 tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
6595 fi
6596 rm -f conftest.*
6597 echo "Result: $tmp_got_good" >&5
6598 if test "$tmp_got_good" = no; then
6599 gmp_prog_cc_works="no, bad gas GOT with eax"
6600 else
6601 :
6602 fi
6603
6604 else
6605 :
6606 fi
6607
6608 fi
6609 ;;
6610 esac
6611 fi
6612
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
6614 $as_echo "$gmp_prog_cc_works" >&6; }
6615 case $gmp_prog_cc_works in
6616 yes)
6617
6618 ;;
6619 *)
6620 continue
6621 ;;
6622 esac
6623
6624
6625 # If we're supposed to be using a "long long" for a limb, check that
6626 # it works.
6627 eval limb_chosen=\"\$limb$abi1\"
6628 test -n "$limb_chosen" || eval limb_chosen=\"\$limb$abi2\"
6629 if test "$limb_chosen" = longlong; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags has long long" >&5
6631 $as_echo_n "checking compiler $cc $cflags $cppflags has long long... " >&6; }
6632 cat >conftest.c <<EOF
6633 long long foo;
6634 long long bar () { return foo; }
6635 int main () { return 0; }
6636 EOF
6637 gmp_prog_cc_works=no
6638 gmp_compile="$cc $cflags $cppflags -c conftest.c >&5"
6639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6640 (eval $gmp_compile) 2>&5
6641 ac_status=$?
6642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6643 test $ac_status = 0; }; then
6644 gmp_prog_cc_works=yes
6645 else
6646 echo "failed program was:" >&5
6647 cat conftest.c >&5
6648 fi
6649 rm -f conftest* a.out b.out a.exe a_out.exe
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
6651 $as_echo "$gmp_prog_cc_works" >&6; }
6652 if test $gmp_prog_cc_works = yes; then
6653 :
6654 else
6655 continue
6656 fi
6657
6658 fi
6659
6660 # The tests to perform on this $cc, if any
6661 eval testlist=\"\$${ccbase}${abi1}_testlist\"
6662 test -n "$testlist" || eval testlist=\"\$${ccbase}${abi2}_testlist\"
6663 test -n "$testlist" || eval testlist=\"\$any${abi1}_testlist\"
6664 test -n "$testlist" || eval testlist=\"\$any${abi2}_testlist\"
6665
6666 testlist_pass=yes
6667 for tst in $testlist; do
6668 case $tst in
6669 hpc-hppa-2-0) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HP compiler $cc is good for 64-bits" >&5
6670 $as_echo_n "checking whether HP compiler $cc is good for 64-bits... " >&6; }
6671 # Bad compiler output:
6672 # ccom: HP92453-01 G.10.32.05 HP C Compiler
6673 # Good compiler output:
6674 # ccom: HP92453-01 A.10.32.30 HP C Compiler
6675 # Let A.10.32.30 or higher be ok.
6676 echo >conftest.c
6677 gmp_tmp_vs=`$cc -V -c -o conftest.$OBJEXT conftest.c 2>&1 | grep "^ccom:"`
6678 echo "Version string: $gmp_tmp_vs" >&5
6679 rm conftest*
6680 gmp_tmp_v1=`echo $gmp_tmp_vs | sed 's/.* .\.\([0-9]*\).*/\1/'`
6681 gmp_tmp_v2=`echo $gmp_tmp_vs | sed 's/.* .\..*\.\(.*\)\..* HP C.*/\1/'`
6682 gmp_tmp_v3=`echo $gmp_tmp_vs | sed 's/.* .\..*\..*\.\(.*\) HP C.*/\1/'`
6683 echo "Version number: $gmp_tmp_v1.$gmp_tmp_v2.$gmp_tmp_v3" >&5
6684 if test -z "$gmp_tmp_v1"; then
6685 gmp_hpc_64bit=not-applicable
6686 else
6687 gmp_compare_ge=no
6688 if test -n "$gmp_tmp_v1"; then
6689 if test "$gmp_tmp_v1" -gt 10; then
6690 gmp_compare_ge=yes
6691 else
6692 if test "$gmp_tmp_v1" -eq 10; then
6693 if test -n "$gmp_tmp_v2"; then
6694 if test "$gmp_tmp_v2" -gt 32; then
6695 gmp_compare_ge=yes
6696 else
6697 if test "$gmp_tmp_v2" -eq 32; then
6698 if test -n "$gmp_tmp_v3" && test "$gmp_tmp_v3" -ge 30; then
6699 gmp_compare_ge=yes
6700 fi
6701
6702 fi
6703 fi
6704 fi
6705
6706 fi
6707 fi
6708 fi
6709
6710
6711 gmp_hpc_64bit=$gmp_compare_ge
6712 fi
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_hpc_64bit" >&5
6714 $as_echo "$gmp_hpc_64bit" >&6; }
6715 if test $gmp_hpc_64bit = yes; then
6716 :
6717 else
6718 testlist_pass=no
6719 fi
6720 ;;
6721 gcc-arm-umodsi) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ARM gcc unsigned division works" >&5
6722 $as_echo_n "checking whether ARM gcc unsigned division works... " >&6; }
6723 tmp_version=`$cc --version`
6724 echo "$tmp_version" >&5
6725 case $tmp_version in
6726 2.95 | 2.95.[123])
6727 testlist_pass=no
6728 gmp_gcc_arm_umodsi_result="no, gcc 2.95.[0123]" ;;
6729 *)
6730 :
6731 gmp_gcc_arm_umodsi_result=yes ;;
6732 esac
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_gcc_arm_umodsi_result" >&5
6734 $as_echo "$gmp_gcc_arm_umodsi_result" >&6; }
6735 ;;
6736 gcc-mips-o32) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports o32" >&5
6737 $as_echo_n "checking whether gcc supports o32... " >&6; }
6738 echo 'int x;' >conftest.c
6739 echo "$cc -mabi=32 -c conftest.c" >&5
6740 if $cc -mabi=32 -c conftest.c >conftest.out 2>&1; then
6741 result=yes
6742 else
6743 cat conftest.out >&5
6744 if grep "cc1: Invalid option \`abi=32'" conftest.out >/dev/null; then
6745 result=yes
6746 else
6747 result=no
6748 fi
6749 fi
6750 rm -f conftest.*
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6752 $as_echo "$result" >&6; }
6753 if test $result = yes; then
6754 :
6755 else
6756 testlist_pass=no
6757 fi
6758 ;;
6759 hppa-level-2.0) { $as_echo "$as_me:${as_lineno-$LINENO}: checking $cc $cflags assembler knows hppa 2.0" >&5
6760 $as_echo_n "checking $cc $cflags assembler knows hppa 2.0... " >&6; }
6761 result=no
6762 cat >conftest.s <<EOF
6763 .level 2.0
6764 EOF
6765 gmp_compile="$cc $cflags -c conftest.s >&5 2>&1"
6766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6767 (eval $gmp_compile) 2>&5
6768 ac_status=$?
6769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6770 test $ac_status = 0; }; then
6771 result=yes
6772 else
6773 echo "failed program was" >&5
6774 cat conftest.s >&5
6775 fi
6776 rm -f conftest*
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6778 $as_echo "$result" >&6; }
6779 if test "$result" = yes; then
6780 :
6781 else
6782 testlist_pass=no
6783 fi
6784 ;;
6785 sizeof*) echo "configure: testlist $tst" >&5
6786 gmp_sizeof_type=`echo "$tst" | sed 's/sizeof-\([a-z]*\).*/\1/'`
6787 gmp_sizeof_want=`echo "$tst" | sed 's/sizeof-[a-z]*-\([0-9]*\).*/\1/'`
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want" >&5
6789 $as_echo_n "checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want... " >&6; }
6790 cat >conftest.c <<EOF
6791 int
6792 main ()
6793 {
6794 static int test_array [1 - 2 * (long) (sizeof ($gmp_sizeof_type) != $gmp_sizeof_want)];
6795 test_array[0] = 0;
6796 return 0;
6797 }
6798 EOF
6799 gmp_c_testlist_sizeof=no
6800 gmp_compile="$cc $cflags -c conftest.c >&5"
6801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6802 (eval $gmp_compile) 2>&5
6803 ac_status=$?
6804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6805 test $ac_status = 0; }; then
6806 gmp_c_testlist_sizeof=yes
6807 fi
6808 rm -f conftest*
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_c_testlist_sizeof" >&5
6810 $as_echo "$gmp_c_testlist_sizeof" >&6; }
6811 if test $gmp_c_testlist_sizeof = yes; then
6812 :
6813 else
6814 testlist_pass=no
6815 fi
6816 ;;
6817 esac
6818 if test $testlist_pass = no; then break; fi
6819 done
6820
6821 if test $testlist_pass = yes; then
6822 found_compiler=yes
6823 break
6824 fi
6825 done
6826
6827 if test $found_compiler = yes; then break; fi
6828 done
6829
6830 if test $found_compiler = yes; then break; fi
6831 done
6832
6833 if test $found_compiler = yes; then break; fi
6834 done
6835
6836
6837 # If we recognised the CPU, as indicated by $path being set, then insist
6838 # that we have a working compiler, either from our $cclist choices or from
6839 # $CC. We can't let AC_PROG_CC look around for a compiler because it might
6840 # find one that we've rejected (for not supporting the modes our asm code
6841 # demands, etc).
6842 #
6843 # If we didn't recognise the CPU (and this includes host_cpu=none), then
6844 # fall through and let AC_PROG_CC look around for a compiler too. This is
6845 # mostly in the interests of following a standard autoconf setup, after all
6846 # we've already tested cc and gcc adequately (hopefully). As of autoconf
6847 # 2.50 the only thing AC_PROG_CC really adds is a check for "cl" (Microsoft
6848 # C on MS-DOS systems).
6849 #
6850 if test $found_compiler = no && test -n "$path"; then
6851 as_fn_error $? "could not find a working compiler, see config.log for details" "$LINENO" 5
6852 fi
6853
6854 case $host in
6855 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
6856 # If the user asked for a fat build, override the path and flags set above
6857 if test $enable_fat = yes; then
6858 gcc_cflags_cpu=""
6859 gcc_cflags_arch=""
6860
6861 fat_functions="add_n addmul_1 bdiv_dbm1c com copyd copyi dive_1 divrem_1
6862 gcd_1 lshift lshiftc mod_1 mod_1_1 mod_1_1_cps mod_1_2
6863 mod_1_2_cps mod_1_4 mod_1_4_cps mod_34lsub1 mode1o mul_1
6864 mul_basecase mullo_basecase pre_divrem_1 pre_mod_1 redc_1
6865 redc_2 rshift sqr_basecase sub_n submul_1"
6866
6867 if test "$abi" = 32; then
6868 extra_functions="$extra_functions fat fat_entry"
6869 path="x86/fat x86"
6870 fat_path="x86 x86/fat x86/i486
6871 x86/k6 x86/k6/mmx x86/k6/k62mmx
6872 x86/k7 x86/k7/mmx
6873 x86/k8 x86/k10 x86/bobcat
6874 x86/pentium x86/pentium/mmx
6875 x86/p6 x86/p6/mmx x86/p6/p3mmx x86/p6/sse2
6876 x86/pentium4 x86/pentium4/mmx x86/pentium4/sse2
6877 x86/core2 x86/coreinhm x86/coreisbr
6878 x86/atom x86/atom/mmx x86/atom/sse2 x86/nano"
6879 fi
6880
6881 if test "$abi" = 64; then
6882 gcc_64_cflags=""
6883 extra_functions_64="$extra_functions_64 fat fat_entry"
6884 path_64="x86_64/fat x86_64"
6885 fat_path="x86_64 x86_64/fat
6886 x86_64/k8 x86_64/k10 x86_64/bd1 x86_64/bobcat
6887 x86_64/pentium4 x86_64/core2 x86_64/coreinhm x86_64/coreisbr
6888 x86_64/atom x86_64/nano"
6889 fat_functions="$fat_functions addmul_2 addlsh1_n addlsh2_n sublsh1_n"
6890 fi
6891
6892 fat_thresholds="MUL_TOOM22_THRESHOLD MUL_TOOM33_THRESHOLD
6893 SQR_TOOM2_THRESHOLD SQR_TOOM3_THRESHOLD
6894 BMOD_1_TO_MOD_1_THRESHOLD"
6895 fi
6896 ;;
6897 esac
6898
6899
6900 if test $found_compiler = yes; then
6901
6902 # If we're creating CFLAGS, then look for optional additions. If the user
6903 # set CFLAGS then leave it alone.
6904 #
6905 if test "$test_CFLAGS" != set; then
6906 eval optlist=\"\$${ccbase}${abi1}_cflags_optlist\"
6907 test -n "$optlist" || eval optlist=\"\$${ccbase}${abi2}_cflags_optlist\"
6908
6909 for opt in $optlist; do
6910 eval optflags=\"\$${ccbase}${abi1}_cflags_${opt}\"
6911 test -n "$optflags" || eval optflags=\"\$${ccbase}${abi2}_cflags_${opt}\"
6912 test -n "$optflags" || eval optflags=\"\$${ccbase}_cflags_${opt}\"
6913
6914 for flag in $optflags; do
6915
6916 # ~ represents a space in an option spec
6917 flag=`echo "$flag" | tr '~' ' '`
6918
6919 case $flag in
6920 -march=pentium4 | -march=k8)
6921 # For -march settings which enable SSE2 we exclude certain bad
6922 # gcc versions and we need an OS knowing how to save xmm regs.
6923 #
6924 # This is only for ABI=32, any 64-bit gcc is good and any OS
6925 # knowing x86_64 will know xmm.
6926 #
6927 # -march=k8 was only introduced in gcc 3.3, so we shouldn't need
6928 # the GMP_GCC_PENTIUM4_SSE2 check (for gcc 3.2 and prior). But
6929 # it doesn't hurt to run it anyway, sharing code with the
6930 # pentium4 case.
6931 #
6932 if test "$abi" = 32; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc is good for sse2" >&5
6934 $as_echo_n "checking whether gcc is good for sse2... " >&6; }
6935 case `$cc $cflags $cppflags -dumpversion` in
6936 3.[012] | 3.[012].*) result=no ;;
6937 *) result=yes ;;
6938 esac
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6940 $as_echo "$result" >&6; }
6941 if test "$result" = yes; then
6942 :
6943 else
6944 continue
6945 fi
6946
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the operating system supports XMM registers" >&5
6948 $as_echo_n "checking whether the operating system supports XMM registers... " >&6; }
6949 if ${gmp_cv_os_x86_xmm+:} false; then :
6950 $as_echo_n "(cached) " >&6
6951 else
6952 if test "$build" = "$host"; then
6953 # remove anything that might look like compiler output to our "||" expression
6954 rm -f conftest* a.out b.out a.exe a_out.exe
6955 cat >conftest.s <<EOF
6956 .text
6957 main:
6958 _main:
6959 .globl main
6960 .globl _main
6961 .byte 0x0f, 0x57, 0xc0
6962 xorl %eax, %eax
6963 ret
6964 EOF
6965 gmp_compile="$cc $cflags $cppflags conftest.s -o conftest >&5"
6966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6967 (eval $gmp_compile) 2>&5
6968 ac_status=$?
6969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6970 test $ac_status = 0; }; then
6971 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6973 (eval $ac_try) 2>&5
6974 ac_status=$?
6975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6976 test $ac_status = 0; }; }; then
6977 gmp_cv_os_x86_xmm=yes
6978 else
6979 gmp_cv_os_x86_xmm=no
6980 fi
6981 else
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Oops, cannot compile test program" >&5
6983 $as_echo "$as_me: WARNING: Oops, cannot compile test program" >&2;}
6984 fi
6985 rm -f conftest*
6986 fi
6987
6988 if test -z "$gmp_cv_os_x86_xmm"; then
6989 case $host_os in
6990 freebsd[123] | freebsd[123].*)
6991 gmp_cv_os_x86_xmm=no ;;
6992 freebsd*)
6993 gmp_cv_os_x86_xmm=yes ;;
6994 *)
6995 gmp_cv_os_x86_xmm=probably ;;
6996 esac
6997 fi
6998
6999 fi
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_os_x86_xmm" >&5
7001 $as_echo "$gmp_cv_os_x86_xmm" >&6; }
7002
7003 if test "$gmp_cv_os_x86_xmm" = probably; then
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not certain of OS support for xmm when cross compiling." >&5
7005 $as_echo "$as_me: WARNING: Not certain of OS support for xmm when cross compiling." >&2;}
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&5
7007 $as_echo "$as_me: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&2;}
7008 fi
7009
7010 case $gmp_cv_os_x86_xmm in
7011 no)
7012 continue
7013 ;;
7014 *)
7015
7016 ;;
7017 esac
7018
7019 fi
7020 ;;
7021 -no-cpp-precomp)
7022 # special check, avoiding a warning
7023 if test "$ccbase" = gcc; then
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags -no-cpp-precomp" >&5
7025 $as_echo_n "checking compiler $cc $cflags -no-cpp-precomp... " >&6; }
7026 result=no
7027 cat >conftest.c <<EOF
7028 int main () { return 0; }
7029 EOF
7030 gmp_compile="$cc $cflags -no-cpp-precomp conftest.c >conftest.out 2>&1"
7031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7032 (eval $gmp_compile) 2>&5
7033 ac_status=$?
7034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7035 test $ac_status = 0; }; then
7036 if grep "unrecognized option.*-no-cpp-precomp" conftest.out >/dev/null; then : ;
7037 else
7038 result=yes
7039 fi
7040 fi
7041 cat conftest.out >&5
7042 rm -f conftest* a.out b.out a.exe a_out.exe
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7044 $as_echo "$result" >&6; }
7045 if test "$result" = yes; then
7046 cflags="$cflags $flag"
7047 break
7048 else
7049 continue
7050 fi
7051 fi
7052
7053 ;;
7054 -Wa,-m*)
7055 case $host in
7056 alpha*-*-*)
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler $cc $cflags $flag" >&5
7058 $as_echo_n "checking assembler $cc $cflags $flag... " >&6; }
7059 result=no
7060 cat >conftest.c <<EOF
7061 int main () {}
7062 EOF
7063 gmp_compile="$cc $cflags $flag -c conftest.c >conftest.out 2>&1"
7064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7065 (eval $gmp_compile) 2>&5
7066 ac_status=$?
7067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7068 test $ac_status = 0; }; then
7069 if grep "Unknown CPU identifier" conftest.out >/dev/null; then : ;
7070 else
7071 result=yes
7072 fi
7073 fi
7074 cat conftest.out >&5
7075 rm -f conftest*
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7077 $as_echo "$result" >&6; }
7078 if test "$result" = yes; then
7079 :
7080 else
7081 continue
7082 fi
7083
7084 ;;
7085 esac
7086 ;;
7087 -Wa,-oldas)
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cc $cflags $cppflags -Wa,-oldas" >&5
7089 $as_echo_n "checking for $cc $cflags $cppflags -Wa,-oldas... " >&6; }
7090 result=no
7091 cat >conftest.c <<EOF
7092 EOF
7093 echo "with empty conftest.c" >&5
7094 gmp_compile="$cc $cflags $cppflags -c conftest.c >&5 2>&1"
7095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7096 (eval $gmp_compile) 2>&5
7097 ac_status=$?
7098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7099 test $ac_status = 0; }; then : ;
7100 else
7101 # empty fails
7102 gmp_compile="$cc $cflags $cppflags -Wa,-oldas -c conftest.c >&5 2>&1"
7103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7104 (eval $gmp_compile) 2>&5
7105 ac_status=$?
7106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7107 test $ac_status = 0; }; then
7108 # but with -Wa,-oldas it works
7109 result=yes
7110 fi
7111 fi
7112 rm -f conftest*
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7114 $as_echo "$result" >&6; }
7115 if test "$result" = yes; then
7116 cflags="$cflags $flag"
7117 break
7118 else
7119 continue
7120 fi
7121
7122 ;;
7123 esac
7124
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags $flag" >&5
7126 $as_echo_n "checking compiler $cc $cflags $cppflags $flag... " >&6; }
7127 gmp_prog_cc_works=yes
7128
7129 # first see a simple "main()" works, then go on to other checks
7130 if test "$gmp_prog_cc_works" = yes; then
7131 # remove anything that might look like compiler output to our "||" expression
7132 rm -f conftest* a.out b.out a.exe a_out.exe
7133 cat >conftest.c <<EOF
7134
7135 int main () { return 0; }
7136 EOF
7137 echo "Test compile: " >&5
7138 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7140 (eval $gmp_compile) 2>&5
7141 ac_status=$?
7142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7143 test $ac_status = 0; }; then
7144 cc_works_part=yes
7145 if test "$cross_compiling" = no; then
7146 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7148 (eval $ac_try) 2>&5
7149 ac_status=$?
7150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7151 test $ac_status = 0; }; }; then :;
7152 else
7153 cc_works_part=norun
7154 fi
7155 fi
7156 else
7157 cc_works_part=no
7158 fi
7159 if test "$cc_works_part" != yes; then
7160 echo "failed program was:" >&5
7161 cat conftest.c >&5
7162 fi
7163 rm -f conftest* a.out b.out a.exe a_out.exe
7164 case $cc_works_part in
7165 yes)
7166
7167 ;;
7168 no)
7169 gmp_prog_cc_works="no"
7170 ;;
7171 norun)
7172 gmp_prog_cc_works="no, program does not run"
7173 ;;
7174 esac
7175 fi
7176
7177
7178
7179
7180 if test "$gmp_prog_cc_works" = yes; then
7181 # remove anything that might look like compiler output to our "||" expression
7182 rm -f conftest* a.out b.out a.exe a_out.exe
7183 cat >conftest.c <<EOF
7184 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
7185 (without -maix64), hence detecting an unusable compiler */
7186 void *g() { return (void *) 0; }
7187 void *f() { return g(); }
7188
7189 int main () { return 0; }
7190 EOF
7191 echo "Test compile: function pointer return" >&5
7192 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7194 (eval $gmp_compile) 2>&5
7195 ac_status=$?
7196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7197 test $ac_status = 0; }; then
7198 cc_works_part=yes
7199 if test "$cross_compiling" = no; then
7200 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7202 (eval $ac_try) 2>&5
7203 ac_status=$?
7204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7205 test $ac_status = 0; }; }; then :;
7206 else
7207 cc_works_part=norun
7208 fi
7209 fi
7210 else
7211 cc_works_part=no
7212 fi
7213 if test "$cc_works_part" != yes; then
7214 echo "failed program was:" >&5
7215 cat conftest.c >&5
7216 fi
7217 rm -f conftest* a.out b.out a.exe a_out.exe
7218 case $cc_works_part in
7219 yes)
7220
7221 ;;
7222 no)
7223 gmp_prog_cc_works="no, function pointer return"
7224 ;;
7225 norun)
7226 gmp_prog_cc_works="no, function pointer return, program does not run"
7227 ;;
7228 esac
7229 fi
7230
7231
7232
7233
7234 if test "$gmp_prog_cc_works" = yes; then
7235 # remove anything that might look like compiler output to our "||" expression
7236 rm -f conftest* a.out b.out a.exe a_out.exe
7237 cat >conftest.c <<EOF
7238 /* The following provokes an invalid instruction syntax from i386 gcc
7239 -march=pentiumpro on Solaris 2.8. The native sun assembler
7240 requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
7241 least) doesn't know. */
7242 int n;
7243 int cmov () { return (n >= 0 ? n : 0); }
7244
7245 int main () { return 0; }
7246 EOF
7247 echo "Test compile: cmov instruction" >&5
7248 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7250 (eval $gmp_compile) 2>&5
7251 ac_status=$?
7252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7253 test $ac_status = 0; }; then
7254 cc_works_part=yes
7255 if test "$cross_compiling" = no; then
7256 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7258 (eval $ac_try) 2>&5
7259 ac_status=$?
7260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7261 test $ac_status = 0; }; }; then :;
7262 else
7263 cc_works_part=norun
7264 fi
7265 fi
7266 else
7267 cc_works_part=no
7268 fi
7269 if test "$cc_works_part" != yes; then
7270 echo "failed program was:" >&5
7271 cat conftest.c >&5
7272 fi
7273 rm -f conftest* a.out b.out a.exe a_out.exe
7274 case $cc_works_part in
7275 yes)
7276
7277 ;;
7278 no)
7279 gmp_prog_cc_works="no, cmov instruction"
7280 ;;
7281 norun)
7282 gmp_prog_cc_works="no, cmov instruction, program does not run"
7283 ;;
7284 esac
7285 fi
7286
7287
7288
7289
7290 if test "$gmp_prog_cc_works" = yes; then
7291 # remove anything that might look like compiler output to our "||" expression
7292 rm -f conftest* a.out b.out a.exe a_out.exe
7293 cat >conftest.c <<EOF
7294 /* The following provokes a linker invocation problem with gcc 3.0.3
7295 on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630
7296 option causes gcc to incorrectly select the 32-bit libgcc.a, not
7297 the 64-bit one, and consequently it misses out on the __fixunsdfdi
7298 helper (double -> uint64 conversion). */
7299 double d;
7300 unsigned long gcc303 () { return (unsigned long) d; }
7301
7302 int main () { return 0; }
7303 EOF
7304 echo "Test compile: double -> ulong conversion" >&5
7305 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7307 (eval $gmp_compile) 2>&5
7308 ac_status=$?
7309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7310 test $ac_status = 0; }; then
7311 cc_works_part=yes
7312 if test "$cross_compiling" = no; then
7313 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7315 (eval $ac_try) 2>&5
7316 ac_status=$?
7317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7318 test $ac_status = 0; }; }; then :;
7319 else
7320 cc_works_part=norun
7321 fi
7322 fi
7323 else
7324 cc_works_part=no
7325 fi
7326 if test "$cc_works_part" != yes; then
7327 echo "failed program was:" >&5
7328 cat conftest.c >&5
7329 fi
7330 rm -f conftest* a.out b.out a.exe a_out.exe
7331 case $cc_works_part in
7332 yes)
7333
7334 ;;
7335 no)
7336 gmp_prog_cc_works="no, double -> ulong conversion"
7337 ;;
7338 norun)
7339 gmp_prog_cc_works="no, double -> ulong conversion, program does not run"
7340 ;;
7341 esac
7342 fi
7343
7344
7345
7346
7347 if test "$gmp_prog_cc_works" = yes; then
7348 # remove anything that might look like compiler output to our "||" expression
7349 rm -f conftest* a.out b.out a.exe a_out.exe
7350 cat >conftest.c <<EOF
7351 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
7352 the assembler doesn't know hppa 2.0 instructions. fneg is a 2.0
7353 instruction, and a negation like this comes out using it. */
7354 double fneg_data;
7355 unsigned long fneg () { return -fneg_data; }
7356
7357 int main () { return 0; }
7358 EOF
7359 echo "Test compile: double negation" >&5
7360 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7362 (eval $gmp_compile) 2>&5
7363 ac_status=$?
7364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7365 test $ac_status = 0; }; then
7366 cc_works_part=yes
7367 if test "$cross_compiling" = no; then
7368 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7370 (eval $ac_try) 2>&5
7371 ac_status=$?
7372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7373 test $ac_status = 0; }; }; then :;
7374 else
7375 cc_works_part=norun
7376 fi
7377 fi
7378 else
7379 cc_works_part=no
7380 fi
7381 if test "$cc_works_part" != yes; then
7382 echo "failed program was:" >&5
7383 cat conftest.c >&5
7384 fi
7385 rm -f conftest* a.out b.out a.exe a_out.exe
7386 case $cc_works_part in
7387 yes)
7388
7389 ;;
7390 no)
7391 gmp_prog_cc_works="no, double negation"
7392 ;;
7393 norun)
7394 gmp_prog_cc_works="no, double negation, program does not run"
7395 ;;
7396 esac
7397 fi
7398
7399
7400
7401
7402 if test "$gmp_prog_cc_works" = yes; then
7403 # remove anything that might look like compiler output to our "||" expression
7404 rm -f conftest* a.out b.out a.exe a_out.exe
7405 cat >conftest.c <<EOF
7406 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
7407 (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
7408 those instructions. Not sure how much of the gmp code will come out
7409 wanting sse2, but it's easiest to reject an option we know is bad. */
7410 double ftod_data;
7411 float ftod () { return (float) ftod_data; }
7412
7413 int main () { return 0; }
7414 EOF
7415 echo "Test compile: double -> float conversion" >&5
7416 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7418 (eval $gmp_compile) 2>&5
7419 ac_status=$?
7420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7421 test $ac_status = 0; }; then
7422 cc_works_part=yes
7423 if test "$cross_compiling" = no; then
7424 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7426 (eval $ac_try) 2>&5
7427 ac_status=$?
7428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7429 test $ac_status = 0; }; }; then :;
7430 else
7431 cc_works_part=norun
7432 fi
7433 fi
7434 else
7435 cc_works_part=no
7436 fi
7437 if test "$cc_works_part" != yes; then
7438 echo "failed program was:" >&5
7439 cat conftest.c >&5
7440 fi
7441 rm -f conftest* a.out b.out a.exe a_out.exe
7442 case $cc_works_part in
7443 yes)
7444
7445 ;;
7446 no)
7447 gmp_prog_cc_works="no, double -> float conversion"
7448 ;;
7449 norun)
7450 gmp_prog_cc_works="no, double -> float conversion, program does not run"
7451 ;;
7452 esac
7453 fi
7454
7455
7456
7457
7458 if test "$gmp_prog_cc_works" = yes; then
7459 # remove anything that might look like compiler output to our "||" expression
7460 rm -f conftest* a.out b.out a.exe a_out.exe
7461 cat >conftest.c <<EOF
7462 /* The following provokes an internal compiler error from gcc version
7463 "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
7464 values being spilled into floating point registers. The problem doesn't
7465 show up all the time, but has occurred enough in GMP for us to reject
7466 this compiler+flags. */
7467 #include <string.h> /* for memcpy */
7468 struct try_t
7469 {
7470 char dst[2];
7471 char size;
7472 long d0, d1, d2, d3, d4, d5, d6;
7473 char overlap;
7474 };
7475 struct try_t param[6];
7476 int
7477 param_init ()
7478 {
7479 struct try_t *p;
7480 memcpy (p, ¶m[ 2 ], sizeof (*p));
7481 memcpy (p, ¶m[ 2 ], sizeof (*p));
7482 p->size = 2;
7483 memcpy (p, ¶m[ 1 ], sizeof (*p));
7484 p->dst[0] = 1;
7485 p->overlap = 2;
7486 memcpy (p, ¶m[ 3 ], sizeof (*p));
7487 p->dst[0] = 1;
7488 p->overlap = 8;
7489 memcpy (p, ¶m[ 4 ], sizeof (*p));
7490 memcpy (p, ¶m[ 4 ], sizeof (*p));
7491 p->overlap = 8;
7492 memcpy (p, ¶m[ 5 ], sizeof (*p));
7493 memcpy (p, ¶m[ 5 ], sizeof (*p));
7494 memcpy (p, ¶m[ 5 ], sizeof (*p));
7495 return 0;
7496 }
7497
7498 int main () { return 0; }
7499 EOF
7500 echo "Test compile: gnupro alpha ev6 char spilling" >&5
7501 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7503 (eval $gmp_compile) 2>&5
7504 ac_status=$?
7505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7506 test $ac_status = 0; }; then
7507 cc_works_part=yes
7508 if test "$cross_compiling" = no; then
7509 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7511 (eval $ac_try) 2>&5
7512 ac_status=$?
7513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7514 test $ac_status = 0; }; }; then :;
7515 else
7516 cc_works_part=norun
7517 fi
7518 fi
7519 else
7520 cc_works_part=no
7521 fi
7522 if test "$cc_works_part" != yes; then
7523 echo "failed program was:" >&5
7524 cat conftest.c >&5
7525 fi
7526 rm -f conftest* a.out b.out a.exe a_out.exe
7527 case $cc_works_part in
7528 yes)
7529
7530 ;;
7531 no)
7532 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling"
7533 ;;
7534 norun)
7535 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run"
7536 ;;
7537 esac
7538 fi
7539
7540
7541
7542
7543 # __builtin_alloca is not available everywhere, check it exists before
7544 # seeing that it works
7545 if test "$gmp_prog_cc_works" = yes; then
7546 # remove anything that might look like compiler output to our "||" expression
7547 rm -f conftest* a.out b.out a.exe a_out.exe
7548 cat >conftest.c <<EOF
7549 int k; int foo () { __builtin_alloca (k); }
7550 EOF
7551 echo "Test compile: __builtin_alloca availability" >&5
7552 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7554 (eval $gmp_compile) 2>&5
7555 ac_status=$?
7556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7557 test $ac_status = 0; }; then
7558 cc_works_part=yes
7559 if test "$cross_compiling" = no; then
7560 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7562 (eval $ac_try) 2>&5
7563 ac_status=$?
7564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7565 test $ac_status = 0; }; }; then :;
7566 else
7567 cc_works_part=norun
7568 fi
7569 fi
7570 else
7571 cc_works_part=no
7572 fi
7573 if test "$cc_works_part" != yes; then
7574 echo "failed program was:" >&5
7575 cat conftest.c >&5
7576 fi
7577 rm -f conftest* a.out b.out a.exe a_out.exe
7578 case $cc_works_part in
7579 yes)
7580 if test "$gmp_prog_cc_works" = yes; then
7581 # remove anything that might look like compiler output to our "||" expression
7582 rm -f conftest* a.out b.out a.exe a_out.exe
7583 cat >conftest.c <<EOF
7584 /* The following provokes an internal compiler error from Itanium HP-UX cc
7585 under +O2 or higher. We use this sort of code in mpn/generic/mul_fft.c. */
7586 int k;
7587 int foo ()
7588 {
7589 int i, **a;
7590 a = __builtin_alloca (k);
7591 for (i = 0; i <= k; i++)
7592 a[i] = __builtin_alloca (1 << i);
7593 }
7594
7595 int main () { return 0; }
7596 EOF
7597 echo "Test compile: alloca array" >&5
7598 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7600 (eval $gmp_compile) 2>&5
7601 ac_status=$?
7602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7603 test $ac_status = 0; }; then
7604 cc_works_part=yes
7605 if test "$cross_compiling" = no; then
7606 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7608 (eval $ac_try) 2>&5
7609 ac_status=$?
7610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7611 test $ac_status = 0; }; }; then :;
7612 else
7613 cc_works_part=norun
7614 fi
7615 fi
7616 else
7617 cc_works_part=no
7618 fi
7619 if test "$cc_works_part" != yes; then
7620 echo "failed program was:" >&5
7621 cat conftest.c >&5
7622 fi
7623 rm -f conftest* a.out b.out a.exe a_out.exe
7624 case $cc_works_part in
7625 yes)
7626
7627 ;;
7628 no)
7629 gmp_prog_cc_works="no, alloca array"
7630 ;;
7631 norun)
7632 gmp_prog_cc_works="no, alloca array, program does not run"
7633 ;;
7634 esac
7635 fi
7636
7637
7638
7639 ;;
7640 no)
7641
7642 ;;
7643 norun)
7644
7645 ;;
7646 esac
7647 fi
7648
7649
7650 if test "$gmp_prog_cc_works" = yes; then
7651 # remove anything that might look like compiler output to our "||" expression
7652 rm -f conftest* a.out b.out a.exe a_out.exe
7653 cat >conftest.c <<EOF
7654 /* The following provokes an internal error from the assembler on
7655 power2-ibm-aix4.3.1.0. gcc -mrios2 compiles to nabs+fcirz, and this
7656 results in "Internal error related to the source program domain".
7657
7658 For reference it seems to be the combination of nabs+fcirz which is bad,
7659 not either alone. This sort of thing occurs in mpz/get_str.c with the
7660 way double chars_per_bit_exactly is applied in MPN_SIZEINBASE. Perhaps
7661 if that code changes to a scaled-integer style then we won't need this
7662 test. */
7663
7664 double fp[1];
7665 int x;
7666 int f ()
7667 {
7668 int a;
7669 a = (x >= 0 ? x : -x);
7670 return a * fp[0];
7671 }
7672
7673 int main () { return 0; }
7674 EOF
7675 echo "Test compile: abs int -> double conversion" >&5
7676 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7678 (eval $gmp_compile) 2>&5
7679 ac_status=$?
7680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7681 test $ac_status = 0; }; then
7682 cc_works_part=yes
7683 if test "$cross_compiling" = no; then
7684 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7686 (eval $ac_try) 2>&5
7687 ac_status=$?
7688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7689 test $ac_status = 0; }; }; then :;
7690 else
7691 cc_works_part=norun
7692 fi
7693 fi
7694 else
7695 cc_works_part=no
7696 fi
7697 if test "$cc_works_part" != yes; then
7698 echo "failed program was:" >&5
7699 cat conftest.c >&5
7700 fi
7701 rm -f conftest* a.out b.out a.exe a_out.exe
7702 case $cc_works_part in
7703 yes)
7704
7705 ;;
7706 no)
7707 gmp_prog_cc_works="no, abs int -> double conversion"
7708 ;;
7709 norun)
7710 gmp_prog_cc_works="no, abs int -> double conversion, program does not run"
7711 ;;
7712 esac
7713 fi
7714
7715
7716
7717
7718 if test "$gmp_prog_cc_works" = yes; then
7719 # remove anything that might look like compiler output to our "||" expression
7720 rm -f conftest* a.out b.out a.exe a_out.exe
7721 cat >conftest.c <<EOF
7722 /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
7723 Extracted from tests/mpn/t-iord_u.c. Causes Apple's gcc 3.3 build 1640 and
7724 1666 to segfault with e.g., -O2 -mpowerpc64. */
7725
7726 #if defined (__GNUC__) && ! defined (__cplusplus)
7727 typedef unsigned long long t1;typedef t1*t2;
7728 static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
7729 {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;}
7730 f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
7731 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();}}
7732 h(){}g(){}
7733 #else
7734 int dummy;
7735 #endif
7736
7737 int main () { return 0; }
7738 EOF
7739 echo "Test compile: long long reliability test 1" >&5
7740 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7742 (eval $gmp_compile) 2>&5
7743 ac_status=$?
7744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7745 test $ac_status = 0; }; then
7746 cc_works_part=yes
7747 if test "$cross_compiling" = no; then
7748 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7750 (eval $ac_try) 2>&5
7751 ac_status=$?
7752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7753 test $ac_status = 0; }; }; then :;
7754 else
7755 cc_works_part=norun
7756 fi
7757 fi
7758 else
7759 cc_works_part=no
7760 fi
7761 if test "$cc_works_part" != yes; then
7762 echo "failed program was:" >&5
7763 cat conftest.c >&5
7764 fi
7765 rm -f conftest* a.out b.out a.exe a_out.exe
7766 case $cc_works_part in
7767 yes)
7768
7769 ;;
7770 no)
7771 gmp_prog_cc_works="no, long long reliability test 1"
7772 ;;
7773 norun)
7774 gmp_prog_cc_works="no, long long reliability test 1, program does not run"
7775 ;;
7776 esac
7777 fi
7778
7779
7780
7781
7782 if test "$gmp_prog_cc_works" = yes; then
7783 # remove anything that might look like compiler output to our "||" expression
7784 rm -f conftest* a.out b.out a.exe a_out.exe
7785 cat >conftest.c <<EOF
7786 /* The following provokes an internal compiler error on powerpc-apple-darwin.
7787 Extracted from mpz/cfdiv_q_2exp.c. Causes Apple's gcc 3.3 build 1640 and
7788 1666 to get an ICE with -O1 -mpowerpc64. */
7789
7790 #if defined (__GNUC__) && ! defined (__cplusplus)
7791 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();}
7792 g(){}
7793 #else
7794 int dummy;
7795 #endif
7796
7797 int main () { return 0; }
7798 EOF
7799 echo "Test compile: long long reliability test 2" >&5
7800 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7802 (eval $gmp_compile) 2>&5
7803 ac_status=$?
7804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7805 test $ac_status = 0; }; then
7806 cc_works_part=yes
7807 if test "$cross_compiling" = no; then
7808 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7810 (eval $ac_try) 2>&5
7811 ac_status=$?
7812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7813 test $ac_status = 0; }; }; then :;
7814 else
7815 cc_works_part=norun
7816 fi
7817 fi
7818 else
7819 cc_works_part=no
7820 fi
7821 if test "$cc_works_part" != yes; then
7822 echo "failed program was:" >&5
7823 cat conftest.c >&5
7824 fi
7825 rm -f conftest* a.out b.out a.exe a_out.exe
7826 case $cc_works_part in
7827 yes)
7828
7829 ;;
7830 no)
7831 gmp_prog_cc_works="no, long long reliability test 2"
7832 ;;
7833 norun)
7834 gmp_prog_cc_works="no, long long reliability test 2, program does not run"
7835 ;;
7836 esac
7837 fi
7838
7839
7840
7841
7842 if test "$gmp_prog_cc_works" = yes; then
7843 # remove anything that might look like compiler output to our "||" expression
7844 rm -f conftest* a.out b.out a.exe a_out.exe
7845 cat >conftest.c <<EOF
7846 /* The following is mis-compiled by HP ia-64 cc version
7847 cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
7848 under "cc +O3", both in +DD32 and +DD64 modes. The mpn_lshift_com gets
7849 inlined and its return value somehow botched to be 0 instead of 1. This
7850 arises in the real mpn_lshift_com in mul_fft.c. A lower optimization
7851 level, like +O2 seems ok. This code needs to be run to show the problem,
7852 but that's fine, the offending cc is a native-only compiler so we don't
7853 have to worry about cross compiling. */
7854
7855 #if ! defined (__cplusplus)
7856 unsigned long
7857 lshift_com (rp, up, n, cnt)
7858 unsigned long *rp;
7859 unsigned long *up;
7860 long n;
7861 unsigned cnt;
7862 {
7863 unsigned long retval, high_limb, low_limb;
7864 unsigned tnc;
7865 long i;
7866 tnc = 8 * sizeof (unsigned long) - cnt;
7867 low_limb = *up++;
7868 retval = low_limb >> tnc;
7869 high_limb = low_limb << cnt;
7870 for (i = n - 1; i != 0; i--)
7871 {
7872 low_limb = *up++;
7873 *rp++ = ~(high_limb | (low_limb >> tnc));
7874 high_limb = low_limb << cnt;
7875 }
7876 return retval;
7877 }
7878 int
7879 main ()
7880 {
7881 unsigned long cy, rp[2], up[2];
7882 up[0] = ~ 0L;
7883 up[1] = 0;
7884 cy = lshift_com (rp, up, 2L, 1);
7885 if (cy != 1L)
7886 return 1;
7887 return 0;
7888 }
7889 #else
7890 int
7891 main ()
7892 {
7893 return 0;
7894 }
7895 #endif
7896
7897 EOF
7898 echo "Test compile: mpn_lshift_com optimization" >&5
7899 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7901 (eval $gmp_compile) 2>&5
7902 ac_status=$?
7903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7904 test $ac_status = 0; }; then
7905 cc_works_part=yes
7906 if test "$cross_compiling" = no; then
7907 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7909 (eval $ac_try) 2>&5
7910 ac_status=$?
7911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7912 test $ac_status = 0; }; }; then :;
7913 else
7914 cc_works_part=norun
7915 fi
7916 fi
7917 else
7918 cc_works_part=no
7919 fi
7920 if test "$cc_works_part" != yes; then
7921 echo "failed program was:" >&5
7922 cat conftest.c >&5
7923 fi
7924 rm -f conftest* a.out b.out a.exe a_out.exe
7925 case $cc_works_part in
7926 yes)
7927
7928 ;;
7929 no)
7930 gmp_prog_cc_works="no, mpn_lshift_com optimization"
7931 ;;
7932 norun)
7933 gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run"
7934 ;;
7935 esac
7936 fi
7937
7938
7939
7940 if test "$gmp_prog_cc_works" = yes; then
7941 # remove anything that might look like compiler output to our "||" expression
7942 rm -f conftest* a.out b.out a.exe a_out.exe
7943 cat >conftest.c <<EOF
7944 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
7945 "icc -O3", After several calls, the function writes parial garbage to
7946 the result vector. Perhaps relates to the chk.a.nc insn. This code needs
7947 to be run to show the problem, but that's fine, the offending cc is a
7948 native-only compiler so we don't have to worry about cross compiling. */
7949
7950 #if ! defined (__cplusplus)
7951 #include <stdlib.h>
7952 void
7953 lshift_com (rp, up, n, cnt)
7954 unsigned long *rp;
7955 unsigned long *up;
7956 long n;
7957 unsigned cnt;
7958 {
7959 unsigned long high_limb, low_limb;
7960 unsigned tnc;
7961 long i;
7962 up += n;
7963 rp += n;
7964 tnc = 8 * sizeof (unsigned long) - cnt;
7965 low_limb = *--up;
7966 high_limb = low_limb << cnt;
7967 for (i = n - 1; i != 0; i--)
7968 {
7969 low_limb = *--up;
7970 *--rp = ~(high_limb | (low_limb >> tnc));
7971 high_limb = low_limb << cnt;
7972 }
7973 *--rp = ~high_limb;
7974 }
7975 int
7976 main ()
7977 {
7978 unsigned long *r, *r2;
7979 unsigned long a[88 + 1];
7980 long i;
7981 for (i = 0; i < 88 + 1; i++)
7982 a[i] = ~0L;
7983 r = malloc (10000 * sizeof (unsigned long));
7984 r2 = r;
7985 for (i = 0; i < 528; i += 22)
7986 {
7987 lshift_com (r2, a,
7988 i / (8 * sizeof (unsigned long)) + 1,
7989 i % (8 * sizeof (unsigned long)));
7990 r2 += 88 + 1;
7991 }
7992 if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
7993 r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
7994 abort ();
7995 return 0;
7996 }
7997 #else
7998 int
7999 main ()
8000 {
8001 return 0;
8002 }
8003 #endif
8004
8005 EOF
8006 echo "Test compile: mpn_lshift_com optimization 2" >&5
8007 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
8008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
8009 (eval $gmp_compile) 2>&5
8010 ac_status=$?
8011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8012 test $ac_status = 0; }; then
8013 cc_works_part=yes
8014 if test "$cross_compiling" = no; then
8015 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
8016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8017 (eval $ac_try) 2>&5
8018 ac_status=$?
8019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8020 test $ac_status = 0; }; }; then :;
8021 else
8022 cc_works_part=norun
8023 fi
8024 fi
8025 else
8026 cc_works_part=no
8027 fi
8028 if test "$cc_works_part" != yes; then
8029 echo "failed program was:" >&5
8030 cat conftest.c >&5
8031 fi
8032 rm -f conftest* a.out b.out a.exe a_out.exe
8033 case $cc_works_part in
8034 yes)
8035
8036 ;;
8037 no)
8038 gmp_prog_cc_works="no, mpn_lshift_com optimization 2"
8039 ;;
8040 norun)
8041 gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run"
8042 ;;
8043 esac
8044 fi
8045
8046
8047
8048
8049 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
8050 # by recent versions of gcc.
8051 #
8052 if test "$gmp_prog_cc_works" = yes; then
8053 case $host in
8054 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*)
8055 # this problem only arises in PIC code, so don't need to test when
8056 # --disable-shared. We don't necessarily have $enable_shared set to
8057 # yes at this point, it will still be unset for the default (which is
8058 # yes); hence the use of "!= no".
8059 if test "$enable_shared" != no; then
8060 echo "Testing gcc GOT with eax emitted" >&5
8061 cat >conftest.c <<\EOF
8062 int foo;
8063 int bar () { return foo; }
8064 EOF
8065 tmp_got_emitted=no
8066 gmp_compile="$cc $cflags $cppflags $flag -fPIC -S conftest.c >&5 2>&1"
8067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
8068 (eval $gmp_compile) 2>&5
8069 ac_status=$?
8070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8071 test $ac_status = 0; }; then
8072 if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
8073 tmp_got_emitted=yes
8074 fi
8075 fi
8076 rm -f conftest.*
8077 echo "Result: $tmp_got_emitted" >&5
8078 if test "$tmp_got_emitted" = yes; then
8079 echo "Testing gas GOT with eax good" >&5
8080 cat >conftest.awk <<\EOF
8081 BEGIN {
8082 want[0] = "001"
8083 want[1] = "043"
8084 want[2] = "105"
8085 want[3] = "147"
8086 want[4] = "211"
8087 want[5] = "253"
8088 want[6] = "315"
8089 want[7] = "357"
8090
8091 want[8] = "005"
8092 want[9] = "002"
8093 want[10] = "000"
8094 want[11] = "000"
8095 want[12] = "000"
8096
8097 want[13] = "376"
8098 want[14] = "334"
8099 want[15] = "272"
8100 want[16] = "230"
8101 want[17] = "166"
8102 want[18] = "124"
8103 want[19] = "062"
8104 want[20] = "020"
8105
8106 result = "yes"
8107 }
8108 {
8109 for (f = 2; f <= NF; f++)
8110 {
8111 for (i = 0; i < 20; i++)
8112 got[i] = got[i+1];
8113 got[20] = $f;
8114
8115 found = 1
8116 for (i = 0; i < 21; i++)
8117 if (got[i] != want[i])
8118 {
8119 found = 0
8120 break
8121 }
8122 if (found)
8123 {
8124 result = "no"
8125 exit
8126 }
8127 }
8128 }
8129 END {
8130 print result
8131 }
8132 EOF
8133 cat >conftest.s <<\EOF
8134 .text
8135 .byte 1, 35, 69, 103, 137, 171, 205, 239
8136 addl $_GLOBAL_OFFSET_TABLE_, %eax
8137 .byte 254, 220, 186, 152, 118, 84, 50, 16
8138 EOF
8139 tmp_got_good=yes
8140 gmp_compile="$cc $cflags $cppflags $flag -fPIC -o conftest.o -c conftest.s >&5 2>&1"
8141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
8142 (eval $gmp_compile) 2>&5
8143 ac_status=$?
8144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8145 test $ac_status = 0; }; then
8146 tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
8147 fi
8148 rm -f conftest.*
8149 echo "Result: $tmp_got_good" >&5
8150 if test "$tmp_got_good" = no; then
8151 gmp_prog_cc_works="no, bad gas GOT with eax"
8152 else
8153 :
8154 fi
8155
8156 else
8157 :
8158 fi
8159
8160 fi
8161 ;;
8162 esac
8163 fi
8164
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
8166 $as_echo "$gmp_prog_cc_works" >&6; }
8167 case $gmp_prog_cc_works in
8168 yes)
8169 cflags="$cflags $flag"
8170 break
8171 ;;
8172 *)
8173
8174 ;;
8175 esac
8176
8177 done
8178 done
8179 fi
8180
8181 ABI="$abi"
8182 CC="$cc"
8183 CFLAGS="$cflags"
8184 CPPFLAGS="$cppflags"
8185 eval GMP_NONSTD_ABI=\"\$GMP_NONSTD_ABI_$ABI\"
8186
8187 # Could easily have this in config.h too, if desired.
8188 ABI_nodots=`echo $ABI | sed 's/\./_/'`
8189
8190 echo "define_not_for_expansion(\`HAVE_ABI_$ABI_nodots')" >> $gmp_tmpconfigm4p
8191
8192
8193
8194 # GMP_LDFLAGS substitution, selected according to ABI.
8195 # These are needed on libgmp.la and libmp.la, but currently not on
8196 # convenience libraries like tune/libspeed.la or mpz/libmpz.la.
8197 #
8198 eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
8199 test -n "$GMP_LDFLAGS" || eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
8200
8201
8202
8203
8204 # extra_functions, selected according to ABI
8205 eval tmp=\"\$extra_functions$abi1\"
8206 test -n "$tmp" || eval tmp=\"\$extra_functions$abi2\"
8207 extra_functions="$tmp"
8208
8209
8210 # Cycle counter, selected according to ABI.
8211 #
8212 eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi1\"
8213 test -n "$tmp" || eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi2\"
8214 SPEED_CYCLECOUNTER_OBJ="$tmp"
8215 eval tmp=\"\$cyclecounter_size$abi1\"
8216 test -n "$tmp" || eval tmp=\"\$cyclecounter_size$abi2\"
8217 cyclecounter_size="$tmp"
8218
8219 if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
8220
8221 cat >>confdefs.h <<_ACEOF
8222 #define HAVE_SPEED_CYCLECOUNTER $cyclecounter_size
8223 _ACEOF
8224
8225 fi
8226
8227
8228
8229 # Calling conventions checking, selected according to ABI.
8230 #
8231 eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi1\"
8232 test -n "$tmp" || eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi2\"
8233 if test "$enable_assembly" = "yes"; then
8234 CALLING_CONVENTIONS_OBJS="$tmp"
8235 else
8236 CALLING_CONVENTIONS_OBJS=""
8237 fi
8238
8239 if test -n "$CALLING_CONVENTIONS_OBJS"; then
8240
8241 $as_echo "#define HAVE_CALLING_CONVENTIONS 1" >>confdefs.h
8242
8243 fi
8244
8245
8246 fi
8247
8248
8249 # If the user gave an MPN_PATH, use that verbatim, otherwise choose
8250 # according to the ABI and add "generic".
8251 #
8252 if test -n "$MPN_PATH"; then
8253 path="$MPN_PATH"
8254 else
8255 eval tmp=\"\$path$abi1\"
8256 test -n "$tmp" || eval tmp=\"\$path$abi2\"
8257 path="$tmp generic"
8258 fi
8259
8260
8261 # Long long limb setup for gmp.h.
8262 case $limb_chosen in
8263 longlong) DEFN_LONG_LONG_LIMB="#define _LONG_LONG_LIMB 1" ;;
8264 *) DEFN_LONG_LONG_LIMB="/* #undef _LONG_LONG_LIMB */" ;;
8265 esac
8266
8267
8268
8269 # The C compiler and preprocessor, put into ANSI mode if possible.
8270 ac_ext=c
8271 ac_cpp='$CPP $CPPFLAGS'
8272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8275 if test -n "$ac_tool_prefix"; then
8276 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
8277 set dummy ${ac_tool_prefix}gcc; ac_word=$2
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8279 $as_echo_n "checking for $ac_word... " >&6; }
8280 if ${ac_cv_prog_CC+:} false; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 if test -n "$CC"; then
8284 ac_cv_prog_CC="$CC" # Let the user override the test.
8285 else
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287 for as_dir in $PATH
8288 do
8289 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=.
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8293 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 break 2
8296 fi
8297 done
8298 done
8299 IFS=$as_save_IFS
8300
8301 fi
8302 fi
8303 CC=$ac_cv_prog_CC
8304 if test -n "$CC"; then
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8306 $as_echo "$CC" >&6; }
8307 else
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309 $as_echo "no" >&6; }
8310 fi
8311
8312
8313 fi
8314 if test -z "$ac_cv_prog_CC"; then
8315 ac_ct_CC=$CC
8316 # Extract the first word of "gcc", so it can be a program name with args.
8317 set dummy gcc; ac_word=$2
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8319 $as_echo_n "checking for $ac_word... " >&6; }
8320 if ${ac_cv_prog_ac_ct_CC+:} false; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 if test -n "$ac_ct_CC"; then
8324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8325 else
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 for as_dir in $PATH
8328 do
8329 IFS=$as_save_IFS
8330 test -z "$as_dir" && as_dir=.
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8333 ac_cv_prog_ac_ct_CC="gcc"
8334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 break 2
8336 fi
8337 done
8338 done
8339 IFS=$as_save_IFS
8340
8341 fi
8342 fi
8343 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8344 if test -n "$ac_ct_CC"; then
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8346 $as_echo "$ac_ct_CC" >&6; }
8347 else
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349 $as_echo "no" >&6; }
8350 fi
8351
8352 if test "x$ac_ct_CC" = x; then
8353 CC=""
8354 else
8355 case $cross_compiling:$ac_tool_warned in
8356 yes:)
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8359 ac_tool_warned=yes ;;
8360 esac
8361 CC=$ac_ct_CC
8362 fi
8363 else
8364 CC="$ac_cv_prog_CC"
8365 fi
8366
8367 if test -z "$CC"; then
8368 if test -n "$ac_tool_prefix"; then
8369 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
8370 set dummy ${ac_tool_prefix}cc; 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_CC+:} false; then :
8374 $as_echo_n "(cached) " >&6
8375 else
8376 if test -n "$CC"; then
8377 ac_cv_prog_CC="$CC" # Let the user override the test.
8378 else
8379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380 for as_dir in $PATH
8381 do
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_CC="${ac_tool_prefix}cc"
8387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8388 break 2
8389 fi
8390 done
8391 done
8392 IFS=$as_save_IFS
8393
8394 fi
8395 fi
8396 CC=$ac_cv_prog_CC
8397 if test -n "$CC"; then
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8399 $as_echo "$CC" >&6; }
8400 else
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8402 $as_echo "no" >&6; }
8403 fi
8404
8405
8406 fi
8407 fi
8408 if test -z "$CC"; then
8409 # Extract the first word of "cc", so it can be a program name with args.
8410 set dummy cc; ac_word=$2
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412 $as_echo_n "checking for $ac_word... " >&6; }
8413 if ${ac_cv_prog_CC+:} false; then :
8414 $as_echo_n "(cached) " >&6
8415 else
8416 if test -n "$CC"; then
8417 ac_cv_prog_CC="$CC" # Let the user override the test.
8418 else
8419 ac_prog_rejected=no
8420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421 for as_dir in $PATH
8422 do
8423 IFS=$as_save_IFS
8424 test -z "$as_dir" && as_dir=.
8425 for ac_exec_ext in '' $ac_executable_extensions; do
8426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8427 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
8428 ac_prog_rejected=yes
8429 continue
8430 fi
8431 ac_cv_prog_CC="cc"
8432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8433 break 2
8434 fi
8435 done
8436 done
8437 IFS=$as_save_IFS
8438
8439 if test $ac_prog_rejected = yes; then
8440 # We found a bogon in the path, so make sure we never use it.
8441 set dummy $ac_cv_prog_CC
8442 shift
8443 if test $# != 0; then
8444 # We chose a different compiler from the bogus one.
8445 # However, it has the same basename, so the bogon will be chosen
8446 # first if we set CC to just the basename; use the full file name.
8447 shift
8448 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8449 fi
8450 fi
8451 fi
8452 fi
8453 CC=$ac_cv_prog_CC
8454 if test -n "$CC"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8456 $as_echo "$CC" >&6; }
8457 else
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8460 fi
8461
8462
8463 fi
8464 if test -z "$CC"; then
8465 if test -n "$ac_tool_prefix"; then
8466 for ac_prog in cl.exe
8467 do
8468 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471 $as_echo_n "checking for $ac_word... " >&6; }
8472 if ${ac_cv_prog_CC+:} false; then :
8473 $as_echo_n "(cached) " >&6
8474 else
8475 if test -n "$CC"; then
8476 ac_cv_prog_CC="$CC" # Let the user override the test.
8477 else
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 for as_dir in $PATH
8480 do
8481 IFS=$as_save_IFS
8482 test -z "$as_dir" && as_dir=.
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8485 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 break 2
8488 fi
8489 done
8490 done
8491 IFS=$as_save_IFS
8492
8493 fi
8494 fi
8495 CC=$ac_cv_prog_CC
8496 if test -n "$CC"; then
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8498 $as_echo "$CC" >&6; }
8499 else
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501 $as_echo "no" >&6; }
8502 fi
8503
8504
8505 test -n "$CC" && break
8506 done
8507 fi
8508 if test -z "$CC"; then
8509 ac_ct_CC=$CC
8510 for ac_prog in cl.exe
8511 do
8512 # Extract the first word of "$ac_prog", so it can be a program name with args.
8513 set dummy $ac_prog; ac_word=$2
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515 $as_echo_n "checking for $ac_word... " >&6; }
8516 if ${ac_cv_prog_ac_ct_CC+:} false; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 if test -n "$ac_ct_CC"; then
8520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8521 else
8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 for as_dir in $PATH
8524 do
8525 IFS=$as_save_IFS
8526 test -z "$as_dir" && as_dir=.
8527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8529 ac_cv_prog_ac_ct_CC="$ac_prog"
8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8531 break 2
8532 fi
8533 done
8534 done
8535 IFS=$as_save_IFS
8536
8537 fi
8538 fi
8539 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8540 if test -n "$ac_ct_CC"; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8542 $as_echo "$ac_ct_CC" >&6; }
8543 else
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 $as_echo "no" >&6; }
8546 fi
8547
8548
8549 test -n "$ac_ct_CC" && break
8550 done
8551
8552 if test "x$ac_ct_CC" = x; then
8553 CC=""
8554 else
8555 case $cross_compiling:$ac_tool_warned in
8556 yes:)
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8559 ac_tool_warned=yes ;;
8560 esac
8561 CC=$ac_ct_CC
8562 fi
8563 fi
8564
8565 fi
8566
8567
8568 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8570 as_fn_error $? "no acceptable C compiler found in \$PATH
8571 See \`config.log' for more details" "$LINENO" 5; }
8572
8573 # Provide some information about the compiler.
8574 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8575 set X $ac_compile
8576 ac_compiler=$2
8577 for ac_option in --version -v -V -qversion; do
8578 { { ac_try="$ac_compiler $ac_option >&5"
8579 case "(($ac_try" in
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8582 esac
8583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8584 $as_echo "$ac_try_echo"; } >&5
8585 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8586 ac_status=$?
8587 if test -s conftest.err; then
8588 sed '10a\
8589 ... rest of stderr output deleted ...
8590 10q' conftest.err >conftest.er1
8591 cat conftest.er1 >&5
8592 fi
8593 rm -f conftest.er1 conftest.err
8594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8595 test $ac_status = 0; }
8596 done
8597
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8600
8601 int
8602 main ()
8603 {
8604
8605 ;
8606 return 0;
8607 }
8608 _ACEOF
8609 ac_clean_files_save=$ac_clean_files
8610 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
8611 # Try to create an executable without -o first, disregard a.out.
8612 # It will help us diagnose broken compilers, and finding out an intuition
8613 # of exeext.
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
8615 $as_echo_n "checking whether the C compiler works... " >&6; }
8616 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
8617
8618 # The possible output files:
8619 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
8620
8621 ac_rmfiles=
8622 for ac_file in $ac_files
8623 do
8624 case $ac_file in
8625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
8626 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
8627 esac
8628 done
8629 rm -f $ac_rmfiles
8630
8631 if { { ac_try="$ac_link_default"
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_link_default") 2>&5
8639 ac_status=$?
8640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8641 test $ac_status = 0; }; then :
8642 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
8643 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
8644 # in a Makefile. We should not override ac_cv_exeext if it was cached,
8645 # so that the user can short-circuit this test for compilers unknown to
8646 # Autoconf.
8647 for ac_file in $ac_files ''
8648 do
8649 test -f "$ac_file" || continue
8650 case $ac_file in
8651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8652 ;;
8653 [ab].out )
8654 # We found the default executable, but exeext='' is most
8655 # certainly right.
8656 break;;
8657 *.* )
8658 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
8659 then :; else
8660 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8661 fi
8662 # We set ac_cv_exeext here because the later test for it is not
8663 # safe: cross compilers may not add the suffix if given an `-o'
8664 # argument, so we may need to know it at that point already.
8665 # Even if this section looks crufty: it has the advantage of
8666 # actually working.
8667 break;;
8668 * )
8669 break;;
8670 esac
8671 done
8672 test "$ac_cv_exeext" = no && ac_cv_exeext=
8673
8674 else
8675 ac_file=''
8676 fi
8677 if test -z "$ac_file"; then :
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8679 $as_echo "no" >&6; }
8680 $as_echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8682
8683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8685 as_fn_error 77 "C compiler cannot create executables
8686 See \`config.log' for more details" "$LINENO" 5; }
8687 else
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8689 $as_echo "yes" >&6; }
8690 fi
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
8692 $as_echo_n "checking for C compiler default output file name... " >&6; }
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
8694 $as_echo "$ac_file" >&6; }
8695 ac_exeext=$ac_cv_exeext
8696
8697 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
8698 ac_clean_files=$ac_clean_files_save
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
8700 $as_echo_n "checking for suffix of executables... " >&6; }
8701 if { { ac_try="$ac_link"
8702 case "(($ac_try" in
8703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704 *) ac_try_echo=$ac_try;;
8705 esac
8706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8707 $as_echo "$ac_try_echo"; } >&5
8708 (eval "$ac_link") 2>&5
8709 ac_status=$?
8710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8711 test $ac_status = 0; }; then :
8712 # If both `conftest.exe' and `conftest' are `present' (well, observable)
8713 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
8714 # work properly (i.e., refer to `conftest.exe'), while it won't with
8715 # `rm'.
8716 for ac_file in conftest.exe conftest conftest.*; do
8717 test -f "$ac_file" || continue
8718 case $ac_file in
8719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
8720 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8721 break;;
8722 * ) break;;
8723 esac
8724 done
8725 else
8726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8728 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
8729 See \`config.log' for more details" "$LINENO" 5; }
8730 fi
8731 rm -f conftest conftest$ac_cv_exeext
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
8733 $as_echo "$ac_cv_exeext" >&6; }
8734
8735 rm -f conftest.$ac_ext
8736 EXEEXT=$ac_cv_exeext
8737 ac_exeext=$EXEEXT
8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739 /* end confdefs.h. */
8740 #include <stdio.h>
8741 int
8742 main ()
8743 {
8744 FILE *f = fopen ("conftest.out", "w");
8745 return ferror (f) || fclose (f) != 0;
8746
8747 ;
8748 return 0;
8749 }
8750 _ACEOF
8751 ac_clean_files="$ac_clean_files conftest.out"
8752 # Check that the compiler produces executables we can run. If not, either
8753 # the compiler is broken, or we cross compile.
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
8755 $as_echo_n "checking whether we are cross compiling... " >&6; }
8756 if test "$cross_compiling" != yes; then
8757 { { ac_try="$ac_link"
8758 case "(($ac_try" in
8759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8760 *) ac_try_echo=$ac_try;;
8761 esac
8762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8763 $as_echo "$ac_try_echo"; } >&5
8764 (eval "$ac_link") 2>&5
8765 ac_status=$?
8766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8767 test $ac_status = 0; }
8768 if { ac_try='./conftest$ac_cv_exeext'
8769 { { case "(($ac_try" in
8770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771 *) ac_try_echo=$ac_try;;
8772 esac
8773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8774 $as_echo "$ac_try_echo"; } >&5
8775 (eval "$ac_try") 2>&5
8776 ac_status=$?
8777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8778 test $ac_status = 0; }; }; then
8779 cross_compiling=no
8780 else
8781 if test "$cross_compiling" = maybe; then
8782 cross_compiling=yes
8783 else
8784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8786 as_fn_error $? "cannot run C compiled programs.
8787 If you meant to cross compile, use \`--host'.
8788 See \`config.log' for more details" "$LINENO" 5; }
8789 fi
8790 fi
8791 fi
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
8793 $as_echo "$cross_compiling" >&6; }
8794
8795 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
8796 ac_clean_files=$ac_clean_files_save
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
8798 $as_echo_n "checking for suffix of object files... " >&6; }
8799 if ${ac_cv_objext+:} false; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803 /* end confdefs.h. */
8804
8805 int
8806 main ()
8807 {
8808
8809 ;
8810 return 0;
8811 }
8812 _ACEOF
8813 rm -f conftest.o conftest.obj
8814 if { { ac_try="$ac_compile"
8815 case "(($ac_try" in
8816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8817 *) ac_try_echo=$ac_try;;
8818 esac
8819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8820 $as_echo "$ac_try_echo"; } >&5
8821 (eval "$ac_compile") 2>&5
8822 ac_status=$?
8823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8824 test $ac_status = 0; }; then :
8825 for ac_file in conftest.o conftest.obj conftest.*; do
8826 test -f "$ac_file" || continue;
8827 case $ac_file in
8828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
8829 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
8830 break;;
8831 esac
8832 done
8833 else
8834 $as_echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8836
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 compute suffix of object files: cannot compile
8840 See \`config.log' for more details" "$LINENO" 5; }
8841 fi
8842 rm -f conftest.$ac_cv_objext conftest.$ac_ext
8843 fi
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
8845 $as_echo "$ac_cv_objext" >&6; }
8846 OBJEXT=$ac_cv_objext
8847 ac_objext=$OBJEXT
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8849 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
8850 if ${ac_cv_c_compiler_gnu+:} false; then :
8851 $as_echo_n "(cached) " >&6
8852 else
8853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8854 /* end confdefs.h. */
8855
8856 int
8857 main ()
8858 {
8859 #ifndef __GNUC__
8860 choke me
8861 #endif
8862
8863 ;
8864 return 0;
8865 }
8866 _ACEOF
8867 if ac_fn_c_try_compile "$LINENO"; then :
8868 ac_compiler_gnu=yes
8869 else
8870 ac_compiler_gnu=no
8871 fi
8872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8873 ac_cv_c_compiler_gnu=$ac_compiler_gnu
8874
8875 fi
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8877 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
8878 if test $ac_compiler_gnu = yes; then
8879 GCC=yes
8880 else
8881 GCC=
8882 fi
8883 ac_test_CFLAGS=${CFLAGS+set}
8884 ac_save_CFLAGS=$CFLAGS
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8886 $as_echo_n "checking whether $CC accepts -g... " >&6; }
8887 if ${ac_cv_prog_cc_g+:} false; then :
8888 $as_echo_n "(cached) " >&6
8889 else
8890 ac_save_c_werror_flag=$ac_c_werror_flag
8891 ac_c_werror_flag=yes
8892 ac_cv_prog_cc_g=no
8893 CFLAGS="-g"
8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895 /* end confdefs.h. */
8896
8897 int
8898 main ()
8899 {
8900
8901 ;
8902 return 0;
8903 }
8904 _ACEOF
8905 if ac_fn_c_try_compile "$LINENO"; then :
8906 ac_cv_prog_cc_g=yes
8907 else
8908 CFLAGS=""
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8911
8912 int
8913 main ()
8914 {
8915
8916 ;
8917 return 0;
8918 }
8919 _ACEOF
8920 if ac_fn_c_try_compile "$LINENO"; then :
8921
8922 else
8923 ac_c_werror_flag=$ac_save_c_werror_flag
8924 CFLAGS="-g"
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927
8928 int
8929 main ()
8930 {
8931
8932 ;
8933 return 0;
8934 }
8935 _ACEOF
8936 if ac_fn_c_try_compile "$LINENO"; then :
8937 ac_cv_prog_cc_g=yes
8938 fi
8939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8940 fi
8941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8942 fi
8943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8944 ac_c_werror_flag=$ac_save_c_werror_flag
8945 fi
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8947 $as_echo "$ac_cv_prog_cc_g" >&6; }
8948 if test "$ac_test_CFLAGS" = set; then
8949 CFLAGS=$ac_save_CFLAGS
8950 elif test $ac_cv_prog_cc_g = yes; then
8951 if test "$GCC" = yes; then
8952 CFLAGS="-g -O2"
8953 else
8954 CFLAGS="-g"
8955 fi
8956 else
8957 if test "$GCC" = yes; then
8958 CFLAGS="-O2"
8959 else
8960 CFLAGS=
8961 fi
8962 fi
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8964 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
8965 if ${ac_cv_prog_cc_c89+:} false; then :
8966 $as_echo_n "(cached) " >&6
8967 else
8968 ac_cv_prog_cc_c89=no
8969 ac_save_CC=$CC
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8972 #include <stdarg.h>
8973 #include <stdio.h>
8974 struct stat;
8975 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8976 struct buf { int x; };
8977 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8978 static char *e (p, i)
8979 char **p;
8980 int i;
8981 {
8982 return p[i];
8983 }
8984 static char *f (char * (*g) (char **, int), char **p, ...)
8985 {
8986 char *s;
8987 va_list v;
8988 va_start (v,p);
8989 s = g (p, va_arg (v,int));
8990 va_end (v);
8991 return s;
8992 }
8993
8994 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
8995 function prototypes and stuff, but not '\xHH' hex character constants.
8996 These don't provoke an error unfortunately, instead are silently treated
8997 as 'x'. The following induces an error, until -std is added to get
8998 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
8999 array size at least. It's necessary to write '\x00'==0 to get something
9000 that's true only with -std. */
9001 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
9002
9003 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
9004 inside strings and character constants. */
9005 #define FOO(x) 'x'
9006 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
9007
9008 int test (int i, double x);
9009 struct s1 {int (*f) (int a);};
9010 struct s2 {int (*f) (double a);};
9011 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9012 int argc;
9013 char **argv;
9014 int
9015 main ()
9016 {
9017 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
9018 ;
9019 return 0;
9020 }
9021 _ACEOF
9022 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
9023 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9024 do
9025 CC="$ac_save_CC $ac_arg"
9026 if ac_fn_c_try_compile "$LINENO"; then :
9027 ac_cv_prog_cc_c89=$ac_arg
9028 fi
9029 rm -f core conftest.err conftest.$ac_objext
9030 test "x$ac_cv_prog_cc_c89" != "xno" && break
9031 done
9032 rm -f conftest.$ac_ext
9033 CC=$ac_save_CC
9034
9035 fi
9036 # AC_CACHE_VAL
9037 case "x$ac_cv_prog_cc_c89" in
9038 x)
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9040 $as_echo "none needed" >&6; } ;;
9041 xno)
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9043 $as_echo "unsupported" >&6; } ;;
9044 *)
9045 CC="$CC $ac_cv_prog_cc_c89"
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
9047 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
9048 esac
9049 if test "x$ac_cv_prog_cc_c89" != xno; then :
9050
9051 fi
9052
9053 ac_ext=c
9054 ac_cpp='$CPP $CPPFLAGS'
9055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9058
9059 case $ac_cv_prog_cc_stdc in #(
9060 no) :
9061 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
9062 *) :
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
9064 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
9065 if ${ac_cv_prog_cc_c99+:} false; then :
9066 $as_echo_n "(cached) " >&6
9067 else
9068 ac_cv_prog_cc_c99=no
9069 ac_save_CC=$CC
9070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071 /* end confdefs.h. */
9072 #include <stdarg.h>
9073 #include <stdbool.h>
9074 #include <stdlib.h>
9075 #include <wchar.h>
9076 #include <stdio.h>
9077
9078 // Check varargs macros. These examples are taken from C99 6.10.3.5.
9079 #define debug(...) fprintf (stderr, __VA_ARGS__)
9080 #define showlist(...) puts (#__VA_ARGS__)
9081 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
9082 static void
9083 test_varargs_macros (void)
9084 {
9085 int x = 1234;
9086 int y = 5678;
9087 debug ("Flag");
9088 debug ("X = %d\n", x);
9089 showlist (The first, second, and third items.);
9090 report (x>y, "x is %d but y is %d", x, y);
9091 }
9092
9093 // Check long long types.
9094 #define BIG64 18446744073709551615ull
9095 #define BIG32 4294967295ul
9096 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
9097 #if !BIG_OK
9098 your preprocessor is broken;
9099 #endif
9100 #if BIG_OK
9101 #else
9102 your preprocessor is broken;
9103 #endif
9104 static long long int bignum = -9223372036854775807LL;
9105 static unsigned long long int ubignum = BIG64;
9106
9107 struct incomplete_array
9108 {
9109 int datasize;
9110 double data[];
9111 };
9112
9113 struct named_init {
9114 int number;
9115 const wchar_t *name;
9116 double average;
9117 };
9118
9119 typedef const char *ccp;
9120
9121 static inline int
9122 test_restrict (ccp restrict text)
9123 {
9124 // See if C++-style comments work.
9125 // Iterate through items via the restricted pointer.
9126 // Also check for declarations in for loops.
9127 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
9128 continue;
9129 return 0;
9130 }
9131
9132 // Check varargs and va_copy.
9133 static void
9134 test_varargs (const char *format, ...)
9135 {
9136 va_list args;
9137 va_start (args, format);
9138 va_list args_copy;
9139 va_copy (args_copy, args);
9140
9141 const char *str;
9142 int number;
9143 float fnumber;
9144
9145 while (*format)
9146 {
9147 switch (*format++)
9148 {
9149 case 's': // string
9150 str = va_arg (args_copy, const char *);
9151 break;
9152 case 'd': // int
9153 number = va_arg (args_copy, int);
9154 break;
9155 case 'f': // float
9156 fnumber = va_arg (args_copy, double);
9157 break;
9158 default:
9159 break;
9160 }
9161 }
9162 va_end (args_copy);
9163 va_end (args);
9164 }
9165
9166 int
9167 main ()
9168 {
9169
9170 // Check bool.
9171 _Bool success = false;
9172
9173 // Check restrict.
9174 if (test_restrict ("String literal") == 0)
9175 success = true;
9176 char *restrict newvar = "Another string";
9177
9178 // Check varargs.
9179 test_varargs ("s, d' f .", "string", 65, 34.234);
9180 test_varargs_macros ();
9181
9182 // Check flexible array members.
9183 struct incomplete_array *ia =
9184 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
9185 ia->datasize = 10;
9186 for (int i = 0; i < ia->datasize; ++i)
9187 ia->data[i] = i * 1.234;
9188
9189 // Check named initializers.
9190 struct named_init ni = {
9191 .number = 34,
9192 .name = L"Test wide string",
9193 .average = 543.34343,
9194 };
9195
9196 ni.number = 58;
9197
9198 int dynamic_array[ni.number];
9199 dynamic_array[ni.number - 1] = 543;
9200
9201 // work around unused variable warnings
9202 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
9203 || dynamic_array[ni.number - 1] != 543);
9204
9205 ;
9206 return 0;
9207 }
9208 _ACEOF
9209 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
9210 do
9211 CC="$ac_save_CC $ac_arg"
9212 if ac_fn_c_try_compile "$LINENO"; then :
9213 ac_cv_prog_cc_c99=$ac_arg
9214 fi
9215 rm -f core conftest.err conftest.$ac_objext
9216 test "x$ac_cv_prog_cc_c99" != "xno" && break
9217 done
9218 rm -f conftest.$ac_ext
9219 CC=$ac_save_CC
9220
9221 fi
9222 # AC_CACHE_VAL
9223 case "x$ac_cv_prog_cc_c99" in
9224 x)
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9226 $as_echo "none needed" >&6; } ;;
9227 xno)
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9229 $as_echo "unsupported" >&6; } ;;
9230 *)
9231 CC="$CC $ac_cv_prog_cc_c99"
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
9233 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
9234 esac
9235 if test "x$ac_cv_prog_cc_c99" != xno; then :
9236 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
9237 else
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
9239 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
9240 if ${ac_cv_prog_cc_c89+:} false; then :
9241 $as_echo_n "(cached) " >&6
9242 else
9243 ac_cv_prog_cc_c89=no
9244 ac_save_CC=$CC
9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h. */
9247 #include <stdarg.h>
9248 #include <stdio.h>
9249 struct stat;
9250 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
9251 struct buf { int x; };
9252 FILE * (*rcsopen) (struct buf *, struct stat *, int);
9253 static char *e (p, i)
9254 char **p;
9255 int i;
9256 {
9257 return p[i];
9258 }
9259 static char *f (char * (*g) (char **, int), char **p, ...)
9260 {
9261 char *s;
9262 va_list v;
9263 va_start (v,p);
9264 s = g (p, va_arg (v,int));
9265 va_end (v);
9266 return s;
9267 }
9268
9269 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
9270 function prototypes and stuff, but not '\xHH' hex character constants.
9271 These don't provoke an error unfortunately, instead are silently treated
9272 as 'x'. The following induces an error, until -std is added to get
9273 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
9274 array size at least. It's necessary to write '\x00'==0 to get something
9275 that's true only with -std. */
9276 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
9277
9278 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
9279 inside strings and character constants. */
9280 #define FOO(x) 'x'
9281 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
9282
9283 int test (int i, double x);
9284 struct s1 {int (*f) (int a);};
9285 struct s2 {int (*f) (double a);};
9286 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9287 int argc;
9288 char **argv;
9289 int
9290 main ()
9291 {
9292 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
9293 ;
9294 return 0;
9295 }
9296 _ACEOF
9297 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
9298 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9299 do
9300 CC="$ac_save_CC $ac_arg"
9301 if ac_fn_c_try_compile "$LINENO"; then :
9302 ac_cv_prog_cc_c89=$ac_arg
9303 fi
9304 rm -f core conftest.err conftest.$ac_objext
9305 test "x$ac_cv_prog_cc_c89" != "xno" && break
9306 done
9307 rm -f conftest.$ac_ext
9308 CC=$ac_save_CC
9309
9310 fi
9311 # AC_CACHE_VAL
9312 case "x$ac_cv_prog_cc_c89" in
9313 x)
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9315 $as_echo "none needed" >&6; } ;;
9316 xno)
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9318 $as_echo "unsupported" >&6; } ;;
9319 *)
9320 CC="$CC $ac_cv_prog_cc_c89"
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
9322 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
9323 esac
9324 if test "x$ac_cv_prog_cc_c89" != xno; then :
9325 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
9326 else
9327 ac_cv_prog_cc_stdc=no
9328 fi
9329
9330 fi
9331 ;;
9332 esac
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
9334 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
9335 if ${ac_cv_prog_cc_stdc+:} false; then :
9336 $as_echo_n "(cached) " >&6
9337 fi
9338
9339 case $ac_cv_prog_cc_stdc in #(
9340 no) :
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9342 $as_echo "unsupported" >&6; } ;; #(
9343 '') :
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9345 $as_echo "none needed" >&6; } ;; #(
9346 *) :
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
9348 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
9349 esac
9350
9351 ac_ext=c
9352 ac_cpp='$CPP $CPPFLAGS'
9353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9357 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9358 # On Suns, sometimes $CPP names a directory.
9359 if test -n "$CPP" && test -d "$CPP"; then
9360 CPP=
9361 fi
9362 if test -z "$CPP"; then
9363 if ${ac_cv_prog_CPP+:} false; then :
9364 $as_echo_n "(cached) " >&6
9365 else
9366 # Double quotes because CPP needs to be expanded
9367 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9368 do
9369 ac_preproc_ok=false
9370 for ac_c_preproc_warn_flag in '' yes
9371 do
9372 # Use a header file that comes with gcc, so configuring glibc
9373 # with a fresh cross-compiler works.
9374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9375 # <limits.h> exists even on freestanding compilers.
9376 # On the NeXT, cc -E runs the code through the compiler's parser,
9377 # not just through cpp. "Syntax error" is here to catch this case.
9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h. */
9380 #ifdef __STDC__
9381 # include <limits.h>
9382 #else
9383 # include <assert.h>
9384 #endif
9385 Syntax error
9386 _ACEOF
9387 if ac_fn_c_try_cpp "$LINENO"; then :
9388
9389 else
9390 # Broken: fails on valid input.
9391 continue
9392 fi
9393 rm -f conftest.err conftest.i conftest.$ac_ext
9394
9395 # OK, works on sane cases. Now check whether nonexistent headers
9396 # can be detected and how.
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9399 #include <ac_nonexistent.h>
9400 _ACEOF
9401 if ac_fn_c_try_cpp "$LINENO"; then :
9402 # Broken: success on invalid input.
9403 continue
9404 else
9405 # Passes both tests.
9406 ac_preproc_ok=:
9407 break
9408 fi
9409 rm -f conftest.err conftest.i conftest.$ac_ext
9410
9411 done
9412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9413 rm -f conftest.i conftest.err conftest.$ac_ext
9414 if $ac_preproc_ok; then :
9415 break
9416 fi
9417
9418 done
9419 ac_cv_prog_CPP=$CPP
9420
9421 fi
9422 CPP=$ac_cv_prog_CPP
9423 else
9424 ac_cv_prog_CPP=$CPP
9425 fi
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9427 $as_echo "$CPP" >&6; }
9428 ac_preproc_ok=false
9429 for ac_c_preproc_warn_flag in '' yes
9430 do
9431 # Use a header file that comes with gcc, so configuring glibc
9432 # with a fresh cross-compiler works.
9433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9434 # <limits.h> exists even on freestanding compilers.
9435 # On the NeXT, cc -E runs the code through the compiler's parser,
9436 # not just through cpp. "Syntax error" is here to catch this case.
9437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438 /* end confdefs.h. */
9439 #ifdef __STDC__
9440 # include <limits.h>
9441 #else
9442 # include <assert.h>
9443 #endif
9444 Syntax error
9445 _ACEOF
9446 if ac_fn_c_try_cpp "$LINENO"; then :
9447
9448 else
9449 # Broken: fails on valid input.
9450 continue
9451 fi
9452 rm -f conftest.err conftest.i conftest.$ac_ext
9453
9454 # OK, works on sane cases. Now check whether nonexistent headers
9455 # can be detected and how.
9456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h. */
9458 #include <ac_nonexistent.h>
9459 _ACEOF
9460 if ac_fn_c_try_cpp "$LINENO"; then :
9461 # Broken: success on invalid input.
9462 continue
9463 else
9464 # Passes both tests.
9465 ac_preproc_ok=:
9466 break
9467 fi
9468 rm -f conftest.err conftest.i conftest.$ac_ext
9469
9470 done
9471 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9472 rm -f conftest.i conftest.err conftest.$ac_ext
9473 if $ac_preproc_ok; then :
9474
9475 else
9476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9478 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9479 See \`config.log' for more details" "$LINENO" 5; }
9480 fi
9481
9482 ac_ext=c
9483 ac_cpp='$CPP $CPPFLAGS'
9484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9487
9488
9489
9490 # The C compiler on the build system, and associated tests.
9491
9492 if test -n "$CC_FOR_BUILD"; then
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $CC_FOR_BUILD" >&5
9494 $as_echo_n "checking build system compiler $CC_FOR_BUILD... " >&6; }
9495 # remove anything that might look like compiler output to our "||" expression
9496 rm -f conftest* a.out b.out a.exe a_out.exe
9497 cat >conftest.c <<EOF
9498 int
9499 main ()
9500 {
9501 exit(0);
9502 }
9503 EOF
9504 gmp_compile="$CC_FOR_BUILD conftest.c"
9505 cc_for_build_works=no
9506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9507 (eval $gmp_compile) 2>&5
9508 ac_status=$?
9509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9510 test $ac_status = 0; }; then
9511 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
9512 cc_for_build_works=yes
9513 fi
9514 fi
9515 rm -f conftest* a.out b.out a.exe a_out.exe
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
9517 $as_echo "$cc_for_build_works" >&6; }
9518 if test "$cc_for_build_works" = yes; then
9519 :
9520 else
9521 as_fn_error $? "Specified CC_FOR_BUILD doesn't seem to work" "$LINENO" 5
9522 fi
9523
9524 elif test -n "$HOST_CC"; then
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $HOST_CC" >&5
9526 $as_echo_n "checking build system compiler $HOST_CC... " >&6; }
9527 # remove anything that might look like compiler output to our "||" expression
9528 rm -f conftest* a.out b.out a.exe a_out.exe
9529 cat >conftest.c <<EOF
9530 int
9531 main ()
9532 {
9533 exit(0);
9534 }
9535 EOF
9536 gmp_compile="$HOST_CC conftest.c"
9537 cc_for_build_works=no
9538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9539 (eval $gmp_compile) 2>&5
9540 ac_status=$?
9541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9542 test $ac_status = 0; }; then
9543 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
9544 cc_for_build_works=yes
9545 fi
9546 fi
9547 rm -f conftest* a.out b.out a.exe a_out.exe
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
9549 $as_echo "$cc_for_build_works" >&6; }
9550 if test "$cc_for_build_works" = yes; then
9551 CC_FOR_BUILD=$HOST_CC
9552 else
9553 as_fn_error $? "Specified HOST_CC doesn't seem to work" "$LINENO" 5
9554 fi
9555
9556 else
9557 for i in "$CC" "$CC $CFLAGS $CPPFLAGS" cc gcc c89 c99; do
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $i" >&5
9559 $as_echo_n "checking build system compiler $i... " >&6; }
9560 # remove anything that might look like compiler output to our "||" expression
9561 rm -f conftest* a.out b.out a.exe a_out.exe
9562 cat >conftest.c <<EOF
9563 int
9564 main ()
9565 {
9566 exit(0);
9567 }
9568 EOF
9569 gmp_compile="$i conftest.c"
9570 cc_for_build_works=no
9571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9572 (eval $gmp_compile) 2>&5
9573 ac_status=$?
9574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9575 test $ac_status = 0; }; then
9576 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
9577 cc_for_build_works=yes
9578 fi
9579 fi
9580 rm -f conftest* a.out b.out a.exe a_out.exe
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
9582 $as_echo "$cc_for_build_works" >&6; }
9583 if test "$cc_for_build_works" = yes; then
9584 CC_FOR_BUILD=$i
9585 break
9586 else
9587 :
9588 fi
9589
9590 done
9591 if test -z "$CC_FOR_BUILD"; then
9592 as_fn_error $? "Cannot find a build system compiler" "$LINENO" 5
9593 fi
9594 fi
9595
9596
9597
9598
9599
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system preprocessor" >&5
9601 $as_echo_n "checking for build system preprocessor... " >&6; }
9602 if test -z "$CPP_FOR_BUILD"; then
9603 if ${gmp_cv_prog_cpp_for_build+:} false; then :
9604 $as_echo_n "(cached) " >&6
9605 else
9606 cat >conftest.c <<EOF
9607 #define FOO BAR
9608 EOF
9609 for i in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"; do
9610 gmp_compile="$i conftest.c"
9611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9612 (eval $gmp_compile) 2>&5
9613 ac_status=$?
9614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9615 test $ac_status = 0; } >&5 2>&1; then
9616 gmp_cv_prog_cpp_for_build=$i
9617 break
9618 fi
9619 done
9620 rm -f conftest* a.out b.out a.exe a_out.exe
9621 if test -z "$gmp_cv_prog_cpp_for_build"; then
9622 as_fn_error $? "Cannot find build system C preprocessor." "$LINENO" 5
9623 fi
9624
9625 fi
9626
9627 CPP_FOR_BUILD=$gmp_cv_prog_cpp_for_build
9628 fi
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
9630 $as_echo "$CPP_FOR_BUILD" >&6; }
9631
9632
9633
9634
9635
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
9637 $as_echo_n "checking for build system executable suffix... " >&6; }
9638 if ${gmp_cv_prog_exeext_for_build+:} false; then :
9639 $as_echo_n "(cached) " >&6
9640 else
9641 cat >conftest.c <<EOF
9642 int
9643 main ()
9644 {
9645 exit (0);
9646 }
9647 EOF
9648 for i in .exe ,ff8 ""; do
9649 gmp_compile="$CC_FOR_BUILD conftest.c -o conftest$i"
9650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9651 (eval $gmp_compile) 2>&5
9652 ac_status=$?
9653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9654 test $ac_status = 0; }; then
9655 if (./conftest) 2>&5; then
9656 gmp_cv_prog_exeext_for_build=$i
9657 break
9658 fi
9659 fi
9660 done
9661 rm -f conftest*
9662 if test "${gmp_cv_prog_exeext_for_build+set}" != set; then
9663 as_fn_error $? "Cannot determine executable suffix" "$LINENO" 5
9664 fi
9665
9666 fi
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_exeext_for_build" >&5
9668 $as_echo "$gmp_cv_prog_exeext_for_build" >&6; }
9669 EXEEXT_FOR_BUILD=$gmp_cv_prog_exeext_for_build
9670
9671
9672
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build system compiler is ANSI" >&5
9674 $as_echo_n "checking whether build system compiler is ANSI... " >&6; }
9675 if ${gmp_cv_c_for_build_ansi+:} false; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 cat >conftest.c <<EOF
9679 int
9680 main (int argc, char **argv)
9681 {
9682 exit(0);
9683 }
9684 EOF
9685 gmp_compile="$CC_FOR_BUILD conftest.c"
9686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9687 (eval $gmp_compile) 2>&5
9688 ac_status=$?
9689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9690 test $ac_status = 0; }; then
9691 gmp_cv_c_for_build_ansi=yes
9692 else
9693 gmp_cv_c_for_build_ansi=no
9694 fi
9695 rm -f conftest* a.out b.out a.exe a_out.exe
9696
9697 fi
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_for_build_ansi" >&5
9699 $as_echo "$gmp_cv_c_for_build_ansi" >&6; }
9700 if test "$gmp_cv_c_for_build_ansi" = yes; then
9701 U_FOR_BUILD=
9702 else
9703 U_FOR_BUILD=_
9704
9705 fi
9706
9707
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system compiler math library" >&5
9709 $as_echo_n "checking for build system compiler math library... " >&6; }
9710 if ${gmp_cv_check_libm_for_build+:} false; then :
9711 $as_echo_n "(cached) " >&6
9712 else
9713 cat >conftest.c <<EOF
9714 int
9715 main ()
9716 {
9717 exit(0);
9718 }
9719 double d;
9720 double
9721 foo ()
9722 {
9723 return log (d);
9724 }
9725 EOF
9726 gmp_compile="$CC_FOR_BUILD conftest.c -lm"
9727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9728 (eval $gmp_compile) 2>&5
9729 ac_status=$?
9730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9731 test $ac_status = 0; }; then
9732 gmp_cv_check_libm_for_build=-lm
9733 else
9734 gmp_cv_check_libm_for_build=no
9735 fi
9736 rm -f conftest* a.out b.out a.exe a_out.exe
9737
9738 fi
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_check_libm_for_build" >&5
9740 $as_echo "$gmp_cv_check_libm_for_build" >&6; }
9741 case $gmp_cv_check_libm_for_build in
9742 yes) LIBM_FOR_BUILD=-lm
9743 ;;
9744 no) LIBM_FOR_BUILD= ;;
9745 *) LIBM_FOR_BUILD=$gmp_cv_check_libm_for_build ;;
9746 esac
9747
9748
9749
9750 # How to assemble, used with CFLAGS etc, see mpn/Makeasm.am.
9751 # Using the compiler is a lot easier than figuring out how to invoke the
9752 # assembler directly.
9753 #
9754 test -n "$CCAS" || CCAS="$CC -c"
9755
9756
9757
9758 # The C++ compiler, if desired.
9759 want_cxx=no
9760 if test $enable_cxx != no; then
9761 test_CXXFLAGS=${CXXFLAGS+set}
9762 ac_ext=cpp
9763 ac_cpp='$CXXCPP $CPPFLAGS'
9764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9767 if test -z "$CXX"; then
9768 if test -n "$CCC"; then
9769 CXX=$CCC
9770 else
9771 if test -n "$ac_tool_prefix"; then
9772 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9773 do
9774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9775 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9777 $as_echo_n "checking for $ac_word... " >&6; }
9778 if ${ac_cv_prog_CXX+:} false; then :
9779 $as_echo_n "(cached) " >&6
9780 else
9781 if test -n "$CXX"; then
9782 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9783 else
9784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9785 for as_dir in $PATH
9786 do
9787 IFS=$as_save_IFS
9788 test -z "$as_dir" && as_dir=.
9789 for ac_exec_ext in '' $ac_executable_extensions; do
9790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9791 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9793 break 2
9794 fi
9795 done
9796 done
9797 IFS=$as_save_IFS
9798
9799 fi
9800 fi
9801 CXX=$ac_cv_prog_CXX
9802 if test -n "$CXX"; then
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
9804 $as_echo "$CXX" >&6; }
9805 else
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9807 $as_echo "no" >&6; }
9808 fi
9809
9810
9811 test -n "$CXX" && break
9812 done
9813 fi
9814 if test -z "$CXX"; then
9815 ac_ct_CXX=$CXX
9816 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9817 do
9818 # Extract the first word of "$ac_prog", so it can be a program name with args.
9819 set dummy $ac_prog; ac_word=$2
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9821 $as_echo_n "checking for $ac_word... " >&6; }
9822 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
9823 $as_echo_n "(cached) " >&6
9824 else
9825 if test -n "$ac_ct_CXX"; then
9826 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9827 else
9828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9829 for as_dir in $PATH
9830 do
9831 IFS=$as_save_IFS
9832 test -z "$as_dir" && as_dir=.
9833 for ac_exec_ext in '' $ac_executable_extensions; do
9834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9835 ac_cv_prog_ac_ct_CXX="$ac_prog"
9836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9837 break 2
9838 fi
9839 done
9840 done
9841 IFS=$as_save_IFS
9842
9843 fi
9844 fi
9845 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9846 if test -n "$ac_ct_CXX"; then
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
9848 $as_echo "$ac_ct_CXX" >&6; }
9849 else
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9851 $as_echo "no" >&6; }
9852 fi
9853
9854
9855 test -n "$ac_ct_CXX" && break
9856 done
9857
9858 if test "x$ac_ct_CXX" = x; then
9859 CXX="g++"
9860 else
9861 case $cross_compiling:$ac_tool_warned in
9862 yes:)
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9865 ac_tool_warned=yes ;;
9866 esac
9867 CXX=$ac_ct_CXX
9868 fi
9869 fi
9870
9871 fi
9872 fi
9873 # Provide some information about the compiler.
9874 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
9875 set X $ac_compile
9876 ac_compiler=$2
9877 for ac_option in --version -v -V -qversion; do
9878 { { ac_try="$ac_compiler $ac_option >&5"
9879 case "(($ac_try" in
9880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881 *) ac_try_echo=$ac_try;;
9882 esac
9883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9884 $as_echo "$ac_try_echo"; } >&5
9885 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9886 ac_status=$?
9887 if test -s conftest.err; then
9888 sed '10a\
9889 ... rest of stderr output deleted ...
9890 10q' conftest.err >conftest.er1
9891 cat conftest.er1 >&5
9892 fi
9893 rm -f conftest.er1 conftest.err
9894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9895 test $ac_status = 0; }
9896 done
9897
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
9899 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9900 if ${ac_cv_cxx_compiler_gnu+:} false; then :
9901 $as_echo_n "(cached) " >&6
9902 else
9903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9904 /* end confdefs.h. */
9905
9906 int
9907 main ()
9908 {
9909 #ifndef __GNUC__
9910 choke me
9911 #endif
9912
9913 ;
9914 return 0;
9915 }
9916 _ACEOF
9917 if ac_fn_cxx_try_compile "$LINENO"; then :
9918 ac_compiler_gnu=yes
9919 else
9920 ac_compiler_gnu=no
9921 fi
9922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9923 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9924
9925 fi
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
9927 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9928 if test $ac_compiler_gnu = yes; then
9929 GXX=yes
9930 else
9931 GXX=
9932 fi
9933 ac_test_CXXFLAGS=${CXXFLAGS+set}
9934 ac_save_CXXFLAGS=$CXXFLAGS
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
9936 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
9937 if ${ac_cv_prog_cxx_g+:} false; then :
9938 $as_echo_n "(cached) " >&6
9939 else
9940 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9941 ac_cxx_werror_flag=yes
9942 ac_cv_prog_cxx_g=no
9943 CXXFLAGS="-g"
9944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945 /* end confdefs.h. */
9946
9947 int
9948 main ()
9949 {
9950
9951 ;
9952 return 0;
9953 }
9954 _ACEOF
9955 if ac_fn_cxx_try_compile "$LINENO"; then :
9956 ac_cv_prog_cxx_g=yes
9957 else
9958 CXXFLAGS=""
9959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9960 /* end confdefs.h. */
9961
9962 int
9963 main ()
9964 {
9965
9966 ;
9967 return 0;
9968 }
9969 _ACEOF
9970 if ac_fn_cxx_try_compile "$LINENO"; then :
9971
9972 else
9973 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9974 CXXFLAGS="-g"
9975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9976 /* end confdefs.h. */
9977
9978 int
9979 main ()
9980 {
9981
9982 ;
9983 return 0;
9984 }
9985 _ACEOF
9986 if ac_fn_cxx_try_compile "$LINENO"; then :
9987 ac_cv_prog_cxx_g=yes
9988 fi
9989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9990 fi
9991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9992 fi
9993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9994 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9995 fi
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
9997 $as_echo "$ac_cv_prog_cxx_g" >&6; }
9998 if test "$ac_test_CXXFLAGS" = set; then
9999 CXXFLAGS=$ac_save_CXXFLAGS
10000 elif test $ac_cv_prog_cxx_g = yes; then
10001 if test "$GXX" = yes; then
10002 CXXFLAGS="-g -O2"
10003 else
10004 CXXFLAGS="-g"
10005 fi
10006 else
10007 if test "$GXX" = yes; then
10008 CXXFLAGS="-O2"
10009 else
10010 CXXFLAGS=
10011 fi
10012 fi
10013 ac_ext=c
10014 ac_cpp='$CPP $CPPFLAGS'
10015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10018
10019
10020 echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&5
10021 cxxflags_ac_prog_cxx=$CXXFLAGS
10022 cxxflags_list=ac_prog_cxx
10023
10024 # If the user didn't specify $CXXFLAGS, then try $CFLAGS, with -g removed
10025 # if AC_PROG_CXX thinks that doesn't work. $CFLAGS stands a good chance
10026 # of working, eg. on a GNU system where CC=gcc and CXX=g++.
10027 #
10028 if test "$test_CXXFLAGS" != set; then
10029 cxxflags_cflags=$CFLAGS
10030 cxxflags_list="cflags $cxxflags_list"
10031 if test "$ac_prog_cxx_g" = no; then
10032 cxxflags_cflags=`echo "$cxxflags_cflags" | sed -e 's/ -g //' -e 's/^-g //' -e 's/ -g$//'`
10033 fi
10034 fi
10035
10036 # See if the C++ compiler works. If the user specified CXXFLAGS then all
10037 # we're doing is checking whether AC_PROG_CXX succeeded, since it doesn't
10038 # give a fatal error, just leaves CXX set to a default g++. If on the
10039 # other hand the user didn't specify CXXFLAGS then we get to try here our
10040 # $cxxflags_list alternatives.
10041 #
10042 # Automake includes $CPPFLAGS in a C++ compile, so we do the same here.
10043 #
10044 for cxxflags_choice in $cxxflags_list; do
10045 eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice\"
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS" >&5
10047 $as_echo_n "checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS... " >&6; }
10048 gmp_prog_cxx_works=yes
10049
10050 # start with a plain "main()", then go on to further checks
10051 if test "$gmp_prog_cxx_works" = yes; then
10052 # remove anything that might look like compiler output to our "||" expression
10053 rm -f conftest* a.out b.out a.exe a_out.exe
10054 cat >conftest.cc <<EOF
10055
10056 int main (void) { return 0; }
10057 EOF
10058 echo "Test compile: " >&5
10059 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
10060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
10061 (eval $gmp_cxxcompile) 2>&5
10062 ac_status=$?
10063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10064 test $ac_status = 0; }; then
10065 if test "$cross_compiling" = no; then
10066 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
10067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10068 (eval $ac_try) 2>&5
10069 ac_status=$?
10070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10071 test $ac_status = 0; }; }; then :;
10072 else
10073 gmp_prog_cxx_works="no, program does not run"
10074 fi
10075 fi
10076 else
10077 gmp_prog_cxx_works="no"
10078 fi
10079 case $gmp_prog_cxx_works in
10080 no*)
10081 echo "failed program was:" >&5
10082 cat conftest.cc >&5
10083 ;;
10084 esac
10085 rm -f conftest* a.out b.out a.exe a_out.exe
10086 fi
10087
10088
10089 if test "$gmp_prog_cxx_works" = yes; then
10090 # remove anything that might look like compiler output to our "||" expression
10091 rm -f conftest* a.out b.out a.exe a_out.exe
10092 cat >conftest.cc <<EOF
10093 namespace foo { }
10094 using namespace foo;
10095
10096 int main (void) { return 0; }
10097 EOF
10098 echo "Test compile: namespace" >&5
10099 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
10100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
10101 (eval $gmp_cxxcompile) 2>&5
10102 ac_status=$?
10103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10104 test $ac_status = 0; }; then
10105 if test "$cross_compiling" = no; then
10106 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
10107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10108 (eval $ac_try) 2>&5
10109 ac_status=$?
10110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10111 test $ac_status = 0; }; }; then :;
10112 else
10113 gmp_prog_cxx_works="no, namespace, program does not run"
10114 fi
10115 fi
10116 else
10117 gmp_prog_cxx_works="no, namespace"
10118 fi
10119 case $gmp_prog_cxx_works in
10120 no*)
10121 echo "failed program was:" >&5
10122 cat conftest.cc >&5
10123 ;;
10124 esac
10125 rm -f conftest* a.out b.out a.exe a_out.exe
10126 fi
10127
10128
10129 # GMP requires the standard C++ iostream classes
10130 if test "$gmp_prog_cxx_works" = yes; then
10131 # remove anything that might look like compiler output to our "||" expression
10132 rm -f conftest* a.out b.out a.exe a_out.exe
10133 cat >conftest.cc <<EOF
10134 /* This test rejects g++ 2.7.2 which doesn't have <iostream>, only a
10135 pre-standard iostream.h. */
10136 #include <iostream>
10137
10138 /* This test rejects OSF 5.1 Compaq C++ in its default pre-standard iostream
10139 mode, since that mode puts cout in the global namespace, not "std". */
10140 void someoutput (void) { std::cout << 123; }
10141
10142 int main (void) { return 0; }
10143 EOF
10144 echo "Test compile: std iostream" >&5
10145 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
10146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
10147 (eval $gmp_cxxcompile) 2>&5
10148 ac_status=$?
10149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10150 test $ac_status = 0; }; then
10151 if test "$cross_compiling" = no; then
10152 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
10153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10154 (eval $ac_try) 2>&5
10155 ac_status=$?
10156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10157 test $ac_status = 0; }; }; then :;
10158 else
10159 gmp_prog_cxx_works="no, std iostream, program does not run"
10160 fi
10161 fi
10162 else
10163 gmp_prog_cxx_works="no, std iostream"
10164 fi
10165 case $gmp_prog_cxx_works in
10166 no*)
10167 echo "failed program was:" >&5
10168 cat conftest.cc >&5
10169 ;;
10170 esac
10171 rm -f conftest* a.out b.out a.exe a_out.exe
10172 fi
10173
10174
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cxx_works" >&5
10176 $as_echo "$gmp_prog_cxx_works" >&6; }
10177 case $gmp_prog_cxx_works in
10178 yes)
10179 want_cxx=yes
10180 break
10181 ;;
10182 *)
10183
10184 ;;
10185 esac
10186
10187 done
10188
10189 # If --enable-cxx=yes but a C++ compiler can't be found, then abort.
10190 if test $want_cxx = no && test $enable_cxx = yes; then
10191 as_fn_error $? "C++ compiler not available, see config.log for details" "$LINENO" 5
10192 fi
10193 fi
10194
10195 if test $want_cxx = yes; then
10196 WANT_CXX_TRUE=
10197 WANT_CXX_FALSE='#'
10198 else
10199 WANT_CXX_TRUE='#'
10200 WANT_CXX_FALSE=
10201 fi
10202
10203
10204 # FIXME: We're not interested in CXXCPP for ourselves, but if we don't do it
10205 # here then AC_PROG_LIBTOOL will AC_REQUIRE it (via _LT_AC_TAGCONFIG) and
10206 # hence execute it unconditionally, and that will fail if there's no C++
10207 # compiler (and no generic /lib/cpp).
10208 #
10209 if test $want_cxx = yes; then
10210 ac_ext=cpp
10211 ac_cpp='$CXXCPP $CPPFLAGS'
10212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10216 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10217 if test -z "$CXXCPP"; then
10218 if ${ac_cv_prog_CXXCPP+:} false; then :
10219 $as_echo_n "(cached) " >&6
10220 else
10221 # Double quotes because CXXCPP needs to be expanded
10222 for CXXCPP in "$CXX -E" "/lib/cpp"
10223 do
10224 ac_preproc_ok=false
10225 for ac_cxx_preproc_warn_flag in '' yes
10226 do
10227 # Use a header file that comes with gcc, so configuring glibc
10228 # with a fresh cross-compiler works.
10229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10230 # <limits.h> exists even on freestanding compilers.
10231 # On the NeXT, cc -E runs the code through the compiler's parser,
10232 # not just through cpp. "Syntax error" is here to catch this case.
10233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10234 /* end confdefs.h. */
10235 #ifdef __STDC__
10236 # include <limits.h>
10237 #else
10238 # include <assert.h>
10239 #endif
10240 Syntax error
10241 _ACEOF
10242 if ac_fn_cxx_try_cpp "$LINENO"; then :
10243
10244 else
10245 # Broken: fails on valid input.
10246 continue
10247 fi
10248 rm -f conftest.err conftest.i conftest.$ac_ext
10249
10250 # OK, works on sane cases. Now check whether nonexistent headers
10251 # can be detected and how.
10252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253 /* end confdefs.h. */
10254 #include <ac_nonexistent.h>
10255 _ACEOF
10256 if ac_fn_cxx_try_cpp "$LINENO"; then :
10257 # Broken: success on invalid input.
10258 continue
10259 else
10260 # Passes both tests.
10261 ac_preproc_ok=:
10262 break
10263 fi
10264 rm -f conftest.err conftest.i conftest.$ac_ext
10265
10266 done
10267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10268 rm -f conftest.i conftest.err conftest.$ac_ext
10269 if $ac_preproc_ok; then :
10270 break
10271 fi
10272
10273 done
10274 ac_cv_prog_CXXCPP=$CXXCPP
10275
10276 fi
10277 CXXCPP=$ac_cv_prog_CXXCPP
10278 else
10279 ac_cv_prog_CXXCPP=$CXXCPP
10280 fi
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10282 $as_echo "$CXXCPP" >&6; }
10283 ac_preproc_ok=false
10284 for ac_cxx_preproc_warn_flag in '' yes
10285 do
10286 # Use a header file that comes with gcc, so configuring glibc
10287 # with a fresh cross-compiler works.
10288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10289 # <limits.h> exists even on freestanding compilers.
10290 # On the NeXT, cc -E runs the code through the compiler's parser,
10291 # not just through cpp. "Syntax error" is here to catch this case.
10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10293 /* end confdefs.h. */
10294 #ifdef __STDC__
10295 # include <limits.h>
10296 #else
10297 # include <assert.h>
10298 #endif
10299 Syntax error
10300 _ACEOF
10301 if ac_fn_cxx_try_cpp "$LINENO"; then :
10302
10303 else
10304 # Broken: fails on valid input.
10305 continue
10306 fi
10307 rm -f conftest.err conftest.i conftest.$ac_ext
10308
10309 # OK, works on sane cases. Now check whether nonexistent headers
10310 # can be detected and how.
10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312 /* end confdefs.h. */
10313 #include <ac_nonexistent.h>
10314 _ACEOF
10315 if ac_fn_cxx_try_cpp "$LINENO"; then :
10316 # Broken: success on invalid input.
10317 continue
10318 else
10319 # Passes both tests.
10320 ac_preproc_ok=:
10321 break
10322 fi
10323 rm -f conftest.err conftest.i conftest.$ac_ext
10324
10325 done
10326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10327 rm -f conftest.i conftest.err conftest.$ac_ext
10328 if $ac_preproc_ok; then :
10329
10330 else
10331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10333 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
10334 See \`config.log' for more details" "$LINENO" 5; }
10335 fi
10336
10337 ac_ext=c
10338 ac_cpp='$CPP $CPPFLAGS'
10339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10342
10343 fi
10344
10345
10346 # Path setups for Cray, according to IEEE or CFP. These must come after
10347 # deciding the compiler.
10348 #
10349
10350
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
10352 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
10353 if ${ac_cv_path_GREP+:} false; then :
10354 $as_echo_n "(cached) " >&6
10355 else
10356 if test -z "$GREP"; then
10357 ac_path_GREP_found=false
10358 # Loop through the user's path and test for each of PROGNAME-LIST
10359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10360 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10361 do
10362 IFS=$as_save_IFS
10363 test -z "$as_dir" && as_dir=.
10364 for ac_prog in grep ggrep; do
10365 for ac_exec_ext in '' $ac_executable_extensions; do
10366 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
10367 as_fn_executable_p "$ac_path_GREP" || continue
10368 # Check for GNU ac_path_GREP and select it if it is found.
10369 # Check for GNU $ac_path_GREP
10370 case `"$ac_path_GREP" --version 2>&1` in
10371 *GNU*)
10372 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
10373 *)
10374 ac_count=0
10375 $as_echo_n 0123456789 >"conftest.in"
10376 while :
10377 do
10378 cat "conftest.in" "conftest.in" >"conftest.tmp"
10379 mv "conftest.tmp" "conftest.in"
10380 cp "conftest.in" "conftest.nl"
10381 $as_echo 'GREP' >> "conftest.nl"
10382 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10383 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10384 as_fn_arith $ac_count + 1 && ac_count=$as_val
10385 if test $ac_count -gt ${ac_path_GREP_max-0}; then
10386 # Best one so far, save it but keep looking for a better one
10387 ac_cv_path_GREP="$ac_path_GREP"
10388 ac_path_GREP_max=$ac_count
10389 fi
10390 # 10*(2^10) chars as input seems more than enough
10391 test $ac_count -gt 10 && break
10392 done
10393 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10394 esac
10395
10396 $ac_path_GREP_found && break 3
10397 done
10398 done
10399 done
10400 IFS=$as_save_IFS
10401 if test -z "$ac_cv_path_GREP"; then
10402 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10403 fi
10404 else
10405 ac_cv_path_GREP=$GREP
10406 fi
10407
10408 fi
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
10410 $as_echo "$ac_cv_path_GREP" >&6; }
10411 GREP="$ac_cv_path_GREP"
10412
10413
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
10415 $as_echo_n "checking for egrep... " >&6; }
10416 if ${ac_cv_path_EGREP+:} false; then :
10417 $as_echo_n "(cached) " >&6
10418 else
10419 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10420 then ac_cv_path_EGREP="$GREP -E"
10421 else
10422 if test -z "$EGREP"; then
10423 ac_path_EGREP_found=false
10424 # Loop through the user's path and test for each of PROGNAME-LIST
10425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10426 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10427 do
10428 IFS=$as_save_IFS
10429 test -z "$as_dir" && as_dir=.
10430 for ac_prog in egrep; do
10431 for ac_exec_ext in '' $ac_executable_extensions; do
10432 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10433 as_fn_executable_p "$ac_path_EGREP" || continue
10434 # Check for GNU ac_path_EGREP and select it if it is found.
10435 # Check for GNU $ac_path_EGREP
10436 case `"$ac_path_EGREP" --version 2>&1` in
10437 *GNU*)
10438 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10439 *)
10440 ac_count=0
10441 $as_echo_n 0123456789 >"conftest.in"
10442 while :
10443 do
10444 cat "conftest.in" "conftest.in" >"conftest.tmp"
10445 mv "conftest.tmp" "conftest.in"
10446 cp "conftest.in" "conftest.nl"
10447 $as_echo 'EGREP' >> "conftest.nl"
10448 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10449 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10450 as_fn_arith $ac_count + 1 && ac_count=$as_val
10451 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10452 # Best one so far, save it but keep looking for a better one
10453 ac_cv_path_EGREP="$ac_path_EGREP"
10454 ac_path_EGREP_max=$ac_count
10455 fi
10456 # 10*(2^10) chars as input seems more than enough
10457 test $ac_count -gt 10 && break
10458 done
10459 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10460 esac
10461
10462 $ac_path_EGREP_found && break 3
10463 done
10464 done
10465 done
10466 IFS=$as_save_IFS
10467 if test -z "$ac_cv_path_EGREP"; then
10468 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10469 fi
10470 else
10471 ac_cv_path_EGREP=$EGREP
10472 fi
10473
10474 fi
10475 fi
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
10477 $as_echo "$ac_cv_path_EGREP" >&6; }
10478 EGREP="$ac_cv_path_EGREP"
10479
10480
10481 case $host_cpu in
10482 c90 | t90)
10483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10484 /* end confdefs.h. */
10485 #ifdef _CRAYIEEE
10486 yes
10487 #endif
10488 _ACEOF
10489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10490 $EGREP "yes" >/dev/null 2>&1; then :
10491 add_path="cray/ieee"
10492 else
10493 add_path="cray/cfp"; extra_functions="mulwwc90"
10494 fi
10495 rm -f conftest*
10496
10497 ;;
10498 j90 | sv1)
10499 add_path="cray/cfp"; extra_functions="mulwwj90"
10500 ;;
10501 esac
10502
10503
10504
10505 if test -z "$MPN_PATH"; then
10506 path="$add_path $path"
10507 fi
10508
10509 # For a nail build, also look in "nails" subdirectories.
10510 #
10511 if test $GMP_NAIL_BITS != 0 && test -z "$MPN_PATH"; then
10512 new_path=
10513 for i in $path; do
10514 case $i in
10515 generic) new_path="$new_path $i" ;;
10516 *) new_path="$new_path $i/nails $i" ;;
10517 esac
10518 done
10519 path=$new_path
10520 fi
10521
10522
10523 # Put all directories into CPUVEC_list so as to get a full set of
10524 # CPUVEC_SETUP_$tmp_suffix defines into config.h, even if some of them are
10525 # empty because mmx and/or sse2 had to be dropped.
10526 #
10527 for i in $fat_path; do
10528 tmp_suffix=`echo $i | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
10529 CPUVEC_list="$CPUVEC_list CPUVEC_SETUP_$tmp_suffix"
10530 done
10531
10532
10533 # If there's any sse2 or mmx in the path, check whether the assembler
10534 # supports it, and remove if not.
10535 #
10536 # We only need this in ABI=32, for ABI=64 on x86_64 we can assume a new
10537 # enough assembler.
10538 #
10539 case $host in
10540 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
10541 if test "$ABI" = 32; then
10542 case "$path $fat_path" in
10543 *mmx*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about MMX instructions" >&5
10544 $as_echo_n "checking if the assembler knows about MMX instructions... " >&6; }
10545 if ${gmp_cv_asm_x86_mmx+:} false; then :
10546 $as_echo_n "(cached) " >&6
10547 else
10548 cat >conftest.s <<EOF
10549 .text
10550 movq %mm0, %mm1
10551 EOF
10552 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
10553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
10554 (eval $gmp_assemble) 2>&5
10555 ac_status=$?
10556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10557 test $ac_status = 0; }; then
10558 cat conftest.out >&5
10559 gmp_cv_asm_x86_mmx=yes
10560 case $host in
10561 *-*-solaris*)
10562 if (dis conftest.$OBJEXT >conftest.out) 2>/dev/null; then
10563 if grep "0f 6f c1" conftest.out >/dev/null; then
10564 gmp_cv_asm_x86_mmx=movq-bug
10565 fi
10566 else
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"dis\" not available to check for \"as\" movq bug" >&5
10568 $as_echo "$as_me: WARNING: \"dis\" not available to check for \"as\" movq bug" >&2;}
10569 fi
10570 esac
10571 else
10572 cat conftest.out >&5
10573 echo "configure: failed program was:" >&5
10574 cat conftest.s >&5
10575 gmp_cv_asm_x86_mmx=no
10576 fi
10577 rm -f conftest*
10578
10579 fi
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_mmx" >&5
10581 $as_echo "$gmp_cv_asm_x86_mmx" >&6; }
10582
10583 case $gmp_cv_asm_x86_mmx in
10584 movq-bug)
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10586 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
10588 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has MMX code, but the assembler" >&5
10590 $as_echo "$as_me: WARNING: | Host CPU has MMX code, but the assembler" >&2;}
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
10592 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&5
10594 $as_echo "$as_me: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&2;}
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | movq operands are reversed." >&5
10596 $as_echo "$as_me: WARNING: | movq operands are reversed." >&2;}
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-MMX replacements will be used." >&5
10598 $as_echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
10600 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10602 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10603 ;;
10604 no)
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10606 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
10608 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&5
10610 $as_echo "$as_me: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&2;}
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
10612 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-MMX replacements will be used." >&5
10614 $as_echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
10616 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10618 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10619 ;;
10620 esac
10621 if test "$gmp_cv_asm_x86_mmx" = yes; then
10622 :
10623 else
10624 tmp_path=
10625 for i in $path; do
10626 case $i in
10627 */*mmx*) ;;
10628 *) tmp_path="$tmp_path $i" ;;
10629 esac
10630 done
10631 path="$tmp_path"
10632
10633 tmp_path=
10634 for i in $fat_path; do
10635 case $i in
10636 */*mmx*) ;;
10637 *) tmp_path="$tmp_path $i" ;;
10638 esac
10639 done
10640 fat_path="$tmp_path"
10641
10642
10643 fi
10644 ;;
10645 esac
10646 case "$path $fat_path" in
10647 *sse2*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about SSE2 instructions" >&5
10648 $as_echo_n "checking if the assembler knows about SSE2 instructions... " >&6; }
10649 if ${gmp_cv_asm_x86_sse2+:} false; then :
10650 $as_echo_n "(cached) " >&6
10651 else
10652 cat >conftest.s <<EOF
10653 .text
10654 paddq %mm0, %mm1
10655 EOF
10656 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
10657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
10658 (eval $gmp_assemble) 2>&5
10659 ac_status=$?
10660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10661 test $ac_status = 0; }; then
10662 cat conftest.out >&5
10663 gmp_cv_asm_x86_sse2=yes
10664 else
10665 cat conftest.out >&5
10666 echo "configure: failed program was:" >&5
10667 cat conftest.s >&5
10668 gmp_cv_asm_x86_sse2=no
10669 fi
10670 rm -f conftest*
10671
10672
10673 fi
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_sse2" >&5
10675 $as_echo "$gmp_cv_asm_x86_sse2" >&6; }
10676 case $gmp_cv_asm_x86_sse2 in
10677 yes)
10678 :
10679 ;;
10680 *)
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10682 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
10684 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&5
10686 $as_echo "$as_me: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&2;}
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
10688 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-SSE2 replacements will be used." >&5
10690 $as_echo "$as_me: WARNING: | Non-SSE2 replacements will be used." >&2;}
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
10692 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10694 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10695 tmp_path=
10696 for i in $path; do
10697 case $i in
10698 */sse2) ;;
10699 *) tmp_path="$tmp_path $i" ;;
10700 esac
10701 done
10702 path="$tmp_path"
10703
10704 tmp_path=
10705 for i in $fat_path; do
10706 case $i in
10707 */sse2) ;;
10708 *) tmp_path="$tmp_path $i" ;;
10709 esac
10710 done
10711 fat_path="$tmp_path"
10712
10713
10714 ;;
10715 esac
10716 ;;
10717 esac
10718 fi
10719 ;;
10720 esac
10721
10722
10723 if test "$enable_assembly" = "no"; then
10724 path="generic"
10725 CFLAGS="$CFLAGS -DNO_ASM"
10726 # for abi in $abilist; do
10727 # eval unset "path_\$abi"
10728 # eval gcc_${abi}_cflags=\"\$gcc_${abi}_cflags -DNO_ASM\"
10729 # done
10730 fi
10731
10732
10733 cat >&5 <<EOF
10734 Decided:
10735 ABI=$ABI
10736 CC=$CC
10737 CFLAGS=$CFLAGS
10738 CPPFLAGS=$CPPFLAGS
10739 GMP_LDFLAGS=$GMP_LDFLAGS
10740 CXX=$CXX
10741 CXXFLAGS=$CXXFLAGS
10742 path=$path
10743 EOF
10744 echo "using ABI=\"$ABI\""
10745 echo " CC=\"$CC\""
10746 echo " CFLAGS=\"$CFLAGS\""
10747 echo " CPPFLAGS=\"$CPPFLAGS\""
10748 if test $want_cxx = yes; then
10749 echo " CXX=\"$CXX\""
10750 echo " CXXFLAGS=\"$CXXFLAGS\""
10751 fi
10752 echo " MPN_PATH=\"$path\""
10753
10754
10755
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports --noexecstack option" >&5
10757 $as_echo_n "checking whether assembler supports --noexecstack option... " >&6; }
10758 if ${cl_cv_as_noexecstack+:} false; then :
10759 $as_echo_n "(cached) " >&6
10760 else
10761 cat > conftest.c <<EOF
10762 void foo() {}
10763 EOF
10764 if { ac_try='${CC} $CFLAGS $CPPFLAGS
10765 -S -o conftest.s conftest.c >/dev/null'
10766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10767 (eval $ac_try) 2>&5
10768 ac_status=$?
10769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10770 test $ac_status = 0; }; } \
10771 && grep .note.GNU-stack conftest.s >/dev/null \
10772 && { ac_try='${CC} $CFLAGS $CPPFLAGS -Wa,--noexecstack
10773 -c -o conftest.o conftest.s >/dev/null'
10774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10775 (eval $ac_try) 2>&5
10776 ac_status=$?
10777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10778 test $ac_status = 0; }; }
10779 then
10780 cl_cv_as_noexecstack=yes
10781 else
10782 cl_cv_as_noexecstack=no
10783 fi
10784 rm -f conftest*
10785 fi
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_as_noexecstack" >&5
10787 $as_echo "$cl_cv_as_noexecstack" >&6; }
10788 if test "$cl_cv_as_noexecstack" = yes; then
10789 ASMFLAGS="$ASMFLAGS -Wa,--noexecstack"
10790 fi
10791
10792
10793
10794
10795 gmp_user_AR=$AR
10796 if test -n "$ac_tool_prefix"; then
10797 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10798 set dummy ${ac_tool_prefix}ar; ac_word=$2
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10800 $as_echo_n "checking for $ac_word... " >&6; }
10801 if ${ac_cv_prog_AR+:} false; then :
10802 $as_echo_n "(cached) " >&6
10803 else
10804 if test -n "$AR"; then
10805 ac_cv_prog_AR="$AR" # Let the user override the test.
10806 else
10807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10808 for as_dir in $PATH
10809 do
10810 IFS=$as_save_IFS
10811 test -z "$as_dir" && as_dir=.
10812 for ac_exec_ext in '' $ac_executable_extensions; do
10813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10814 ac_cv_prog_AR="${ac_tool_prefix}ar"
10815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10816 break 2
10817 fi
10818 done
10819 done
10820 IFS=$as_save_IFS
10821
10822 fi
10823 fi
10824 AR=$ac_cv_prog_AR
10825 if test -n "$AR"; then
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10827 $as_echo "$AR" >&6; }
10828 else
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830 $as_echo "no" >&6; }
10831 fi
10832
10833
10834 fi
10835 if test -z "$ac_cv_prog_AR"; then
10836 ac_ct_AR=$AR
10837 # Extract the first word of "ar", so it can be a program name with args.
10838 set dummy ar; ac_word=$2
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10840 $as_echo_n "checking for $ac_word... " >&6; }
10841 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10842 $as_echo_n "(cached) " >&6
10843 else
10844 if test -n "$ac_ct_AR"; then
10845 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10846 else
10847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10848 for as_dir in $PATH
10849 do
10850 IFS=$as_save_IFS
10851 test -z "$as_dir" && as_dir=.
10852 for ac_exec_ext in '' $ac_executable_extensions; do
10853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10854 ac_cv_prog_ac_ct_AR="ar"
10855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10856 break 2
10857 fi
10858 done
10859 done
10860 IFS=$as_save_IFS
10861
10862 fi
10863 fi
10864 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10865 if test -n "$ac_ct_AR"; then
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10867 $as_echo "$ac_ct_AR" >&6; }
10868 else
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10870 $as_echo "no" >&6; }
10871 fi
10872
10873 if test "x$ac_ct_AR" = x; then
10874 AR="ar"
10875 else
10876 case $cross_compiling:$ac_tool_warned in
10877 yes:)
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10880 ac_tool_warned=yes ;;
10881 esac
10882 AR=$ac_ct_AR
10883 fi
10884 else
10885 AR="$ac_cv_prog_AR"
10886 fi
10887
10888 if test -z "$gmp_user_AR"; then
10889 eval arflags=\"\$ar${abi1}_flags\"
10890 test -n "$arflags" || eval arflags=\"\$ar${abi2}_flags\"
10891 if test -n "$arflags"; then
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra ar flags" >&5
10893 $as_echo_n "checking for extra ar flags... " >&6; }
10894 AR="$AR $arflags"
10895 ac_cv_prog_AR="$AR $arflags"
10896 ac_cv_prog_ac_ct_AR="$AR $arflags"
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arflags" >&5
10898 $as_echo "$arflags" >&6; }
10899 fi
10900 fi
10901 if test -z "$AR_FLAGS"; then
10902 AR_FLAGS=cq
10903 fi
10904
10905
10906 gmp_user_NM=$NM
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10908 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10909 if ${lt_cv_path_NM+:} false; then :
10910 $as_echo_n "(cached) " >&6
10911 else
10912 if test -n "$NM"; then
10913 # Let the user override the test.
10914 lt_cv_path_NM="$NM"
10915 else
10916 lt_nm_to_check="${ac_tool_prefix}nm"
10917 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10918 lt_nm_to_check="$lt_nm_to_check nm"
10919 fi
10920 for lt_tmp_nm in $lt_nm_to_check; do
10921 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10922 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10923 IFS="$lt_save_ifs"
10924 test -z "$ac_dir" && ac_dir=.
10925 tmp_nm="$ac_dir/$lt_tmp_nm"
10926 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10927 # Check to see if the nm accepts a BSD-compat flag.
10928 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10929 # nm: unknown option "B" ignored
10930 # Tru64's nm complains that /dev/null is an invalid object file
10931 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10932 */dev/null* | *'Invalid file or object type'*)
10933 lt_cv_path_NM="$tmp_nm -B"
10934 break
10935 ;;
10936 *)
10937 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10938 */dev/null*)
10939 lt_cv_path_NM="$tmp_nm -p"
10940 break
10941 ;;
10942 *)
10943 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10944 continue # so that we can try to find one that supports BSD flags
10945 ;;
10946 esac
10947 ;;
10948 esac
10949 fi
10950 done
10951 IFS="$lt_save_ifs"
10952 done
10953 : ${lt_cv_path_NM=no}
10954 fi
10955 fi
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10957 $as_echo "$lt_cv_path_NM" >&6; }
10958 if test "$lt_cv_path_NM" != "no"; then
10959 NM="$lt_cv_path_NM"
10960 else
10961 # Didn't find any BSD compatible name lister, look for dumpbin.
10962 if test -n "$DUMPBIN"; then :
10963 # Let the user override the test.
10964 else
10965 if test -n "$ac_tool_prefix"; then
10966 for ac_prog in dumpbin "link -dump"
10967 do
10968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10971 $as_echo_n "checking for $ac_word... " >&6; }
10972 if ${ac_cv_prog_DUMPBIN+:} false; then :
10973 $as_echo_n "(cached) " >&6
10974 else
10975 if test -n "$DUMPBIN"; then
10976 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10977 else
10978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10979 for as_dir in $PATH
10980 do
10981 IFS=$as_save_IFS
10982 test -z "$as_dir" && as_dir=.
10983 for ac_exec_ext in '' $ac_executable_extensions; do
10984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10985 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10987 break 2
10988 fi
10989 done
10990 done
10991 IFS=$as_save_IFS
10992
10993 fi
10994 fi
10995 DUMPBIN=$ac_cv_prog_DUMPBIN
10996 if test -n "$DUMPBIN"; then
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10998 $as_echo "$DUMPBIN" >&6; }
10999 else
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001 $as_echo "no" >&6; }
11002 fi
11003
11004
11005 test -n "$DUMPBIN" && break
11006 done
11007 fi
11008 if test -z "$DUMPBIN"; then
11009 ac_ct_DUMPBIN=$DUMPBIN
11010 for ac_prog in dumpbin "link -dump"
11011 do
11012 # Extract the first word of "$ac_prog", so it can be a program name with args.
11013 set dummy $ac_prog; ac_word=$2
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11015 $as_echo_n "checking for $ac_word... " >&6; }
11016 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11017 $as_echo_n "(cached) " >&6
11018 else
11019 if test -n "$ac_ct_DUMPBIN"; then
11020 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11021 else
11022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11023 for as_dir in $PATH
11024 do
11025 IFS=$as_save_IFS
11026 test -z "$as_dir" && as_dir=.
11027 for ac_exec_ext in '' $ac_executable_extensions; do
11028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11029 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11031 break 2
11032 fi
11033 done
11034 done
11035 IFS=$as_save_IFS
11036
11037 fi
11038 fi
11039 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11040 if test -n "$ac_ct_DUMPBIN"; then
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11042 $as_echo "$ac_ct_DUMPBIN" >&6; }
11043 else
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11045 $as_echo "no" >&6; }
11046 fi
11047
11048
11049 test -n "$ac_ct_DUMPBIN" && break
11050 done
11051
11052 if test "x$ac_ct_DUMPBIN" = x; then
11053 DUMPBIN=":"
11054 else
11055 case $cross_compiling:$ac_tool_warned in
11056 yes:)
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11059 ac_tool_warned=yes ;;
11060 esac
11061 DUMPBIN=$ac_ct_DUMPBIN
11062 fi
11063 fi
11064
11065 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11066 *COFF*)
11067 DUMPBIN="$DUMPBIN -symbols"
11068 ;;
11069 *)
11070 DUMPBIN=:
11071 ;;
11072 esac
11073 fi
11074
11075 if test "$DUMPBIN" != ":"; then
11076 NM="$DUMPBIN"
11077 fi
11078 fi
11079 test -z "$NM" && NM=nm
11080
11081
11082
11083
11084
11085
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11087 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11088 if ${lt_cv_nm_interface+:} false; then :
11089 $as_echo_n "(cached) " >&6
11090 else
11091 lt_cv_nm_interface="BSD nm"
11092 echo "int some_variable = 0;" > conftest.$ac_ext
11093 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11094 (eval "$ac_compile" 2>conftest.err)
11095 cat conftest.err >&5
11096 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11097 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11098 cat conftest.err >&5
11099 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11100 cat conftest.out >&5
11101 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11102 lt_cv_nm_interface="MS dumpbin"
11103 fi
11104 rm -f conftest*
11105 fi
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11107 $as_echo "$lt_cv_nm_interface" >&6; }
11108
11109
11110 # FIXME: When cross compiling (ie. $ac_tool_prefix not empty), libtool
11111 # defaults to plain "nm" if a "${ac_tool_prefix}nm" is not found. In this
11112 # case run it again to try the native "nm", firstly so that likely locations
11113 # are searched, secondly so that -B or -p are added if necessary for BSD
11114 # format. This is necessary for instance on OSF with "./configure
11115 # --build=alphaev5-dec-osf --host=alphaev6-dec-osf".
11116 #
11117 if test -z "$gmp_user_NM" && test -n "$ac_tool_prefix" && test "$NM" = nm; then
11118 $as_unset lt_cv_path_NM
11119 gmp_save_ac_tool_prefix=$ac_tool_prefix
11120 ac_tool_prefix=
11121 NM=
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11123 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11124 if ${lt_cv_path_NM+:} false; then :
11125 $as_echo_n "(cached) " >&6
11126 else
11127 if test -n "$NM"; then
11128 # Let the user override the test.
11129 lt_cv_path_NM="$NM"
11130 else
11131 lt_nm_to_check="${ac_tool_prefix}nm"
11132 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11133 lt_nm_to_check="$lt_nm_to_check nm"
11134 fi
11135 for lt_tmp_nm in $lt_nm_to_check; do
11136 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11137 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11138 IFS="$lt_save_ifs"
11139 test -z "$ac_dir" && ac_dir=.
11140 tmp_nm="$ac_dir/$lt_tmp_nm"
11141 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11142 # Check to see if the nm accepts a BSD-compat flag.
11143 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11144 # nm: unknown option "B" ignored
11145 # Tru64's nm complains that /dev/null is an invalid object file
11146 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11147 */dev/null* | *'Invalid file or object type'*)
11148 lt_cv_path_NM="$tmp_nm -B"
11149 break
11150 ;;
11151 *)
11152 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11153 */dev/null*)
11154 lt_cv_path_NM="$tmp_nm -p"
11155 break
11156 ;;
11157 *)
11158 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11159 continue # so that we can try to find one that supports BSD flags
11160 ;;
11161 esac
11162 ;;
11163 esac
11164 fi
11165 done
11166 IFS="$lt_save_ifs"
11167 done
11168 : ${lt_cv_path_NM=no}
11169 fi
11170 fi
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11172 $as_echo "$lt_cv_path_NM" >&6; }
11173 if test "$lt_cv_path_NM" != "no"; then
11174 NM="$lt_cv_path_NM"
11175 else
11176 # Didn't find any BSD compatible name lister, look for dumpbin.
11177 if test -n "$DUMPBIN"; then :
11178 # Let the user override the test.
11179 else
11180 if test -n "$ac_tool_prefix"; then
11181 for ac_prog in dumpbin "link -dump"
11182 do
11183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11184 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11186 $as_echo_n "checking for $ac_word... " >&6; }
11187 if ${ac_cv_prog_DUMPBIN+:} false; then :
11188 $as_echo_n "(cached) " >&6
11189 else
11190 if test -n "$DUMPBIN"; then
11191 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11192 else
11193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11194 for as_dir in $PATH
11195 do
11196 IFS=$as_save_IFS
11197 test -z "$as_dir" && as_dir=.
11198 for ac_exec_ext in '' $ac_executable_extensions; do
11199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11200 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11202 break 2
11203 fi
11204 done
11205 done
11206 IFS=$as_save_IFS
11207
11208 fi
11209 fi
11210 DUMPBIN=$ac_cv_prog_DUMPBIN
11211 if test -n "$DUMPBIN"; then
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11213 $as_echo "$DUMPBIN" >&6; }
11214 else
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11216 $as_echo "no" >&6; }
11217 fi
11218
11219
11220 test -n "$DUMPBIN" && break
11221 done
11222 fi
11223 if test -z "$DUMPBIN"; then
11224 ac_ct_DUMPBIN=$DUMPBIN
11225 for ac_prog in dumpbin "link -dump"
11226 do
11227 # Extract the first word of "$ac_prog", so it can be a program name with args.
11228 set dummy $ac_prog; ac_word=$2
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11230 $as_echo_n "checking for $ac_word... " >&6; }
11231 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11232 $as_echo_n "(cached) " >&6
11233 else
11234 if test -n "$ac_ct_DUMPBIN"; then
11235 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11236 else
11237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11238 for as_dir in $PATH
11239 do
11240 IFS=$as_save_IFS
11241 test -z "$as_dir" && as_dir=.
11242 for ac_exec_ext in '' $ac_executable_extensions; do
11243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11244 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11246 break 2
11247 fi
11248 done
11249 done
11250 IFS=$as_save_IFS
11251
11252 fi
11253 fi
11254 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11255 if test -n "$ac_ct_DUMPBIN"; then
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11257 $as_echo "$ac_ct_DUMPBIN" >&6; }
11258 else
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11260 $as_echo "no" >&6; }
11261 fi
11262
11263
11264 test -n "$ac_ct_DUMPBIN" && break
11265 done
11266
11267 if test "x$ac_ct_DUMPBIN" = x; then
11268 DUMPBIN=":"
11269 else
11270 case $cross_compiling:$ac_tool_warned in
11271 yes:)
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11274 ac_tool_warned=yes ;;
11275 esac
11276 DUMPBIN=$ac_ct_DUMPBIN
11277 fi
11278 fi
11279
11280 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11281 *COFF*)
11282 DUMPBIN="$DUMPBIN -symbols"
11283 ;;
11284 *)
11285 DUMPBIN=:
11286 ;;
11287 esac
11288 fi
11289
11290 if test "$DUMPBIN" != ":"; then
11291 NM="$DUMPBIN"
11292 fi
11293 fi
11294 test -z "$NM" && NM=nm
11295
11296
11297
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11299 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11300 if ${lt_cv_nm_interface+:} false; then :
11301 $as_echo_n "(cached) " >&6
11302 else
11303 lt_cv_nm_interface="BSD nm"
11304 echo "int some_variable = 0;" > conftest.$ac_ext
11305 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11306 (eval "$ac_compile" 2>conftest.err)
11307 cat conftest.err >&5
11308 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11309 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11310 cat conftest.err >&5
11311 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11312 cat conftest.out >&5
11313 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11314 lt_cv_nm_interface="MS dumpbin"
11315 fi
11316 rm -f conftest*
11317 fi
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11319 $as_echo "$lt_cv_nm_interface" >&6; }
11320
11321 ac_tool_prefix=$gmp_save_ac_tool_prefix
11322 fi
11323
11324 if test -z "$gmp_user_NM"; then
11325 eval nmflags=\"\$nm${abi1}_flags\"
11326 test -n "$nmflags" || eval nmflags=\"\$nm${abi2}_flags\"
11327 if test -n "$nmflags"; then
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra nm flags" >&5
11329 $as_echo_n "checking for extra nm flags... " >&6; }
11330 NM="$NM $nmflags"
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nmflags" >&5
11332 $as_echo "$nmflags" >&6; }
11333 fi
11334 fi
11335
11336
11337 case $host in
11338 # FIXME: On AIX 3 and 4, $libname.a is included in libtool
11339 # $library_names_spec, so libgmp.a becomes a symlink to libgmp.so, making
11340 # it impossible to build shared and static libraries simultaneously.
11341 # Disable shared libraries by default, but let the user override with
11342 # --enable-shared --disable-static.
11343 #
11344 # FIXME: This $libname.a problem looks like it might apply to *-*-amigaos*
11345 # and *-*-os2* too, but wait for someone to test this before worrying
11346 # about it. If there is a problem then of course libtool is the right
11347 # place to fix it.
11348 #
11349 *-*-aix[34]*)
11350 if test -z "$enable_shared"; then enable_shared=no; fi ;;
11351 esac
11352
11353
11354 # Configs for Windows DLLs.
11355
11356 enable_win32_dll=yes
11357
11358 case $host in
11359 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11360 if test -n "$ac_tool_prefix"; then
11361 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11362 set dummy ${ac_tool_prefix}as; ac_word=$2
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11364 $as_echo_n "checking for $ac_word... " >&6; }
11365 if ${ac_cv_prog_AS+:} false; then :
11366 $as_echo_n "(cached) " >&6
11367 else
11368 if test -n "$AS"; then
11369 ac_cv_prog_AS="$AS" # Let the user override the test.
11370 else
11371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11372 for as_dir in $PATH
11373 do
11374 IFS=$as_save_IFS
11375 test -z "$as_dir" && as_dir=.
11376 for ac_exec_ext in '' $ac_executable_extensions; do
11377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11378 ac_cv_prog_AS="${ac_tool_prefix}as"
11379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11380 break 2
11381 fi
11382 done
11383 done
11384 IFS=$as_save_IFS
11385
11386 fi
11387 fi
11388 AS=$ac_cv_prog_AS
11389 if test -n "$AS"; then
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11391 $as_echo "$AS" >&6; }
11392 else
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11394 $as_echo "no" >&6; }
11395 fi
11396
11397
11398 fi
11399 if test -z "$ac_cv_prog_AS"; then
11400 ac_ct_AS=$AS
11401 # Extract the first word of "as", so it can be a program name with args.
11402 set dummy as; ac_word=$2
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11404 $as_echo_n "checking for $ac_word... " >&6; }
11405 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11406 $as_echo_n "(cached) " >&6
11407 else
11408 if test -n "$ac_ct_AS"; then
11409 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11410 else
11411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412 for as_dir in $PATH
11413 do
11414 IFS=$as_save_IFS
11415 test -z "$as_dir" && as_dir=.
11416 for ac_exec_ext in '' $ac_executable_extensions; do
11417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11418 ac_cv_prog_ac_ct_AS="as"
11419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11420 break 2
11421 fi
11422 done
11423 done
11424 IFS=$as_save_IFS
11425
11426 fi
11427 fi
11428 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11429 if test -n "$ac_ct_AS"; then
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11431 $as_echo "$ac_ct_AS" >&6; }
11432 else
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11434 $as_echo "no" >&6; }
11435 fi
11436
11437 if test "x$ac_ct_AS" = x; then
11438 AS="false"
11439 else
11440 case $cross_compiling:$ac_tool_warned in
11441 yes:)
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11444 ac_tool_warned=yes ;;
11445 esac
11446 AS=$ac_ct_AS
11447 fi
11448 else
11449 AS="$ac_cv_prog_AS"
11450 fi
11451
11452 if test -n "$ac_tool_prefix"; then
11453 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11454 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11456 $as_echo_n "checking for $ac_word... " >&6; }
11457 if ${ac_cv_prog_DLLTOOL+:} false; then :
11458 $as_echo_n "(cached) " >&6
11459 else
11460 if test -n "$DLLTOOL"; then
11461 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11462 else
11463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11464 for as_dir in $PATH
11465 do
11466 IFS=$as_save_IFS
11467 test -z "$as_dir" && as_dir=.
11468 for ac_exec_ext in '' $ac_executable_extensions; do
11469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11470 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11472 break 2
11473 fi
11474 done
11475 done
11476 IFS=$as_save_IFS
11477
11478 fi
11479 fi
11480 DLLTOOL=$ac_cv_prog_DLLTOOL
11481 if test -n "$DLLTOOL"; then
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11483 $as_echo "$DLLTOOL" >&6; }
11484 else
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11486 $as_echo "no" >&6; }
11487 fi
11488
11489
11490 fi
11491 if test -z "$ac_cv_prog_DLLTOOL"; then
11492 ac_ct_DLLTOOL=$DLLTOOL
11493 # Extract the first word of "dlltool", so it can be a program name with args.
11494 set dummy dlltool; ac_word=$2
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11496 $as_echo_n "checking for $ac_word... " >&6; }
11497 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11498 $as_echo_n "(cached) " >&6
11499 else
11500 if test -n "$ac_ct_DLLTOOL"; then
11501 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11502 else
11503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504 for as_dir in $PATH
11505 do
11506 IFS=$as_save_IFS
11507 test -z "$as_dir" && as_dir=.
11508 for ac_exec_ext in '' $ac_executable_extensions; do
11509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11510 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11512 break 2
11513 fi
11514 done
11515 done
11516 IFS=$as_save_IFS
11517
11518 fi
11519 fi
11520 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11521 if test -n "$ac_ct_DLLTOOL"; then
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11523 $as_echo "$ac_ct_DLLTOOL" >&6; }
11524 else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526 $as_echo "no" >&6; }
11527 fi
11528
11529 if test "x$ac_ct_DLLTOOL" = x; then
11530 DLLTOOL="false"
11531 else
11532 case $cross_compiling:$ac_tool_warned in
11533 yes:)
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11536 ac_tool_warned=yes ;;
11537 esac
11538 DLLTOOL=$ac_ct_DLLTOOL
11539 fi
11540 else
11541 DLLTOOL="$ac_cv_prog_DLLTOOL"
11542 fi
11543
11544 if test -n "$ac_tool_prefix"; then
11545 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11546 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11548 $as_echo_n "checking for $ac_word... " >&6; }
11549 if ${ac_cv_prog_OBJDUMP+:} false; then :
11550 $as_echo_n "(cached) " >&6
11551 else
11552 if test -n "$OBJDUMP"; then
11553 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11554 else
11555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556 for as_dir in $PATH
11557 do
11558 IFS=$as_save_IFS
11559 test -z "$as_dir" && as_dir=.
11560 for ac_exec_ext in '' $ac_executable_extensions; do
11561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11562 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11564 break 2
11565 fi
11566 done
11567 done
11568 IFS=$as_save_IFS
11569
11570 fi
11571 fi
11572 OBJDUMP=$ac_cv_prog_OBJDUMP
11573 if test -n "$OBJDUMP"; then
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11575 $as_echo "$OBJDUMP" >&6; }
11576 else
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578 $as_echo "no" >&6; }
11579 fi
11580
11581
11582 fi
11583 if test -z "$ac_cv_prog_OBJDUMP"; then
11584 ac_ct_OBJDUMP=$OBJDUMP
11585 # Extract the first word of "objdump", so it can be a program name with args.
11586 set dummy objdump; ac_word=$2
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11588 $as_echo_n "checking for $ac_word... " >&6; }
11589 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11590 $as_echo_n "(cached) " >&6
11591 else
11592 if test -n "$ac_ct_OBJDUMP"; then
11593 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11594 else
11595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11596 for as_dir in $PATH
11597 do
11598 IFS=$as_save_IFS
11599 test -z "$as_dir" && as_dir=.
11600 for ac_exec_ext in '' $ac_executable_extensions; do
11601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11602 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11604 break 2
11605 fi
11606 done
11607 done
11608 IFS=$as_save_IFS
11609
11610 fi
11611 fi
11612 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11613 if test -n "$ac_ct_OBJDUMP"; then
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11615 $as_echo "$ac_ct_OBJDUMP" >&6; }
11616 else
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618 $as_echo "no" >&6; }
11619 fi
11620
11621 if test "x$ac_ct_OBJDUMP" = x; then
11622 OBJDUMP="false"
11623 else
11624 case $cross_compiling:$ac_tool_warned in
11625 yes:)
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11628 ac_tool_warned=yes ;;
11629 esac
11630 OBJDUMP=$ac_ct_OBJDUMP
11631 fi
11632 else
11633 OBJDUMP="$ac_cv_prog_OBJDUMP"
11634 fi
11635
11636 ;;
11637 esac
11638
11639 test -z "$AS" && AS=as
11640
11641
11642
11643
11644
11645 test -z "$DLLTOOL" && DLLTOOL=dlltool
11646
11647
11648
11649
11650
11651 test -z "$OBJDUMP" && OBJDUMP=objdump
11652
11653
11654
11655
11656
11657
11658
11659
11660 LIBGMP_DLL=0
11661
11662 case $host in
11663 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
11664 # By default, build only static.
11665 if test -z "$enable_shared"; then
11666 enable_shared=no
11667 fi
11668 # Don't allow both static and DLL.
11669 if test "$enable_shared" != no && test "$enable_static" != no; then
11670 as_fn_error $? "cannot build both static and DLL, since gmp.h is different for each.
11671 Use \"--disable-static --enable-shared\" to build just a DLL." "$LINENO" 5
11672 fi
11673
11674 # "-no-undefined" is required when building a DLL, see documentation on
11675 # AC_LIBTOOL_WIN32_DLL.
11676 #
11677 # "-Wl,--export-all-symbols" is a bit of a hack, it gets all libgmp and
11678 # libgmpxx functions and variables exported. This is what libtool did
11679 # in the past, and it's convenient for us in the test programs.
11680 #
11681 # Maybe it'd be prudent to check for --export-all-symbols before using
11682 # it, but it seems to have been in ld since at least 2000, and there's
11683 # not really any alternative we want to take up at the moment.
11684 #
11685 # "-Wl,output-def" is used to get a .def file for use by MS lib to make
11686 # a .lib import library, described in the manual. libgmp-3.dll.def
11687 # corresponds to the libmp-3.dll.def generated by libtool (as a result
11688 # of -export-symbols on that library).
11689 #
11690 # Incidentally, libtool does generate an import library libgmp.dll.a,
11691 # but it's "ar" format and cannot be used by the MS linker. There
11692 # doesn't seem to be any GNU tool for generating or converting to .lib.
11693 #
11694 # FIXME: The .def files produced by -Wl,output-def include isascii,
11695 # iscsym, iscsymf and toascii, apparently because mingw ctype.h doesn't
11696 # inline isascii (used in gmp). It gives an extern inline for
11697 # __isascii, but for some reason not the plain isascii.
11698 #
11699 if test "$enable_shared" = yes; then
11700 GMP_LDFLAGS="$GMP_LDFLAGS -no-undefined -Wl,--export-all-symbols"
11701 LIBGMP_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmp-3.dll.def"
11702 LIBGMPXX_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmpxx-3.dll.def"
11703 LIBGMP_DLL=1
11704 fi
11705 ;;
11706 esac
11707
11708
11709 # Ensure that $CONFIG_SHELL is available for AC_LIBTOOL_SYS_MAX_CMD_LEN.
11710 # It's often set already by _LT_AC_PROG_ECHO_BACKSLASH or
11711 # _AS_LINENO_PREPARE, but not always.
11712 #
11713 # The symptom of CONFIG_SHELL unset is some "expr" errors during the test,
11714 # and an empty result. This only happens when invoked as "sh configure",
11715 # ie. no path, and can be seen for instance on ia64-*-hpux*.
11716 #
11717 # FIXME: Newer libtool should have it's own fix for this.
11718 #
11719 if test -z "$CONFIG_SHELL"; then
11720 CONFIG_SHELL=$SHELL
11721 fi
11722
11723 # Enable CXX in libtool only if we want it, and never enable GCJ, nor RC on
11724 # mingw and cygwin. Under --disable-cxx this avoids some error messages
11725 # from libtool arising from the fact we didn't actually run AC_PROG_CXX.
11726 # Notice that any user-supplied --with-tags setting takes precedence.
11727 #
11728 # FIXME: Is this the right way to get this effect? Very possibly not, but
11729 # the current _LT_AC_TAGCONFIG doesn't really suggest an alternative.
11730 #
11731 if test "${with_tags+set}" != set; then
11732 if test $want_cxx = yes; then
11733 with_tags=CXX
11734 else
11735 with_tags=
11736 fi
11737 fi
11738
11739 # The dead hand of AC_REQUIRE makes AC_PROG_LIBTOOL expand and execute
11740 # AC_PROG_F77, even when F77 is not in the selected with_tags. This is
11741 # probably harmless, but it's unsightly and bloats our configure, so pretend
11742 # AC_PROG_F77 has been expanded already.
11743 #
11744 # FIXME: Rumour has it libtool will one day provide a way for a configure.in
11745 # to say what it wants from among supported languages etc.
11746 #
11747
11748
11749 case `pwd` in
11750 *\ * | *\ *)
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11752 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11753 esac
11754
11755
11756
11757 macro_version='2.4.2'
11758 macro_revision='1.3337'
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772 ltmain="$ac_aux_dir/ltmain.sh"
11773
11774 # Backslashify metacharacters that are still active within
11775 # double-quoted strings.
11776 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11777
11778 # Same as above, but do not quote variable references.
11779 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11780
11781 # Sed substitution to delay expansion of an escaped shell variable in a
11782 # double_quote_subst'ed string.
11783 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11784
11785 # Sed substitution to delay expansion of an escaped single quote.
11786 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11787
11788 # Sed substitution to avoid accidental globbing in evaled expressions
11789 no_glob_subst='s/\*/\\\*/g'
11790
11791 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11792 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11793 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11794
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11796 $as_echo_n "checking how to print strings... " >&6; }
11797 # Test print first, because it will be a builtin if present.
11798 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11799 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11800 ECHO='print -r --'
11801 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11802 ECHO='printf %s\n'
11803 else
11804 # Use this function as a fallback that always works.
11805 func_fallback_echo ()
11806 {
11807 eval 'cat <<_LTECHO_EOF
11808 $1
11809 _LTECHO_EOF'
11810 }
11811 ECHO='func_fallback_echo'
11812 fi
11813
11814 # func_echo_all arg...
11815 # Invoke $ECHO with all args, space-separated.
11816 func_echo_all ()
11817 {
11818 $ECHO ""
11819 }
11820
11821 case "$ECHO" in
11822 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11823 $as_echo "printf" >&6; } ;;
11824 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11825 $as_echo "print -r" >&6; } ;;
11826 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11827 $as_echo "cat" >&6; } ;;
11828 esac
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11844 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11845 if ${ac_cv_path_SED+:} false; then :
11846 $as_echo_n "(cached) " >&6
11847 else
11848 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11849 for ac_i in 1 2 3 4 5 6 7; do
11850 ac_script="$ac_script$as_nl$ac_script"
11851 done
11852 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11853 { ac_script=; unset ac_script;}
11854 if test -z "$SED"; then
11855 ac_path_SED_found=false
11856 # Loop through the user's path and test for each of PROGNAME-LIST
11857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858 for as_dir in $PATH
11859 do
11860 IFS=$as_save_IFS
11861 test -z "$as_dir" && as_dir=.
11862 for ac_prog in sed gsed; do
11863 for ac_exec_ext in '' $ac_executable_extensions; do
11864 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11865 as_fn_executable_p "$ac_path_SED" || continue
11866 # Check for GNU ac_path_SED and select it if it is found.
11867 # Check for GNU $ac_path_SED
11868 case `"$ac_path_SED" --version 2>&1` in
11869 *GNU*)
11870 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11871 *)
11872 ac_count=0
11873 $as_echo_n 0123456789 >"conftest.in"
11874 while :
11875 do
11876 cat "conftest.in" "conftest.in" >"conftest.tmp"
11877 mv "conftest.tmp" "conftest.in"
11878 cp "conftest.in" "conftest.nl"
11879 $as_echo '' >> "conftest.nl"
11880 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11881 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11882 as_fn_arith $ac_count + 1 && ac_count=$as_val
11883 if test $ac_count -gt ${ac_path_SED_max-0}; then
11884 # Best one so far, save it but keep looking for a better one
11885 ac_cv_path_SED="$ac_path_SED"
11886 ac_path_SED_max=$ac_count
11887 fi
11888 # 10*(2^10) chars as input seems more than enough
11889 test $ac_count -gt 10 && break
11890 done
11891 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11892 esac
11893
11894 $ac_path_SED_found && break 3
11895 done
11896 done
11897 done
11898 IFS=$as_save_IFS
11899 if test -z "$ac_cv_path_SED"; then
11900 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11901 fi
11902 else
11903 ac_cv_path_SED=$SED
11904 fi
11905
11906 fi
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11908 $as_echo "$ac_cv_path_SED" >&6; }
11909 SED="$ac_cv_path_SED"
11910 rm -f conftest.sed
11911
11912 test -z "$SED" && SED=sed
11913 Xsed="$SED -e 1s/^X//"
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11926 $as_echo_n "checking for fgrep... " >&6; }
11927 if ${ac_cv_path_FGREP+:} false; then :
11928 $as_echo_n "(cached) " >&6
11929 else
11930 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11931 then ac_cv_path_FGREP="$GREP -F"
11932 else
11933 if test -z "$FGREP"; then
11934 ac_path_FGREP_found=false
11935 # Loop through the user's path and test for each of PROGNAME-LIST
11936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11938 do
11939 IFS=$as_save_IFS
11940 test -z "$as_dir" && as_dir=.
11941 for ac_prog in fgrep; do
11942 for ac_exec_ext in '' $ac_executable_extensions; do
11943 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11944 as_fn_executable_p "$ac_path_FGREP" || continue
11945 # Check for GNU ac_path_FGREP and select it if it is found.
11946 # Check for GNU $ac_path_FGREP
11947 case `"$ac_path_FGREP" --version 2>&1` in
11948 *GNU*)
11949 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11950 *)
11951 ac_count=0
11952 $as_echo_n 0123456789 >"conftest.in"
11953 while :
11954 do
11955 cat "conftest.in" "conftest.in" >"conftest.tmp"
11956 mv "conftest.tmp" "conftest.in"
11957 cp "conftest.in" "conftest.nl"
11958 $as_echo 'FGREP' >> "conftest.nl"
11959 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11961 as_fn_arith $ac_count + 1 && ac_count=$as_val
11962 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11963 # Best one so far, save it but keep looking for a better one
11964 ac_cv_path_FGREP="$ac_path_FGREP"
11965 ac_path_FGREP_max=$ac_count
11966 fi
11967 # 10*(2^10) chars as input seems more than enough
11968 test $ac_count -gt 10 && break
11969 done
11970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11971 esac
11972
11973 $ac_path_FGREP_found && break 3
11974 done
11975 done
11976 done
11977 IFS=$as_save_IFS
11978 if test -z "$ac_cv_path_FGREP"; then
11979 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11980 fi
11981 else
11982 ac_cv_path_FGREP=$FGREP
11983 fi
11984
11985 fi
11986 fi
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11988 $as_echo "$ac_cv_path_FGREP" >&6; }
11989 FGREP="$ac_cv_path_FGREP"
11990
11991
11992 test -z "$GREP" && GREP=grep
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012 # Check whether --with-gnu-ld was given.
12013 if test "${with_gnu_ld+set}" = set; then :
12014 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12015 else
12016 with_gnu_ld=no
12017 fi
12018
12019 ac_prog=ld
12020 if test "$GCC" = yes; then
12021 # Check if gcc -print-prog-name=ld gives a path.
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12023 $as_echo_n "checking for ld used by $CC... " >&6; }
12024 case $host in
12025 *-*-mingw*)
12026 # gcc leaves a trailing carriage return which upsets mingw
12027 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12028 *)
12029 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12030 esac
12031 case $ac_prog in
12032 # Accept absolute paths.
12033 [\\/]* | ?:[\\/]*)
12034 re_direlt='/[^/][^/]*/\.\./'
12035 # Canonicalize the pathname of ld
12036 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12037 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12038 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12039 done
12040 test -z "$LD" && LD="$ac_prog"
12041 ;;
12042 "")
12043 # If it fails, then pretend we aren't using GCC.
12044 ac_prog=ld
12045 ;;
12046 *)
12047 # If it is relative, then search for the first ld in PATH.
12048 with_gnu_ld=unknown
12049 ;;
12050 esac
12051 elif test "$with_gnu_ld" = yes; then
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12053 $as_echo_n "checking for GNU ld... " >&6; }
12054 else
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12056 $as_echo_n "checking for non-GNU ld... " >&6; }
12057 fi
12058 if ${lt_cv_path_LD+:} false; then :
12059 $as_echo_n "(cached) " >&6
12060 else
12061 if test -z "$LD"; then
12062 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12063 for ac_dir in $PATH; do
12064 IFS="$lt_save_ifs"
12065 test -z "$ac_dir" && ac_dir=.
12066 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12067 lt_cv_path_LD="$ac_dir/$ac_prog"
12068 # Check to see if the program is GNU ld. I'd rather use --version,
12069 # but apparently some variants of GNU ld only accept -v.
12070 # Break only if it was the GNU/non-GNU ld that we prefer.
12071 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12072 *GNU* | *'with BFD'*)
12073 test "$with_gnu_ld" != no && break
12074 ;;
12075 *)
12076 test "$with_gnu_ld" != yes && break
12077 ;;
12078 esac
12079 fi
12080 done
12081 IFS="$lt_save_ifs"
12082 else
12083 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12084 fi
12085 fi
12086
12087 LD="$lt_cv_path_LD"
12088 if test -n "$LD"; then
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12090 $as_echo "$LD" >&6; }
12091 else
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12093 $as_echo "no" >&6; }
12094 fi
12095 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12097 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12098 if ${lt_cv_prog_gnu_ld+:} false; then :
12099 $as_echo_n "(cached) " >&6
12100 else
12101 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12102 case `$LD -v 2>&1 </dev/null` in
12103 *GNU* | *'with BFD'*)
12104 lt_cv_prog_gnu_ld=yes
12105 ;;
12106 *)
12107 lt_cv_prog_gnu_ld=no
12108 ;;
12109 esac
12110 fi
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12112 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12113 with_gnu_ld=$lt_cv_prog_gnu_ld
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12124 $as_echo_n "checking whether ln -s works... " >&6; }
12125 LN_S=$as_ln_s
12126 if test "$LN_S" = "ln -s"; then
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12128 $as_echo "yes" >&6; }
12129 else
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12131 $as_echo "no, using $LN_S" >&6; }
12132 fi
12133
12134 # find the maximum length of command line arguments
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12136 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12137 if ${lt_cv_sys_max_cmd_len+:} false; then :
12138 $as_echo_n "(cached) " >&6
12139 else
12140 i=0
12141 teststring="ABCD"
12142
12143 case $build_os in
12144 msdosdjgpp*)
12145 # On DJGPP, this test can blow up pretty badly due to problems in libc
12146 # (any single argument exceeding 2000 bytes causes a buffer overrun
12147 # during glob expansion). Even if it were fixed, the result of this
12148 # check would be larger than it should be.
12149 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12150 ;;
12151
12152 gnu*)
12153 # Under GNU Hurd, this test is not required because there is
12154 # no limit to the length of command line arguments.
12155 # Libtool will interpret -1 as no limit whatsoever
12156 lt_cv_sys_max_cmd_len=-1;
12157 ;;
12158
12159 cygwin* | mingw* | cegcc*)
12160 # On Win9x/ME, this test blows up -- it succeeds, but takes
12161 # about 5 minutes as the teststring grows exponentially.
12162 # Worse, since 9x/ME are not pre-emptively multitasking,
12163 # you end up with a "frozen" computer, even though with patience
12164 # the test eventually succeeds (with a max line length of 256k).
12165 # Instead, let's just punt: use the minimum linelength reported by
12166 # all of the supported platforms: 8192 (on NT/2K/XP).
12167 lt_cv_sys_max_cmd_len=8192;
12168 ;;
12169
12170 mint*)
12171 # On MiNT this can take a long time and run out of memory.
12172 lt_cv_sys_max_cmd_len=8192;
12173 ;;
12174
12175 amigaos*)
12176 # On AmigaOS with pdksh, this test takes hours, literally.
12177 # So we just punt and use a minimum line length of 8192.
12178 lt_cv_sys_max_cmd_len=8192;
12179 ;;
12180
12181 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12182 # This has been around since 386BSD, at least. Likely further.
12183 if test -x /sbin/sysctl; then
12184 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12185 elif test -x /usr/sbin/sysctl; then
12186 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12187 else
12188 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12189 fi
12190 # And add a safety zone
12191 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12192 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12193 ;;
12194
12195 interix*)
12196 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12197 lt_cv_sys_max_cmd_len=196608
12198 ;;
12199
12200 os2*)
12201 # The test takes a long time on OS/2.
12202 lt_cv_sys_max_cmd_len=8192
12203 ;;
12204
12205 osf*)
12206 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12207 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12208 # nice to cause kernel panics so lets avoid the loop below.
12209 # First set a reasonable default.
12210 lt_cv_sys_max_cmd_len=16384
12211 #
12212 if test -x /sbin/sysconfig; then
12213 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12214 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12215 esac
12216 fi
12217 ;;
12218 sco3.2v5*)
12219 lt_cv_sys_max_cmd_len=102400
12220 ;;
12221 sysv5* | sco5v6* | sysv4.2uw2*)
12222 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12223 if test -n "$kargmax"; then
12224 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12225 else
12226 lt_cv_sys_max_cmd_len=32768
12227 fi
12228 ;;
12229 *)
12230 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12231 if test -n "$lt_cv_sys_max_cmd_len"; then
12232 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12234 else
12235 # Make teststring a little bigger before we do anything with it.
12236 # a 1K string should be a reasonable start.
12237 for i in 1 2 3 4 5 6 7 8 ; do
12238 teststring=$teststring$teststring
12239 done
12240 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12241 # If test is not a shell built-in, we'll probably end up computing a
12242 # maximum length that is only half of the actual maximum length, but
12243 # we can't tell.
12244 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
12245 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12246 test $i != 17 # 1/2 MB should be enough
12247 do
12248 i=`expr $i + 1`
12249 teststring=$teststring$teststring
12250 done
12251 # Only check the string length outside the loop.
12252 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12253 teststring=
12254 # Add a significant safety factor because C++ compilers can tack on
12255 # massive amounts of additional arguments before passing them to the
12256 # linker. It appears as though 1/2 is a usable value.
12257 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12258 fi
12259 ;;
12260 esac
12261
12262 fi
12263
12264 if test -n $lt_cv_sys_max_cmd_len ; then
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12266 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12267 else
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12269 $as_echo "none" >&6; }
12270 fi
12271 max_cmd_len=$lt_cv_sys_max_cmd_len
12272
12273
12274
12275
12276
12277
12278 : ${CP="cp -f"}
12279 : ${MV="mv -f"}
12280 : ${RM="rm -f"}
12281
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12283 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12284 # Try some XSI features
12285 xsi_shell=no
12286 ( _lt_dummy="a/b/c"
12287 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
12288 = c,a/b,b/c, \
12289 && eval 'test $(( 1 + 1 )) -eq 2 \
12290 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12291 && xsi_shell=yes
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12293 $as_echo "$xsi_shell" >&6; }
12294
12295
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12297 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12298 lt_shell_append=no
12299 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12300 >/dev/null 2>&1 \
12301 && lt_shell_append=yes
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12303 $as_echo "$lt_shell_append" >&6; }
12304
12305
12306 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12307 lt_unset=unset
12308 else
12309 lt_unset=false
12310 fi
12311
12312
12313
12314
12315
12316 # test EBCDIC or ASCII
12317 case `echo X|tr X '\101'` in
12318 A) # ASCII based system
12319 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12320 lt_SP2NL='tr \040 \012'
12321 lt_NL2SP='tr \015\012 \040\040'
12322 ;;
12323 *) # EBCDIC based system
12324 lt_SP2NL='tr \100 \n'
12325 lt_NL2SP='tr \r\n \100\100'
12326 ;;
12327 esac
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12338 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
12339 if ${lt_cv_to_host_file_cmd+:} false; then :
12340 $as_echo_n "(cached) " >&6
12341 else
12342 case $host in
12343 *-*-mingw* )
12344 case $build in
12345 *-*-mingw* ) # actually msys
12346 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12347 ;;
12348 *-*-cygwin* )
12349 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12350 ;;
12351 * ) # otherwise, assume *nix
12352 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12353 ;;
12354 esac
12355 ;;
12356 *-*-cygwin* )
12357 case $build in
12358 *-*-mingw* ) # actually msys
12359 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12360 ;;
12361 *-*-cygwin* )
12362 lt_cv_to_host_file_cmd=func_convert_file_noop
12363 ;;
12364 * ) # otherwise, assume *nix
12365 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12366 ;;
12367 esac
12368 ;;
12369 * ) # unhandled hosts (and "normal" native builds)
12370 lt_cv_to_host_file_cmd=func_convert_file_noop
12371 ;;
12372 esac
12373
12374 fi
12375
12376 to_host_file_cmd=$lt_cv_to_host_file_cmd
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12378 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
12379
12380
12381
12382
12383
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12385 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
12386 if ${lt_cv_to_tool_file_cmd+:} false; then :
12387 $as_echo_n "(cached) " >&6
12388 else
12389 #assume ordinary cross tools, or native build.
12390 lt_cv_to_tool_file_cmd=func_convert_file_noop
12391 case $host in
12392 *-*-mingw* )
12393 case $build in
12394 *-*-mingw* ) # actually msys
12395 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12396 ;;
12397 esac
12398 ;;
12399 esac
12400
12401 fi
12402
12403 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12405 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
12406
12407
12408
12409
12410
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12412 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12413 if ${lt_cv_ld_reload_flag+:} false; then :
12414 $as_echo_n "(cached) " >&6
12415 else
12416 lt_cv_ld_reload_flag='-r'
12417 fi
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12419 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12420 reload_flag=$lt_cv_ld_reload_flag
12421 case $reload_flag in
12422 "" | " "*) ;;
12423 *) reload_flag=" $reload_flag" ;;
12424 esac
12425 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12426 case $host_os in
12427 cygwin* | mingw* | pw32* | cegcc*)
12428 if test "$GCC" != yes; then
12429 reload_cmds=false
12430 fi
12431 ;;
12432 darwin*)
12433 if test "$GCC" = yes; then
12434 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12435 else
12436 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12437 fi
12438 ;;
12439 esac
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449 if test -n "$ac_tool_prefix"; then
12450 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12451 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12453 $as_echo_n "checking for $ac_word... " >&6; }
12454 if ${ac_cv_prog_OBJDUMP+:} false; then :
12455 $as_echo_n "(cached) " >&6
12456 else
12457 if test -n "$OBJDUMP"; then
12458 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12459 else
12460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461 for as_dir in $PATH
12462 do
12463 IFS=$as_save_IFS
12464 test -z "$as_dir" && as_dir=.
12465 for ac_exec_ext in '' $ac_executable_extensions; do
12466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12467 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12469 break 2
12470 fi
12471 done
12472 done
12473 IFS=$as_save_IFS
12474
12475 fi
12476 fi
12477 OBJDUMP=$ac_cv_prog_OBJDUMP
12478 if test -n "$OBJDUMP"; then
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12480 $as_echo "$OBJDUMP" >&6; }
12481 else
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483 $as_echo "no" >&6; }
12484 fi
12485
12486
12487 fi
12488 if test -z "$ac_cv_prog_OBJDUMP"; then
12489 ac_ct_OBJDUMP=$OBJDUMP
12490 # Extract the first word of "objdump", so it can be a program name with args.
12491 set dummy objdump; ac_word=$2
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12493 $as_echo_n "checking for $ac_word... " >&6; }
12494 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12495 $as_echo_n "(cached) " >&6
12496 else
12497 if test -n "$ac_ct_OBJDUMP"; then
12498 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12499 else
12500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12501 for as_dir in $PATH
12502 do
12503 IFS=$as_save_IFS
12504 test -z "$as_dir" && as_dir=.
12505 for ac_exec_ext in '' $ac_executable_extensions; do
12506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12507 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12509 break 2
12510 fi
12511 done
12512 done
12513 IFS=$as_save_IFS
12514
12515 fi
12516 fi
12517 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12518 if test -n "$ac_ct_OBJDUMP"; then
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12520 $as_echo "$ac_ct_OBJDUMP" >&6; }
12521 else
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12523 $as_echo "no" >&6; }
12524 fi
12525
12526 if test "x$ac_ct_OBJDUMP" = x; then
12527 OBJDUMP="false"
12528 else
12529 case $cross_compiling:$ac_tool_warned in
12530 yes:)
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12533 ac_tool_warned=yes ;;
12534 esac
12535 OBJDUMP=$ac_ct_OBJDUMP
12536 fi
12537 else
12538 OBJDUMP="$ac_cv_prog_OBJDUMP"
12539 fi
12540
12541 test -z "$OBJDUMP" && OBJDUMP=objdump
12542
12543
12544
12545
12546
12547
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12549 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12550 if ${lt_cv_deplibs_check_method+:} false; then :
12551 $as_echo_n "(cached) " >&6
12552 else
12553 lt_cv_file_magic_cmd='$MAGIC_CMD'
12554 lt_cv_file_magic_test_file=
12555 lt_cv_deplibs_check_method='unknown'
12556 # Need to set the preceding variable on all platforms that support
12557 # interlibrary dependencies.
12558 # 'none' -- dependencies not supported.
12559 # `unknown' -- same as none, but documents that we really don't know.
12560 # 'pass_all' -- all dependencies passed with no checks.
12561 # 'test_compile' -- check by making test program.
12562 # 'file_magic [[regex]]' -- check by looking for files in library path
12563 # which responds to the $file_magic_cmd with a given extended regex.
12564 # If you have `file' or equivalent on your system and you're not sure
12565 # whether `pass_all' will *always* work, you probably want this one.
12566
12567 case $host_os in
12568 aix[4-9]*)
12569 lt_cv_deplibs_check_method=pass_all
12570 ;;
12571
12572 beos*)
12573 lt_cv_deplibs_check_method=pass_all
12574 ;;
12575
12576 bsdi[45]*)
12577 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12578 lt_cv_file_magic_cmd='/usr/bin/file -L'
12579 lt_cv_file_magic_test_file=/shlib/libc.so
12580 ;;
12581
12582 cygwin*)
12583 # func_win32_libid is a shell function defined in ltmain.sh
12584 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12585 lt_cv_file_magic_cmd='func_win32_libid'
12586 ;;
12587
12588 mingw* | pw32*)
12589 # Base MSYS/MinGW do not provide the 'file' command needed by
12590 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12591 # unless we find 'file', for example because we are cross-compiling.
12592 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12593 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12594 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12595 lt_cv_file_magic_cmd='func_win32_libid'
12596 else
12597 # Keep this pattern in sync with the one in func_win32_libid.
12598 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12599 lt_cv_file_magic_cmd='$OBJDUMP -f'
12600 fi
12601 ;;
12602
12603 cegcc*)
12604 # use the weaker test based on 'objdump'. See mingw*.
12605 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12606 lt_cv_file_magic_cmd='$OBJDUMP -f'
12607 ;;
12608
12609 darwin* | rhapsody*)
12610 lt_cv_deplibs_check_method=pass_all
12611 ;;
12612
12613 freebsd* | dragonfly*)
12614 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12615 case $host_cpu in
12616 i*86 )
12617 # Not sure whether the presence of OpenBSD here was a mistake.
12618 # Let's accept both of them until this is cleared up.
12619 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12620 lt_cv_file_magic_cmd=/usr/bin/file
12621 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12622 ;;
12623 esac
12624 else
12625 lt_cv_deplibs_check_method=pass_all
12626 fi
12627 ;;
12628
12629 gnu*)
12630 lt_cv_deplibs_check_method=pass_all
12631 ;;
12632
12633 haiku*)
12634 lt_cv_deplibs_check_method=pass_all
12635 ;;
12636
12637 hpux10.20* | hpux11*)
12638 lt_cv_file_magic_cmd=/usr/bin/file
12639 case $host_cpu in
12640 ia64*)
12641 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12642 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12643 ;;
12644 hppa*64*)
12645 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]'
12646 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12647 ;;
12648 *)
12649 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12650 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12651 ;;
12652 esac
12653 ;;
12654
12655 interix[3-9]*)
12656 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12658 ;;
12659
12660 irix5* | irix6* | nonstopux*)
12661 case $LD in
12662 *-32|*"-32 ") libmagic=32-bit;;
12663 *-n32|*"-n32 ") libmagic=N32;;
12664 *-64|*"-64 ") libmagic=64-bit;;
12665 *) libmagic=never-match;;
12666 esac
12667 lt_cv_deplibs_check_method=pass_all
12668 ;;
12669
12670 # This must be glibc/ELF.
12671 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12672 lt_cv_deplibs_check_method=pass_all
12673 ;;
12674
12675 netbsd*)
12676 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12678 else
12679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12680 fi
12681 ;;
12682
12683 newos6*)
12684 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12685 lt_cv_file_magic_cmd=/usr/bin/file
12686 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12687 ;;
12688
12689 *nto* | *qnx*)
12690 lt_cv_deplibs_check_method=pass_all
12691 ;;
12692
12693 openbsd*)
12694 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12696 else
12697 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12698 fi
12699 ;;
12700
12701 osf3* | osf4* | osf5*)
12702 lt_cv_deplibs_check_method=pass_all
12703 ;;
12704
12705 rdos*)
12706 lt_cv_deplibs_check_method=pass_all
12707 ;;
12708
12709 solaris*)
12710 lt_cv_deplibs_check_method=pass_all
12711 ;;
12712
12713 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12714 lt_cv_deplibs_check_method=pass_all
12715 ;;
12716
12717 sysv4 | sysv4.3*)
12718 case $host_vendor in
12719 motorola)
12720 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]'
12721 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12722 ;;
12723 ncr)
12724 lt_cv_deplibs_check_method=pass_all
12725 ;;
12726 sequent)
12727 lt_cv_file_magic_cmd='/bin/file'
12728 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12729 ;;
12730 sni)
12731 lt_cv_file_magic_cmd='/bin/file'
12732 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12733 lt_cv_file_magic_test_file=/lib/libc.so
12734 ;;
12735 siemens)
12736 lt_cv_deplibs_check_method=pass_all
12737 ;;
12738 pc)
12739 lt_cv_deplibs_check_method=pass_all
12740 ;;
12741 esac
12742 ;;
12743
12744 tpf*)
12745 lt_cv_deplibs_check_method=pass_all
12746 ;;
12747 esac
12748
12749 fi
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12751 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12752
12753 file_magic_glob=
12754 want_nocaseglob=no
12755 if test "$build" = "$host"; then
12756 case $host_os in
12757 mingw* | pw32*)
12758 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12759 want_nocaseglob=yes
12760 else
12761 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12762 fi
12763 ;;
12764 esac
12765 fi
12766
12767 file_magic_cmd=$lt_cv_file_magic_cmd
12768 deplibs_check_method=$lt_cv_deplibs_check_method
12769 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792 if test -n "$ac_tool_prefix"; then
12793 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12794 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12796 $as_echo_n "checking for $ac_word... " >&6; }
12797 if ${ac_cv_prog_DLLTOOL+:} false; then :
12798 $as_echo_n "(cached) " >&6
12799 else
12800 if test -n "$DLLTOOL"; then
12801 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12802 else
12803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12804 for as_dir in $PATH
12805 do
12806 IFS=$as_save_IFS
12807 test -z "$as_dir" && as_dir=.
12808 for ac_exec_ext in '' $ac_executable_extensions; do
12809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12810 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12812 break 2
12813 fi
12814 done
12815 done
12816 IFS=$as_save_IFS
12817
12818 fi
12819 fi
12820 DLLTOOL=$ac_cv_prog_DLLTOOL
12821 if test -n "$DLLTOOL"; then
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12823 $as_echo "$DLLTOOL" >&6; }
12824 else
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12826 $as_echo "no" >&6; }
12827 fi
12828
12829
12830 fi
12831 if test -z "$ac_cv_prog_DLLTOOL"; then
12832 ac_ct_DLLTOOL=$DLLTOOL
12833 # Extract the first word of "dlltool", so it can be a program name with args.
12834 set dummy dlltool; ac_word=$2
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12836 $as_echo_n "checking for $ac_word... " >&6; }
12837 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12838 $as_echo_n "(cached) " >&6
12839 else
12840 if test -n "$ac_ct_DLLTOOL"; then
12841 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12842 else
12843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12844 for as_dir in $PATH
12845 do
12846 IFS=$as_save_IFS
12847 test -z "$as_dir" && as_dir=.
12848 for ac_exec_ext in '' $ac_executable_extensions; do
12849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12850 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12852 break 2
12853 fi
12854 done
12855 done
12856 IFS=$as_save_IFS
12857
12858 fi
12859 fi
12860 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12861 if test -n "$ac_ct_DLLTOOL"; then
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12863 $as_echo "$ac_ct_DLLTOOL" >&6; }
12864 else
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12866 $as_echo "no" >&6; }
12867 fi
12868
12869 if test "x$ac_ct_DLLTOOL" = x; then
12870 DLLTOOL="false"
12871 else
12872 case $cross_compiling:$ac_tool_warned in
12873 yes:)
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12876 ac_tool_warned=yes ;;
12877 esac
12878 DLLTOOL=$ac_ct_DLLTOOL
12879 fi
12880 else
12881 DLLTOOL="$ac_cv_prog_DLLTOOL"
12882 fi
12883
12884 test -z "$DLLTOOL" && DLLTOOL=dlltool
12885
12886
12887
12888
12889
12890
12891
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12893 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12894 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12895 $as_echo_n "(cached) " >&6
12896 else
12897 lt_cv_sharedlib_from_linklib_cmd='unknown'
12898
12899 case $host_os in
12900 cygwin* | mingw* | pw32* | cegcc*)
12901 # two different shell functions defined in ltmain.sh
12902 # decide which to use based on capabilities of $DLLTOOL
12903 case `$DLLTOOL --help 2>&1` in
12904 *--identify-strict*)
12905 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12906 ;;
12907 *)
12908 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12909 ;;
12910 esac
12911 ;;
12912 *)
12913 # fallback: assume linklib IS sharedlib
12914 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12915 ;;
12916 esac
12917
12918 fi
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12920 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12921 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12922 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12923
12924
12925
12926
12927
12928
12929
12930 if test -n "$ac_tool_prefix"; then
12931 for ac_prog in ar
12932 do
12933 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12934 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12936 $as_echo_n "checking for $ac_word... " >&6; }
12937 if ${ac_cv_prog_AR+:} false; then :
12938 $as_echo_n "(cached) " >&6
12939 else
12940 if test -n "$AR"; then
12941 ac_cv_prog_AR="$AR" # Let the user override the test.
12942 else
12943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12944 for as_dir in $PATH
12945 do
12946 IFS=$as_save_IFS
12947 test -z "$as_dir" && as_dir=.
12948 for ac_exec_ext in '' $ac_executable_extensions; do
12949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12950 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12952 break 2
12953 fi
12954 done
12955 done
12956 IFS=$as_save_IFS
12957
12958 fi
12959 fi
12960 AR=$ac_cv_prog_AR
12961 if test -n "$AR"; then
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12963 $as_echo "$AR" >&6; }
12964 else
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12966 $as_echo "no" >&6; }
12967 fi
12968
12969
12970 test -n "$AR" && break
12971 done
12972 fi
12973 if test -z "$AR"; then
12974 ac_ct_AR=$AR
12975 for ac_prog in ar
12976 do
12977 # Extract the first word of "$ac_prog", so it can be a program name with args.
12978 set dummy $ac_prog; ac_word=$2
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12980 $as_echo_n "checking for $ac_word... " >&6; }
12981 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12982 $as_echo_n "(cached) " >&6
12983 else
12984 if test -n "$ac_ct_AR"; then
12985 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12986 else
12987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12988 for as_dir in $PATH
12989 do
12990 IFS=$as_save_IFS
12991 test -z "$as_dir" && as_dir=.
12992 for ac_exec_ext in '' $ac_executable_extensions; do
12993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12994 ac_cv_prog_ac_ct_AR="$ac_prog"
12995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12996 break 2
12997 fi
12998 done
12999 done
13000 IFS=$as_save_IFS
13001
13002 fi
13003 fi
13004 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13005 if test -n "$ac_ct_AR"; then
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13007 $as_echo "$ac_ct_AR" >&6; }
13008 else
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13010 $as_echo "no" >&6; }
13011 fi
13012
13013
13014 test -n "$ac_ct_AR" && break
13015 done
13016
13017 if test "x$ac_ct_AR" = x; then
13018 AR="false"
13019 else
13020 case $cross_compiling:$ac_tool_warned in
13021 yes:)
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13024 ac_tool_warned=yes ;;
13025 esac
13026 AR=$ac_ct_AR
13027 fi
13028 fi
13029
13030 : ${AR=ar}
13031 : ${AR_FLAGS=cru}
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13044 $as_echo_n "checking for archiver @FILE support... " >&6; }
13045 if ${lt_cv_ar_at_file+:} false; then :
13046 $as_echo_n "(cached) " >&6
13047 else
13048 lt_cv_ar_at_file=no
13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h. */
13051
13052 int
13053 main ()
13054 {
13055
13056 ;
13057 return 0;
13058 }
13059 _ACEOF
13060 if ac_fn_c_try_compile "$LINENO"; then :
13061 echo conftest.$ac_objext > conftest.lst
13062 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13064 (eval $lt_ar_try) 2>&5
13065 ac_status=$?
13066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13067 test $ac_status = 0; }
13068 if test "$ac_status" -eq 0; then
13069 # Ensure the archiver fails upon bogus file names.
13070 rm -f conftest.$ac_objext libconftest.a
13071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13072 (eval $lt_ar_try) 2>&5
13073 ac_status=$?
13074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13075 test $ac_status = 0; }
13076 if test "$ac_status" -ne 0; then
13077 lt_cv_ar_at_file=@
13078 fi
13079 fi
13080 rm -f conftest.* libconftest.a
13081
13082 fi
13083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13084
13085 fi
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13087 $as_echo "$lt_cv_ar_at_file" >&6; }
13088
13089 if test "x$lt_cv_ar_at_file" = xno; then
13090 archiver_list_spec=
13091 else
13092 archiver_list_spec=$lt_cv_ar_at_file
13093 fi
13094
13095
13096
13097
13098
13099
13100
13101 if test -n "$ac_tool_prefix"; then
13102 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13103 set dummy ${ac_tool_prefix}strip; ac_word=$2
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13105 $as_echo_n "checking for $ac_word... " >&6; }
13106 if ${ac_cv_prog_STRIP+:} false; then :
13107 $as_echo_n "(cached) " >&6
13108 else
13109 if test -n "$STRIP"; then
13110 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13111 else
13112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13113 for as_dir in $PATH
13114 do
13115 IFS=$as_save_IFS
13116 test -z "$as_dir" && as_dir=.
13117 for ac_exec_ext in '' $ac_executable_extensions; do
13118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13119 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13121 break 2
13122 fi
13123 done
13124 done
13125 IFS=$as_save_IFS
13126
13127 fi
13128 fi
13129 STRIP=$ac_cv_prog_STRIP
13130 if test -n "$STRIP"; then
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13132 $as_echo "$STRIP" >&6; }
13133 else
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135 $as_echo "no" >&6; }
13136 fi
13137
13138
13139 fi
13140 if test -z "$ac_cv_prog_STRIP"; then
13141 ac_ct_STRIP=$STRIP
13142 # Extract the first word of "strip", so it can be a program name with args.
13143 set dummy strip; ac_word=$2
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13145 $as_echo_n "checking for $ac_word... " >&6; }
13146 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13147 $as_echo_n "(cached) " >&6
13148 else
13149 if test -n "$ac_ct_STRIP"; then
13150 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13151 else
13152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153 for as_dir in $PATH
13154 do
13155 IFS=$as_save_IFS
13156 test -z "$as_dir" && as_dir=.
13157 for ac_exec_ext in '' $ac_executable_extensions; do
13158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13159 ac_cv_prog_ac_ct_STRIP="strip"
13160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13161 break 2
13162 fi
13163 done
13164 done
13165 IFS=$as_save_IFS
13166
13167 fi
13168 fi
13169 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13170 if test -n "$ac_ct_STRIP"; then
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13172 $as_echo "$ac_ct_STRIP" >&6; }
13173 else
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13175 $as_echo "no" >&6; }
13176 fi
13177
13178 if test "x$ac_ct_STRIP" = x; then
13179 STRIP=":"
13180 else
13181 case $cross_compiling:$ac_tool_warned in
13182 yes:)
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13185 ac_tool_warned=yes ;;
13186 esac
13187 STRIP=$ac_ct_STRIP
13188 fi
13189 else
13190 STRIP="$ac_cv_prog_STRIP"
13191 fi
13192
13193 test -z "$STRIP" && STRIP=:
13194
13195
13196
13197
13198
13199
13200 if test -n "$ac_tool_prefix"; then
13201 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13202 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13204 $as_echo_n "checking for $ac_word... " >&6; }
13205 if ${ac_cv_prog_RANLIB+:} false; then :
13206 $as_echo_n "(cached) " >&6
13207 else
13208 if test -n "$RANLIB"; then
13209 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13210 else
13211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13212 for as_dir in $PATH
13213 do
13214 IFS=$as_save_IFS
13215 test -z "$as_dir" && as_dir=.
13216 for ac_exec_ext in '' $ac_executable_extensions; do
13217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13218 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13220 break 2
13221 fi
13222 done
13223 done
13224 IFS=$as_save_IFS
13225
13226 fi
13227 fi
13228 RANLIB=$ac_cv_prog_RANLIB
13229 if test -n "$RANLIB"; then
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13231 $as_echo "$RANLIB" >&6; }
13232 else
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13234 $as_echo "no" >&6; }
13235 fi
13236
13237
13238 fi
13239 if test -z "$ac_cv_prog_RANLIB"; then
13240 ac_ct_RANLIB=$RANLIB
13241 # Extract the first word of "ranlib", so it can be a program name with args.
13242 set dummy ranlib; ac_word=$2
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13244 $as_echo_n "checking for $ac_word... " >&6; }
13245 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13246 $as_echo_n "(cached) " >&6
13247 else
13248 if test -n "$ac_ct_RANLIB"; then
13249 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13250 else
13251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13252 for as_dir in $PATH
13253 do
13254 IFS=$as_save_IFS
13255 test -z "$as_dir" && as_dir=.
13256 for ac_exec_ext in '' $ac_executable_extensions; do
13257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13258 ac_cv_prog_ac_ct_RANLIB="ranlib"
13259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13260 break 2
13261 fi
13262 done
13263 done
13264 IFS=$as_save_IFS
13265
13266 fi
13267 fi
13268 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13269 if test -n "$ac_ct_RANLIB"; then
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13271 $as_echo "$ac_ct_RANLIB" >&6; }
13272 else
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13274 $as_echo "no" >&6; }
13275 fi
13276
13277 if test "x$ac_ct_RANLIB" = x; then
13278 RANLIB=":"
13279 else
13280 case $cross_compiling:$ac_tool_warned in
13281 yes:)
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13284 ac_tool_warned=yes ;;
13285 esac
13286 RANLIB=$ac_ct_RANLIB
13287 fi
13288 else
13289 RANLIB="$ac_cv_prog_RANLIB"
13290 fi
13291
13292 test -z "$RANLIB" && RANLIB=:
13293
13294
13295
13296
13297
13298
13299 # Determine commands to create old-style static archives.
13300 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13301 old_postinstall_cmds='chmod 644 $oldlib'
13302 old_postuninstall_cmds=
13303
13304 if test -n "$RANLIB"; then
13305 case $host_os in
13306 openbsd*)
13307 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13308 ;;
13309 *)
13310 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13311 ;;
13312 esac
13313 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13314 fi
13315
13316 case $host_os in
13317 darwin*)
13318 lock_old_archive_extraction=yes ;;
13319 *)
13320 lock_old_archive_extraction=no ;;
13321 esac
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361 # If no C compiler was specified, use CC.
13362 LTCC=${LTCC-"$CC"}
13363
13364 # If no C compiler flags were specified, use CFLAGS.
13365 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13366
13367 # Allow CC to be a program name with arguments.
13368 compiler=$CC
13369
13370
13371 # Check for command to grab the raw symbol name followed by C symbol from nm.
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13373 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13374 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
13375 $as_echo_n "(cached) " >&6
13376 else
13377
13378 # These are sane defaults that work on at least a few old systems.
13379 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13380
13381 # Character class describing NM global symbol codes.
13382 symcode='[BCDEGRST]'
13383
13384 # Regexp to match symbols that can be accessed directly from C.
13385 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13386
13387 # Define system-specific variables.
13388 case $host_os in
13389 aix*)
13390 symcode='[BCDT]'
13391 ;;
13392 cygwin* | mingw* | pw32* | cegcc*)
13393 symcode='[ABCDGISTW]'
13394 ;;
13395 hpux*)
13396 if test "$host_cpu" = ia64; then
13397 symcode='[ABCDEGRST]'
13398 fi
13399 ;;
13400 irix* | nonstopux*)
13401 symcode='[BCDEGRST]'
13402 ;;
13403 osf*)
13404 symcode='[BCDEGQRST]'
13405 ;;
13406 solaris*)
13407 symcode='[BDRT]'
13408 ;;
13409 sco3.2v5*)
13410 symcode='[DT]'
13411 ;;
13412 sysv4.2uw2*)
13413 symcode='[DT]'
13414 ;;
13415 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13416 symcode='[ABDT]'
13417 ;;
13418 sysv4)
13419 symcode='[DFNSTU]'
13420 ;;
13421 esac
13422
13423 # If we're using GNU nm, then use its standard symbol codes.
13424 case `$NM -V 2>&1` in
13425 *GNU* | *'with BFD'*)
13426 symcode='[ABCDGIRSTW]' ;;
13427 esac
13428
13429 # Transform an extracted symbol line into a proper C declaration.
13430 # Some systems (esp. on ia64) link data and code symbols differently,
13431 # so use this general approach.
13432 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13433
13434 # Transform an extracted symbol line into symbol name and symbol address
13435 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13436 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'"
13437
13438 # Handle CRLF in mingw tool chain
13439 opt_cr=
13440 case $build_os in
13441 mingw*)
13442 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13443 ;;
13444 esac
13445
13446 # Try without a prefix underscore, then with it.
13447 for ac_symprfx in "" "_"; do
13448
13449 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13450 symxfrm="\\1 $ac_symprfx\\2 \\2"
13451
13452 # Write the raw and C identifiers.
13453 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13454 # Fake it for dumpbin and say T for any non-static function
13455 # and D for any global variable.
13456 # Also find C++ and __fastcall symbols from MSVC++,
13457 # which start with @ or ?.
13458 lt_cv_sys_global_symbol_pipe="$AWK '"\
13459 " {last_section=section; section=\$ 3};"\
13460 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13461 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13462 " \$ 0!~/External *\|/{next};"\
13463 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13464 " {if(hide[section]) next};"\
13465 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13466 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13467 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13468 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13469 " ' prfx=^$ac_symprfx"
13470 else
13471 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13472 fi
13473 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
13474
13475 # Check to see that the pipe works correctly.
13476 pipe_works=no
13477
13478 rm -f conftest*
13479 cat > conftest.$ac_ext <<_LT_EOF
13480 #ifdef __cplusplus
13481 extern "C" {
13482 #endif
13483 char nm_test_var;
13484 void nm_test_func(void);
13485 void nm_test_func(void){}
13486 #ifdef __cplusplus
13487 }
13488 #endif
13489 int main(){nm_test_var='a';nm_test_func();return(0);}
13490 _LT_EOF
13491
13492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13493 (eval $ac_compile) 2>&5
13494 ac_status=$?
13495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13496 test $ac_status = 0; }; then
13497 # Now try to grab the symbols.
13498 nlist=conftest.nm
13499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13500 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13501 ac_status=$?
13502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13503 test $ac_status = 0; } && test -s "$nlist"; then
13504 # Try sorting and uniquifying the output.
13505 if sort "$nlist" | uniq > "$nlist"T; then
13506 mv -f "$nlist"T "$nlist"
13507 else
13508 rm -f "$nlist"T
13509 fi
13510
13511 # Make sure that we snagged all the symbols we need.
13512 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13513 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13514 cat <<_LT_EOF > conftest.$ac_ext
13515 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
13516 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
13517 /* DATA imports from DLLs on WIN32 con't be const, because runtime
13518 relocations are performed -- see ld's documentation on pseudo-relocs. */
13519 # define LT_DLSYM_CONST
13520 #elif defined(__osf__)
13521 /* This system does not cope well with relocations in const data. */
13522 # define LT_DLSYM_CONST
13523 #else
13524 # define LT_DLSYM_CONST const
13525 #endif
13526
13527 #ifdef __cplusplus
13528 extern "C" {
13529 #endif
13530
13531 _LT_EOF
13532 # Now generate the symbol file.
13533 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13534
13535 cat <<_LT_EOF >> conftest.$ac_ext
13536
13537 /* The mapping between symbol names and symbols. */
13538 LT_DLSYM_CONST struct {
13539 const char *name;
13540 void *address;
13541 }
13542 lt__PROGRAM__LTX_preloaded_symbols[] =
13543 {
13544 { "@PROGRAM@", (void *) 0 },
13545 _LT_EOF
13546 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13547 cat <<\_LT_EOF >> conftest.$ac_ext
13548 {0, (void *) 0}
13549 };
13550
13551 /* This works around a problem in FreeBSD linker */
13552 #ifdef FREEBSD_WORKAROUND
13553 static const void *lt_preloaded_setup() {
13554 return lt__PROGRAM__LTX_preloaded_symbols;
13555 }
13556 #endif
13557
13558 #ifdef __cplusplus
13559 }
13560 #endif
13561 _LT_EOF
13562 # Now try linking the two files.
13563 mv conftest.$ac_objext conftstm.$ac_objext
13564 lt_globsym_save_LIBS=$LIBS
13565 lt_globsym_save_CFLAGS=$CFLAGS
13566 LIBS="conftstm.$ac_objext"
13567 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13569 (eval $ac_link) 2>&5
13570 ac_status=$?
13571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13572 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13573 pipe_works=yes
13574 fi
13575 LIBS=$lt_globsym_save_LIBS
13576 CFLAGS=$lt_globsym_save_CFLAGS
13577 else
13578 echo "cannot find nm_test_func in $nlist" >&5
13579 fi
13580 else
13581 echo "cannot find nm_test_var in $nlist" >&5
13582 fi
13583 else
13584 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13585 fi
13586 else
13587 echo "$progname: failed program was:" >&5
13588 cat conftest.$ac_ext >&5
13589 fi
13590 rm -rf conftest* conftst*
13591
13592 # Do not use the global_symbol_pipe unless it works.
13593 if test "$pipe_works" = yes; then
13594 break
13595 else
13596 lt_cv_sys_global_symbol_pipe=
13597 fi
13598 done
13599
13600 fi
13601
13602 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13603 lt_cv_sys_global_symbol_to_cdecl=
13604 fi
13605 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13607 $as_echo "failed" >&6; }
13608 else
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13610 $as_echo "ok" >&6; }
13611 fi
13612
13613 # Response file support.
13614 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13615 nm_file_list_spec='@'
13616 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13617 nm_file_list_spec='@'
13618 fi
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13647 $as_echo_n "checking for sysroot... " >&6; }
13648
13649 # Check whether --with-sysroot was given.
13650 if test "${with_sysroot+set}" = set; then :
13651 withval=$with_sysroot;
13652 else
13653 with_sysroot=no
13654 fi
13655
13656
13657 lt_sysroot=
13658 case ${with_sysroot} in #(
13659 yes)
13660 if test "$GCC" = yes; then
13661 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13662 fi
13663 ;; #(
13664 /*)
13665 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13666 ;; #(
13667 no|'')
13668 ;; #(
13669 *)
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
13671 $as_echo "${with_sysroot}" >&6; }
13672 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13673 ;;
13674 esac
13675
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13677 $as_echo "${lt_sysroot:-no}" >&6; }
13678
13679
13680
13681
13682
13683 # Check whether --enable-libtool-lock was given.
13684 if test "${enable_libtool_lock+set}" = set; then :
13685 enableval=$enable_libtool_lock;
13686 fi
13687
13688 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13689
13690 # Some flags need to be propagated to the compiler or linker for good
13691 # libtool support.
13692 case $host in
13693 ia64-*-hpux*)
13694 # Find out which ABI we are using.
13695 echo 'int i;' > conftest.$ac_ext
13696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13697 (eval $ac_compile) 2>&5
13698 ac_status=$?
13699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13700 test $ac_status = 0; }; then
13701 case `/usr/bin/file conftest.$ac_objext` in
13702 *ELF-32*)
13703 HPUX_IA64_MODE="32"
13704 ;;
13705 *ELF-64*)
13706 HPUX_IA64_MODE="64"
13707 ;;
13708 esac
13709 fi
13710 rm -rf conftest*
13711 ;;
13712 *-*-irix6*)
13713 # Find out which ABI we are using.
13714 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13716 (eval $ac_compile) 2>&5
13717 ac_status=$?
13718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13719 test $ac_status = 0; }; then
13720 if test "$lt_cv_prog_gnu_ld" = yes; then
13721 case `/usr/bin/file conftest.$ac_objext` in
13722 *32-bit*)
13723 LD="${LD-ld} -melf32bsmip"
13724 ;;
13725 *N32*)
13726 LD="${LD-ld} -melf32bmipn32"
13727 ;;
13728 *64-bit*)
13729 LD="${LD-ld} -melf64bmip"
13730 ;;
13731 esac
13732 else
13733 case `/usr/bin/file conftest.$ac_objext` in
13734 *32-bit*)
13735 LD="${LD-ld} -32"
13736 ;;
13737 *N32*)
13738 LD="${LD-ld} -n32"
13739 ;;
13740 *64-bit*)
13741 LD="${LD-ld} -64"
13742 ;;
13743 esac
13744 fi
13745 fi
13746 rm -rf conftest*
13747 ;;
13748
13749 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13750 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13751 # Find out which ABI we are using.
13752 echo 'int i;' > conftest.$ac_ext
13753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13754 (eval $ac_compile) 2>&5
13755 ac_status=$?
13756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13757 test $ac_status = 0; }; then
13758 case `/usr/bin/file conftest.o` in
13759 *32-bit*)
13760 case $host in
13761 x86_64-*kfreebsd*-gnu)
13762 LD="${LD-ld} -m elf_i386_fbsd"
13763 ;;
13764 x86_64-*linux*)
13765 LD="${LD-ld} -m elf_i386"
13766 ;;
13767 ppc64-*linux*|powerpc64-*linux*)
13768 LD="${LD-ld} -m elf32ppclinux"
13769 ;;
13770 s390x-*linux*)
13771 LD="${LD-ld} -m elf_s390"
13772 ;;
13773 sparc64-*linux*)
13774 LD="${LD-ld} -m elf32_sparc"
13775 ;;
13776 esac
13777 ;;
13778 *64-bit*)
13779 case $host in
13780 x86_64-*kfreebsd*-gnu)
13781 LD="${LD-ld} -m elf_x86_64_fbsd"
13782 ;;
13783 x86_64-*linux*)
13784 LD="${LD-ld} -m elf_x86_64"
13785 ;;
13786 ppc*-*linux*|powerpc*-*linux*)
13787 LD="${LD-ld} -m elf64ppc"
13788 ;;
13789 s390*-*linux*|s390*-*tpf*)
13790 LD="${LD-ld} -m elf64_s390"
13791 ;;
13792 sparc*-*linux*)
13793 LD="${LD-ld} -m elf64_sparc"
13794 ;;
13795 esac
13796 ;;
13797 esac
13798 fi
13799 rm -rf conftest*
13800 ;;
13801
13802 *-*-sco3.2v5*)
13803 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13804 SAVE_CFLAGS="$CFLAGS"
13805 CFLAGS="$CFLAGS -belf"
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13807 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13808 if ${lt_cv_cc_needs_belf+:} false; then :
13809 $as_echo_n "(cached) " >&6
13810 else
13811 ac_ext=c
13812 ac_cpp='$CPP $CPPFLAGS'
13813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13816
13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13818 /* end confdefs.h. */
13819
13820 int
13821 main ()
13822 {
13823
13824 ;
13825 return 0;
13826 }
13827 _ACEOF
13828 if ac_fn_c_try_link "$LINENO"; then :
13829 lt_cv_cc_needs_belf=yes
13830 else
13831 lt_cv_cc_needs_belf=no
13832 fi
13833 rm -f core conftest.err conftest.$ac_objext \
13834 conftest$ac_exeext conftest.$ac_ext
13835 ac_ext=c
13836 ac_cpp='$CPP $CPPFLAGS'
13837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13840
13841 fi
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13843 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13844 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13845 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13846 CFLAGS="$SAVE_CFLAGS"
13847 fi
13848 ;;
13849 *-*solaris*)
13850 # Find out which ABI we are using.
13851 echo 'int i;' > conftest.$ac_ext
13852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13853 (eval $ac_compile) 2>&5
13854 ac_status=$?
13855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13856 test $ac_status = 0; }; then
13857 case `/usr/bin/file conftest.o` in
13858 *64-bit*)
13859 case $lt_cv_prog_gnu_ld in
13860 yes*)
13861 case $host in
13862 i?86-*-solaris*)
13863 LD="${LD-ld} -m elf_x86_64"
13864 ;;
13865 sparc*-*-solaris*)
13866 LD="${LD-ld} -m elf64_sparc"
13867 ;;
13868 esac
13869 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13870 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13871 LD="${LD-ld}_sol2"
13872 fi
13873 ;;
13874 *)
13875 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13876 LD="${LD-ld} -64"
13877 fi
13878 ;;
13879 esac
13880 ;;
13881 esac
13882 fi
13883 rm -rf conftest*
13884 ;;
13885 esac
13886
13887 need_locks="$enable_libtool_lock"
13888
13889 if test -n "$ac_tool_prefix"; then
13890 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13891 set dummy ${ac_tool_prefix}mt; ac_word=$2
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13893 $as_echo_n "checking for $ac_word... " >&6; }
13894 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13895 $as_echo_n "(cached) " >&6
13896 else
13897 if test -n "$MANIFEST_TOOL"; then
13898 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13899 else
13900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13901 for as_dir in $PATH
13902 do
13903 IFS=$as_save_IFS
13904 test -z "$as_dir" && as_dir=.
13905 for ac_exec_ext in '' $ac_executable_extensions; do
13906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13907 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13909 break 2
13910 fi
13911 done
13912 done
13913 IFS=$as_save_IFS
13914
13915 fi
13916 fi
13917 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13918 if test -n "$MANIFEST_TOOL"; then
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13920 $as_echo "$MANIFEST_TOOL" >&6; }
13921 else
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13923 $as_echo "no" >&6; }
13924 fi
13925
13926
13927 fi
13928 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13929 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13930 # Extract the first word of "mt", so it can be a program name with args.
13931 set dummy mt; ac_word=$2
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13933 $as_echo_n "checking for $ac_word... " >&6; }
13934 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13935 $as_echo_n "(cached) " >&6
13936 else
13937 if test -n "$ac_ct_MANIFEST_TOOL"; then
13938 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13939 else
13940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13941 for as_dir in $PATH
13942 do
13943 IFS=$as_save_IFS
13944 test -z "$as_dir" && as_dir=.
13945 for ac_exec_ext in '' $ac_executable_extensions; do
13946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13947 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13949 break 2
13950 fi
13951 done
13952 done
13953 IFS=$as_save_IFS
13954
13955 fi
13956 fi
13957 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13958 if test -n "$ac_ct_MANIFEST_TOOL"; then
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13960 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13961 else
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13963 $as_echo "no" >&6; }
13964 fi
13965
13966 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13967 MANIFEST_TOOL=":"
13968 else
13969 case $cross_compiling:$ac_tool_warned in
13970 yes:)
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13973 ac_tool_warned=yes ;;
13974 esac
13975 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13976 fi
13977 else
13978 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13979 fi
13980
13981 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13983 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13984 if ${lt_cv_path_mainfest_tool+:} false; then :
13985 $as_echo_n "(cached) " >&6
13986 else
13987 lt_cv_path_mainfest_tool=no
13988 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13989 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13990 cat conftest.err >&5
13991 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13992 lt_cv_path_mainfest_tool=yes
13993 fi
13994 rm -f conftest*
13995 fi
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13997 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13998 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13999 MANIFEST_TOOL=:
14000 fi
14001
14002
14003
14004
14005
14006
14007 case $host_os in
14008 rhapsody* | darwin*)
14009 if test -n "$ac_tool_prefix"; then
14010 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14011 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14013 $as_echo_n "checking for $ac_word... " >&6; }
14014 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14015 $as_echo_n "(cached) " >&6
14016 else
14017 if test -n "$DSYMUTIL"; then
14018 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14019 else
14020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14021 for as_dir in $PATH
14022 do
14023 IFS=$as_save_IFS
14024 test -z "$as_dir" && as_dir=.
14025 for ac_exec_ext in '' $ac_executable_extensions; do
14026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14027 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14029 break 2
14030 fi
14031 done
14032 done
14033 IFS=$as_save_IFS
14034
14035 fi
14036 fi
14037 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14038 if test -n "$DSYMUTIL"; then
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14040 $as_echo "$DSYMUTIL" >&6; }
14041 else
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14043 $as_echo "no" >&6; }
14044 fi
14045
14046
14047 fi
14048 if test -z "$ac_cv_prog_DSYMUTIL"; then
14049 ac_ct_DSYMUTIL=$DSYMUTIL
14050 # Extract the first word of "dsymutil", so it can be a program name with args.
14051 set dummy dsymutil; ac_word=$2
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14053 $as_echo_n "checking for $ac_word... " >&6; }
14054 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14055 $as_echo_n "(cached) " >&6
14056 else
14057 if test -n "$ac_ct_DSYMUTIL"; then
14058 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14059 else
14060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14061 for as_dir in $PATH
14062 do
14063 IFS=$as_save_IFS
14064 test -z "$as_dir" && as_dir=.
14065 for ac_exec_ext in '' $ac_executable_extensions; do
14066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14067 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14069 break 2
14070 fi
14071 done
14072 done
14073 IFS=$as_save_IFS
14074
14075 fi
14076 fi
14077 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14078 if test -n "$ac_ct_DSYMUTIL"; then
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14080 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14081 else
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14083 $as_echo "no" >&6; }
14084 fi
14085
14086 if test "x$ac_ct_DSYMUTIL" = x; then
14087 DSYMUTIL=":"
14088 else
14089 case $cross_compiling:$ac_tool_warned in
14090 yes:)
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14093 ac_tool_warned=yes ;;
14094 esac
14095 DSYMUTIL=$ac_ct_DSYMUTIL
14096 fi
14097 else
14098 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14099 fi
14100
14101 if test -n "$ac_tool_prefix"; then
14102 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14103 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14105 $as_echo_n "checking for $ac_word... " >&6; }
14106 if ${ac_cv_prog_NMEDIT+:} false; then :
14107 $as_echo_n "(cached) " >&6
14108 else
14109 if test -n "$NMEDIT"; then
14110 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14111 else
14112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14113 for as_dir in $PATH
14114 do
14115 IFS=$as_save_IFS
14116 test -z "$as_dir" && as_dir=.
14117 for ac_exec_ext in '' $ac_executable_extensions; do
14118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14119 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14121 break 2
14122 fi
14123 done
14124 done
14125 IFS=$as_save_IFS
14126
14127 fi
14128 fi
14129 NMEDIT=$ac_cv_prog_NMEDIT
14130 if test -n "$NMEDIT"; then
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14132 $as_echo "$NMEDIT" >&6; }
14133 else
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14135 $as_echo "no" >&6; }
14136 fi
14137
14138
14139 fi
14140 if test -z "$ac_cv_prog_NMEDIT"; then
14141 ac_ct_NMEDIT=$NMEDIT
14142 # Extract the first word of "nmedit", so it can be a program name with args.
14143 set dummy nmedit; ac_word=$2
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14145 $as_echo_n "checking for $ac_word... " >&6; }
14146 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14147 $as_echo_n "(cached) " >&6
14148 else
14149 if test -n "$ac_ct_NMEDIT"; then
14150 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14151 else
14152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14153 for as_dir in $PATH
14154 do
14155 IFS=$as_save_IFS
14156 test -z "$as_dir" && as_dir=.
14157 for ac_exec_ext in '' $ac_executable_extensions; do
14158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14159 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14161 break 2
14162 fi
14163 done
14164 done
14165 IFS=$as_save_IFS
14166
14167 fi
14168 fi
14169 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14170 if test -n "$ac_ct_NMEDIT"; then
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14172 $as_echo "$ac_ct_NMEDIT" >&6; }
14173 else
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14175 $as_echo "no" >&6; }
14176 fi
14177
14178 if test "x$ac_ct_NMEDIT" = x; then
14179 NMEDIT=":"
14180 else
14181 case $cross_compiling:$ac_tool_warned in
14182 yes:)
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14185 ac_tool_warned=yes ;;
14186 esac
14187 NMEDIT=$ac_ct_NMEDIT
14188 fi
14189 else
14190 NMEDIT="$ac_cv_prog_NMEDIT"
14191 fi
14192
14193 if test -n "$ac_tool_prefix"; then
14194 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14195 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14197 $as_echo_n "checking for $ac_word... " >&6; }
14198 if ${ac_cv_prog_LIPO+:} false; then :
14199 $as_echo_n "(cached) " >&6
14200 else
14201 if test -n "$LIPO"; then
14202 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14203 else
14204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14205 for as_dir in $PATH
14206 do
14207 IFS=$as_save_IFS
14208 test -z "$as_dir" && as_dir=.
14209 for ac_exec_ext in '' $ac_executable_extensions; do
14210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14211 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14213 break 2
14214 fi
14215 done
14216 done
14217 IFS=$as_save_IFS
14218
14219 fi
14220 fi
14221 LIPO=$ac_cv_prog_LIPO
14222 if test -n "$LIPO"; then
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14224 $as_echo "$LIPO" >&6; }
14225 else
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14227 $as_echo "no" >&6; }
14228 fi
14229
14230
14231 fi
14232 if test -z "$ac_cv_prog_LIPO"; then
14233 ac_ct_LIPO=$LIPO
14234 # Extract the first word of "lipo", so it can be a program name with args.
14235 set dummy lipo; ac_word=$2
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14237 $as_echo_n "checking for $ac_word... " >&6; }
14238 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14239 $as_echo_n "(cached) " >&6
14240 else
14241 if test -n "$ac_ct_LIPO"; then
14242 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14243 else
14244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14245 for as_dir in $PATH
14246 do
14247 IFS=$as_save_IFS
14248 test -z "$as_dir" && as_dir=.
14249 for ac_exec_ext in '' $ac_executable_extensions; do
14250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14251 ac_cv_prog_ac_ct_LIPO="lipo"
14252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14253 break 2
14254 fi
14255 done
14256 done
14257 IFS=$as_save_IFS
14258
14259 fi
14260 fi
14261 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14262 if test -n "$ac_ct_LIPO"; then
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14264 $as_echo "$ac_ct_LIPO" >&6; }
14265 else
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14267 $as_echo "no" >&6; }
14268 fi
14269
14270 if test "x$ac_ct_LIPO" = x; then
14271 LIPO=":"
14272 else
14273 case $cross_compiling:$ac_tool_warned in
14274 yes:)
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14277 ac_tool_warned=yes ;;
14278 esac
14279 LIPO=$ac_ct_LIPO
14280 fi
14281 else
14282 LIPO="$ac_cv_prog_LIPO"
14283 fi
14284
14285 if test -n "$ac_tool_prefix"; then
14286 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14287 set dummy ${ac_tool_prefix}otool; ac_word=$2
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14289 $as_echo_n "checking for $ac_word... " >&6; }
14290 if ${ac_cv_prog_OTOOL+:} false; then :
14291 $as_echo_n "(cached) " >&6
14292 else
14293 if test -n "$OTOOL"; then
14294 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14295 else
14296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14297 for as_dir in $PATH
14298 do
14299 IFS=$as_save_IFS
14300 test -z "$as_dir" && as_dir=.
14301 for ac_exec_ext in '' $ac_executable_extensions; do
14302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14303 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14305 break 2
14306 fi
14307 done
14308 done
14309 IFS=$as_save_IFS
14310
14311 fi
14312 fi
14313 OTOOL=$ac_cv_prog_OTOOL
14314 if test -n "$OTOOL"; then
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14316 $as_echo "$OTOOL" >&6; }
14317 else
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14319 $as_echo "no" >&6; }
14320 fi
14321
14322
14323 fi
14324 if test -z "$ac_cv_prog_OTOOL"; then
14325 ac_ct_OTOOL=$OTOOL
14326 # Extract the first word of "otool", so it can be a program name with args.
14327 set dummy otool; ac_word=$2
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14329 $as_echo_n "checking for $ac_word... " >&6; }
14330 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14331 $as_echo_n "(cached) " >&6
14332 else
14333 if test -n "$ac_ct_OTOOL"; then
14334 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14335 else
14336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14337 for as_dir in $PATH
14338 do
14339 IFS=$as_save_IFS
14340 test -z "$as_dir" && as_dir=.
14341 for ac_exec_ext in '' $ac_executable_extensions; do
14342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14343 ac_cv_prog_ac_ct_OTOOL="otool"
14344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14345 break 2
14346 fi
14347 done
14348 done
14349 IFS=$as_save_IFS
14350
14351 fi
14352 fi
14353 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14354 if test -n "$ac_ct_OTOOL"; then
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14356 $as_echo "$ac_ct_OTOOL" >&6; }
14357 else
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14359 $as_echo "no" >&6; }
14360 fi
14361
14362 if test "x$ac_ct_OTOOL" = x; then
14363 OTOOL=":"
14364 else
14365 case $cross_compiling:$ac_tool_warned in
14366 yes:)
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14369 ac_tool_warned=yes ;;
14370 esac
14371 OTOOL=$ac_ct_OTOOL
14372 fi
14373 else
14374 OTOOL="$ac_cv_prog_OTOOL"
14375 fi
14376
14377 if test -n "$ac_tool_prefix"; then
14378 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14379 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14381 $as_echo_n "checking for $ac_word... " >&6; }
14382 if ${ac_cv_prog_OTOOL64+:} false; then :
14383 $as_echo_n "(cached) " >&6
14384 else
14385 if test -n "$OTOOL64"; then
14386 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14387 else
14388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14389 for as_dir in $PATH
14390 do
14391 IFS=$as_save_IFS
14392 test -z "$as_dir" && as_dir=.
14393 for ac_exec_ext in '' $ac_executable_extensions; do
14394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14395 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14397 break 2
14398 fi
14399 done
14400 done
14401 IFS=$as_save_IFS
14402
14403 fi
14404 fi
14405 OTOOL64=$ac_cv_prog_OTOOL64
14406 if test -n "$OTOOL64"; then
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14408 $as_echo "$OTOOL64" >&6; }
14409 else
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14411 $as_echo "no" >&6; }
14412 fi
14413
14414
14415 fi
14416 if test -z "$ac_cv_prog_OTOOL64"; then
14417 ac_ct_OTOOL64=$OTOOL64
14418 # Extract the first word of "otool64", so it can be a program name with args.
14419 set dummy otool64; ac_word=$2
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14421 $as_echo_n "checking for $ac_word... " >&6; }
14422 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14423 $as_echo_n "(cached) " >&6
14424 else
14425 if test -n "$ac_ct_OTOOL64"; then
14426 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14427 else
14428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14429 for as_dir in $PATH
14430 do
14431 IFS=$as_save_IFS
14432 test -z "$as_dir" && as_dir=.
14433 for ac_exec_ext in '' $ac_executable_extensions; do
14434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14435 ac_cv_prog_ac_ct_OTOOL64="otool64"
14436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14437 break 2
14438 fi
14439 done
14440 done
14441 IFS=$as_save_IFS
14442
14443 fi
14444 fi
14445 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14446 if test -n "$ac_ct_OTOOL64"; then
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14448 $as_echo "$ac_ct_OTOOL64" >&6; }
14449 else
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14451 $as_echo "no" >&6; }
14452 fi
14453
14454 if test "x$ac_ct_OTOOL64" = x; then
14455 OTOOL64=":"
14456 else
14457 case $cross_compiling:$ac_tool_warned in
14458 yes:)
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14461 ac_tool_warned=yes ;;
14462 esac
14463 OTOOL64=$ac_ct_OTOOL64
14464 fi
14465 else
14466 OTOOL64="$ac_cv_prog_OTOOL64"
14467 fi
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14496 $as_echo_n "checking for -single_module linker flag... " >&6; }
14497 if ${lt_cv_apple_cc_single_mod+:} false; then :
14498 $as_echo_n "(cached) " >&6
14499 else
14500 lt_cv_apple_cc_single_mod=no
14501 if test -z "${LT_MULTI_MODULE}"; then
14502 # By default we will add the -single_module flag. You can override
14503 # by either setting the environment variable LT_MULTI_MODULE
14504 # non-empty at configure time, or by adding -multi_module to the
14505 # link flags.
14506 rm -rf libconftest.dylib*
14507 echo "int foo(void){return 1;}" > conftest.c
14508 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14509 -dynamiclib -Wl,-single_module conftest.c" >&5
14510 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14511 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14512 _lt_result=$?
14513 # If there is a non-empty error log, and "single_module"
14514 # appears in it, assume the flag caused a linker warning
14515 if test -s conftest.err && $GREP single_module conftest.err; then
14516 cat conftest.err >&5
14517 # Otherwise, if the output was created with a 0 exit code from
14518 # the compiler, it worked.
14519 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
14520 lt_cv_apple_cc_single_mod=yes
14521 else
14522 cat conftest.err >&5
14523 fi
14524 rm -rf libconftest.dylib*
14525 rm -f conftest.*
14526 fi
14527 fi
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14529 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14530
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14532 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14533 if ${lt_cv_ld_exported_symbols_list+:} false; then :
14534 $as_echo_n "(cached) " >&6
14535 else
14536 lt_cv_ld_exported_symbols_list=no
14537 save_LDFLAGS=$LDFLAGS
14538 echo "_main" > conftest.sym
14539 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14542
14543 int
14544 main ()
14545 {
14546
14547 ;
14548 return 0;
14549 }
14550 _ACEOF
14551 if ac_fn_c_try_link "$LINENO"; then :
14552 lt_cv_ld_exported_symbols_list=yes
14553 else
14554 lt_cv_ld_exported_symbols_list=no
14555 fi
14556 rm -f core conftest.err conftest.$ac_objext \
14557 conftest$ac_exeext conftest.$ac_ext
14558 LDFLAGS="$save_LDFLAGS"
14559
14560 fi
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14562 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14563
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14565 $as_echo_n "checking for -force_load linker flag... " >&6; }
14566 if ${lt_cv_ld_force_load+:} false; then :
14567 $as_echo_n "(cached) " >&6
14568 else
14569 lt_cv_ld_force_load=no
14570 cat > conftest.c << _LT_EOF
14571 int forced_loaded() { return 2;}
14572 _LT_EOF
14573 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14574 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14575 echo "$AR cru libconftest.a conftest.o" >&5
14576 $AR cru libconftest.a conftest.o 2>&5
14577 echo "$RANLIB libconftest.a" >&5
14578 $RANLIB libconftest.a 2>&5
14579 cat > conftest.c << _LT_EOF
14580 int main() { return 0;}
14581 _LT_EOF
14582 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14583 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14584 _lt_result=$?
14585 if test -s conftest.err && $GREP force_load conftest.err; then
14586 cat conftest.err >&5
14587 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
14588 lt_cv_ld_force_load=yes
14589 else
14590 cat conftest.err >&5
14591 fi
14592 rm -f conftest.err libconftest.a conftest conftest.c
14593 rm -rf conftest.dSYM
14594
14595 fi
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14597 $as_echo "$lt_cv_ld_force_load" >&6; }
14598 case $host_os in
14599 rhapsody* | darwin1.[012])
14600 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14601 darwin1.*)
14602 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14603 darwin*) # darwin 5.x on
14604 # if running on 10.5 or later, the deployment target defaults
14605 # to the OS version, if on x86, and 10.4, the deployment
14606 # target defaults to 10.4. Don't you love it?
14607 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14608 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14609 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14610 10.[012]*)
14611 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14612 10.*)
14613 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14614 esac
14615 ;;
14616 esac
14617 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14618 _lt_dar_single_mod='$single_module'
14619 fi
14620 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14621 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14622 else
14623 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14624 fi
14625 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14626 _lt_dsymutil='~$DSYMUTIL $lib || :'
14627 else
14628 _lt_dsymutil=
14629 fi
14630 ;;
14631 esac
14632
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14634 $as_echo_n "checking for ANSI C header files... " >&6; }
14635 if ${ac_cv_header_stdc+:} false; then :
14636 $as_echo_n "(cached) " >&6
14637 else
14638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14639 /* end confdefs.h. */
14640 #include <stdlib.h>
14641 #include <stdarg.h>
14642 #include <string.h>
14643 #include <float.h>
14644
14645 int
14646 main ()
14647 {
14648
14649 ;
14650 return 0;
14651 }
14652 _ACEOF
14653 if ac_fn_c_try_compile "$LINENO"; then :
14654 ac_cv_header_stdc=yes
14655 else
14656 ac_cv_header_stdc=no
14657 fi
14658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14659
14660 if test $ac_cv_header_stdc = yes; then
14661 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14663 /* end confdefs.h. */
14664 #include <string.h>
14665
14666 _ACEOF
14667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14668 $EGREP "memchr" >/dev/null 2>&1; then :
14669
14670 else
14671 ac_cv_header_stdc=no
14672 fi
14673 rm -f conftest*
14674
14675 fi
14676
14677 if test $ac_cv_header_stdc = yes; then
14678 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14680 /* end confdefs.h. */
14681 #include <stdlib.h>
14682
14683 _ACEOF
14684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14685 $EGREP "free" >/dev/null 2>&1; then :
14686
14687 else
14688 ac_cv_header_stdc=no
14689 fi
14690 rm -f conftest*
14691
14692 fi
14693
14694 if test $ac_cv_header_stdc = yes; then
14695 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14696 if test "$cross_compiling" = yes; then :
14697 :
14698 else
14699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14700 /* end confdefs.h. */
14701 #include <ctype.h>
14702 #include <stdlib.h>
14703 #if ((' ' & 0x0FF) == 0x020)
14704 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14705 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14706 #else
14707 # define ISLOWER(c) \
14708 (('a' <= (c) && (c) <= 'i') \
14709 || ('j' <= (c) && (c) <= 'r') \
14710 || ('s' <= (c) && (c) <= 'z'))
14711 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14712 #endif
14713
14714 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14715 int
14716 main ()
14717 {
14718 int i;
14719 for (i = 0; i < 256; i++)
14720 if (XOR (islower (i), ISLOWER (i))
14721 || toupper (i) != TOUPPER (i))
14722 return 2;
14723 return 0;
14724 }
14725 _ACEOF
14726 if ac_fn_c_try_run "$LINENO"; then :
14727
14728 else
14729 ac_cv_header_stdc=no
14730 fi
14731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14732 conftest.$ac_objext conftest.beam conftest.$ac_ext
14733 fi
14734
14735 fi
14736 fi
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14738 $as_echo "$ac_cv_header_stdc" >&6; }
14739 if test $ac_cv_header_stdc = yes; then
14740
14741 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14742
14743 fi
14744
14745 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
14746 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
14747 inttypes.h stdint.h unistd.h
14748 do :
14749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14750 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14751 "
14752 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14753 cat >>confdefs.h <<_ACEOF
14754 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14755 _ACEOF
14756
14757 fi
14758
14759 done
14760
14761
14762 for ac_header in dlfcn.h
14763 do :
14764 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14765 "
14766 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14767 cat >>confdefs.h <<_ACEOF
14768 #define HAVE_DLFCN_H 1
14769 _ACEOF
14770
14771 fi
14772
14773 done
14774
14775
14776
14777
14778 func_stripname_cnf ()
14779 {
14780 case ${2} in
14781 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14782 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14783 esac
14784 } # func_stripname_cnf
14785
14786
14787
14788
14789
14790
14791 # Set options
14792
14793
14794
14795 enable_dlopen=no
14796
14797
14798
14799 # Check whether --enable-shared was given.
14800 if test "${enable_shared+set}" = set; then :
14801 enableval=$enable_shared; p=${PACKAGE-default}
14802 case $enableval in
14803 yes) enable_shared=yes ;;
14804 no) enable_shared=no ;;
14805 *)
14806 enable_shared=no
14807 # Look at the argument we got. We use all the common list separators.
14808 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14809 for pkg in $enableval; do
14810 IFS="$lt_save_ifs"
14811 if test "X$pkg" = "X$p"; then
14812 enable_shared=yes
14813 fi
14814 done
14815 IFS="$lt_save_ifs"
14816 ;;
14817 esac
14818 else
14819 enable_shared=yes
14820 fi
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830 # Check whether --enable-static was given.
14831 if test "${enable_static+set}" = set; then :
14832 enableval=$enable_static; p=${PACKAGE-default}
14833 case $enableval in
14834 yes) enable_static=yes ;;
14835 no) enable_static=no ;;
14836 *)
14837 enable_static=no
14838 # Look at the argument we got. We use all the common list separators.
14839 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14840 for pkg in $enableval; do
14841 IFS="$lt_save_ifs"
14842 if test "X$pkg" = "X$p"; then
14843 enable_static=yes
14844 fi
14845 done
14846 IFS="$lt_save_ifs"
14847 ;;
14848 esac
14849 else
14850 enable_static=yes
14851 fi
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862 # Check whether --with-pic was given.
14863 if test "${with_pic+set}" = set; then :
14864 withval=$with_pic; lt_p=${PACKAGE-default}
14865 case $withval in
14866 yes|no) pic_mode=$withval ;;
14867 *)
14868 pic_mode=default
14869 # Look at the argument we got. We use all the common list separators.
14870 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14871 for lt_pkg in $withval; do
14872 IFS="$lt_save_ifs"
14873 if test "X$lt_pkg" = "X$lt_p"; then
14874 pic_mode=yes
14875 fi
14876 done
14877 IFS="$lt_save_ifs"
14878 ;;
14879 esac
14880 else
14881 pic_mode=default
14882 fi
14883
14884
14885 test -z "$pic_mode" && pic_mode=default
14886
14887
14888
14889
14890
14891
14892
14893 # Check whether --enable-fast-install was given.
14894 if test "${enable_fast_install+set}" = set; then :
14895 enableval=$enable_fast_install; p=${PACKAGE-default}
14896 case $enableval in
14897 yes) enable_fast_install=yes ;;
14898 no) enable_fast_install=no ;;
14899 *)
14900 enable_fast_install=no
14901 # Look at the argument we got. We use all the common list separators.
14902 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14903 for pkg in $enableval; do
14904 IFS="$lt_save_ifs"
14905 if test "X$pkg" = "X$p"; then
14906 enable_fast_install=yes
14907 fi
14908 done
14909 IFS="$lt_save_ifs"
14910 ;;
14911 esac
14912 else
14913 enable_fast_install=yes
14914 fi
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926 # This can be used to rebuild libtool when needed
14927 LIBTOOL_DEPS="$ltmain"
14928
14929 # Always use our own libtool.
14930 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961 test -z "$LN_S" && LN_S="ln -s"
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976 if test -n "${ZSH_VERSION+set}" ; then
14977 setopt NO_GLOB_SUBST
14978 fi
14979
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14981 $as_echo_n "checking for objdir... " >&6; }
14982 if ${lt_cv_objdir+:} false; then :
14983 $as_echo_n "(cached) " >&6
14984 else
14985 rm -f .libs 2>/dev/null
14986 mkdir .libs 2>/dev/null
14987 if test -d .libs; then
14988 lt_cv_objdir=.libs
14989 else
14990 # MS-DOS does not allow filenames that begin with a dot.
14991 lt_cv_objdir=_libs
14992 fi
14993 rmdir .libs 2>/dev/null
14994 fi
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14996 $as_echo "$lt_cv_objdir" >&6; }
14997 objdir=$lt_cv_objdir
14998
14999
15000
15001
15002
15003 cat >>confdefs.h <<_ACEOF
15004 #define LT_OBJDIR "$lt_cv_objdir/"
15005 _ACEOF
15006
15007
15008
15009
15010 case $host_os in
15011 aix3*)
15012 # AIX sometimes has problems with the GCC collect2 program. For some
15013 # reason, if we set the COLLECT_NAMES environment variable, the problems
15014 # vanish in a puff of smoke.
15015 if test "X${COLLECT_NAMES+set}" != Xset; then
15016 COLLECT_NAMES=
15017 export COLLECT_NAMES
15018 fi
15019 ;;
15020 esac
15021
15022 # Global variables:
15023 ofile=libtool
15024 can_build_shared=yes
15025
15026 # All known linkers require a `.a' archive for static linking (except MSVC,
15027 # which needs '.lib').
15028 libext=a
15029
15030 with_gnu_ld="$lt_cv_prog_gnu_ld"
15031
15032 old_CC="$CC"
15033 old_CFLAGS="$CFLAGS"
15034
15035 # Set sane defaults for various variables
15036 test -z "$CC" && CC=cc
15037 test -z "$LTCC" && LTCC=$CC
15038 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15039 test -z "$LD" && LD=ld
15040 test -z "$ac_objext" && ac_objext=o
15041
15042 for cc_temp in $compiler""; do
15043 case $cc_temp in
15044 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15045 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15046 \-*) ;;
15047 *) break;;
15048 esac
15049 done
15050 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15051
15052
15053 # Only perform the check for file, if the check method requires it
15054 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15055 case $deplibs_check_method in
15056 file_magic*)
15057 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15059 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15060 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15061 $as_echo_n "(cached) " >&6
15062 else
15063 case $MAGIC_CMD in
15064 [\\/*] | ?:[\\/]*)
15065 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15066 ;;
15067 *)
15068 lt_save_MAGIC_CMD="$MAGIC_CMD"
15069 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15070 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15071 for ac_dir in $ac_dummy; do
15072 IFS="$lt_save_ifs"
15073 test -z "$ac_dir" && ac_dir=.
15074 if test -f $ac_dir/${ac_tool_prefix}file; then
15075 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15076 if test -n "$file_magic_test_file"; then
15077 case $deplibs_check_method in
15078 "file_magic "*)
15079 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15080 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15081 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15082 $EGREP "$file_magic_regex" > /dev/null; then
15083 :
15084 else
15085 cat <<_LT_EOF 1>&2
15086
15087 *** Warning: the command libtool uses to detect shared libraries,
15088 *** $file_magic_cmd, produces output that libtool cannot recognize.
15089 *** The result is that libtool may fail to recognize shared libraries
15090 *** as such. This will affect the creation of libtool libraries that
15091 *** depend on shared libraries, but programs linked with such libtool
15092 *** libraries will work regardless of this problem. Nevertheless, you
15093 *** may want to report the problem to your system manager and/or to
15094 *** bug-libtool (at] gnu.org
15095
15096 _LT_EOF
15097 fi ;;
15098 esac
15099 fi
15100 break
15101 fi
15102 done
15103 IFS="$lt_save_ifs"
15104 MAGIC_CMD="$lt_save_MAGIC_CMD"
15105 ;;
15106 esac
15107 fi
15108
15109 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15110 if test -n "$MAGIC_CMD"; then
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15112 $as_echo "$MAGIC_CMD" >&6; }
15113 else
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15115 $as_echo "no" >&6; }
15116 fi
15117
15118
15119
15120
15121
15122 if test -z "$lt_cv_path_MAGIC_CMD"; then
15123 if test -n "$ac_tool_prefix"; then
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15125 $as_echo_n "checking for file... " >&6; }
15126 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15127 $as_echo_n "(cached) " >&6
15128 else
15129 case $MAGIC_CMD in
15130 [\\/*] | ?:[\\/]*)
15131 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15132 ;;
15133 *)
15134 lt_save_MAGIC_CMD="$MAGIC_CMD"
15135 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15136 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15137 for ac_dir in $ac_dummy; do
15138 IFS="$lt_save_ifs"
15139 test -z "$ac_dir" && ac_dir=.
15140 if test -f $ac_dir/file; then
15141 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15142 if test -n "$file_magic_test_file"; then
15143 case $deplibs_check_method in
15144 "file_magic "*)
15145 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15146 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15147 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15148 $EGREP "$file_magic_regex" > /dev/null; then
15149 :
15150 else
15151 cat <<_LT_EOF 1>&2
15152
15153 *** Warning: the command libtool uses to detect shared libraries,
15154 *** $file_magic_cmd, produces output that libtool cannot recognize.
15155 *** The result is that libtool may fail to recognize shared libraries
15156 *** as such. This will affect the creation of libtool libraries that
15157 *** depend on shared libraries, but programs linked with such libtool
15158 *** libraries will work regardless of this problem. Nevertheless, you
15159 *** may want to report the problem to your system manager and/or to
15160 *** bug-libtool (at] gnu.org
15161
15162 _LT_EOF
15163 fi ;;
15164 esac
15165 fi
15166 break
15167 fi
15168 done
15169 IFS="$lt_save_ifs"
15170 MAGIC_CMD="$lt_save_MAGIC_CMD"
15171 ;;
15172 esac
15173 fi
15174
15175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15176 if test -n "$MAGIC_CMD"; then
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15178 $as_echo "$MAGIC_CMD" >&6; }
15179 else
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15181 $as_echo "no" >&6; }
15182 fi
15183
15184
15185 else
15186 MAGIC_CMD=:
15187 fi
15188 fi
15189
15190 fi
15191 ;;
15192 esac
15193
15194 # Use C for the default configuration in the libtool script
15195
15196 lt_save_CC="$CC"
15197 ac_ext=c
15198 ac_cpp='$CPP $CPPFLAGS'
15199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15202
15203
15204 # Source file extension for C test sources.
15205 ac_ext=c
15206
15207 # Object file extension for compiled C test sources.
15208 objext=o
15209 objext=$objext
15210
15211 # Code to be used in simple compile tests
15212 lt_simple_compile_test_code="int some_variable = 0;"
15213
15214 # Code to be used in simple link tests
15215 lt_simple_link_test_code='int main(){return(0);}'
15216
15217
15218
15219
15220
15221
15222
15223 # If no C compiler was specified, use CC.
15224 LTCC=${LTCC-"$CC"}
15225
15226 # If no C compiler flags were specified, use CFLAGS.
15227 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15228
15229 # Allow CC to be a program name with arguments.
15230 compiler=$CC
15231
15232 # Save the default compiler, since it gets overwritten when the other
15233 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15234 compiler_DEFAULT=$CC
15235
15236 # save warnings/boilerplate of simple test code
15237 ac_outfile=conftest.$ac_objext
15238 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15239 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15240 _lt_compiler_boilerplate=`cat conftest.err`
15241 $RM conftest*
15242
15243 ac_outfile=conftest.$ac_objext
15244 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15245 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15246 _lt_linker_boilerplate=`cat conftest.err`
15247 $RM -r conftest*
15248
15249
15250 if test -n "$compiler"; then
15251
15252 lt_prog_compiler_no_builtin_flag=
15253
15254 if test "$GCC" = yes; then
15255 case $cc_basename in
15256 nvcc*)
15257 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15258 *)
15259 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15260 esac
15261
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15263 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15264 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15265 $as_echo_n "(cached) " >&6
15266 else
15267 lt_cv_prog_compiler_rtti_exceptions=no
15268 ac_outfile=conftest.$ac_objext
15269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15270 lt_compiler_flag="-fno-rtti -fno-exceptions"
15271 # Insert the option either (1) after the last *FLAGS variable, or
15272 # (2) before a word containing "conftest.", or (3) at the end.
15273 # Note that $ac_compile itself does not contain backslashes and begins
15274 # with a dollar sign (not a hyphen), so the echo should work correctly.
15275 # The option is referenced via a variable to avoid confusing sed.
15276 lt_compile=`echo "$ac_compile" | $SED \
15277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15279 -e 's:$: $lt_compiler_flag:'`
15280 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15281 (eval "$lt_compile" 2>conftest.err)
15282 ac_status=$?
15283 cat conftest.err >&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 if (exit $ac_status) && test -s "$ac_outfile"; then
15286 # The compiler can only warn and ignore the option if not recognized
15287 # So say no if there are warnings other than the usual output.
15288 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15289 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15290 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15291 lt_cv_prog_compiler_rtti_exceptions=yes
15292 fi
15293 fi
15294 $RM conftest*
15295
15296 fi
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15298 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15299
15300 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15301 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15302 else
15303 :
15304 fi
15305
15306 fi
15307
15308
15309
15310
15311
15312
15313 lt_prog_compiler_wl=
15314 lt_prog_compiler_pic=
15315 lt_prog_compiler_static=
15316
15317
15318 if test "$GCC" = yes; then
15319 lt_prog_compiler_wl='-Wl,'
15320 lt_prog_compiler_static='-static'
15321
15322 case $host_os in
15323 aix*)
15324 # All AIX code is PIC.
15325 if test "$host_cpu" = ia64; then
15326 # AIX 5 now supports IA64 processor
15327 lt_prog_compiler_static='-Bstatic'
15328 fi
15329 ;;
15330
15331 amigaos*)
15332 case $host_cpu in
15333 powerpc)
15334 # see comment about AmigaOS4 .so support
15335 lt_prog_compiler_pic='-fPIC'
15336 ;;
15337 m68k)
15338 # FIXME: we need at least 68020 code to build shared libraries, but
15339 # adding the `-m68020' flag to GCC prevents building anything better,
15340 # like `-m68040'.
15341 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15342 ;;
15343 esac
15344 ;;
15345
15346 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15347 # PIC is the default for these OSes.
15348 ;;
15349
15350 mingw* | cygwin* | pw32* | os2* | cegcc*)
15351 # This hack is so that the source file can tell whether it is being
15352 # built for inclusion in a dll (and should export symbols for example).
15353 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15354 # (--disable-auto-import) libraries
15355 lt_prog_compiler_pic='-DDLL_EXPORT'
15356 ;;
15357
15358 darwin* | rhapsody*)
15359 # PIC is the default on this platform
15360 # Common symbols not allowed in MH_DYLIB files
15361 lt_prog_compiler_pic='-fno-common'
15362 ;;
15363
15364 haiku*)
15365 # PIC is the default for Haiku.
15366 # The "-static" flag exists, but is broken.
15367 lt_prog_compiler_static=
15368 ;;
15369
15370 hpux*)
15371 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15372 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15373 # sets the default TLS model and affects inlining.
15374 case $host_cpu in
15375 hppa*64*)
15376 # +Z the default
15377 ;;
15378 *)
15379 lt_prog_compiler_pic='-fPIC'
15380 ;;
15381 esac
15382 ;;
15383
15384 interix[3-9]*)
15385 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15386 # Instead, we relocate shared libraries at runtime.
15387 ;;
15388
15389 msdosdjgpp*)
15390 # Just because we use GCC doesn't mean we suddenly get shared libraries
15391 # on systems that don't support them.
15392 lt_prog_compiler_can_build_shared=no
15393 enable_shared=no
15394 ;;
15395
15396 *nto* | *qnx*)
15397 # QNX uses GNU C++, but need to define -shared option too, otherwise
15398 # it will coredump.
15399 lt_prog_compiler_pic='-fPIC -shared'
15400 ;;
15401
15402 sysv4*MP*)
15403 if test -d /usr/nec; then
15404 lt_prog_compiler_pic=-Kconform_pic
15405 fi
15406 ;;
15407
15408 *)
15409 lt_prog_compiler_pic='-fPIC'
15410 ;;
15411 esac
15412
15413 case $cc_basename in
15414 nvcc*) # Cuda Compiler Driver 2.2
15415 lt_prog_compiler_wl='-Xlinker '
15416 if test -n "$lt_prog_compiler_pic"; then
15417 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15418 fi
15419 ;;
15420 esac
15421 else
15422 # PORTME Check for flag to pass linker flags through the system compiler.
15423 case $host_os in
15424 aix*)
15425 lt_prog_compiler_wl='-Wl,'
15426 if test "$host_cpu" = ia64; then
15427 # AIX 5 now supports IA64 processor
15428 lt_prog_compiler_static='-Bstatic'
15429 else
15430 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15431 fi
15432 ;;
15433
15434 mingw* | cygwin* | pw32* | os2* | cegcc*)
15435 # This hack is so that the source file can tell whether it is being
15436 # built for inclusion in a dll (and should export symbols for example).
15437 lt_prog_compiler_pic='-DDLL_EXPORT'
15438 ;;
15439
15440 hpux9* | hpux10* | hpux11*)
15441 lt_prog_compiler_wl='-Wl,'
15442 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15443 # not for PA HP-UX.
15444 case $host_cpu in
15445 hppa*64*|ia64*)
15446 # +Z the default
15447 ;;
15448 *)
15449 lt_prog_compiler_pic='+Z'
15450 ;;
15451 esac
15452 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15453 lt_prog_compiler_static='${wl}-a ${wl}archive'
15454 ;;
15455
15456 irix5* | irix6* | nonstopux*)
15457 lt_prog_compiler_wl='-Wl,'
15458 # PIC (with -KPIC) is the default.
15459 lt_prog_compiler_static='-non_shared'
15460 ;;
15461
15462 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15463 case $cc_basename in
15464 # old Intel for x86_64 which still supported -KPIC.
15465 ecc*)
15466 lt_prog_compiler_wl='-Wl,'
15467 lt_prog_compiler_pic='-KPIC'
15468 lt_prog_compiler_static='-static'
15469 ;;
15470 # icc used to be incompatible with GCC.
15471 # ICC 10 doesn't accept -KPIC any more.
15472 icc* | ifort*)
15473 lt_prog_compiler_wl='-Wl,'
15474 lt_prog_compiler_pic='-fPIC'
15475 lt_prog_compiler_static='-static'
15476 ;;
15477 # Lahey Fortran 8.1.
15478 lf95*)
15479 lt_prog_compiler_wl='-Wl,'
15480 lt_prog_compiler_pic='--shared'
15481 lt_prog_compiler_static='--static'
15482 ;;
15483 nagfor*)
15484 # NAG Fortran compiler
15485 lt_prog_compiler_wl='-Wl,-Wl,,'
15486 lt_prog_compiler_pic='-PIC'
15487 lt_prog_compiler_static='-Bstatic'
15488 ;;
15489 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15490 # Portland Group compilers (*not* the Pentium gcc compiler,
15491 # which looks to be a dead project)
15492 lt_prog_compiler_wl='-Wl,'
15493 lt_prog_compiler_pic='-fpic'
15494 lt_prog_compiler_static='-Bstatic'
15495 ;;
15496 ccc*)
15497 lt_prog_compiler_wl='-Wl,'
15498 # All Alpha code is PIC.
15499 lt_prog_compiler_static='-non_shared'
15500 ;;
15501 xl* | bgxl* | bgf* | mpixl*)
15502 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15503 lt_prog_compiler_wl='-Wl,'
15504 lt_prog_compiler_pic='-qpic'
15505 lt_prog_compiler_static='-qstaticlink'
15506 ;;
15507 *)
15508 case `$CC -V 2>&1 | sed 5q` in
15509 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15510 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15511 lt_prog_compiler_pic='-KPIC'
15512 lt_prog_compiler_static='-Bstatic'
15513 lt_prog_compiler_wl=''
15514 ;;
15515 *Sun\ F* | *Sun*Fortran*)
15516 lt_prog_compiler_pic='-KPIC'
15517 lt_prog_compiler_static='-Bstatic'
15518 lt_prog_compiler_wl='-Qoption ld '
15519 ;;
15520 *Sun\ C*)
15521 # Sun C 5.9
15522 lt_prog_compiler_pic='-KPIC'
15523 lt_prog_compiler_static='-Bstatic'
15524 lt_prog_compiler_wl='-Wl,'
15525 ;;
15526 *Intel*\ [CF]*Compiler*)
15527 lt_prog_compiler_wl='-Wl,'
15528 lt_prog_compiler_pic='-fPIC'
15529 lt_prog_compiler_static='-static'
15530 ;;
15531 *Portland\ Group*)
15532 lt_prog_compiler_wl='-Wl,'
15533 lt_prog_compiler_pic='-fpic'
15534 lt_prog_compiler_static='-Bstatic'
15535 ;;
15536 esac
15537 ;;
15538 esac
15539 ;;
15540
15541 newsos6)
15542 lt_prog_compiler_pic='-KPIC'
15543 lt_prog_compiler_static='-Bstatic'
15544 ;;
15545
15546 *nto* | *qnx*)
15547 # QNX uses GNU C++, but need to define -shared option too, otherwise
15548 # it will coredump.
15549 lt_prog_compiler_pic='-fPIC -shared'
15550 ;;
15551
15552 osf3* | osf4* | osf5*)
15553 lt_prog_compiler_wl='-Wl,'
15554 # All OSF/1 code is PIC.
15555 lt_prog_compiler_static='-non_shared'
15556 ;;
15557
15558 rdos*)
15559 lt_prog_compiler_static='-non_shared'
15560 ;;
15561
15562 solaris*)
15563 lt_prog_compiler_pic='-KPIC'
15564 lt_prog_compiler_static='-Bstatic'
15565 case $cc_basename in
15566 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15567 lt_prog_compiler_wl='-Qoption ld ';;
15568 *)
15569 lt_prog_compiler_wl='-Wl,';;
15570 esac
15571 ;;
15572
15573 sunos4*)
15574 lt_prog_compiler_wl='-Qoption ld '
15575 lt_prog_compiler_pic='-PIC'
15576 lt_prog_compiler_static='-Bstatic'
15577 ;;
15578
15579 sysv4 | sysv4.2uw2* | sysv4.3*)
15580 lt_prog_compiler_wl='-Wl,'
15581 lt_prog_compiler_pic='-KPIC'
15582 lt_prog_compiler_static='-Bstatic'
15583 ;;
15584
15585 sysv4*MP*)
15586 if test -d /usr/nec ;then
15587 lt_prog_compiler_pic='-Kconform_pic'
15588 lt_prog_compiler_static='-Bstatic'
15589 fi
15590 ;;
15591
15592 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15593 lt_prog_compiler_wl='-Wl,'
15594 lt_prog_compiler_pic='-KPIC'
15595 lt_prog_compiler_static='-Bstatic'
15596 ;;
15597
15598 unicos*)
15599 lt_prog_compiler_wl='-Wl,'
15600 lt_prog_compiler_can_build_shared=no
15601 ;;
15602
15603 uts4*)
15604 lt_prog_compiler_pic='-pic'
15605 lt_prog_compiler_static='-Bstatic'
15606 ;;
15607
15608 *)
15609 lt_prog_compiler_can_build_shared=no
15610 ;;
15611 esac
15612 fi
15613
15614 case $host_os in
15615 # For platforms which do not support PIC, -DPIC is meaningless:
15616 *djgpp*)
15617 lt_prog_compiler_pic=
15618 ;;
15619 *)
15620 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15621 ;;
15622 esac
15623
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15625 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15626 if ${lt_cv_prog_compiler_pic+:} false; then :
15627 $as_echo_n "(cached) " >&6
15628 else
15629 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15630 fi
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15632 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
15633 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15634
15635 #
15636 # Check to make sure the PIC flag actually works.
15637 #
15638 if test -n "$lt_prog_compiler_pic"; then
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15640 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15641 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15642 $as_echo_n "(cached) " >&6
15643 else
15644 lt_cv_prog_compiler_pic_works=no
15645 ac_outfile=conftest.$ac_objext
15646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15647 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15648 # Insert the option either (1) after the last *FLAGS variable, or
15649 # (2) before a word containing "conftest.", or (3) at the end.
15650 # Note that $ac_compile itself does not contain backslashes and begins
15651 # with a dollar sign (not a hyphen), so the echo should work correctly.
15652 # The option is referenced via a variable to avoid confusing sed.
15653 lt_compile=`echo "$ac_compile" | $SED \
15654 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15656 -e 's:$: $lt_compiler_flag:'`
15657 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15658 (eval "$lt_compile" 2>conftest.err)
15659 ac_status=$?
15660 cat conftest.err >&5
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 if (exit $ac_status) && test -s "$ac_outfile"; then
15663 # The compiler can only warn and ignore the option if not recognized
15664 # So say no if there are warnings other than the usual output.
15665 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15666 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15667 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15668 lt_cv_prog_compiler_pic_works=yes
15669 fi
15670 fi
15671 $RM conftest*
15672
15673 fi
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15675 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15676
15677 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15678 case $lt_prog_compiler_pic in
15679 "" | " "*) ;;
15680 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15681 esac
15682 else
15683 lt_prog_compiler_pic=
15684 lt_prog_compiler_can_build_shared=no
15685 fi
15686
15687 fi
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699 #
15700 # Check to make sure the static flag actually works.
15701 #
15702 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15704 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15705 if ${lt_cv_prog_compiler_static_works+:} false; then :
15706 $as_echo_n "(cached) " >&6
15707 else
15708 lt_cv_prog_compiler_static_works=no
15709 save_LDFLAGS="$LDFLAGS"
15710 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15711 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15712 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15713 # The linker can only warn and ignore the option if not recognized
15714 # So say no if there are warnings
15715 if test -s conftest.err; then
15716 # Append any errors to the config.log.
15717 cat conftest.err 1>&5
15718 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15720 if diff conftest.exp conftest.er2 >/dev/null; then
15721 lt_cv_prog_compiler_static_works=yes
15722 fi
15723 else
15724 lt_cv_prog_compiler_static_works=yes
15725 fi
15726 fi
15727 $RM -r conftest*
15728 LDFLAGS="$save_LDFLAGS"
15729
15730 fi
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15732 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15733
15734 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15735 :
15736 else
15737 lt_prog_compiler_static=
15738 fi
15739
15740
15741
15742
15743
15744
15745
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15747 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15748 if ${lt_cv_prog_compiler_c_o+:} false; then :
15749 $as_echo_n "(cached) " >&6
15750 else
15751 lt_cv_prog_compiler_c_o=no
15752 $RM -r conftest 2>/dev/null
15753 mkdir conftest
15754 cd conftest
15755 mkdir out
15756 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15757
15758 lt_compiler_flag="-o out/conftest2.$ac_objext"
15759 # Insert the option either (1) after the last *FLAGS variable, or
15760 # (2) before a word containing "conftest.", or (3) at the end.
15761 # Note that $ac_compile itself does not contain backslashes and begins
15762 # with a dollar sign (not a hyphen), so the echo should work correctly.
15763 lt_compile=`echo "$ac_compile" | $SED \
15764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15766 -e 's:$: $lt_compiler_flag:'`
15767 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15768 (eval "$lt_compile" 2>out/conftest.err)
15769 ac_status=$?
15770 cat out/conftest.err >&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15773 then
15774 # The compiler can only warn and ignore the option if not recognized
15775 # So say no if there are warnings
15776 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15777 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15778 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15779 lt_cv_prog_compiler_c_o=yes
15780 fi
15781 fi
15782 chmod u+w . 2>&5
15783 $RM conftest*
15784 # SGI C++ compiler will create directory out/ii_files/ for
15785 # template instantiation
15786 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15787 $RM out/* && rmdir out
15788 cd ..
15789 $RM -r conftest
15790 $RM conftest*
15791
15792 fi
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15794 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15795
15796
15797
15798
15799
15800
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15802 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15803 if ${lt_cv_prog_compiler_c_o+:} false; then :
15804 $as_echo_n "(cached) " >&6
15805 else
15806 lt_cv_prog_compiler_c_o=no
15807 $RM -r conftest 2>/dev/null
15808 mkdir conftest
15809 cd conftest
15810 mkdir out
15811 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15812
15813 lt_compiler_flag="-o out/conftest2.$ac_objext"
15814 # Insert the option either (1) after the last *FLAGS variable, or
15815 # (2) before a word containing "conftest.", or (3) at the end.
15816 # Note that $ac_compile itself does not contain backslashes and begins
15817 # with a dollar sign (not a hyphen), so the echo should work correctly.
15818 lt_compile=`echo "$ac_compile" | $SED \
15819 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15821 -e 's:$: $lt_compiler_flag:'`
15822 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15823 (eval "$lt_compile" 2>out/conftest.err)
15824 ac_status=$?
15825 cat out/conftest.err >&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15828 then
15829 # The compiler can only warn and ignore the option if not recognized
15830 # So say no if there are warnings
15831 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15832 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15833 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15834 lt_cv_prog_compiler_c_o=yes
15835 fi
15836 fi
15837 chmod u+w . 2>&5
15838 $RM conftest*
15839 # SGI C++ compiler will create directory out/ii_files/ for
15840 # template instantiation
15841 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15842 $RM out/* && rmdir out
15843 cd ..
15844 $RM -r conftest
15845 $RM conftest*
15846
15847 fi
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15849 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15850
15851
15852
15853
15854 hard_links="nottested"
15855 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15856 # do not overwrite the value of need_locks provided by the user
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15858 $as_echo_n "checking if we can lock with hard links... " >&6; }
15859 hard_links=yes
15860 $RM conftest*
15861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15862 touch conftest.a
15863 ln conftest.a conftest.b 2>&5 || hard_links=no
15864 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15866 $as_echo "$hard_links" >&6; }
15867 if test "$hard_links" = no; then
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15869 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15870 need_locks=warn
15871 fi
15872 else
15873 need_locks=no
15874 fi
15875
15876
15877
15878
15879
15880
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15882 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15883
15884 runpath_var=
15885 allow_undefined_flag=
15886 always_export_symbols=no
15887 archive_cmds=
15888 archive_expsym_cmds=
15889 compiler_needs_object=no
15890 enable_shared_with_static_runtimes=no
15891 export_dynamic_flag_spec=
15892 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15893 hardcode_automatic=no
15894 hardcode_direct=no
15895 hardcode_direct_absolute=no
15896 hardcode_libdir_flag_spec=
15897 hardcode_libdir_separator=
15898 hardcode_minus_L=no
15899 hardcode_shlibpath_var=unsupported
15900 inherit_rpath=no
15901 link_all_deplibs=unknown
15902 module_cmds=
15903 module_expsym_cmds=
15904 old_archive_from_new_cmds=
15905 old_archive_from_expsyms_cmds=
15906 thread_safe_flag_spec=
15907 whole_archive_flag_spec=
15908 # include_expsyms should be a list of space-separated symbols to be *always*
15909 # included in the symbol list
15910 include_expsyms=
15911 # exclude_expsyms can be an extended regexp of symbols to exclude
15912 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15913 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15914 # as well as any symbol that contains `d'.
15915 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15916 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15917 # platforms (ab)use it in PIC code, but their linkers get confused if
15918 # the symbol is explicitly referenced. Since portable code cannot
15919 # rely on this symbol name, it's probably fine to never include it in
15920 # preloaded symbol tables.
15921 # Exclude shared library initialization/finalization symbols.
15922 extract_expsyms_cmds=
15923
15924 case $host_os in
15925 cygwin* | mingw* | pw32* | cegcc*)
15926 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15927 # When not using gcc, we currently assume that we are using
15928 # Microsoft Visual C++.
15929 if test "$GCC" != yes; then
15930 with_gnu_ld=no
15931 fi
15932 ;;
15933 interix*)
15934 # we just hope/assume this is gcc and not c89 (= MSVC++)
15935 with_gnu_ld=yes
15936 ;;
15937 openbsd*)
15938 with_gnu_ld=no
15939 ;;
15940 esac
15941
15942 ld_shlibs=yes
15943
15944 # On some targets, GNU ld is compatible enough with the native linker
15945 # that we're better off using the native interface for both.
15946 lt_use_gnu_ld_interface=no
15947 if test "$with_gnu_ld" = yes; then
15948 case $host_os in
15949 aix*)
15950 # The AIX port of GNU ld has always aspired to compatibility
15951 # with the native linker. However, as the warning in the GNU ld
15952 # block says, versions before 2.19.5* couldn't really create working
15953 # shared libraries, regardless of the interface used.
15954 case `$LD -v 2>&1` in
15955 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15956 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15957 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15958 *)
15959 lt_use_gnu_ld_interface=yes
15960 ;;
15961 esac
15962 ;;
15963 *)
15964 lt_use_gnu_ld_interface=yes
15965 ;;
15966 esac
15967 fi
15968
15969 if test "$lt_use_gnu_ld_interface" = yes; then
15970 # If archive_cmds runs LD, not CC, wlarc should be empty
15971 wlarc='${wl}'
15972
15973 # Set some defaults for GNU ld with shared library support. These
15974 # are reset later if shared libraries are not supported. Putting them
15975 # here allows them to be overridden if necessary.
15976 runpath_var=LD_RUN_PATH
15977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15978 export_dynamic_flag_spec='${wl}--export-dynamic'
15979 # ancient GNU ld didn't support --whole-archive et. al.
15980 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15981 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15982 else
15983 whole_archive_flag_spec=
15984 fi
15985 supports_anon_versioning=no
15986 case `$LD -v 2>&1` in
15987 *GNU\ gold*) supports_anon_versioning=yes ;;
15988 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15989 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15990 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15991 *\ 2.11.*) ;; # other 2.11 versions
15992 *) supports_anon_versioning=yes ;;
15993 esac
15994
15995 # See if GNU ld supports shared libraries.
15996 case $host_os in
15997 aix[3-9]*)
15998 # On AIX/PPC, the GNU linker is very broken
15999 if test "$host_cpu" != ia64; then
16000 ld_shlibs=no
16001 cat <<_LT_EOF 1>&2
16002
16003 *** Warning: the GNU linker, at least up to release 2.19, is reported
16004 *** to be unable to reliably create shared libraries on AIX.
16005 *** Therefore, libtool is disabling shared libraries support. If you
16006 *** really care for shared libraries, you may want to install binutils
16007 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16008 *** You will then need to restart the configuration process.
16009
16010 _LT_EOF
16011 fi
16012 ;;
16013
16014 amigaos*)
16015 case $host_cpu in
16016 powerpc)
16017 # see comment about AmigaOS4 .so support
16018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16019 archive_expsym_cmds=''
16020 ;;
16021 m68k)
16022 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)'
16023 hardcode_libdir_flag_spec='-L$libdir'
16024 hardcode_minus_L=yes
16025 ;;
16026 esac
16027 ;;
16028
16029 beos*)
16030 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16031 allow_undefined_flag=unsupported
16032 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16033 # support --undefined. This deserves some investigation. FIXME
16034 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16035 else
16036 ld_shlibs=no
16037 fi
16038 ;;
16039
16040 cygwin* | mingw* | pw32* | cegcc*)
16041 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16042 # as there is no search path for DLLs.
16043 hardcode_libdir_flag_spec='-L$libdir'
16044 export_dynamic_flag_spec='${wl}--export-all-symbols'
16045 allow_undefined_flag=unsupported
16046 always_export_symbols=no
16047 enable_shared_with_static_runtimes=yes
16048 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'
16049 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16050
16051 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16052 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16053 # If the export-symbols file already is a .def file (1st line
16054 # is EXPORTS), use it as is; otherwise, prepend...
16055 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16056 cp $export_symbols $output_objdir/$soname.def;
16057 else
16058 echo EXPORTS > $output_objdir/$soname.def;
16059 cat $export_symbols >> $output_objdir/$soname.def;
16060 fi~
16061 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16062 else
16063 ld_shlibs=no
16064 fi
16065 ;;
16066
16067 haiku*)
16068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16069 link_all_deplibs=yes
16070 ;;
16071
16072 interix[3-9]*)
16073 hardcode_direct=no
16074 hardcode_shlibpath_var=no
16075 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16076 export_dynamic_flag_spec='${wl}-E'
16077 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16078 # Instead, shared libraries are loaded at an image base (0x10000000 by
16079 # default) and relocated if they conflict, which is a slow very memory
16080 # consuming and fragmenting process. To avoid this, we pick a random,
16081 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16082 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16083 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16084 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'
16085 ;;
16086
16087 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16088 tmp_diet=no
16089 if test "$host_os" = linux-dietlibc; then
16090 case $cc_basename in
16091 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16092 esac
16093 fi
16094 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16095 && test "$tmp_diet" = no
16096 then
16097 tmp_addflag=' $pic_flag'
16098 tmp_sharedflag='-shared'
16099 case $cc_basename,$host_cpu in
16100 pgcc*) # Portland Group C compiler
16101 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'
16102 tmp_addflag=' $pic_flag'
16103 ;;
16104 pgf77* | pgf90* | pgf95* | pgfortran*)
16105 # Portland Group f77 and f90 compilers
16106 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'
16107 tmp_addflag=' $pic_flag -Mnomain' ;;
16108 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16109 tmp_addflag=' -i_dynamic' ;;
16110 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16111 tmp_addflag=' -i_dynamic -nofor_main' ;;
16112 ifc* | ifort*) # Intel Fortran compiler
16113 tmp_addflag=' -nofor_main' ;;
16114 lf95*) # Lahey Fortran 8.1
16115 whole_archive_flag_spec=
16116 tmp_sharedflag='--shared' ;;
16117 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16118 tmp_sharedflag='-qmkshrobj'
16119 tmp_addflag= ;;
16120 nvcc*) # Cuda Compiler Driver 2.2
16121 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'
16122 compiler_needs_object=yes
16123 ;;
16124 esac
16125 case `$CC -V 2>&1 | sed 5q` in
16126 *Sun\ C*) # Sun C 5.9
16127 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'
16128 compiler_needs_object=yes
16129 tmp_sharedflag='-G' ;;
16130 *Sun\ F*) # Sun Fortran 8.3
16131 tmp_sharedflag='-G' ;;
16132 esac
16133 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16134
16135 if test "x$supports_anon_versioning" = xyes; then
16136 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16137 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16138 echo "local: *; };" >> $output_objdir/$libname.ver~
16139 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16140 fi
16141
16142 case $cc_basename in
16143 xlf* | bgf* | bgxlf* | mpixlf*)
16144 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16145 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16146 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16147 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16148 if test "x$supports_anon_versioning" = xyes; then
16149 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16150 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16151 echo "local: *; };" >> $output_objdir/$libname.ver~
16152 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16153 fi
16154 ;;
16155 esac
16156 else
16157 ld_shlibs=no
16158 fi
16159 ;;
16160
16161 netbsd*)
16162 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16163 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16164 wlarc=
16165 else
16166 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16167 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16168 fi
16169 ;;
16170
16171 solaris*)
16172 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16173 ld_shlibs=no
16174 cat <<_LT_EOF 1>&2
16175
16176 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16177 *** create shared libraries on Solaris systems. Therefore, libtool
16178 *** is disabling shared libraries support. We urge you to upgrade GNU
16179 *** binutils to release 2.9.1 or newer. Another option is to modify
16180 *** your PATH or compiler configuration so that the native linker is
16181 *** used, and then restart.
16182
16183 _LT_EOF
16184 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16185 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16186 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16187 else
16188 ld_shlibs=no
16189 fi
16190 ;;
16191
16192 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16193 case `$LD -v 2>&1` in
16194 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16195 ld_shlibs=no
16196 cat <<_LT_EOF 1>&2
16197
16198 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16199 *** reliably create shared libraries on SCO systems. Therefore, libtool
16200 *** is disabling shared libraries support. We urge you to upgrade GNU
16201 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16202 *** your PATH or compiler configuration so that the native linker is
16203 *** used, and then restart.
16204
16205 _LT_EOF
16206 ;;
16207 *)
16208 # For security reasons, it is highly recommended that you always
16209 # use absolute paths for naming shared libraries, and exclude the
16210 # DT_RUNPATH tag from executables and libraries. But doing so
16211 # requires that you compile everything twice, which is a pain.
16212 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16213 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16215 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16216 else
16217 ld_shlibs=no
16218 fi
16219 ;;
16220 esac
16221 ;;
16222
16223 sunos4*)
16224 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16225 wlarc=
16226 hardcode_direct=yes
16227 hardcode_shlibpath_var=no
16228 ;;
16229
16230 *)
16231 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16232 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16233 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16234 else
16235 ld_shlibs=no
16236 fi
16237 ;;
16238 esac
16239
16240 if test "$ld_shlibs" = no; then
16241 runpath_var=
16242 hardcode_libdir_flag_spec=
16243 export_dynamic_flag_spec=
16244 whole_archive_flag_spec=
16245 fi
16246 else
16247 # PORTME fill in a description of your system's linker (not GNU ld)
16248 case $host_os in
16249 aix3*)
16250 allow_undefined_flag=unsupported
16251 always_export_symbols=yes
16252 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'
16253 # Note: this linker hardcodes the directories in LIBPATH if there
16254 # are no directories specified by -L.
16255 hardcode_minus_L=yes
16256 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16257 # Neither direct hardcoding nor static linking is supported with a
16258 # broken collect2.
16259 hardcode_direct=unsupported
16260 fi
16261 ;;
16262
16263 aix[4-9]*)
16264 if test "$host_cpu" = ia64; then
16265 # On IA64, the linker does run time linking by default, so we don't
16266 # have to do anything special.
16267 aix_use_runtimelinking=no
16268 exp_sym_flag='-Bexport'
16269 no_entry_flag=""
16270 else
16271 # If we're using GNU nm, then we don't want the "-C" option.
16272 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16273 # Also, AIX nm treats weak defined symbols like other global
16274 # defined symbols, whereas GNU nm marks them as "W".
16275 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16276 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'
16277 else
16278 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'
16279 fi
16280 aix_use_runtimelinking=no
16281
16282 # Test if we are trying to use run time linking or normal
16283 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16284 # need to do runtime linking.
16285 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16286 for ld_flag in $LDFLAGS; do
16287 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16288 aix_use_runtimelinking=yes
16289 break
16290 fi
16291 done
16292 ;;
16293 esac
16294
16295 exp_sym_flag='-bexport'
16296 no_entry_flag='-bnoentry'
16297 fi
16298
16299 # When large executables or shared objects are built, AIX ld can
16300 # have problems creating the table of contents. If linking a library
16301 # or program results in "error TOC overflow" add -mminimal-toc to
16302 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16303 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16304
16305 archive_cmds=''
16306 hardcode_direct=yes
16307 hardcode_direct_absolute=yes
16308 hardcode_libdir_separator=':'
16309 link_all_deplibs=yes
16310 file_list_spec='${wl}-f,'
16311
16312 if test "$GCC" = yes; then
16313 case $host_os in aix4.[012]|aix4.[012].*)
16314 # We only want to do this on AIX 4.2 and lower, the check
16315 # below for broken collect2 doesn't work under 4.3+
16316 collect2name=`${CC} -print-prog-name=collect2`
16317 if test -f "$collect2name" &&
16318 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16319 then
16320 # We have reworked collect2
16321 :
16322 else
16323 # We have old collect2
16324 hardcode_direct=unsupported
16325 # It fails to find uninstalled libraries when the uninstalled
16326 # path is not listed in the libpath. Setting hardcode_minus_L
16327 # to unsupported forces relinking
16328 hardcode_minus_L=yes
16329 hardcode_libdir_flag_spec='-L$libdir'
16330 hardcode_libdir_separator=
16331 fi
16332 ;;
16333 esac
16334 shared_flag='-shared'
16335 if test "$aix_use_runtimelinking" = yes; then
16336 shared_flag="$shared_flag "'${wl}-G'
16337 fi
16338 else
16339 # not using gcc
16340 if test "$host_cpu" = ia64; then
16341 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16342 # chokes on -Wl,-G. The following line is correct:
16343 shared_flag='-G'
16344 else
16345 if test "$aix_use_runtimelinking" = yes; then
16346 shared_flag='${wl}-G'
16347 else
16348 shared_flag='${wl}-bM:SRE'
16349 fi
16350 fi
16351 fi
16352
16353 export_dynamic_flag_spec='${wl}-bexpall'
16354 # It seems that -bexpall does not export symbols beginning with
16355 # underscore (_), so it is better to generate a list of symbols to export.
16356 always_export_symbols=yes
16357 if test "$aix_use_runtimelinking" = yes; then
16358 # Warning - without using the other runtime loading flags (-brtl),
16359 # -berok will link without error, but may produce a broken library.
16360 allow_undefined_flag='-berok'
16361 # Determine the default libpath from the value encoded in an
16362 # empty executable.
16363 if test "${lt_cv_aix_libpath+set}" = set; then
16364 aix_libpath=$lt_cv_aix_libpath
16365 else
16366 if ${lt_cv_aix_libpath_+:} false; then :
16367 $as_echo_n "(cached) " >&6
16368 else
16369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16370 /* end confdefs.h. */
16371
16372 int
16373 main ()
16374 {
16375
16376 ;
16377 return 0;
16378 }
16379 _ACEOF
16380 if ac_fn_c_try_link "$LINENO"; then :
16381
16382 lt_aix_libpath_sed='
16383 /Import File Strings/,/^$/ {
16384 /^0/ {
16385 s/^0 *\([^ ]*\) *$/\1/
16386 p
16387 }
16388 }'
16389 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16390 # Check for a 64-bit object if we didn't find anything.
16391 if test -z "$lt_cv_aix_libpath_"; then
16392 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16393 fi
16394 fi
16395 rm -f core conftest.err conftest.$ac_objext \
16396 conftest$ac_exeext conftest.$ac_ext
16397 if test -z "$lt_cv_aix_libpath_"; then
16398 lt_cv_aix_libpath_="/usr/lib:/lib"
16399 fi
16400
16401 fi
16402
16403 aix_libpath=$lt_cv_aix_libpath_
16404 fi
16405
16406 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16407 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"
16408 else
16409 if test "$host_cpu" = ia64; then
16410 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16411 allow_undefined_flag="-z nodefs"
16412 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"
16413 else
16414 # Determine the default libpath from the value encoded in an
16415 # empty executable.
16416 if test "${lt_cv_aix_libpath+set}" = set; then
16417 aix_libpath=$lt_cv_aix_libpath
16418 else
16419 if ${lt_cv_aix_libpath_+:} false; then :
16420 $as_echo_n "(cached) " >&6
16421 else
16422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16423 /* end confdefs.h. */
16424
16425 int
16426 main ()
16427 {
16428
16429 ;
16430 return 0;
16431 }
16432 _ACEOF
16433 if ac_fn_c_try_link "$LINENO"; then :
16434
16435 lt_aix_libpath_sed='
16436 /Import File Strings/,/^$/ {
16437 /^0/ {
16438 s/^0 *\([^ ]*\) *$/\1/
16439 p
16440 }
16441 }'
16442 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16443 # Check for a 64-bit object if we didn't find anything.
16444 if test -z "$lt_cv_aix_libpath_"; then
16445 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16446 fi
16447 fi
16448 rm -f core conftest.err conftest.$ac_objext \
16449 conftest$ac_exeext conftest.$ac_ext
16450 if test -z "$lt_cv_aix_libpath_"; then
16451 lt_cv_aix_libpath_="/usr/lib:/lib"
16452 fi
16453
16454 fi
16455
16456 aix_libpath=$lt_cv_aix_libpath_
16457 fi
16458
16459 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16460 # Warning - without using the other run time loading flags,
16461 # -berok will link without error, but may produce a broken library.
16462 no_undefined_flag=' ${wl}-bernotok'
16463 allow_undefined_flag=' ${wl}-berok'
16464 if test "$with_gnu_ld" = yes; then
16465 # We only use this code for GNU lds that support --whole-archive.
16466 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16467 else
16468 # Exported symbols can be pulled into shared objects from archives
16469 whole_archive_flag_spec='$convenience'
16470 fi
16471 archive_cmds_need_lc=yes
16472 # This is similar to how AIX traditionally builds its shared libraries.
16473 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'
16474 fi
16475 fi
16476 ;;
16477
16478 amigaos*)
16479 case $host_cpu in
16480 powerpc)
16481 # see comment about AmigaOS4 .so support
16482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16483 archive_expsym_cmds=''
16484 ;;
16485 m68k)
16486 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)'
16487 hardcode_libdir_flag_spec='-L$libdir'
16488 hardcode_minus_L=yes
16489 ;;
16490 esac
16491 ;;
16492
16493 bsdi[45]*)
16494 export_dynamic_flag_spec=-rdynamic
16495 ;;
16496
16497 cygwin* | mingw* | pw32* | cegcc*)
16498 # When not using gcc, we currently assume that we are using
16499 # Microsoft Visual C++.
16500 # hardcode_libdir_flag_spec is actually meaningless, as there is
16501 # no search path for DLLs.
16502 case $cc_basename in
16503 cl*)
16504 # Native MSVC
16505 hardcode_libdir_flag_spec=' '
16506 allow_undefined_flag=unsupported
16507 always_export_symbols=yes
16508 file_list_spec='@'
16509 # Tell ltmain to make .lib files, not .a files.
16510 libext=lib
16511 # Tell ltmain to make .dll files, not .so files.
16512 shrext_cmds=".dll"
16513 # FIXME: Setting linknames here is a bad hack.
16514 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16515 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16516 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16517 else
16518 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16519 fi~
16520 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16521 linknames='
16522 # The linker will not automatically build a static lib if we build a DLL.
16523 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16524 enable_shared_with_static_runtimes=yes
16525 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16526 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16527 # Don't use ranlib
16528 old_postinstall_cmds='chmod 644 $oldlib'
16529 postlink_cmds='lt_outputfile="@OUTPUT@"~
16530 lt_tool_outputfile="@TOOL_OUTPUT@"~
16531 case $lt_outputfile in
16532 *.exe|*.EXE) ;;
16533 *)
16534 lt_outputfile="$lt_outputfile.exe"
16535 lt_tool_outputfile="$lt_tool_outputfile.exe"
16536 ;;
16537 esac~
16538 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16539 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16540 $RM "$lt_outputfile.manifest";
16541 fi'
16542 ;;
16543 *)
16544 # Assume MSVC wrapper
16545 hardcode_libdir_flag_spec=' '
16546 allow_undefined_flag=unsupported
16547 # Tell ltmain to make .lib files, not .a files.
16548 libext=lib
16549 # Tell ltmain to make .dll files, not .so files.
16550 shrext_cmds=".dll"
16551 # FIXME: Setting linknames here is a bad hack.
16552 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16553 # The linker will automatically build a .lib file if we build a DLL.
16554 old_archive_from_new_cmds='true'
16555 # FIXME: Should let the user specify the lib program.
16556 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16557 enable_shared_with_static_runtimes=yes
16558 ;;
16559 esac
16560 ;;
16561
16562 darwin* | rhapsody*)
16563
16564
16565 archive_cmds_need_lc=no
16566 hardcode_direct=no
16567 hardcode_automatic=yes
16568 hardcode_shlibpath_var=unsupported
16569 if test "$lt_cv_ld_force_load" = "yes"; then
16570 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\"`'
16571
16572 else
16573 whole_archive_flag_spec=''
16574 fi
16575 link_all_deplibs=yes
16576 allow_undefined_flag="$_lt_dar_allow_undefined"
16577 case $cc_basename in
16578 ifort*) _lt_dar_can_shared=yes ;;
16579 *) _lt_dar_can_shared=$GCC ;;
16580 esac
16581 if test "$_lt_dar_can_shared" = "yes"; then
16582 output_verbose_link_cmd=func_echo_all
16583 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16584 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16585 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}"
16586 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}"
16587
16588 else
16589 ld_shlibs=no
16590 fi
16591
16592 ;;
16593
16594 dgux*)
16595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16596 hardcode_libdir_flag_spec='-L$libdir'
16597 hardcode_shlibpath_var=no
16598 ;;
16599
16600 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16601 # support. Future versions do this automatically, but an explicit c++rt0.o
16602 # does not break anything, and helps significantly (at the cost of a little
16603 # extra space).
16604 freebsd2.2*)
16605 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16606 hardcode_libdir_flag_spec='-R$libdir'
16607 hardcode_direct=yes
16608 hardcode_shlibpath_var=no
16609 ;;
16610
16611 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16612 freebsd2.*)
16613 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16614 hardcode_direct=yes
16615 hardcode_minus_L=yes
16616 hardcode_shlibpath_var=no
16617 ;;
16618
16619 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16620 freebsd* | dragonfly*)
16621 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16622 hardcode_libdir_flag_spec='-R$libdir'
16623 hardcode_direct=yes
16624 hardcode_shlibpath_var=no
16625 ;;
16626
16627 hpux9*)
16628 if test "$GCC" = yes; then
16629 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'
16630 else
16631 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'
16632 fi
16633 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16634 hardcode_libdir_separator=:
16635 hardcode_direct=yes
16636
16637 # hardcode_minus_L: Not really in the search PATH,
16638 # but as the default location of the library.
16639 hardcode_minus_L=yes
16640 export_dynamic_flag_spec='${wl}-E'
16641 ;;
16642
16643 hpux10*)
16644 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16645 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16646 else
16647 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16648 fi
16649 if test "$with_gnu_ld" = no; then
16650 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16651 hardcode_libdir_separator=:
16652 hardcode_direct=yes
16653 hardcode_direct_absolute=yes
16654 export_dynamic_flag_spec='${wl}-E'
16655 # hardcode_minus_L: Not really in the search PATH,
16656 # but as the default location of the library.
16657 hardcode_minus_L=yes
16658 fi
16659 ;;
16660
16661 hpux11*)
16662 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16663 case $host_cpu in
16664 hppa*64*)
16665 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16666 ;;
16667 ia64*)
16668 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16669 ;;
16670 *)
16671 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16672 ;;
16673 esac
16674 else
16675 case $host_cpu in
16676 hppa*64*)
16677 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16678 ;;
16679 ia64*)
16680 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16681 ;;
16682 *)
16683
16684 # Older versions of the 11.00 compiler do not understand -b yet
16685 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16687 $as_echo_n "checking if $CC understands -b... " >&6; }
16688 if ${lt_cv_prog_compiler__b+:} false; then :
16689 $as_echo_n "(cached) " >&6
16690 else
16691 lt_cv_prog_compiler__b=no
16692 save_LDFLAGS="$LDFLAGS"
16693 LDFLAGS="$LDFLAGS -b"
16694 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16695 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16696 # The linker can only warn and ignore the option if not recognized
16697 # So say no if there are warnings
16698 if test -s conftest.err; then
16699 # Append any errors to the config.log.
16700 cat conftest.err 1>&5
16701 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16703 if diff conftest.exp conftest.er2 >/dev/null; then
16704 lt_cv_prog_compiler__b=yes
16705 fi
16706 else
16707 lt_cv_prog_compiler__b=yes
16708 fi
16709 fi
16710 $RM -r conftest*
16711 LDFLAGS="$save_LDFLAGS"
16712
16713 fi
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16715 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16716
16717 if test x"$lt_cv_prog_compiler__b" = xyes; then
16718 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16719 else
16720 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16721 fi
16722
16723 ;;
16724 esac
16725 fi
16726 if test "$with_gnu_ld" = no; then
16727 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16728 hardcode_libdir_separator=:
16729
16730 case $host_cpu in
16731 hppa*64*|ia64*)
16732 hardcode_direct=no
16733 hardcode_shlibpath_var=no
16734 ;;
16735 *)
16736 hardcode_direct=yes
16737 hardcode_direct_absolute=yes
16738 export_dynamic_flag_spec='${wl}-E'
16739
16740 # hardcode_minus_L: Not really in the search PATH,
16741 # but as the default location of the library.
16742 hardcode_minus_L=yes
16743 ;;
16744 esac
16745 fi
16746 ;;
16747
16748 irix5* | irix6* | nonstopux*)
16749 if test "$GCC" = yes; then
16750 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'
16751 # Try to use the -exported_symbol ld option, if it does not
16752 # work, assume that -exports_file does not work either and
16753 # implicitly export all symbols.
16754 # This should be the same for all languages, so no per-tag cache variable.
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16756 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16757 if ${lt_cv_irix_exported_symbol+:} false; then :
16758 $as_echo_n "(cached) " >&6
16759 else
16760 save_LDFLAGS="$LDFLAGS"
16761 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763 /* end confdefs.h. */
16764 int foo (void) { return 0; }
16765 _ACEOF
16766 if ac_fn_c_try_link "$LINENO"; then :
16767 lt_cv_irix_exported_symbol=yes
16768 else
16769 lt_cv_irix_exported_symbol=no
16770 fi
16771 rm -f core conftest.err conftest.$ac_objext \
16772 conftest$ac_exeext conftest.$ac_ext
16773 LDFLAGS="$save_LDFLAGS"
16774 fi
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16776 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16777 if test "$lt_cv_irix_exported_symbol" = yes; then
16778 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'
16779 fi
16780 else
16781 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'
16782 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'
16783 fi
16784 archive_cmds_need_lc='no'
16785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16786 hardcode_libdir_separator=:
16787 inherit_rpath=yes
16788 link_all_deplibs=yes
16789 ;;
16790
16791 netbsd*)
16792 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16793 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16794 else
16795 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16796 fi
16797 hardcode_libdir_flag_spec='-R$libdir'
16798 hardcode_direct=yes
16799 hardcode_shlibpath_var=no
16800 ;;
16801
16802 newsos6)
16803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16804 hardcode_direct=yes
16805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16806 hardcode_libdir_separator=:
16807 hardcode_shlibpath_var=no
16808 ;;
16809
16810 *nto* | *qnx*)
16811 ;;
16812
16813 openbsd*)
16814 if test -f /usr/libexec/ld.so; then
16815 hardcode_direct=yes
16816 hardcode_shlibpath_var=no
16817 hardcode_direct_absolute=yes
16818 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16819 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16820 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16821 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16822 export_dynamic_flag_spec='${wl}-E'
16823 else
16824 case $host_os in
16825 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16826 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16827 hardcode_libdir_flag_spec='-R$libdir'
16828 ;;
16829 *)
16830 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16831 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16832 ;;
16833 esac
16834 fi
16835 else
16836 ld_shlibs=no
16837 fi
16838 ;;
16839
16840 os2*)
16841 hardcode_libdir_flag_spec='-L$libdir'
16842 hardcode_minus_L=yes
16843 allow_undefined_flag=unsupported
16844 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'
16845 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16846 ;;
16847
16848 osf3*)
16849 if test "$GCC" = yes; then
16850 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16851 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'
16852 else
16853 allow_undefined_flag=' -expect_unresolved \*'
16854 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'
16855 fi
16856 archive_cmds_need_lc='no'
16857 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16858 hardcode_libdir_separator=:
16859 ;;
16860
16861 osf4* | osf5*) # as osf3* with the addition of -msym flag
16862 if test "$GCC" = yes; then
16863 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16864 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'
16865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16866 else
16867 allow_undefined_flag=' -expect_unresolved \*'
16868 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'
16869 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~
16870 $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'
16871
16872 # Both c and cxx compiler support -rpath directly
16873 hardcode_libdir_flag_spec='-rpath $libdir'
16874 fi
16875 archive_cmds_need_lc='no'
16876 hardcode_libdir_separator=:
16877 ;;
16878
16879 solaris*)
16880 no_undefined_flag=' -z defs'
16881 if test "$GCC" = yes; then
16882 wlarc='${wl}'
16883 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16884 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16885 $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'
16886 else
16887 case `$CC -V 2>&1` in
16888 *"Compilers 5.0"*)
16889 wlarc=''
16890 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16891 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16892 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16893 ;;
16894 *)
16895 wlarc='${wl}'
16896 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16897 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16898 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16899 ;;
16900 esac
16901 fi
16902 hardcode_libdir_flag_spec='-R$libdir'
16903 hardcode_shlibpath_var=no
16904 case $host_os in
16905 solaris2.[0-5] | solaris2.[0-5].*) ;;
16906 *)
16907 # The compiler driver will combine and reorder linker options,
16908 # but understands `-z linker_flag'. GCC discards it without `$wl',
16909 # but is careful enough not to reorder.
16910 # Supported since Solaris 2.6 (maybe 2.5.1?)
16911 if test "$GCC" = yes; then
16912 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16913 else
16914 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16915 fi
16916 ;;
16917 esac
16918 link_all_deplibs=yes
16919 ;;
16920
16921 sunos4*)
16922 if test "x$host_vendor" = xsequent; then
16923 # Use $CC to link under sequent, because it throws in some extra .o
16924 # files that make .init and .fini sections work.
16925 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16926 else
16927 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16928 fi
16929 hardcode_libdir_flag_spec='-L$libdir'
16930 hardcode_direct=yes
16931 hardcode_minus_L=yes
16932 hardcode_shlibpath_var=no
16933 ;;
16934
16935 sysv4)
16936 case $host_vendor in
16937 sni)
16938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16939 hardcode_direct=yes # is this really true???
16940 ;;
16941 siemens)
16942 ## LD is ld it makes a PLAMLIB
16943 ## CC just makes a GrossModule.
16944 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16945 reload_cmds='$CC -r -o $output$reload_objs'
16946 hardcode_direct=no
16947 ;;
16948 motorola)
16949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16950 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16951 ;;
16952 esac
16953 runpath_var='LD_RUN_PATH'
16954 hardcode_shlibpath_var=no
16955 ;;
16956
16957 sysv4.3*)
16958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16959 hardcode_shlibpath_var=no
16960 export_dynamic_flag_spec='-Bexport'
16961 ;;
16962
16963 sysv4*MP*)
16964 if test -d /usr/nec; then
16965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16966 hardcode_shlibpath_var=no
16967 runpath_var=LD_RUN_PATH
16968 hardcode_runpath_var=yes
16969 ld_shlibs=yes
16970 fi
16971 ;;
16972
16973 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16974 no_undefined_flag='${wl}-z,text'
16975 archive_cmds_need_lc=no
16976 hardcode_shlibpath_var=no
16977 runpath_var='LD_RUN_PATH'
16978
16979 if test "$GCC" = yes; then
16980 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16981 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16982 else
16983 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16984 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16985 fi
16986 ;;
16987
16988 sysv5* | sco3.2v5* | sco5v6*)
16989 # Note: We can NOT use -z defs as we might desire, because we do not
16990 # link with -lc, and that would cause any symbols used from libc to
16991 # always be unresolved, which means just about no library would
16992 # ever link correctly. If we're not using GNU ld we use -z text
16993 # though, which does catch some bad symbols but isn't as heavy-handed
16994 # as -z defs.
16995 no_undefined_flag='${wl}-z,text'
16996 allow_undefined_flag='${wl}-z,nodefs'
16997 archive_cmds_need_lc=no
16998 hardcode_shlibpath_var=no
16999 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17000 hardcode_libdir_separator=':'
17001 link_all_deplibs=yes
17002 export_dynamic_flag_spec='${wl}-Bexport'
17003 runpath_var='LD_RUN_PATH'
17004
17005 if test "$GCC" = yes; then
17006 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17007 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17008 else
17009 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17010 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17011 fi
17012 ;;
17013
17014 uts4*)
17015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17016 hardcode_libdir_flag_spec='-L$libdir'
17017 hardcode_shlibpath_var=no
17018 ;;
17019
17020 *)
17021 ld_shlibs=no
17022 ;;
17023 esac
17024
17025 if test x$host_vendor = xsni; then
17026 case $host in
17027 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17028 export_dynamic_flag_spec='${wl}-Blargedynsym'
17029 ;;
17030 esac
17031 fi
17032 fi
17033
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17035 $as_echo "$ld_shlibs" >&6; }
17036 test "$ld_shlibs" = no && can_build_shared=no
17037
17038 with_gnu_ld=$with_gnu_ld
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054 #
17055 # Do we need to explicitly link libc?
17056 #
17057 case "x$archive_cmds_need_lc" in
17058 x|xyes)
17059 # Assume -lc should be added
17060 archive_cmds_need_lc=yes
17061
17062 if test "$enable_shared" = yes && test "$GCC" = yes; then
17063 case $archive_cmds in
17064 *'~'*)
17065 # FIXME: we may have to deal with multi-command sequences.
17066 ;;
17067 '$CC '*)
17068 # Test whether the compiler implicitly links with -lc since on some
17069 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17070 # to ld, don't add -lc before -lgcc.
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17072 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17073 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17074 $as_echo_n "(cached) " >&6
17075 else
17076 $RM conftest*
17077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17078
17079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17080 (eval $ac_compile) 2>&5
17081 ac_status=$?
17082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17083 test $ac_status = 0; } 2>conftest.err; then
17084 soname=conftest
17085 lib=conftest
17086 libobjs=conftest.$ac_objext
17087 deplibs=
17088 wl=$lt_prog_compiler_wl
17089 pic_flag=$lt_prog_compiler_pic
17090 compiler_flags=-v
17091 linker_flags=-v
17092 verstring=
17093 output_objdir=.
17094 libname=conftest
17095 lt_save_allow_undefined_flag=$allow_undefined_flag
17096 allow_undefined_flag=
17097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17098 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17099 ac_status=$?
17100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17101 test $ac_status = 0; }
17102 then
17103 lt_cv_archive_cmds_need_lc=no
17104 else
17105 lt_cv_archive_cmds_need_lc=yes
17106 fi
17107 allow_undefined_flag=$lt_save_allow_undefined_flag
17108 else
17109 cat conftest.err 1>&5
17110 fi
17111 $RM conftest*
17112
17113 fi
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17115 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17116 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17117 ;;
17118 esac
17119 fi
17120 ;;
17121 esac
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17275 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17276
17277 if test "$GCC" = yes; then
17278 case $host_os in
17279 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17280 *) lt_awk_arg="/^libraries:/" ;;
17281 esac
17282 case $host_os in
17283 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17284 *) lt_sed_strip_eq="s,=/,/,g" ;;
17285 esac
17286 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17287 case $lt_search_path_spec in
17288 *\;*)
17289 # if the path contains ";" then we assume it to be the separator
17290 # otherwise default to the standard path separator (i.e. ":") - it is
17291 # assumed that no part of a normal pathname contains ";" but that should
17292 # okay in the real world where ";" in dirpaths is itself problematic.
17293 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17294 ;;
17295 *)
17296 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17297 ;;
17298 esac
17299 # Ok, now we have the path, separated by spaces, we can step through it
17300 # and add multilib dir if necessary.
17301 lt_tmp_lt_search_path_spec=
17302 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17303 for lt_sys_path in $lt_search_path_spec; do
17304 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17305 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17306 else
17307 test -d "$lt_sys_path" && \
17308 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17309 fi
17310 done
17311 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17312 BEGIN {RS=" "; FS="/|\n";} {
17313 lt_foo="";
17314 lt_count=0;
17315 for (lt_i = NF; lt_i > 0; lt_i--) {
17316 if ($lt_i != "" && $lt_i != ".") {
17317 if ($lt_i == "..") {
17318 lt_count++;
17319 } else {
17320 if (lt_count == 0) {
17321 lt_foo="/" $lt_i lt_foo;
17322 } else {
17323 lt_count--;
17324 }
17325 }
17326 }
17327 }
17328 if (lt_foo != "") { lt_freq[lt_foo]++; }
17329 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17330 }'`
17331 # AWK program above erroneously prepends '/' to C:/dos/paths
17332 # for these hosts.
17333 case $host_os in
17334 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17335 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17336 esac
17337 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17338 else
17339 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17340 fi
17341 library_names_spec=
17342 libname_spec='lib$name'
17343 soname_spec=
17344 shrext_cmds=".so"
17345 postinstall_cmds=
17346 postuninstall_cmds=
17347 finish_cmds=
17348 finish_eval=
17349 shlibpath_var=
17350 shlibpath_overrides_runpath=unknown
17351 version_type=none
17352 dynamic_linker="$host_os ld.so"
17353 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17354 need_lib_prefix=unknown
17355 hardcode_into_libs=no
17356
17357 # when you set need_version to no, make sure it does not cause -set_version
17358 # flags to be left without arguments
17359 need_version=unknown
17360
17361 case $host_os in
17362 aix3*)
17363 version_type=linux # correct to gnu/linux during the next big refactor
17364 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17365 shlibpath_var=LIBPATH
17366
17367 # AIX 3 has no versioning support, so we append a major version to the name.
17368 soname_spec='${libname}${release}${shared_ext}$major'
17369 ;;
17370
17371 aix[4-9]*)
17372 version_type=linux # correct to gnu/linux during the next big refactor
17373 need_lib_prefix=no
17374 need_version=no
17375 hardcode_into_libs=yes
17376 if test "$host_cpu" = ia64; then
17377 # AIX 5 supports IA64
17378 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17379 shlibpath_var=LD_LIBRARY_PATH
17380 else
17381 # With GCC up to 2.95.x, collect2 would create an import file
17382 # for dependence libraries. The import file would start with
17383 # the line `#! .'. This would cause the generated library to
17384 # depend on `.', always an invalid library. This was fixed in
17385 # development snapshots of GCC prior to 3.0.
17386 case $host_os in
17387 aix4 | aix4.[01] | aix4.[01].*)
17388 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17389 echo ' yes '
17390 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17391 :
17392 else
17393 can_build_shared=no
17394 fi
17395 ;;
17396 esac
17397 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17398 # soname into executable. Probably we can add versioning support to
17399 # collect2, so additional links can be useful in future.
17400 if test "$aix_use_runtimelinking" = yes; then
17401 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17402 # instead of lib<name>.a to let people know that these are not
17403 # typical AIX shared libraries.
17404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17405 else
17406 # We preserve .a as extension for shared libraries through AIX4.2
17407 # and later when we are not doing run time linking.
17408 library_names_spec='${libname}${release}.a $libname.a'
17409 soname_spec='${libname}${release}${shared_ext}$major'
17410 fi
17411 shlibpath_var=LIBPATH
17412 fi
17413 ;;
17414
17415 amigaos*)
17416 case $host_cpu in
17417 powerpc)
17418 # Since July 2007 AmigaOS4 officially supports .so libraries.
17419 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17421 ;;
17422 m68k)
17423 library_names_spec='$libname.ixlibrary $libname.a'
17424 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17425 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'
17426 ;;
17427 esac
17428 ;;
17429
17430 beos*)
17431 library_names_spec='${libname}${shared_ext}'
17432 dynamic_linker="$host_os ld.so"
17433 shlibpath_var=LIBRARY_PATH
17434 ;;
17435
17436 bsdi[45]*)
17437 version_type=linux # correct to gnu/linux during the next big refactor
17438 need_version=no
17439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17440 soname_spec='${libname}${release}${shared_ext}$major'
17441 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17442 shlibpath_var=LD_LIBRARY_PATH
17443 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17444 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17445 # the default ld.so.conf also contains /usr/contrib/lib and
17446 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17447 # libtool to hard-code these into programs
17448 ;;
17449
17450 cygwin* | mingw* | pw32* | cegcc*)
17451 version_type=windows
17452 shrext_cmds=".dll"
17453 need_version=no
17454 need_lib_prefix=no
17455
17456 case $GCC,$cc_basename in
17457 yes,*)
17458 # gcc
17459 library_names_spec='$libname.dll.a'
17460 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17461 postinstall_cmds='base_file=`basename \${file}`~
17462 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17463 dldir=$destdir/`dirname \$dlpath`~
17464 test -d \$dldir || mkdir -p \$dldir~
17465 $install_prog $dir/$dlname \$dldir/$dlname~
17466 chmod a+x \$dldir/$dlname~
17467 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17468 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17469 fi'
17470 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17471 dlpath=$dir/\$dldll~
17472 $RM \$dlpath'
17473 shlibpath_overrides_runpath=yes
17474
17475 case $host_os in
17476 cygwin*)
17477 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17478 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17479
17480 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17481 ;;
17482 mingw* | cegcc*)
17483 # MinGW DLLs use traditional 'lib' prefix
17484 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17485 ;;
17486 pw32*)
17487 # pw32 DLLs use 'pw' prefix rather than 'lib'
17488 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17489 ;;
17490 esac
17491 dynamic_linker='Win32 ld.exe'
17492 ;;
17493
17494 *,cl*)
17495 # Native MSVC
17496 libname_spec='$name'
17497 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17498 library_names_spec='${libname}.dll.lib'
17499
17500 case $build_os in
17501 mingw*)
17502 sys_lib_search_path_spec=
17503 lt_save_ifs=$IFS
17504 IFS=';'
17505 for lt_path in $LIB
17506 do
17507 IFS=$lt_save_ifs
17508 # Let DOS variable expansion print the short 8.3 style file name.
17509 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17510 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17511 done
17512 IFS=$lt_save_ifs
17513 # Convert to MSYS style.
17514 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17515 ;;
17516 cygwin*)
17517 # Convert to unix form, then to dos form, then back to unix form
17518 # but this time dos style (no spaces!) so that the unix form looks
17519 # like /cygdrive/c/PROGRA~1:/cygdr...
17520 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17521 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17522 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17523 ;;
17524 *)
17525 sys_lib_search_path_spec="$LIB"
17526 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17527 # It is most probably a Windows format PATH.
17528 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17529 else
17530 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17531 fi
17532 # FIXME: find the short name or the path components, as spaces are
17533 # common. (e.g. "Program Files" -> "PROGRA~1")
17534 ;;
17535 esac
17536
17537 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17538 postinstall_cmds='base_file=`basename \${file}`~
17539 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17540 dldir=$destdir/`dirname \$dlpath`~
17541 test -d \$dldir || mkdir -p \$dldir~
17542 $install_prog $dir/$dlname \$dldir/$dlname'
17543 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17544 dlpath=$dir/\$dldll~
17545 $RM \$dlpath'
17546 shlibpath_overrides_runpath=yes
17547 dynamic_linker='Win32 link.exe'
17548 ;;
17549
17550 *)
17551 # Assume MSVC wrapper
17552 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17553 dynamic_linker='Win32 ld.exe'
17554 ;;
17555 esac
17556 # FIXME: first we should search . and the directory the executable is in
17557 shlibpath_var=PATH
17558 ;;
17559
17560 darwin* | rhapsody*)
17561 dynamic_linker="$host_os dyld"
17562 version_type=darwin
17563 need_lib_prefix=no
17564 need_version=no
17565 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17566 soname_spec='${libname}${release}${major}$shared_ext'
17567 shlibpath_overrides_runpath=yes
17568 shlibpath_var=DYLD_LIBRARY_PATH
17569 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17570
17571 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17572 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17573 ;;
17574
17575 dgux*)
17576 version_type=linux # correct to gnu/linux during the next big refactor
17577 need_lib_prefix=no
17578 need_version=no
17579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17580 soname_spec='${libname}${release}${shared_ext}$major'
17581 shlibpath_var=LD_LIBRARY_PATH
17582 ;;
17583
17584 freebsd* | dragonfly*)
17585 # DragonFly does not have aout. When/if they implement a new
17586 # versioning mechanism, adjust this.
17587 if test -x /usr/bin/objformat; then
17588 objformat=`/usr/bin/objformat`
17589 else
17590 case $host_os in
17591 freebsd[23].*) objformat=aout ;;
17592 *) objformat=elf ;;
17593 esac
17594 fi
17595 version_type=freebsd-$objformat
17596 case $version_type in
17597 freebsd-elf*)
17598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17599 need_version=no
17600 need_lib_prefix=no
17601 ;;
17602 freebsd-*)
17603 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17604 need_version=yes
17605 ;;
17606 esac
17607 shlibpath_var=LD_LIBRARY_PATH
17608 case $host_os in
17609 freebsd2.*)
17610 shlibpath_overrides_runpath=yes
17611 ;;
17612 freebsd3.[01]* | freebsdelf3.[01]*)
17613 shlibpath_overrides_runpath=yes
17614 hardcode_into_libs=yes
17615 ;;
17616 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17617 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17618 shlibpath_overrides_runpath=no
17619 hardcode_into_libs=yes
17620 ;;
17621 *) # from 4.6 on, and DragonFly
17622 shlibpath_overrides_runpath=yes
17623 hardcode_into_libs=yes
17624 ;;
17625 esac
17626 ;;
17627
17628 gnu*)
17629 version_type=linux # correct to gnu/linux during the next big refactor
17630 need_lib_prefix=no
17631 need_version=no
17632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17633 soname_spec='${libname}${release}${shared_ext}$major'
17634 shlibpath_var=LD_LIBRARY_PATH
17635 shlibpath_overrides_runpath=no
17636 hardcode_into_libs=yes
17637 ;;
17638
17639 haiku*)
17640 version_type=linux # correct to gnu/linux during the next big refactor
17641 need_lib_prefix=no
17642 need_version=no
17643 dynamic_linker="$host_os runtime_loader"
17644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17645 soname_spec='${libname}${release}${shared_ext}$major'
17646 shlibpath_var=LIBRARY_PATH
17647 shlibpath_overrides_runpath=yes
17648 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17649 hardcode_into_libs=yes
17650 ;;
17651
17652 hpux9* | hpux10* | hpux11*)
17653 # Give a soname corresponding to the major version so that dld.sl refuses to
17654 # link against other versions.
17655 version_type=sunos
17656 need_lib_prefix=no
17657 need_version=no
17658 case $host_cpu in
17659 ia64*)
17660 shrext_cmds='.so'
17661 hardcode_into_libs=yes
17662 dynamic_linker="$host_os dld.so"
17663 shlibpath_var=LD_LIBRARY_PATH
17664 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17666 soname_spec='${libname}${release}${shared_ext}$major'
17667 if test "X$HPUX_IA64_MODE" = X32; then
17668 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17669 else
17670 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17671 fi
17672 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17673 ;;
17674 hppa*64*)
17675 shrext_cmds='.sl'
17676 hardcode_into_libs=yes
17677 dynamic_linker="$host_os dld.sl"
17678 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17679 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17681 soname_spec='${libname}${release}${shared_ext}$major'
17682 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17683 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17684 ;;
17685 *)
17686 shrext_cmds='.sl'
17687 dynamic_linker="$host_os dld.sl"
17688 shlibpath_var=SHLIB_PATH
17689 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17691 soname_spec='${libname}${release}${shared_ext}$major'
17692 ;;
17693 esac
17694 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17695 postinstall_cmds='chmod 555 $lib'
17696 # or fails outright, so override atomically:
17697 install_override_mode=555
17698 ;;
17699
17700 interix[3-9]*)
17701 version_type=linux # correct to gnu/linux during the next big refactor
17702 need_lib_prefix=no
17703 need_version=no
17704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17705 soname_spec='${libname}${release}${shared_ext}$major'
17706 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17707 shlibpath_var=LD_LIBRARY_PATH
17708 shlibpath_overrides_runpath=no
17709 hardcode_into_libs=yes
17710 ;;
17711
17712 irix5* | irix6* | nonstopux*)
17713 case $host_os in
17714 nonstopux*) version_type=nonstopux ;;
17715 *)
17716 if test "$lt_cv_prog_gnu_ld" = yes; then
17717 version_type=linux # correct to gnu/linux during the next big refactor
17718 else
17719 version_type=irix
17720 fi ;;
17721 esac
17722 need_lib_prefix=no
17723 need_version=no
17724 soname_spec='${libname}${release}${shared_ext}$major'
17725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17726 case $host_os in
17727 irix5* | nonstopux*)
17728 libsuff= shlibsuff=
17729 ;;
17730 *)
17731 case $LD in # libtool.m4 will add one of these switches to LD
17732 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17733 libsuff= shlibsuff= libmagic=32-bit;;
17734 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17735 libsuff=32 shlibsuff=N32 libmagic=N32;;
17736 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17737 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17738 *) libsuff= shlibsuff= libmagic=never-match;;
17739 esac
17740 ;;
17741 esac
17742 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17743 shlibpath_overrides_runpath=no
17744 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17745 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17746 hardcode_into_libs=yes
17747 ;;
17748
17749 # No shared lib support for Linux oldld, aout, or coff.
17750 linux*oldld* | linux*aout* | linux*coff*)
17751 dynamic_linker=no
17752 ;;
17753
17754 # This must be glibc/ELF.
17755 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17756 version_type=linux # correct to gnu/linux during the next big refactor
17757 need_lib_prefix=no
17758 need_version=no
17759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17760 soname_spec='${libname}${release}${shared_ext}$major'
17761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17762 shlibpath_var=LD_LIBRARY_PATH
17763 shlibpath_overrides_runpath=no
17764
17765 # Some binutils ld are patched to set DT_RUNPATH
17766 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17767 $as_echo_n "(cached) " >&6
17768 else
17769 lt_cv_shlibpath_overrides_runpath=no
17770 save_LDFLAGS=$LDFLAGS
17771 save_libdir=$libdir
17772 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17773 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17775 /* end confdefs.h. */
17776
17777 int
17778 main ()
17779 {
17780
17781 ;
17782 return 0;
17783 }
17784 _ACEOF
17785 if ac_fn_c_try_link "$LINENO"; then :
17786 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17787 lt_cv_shlibpath_overrides_runpath=yes
17788 fi
17789 fi
17790 rm -f core conftest.err conftest.$ac_objext \
17791 conftest$ac_exeext conftest.$ac_ext
17792 LDFLAGS=$save_LDFLAGS
17793 libdir=$save_libdir
17794
17795 fi
17796
17797 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17798
17799 # This implies no fast_install, which is unacceptable.
17800 # Some rework will be needed to allow for fast_install
17801 # before this can be enabled.
17802 hardcode_into_libs=yes
17803
17804 # Append ld.so.conf contents to the search path
17805 if test -f /etc/ld.so.conf; then
17806 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' ' '`
17807 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17808 fi
17809
17810 # We used to test for /lib/ld.so.1 and disable shared libraries on
17811 # powerpc, because MkLinux only supported shared libraries with the
17812 # GNU dynamic linker. Since this was broken with cross compilers,
17813 # most powerpc-linux boxes support dynamic linking these days and
17814 # people can always --disable-shared, the test was removed, and we
17815 # assume the GNU/Linux dynamic linker is in use.
17816 dynamic_linker='GNU/Linux ld.so'
17817 ;;
17818
17819 netbsd*)
17820 version_type=sunos
17821 need_lib_prefix=no
17822 need_version=no
17823 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17826 dynamic_linker='NetBSD (a.out) ld.so'
17827 else
17828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17829 soname_spec='${libname}${release}${shared_ext}$major'
17830 dynamic_linker='NetBSD ld.elf_so'
17831 fi
17832 shlibpath_var=LD_LIBRARY_PATH
17833 shlibpath_overrides_runpath=yes
17834 hardcode_into_libs=yes
17835 ;;
17836
17837 newsos6)
17838 version_type=linux # correct to gnu/linux during the next big refactor
17839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17840 shlibpath_var=LD_LIBRARY_PATH
17841 shlibpath_overrides_runpath=yes
17842 ;;
17843
17844 *nto* | *qnx*)
17845 version_type=qnx
17846 need_lib_prefix=no
17847 need_version=no
17848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17849 soname_spec='${libname}${release}${shared_ext}$major'
17850 shlibpath_var=LD_LIBRARY_PATH
17851 shlibpath_overrides_runpath=no
17852 hardcode_into_libs=yes
17853 dynamic_linker='ldqnx.so'
17854 ;;
17855
17856 openbsd*)
17857 version_type=sunos
17858 sys_lib_dlsearch_path_spec="/usr/lib"
17859 need_lib_prefix=no
17860 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17861 case $host_os in
17862 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17863 *) need_version=no ;;
17864 esac
17865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17867 shlibpath_var=LD_LIBRARY_PATH
17868 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17869 case $host_os in
17870 openbsd2.[89] | openbsd2.[89].*)
17871 shlibpath_overrides_runpath=no
17872 ;;
17873 *)
17874 shlibpath_overrides_runpath=yes
17875 ;;
17876 esac
17877 else
17878 shlibpath_overrides_runpath=yes
17879 fi
17880 ;;
17881
17882 os2*)
17883 libname_spec='$name'
17884 shrext_cmds=".dll"
17885 need_lib_prefix=no
17886 library_names_spec='$libname${shared_ext} $libname.a'
17887 dynamic_linker='OS/2 ld.exe'
17888 shlibpath_var=LIBPATH
17889 ;;
17890
17891 osf3* | osf4* | osf5*)
17892 version_type=osf
17893 need_lib_prefix=no
17894 need_version=no
17895 soname_spec='${libname}${release}${shared_ext}$major'
17896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17897 shlibpath_var=LD_LIBRARY_PATH
17898 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17899 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17900 ;;
17901
17902 rdos*)
17903 dynamic_linker=no
17904 ;;
17905
17906 solaris*)
17907 version_type=linux # correct to gnu/linux during the next big refactor
17908 need_lib_prefix=no
17909 need_version=no
17910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17911 soname_spec='${libname}${release}${shared_ext}$major'
17912 shlibpath_var=LD_LIBRARY_PATH
17913 shlibpath_overrides_runpath=yes
17914 hardcode_into_libs=yes
17915 # ldd complains unless libraries are executable
17916 postinstall_cmds='chmod +x $lib'
17917 ;;
17918
17919 sunos4*)
17920 version_type=sunos
17921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17922 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17923 shlibpath_var=LD_LIBRARY_PATH
17924 shlibpath_overrides_runpath=yes
17925 if test "$with_gnu_ld" = yes; then
17926 need_lib_prefix=no
17927 fi
17928 need_version=yes
17929 ;;
17930
17931 sysv4 | sysv4.3*)
17932 version_type=linux # correct to gnu/linux during the next big refactor
17933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17934 soname_spec='${libname}${release}${shared_ext}$major'
17935 shlibpath_var=LD_LIBRARY_PATH
17936 case $host_vendor in
17937 sni)
17938 shlibpath_overrides_runpath=no
17939 need_lib_prefix=no
17940 runpath_var=LD_RUN_PATH
17941 ;;
17942 siemens)
17943 need_lib_prefix=no
17944 ;;
17945 motorola)
17946 need_lib_prefix=no
17947 need_version=no
17948 shlibpath_overrides_runpath=no
17949 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17950 ;;
17951 esac
17952 ;;
17953
17954 sysv4*MP*)
17955 if test -d /usr/nec ;then
17956 version_type=linux # correct to gnu/linux during the next big refactor
17957 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17958 soname_spec='$libname${shared_ext}.$major'
17959 shlibpath_var=LD_LIBRARY_PATH
17960 fi
17961 ;;
17962
17963 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17964 version_type=freebsd-elf
17965 need_lib_prefix=no
17966 need_version=no
17967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17968 soname_spec='${libname}${release}${shared_ext}$major'
17969 shlibpath_var=LD_LIBRARY_PATH
17970 shlibpath_overrides_runpath=yes
17971 hardcode_into_libs=yes
17972 if test "$with_gnu_ld" = yes; then
17973 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17974 else
17975 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17976 case $host_os in
17977 sco3.2v5*)
17978 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17979 ;;
17980 esac
17981 fi
17982 sys_lib_dlsearch_path_spec='/usr/lib'
17983 ;;
17984
17985 tpf*)
17986 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17987 version_type=linux # correct to gnu/linux during the next big refactor
17988 need_lib_prefix=no
17989 need_version=no
17990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17991 shlibpath_var=LD_LIBRARY_PATH
17992 shlibpath_overrides_runpath=no
17993 hardcode_into_libs=yes
17994 ;;
17995
17996 uts4*)
17997 version_type=linux # correct to gnu/linux during the next big refactor
17998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17999 soname_spec='${libname}${release}${shared_ext}$major'
18000 shlibpath_var=LD_LIBRARY_PATH
18001 ;;
18002
18003 *)
18004 dynamic_linker=no
18005 ;;
18006 esac
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18008 $as_echo "$dynamic_linker" >&6; }
18009 test "$dynamic_linker" = no && can_build_shared=no
18010
18011 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18012 if test "$GCC" = yes; then
18013 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18014 fi
18015
18016 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18017 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18018 fi
18019 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18020 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18021 fi
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18115 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18116 hardcode_action=
18117 if test -n "$hardcode_libdir_flag_spec" ||
18118 test -n "$runpath_var" ||
18119 test "X$hardcode_automatic" = "Xyes" ; then
18120
18121 # We can hardcode non-existent directories.
18122 if test "$hardcode_direct" != no &&
18123 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18124 # have to relink, otherwise we might link with an installed library
18125 # when we should be linking with a yet-to-be-installed one
18126 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18127 test "$hardcode_minus_L" != no; then
18128 # Linking always hardcodes the temporary library directory.
18129 hardcode_action=relink
18130 else
18131 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18132 hardcode_action=immediate
18133 fi
18134 else
18135 # We cannot hardcode anything, or else we can only hardcode existing
18136 # directories.
18137 hardcode_action=unsupported
18138 fi
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18140 $as_echo "$hardcode_action" >&6; }
18141
18142 if test "$hardcode_action" = relink ||
18143 test "$inherit_rpath" = yes; then
18144 # Fast installation is not supported
18145 enable_fast_install=no
18146 elif test "$shlibpath_overrides_runpath" = yes ||
18147 test "$enable_shared" = no; then
18148 # Fast installation is not necessary
18149 enable_fast_install=needless
18150 fi
18151
18152
18153
18154
18155
18156
18157 if test "x$enable_dlopen" != xyes; then
18158 enable_dlopen=unknown
18159 enable_dlopen_self=unknown
18160 enable_dlopen_self_static=unknown
18161 else
18162 lt_cv_dlopen=no
18163 lt_cv_dlopen_libs=
18164
18165 case $host_os in
18166 beos*)
18167 lt_cv_dlopen="load_add_on"
18168 lt_cv_dlopen_libs=
18169 lt_cv_dlopen_self=yes
18170 ;;
18171
18172 mingw* | pw32* | cegcc*)
18173 lt_cv_dlopen="LoadLibrary"
18174 lt_cv_dlopen_libs=
18175 ;;
18176
18177 cygwin*)
18178 lt_cv_dlopen="dlopen"
18179 lt_cv_dlopen_libs=
18180 ;;
18181
18182 darwin*)
18183 # if libdl is installed we need to link against it
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18185 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18186 if ${ac_cv_lib_dl_dlopen+:} false; then :
18187 $as_echo_n "(cached) " >&6
18188 else
18189 ac_check_lib_save_LIBS=$LIBS
18190 LIBS="-ldl $LIBS"
18191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18192 /* end confdefs.h. */
18193
18194 /* Override any GCC internal prototype to avoid an error.
18195 Use char because int might match the return type of a GCC
18196 builtin and then its argument prototype would still apply. */
18197 #ifdef __cplusplus
18198 extern "C"
18199 #endif
18200 char dlopen ();
18201 int
18202 main ()
18203 {
18204 return dlopen ();
18205 ;
18206 return 0;
18207 }
18208 _ACEOF
18209 if ac_fn_c_try_link "$LINENO"; then :
18210 ac_cv_lib_dl_dlopen=yes
18211 else
18212 ac_cv_lib_dl_dlopen=no
18213 fi
18214 rm -f core conftest.err conftest.$ac_objext \
18215 conftest$ac_exeext conftest.$ac_ext
18216 LIBS=$ac_check_lib_save_LIBS
18217 fi
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18219 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18220 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18221 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18222 else
18223
18224 lt_cv_dlopen="dyld"
18225 lt_cv_dlopen_libs=
18226 lt_cv_dlopen_self=yes
18227
18228 fi
18229
18230 ;;
18231
18232 *)
18233 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18234 if test "x$ac_cv_func_shl_load" = xyes; then :
18235 lt_cv_dlopen="shl_load"
18236 else
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18238 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18239 if ${ac_cv_lib_dld_shl_load+:} false; then :
18240 $as_echo_n "(cached) " >&6
18241 else
18242 ac_check_lib_save_LIBS=$LIBS
18243 LIBS="-ldld $LIBS"
18244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18245 /* end confdefs.h. */
18246
18247 /* Override any GCC internal prototype to avoid an error.
18248 Use char because int might match the return type of a GCC
18249 builtin and then its argument prototype would still apply. */
18250 #ifdef __cplusplus
18251 extern "C"
18252 #endif
18253 char shl_load ();
18254 int
18255 main ()
18256 {
18257 return shl_load ();
18258 ;
18259 return 0;
18260 }
18261 _ACEOF
18262 if ac_fn_c_try_link "$LINENO"; then :
18263 ac_cv_lib_dld_shl_load=yes
18264 else
18265 ac_cv_lib_dld_shl_load=no
18266 fi
18267 rm -f core conftest.err conftest.$ac_objext \
18268 conftest$ac_exeext conftest.$ac_ext
18269 LIBS=$ac_check_lib_save_LIBS
18270 fi
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18272 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18273 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18274 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18275 else
18276 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18277 if test "x$ac_cv_func_dlopen" = xyes; then :
18278 lt_cv_dlopen="dlopen"
18279 else
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18281 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18282 if ${ac_cv_lib_dl_dlopen+:} false; then :
18283 $as_echo_n "(cached) " >&6
18284 else
18285 ac_check_lib_save_LIBS=$LIBS
18286 LIBS="-ldl $LIBS"
18287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18288 /* end confdefs.h. */
18289
18290 /* Override any GCC internal prototype to avoid an error.
18291 Use char because int might match the return type of a GCC
18292 builtin and then its argument prototype would still apply. */
18293 #ifdef __cplusplus
18294 extern "C"
18295 #endif
18296 char dlopen ();
18297 int
18298 main ()
18299 {
18300 return dlopen ();
18301 ;
18302 return 0;
18303 }
18304 _ACEOF
18305 if ac_fn_c_try_link "$LINENO"; then :
18306 ac_cv_lib_dl_dlopen=yes
18307 else
18308 ac_cv_lib_dl_dlopen=no
18309 fi
18310 rm -f core conftest.err conftest.$ac_objext \
18311 conftest$ac_exeext conftest.$ac_ext
18312 LIBS=$ac_check_lib_save_LIBS
18313 fi
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18315 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18316 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18317 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18318 else
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18320 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18321 if ${ac_cv_lib_svld_dlopen+:} false; then :
18322 $as_echo_n "(cached) " >&6
18323 else
18324 ac_check_lib_save_LIBS=$LIBS
18325 LIBS="-lsvld $LIBS"
18326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18327 /* end confdefs.h. */
18328
18329 /* Override any GCC internal prototype to avoid an error.
18330 Use char because int might match the return type of a GCC
18331 builtin and then its argument prototype would still apply. */
18332 #ifdef __cplusplus
18333 extern "C"
18334 #endif
18335 char dlopen ();
18336 int
18337 main ()
18338 {
18339 return dlopen ();
18340 ;
18341 return 0;
18342 }
18343 _ACEOF
18344 if ac_fn_c_try_link "$LINENO"; then :
18345 ac_cv_lib_svld_dlopen=yes
18346 else
18347 ac_cv_lib_svld_dlopen=no
18348 fi
18349 rm -f core conftest.err conftest.$ac_objext \
18350 conftest$ac_exeext conftest.$ac_ext
18351 LIBS=$ac_check_lib_save_LIBS
18352 fi
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18354 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18355 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18356 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18357 else
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18359 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18360 if ${ac_cv_lib_dld_dld_link+:} false; then :
18361 $as_echo_n "(cached) " >&6
18362 else
18363 ac_check_lib_save_LIBS=$LIBS
18364 LIBS="-ldld $LIBS"
18365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18366 /* end confdefs.h. */
18367
18368 /* Override any GCC internal prototype to avoid an error.
18369 Use char because int might match the return type of a GCC
18370 builtin and then its argument prototype would still apply. */
18371 #ifdef __cplusplus
18372 extern "C"
18373 #endif
18374 char dld_link ();
18375 int
18376 main ()
18377 {
18378 return dld_link ();
18379 ;
18380 return 0;
18381 }
18382 _ACEOF
18383 if ac_fn_c_try_link "$LINENO"; then :
18384 ac_cv_lib_dld_dld_link=yes
18385 else
18386 ac_cv_lib_dld_dld_link=no
18387 fi
18388 rm -f core conftest.err conftest.$ac_objext \
18389 conftest$ac_exeext conftest.$ac_ext
18390 LIBS=$ac_check_lib_save_LIBS
18391 fi
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18393 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18394 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18395 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18396 fi
18397
18398
18399 fi
18400
18401
18402 fi
18403
18404
18405 fi
18406
18407
18408 fi
18409
18410
18411 fi
18412
18413 ;;
18414 esac
18415
18416 if test "x$lt_cv_dlopen" != xno; then
18417 enable_dlopen=yes
18418 else
18419 enable_dlopen=no
18420 fi
18421
18422 case $lt_cv_dlopen in
18423 dlopen)
18424 save_CPPFLAGS="$CPPFLAGS"
18425 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18426
18427 save_LDFLAGS="$LDFLAGS"
18428 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18429
18430 save_LIBS="$LIBS"
18431 LIBS="$lt_cv_dlopen_libs $LIBS"
18432
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18434 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18435 if ${lt_cv_dlopen_self+:} false; then :
18436 $as_echo_n "(cached) " >&6
18437 else
18438 if test "$cross_compiling" = yes; then :
18439 lt_cv_dlopen_self=cross
18440 else
18441 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18442 lt_status=$lt_dlunknown
18443 cat > conftest.$ac_ext <<_LT_EOF
18444 #line $LINENO "configure"
18445 #include "confdefs.h"
18446
18447 #if HAVE_DLFCN_H
18448 #include <dlfcn.h>
18449 #endif
18450
18451 #include <stdio.h>
18452
18453 #ifdef RTLD_GLOBAL
18454 # define LT_DLGLOBAL RTLD_GLOBAL
18455 #else
18456 # ifdef DL_GLOBAL
18457 # define LT_DLGLOBAL DL_GLOBAL
18458 # else
18459 # define LT_DLGLOBAL 0
18460 # endif
18461 #endif
18462
18463 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18464 find out it does not work in some platform. */
18465 #ifndef LT_DLLAZY_OR_NOW
18466 # ifdef RTLD_LAZY
18467 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18468 # else
18469 # ifdef DL_LAZY
18470 # define LT_DLLAZY_OR_NOW DL_LAZY
18471 # else
18472 # ifdef RTLD_NOW
18473 # define LT_DLLAZY_OR_NOW RTLD_NOW
18474 # else
18475 # ifdef DL_NOW
18476 # define LT_DLLAZY_OR_NOW DL_NOW
18477 # else
18478 # define LT_DLLAZY_OR_NOW 0
18479 # endif
18480 # endif
18481 # endif
18482 # endif
18483 #endif
18484
18485 /* When -fvisbility=hidden is used, assume the code has been annotated
18486 correspondingly for the symbols needed. */
18487 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18488 int fnord () __attribute__((visibility("default")));
18489 #endif
18490
18491 int fnord () { return 42; }
18492 int main ()
18493 {
18494 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18495 int status = $lt_dlunknown;
18496
18497 if (self)
18498 {
18499 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18500 else
18501 {
18502 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18503 else puts (dlerror ());
18504 }
18505 /* dlclose (self); */
18506 }
18507 else
18508 puts (dlerror ());
18509
18510 return status;
18511 }
18512 _LT_EOF
18513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18514 (eval $ac_link) 2>&5
18515 ac_status=$?
18516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18517 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18518 (./conftest; exit; ) >&5 2>/dev/null
18519 lt_status=$?
18520 case x$lt_status in
18521 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18522 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18523 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18524 esac
18525 else :
18526 # compilation failed
18527 lt_cv_dlopen_self=no
18528 fi
18529 fi
18530 rm -fr conftest*
18531
18532
18533 fi
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18535 $as_echo "$lt_cv_dlopen_self" >&6; }
18536
18537 if test "x$lt_cv_dlopen_self" = xyes; then
18538 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18540 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18541 if ${lt_cv_dlopen_self_static+:} false; then :
18542 $as_echo_n "(cached) " >&6
18543 else
18544 if test "$cross_compiling" = yes; then :
18545 lt_cv_dlopen_self_static=cross
18546 else
18547 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18548 lt_status=$lt_dlunknown
18549 cat > conftest.$ac_ext <<_LT_EOF
18550 #line $LINENO "configure"
18551 #include "confdefs.h"
18552
18553 #if HAVE_DLFCN_H
18554 #include <dlfcn.h>
18555 #endif
18556
18557 #include <stdio.h>
18558
18559 #ifdef RTLD_GLOBAL
18560 # define LT_DLGLOBAL RTLD_GLOBAL
18561 #else
18562 # ifdef DL_GLOBAL
18563 # define LT_DLGLOBAL DL_GLOBAL
18564 # else
18565 # define LT_DLGLOBAL 0
18566 # endif
18567 #endif
18568
18569 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18570 find out it does not work in some platform. */
18571 #ifndef LT_DLLAZY_OR_NOW
18572 # ifdef RTLD_LAZY
18573 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18574 # else
18575 # ifdef DL_LAZY
18576 # define LT_DLLAZY_OR_NOW DL_LAZY
18577 # else
18578 # ifdef RTLD_NOW
18579 # define LT_DLLAZY_OR_NOW RTLD_NOW
18580 # else
18581 # ifdef DL_NOW
18582 # define LT_DLLAZY_OR_NOW DL_NOW
18583 # else
18584 # define LT_DLLAZY_OR_NOW 0
18585 # endif
18586 # endif
18587 # endif
18588 # endif
18589 #endif
18590
18591 /* When -fvisbility=hidden is used, assume the code has been annotated
18592 correspondingly for the symbols needed. */
18593 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18594 int fnord () __attribute__((visibility("default")));
18595 #endif
18596
18597 int fnord () { return 42; }
18598 int main ()
18599 {
18600 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18601 int status = $lt_dlunknown;
18602
18603 if (self)
18604 {
18605 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18606 else
18607 {
18608 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18609 else puts (dlerror ());
18610 }
18611 /* dlclose (self); */
18612 }
18613 else
18614 puts (dlerror ());
18615
18616 return status;
18617 }
18618 _LT_EOF
18619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18620 (eval $ac_link) 2>&5
18621 ac_status=$?
18622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18623 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18624 (./conftest; exit; ) >&5 2>/dev/null
18625 lt_status=$?
18626 case x$lt_status in
18627 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18628 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18629 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18630 esac
18631 else :
18632 # compilation failed
18633 lt_cv_dlopen_self_static=no
18634 fi
18635 fi
18636 rm -fr conftest*
18637
18638
18639 fi
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18641 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18642 fi
18643
18644 CPPFLAGS="$save_CPPFLAGS"
18645 LDFLAGS="$save_LDFLAGS"
18646 LIBS="$save_LIBS"
18647 ;;
18648 esac
18649
18650 case $lt_cv_dlopen_self in
18651 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18652 *) enable_dlopen_self=unknown ;;
18653 esac
18654
18655 case $lt_cv_dlopen_self_static in
18656 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18657 *) enable_dlopen_self_static=unknown ;;
18658 esac
18659 fi
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677 striplib=
18678 old_striplib=
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18680 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18681 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18682 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18683 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18685 $as_echo "yes" >&6; }
18686 else
18687 # FIXME - insert some real tests, host_os isn't really good enough
18688 case $host_os in
18689 darwin*)
18690 if test -n "$STRIP" ; then
18691 striplib="$STRIP -x"
18692 old_striplib="$STRIP -S"
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18694 $as_echo "yes" >&6; }
18695 else
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18697 $as_echo "no" >&6; }
18698 fi
18699 ;;
18700 *)
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18702 $as_echo "no" >&6; }
18703 ;;
18704 esac
18705 fi
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718 # Report which library types will actually be built
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18720 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18722 $as_echo "$can_build_shared" >&6; }
18723
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18725 $as_echo_n "checking whether to build shared libraries... " >&6; }
18726 test "$can_build_shared" = "no" && enable_shared=no
18727
18728 # On AIX, shared libraries and static libraries use the same namespace, and
18729 # are all built from PIC.
18730 case $host_os in
18731 aix3*)
18732 test "$enable_shared" = yes && enable_static=no
18733 if test -n "$RANLIB"; then
18734 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18735 postinstall_cmds='$RANLIB $lib'
18736 fi
18737 ;;
18738
18739 aix[4-9]*)
18740 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18741 test "$enable_shared" = yes && enable_static=no
18742 fi
18743 ;;
18744 esac
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18746 $as_echo "$enable_shared" >&6; }
18747
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18749 $as_echo_n "checking whether to build static libraries... " >&6; }
18750 # Make sure either enable_shared or enable_static is yes.
18751 test "$enable_shared" = yes || enable_static=yes
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18753 $as_echo "$enable_static" >&6; }
18754
18755
18756
18757
18758 fi
18759 ac_ext=c
18760 ac_cpp='$CPP $CPPFLAGS'
18761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18764
18765 CC="$lt_save_CC"
18766
18767 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18768 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18769 (test "X$CXX" != "Xg++"))) ; then
18770 ac_ext=cpp
18771 ac_cpp='$CXXCPP $CPPFLAGS'
18772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18776 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18777 if test -z "$CXXCPP"; then
18778 if ${ac_cv_prog_CXXCPP+:} false; then :
18779 $as_echo_n "(cached) " >&6
18780 else
18781 # Double quotes because CXXCPP needs to be expanded
18782 for CXXCPP in "$CXX -E" "/lib/cpp"
18783 do
18784 ac_preproc_ok=false
18785 for ac_cxx_preproc_warn_flag in '' yes
18786 do
18787 # Use a header file that comes with gcc, so configuring glibc
18788 # with a fresh cross-compiler works.
18789 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18790 # <limits.h> exists even on freestanding compilers.
18791 # On the NeXT, cc -E runs the code through the compiler's parser,
18792 # not just through cpp. "Syntax error" is here to catch this case.
18793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18794 /* end confdefs.h. */
18795 #ifdef __STDC__
18796 # include <limits.h>
18797 #else
18798 # include <assert.h>
18799 #endif
18800 Syntax error
18801 _ACEOF
18802 if ac_fn_cxx_try_cpp "$LINENO"; then :
18803
18804 else
18805 # Broken: fails on valid input.
18806 continue
18807 fi
18808 rm -f conftest.err conftest.i conftest.$ac_ext
18809
18810 # OK, works on sane cases. Now check whether nonexistent headers
18811 # can be detected and how.
18812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18813 /* end confdefs.h. */
18814 #include <ac_nonexistent.h>
18815 _ACEOF
18816 if ac_fn_cxx_try_cpp "$LINENO"; then :
18817 # Broken: success on invalid input.
18818 continue
18819 else
18820 # Passes both tests.
18821 ac_preproc_ok=:
18822 break
18823 fi
18824 rm -f conftest.err conftest.i conftest.$ac_ext
18825
18826 done
18827 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18828 rm -f conftest.i conftest.err conftest.$ac_ext
18829 if $ac_preproc_ok; then :
18830 break
18831 fi
18832
18833 done
18834 ac_cv_prog_CXXCPP=$CXXCPP
18835
18836 fi
18837 CXXCPP=$ac_cv_prog_CXXCPP
18838 else
18839 ac_cv_prog_CXXCPP=$CXXCPP
18840 fi
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18842 $as_echo "$CXXCPP" >&6; }
18843 ac_preproc_ok=false
18844 for ac_cxx_preproc_warn_flag in '' yes
18845 do
18846 # Use a header file that comes with gcc, so configuring glibc
18847 # with a fresh cross-compiler works.
18848 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18849 # <limits.h> exists even on freestanding compilers.
18850 # On the NeXT, cc -E runs the code through the compiler's parser,
18851 # not just through cpp. "Syntax error" is here to catch this case.
18852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18853 /* end confdefs.h. */
18854 #ifdef __STDC__
18855 # include <limits.h>
18856 #else
18857 # include <assert.h>
18858 #endif
18859 Syntax error
18860 _ACEOF
18861 if ac_fn_cxx_try_cpp "$LINENO"; then :
18862
18863 else
18864 # Broken: fails on valid input.
18865 continue
18866 fi
18867 rm -f conftest.err conftest.i conftest.$ac_ext
18868
18869 # OK, works on sane cases. Now check whether nonexistent headers
18870 # can be detected and how.
18871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18872 /* end confdefs.h. */
18873 #include <ac_nonexistent.h>
18874 _ACEOF
18875 if ac_fn_cxx_try_cpp "$LINENO"; then :
18876 # Broken: success on invalid input.
18877 continue
18878 else
18879 # Passes both tests.
18880 ac_preproc_ok=:
18881 break
18882 fi
18883 rm -f conftest.err conftest.i conftest.$ac_ext
18884
18885 done
18886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18887 rm -f conftest.i conftest.err conftest.$ac_ext
18888 if $ac_preproc_ok; then :
18889
18890 else
18891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18893 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18894 See \`config.log' for more details" "$LINENO" 5; }
18895 fi
18896
18897 ac_ext=c
18898 ac_cpp='$CPP $CPPFLAGS'
18899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18902
18903 else
18904 _lt_caught_CXX_error=yes
18905 fi
18906
18907 ac_ext=cpp
18908 ac_cpp='$CXXCPP $CPPFLAGS'
18909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18912
18913 archive_cmds_need_lc_CXX=no
18914 allow_undefined_flag_CXX=
18915 always_export_symbols_CXX=no
18916 archive_expsym_cmds_CXX=
18917 compiler_needs_object_CXX=no
18918 export_dynamic_flag_spec_CXX=
18919 hardcode_direct_CXX=no
18920 hardcode_direct_absolute_CXX=no
18921 hardcode_libdir_flag_spec_CXX=
18922 hardcode_libdir_separator_CXX=
18923 hardcode_minus_L_CXX=no
18924 hardcode_shlibpath_var_CXX=unsupported
18925 hardcode_automatic_CXX=no
18926 inherit_rpath_CXX=no
18927 module_cmds_CXX=
18928 module_expsym_cmds_CXX=
18929 link_all_deplibs_CXX=unknown
18930 old_archive_cmds_CXX=$old_archive_cmds
18931 reload_flag_CXX=$reload_flag
18932 reload_cmds_CXX=$reload_cmds
18933 no_undefined_flag_CXX=
18934 whole_archive_flag_spec_CXX=
18935 enable_shared_with_static_runtimes_CXX=no
18936
18937 # Source file extension for C++ test sources.
18938 ac_ext=cpp
18939
18940 # Object file extension for compiled C++ test sources.
18941 objext=o
18942 objext_CXX=$objext
18943
18944 # No sense in running all these tests if we already determined that
18945 # the CXX compiler isn't working. Some variables (like enable_shared)
18946 # are currently assumed to apply to all compilers on this platform,
18947 # and will be corrupted by setting them based on a non-working compiler.
18948 if test "$_lt_caught_CXX_error" != yes; then
18949 # Code to be used in simple compile tests
18950 lt_simple_compile_test_code="int some_variable = 0;"
18951
18952 # Code to be used in simple link tests
18953 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18954
18955 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18956
18957
18958
18959
18960
18961
18962 # If no C compiler was specified, use CC.
18963 LTCC=${LTCC-"$CC"}
18964
18965 # If no C compiler flags were specified, use CFLAGS.
18966 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18967
18968 # Allow CC to be a program name with arguments.
18969 compiler=$CC
18970
18971
18972 # save warnings/boilerplate of simple test code
18973 ac_outfile=conftest.$ac_objext
18974 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18975 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18976 _lt_compiler_boilerplate=`cat conftest.err`
18977 $RM conftest*
18978
18979 ac_outfile=conftest.$ac_objext
18980 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18981 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18982 _lt_linker_boilerplate=`cat conftest.err`
18983 $RM -r conftest*
18984
18985
18986 # Allow CC to be a program name with arguments.
18987 lt_save_CC=$CC
18988 lt_save_CFLAGS=$CFLAGS
18989 lt_save_LD=$LD
18990 lt_save_GCC=$GCC
18991 GCC=$GXX
18992 lt_save_with_gnu_ld=$with_gnu_ld
18993 lt_save_path_LD=$lt_cv_path_LD
18994 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18995 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18996 else
18997 $as_unset lt_cv_prog_gnu_ld
18998 fi
18999 if test -n "${lt_cv_path_LDCXX+set}"; then
19000 lt_cv_path_LD=$lt_cv_path_LDCXX
19001 else
19002 $as_unset lt_cv_path_LD
19003 fi
19004 test -z "${LDCXX+set}" || LD=$LDCXX
19005 CC=${CXX-"c++"}
19006 CFLAGS=$CXXFLAGS
19007 compiler=$CC
19008 compiler_CXX=$CC
19009 for cc_temp in $compiler""; do
19010 case $cc_temp in
19011 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19012 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19013 \-*) ;;
19014 *) break;;
19015 esac
19016 done
19017 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19018
19019
19020 if test -n "$compiler"; then
19021 # We don't want -fno-exception when compiling C++ code, so set the
19022 # no_builtin_flag separately
19023 if test "$GXX" = yes; then
19024 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19025 else
19026 lt_prog_compiler_no_builtin_flag_CXX=
19027 fi
19028
19029 if test "$GXX" = yes; then
19030 # Set up default GNU C++ configuration
19031
19032
19033
19034 # Check whether --with-gnu-ld was given.
19035 if test "${with_gnu_ld+set}" = set; then :
19036 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19037 else
19038 with_gnu_ld=no
19039 fi
19040
19041 ac_prog=ld
19042 if test "$GCC" = yes; then
19043 # Check if gcc -print-prog-name=ld gives a path.
19044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19045 $as_echo_n "checking for ld used by $CC... " >&6; }
19046 case $host in
19047 *-*-mingw*)
19048 # gcc leaves a trailing carriage return which upsets mingw
19049 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19050 *)
19051 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19052 esac
19053 case $ac_prog in
19054 # Accept absolute paths.
19055 [\\/]* | ?:[\\/]*)
19056 re_direlt='/[^/][^/]*/\.\./'
19057 # Canonicalize the pathname of ld
19058 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19059 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19060 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19061 done
19062 test -z "$LD" && LD="$ac_prog"
19063 ;;
19064 "")
19065 # If it fails, then pretend we aren't using GCC.
19066 ac_prog=ld
19067 ;;
19068 *)
19069 # If it is relative, then search for the first ld in PATH.
19070 with_gnu_ld=unknown
19071 ;;
19072 esac
19073 elif test "$with_gnu_ld" = yes; then
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19075 $as_echo_n "checking for GNU ld... " >&6; }
19076 else
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19078 $as_echo_n "checking for non-GNU ld... " >&6; }
19079 fi
19080 if ${lt_cv_path_LD+:} false; then :
19081 $as_echo_n "(cached) " >&6
19082 else
19083 if test -z "$LD"; then
19084 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19085 for ac_dir in $PATH; do
19086 IFS="$lt_save_ifs"
19087 test -z "$ac_dir" && ac_dir=.
19088 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19089 lt_cv_path_LD="$ac_dir/$ac_prog"
19090 # Check to see if the program is GNU ld. I'd rather use --version,
19091 # but apparently some variants of GNU ld only accept -v.
19092 # Break only if it was the GNU/non-GNU ld that we prefer.
19093 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19094 *GNU* | *'with BFD'*)
19095 test "$with_gnu_ld" != no && break
19096 ;;
19097 *)
19098 test "$with_gnu_ld" != yes && break
19099 ;;
19100 esac
19101 fi
19102 done
19103 IFS="$lt_save_ifs"
19104 else
19105 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19106 fi
19107 fi
19108
19109 LD="$lt_cv_path_LD"
19110 if test -n "$LD"; then
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19112 $as_echo "$LD" >&6; }
19113 else
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19115 $as_echo "no" >&6; }
19116 fi
19117 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19119 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19120 if ${lt_cv_prog_gnu_ld+:} false; then :
19121 $as_echo_n "(cached) " >&6
19122 else
19123 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19124 case `$LD -v 2>&1 </dev/null` in
19125 *GNU* | *'with BFD'*)
19126 lt_cv_prog_gnu_ld=yes
19127 ;;
19128 *)
19129 lt_cv_prog_gnu_ld=no
19130 ;;
19131 esac
19132 fi
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19134 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19135 with_gnu_ld=$lt_cv_prog_gnu_ld
19136
19137
19138
19139
19140
19141
19142
19143 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19144 # archiving commands below assume that GNU ld is being used.
19145 if test "$with_gnu_ld" = yes; then
19146 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19147 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'
19148
19149 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19150 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19151
19152 # If archive_cmds runs LD, not CC, wlarc should be empty
19153 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19154 # investigate it a little bit more. (MM)
19155 wlarc='${wl}'
19156
19157 # ancient GNU ld didn't support --whole-archive et. al.
19158 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19159 $GREP 'no-whole-archive' > /dev/null; then
19160 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19161 else
19162 whole_archive_flag_spec_CXX=
19163 fi
19164 else
19165 with_gnu_ld=no
19166 wlarc=
19167
19168 # A generic and very simple default shared library creation
19169 # command for GNU C++ for the case where it uses the native
19170 # linker, instead of GNU ld. If possible, this setting should
19171 # overridden to take advantage of the native linker features on
19172 # the platform it is being used on.
19173 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19174 fi
19175
19176 # Commands to make compiler produce verbose output that lists
19177 # what "hidden" libraries, object files and flags are used when
19178 # linking a shared library.
19179 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19180
19181 else
19182 GXX=no
19183 with_gnu_ld=no
19184 wlarc=
19185 fi
19186
19187 # PORTME: fill in a description of your system's C++ link characteristics
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19189 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19190 ld_shlibs_CXX=yes
19191 case $host_os in
19192 aix3*)
19193 # FIXME: insert proper C++ library support
19194 ld_shlibs_CXX=no
19195 ;;
19196 aix[4-9]*)
19197 if test "$host_cpu" = ia64; then
19198 # On IA64, the linker does run time linking by default, so we don't
19199 # have to do anything special.
19200 aix_use_runtimelinking=no
19201 exp_sym_flag='-Bexport'
19202 no_entry_flag=""
19203 else
19204 aix_use_runtimelinking=no
19205
19206 # Test if we are trying to use run time linking or normal
19207 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19208 # need to do runtime linking.
19209 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19210 for ld_flag in $LDFLAGS; do
19211 case $ld_flag in
19212 *-brtl*)
19213 aix_use_runtimelinking=yes
19214 break
19215 ;;
19216 esac
19217 done
19218 ;;
19219 esac
19220
19221 exp_sym_flag='-bexport'
19222 no_entry_flag='-bnoentry'
19223 fi
19224
19225 # When large executables or shared objects are built, AIX ld can
19226 # have problems creating the table of contents. If linking a library
19227 # or program results in "error TOC overflow" add -mminimal-toc to
19228 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19229 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19230
19231 archive_cmds_CXX=''
19232 hardcode_direct_CXX=yes
19233 hardcode_direct_absolute_CXX=yes
19234 hardcode_libdir_separator_CXX=':'
19235 link_all_deplibs_CXX=yes
19236 file_list_spec_CXX='${wl}-f,'
19237
19238 if test "$GXX" = yes; then
19239 case $host_os in aix4.[012]|aix4.[012].*)
19240 # We only want to do this on AIX 4.2 and lower, the check
19241 # below for broken collect2 doesn't work under 4.3+
19242 collect2name=`${CC} -print-prog-name=collect2`
19243 if test -f "$collect2name" &&
19244 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19245 then
19246 # We have reworked collect2
19247 :
19248 else
19249 # We have old collect2
19250 hardcode_direct_CXX=unsupported
19251 # It fails to find uninstalled libraries when the uninstalled
19252 # path is not listed in the libpath. Setting hardcode_minus_L
19253 # to unsupported forces relinking
19254 hardcode_minus_L_CXX=yes
19255 hardcode_libdir_flag_spec_CXX='-L$libdir'
19256 hardcode_libdir_separator_CXX=
19257 fi
19258 esac
19259 shared_flag='-shared'
19260 if test "$aix_use_runtimelinking" = yes; then
19261 shared_flag="$shared_flag "'${wl}-G'
19262 fi
19263 else
19264 # not using gcc
19265 if test "$host_cpu" = ia64; then
19266 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19267 # chokes on -Wl,-G. The following line is correct:
19268 shared_flag='-G'
19269 else
19270 if test "$aix_use_runtimelinking" = yes; then
19271 shared_flag='${wl}-G'
19272 else
19273 shared_flag='${wl}-bM:SRE'
19274 fi
19275 fi
19276 fi
19277
19278 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19279 # It seems that -bexpall does not export symbols beginning with
19280 # underscore (_), so it is better to generate a list of symbols to
19281 # export.
19282 always_export_symbols_CXX=yes
19283 if test "$aix_use_runtimelinking" = yes; then
19284 # Warning - without using the other runtime loading flags (-brtl),
19285 # -berok will link without error, but may produce a broken library.
19286 allow_undefined_flag_CXX='-berok'
19287 # Determine the default libpath from the value encoded in an empty
19288 # executable.
19289 if test "${lt_cv_aix_libpath+set}" = set; then
19290 aix_libpath=$lt_cv_aix_libpath
19291 else
19292 if ${lt_cv_aix_libpath__CXX+:} false; then :
19293 $as_echo_n "(cached) " >&6
19294 else
19295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19296 /* end confdefs.h. */
19297
19298 int
19299 main ()
19300 {
19301
19302 ;
19303 return 0;
19304 }
19305 _ACEOF
19306 if ac_fn_cxx_try_link "$LINENO"; then :
19307
19308 lt_aix_libpath_sed='
19309 /Import File Strings/,/^$/ {
19310 /^0/ {
19311 s/^0 *\([^ ]*\) *$/\1/
19312 p
19313 }
19314 }'
19315 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19316 # Check for a 64-bit object if we didn't find anything.
19317 if test -z "$lt_cv_aix_libpath__CXX"; then
19318 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19319 fi
19320 fi
19321 rm -f core conftest.err conftest.$ac_objext \
19322 conftest$ac_exeext conftest.$ac_ext
19323 if test -z "$lt_cv_aix_libpath__CXX"; then
19324 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
19325 fi
19326
19327 fi
19328
19329 aix_libpath=$lt_cv_aix_libpath__CXX
19330 fi
19331
19332 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19333
19334 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"
19335 else
19336 if test "$host_cpu" = ia64; then
19337 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19338 allow_undefined_flag_CXX="-z nodefs"
19339 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"
19340 else
19341 # Determine the default libpath from the value encoded in an
19342 # empty executable.
19343 if test "${lt_cv_aix_libpath+set}" = set; then
19344 aix_libpath=$lt_cv_aix_libpath
19345 else
19346 if ${lt_cv_aix_libpath__CXX+:} false; then :
19347 $as_echo_n "(cached) " >&6
19348 else
19349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19350 /* end confdefs.h. */
19351
19352 int
19353 main ()
19354 {
19355
19356 ;
19357 return 0;
19358 }
19359 _ACEOF
19360 if ac_fn_cxx_try_link "$LINENO"; then :
19361
19362 lt_aix_libpath_sed='
19363 /Import File Strings/,/^$/ {
19364 /^0/ {
19365 s/^0 *\([^ ]*\) *$/\1/
19366 p
19367 }
19368 }'
19369 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19370 # Check for a 64-bit object if we didn't find anything.
19371 if test -z "$lt_cv_aix_libpath__CXX"; then
19372 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19373 fi
19374 fi
19375 rm -f core conftest.err conftest.$ac_objext \
19376 conftest$ac_exeext conftest.$ac_ext
19377 if test -z "$lt_cv_aix_libpath__CXX"; then
19378 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
19379 fi
19380
19381 fi
19382
19383 aix_libpath=$lt_cv_aix_libpath__CXX
19384 fi
19385
19386 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19387 # Warning - without using the other run time loading flags,
19388 # -berok will link without error, but may produce a broken library.
19389 no_undefined_flag_CXX=' ${wl}-bernotok'
19390 allow_undefined_flag_CXX=' ${wl}-berok'
19391 if test "$with_gnu_ld" = yes; then
19392 # We only use this code for GNU lds that support --whole-archive.
19393 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19394 else
19395 # Exported symbols can be pulled into shared objects from archives
19396 whole_archive_flag_spec_CXX='$convenience'
19397 fi
19398 archive_cmds_need_lc_CXX=yes
19399 # This is similar to how AIX traditionally builds its shared
19400 # libraries.
19401 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'
19402 fi
19403 fi
19404 ;;
19405
19406 beos*)
19407 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19408 allow_undefined_flag_CXX=unsupported
19409 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
19410 # support --undefined. This deserves some investigation. FIXME
19411 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19412 else
19413 ld_shlibs_CXX=no
19414 fi
19415 ;;
19416
19417 chorus*)
19418 case $cc_basename in
19419 *)
19420 # FIXME: insert proper C++ library support
19421 ld_shlibs_CXX=no
19422 ;;
19423 esac
19424 ;;
19425
19426 cygwin* | mingw* | pw32* | cegcc*)
19427 case $GXX,$cc_basename in
19428 ,cl* | no,cl*)
19429 # Native MSVC
19430 # hardcode_libdir_flag_spec is actually meaningless, as there is
19431 # no search path for DLLs.
19432 hardcode_libdir_flag_spec_CXX=' '
19433 allow_undefined_flag_CXX=unsupported
19434 always_export_symbols_CXX=yes
19435 file_list_spec_CXX='@'
19436 # Tell ltmain to make .lib files, not .a files.
19437 libext=lib
19438 # Tell ltmain to make .dll files, not .so files.
19439 shrext_cmds=".dll"
19440 # FIXME: Setting linknames here is a bad hack.
19441 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
19442 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19443 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
19444 else
19445 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
19446 fi~
19447 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19448 linknames='
19449 # The linker will not automatically build a static lib if we build a DLL.
19450 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
19451 enable_shared_with_static_runtimes_CXX=yes
19452 # Don't use ranlib
19453 old_postinstall_cmds_CXX='chmod 644 $oldlib'
19454 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
19455 lt_tool_outputfile="@TOOL_OUTPUT@"~
19456 case $lt_outputfile in
19457 *.exe|*.EXE) ;;
19458 *)
19459 lt_outputfile="$lt_outputfile.exe"
19460 lt_tool_outputfile="$lt_tool_outputfile.exe"
19461 ;;
19462 esac~
19463 func_to_tool_file "$lt_outputfile"~
19464 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
19465 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19466 $RM "$lt_outputfile.manifest";
19467 fi'
19468 ;;
19469 *)
19470 # g++
19471 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19472 # as there is no search path for DLLs.
19473 hardcode_libdir_flag_spec_CXX='-L$libdir'
19474 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19475 allow_undefined_flag_CXX=unsupported
19476 always_export_symbols_CXX=no
19477 enable_shared_with_static_runtimes_CXX=yes
19478
19479 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19480 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'
19481 # If the export-symbols file already is a .def file (1st line
19482 # is EXPORTS), use it as is; otherwise, prepend...
19483 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19484 cp $export_symbols $output_objdir/$soname.def;
19485 else
19486 echo EXPORTS > $output_objdir/$soname.def;
19487 cat $export_symbols >> $output_objdir/$soname.def;
19488 fi~
19489 $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'
19490 else
19491 ld_shlibs_CXX=no
19492 fi
19493 ;;
19494 esac
19495 ;;
19496 darwin* | rhapsody*)
19497
19498
19499 archive_cmds_need_lc_CXX=no
19500 hardcode_direct_CXX=no
19501 hardcode_automatic_CXX=yes
19502 hardcode_shlibpath_var_CXX=unsupported
19503 if test "$lt_cv_ld_force_load" = "yes"; then
19504 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\"`'
19505
19506 else
19507 whole_archive_flag_spec_CXX=''
19508 fi
19509 link_all_deplibs_CXX=yes
19510 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19511 case $cc_basename in
19512 ifort*) _lt_dar_can_shared=yes ;;
19513 *) _lt_dar_can_shared=$GCC ;;
19514 esac
19515 if test "$_lt_dar_can_shared" = "yes"; then
19516 output_verbose_link_cmd=func_echo_all
19517 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}"
19518 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19519 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}"
19520 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}"
19521 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19522 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}"
19523 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}"
19524 fi
19525
19526 else
19527 ld_shlibs_CXX=no
19528 fi
19529
19530 ;;
19531
19532 dgux*)
19533 case $cc_basename in
19534 ec++*)
19535 # FIXME: insert proper C++ library support
19536 ld_shlibs_CXX=no
19537 ;;
19538 ghcx*)
19539 # Green Hills C++ Compiler
19540 # FIXME: insert proper C++ library support
19541 ld_shlibs_CXX=no
19542 ;;
19543 *)
19544 # FIXME: insert proper C++ library support
19545 ld_shlibs_CXX=no
19546 ;;
19547 esac
19548 ;;
19549
19550 freebsd2.*)
19551 # C++ shared libraries reported to be fairly broken before
19552 # switch to ELF
19553 ld_shlibs_CXX=no
19554 ;;
19555
19556 freebsd-elf*)
19557 archive_cmds_need_lc_CXX=no
19558 ;;
19559
19560 freebsd* | dragonfly*)
19561 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19562 # conventions
19563 ld_shlibs_CXX=yes
19564 ;;
19565
19566 gnu*)
19567 ;;
19568
19569 haiku*)
19570 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19571 link_all_deplibs_CXX=yes
19572 ;;
19573
19574 hpux9*)
19575 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19576 hardcode_libdir_separator_CXX=:
19577 export_dynamic_flag_spec_CXX='${wl}-E'
19578 hardcode_direct_CXX=yes
19579 hardcode_minus_L_CXX=yes # Not in the search PATH,
19580 # but as the default
19581 # location of the library.
19582
19583 case $cc_basename in
19584 CC*)
19585 # FIXME: insert proper C++ library support
19586 ld_shlibs_CXX=no
19587 ;;
19588 aCC*)
19589 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'
19590 # Commands to make compiler produce verbose output that lists
19591 # what "hidden" libraries, object files and flags are used when
19592 # linking a shared library.
19593 #
19594 # There doesn't appear to be a way to prevent this compiler from
19595 # explicitly linking system object files so we need to strip them
19596 # from the output so that they don't get included in the library
19597 # dependencies.
19598 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"'
19599 ;;
19600 *)
19601 if test "$GXX" = yes; then
19602 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'
19603 else
19604 # FIXME: insert proper C++ library support
19605 ld_shlibs_CXX=no
19606 fi
19607 ;;
19608 esac
19609 ;;
19610
19611 hpux10*|hpux11*)
19612 if test $with_gnu_ld = no; then
19613 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19614 hardcode_libdir_separator_CXX=:
19615
19616 case $host_cpu in
19617 hppa*64*|ia64*)
19618 ;;
19619 *)
19620 export_dynamic_flag_spec_CXX='${wl}-E'
19621 ;;
19622 esac
19623 fi
19624 case $host_cpu in
19625 hppa*64*|ia64*)
19626 hardcode_direct_CXX=no
19627 hardcode_shlibpath_var_CXX=no
19628 ;;
19629 *)
19630 hardcode_direct_CXX=yes
19631 hardcode_direct_absolute_CXX=yes
19632 hardcode_minus_L_CXX=yes # Not in the search PATH,
19633 # but as the default
19634 # location of the library.
19635 ;;
19636 esac
19637
19638 case $cc_basename in
19639 CC*)
19640 # FIXME: insert proper C++ library support
19641 ld_shlibs_CXX=no
19642 ;;
19643 aCC*)
19644 case $host_cpu in
19645 hppa*64*)
19646 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19647 ;;
19648 ia64*)
19649 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19650 ;;
19651 *)
19652 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19653 ;;
19654 esac
19655 # Commands to make compiler produce verbose output that lists
19656 # what "hidden" libraries, object files and flags are used when
19657 # linking a shared library.
19658 #
19659 # There doesn't appear to be a way to prevent this compiler from
19660 # explicitly linking system object files so we need to strip them
19661 # from the output so that they don't get included in the library
19662 # dependencies.
19663 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"'
19664 ;;
19665 *)
19666 if test "$GXX" = yes; then
19667 if test $with_gnu_ld = no; then
19668 case $host_cpu in
19669 hppa*64*)
19670 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19671 ;;
19672 ia64*)
19673 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19674 ;;
19675 *)
19676 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'
19677 ;;
19678 esac
19679 fi
19680 else
19681 # FIXME: insert proper C++ library support
19682 ld_shlibs_CXX=no
19683 fi
19684 ;;
19685 esac
19686 ;;
19687
19688 interix[3-9]*)
19689 hardcode_direct_CXX=no
19690 hardcode_shlibpath_var_CXX=no
19691 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19692 export_dynamic_flag_spec_CXX='${wl}-E'
19693 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19694 # Instead, shared libraries are loaded at an image base (0x10000000 by
19695 # default) and relocated if they conflict, which is a slow very memory
19696 # consuming and fragmenting process. To avoid this, we pick a random,
19697 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19698 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19699 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'
19700 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'
19701 ;;
19702 irix5* | irix6*)
19703 case $cc_basename in
19704 CC*)
19705 # SGI C++
19706 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'
19707
19708 # Archives containing C++ object files must be created using
19709 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19710 # necessary to make sure instantiated templates are included
19711 # in the archive.
19712 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19713 ;;
19714 *)
19715 if test "$GXX" = yes; then
19716 if test "$with_gnu_ld" = no; then
19717 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'
19718 else
19719 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'
19720 fi
19721 fi
19722 link_all_deplibs_CXX=yes
19723 ;;
19724 esac
19725 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19726 hardcode_libdir_separator_CXX=:
19727 inherit_rpath_CXX=yes
19728 ;;
19729
19730 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19731 case $cc_basename in
19732 KCC*)
19733 # Kuck and Associates, Inc. (KAI) C++ Compiler
19734
19735 # KCC will only create a shared library if the output file
19736 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19737 # to its proper name (with version) after linking.
19738 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'
19739 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'
19740 # Commands to make compiler produce verbose output that lists
19741 # what "hidden" libraries, object files and flags are used when
19742 # linking a shared library.
19743 #
19744 # There doesn't appear to be a way to prevent this compiler from
19745 # explicitly linking system object files so we need to strip them
19746 # from the output so that they don't get included in the library
19747 # dependencies.
19748 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"'
19749
19750 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19751 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19752
19753 # Archives containing C++ object files must be created using
19754 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19755 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19756 ;;
19757 icpc* | ecpc* )
19758 # Intel C++
19759 with_gnu_ld=yes
19760 # version 8.0 and above of icpc choke on multiply defined symbols
19761 # if we add $predep_objects and $postdep_objects, however 7.1 and
19762 # earlier do not add the objects themselves.
19763 case `$CC -V 2>&1` in
19764 *"Version 7."*)
19765 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19766 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'
19767 ;;
19768 *) # Version 8.0 or newer
19769 tmp_idyn=
19770 case $host_cpu in
19771 ia64*) tmp_idyn=' -i_dynamic';;
19772 esac
19773 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19774 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'
19775 ;;
19776 esac
19777 archive_cmds_need_lc_CXX=no
19778 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19779 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19780 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19781 ;;
19782 pgCC* | pgcpp*)
19783 # Portland Group C++ compiler
19784 case `$CC -V` in
19785 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19786 prelink_cmds_CXX='tpldir=Template.dir~
19787 rm -rf $tpldir~
19788 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19789 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19790 old_archive_cmds_CXX='tpldir=Template.dir~
19791 rm -rf $tpldir~
19792 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19793 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19794 $RANLIB $oldlib'
19795 archive_cmds_CXX='tpldir=Template.dir~
19796 rm -rf $tpldir~
19797 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19798 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19799 archive_expsym_cmds_CXX='tpldir=Template.dir~
19800 rm -rf $tpldir~
19801 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19802 $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'
19803 ;;
19804 *) # Version 6 and above use weak symbols
19805 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19806 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'
19807 ;;
19808 esac
19809
19810 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19811 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19812 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'
19813 ;;
19814 cxx*)
19815 # Compaq C++
19816 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19817 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'
19818
19819 runpath_var=LD_RUN_PATH
19820 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19821 hardcode_libdir_separator_CXX=:
19822
19823 # Commands to make compiler produce verbose output that lists
19824 # what "hidden" libraries, object files and flags are used when
19825 # linking a shared library.
19826 #
19827 # There doesn't appear to be a way to prevent this compiler from
19828 # explicitly linking system object files so we need to strip them
19829 # from the output so that they don't get included in the library
19830 # dependencies.
19831 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'
19832 ;;
19833 xl* | mpixl* | bgxl*)
19834 # IBM XL 8.0 on PPC, with GNU ld
19835 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19836 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19837 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19838 if test "x$supports_anon_versioning" = xyes; then
19839 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19840 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19841 echo "local: *; };" >> $output_objdir/$libname.ver~
19842 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19843 fi
19844 ;;
19845 *)
19846 case `$CC -V 2>&1 | sed 5q` in
19847 *Sun\ C*)
19848 # Sun C++ 5.9
19849 no_undefined_flag_CXX=' -zdefs'
19850 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19851 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'
19852 hardcode_libdir_flag_spec_CXX='-R$libdir'
19853 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'
19854 compiler_needs_object_CXX=yes
19855
19856 # Not sure whether something based on
19857 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19858 # would be better.
19859 output_verbose_link_cmd='func_echo_all'
19860
19861 # Archives containing C++ object files must be created using
19862 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19863 # necessary to make sure instantiated templates are included
19864 # in the archive.
19865 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19866 ;;
19867 esac
19868 ;;
19869 esac
19870 ;;
19871
19872 lynxos*)
19873 # FIXME: insert proper C++ library support
19874 ld_shlibs_CXX=no
19875 ;;
19876
19877 m88k*)
19878 # FIXME: insert proper C++ library support
19879 ld_shlibs_CXX=no
19880 ;;
19881
19882 mvs*)
19883 case $cc_basename in
19884 cxx*)
19885 # FIXME: insert proper C++ library support
19886 ld_shlibs_CXX=no
19887 ;;
19888 *)
19889 # FIXME: insert proper C++ library support
19890 ld_shlibs_CXX=no
19891 ;;
19892 esac
19893 ;;
19894
19895 netbsd*)
19896 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19897 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19898 wlarc=
19899 hardcode_libdir_flag_spec_CXX='-R$libdir'
19900 hardcode_direct_CXX=yes
19901 hardcode_shlibpath_var_CXX=no
19902 fi
19903 # Workaround some broken pre-1.5 toolchains
19904 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19905 ;;
19906
19907 *nto* | *qnx*)
19908 ld_shlibs_CXX=yes
19909 ;;
19910
19911 openbsd2*)
19912 # C++ shared libraries are fairly broken
19913 ld_shlibs_CXX=no
19914 ;;
19915
19916 openbsd*)
19917 if test -f /usr/libexec/ld.so; then
19918 hardcode_direct_CXX=yes
19919 hardcode_shlibpath_var_CXX=no
19920 hardcode_direct_absolute_CXX=yes
19921 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19922 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19923 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19924 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19925 export_dynamic_flag_spec_CXX='${wl}-E'
19926 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19927 fi
19928 output_verbose_link_cmd=func_echo_all
19929 else
19930 ld_shlibs_CXX=no
19931 fi
19932 ;;
19933
19934 osf3* | osf4* | osf5*)
19935 case $cc_basename in
19936 KCC*)
19937 # Kuck and Associates, Inc. (KAI) C++ Compiler
19938
19939 # KCC will only create a shared library if the output file
19940 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19941 # to its proper name (with version) after linking.
19942 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'
19943
19944 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19945 hardcode_libdir_separator_CXX=:
19946
19947 # Archives containing C++ object files must be created using
19948 # the KAI C++ compiler.
19949 case $host in
19950 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19951 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19952 esac
19953 ;;
19954 RCC*)
19955 # Rational C++ 2.4.1
19956 # FIXME: insert proper C++ library support
19957 ld_shlibs_CXX=no
19958 ;;
19959 cxx*)
19960 case $host in
19961 osf3*)
19962 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19963 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'
19964 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19965 ;;
19966 *)
19967 allow_undefined_flag_CXX=' -expect_unresolved \*'
19968 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'
19969 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19970 echo "-hidden">> $lib.exp~
19971 $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~
19972 $RM $lib.exp'
19973 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19974 ;;
19975 esac
19976
19977 hardcode_libdir_separator_CXX=:
19978
19979 # Commands to make compiler produce verbose output that lists
19980 # what "hidden" libraries, object files and flags are used when
19981 # linking a shared library.
19982 #
19983 # There doesn't appear to be a way to prevent this compiler from
19984 # explicitly linking system object files so we need to strip them
19985 # from the output so that they don't get included in the library
19986 # dependencies.
19987 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"'
19988 ;;
19989 *)
19990 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19991 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19992 case $host in
19993 osf3*)
19994 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'
19995 ;;
19996 *)
19997 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'
19998 ;;
19999 esac
20000
20001 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20002 hardcode_libdir_separator_CXX=:
20003
20004 # Commands to make compiler produce verbose output that lists
20005 # what "hidden" libraries, object files and flags are used when
20006 # linking a shared library.
20007 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20008
20009 else
20010 # FIXME: insert proper C++ library support
20011 ld_shlibs_CXX=no
20012 fi
20013 ;;
20014 esac
20015 ;;
20016
20017 psos*)
20018 # FIXME: insert proper C++ library support
20019 ld_shlibs_CXX=no
20020 ;;
20021
20022 sunos4*)
20023 case $cc_basename in
20024 CC*)
20025 # Sun C++ 4.x
20026 # FIXME: insert proper C++ library support
20027 ld_shlibs_CXX=no
20028 ;;
20029 lcc*)
20030 # Lucid
20031 # FIXME: insert proper C++ library support
20032 ld_shlibs_CXX=no
20033 ;;
20034 *)
20035 # FIXME: insert proper C++ library support
20036 ld_shlibs_CXX=no
20037 ;;
20038 esac
20039 ;;
20040
20041 solaris*)
20042 case $cc_basename in
20043 CC* | sunCC*)
20044 # Sun C++ 4.2, 5.x and Centerline C++
20045 archive_cmds_need_lc_CXX=yes
20046 no_undefined_flag_CXX=' -zdefs'
20047 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20048 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20049 $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'
20050
20051 hardcode_libdir_flag_spec_CXX='-R$libdir'
20052 hardcode_shlibpath_var_CXX=no
20053 case $host_os in
20054 solaris2.[0-5] | solaris2.[0-5].*) ;;
20055 *)
20056 # The compiler driver will combine and reorder linker options,
20057 # but understands `-z linker_flag'.
20058 # Supported since Solaris 2.6 (maybe 2.5.1?)
20059 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20060 ;;
20061 esac
20062 link_all_deplibs_CXX=yes
20063
20064 output_verbose_link_cmd='func_echo_all'
20065
20066 # Archives containing C++ object files must be created using
20067 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20068 # necessary to make sure instantiated templates are included
20069 # in the archive.
20070 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20071 ;;
20072 gcx*)
20073 # Green Hills C++ Compiler
20074 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20075
20076 # The C++ compiler must be used to create the archive.
20077 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20078 ;;
20079 *)
20080 # GNU C++ compiler with Solaris linker
20081 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20082 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20083 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20084 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20085 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20086 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20087
20088 # Commands to make compiler produce verbose output that lists
20089 # what "hidden" libraries, object files and flags are used when
20090 # linking a shared library.
20091 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20092 else
20093 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20094 # platform.
20095 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20096 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20097 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20098
20099 # Commands to make compiler produce verbose output that lists
20100 # what "hidden" libraries, object files and flags are used when
20101 # linking a shared library.
20102 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20103 fi
20104
20105 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20106 case $host_os in
20107 solaris2.[0-5] | solaris2.[0-5].*) ;;
20108 *)
20109 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20110 ;;
20111 esac
20112 fi
20113 ;;
20114 esac
20115 ;;
20116
20117 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20118 no_undefined_flag_CXX='${wl}-z,text'
20119 archive_cmds_need_lc_CXX=no
20120 hardcode_shlibpath_var_CXX=no
20121 runpath_var='LD_RUN_PATH'
20122
20123 case $cc_basename in
20124 CC*)
20125 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20126 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20127 ;;
20128 *)
20129 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20130 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20131 ;;
20132 esac
20133 ;;
20134
20135 sysv5* | sco3.2v5* | sco5v6*)
20136 # Note: We can NOT use -z defs as we might desire, because we do not
20137 # link with -lc, and that would cause any symbols used from libc to
20138 # always be unresolved, which means just about no library would
20139 # ever link correctly. If we're not using GNU ld we use -z text
20140 # though, which does catch some bad symbols but isn't as heavy-handed
20141 # as -z defs.
20142 no_undefined_flag_CXX='${wl}-z,text'
20143 allow_undefined_flag_CXX='${wl}-z,nodefs'
20144 archive_cmds_need_lc_CXX=no
20145 hardcode_shlibpath_var_CXX=no
20146 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20147 hardcode_libdir_separator_CXX=':'
20148 link_all_deplibs_CXX=yes
20149 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20150 runpath_var='LD_RUN_PATH'
20151
20152 case $cc_basename in
20153 CC*)
20154 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20155 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20156 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20157 '"$old_archive_cmds_CXX"
20158 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20159 '"$reload_cmds_CXX"
20160 ;;
20161 *)
20162 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20163 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20164 ;;
20165 esac
20166 ;;
20167
20168 tandem*)
20169 case $cc_basename in
20170 NCC*)
20171 # NonStop-UX NCC 3.20
20172 # FIXME: insert proper C++ library support
20173 ld_shlibs_CXX=no
20174 ;;
20175 *)
20176 # FIXME: insert proper C++ library support
20177 ld_shlibs_CXX=no
20178 ;;
20179 esac
20180 ;;
20181
20182 vxworks*)
20183 # FIXME: insert proper C++ library support
20184 ld_shlibs_CXX=no
20185 ;;
20186
20187 *)
20188 # FIXME: insert proper C++ library support
20189 ld_shlibs_CXX=no
20190 ;;
20191 esac
20192
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20194 $as_echo "$ld_shlibs_CXX" >&6; }
20195 test "$ld_shlibs_CXX" = no && can_build_shared=no
20196
20197 GCC_CXX="$GXX"
20198 LD_CXX="$LD"
20199
20200 ## CAVEAT EMPTOR:
20201 ## There is no encapsulation within the following macros, do not change
20202 ## the running order or otherwise move them around unless you know exactly
20203 ## what you are doing...
20204 # Dependencies to place before and after the object being linked:
20205 predep_objects_CXX=
20206 postdep_objects_CXX=
20207 predeps_CXX=
20208 postdeps_CXX=
20209 compiler_lib_search_path_CXX=
20210
20211 cat > conftest.$ac_ext <<_LT_EOF
20212 class Foo
20213 {
20214 public:
20215 Foo (void) { a = 0; }
20216 private:
20217 int a;
20218 };
20219 _LT_EOF
20220
20221
20222 _lt_libdeps_save_CFLAGS=$CFLAGS
20223 case "$CC $CFLAGS " in #(
20224 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
20225 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
20226 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
20227 esac
20228
20229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20230 (eval $ac_compile) 2>&5
20231 ac_status=$?
20232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20233 test $ac_status = 0; }; then
20234 # Parse the compiler output and extract the necessary
20235 # objects, libraries and library flags.
20236
20237 # Sentinel used to keep track of whether or not we are before
20238 # the conftest object file.
20239 pre_test_object_deps_done=no
20240
20241 for p in `eval "$output_verbose_link_cmd"`; do
20242 case ${prev}${p} in
20243
20244 -L* | -R* | -l*)
20245 # Some compilers place space between "-{L,R}" and the path.
20246 # Remove the space.
20247 if test $p = "-L" ||
20248 test $p = "-R"; then
20249 prev=$p
20250 continue
20251 fi
20252
20253 # Expand the sysroot to ease extracting the directories later.
20254 if test -z "$prev"; then
20255 case $p in
20256 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
20257 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
20258 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
20259 esac
20260 fi
20261 case $p in
20262 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
20263 esac
20264 if test "$pre_test_object_deps_done" = no; then
20265 case ${prev} in
20266 -L | -R)
20267 # Internal compiler library paths should come after those
20268 # provided the user. The postdeps already come after the
20269 # user supplied libs so there is no need to process them.
20270 if test -z "$compiler_lib_search_path_CXX"; then
20271 compiler_lib_search_path_CXX="${prev}${p}"
20272 else
20273 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20274 fi
20275 ;;
20276 # The "-l" case would never come before the object being
20277 # linked, so don't bother handling this case.
20278 esac
20279 else
20280 if test -z "$postdeps_CXX"; then
20281 postdeps_CXX="${prev}${p}"
20282 else
20283 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20284 fi
20285 fi
20286 prev=
20287 ;;
20288
20289 *.lto.$objext) ;; # Ignore GCC LTO objects
20290 *.$objext)
20291 # This assumes that the test object file only shows up
20292 # once in the compiler output.
20293 if test "$p" = "conftest.$objext"; then
20294 pre_test_object_deps_done=yes
20295 continue
20296 fi
20297
20298 if test "$pre_test_object_deps_done" = no; then
20299 if test -z "$predep_objects_CXX"; then
20300 predep_objects_CXX="$p"
20301 else
20302 predep_objects_CXX="$predep_objects_CXX $p"
20303 fi
20304 else
20305 if test -z "$postdep_objects_CXX"; then
20306 postdep_objects_CXX="$p"
20307 else
20308 postdep_objects_CXX="$postdep_objects_CXX $p"
20309 fi
20310 fi
20311 ;;
20312
20313 *) ;; # Ignore the rest.
20314
20315 esac
20316 done
20317
20318 # Clean up.
20319 rm -f a.out a.exe
20320 else
20321 echo "libtool.m4: error: problem compiling CXX test program"
20322 fi
20323
20324 $RM -f confest.$objext
20325 CFLAGS=$_lt_libdeps_save_CFLAGS
20326
20327 # PORTME: override above test on systems where it is broken
20328 case $host_os in
20329 interix[3-9]*)
20330 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20331 # hack all around it, let's just trust "g++" to DTRT.
20332 predep_objects_CXX=
20333 postdep_objects_CXX=
20334 postdeps_CXX=
20335 ;;
20336
20337 linux*)
20338 case `$CC -V 2>&1 | sed 5q` in
20339 *Sun\ C*)
20340 # Sun C++ 5.9
20341
20342 # The more standards-conforming stlport4 library is
20343 # incompatible with the Cstd library. Avoid specifying
20344 # it if it's in CXXFLAGS. Ignore libCrun as
20345 # -library=stlport4 depends on it.
20346 case " $CXX $CXXFLAGS " in
20347 *" -library=stlport4 "*)
20348 solaris_use_stlport4=yes
20349 ;;
20350 esac
20351
20352 if test "$solaris_use_stlport4" != yes; then
20353 postdeps_CXX='-library=Cstd -library=Crun'
20354 fi
20355 ;;
20356 esac
20357 ;;
20358
20359 solaris*)
20360 case $cc_basename in
20361 CC* | sunCC*)
20362 # The more standards-conforming stlport4 library is
20363 # incompatible with the Cstd library. Avoid specifying
20364 # it if it's in CXXFLAGS. Ignore libCrun as
20365 # -library=stlport4 depends on it.
20366 case " $CXX $CXXFLAGS " in
20367 *" -library=stlport4 "*)
20368 solaris_use_stlport4=yes
20369 ;;
20370 esac
20371
20372 # Adding this requires a known-good setup of shared libraries for
20373 # Sun compiler versions before 5.6, else PIC objects from an old
20374 # archive will be linked into the output, leading to subtle bugs.
20375 if test "$solaris_use_stlport4" != yes; then
20376 postdeps_CXX='-library=Cstd -library=Crun'
20377 fi
20378 ;;
20379 esac
20380 ;;
20381 esac
20382
20383
20384 case " $postdeps_CXX " in
20385 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20386 esac
20387 compiler_lib_search_dirs_CXX=
20388 if test -n "${compiler_lib_search_path_CXX}"; then
20389 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20390 fi
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422 lt_prog_compiler_wl_CXX=
20423 lt_prog_compiler_pic_CXX=
20424 lt_prog_compiler_static_CXX=
20425
20426
20427 # C++ specific cases for pic, static, wl, etc.
20428 if test "$GXX" = yes; then
20429 lt_prog_compiler_wl_CXX='-Wl,'
20430 lt_prog_compiler_static_CXX='-static'
20431
20432 case $host_os in
20433 aix*)
20434 # All AIX code is PIC.
20435 if test "$host_cpu" = ia64; then
20436 # AIX 5 now supports IA64 processor
20437 lt_prog_compiler_static_CXX='-Bstatic'
20438 fi
20439 ;;
20440
20441 amigaos*)
20442 case $host_cpu in
20443 powerpc)
20444 # see comment about AmigaOS4 .so support
20445 lt_prog_compiler_pic_CXX='-fPIC'
20446 ;;
20447 m68k)
20448 # FIXME: we need at least 68020 code to build shared libraries, but
20449 # adding the `-m68020' flag to GCC prevents building anything better,
20450 # like `-m68040'.
20451 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20452 ;;
20453 esac
20454 ;;
20455
20456 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20457 # PIC is the default for these OSes.
20458 ;;
20459 mingw* | cygwin* | os2* | pw32* | cegcc*)
20460 # This hack is so that the source file can tell whether it is being
20461 # built for inclusion in a dll (and should export symbols for example).
20462 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20463 # (--disable-auto-import) libraries
20464 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20465 ;;
20466 darwin* | rhapsody*)
20467 # PIC is the default on this platform
20468 # Common symbols not allowed in MH_DYLIB files
20469 lt_prog_compiler_pic_CXX='-fno-common'
20470 ;;
20471 *djgpp*)
20472 # DJGPP does not support shared libraries at all
20473 lt_prog_compiler_pic_CXX=
20474 ;;
20475 haiku*)
20476 # PIC is the default for Haiku.
20477 # The "-static" flag exists, but is broken.
20478 lt_prog_compiler_static_CXX=
20479 ;;
20480 interix[3-9]*)
20481 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20482 # Instead, we relocate shared libraries at runtime.
20483 ;;
20484 sysv4*MP*)
20485 if test -d /usr/nec; then
20486 lt_prog_compiler_pic_CXX=-Kconform_pic
20487 fi
20488 ;;
20489 hpux*)
20490 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20491 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20492 # sets the default TLS model and affects inlining.
20493 case $host_cpu in
20494 hppa*64*)
20495 ;;
20496 *)
20497 lt_prog_compiler_pic_CXX='-fPIC'
20498 ;;
20499 esac
20500 ;;
20501 *qnx* | *nto*)
20502 # QNX uses GNU C++, but need to define -shared option too, otherwise
20503 # it will coredump.
20504 lt_prog_compiler_pic_CXX='-fPIC -shared'
20505 ;;
20506 *)
20507 lt_prog_compiler_pic_CXX='-fPIC'
20508 ;;
20509 esac
20510 else
20511 case $host_os in
20512 aix[4-9]*)
20513 # All AIX code is PIC.
20514 if test "$host_cpu" = ia64; then
20515 # AIX 5 now supports IA64 processor
20516 lt_prog_compiler_static_CXX='-Bstatic'
20517 else
20518 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20519 fi
20520 ;;
20521 chorus*)
20522 case $cc_basename in
20523 cxch68*)
20524 # Green Hills C++ Compiler
20525 # _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"
20526 ;;
20527 esac
20528 ;;
20529 mingw* | cygwin* | os2* | pw32* | cegcc*)
20530 # This hack is so that the source file can tell whether it is being
20531 # built for inclusion in a dll (and should export symbols for example).
20532 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20533 ;;
20534 dgux*)
20535 case $cc_basename in
20536 ec++*)
20537 lt_prog_compiler_pic_CXX='-KPIC'
20538 ;;
20539 ghcx*)
20540 # Green Hills C++ Compiler
20541 lt_prog_compiler_pic_CXX='-pic'
20542 ;;
20543 *)
20544 ;;
20545 esac
20546 ;;
20547 freebsd* | dragonfly*)
20548 # FreeBSD uses GNU C++
20549 ;;
20550 hpux9* | hpux10* | hpux11*)
20551 case $cc_basename in
20552 CC*)
20553 lt_prog_compiler_wl_CXX='-Wl,'
20554 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20555 if test "$host_cpu" != ia64; then
20556 lt_prog_compiler_pic_CXX='+Z'
20557 fi
20558 ;;
20559 aCC*)
20560 lt_prog_compiler_wl_CXX='-Wl,'
20561 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20562 case $host_cpu in
20563 hppa*64*|ia64*)
20564 # +Z the default
20565 ;;
20566 *)
20567 lt_prog_compiler_pic_CXX='+Z'
20568 ;;
20569 esac
20570 ;;
20571 *)
20572 ;;
20573 esac
20574 ;;
20575 interix*)
20576 # This is c89, which is MS Visual C++ (no shared libs)
20577 # Anyone wants to do a port?
20578 ;;
20579 irix5* | irix6* | nonstopux*)
20580 case $cc_basename in
20581 CC*)
20582 lt_prog_compiler_wl_CXX='-Wl,'
20583 lt_prog_compiler_static_CXX='-non_shared'
20584 # CC pic flag -KPIC is the default.
20585 ;;
20586 *)
20587 ;;
20588 esac
20589 ;;
20590 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20591 case $cc_basename in
20592 KCC*)
20593 # KAI C++ Compiler
20594 lt_prog_compiler_wl_CXX='--backend -Wl,'
20595 lt_prog_compiler_pic_CXX='-fPIC'
20596 ;;
20597 ecpc* )
20598 # old Intel C++ for x86_64 which still supported -KPIC.
20599 lt_prog_compiler_wl_CXX='-Wl,'
20600 lt_prog_compiler_pic_CXX='-KPIC'
20601 lt_prog_compiler_static_CXX='-static'
20602 ;;
20603 icpc* )
20604 # Intel C++, used to be incompatible with GCC.
20605 # ICC 10 doesn't accept -KPIC any more.
20606 lt_prog_compiler_wl_CXX='-Wl,'
20607 lt_prog_compiler_pic_CXX='-fPIC'
20608 lt_prog_compiler_static_CXX='-static'
20609 ;;
20610 pgCC* | pgcpp*)
20611 # Portland Group C++ compiler
20612 lt_prog_compiler_wl_CXX='-Wl,'
20613 lt_prog_compiler_pic_CXX='-fpic'
20614 lt_prog_compiler_static_CXX='-Bstatic'
20615 ;;
20616 cxx*)
20617 # Compaq C++
20618 # Make sure the PIC flag is empty. It appears that all Alpha
20619 # Linux and Compaq Tru64 Unix objects are PIC.
20620 lt_prog_compiler_pic_CXX=
20621 lt_prog_compiler_static_CXX='-non_shared'
20622 ;;
20623 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20624 # IBM XL 8.0, 9.0 on PPC and BlueGene
20625 lt_prog_compiler_wl_CXX='-Wl,'
20626 lt_prog_compiler_pic_CXX='-qpic'
20627 lt_prog_compiler_static_CXX='-qstaticlink'
20628 ;;
20629 *)
20630 case `$CC -V 2>&1 | sed 5q` in
20631 *Sun\ C*)
20632 # Sun C++ 5.9
20633 lt_prog_compiler_pic_CXX='-KPIC'
20634 lt_prog_compiler_static_CXX='-Bstatic'
20635 lt_prog_compiler_wl_CXX='-Qoption ld '
20636 ;;
20637 esac
20638 ;;
20639 esac
20640 ;;
20641 lynxos*)
20642 ;;
20643 m88k*)
20644 ;;
20645 mvs*)
20646 case $cc_basename in
20647 cxx*)
20648 lt_prog_compiler_pic_CXX='-W c,exportall'
20649 ;;
20650 *)
20651 ;;
20652 esac
20653 ;;
20654 netbsd*)
20655 ;;
20656 *qnx* | *nto*)
20657 # QNX uses GNU C++, but need to define -shared option too, otherwise
20658 # it will coredump.
20659 lt_prog_compiler_pic_CXX='-fPIC -shared'
20660 ;;
20661 osf3* | osf4* | osf5*)
20662 case $cc_basename in
20663 KCC*)
20664 lt_prog_compiler_wl_CXX='--backend -Wl,'
20665 ;;
20666 RCC*)
20667 # Rational C++ 2.4.1
20668 lt_prog_compiler_pic_CXX='-pic'
20669 ;;
20670 cxx*)
20671 # Digital/Compaq C++
20672 lt_prog_compiler_wl_CXX='-Wl,'
20673 # Make sure the PIC flag is empty. It appears that all Alpha
20674 # Linux and Compaq Tru64 Unix objects are PIC.
20675 lt_prog_compiler_pic_CXX=
20676 lt_prog_compiler_static_CXX='-non_shared'
20677 ;;
20678 *)
20679 ;;
20680 esac
20681 ;;
20682 psos*)
20683 ;;
20684 solaris*)
20685 case $cc_basename in
20686 CC* | sunCC*)
20687 # Sun C++ 4.2, 5.x and Centerline C++
20688 lt_prog_compiler_pic_CXX='-KPIC'
20689 lt_prog_compiler_static_CXX='-Bstatic'
20690 lt_prog_compiler_wl_CXX='-Qoption ld '
20691 ;;
20692 gcx*)
20693 # Green Hills C++ Compiler
20694 lt_prog_compiler_pic_CXX='-PIC'
20695 ;;
20696 *)
20697 ;;
20698 esac
20699 ;;
20700 sunos4*)
20701 case $cc_basename in
20702 CC*)
20703 # Sun C++ 4.x
20704 lt_prog_compiler_pic_CXX='-pic'
20705 lt_prog_compiler_static_CXX='-Bstatic'
20706 ;;
20707 lcc*)
20708 # Lucid
20709 lt_prog_compiler_pic_CXX='-pic'
20710 ;;
20711 *)
20712 ;;
20713 esac
20714 ;;
20715 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20716 case $cc_basename in
20717 CC*)
20718 lt_prog_compiler_wl_CXX='-Wl,'
20719 lt_prog_compiler_pic_CXX='-KPIC'
20720 lt_prog_compiler_static_CXX='-Bstatic'
20721 ;;
20722 esac
20723 ;;
20724 tandem*)
20725 case $cc_basename in
20726 NCC*)
20727 # NonStop-UX NCC 3.20
20728 lt_prog_compiler_pic_CXX='-KPIC'
20729 ;;
20730 *)
20731 ;;
20732 esac
20733 ;;
20734 vxworks*)
20735 ;;
20736 *)
20737 lt_prog_compiler_can_build_shared_CXX=no
20738 ;;
20739 esac
20740 fi
20741
20742 case $host_os in
20743 # For platforms which do not support PIC, -DPIC is meaningless:
20744 *djgpp*)
20745 lt_prog_compiler_pic_CXX=
20746 ;;
20747 *)
20748 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20749 ;;
20750 esac
20751
20752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20753 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20754 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20755 $as_echo_n "(cached) " >&6
20756 else
20757 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20758 fi
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20760 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20761 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
20762
20763 #
20764 # Check to make sure the PIC flag actually works.
20765 #
20766 if test -n "$lt_prog_compiler_pic_CXX"; then
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20768 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20769 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
20770 $as_echo_n "(cached) " >&6
20771 else
20772 lt_cv_prog_compiler_pic_works_CXX=no
20773 ac_outfile=conftest.$ac_objext
20774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20775 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20776 # Insert the option either (1) after the last *FLAGS variable, or
20777 # (2) before a word containing "conftest.", or (3) at the end.
20778 # Note that $ac_compile itself does not contain backslashes and begins
20779 # with a dollar sign (not a hyphen), so the echo should work correctly.
20780 # The option is referenced via a variable to avoid confusing sed.
20781 lt_compile=`echo "$ac_compile" | $SED \
20782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20784 -e 's:$: $lt_compiler_flag:'`
20785 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20786 (eval "$lt_compile" 2>conftest.err)
20787 ac_status=$?
20788 cat conftest.err >&5
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 if (exit $ac_status) && test -s "$ac_outfile"; then
20791 # The compiler can only warn and ignore the option if not recognized
20792 # So say no if there are warnings other than the usual output.
20793 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20795 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20796 lt_cv_prog_compiler_pic_works_CXX=yes
20797 fi
20798 fi
20799 $RM conftest*
20800
20801 fi
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20803 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20804
20805 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20806 case $lt_prog_compiler_pic_CXX in
20807 "" | " "*) ;;
20808 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20809 esac
20810 else
20811 lt_prog_compiler_pic_CXX=
20812 lt_prog_compiler_can_build_shared_CXX=no
20813 fi
20814
20815 fi
20816
20817
20818
20819
20820
20821 #
20822 # Check to make sure the static flag actually works.
20823 #
20824 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20826 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20827 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
20828 $as_echo_n "(cached) " >&6
20829 else
20830 lt_cv_prog_compiler_static_works_CXX=no
20831 save_LDFLAGS="$LDFLAGS"
20832 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20833 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20834 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20835 # The linker can only warn and ignore the option if not recognized
20836 # So say no if there are warnings
20837 if test -s conftest.err; then
20838 # Append any errors to the config.log.
20839 cat conftest.err 1>&5
20840 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20842 if diff conftest.exp conftest.er2 >/dev/null; then
20843 lt_cv_prog_compiler_static_works_CXX=yes
20844 fi
20845 else
20846 lt_cv_prog_compiler_static_works_CXX=yes
20847 fi
20848 fi
20849 $RM -r conftest*
20850 LDFLAGS="$save_LDFLAGS"
20851
20852 fi
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20854 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20855
20856 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20857 :
20858 else
20859 lt_prog_compiler_static_CXX=
20860 fi
20861
20862
20863
20864
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20866 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20867 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20868 $as_echo_n "(cached) " >&6
20869 else
20870 lt_cv_prog_compiler_c_o_CXX=no
20871 $RM -r conftest 2>/dev/null
20872 mkdir conftest
20873 cd conftest
20874 mkdir out
20875 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20876
20877 lt_compiler_flag="-o out/conftest2.$ac_objext"
20878 # Insert the option either (1) after the last *FLAGS variable, or
20879 # (2) before a word containing "conftest.", or (3) at the end.
20880 # Note that $ac_compile itself does not contain backslashes and begins
20881 # with a dollar sign (not a hyphen), so the echo should work correctly.
20882 lt_compile=`echo "$ac_compile" | $SED \
20883 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20885 -e 's:$: $lt_compiler_flag:'`
20886 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20887 (eval "$lt_compile" 2>out/conftest.err)
20888 ac_status=$?
20889 cat out/conftest.err >&5
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20892 then
20893 # The compiler can only warn and ignore the option if not recognized
20894 # So say no if there are warnings
20895 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20896 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20897 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20898 lt_cv_prog_compiler_c_o_CXX=yes
20899 fi
20900 fi
20901 chmod u+w . 2>&5
20902 $RM conftest*
20903 # SGI C++ compiler will create directory out/ii_files/ for
20904 # template instantiation
20905 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20906 $RM out/* && rmdir out
20907 cd ..
20908 $RM -r conftest
20909 $RM conftest*
20910
20911 fi
20912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20913 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20914
20915
20916
20917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20918 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20919 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20920 $as_echo_n "(cached) " >&6
20921 else
20922 lt_cv_prog_compiler_c_o_CXX=no
20923 $RM -r conftest 2>/dev/null
20924 mkdir conftest
20925 cd conftest
20926 mkdir out
20927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20928
20929 lt_compiler_flag="-o out/conftest2.$ac_objext"
20930 # Insert the option either (1) after the last *FLAGS variable, or
20931 # (2) before a word containing "conftest.", or (3) at the end.
20932 # Note that $ac_compile itself does not contain backslashes and begins
20933 # with a dollar sign (not a hyphen), so the echo should work correctly.
20934 lt_compile=`echo "$ac_compile" | $SED \
20935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20937 -e 's:$: $lt_compiler_flag:'`
20938 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20939 (eval "$lt_compile" 2>out/conftest.err)
20940 ac_status=$?
20941 cat out/conftest.err >&5
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20944 then
20945 # The compiler can only warn and ignore the option if not recognized
20946 # So say no if there are warnings
20947 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20948 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20949 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20950 lt_cv_prog_compiler_c_o_CXX=yes
20951 fi
20952 fi
20953 chmod u+w . 2>&5
20954 $RM conftest*
20955 # SGI C++ compiler will create directory out/ii_files/ for
20956 # template instantiation
20957 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20958 $RM out/* && rmdir out
20959 cd ..
20960 $RM -r conftest
20961 $RM conftest*
20962
20963 fi
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20965 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20966
20967
20968
20969
20970 hard_links="nottested"
20971 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20972 # do not overwrite the value of need_locks provided by the user
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20974 $as_echo_n "checking if we can lock with hard links... " >&6; }
20975 hard_links=yes
20976 $RM conftest*
20977 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20978 touch conftest.a
20979 ln conftest.a conftest.b 2>&5 || hard_links=no
20980 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20982 $as_echo "$hard_links" >&6; }
20983 if test "$hard_links" = no; then
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20985 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20986 need_locks=warn
20987 fi
20988 else
20989 need_locks=no
20990 fi
20991
20992
20993
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20995 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20996
20997 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20998 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20999 case $host_os in
21000 aix[4-9]*)
21001 # If we're using GNU nm, then we don't want the "-C" option.
21002 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21003 # Also, AIX nm treats weak defined symbols like other global defined
21004 # symbols, whereas GNU nm marks them as "W".
21005 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21006 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'
21007 else
21008 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'
21009 fi
21010 ;;
21011 pw32*)
21012 export_symbols_cmds_CXX="$ltdll_cmds"
21013 ;;
21014 cygwin* | mingw* | cegcc*)
21015 case $cc_basename in
21016 cl*)
21017 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
21018 ;;
21019 *)
21020 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'
21021 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
21022 ;;
21023 esac
21024 ;;
21025 *)
21026 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21027 ;;
21028 esac
21029
21030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21031 $as_echo "$ld_shlibs_CXX" >&6; }
21032 test "$ld_shlibs_CXX" = no && can_build_shared=no
21033
21034 with_gnu_ld_CXX=$with_gnu_ld
21035
21036
21037
21038
21039
21040
21041 #
21042 # Do we need to explicitly link libc?
21043 #
21044 case "x$archive_cmds_need_lc_CXX" in
21045 x|xyes)
21046 # Assume -lc should be added
21047 archive_cmds_need_lc_CXX=yes
21048
21049 if test "$enable_shared" = yes && test "$GCC" = yes; then
21050 case $archive_cmds_CXX in
21051 *'~'*)
21052 # FIXME: we may have to deal with multi-command sequences.
21053 ;;
21054 '$CC '*)
21055 # Test whether the compiler implicitly links with -lc since on some
21056 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21057 # to ld, don't add -lc before -lgcc.
21058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21059 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21060 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21061 $as_echo_n "(cached) " >&6
21062 else
21063 $RM conftest*
21064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21065
21066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21067 (eval $ac_compile) 2>&5
21068 ac_status=$?
21069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21070 test $ac_status = 0; } 2>conftest.err; then
21071 soname=conftest
21072 lib=conftest
21073 libobjs=conftest.$ac_objext
21074 deplibs=
21075 wl=$lt_prog_compiler_wl_CXX
21076 pic_flag=$lt_prog_compiler_pic_CXX
21077 compiler_flags=-v
21078 linker_flags=-v
21079 verstring=
21080 output_objdir=.
21081 libname=conftest
21082 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21083 allow_undefined_flag_CXX=
21084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21085 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21086 ac_status=$?
21087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21088 test $ac_status = 0; }
21089 then
21090 lt_cv_archive_cmds_need_lc_CXX=no
21091 else
21092 lt_cv_archive_cmds_need_lc_CXX=yes
21093 fi
21094 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21095 else
21096 cat conftest.err 1>&5
21097 fi
21098 $RM conftest*
21099
21100 fi
21101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21102 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21103 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21104 ;;
21105 esac
21106 fi
21107 ;;
21108 esac
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21172 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21173
21174 library_names_spec=
21175 libname_spec='lib$name'
21176 soname_spec=
21177 shrext_cmds=".so"
21178 postinstall_cmds=
21179 postuninstall_cmds=
21180 finish_cmds=
21181 finish_eval=
21182 shlibpath_var=
21183 shlibpath_overrides_runpath=unknown
21184 version_type=none
21185 dynamic_linker="$host_os ld.so"
21186 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21187 need_lib_prefix=unknown
21188 hardcode_into_libs=no
21189
21190 # when you set need_version to no, make sure it does not cause -set_version
21191 # flags to be left without arguments
21192 need_version=unknown
21193
21194 case $host_os in
21195 aix3*)
21196 version_type=linux # correct to gnu/linux during the next big refactor
21197 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21198 shlibpath_var=LIBPATH
21199
21200 # AIX 3 has no versioning support, so we append a major version to the name.
21201 soname_spec='${libname}${release}${shared_ext}$major'
21202 ;;
21203
21204 aix[4-9]*)
21205 version_type=linux # correct to gnu/linux during the next big refactor
21206 need_lib_prefix=no
21207 need_version=no
21208 hardcode_into_libs=yes
21209 if test "$host_cpu" = ia64; then
21210 # AIX 5 supports IA64
21211 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21212 shlibpath_var=LD_LIBRARY_PATH
21213 else
21214 # With GCC up to 2.95.x, collect2 would create an import file
21215 # for dependence libraries. The import file would start with
21216 # the line `#! .'. This would cause the generated library to
21217 # depend on `.', always an invalid library. This was fixed in
21218 # development snapshots of GCC prior to 3.0.
21219 case $host_os in
21220 aix4 | aix4.[01] | aix4.[01].*)
21221 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21222 echo ' yes '
21223 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21224 :
21225 else
21226 can_build_shared=no
21227 fi
21228 ;;
21229 esac
21230 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21231 # soname into executable. Probably we can add versioning support to
21232 # collect2, so additional links can be useful in future.
21233 if test "$aix_use_runtimelinking" = yes; then
21234 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21235 # instead of lib<name>.a to let people know that these are not
21236 # typical AIX shared libraries.
21237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21238 else
21239 # We preserve .a as extension for shared libraries through AIX4.2
21240 # and later when we are not doing run time linking.
21241 library_names_spec='${libname}${release}.a $libname.a'
21242 soname_spec='${libname}${release}${shared_ext}$major'
21243 fi
21244 shlibpath_var=LIBPATH
21245 fi
21246 ;;
21247
21248 amigaos*)
21249 case $host_cpu in
21250 powerpc)
21251 # Since July 2007 AmigaOS4 officially supports .so libraries.
21252 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21254 ;;
21255 m68k)
21256 library_names_spec='$libname.ixlibrary $libname.a'
21257 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21258 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'
21259 ;;
21260 esac
21261 ;;
21262
21263 beos*)
21264 library_names_spec='${libname}${shared_ext}'
21265 dynamic_linker="$host_os ld.so"
21266 shlibpath_var=LIBRARY_PATH
21267 ;;
21268
21269 bsdi[45]*)
21270 version_type=linux # correct to gnu/linux during the next big refactor
21271 need_version=no
21272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21273 soname_spec='${libname}${release}${shared_ext}$major'
21274 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21275 shlibpath_var=LD_LIBRARY_PATH
21276 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21277 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21278 # the default ld.so.conf also contains /usr/contrib/lib and
21279 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21280 # libtool to hard-code these into programs
21281 ;;
21282
21283 cygwin* | mingw* | pw32* | cegcc*)
21284 version_type=windows
21285 shrext_cmds=".dll"
21286 need_version=no
21287 need_lib_prefix=no
21288
21289 case $GCC,$cc_basename in
21290 yes,*)
21291 # gcc
21292 library_names_spec='$libname.dll.a'
21293 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21294 postinstall_cmds='base_file=`basename \${file}`~
21295 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21296 dldir=$destdir/`dirname \$dlpath`~
21297 test -d \$dldir || mkdir -p \$dldir~
21298 $install_prog $dir/$dlname \$dldir/$dlname~
21299 chmod a+x \$dldir/$dlname~
21300 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21301 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21302 fi'
21303 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21304 dlpath=$dir/\$dldll~
21305 $RM \$dlpath'
21306 shlibpath_overrides_runpath=yes
21307
21308 case $host_os in
21309 cygwin*)
21310 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21311 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21312
21313 ;;
21314 mingw* | cegcc*)
21315 # MinGW DLLs use traditional 'lib' prefix
21316 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21317 ;;
21318 pw32*)
21319 # pw32 DLLs use 'pw' prefix rather than 'lib'
21320 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21321 ;;
21322 esac
21323 dynamic_linker='Win32 ld.exe'
21324 ;;
21325
21326 *,cl*)
21327 # Native MSVC
21328 libname_spec='$name'
21329 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21330 library_names_spec='${libname}.dll.lib'
21331
21332 case $build_os in
21333 mingw*)
21334 sys_lib_search_path_spec=
21335 lt_save_ifs=$IFS
21336 IFS=';'
21337 for lt_path in $LIB
21338 do
21339 IFS=$lt_save_ifs
21340 # Let DOS variable expansion print the short 8.3 style file name.
21341 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21342 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21343 done
21344 IFS=$lt_save_ifs
21345 # Convert to MSYS style.
21346 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21347 ;;
21348 cygwin*)
21349 # Convert to unix form, then to dos form, then back to unix form
21350 # but this time dos style (no spaces!) so that the unix form looks
21351 # like /cygdrive/c/PROGRA~1:/cygdr...
21352 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21353 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21354 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21355 ;;
21356 *)
21357 sys_lib_search_path_spec="$LIB"
21358 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21359 # It is most probably a Windows format PATH.
21360 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21361 else
21362 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21363 fi
21364 # FIXME: find the short name or the path components, as spaces are
21365 # common. (e.g. "Program Files" -> "PROGRA~1")
21366 ;;
21367 esac
21368
21369 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21370 postinstall_cmds='base_file=`basename \${file}`~
21371 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21372 dldir=$destdir/`dirname \$dlpath`~
21373 test -d \$dldir || mkdir -p \$dldir~
21374 $install_prog $dir/$dlname \$dldir/$dlname'
21375 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21376 dlpath=$dir/\$dldll~
21377 $RM \$dlpath'
21378 shlibpath_overrides_runpath=yes
21379 dynamic_linker='Win32 link.exe'
21380 ;;
21381
21382 *)
21383 # Assume MSVC wrapper
21384 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21385 dynamic_linker='Win32 ld.exe'
21386 ;;
21387 esac
21388 # FIXME: first we should search . and the directory the executable is in
21389 shlibpath_var=PATH
21390 ;;
21391
21392 darwin* | rhapsody*)
21393 dynamic_linker="$host_os dyld"
21394 version_type=darwin
21395 need_lib_prefix=no
21396 need_version=no
21397 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21398 soname_spec='${libname}${release}${major}$shared_ext'
21399 shlibpath_overrides_runpath=yes
21400 shlibpath_var=DYLD_LIBRARY_PATH
21401 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21402
21403 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21404 ;;
21405
21406 dgux*)
21407 version_type=linux # correct to gnu/linux during the next big refactor
21408 need_lib_prefix=no
21409 need_version=no
21410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21411 soname_spec='${libname}${release}${shared_ext}$major'
21412 shlibpath_var=LD_LIBRARY_PATH
21413 ;;
21414
21415 freebsd* | dragonfly*)
21416 # DragonFly does not have aout. When/if they implement a new
21417 # versioning mechanism, adjust this.
21418 if test -x /usr/bin/objformat; then
21419 objformat=`/usr/bin/objformat`
21420 else
21421 case $host_os in
21422 freebsd[23].*) objformat=aout ;;
21423 *) objformat=elf ;;
21424 esac
21425 fi
21426 version_type=freebsd-$objformat
21427 case $version_type in
21428 freebsd-elf*)
21429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21430 need_version=no
21431 need_lib_prefix=no
21432 ;;
21433 freebsd-*)
21434 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21435 need_version=yes
21436 ;;
21437 esac
21438 shlibpath_var=LD_LIBRARY_PATH
21439 case $host_os in
21440 freebsd2.*)
21441 shlibpath_overrides_runpath=yes
21442 ;;
21443 freebsd3.[01]* | freebsdelf3.[01]*)
21444 shlibpath_overrides_runpath=yes
21445 hardcode_into_libs=yes
21446 ;;
21447 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21448 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21449 shlibpath_overrides_runpath=no
21450 hardcode_into_libs=yes
21451 ;;
21452 *) # from 4.6 on, and DragonFly
21453 shlibpath_overrides_runpath=yes
21454 hardcode_into_libs=yes
21455 ;;
21456 esac
21457 ;;
21458
21459 gnu*)
21460 version_type=linux # correct to gnu/linux during the next big refactor
21461 need_lib_prefix=no
21462 need_version=no
21463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21464 soname_spec='${libname}${release}${shared_ext}$major'
21465 shlibpath_var=LD_LIBRARY_PATH
21466 shlibpath_overrides_runpath=no
21467 hardcode_into_libs=yes
21468 ;;
21469
21470 haiku*)
21471 version_type=linux # correct to gnu/linux during the next big refactor
21472 need_lib_prefix=no
21473 need_version=no
21474 dynamic_linker="$host_os runtime_loader"
21475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21476 soname_spec='${libname}${release}${shared_ext}$major'
21477 shlibpath_var=LIBRARY_PATH
21478 shlibpath_overrides_runpath=yes
21479 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21480 hardcode_into_libs=yes
21481 ;;
21482
21483 hpux9* | hpux10* | hpux11*)
21484 # Give a soname corresponding to the major version so that dld.sl refuses to
21485 # link against other versions.
21486 version_type=sunos
21487 need_lib_prefix=no
21488 need_version=no
21489 case $host_cpu in
21490 ia64*)
21491 shrext_cmds='.so'
21492 hardcode_into_libs=yes
21493 dynamic_linker="$host_os dld.so"
21494 shlibpath_var=LD_LIBRARY_PATH
21495 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21497 soname_spec='${libname}${release}${shared_ext}$major'
21498 if test "X$HPUX_IA64_MODE" = X32; then
21499 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21500 else
21501 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21502 fi
21503 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21504 ;;
21505 hppa*64*)
21506 shrext_cmds='.sl'
21507 hardcode_into_libs=yes
21508 dynamic_linker="$host_os dld.sl"
21509 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21510 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21512 soname_spec='${libname}${release}${shared_ext}$major'
21513 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21514 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21515 ;;
21516 *)
21517 shrext_cmds='.sl'
21518 dynamic_linker="$host_os dld.sl"
21519 shlibpath_var=SHLIB_PATH
21520 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21522 soname_spec='${libname}${release}${shared_ext}$major'
21523 ;;
21524 esac
21525 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21526 postinstall_cmds='chmod 555 $lib'
21527 # or fails outright, so override atomically:
21528 install_override_mode=555
21529 ;;
21530
21531 interix[3-9]*)
21532 version_type=linux # correct to gnu/linux during the next big refactor
21533 need_lib_prefix=no
21534 need_version=no
21535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21536 soname_spec='${libname}${release}${shared_ext}$major'
21537 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21538 shlibpath_var=LD_LIBRARY_PATH
21539 shlibpath_overrides_runpath=no
21540 hardcode_into_libs=yes
21541 ;;
21542
21543 irix5* | irix6* | nonstopux*)
21544 case $host_os in
21545 nonstopux*) version_type=nonstopux ;;
21546 *)
21547 if test "$lt_cv_prog_gnu_ld" = yes; then
21548 version_type=linux # correct to gnu/linux during the next big refactor
21549 else
21550 version_type=irix
21551 fi ;;
21552 esac
21553 need_lib_prefix=no
21554 need_version=no
21555 soname_spec='${libname}${release}${shared_ext}$major'
21556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21557 case $host_os in
21558 irix5* | nonstopux*)
21559 libsuff= shlibsuff=
21560 ;;
21561 *)
21562 case $LD in # libtool.m4 will add one of these switches to LD
21563 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21564 libsuff= shlibsuff= libmagic=32-bit;;
21565 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21566 libsuff=32 shlibsuff=N32 libmagic=N32;;
21567 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21568 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21569 *) libsuff= shlibsuff= libmagic=never-match;;
21570 esac
21571 ;;
21572 esac
21573 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21574 shlibpath_overrides_runpath=no
21575 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21576 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21577 hardcode_into_libs=yes
21578 ;;
21579
21580 # No shared lib support for Linux oldld, aout, or coff.
21581 linux*oldld* | linux*aout* | linux*coff*)
21582 dynamic_linker=no
21583 ;;
21584
21585 # This must be glibc/ELF.
21586 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21587 version_type=linux # correct to gnu/linux during the next big refactor
21588 need_lib_prefix=no
21589 need_version=no
21590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21591 soname_spec='${libname}${release}${shared_ext}$major'
21592 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21593 shlibpath_var=LD_LIBRARY_PATH
21594 shlibpath_overrides_runpath=no
21595
21596 # Some binutils ld are patched to set DT_RUNPATH
21597 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21598 $as_echo_n "(cached) " >&6
21599 else
21600 lt_cv_shlibpath_overrides_runpath=no
21601 save_LDFLAGS=$LDFLAGS
21602 save_libdir=$libdir
21603 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21604 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21606 /* end confdefs.h. */
21607
21608 int
21609 main ()
21610 {
21611
21612 ;
21613 return 0;
21614 }
21615 _ACEOF
21616 if ac_fn_cxx_try_link "$LINENO"; then :
21617 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21618 lt_cv_shlibpath_overrides_runpath=yes
21619 fi
21620 fi
21621 rm -f core conftest.err conftest.$ac_objext \
21622 conftest$ac_exeext conftest.$ac_ext
21623 LDFLAGS=$save_LDFLAGS
21624 libdir=$save_libdir
21625
21626 fi
21627
21628 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21629
21630 # This implies no fast_install, which is unacceptable.
21631 # Some rework will be needed to allow for fast_install
21632 # before this can be enabled.
21633 hardcode_into_libs=yes
21634
21635 # Append ld.so.conf contents to the search path
21636 if test -f /etc/ld.so.conf; then
21637 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' ' '`
21638 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21639 fi
21640
21641 # We used to test for /lib/ld.so.1 and disable shared libraries on
21642 # powerpc, because MkLinux only supported shared libraries with the
21643 # GNU dynamic linker. Since this was broken with cross compilers,
21644 # most powerpc-linux boxes support dynamic linking these days and
21645 # people can always --disable-shared, the test was removed, and we
21646 # assume the GNU/Linux dynamic linker is in use.
21647 dynamic_linker='GNU/Linux ld.so'
21648 ;;
21649
21650 netbsd*)
21651 version_type=sunos
21652 need_lib_prefix=no
21653 need_version=no
21654 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21657 dynamic_linker='NetBSD (a.out) ld.so'
21658 else
21659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21660 soname_spec='${libname}${release}${shared_ext}$major'
21661 dynamic_linker='NetBSD ld.elf_so'
21662 fi
21663 shlibpath_var=LD_LIBRARY_PATH
21664 shlibpath_overrides_runpath=yes
21665 hardcode_into_libs=yes
21666 ;;
21667
21668 newsos6)
21669 version_type=linux # correct to gnu/linux during the next big refactor
21670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21671 shlibpath_var=LD_LIBRARY_PATH
21672 shlibpath_overrides_runpath=yes
21673 ;;
21674
21675 *nto* | *qnx*)
21676 version_type=qnx
21677 need_lib_prefix=no
21678 need_version=no
21679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21680 soname_spec='${libname}${release}${shared_ext}$major'
21681 shlibpath_var=LD_LIBRARY_PATH
21682 shlibpath_overrides_runpath=no
21683 hardcode_into_libs=yes
21684 dynamic_linker='ldqnx.so'
21685 ;;
21686
21687 openbsd*)
21688 version_type=sunos
21689 sys_lib_dlsearch_path_spec="/usr/lib"
21690 need_lib_prefix=no
21691 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21692 case $host_os in
21693 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21694 *) need_version=no ;;
21695 esac
21696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21698 shlibpath_var=LD_LIBRARY_PATH
21699 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21700 case $host_os in
21701 openbsd2.[89] | openbsd2.[89].*)
21702 shlibpath_overrides_runpath=no
21703 ;;
21704 *)
21705 shlibpath_overrides_runpath=yes
21706 ;;
21707 esac
21708 else
21709 shlibpath_overrides_runpath=yes
21710 fi
21711 ;;
21712
21713 os2*)
21714 libname_spec='$name'
21715 shrext_cmds=".dll"
21716 need_lib_prefix=no
21717 library_names_spec='$libname${shared_ext} $libname.a'
21718 dynamic_linker='OS/2 ld.exe'
21719 shlibpath_var=LIBPATH
21720 ;;
21721
21722 osf3* | osf4* | osf5*)
21723 version_type=osf
21724 need_lib_prefix=no
21725 need_version=no
21726 soname_spec='${libname}${release}${shared_ext}$major'
21727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21728 shlibpath_var=LD_LIBRARY_PATH
21729 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21730 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21731 ;;
21732
21733 rdos*)
21734 dynamic_linker=no
21735 ;;
21736
21737 solaris*)
21738 version_type=linux # correct to gnu/linux during the next big refactor
21739 need_lib_prefix=no
21740 need_version=no
21741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21742 soname_spec='${libname}${release}${shared_ext}$major'
21743 shlibpath_var=LD_LIBRARY_PATH
21744 shlibpath_overrides_runpath=yes
21745 hardcode_into_libs=yes
21746 # ldd complains unless libraries are executable
21747 postinstall_cmds='chmod +x $lib'
21748 ;;
21749
21750 sunos4*)
21751 version_type=sunos
21752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21753 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21754 shlibpath_var=LD_LIBRARY_PATH
21755 shlibpath_overrides_runpath=yes
21756 if test "$with_gnu_ld" = yes; then
21757 need_lib_prefix=no
21758 fi
21759 need_version=yes
21760 ;;
21761
21762 sysv4 | sysv4.3*)
21763 version_type=linux # correct to gnu/linux during the next big refactor
21764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21765 soname_spec='${libname}${release}${shared_ext}$major'
21766 shlibpath_var=LD_LIBRARY_PATH
21767 case $host_vendor in
21768 sni)
21769 shlibpath_overrides_runpath=no
21770 need_lib_prefix=no
21771 runpath_var=LD_RUN_PATH
21772 ;;
21773 siemens)
21774 need_lib_prefix=no
21775 ;;
21776 motorola)
21777 need_lib_prefix=no
21778 need_version=no
21779 shlibpath_overrides_runpath=no
21780 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21781 ;;
21782 esac
21783 ;;
21784
21785 sysv4*MP*)
21786 if test -d /usr/nec ;then
21787 version_type=linux # correct to gnu/linux during the next big refactor
21788 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21789 soname_spec='$libname${shared_ext}.$major'
21790 shlibpath_var=LD_LIBRARY_PATH
21791 fi
21792 ;;
21793
21794 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21795 version_type=freebsd-elf
21796 need_lib_prefix=no
21797 need_version=no
21798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21799 soname_spec='${libname}${release}${shared_ext}$major'
21800 shlibpath_var=LD_LIBRARY_PATH
21801 shlibpath_overrides_runpath=yes
21802 hardcode_into_libs=yes
21803 if test "$with_gnu_ld" = yes; then
21804 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21805 else
21806 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21807 case $host_os in
21808 sco3.2v5*)
21809 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21810 ;;
21811 esac
21812 fi
21813 sys_lib_dlsearch_path_spec='/usr/lib'
21814 ;;
21815
21816 tpf*)
21817 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21818 version_type=linux # correct to gnu/linux during the next big refactor
21819 need_lib_prefix=no
21820 need_version=no
21821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21822 shlibpath_var=LD_LIBRARY_PATH
21823 shlibpath_overrides_runpath=no
21824 hardcode_into_libs=yes
21825 ;;
21826
21827 uts4*)
21828 version_type=linux # correct to gnu/linux during the next big refactor
21829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21830 soname_spec='${libname}${release}${shared_ext}$major'
21831 shlibpath_var=LD_LIBRARY_PATH
21832 ;;
21833
21834 *)
21835 dynamic_linker=no
21836 ;;
21837 esac
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21839 $as_echo "$dynamic_linker" >&6; }
21840 test "$dynamic_linker" = no && can_build_shared=no
21841
21842 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21843 if test "$GCC" = yes; then
21844 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21845 fi
21846
21847 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21848 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21849 fi
21850 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21851 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21852 fi
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866
21867
21868
21869
21870
21871
21872
21873
21874
21875
21876
21877
21878
21879
21880
21881
21882
21883
21884
21885
21886
21887
21888
21889
21890
21891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21892 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21893 hardcode_action_CXX=
21894 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21895 test -n "$runpath_var_CXX" ||
21896 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21897
21898 # We can hardcode non-existent directories.
21899 if test "$hardcode_direct_CXX" != no &&
21900 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21901 # have to relink, otherwise we might link with an installed library
21902 # when we should be linking with a yet-to-be-installed one
21903 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21904 test "$hardcode_minus_L_CXX" != no; then
21905 # Linking always hardcodes the temporary library directory.
21906 hardcode_action_CXX=relink
21907 else
21908 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21909 hardcode_action_CXX=immediate
21910 fi
21911 else
21912 # We cannot hardcode anything, or else we can only hardcode existing
21913 # directories.
21914 hardcode_action_CXX=unsupported
21915 fi
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21917 $as_echo "$hardcode_action_CXX" >&6; }
21918
21919 if test "$hardcode_action_CXX" = relink ||
21920 test "$inherit_rpath_CXX" = yes; then
21921 # Fast installation is not supported
21922 enable_fast_install=no
21923 elif test "$shlibpath_overrides_runpath" = yes ||
21924 test "$enable_shared" = no; then
21925 # Fast installation is not necessary
21926 enable_fast_install=needless
21927 fi
21928
21929
21930
21931
21932
21933
21934
21935 fi # test -n "$compiler"
21936
21937 CC=$lt_save_CC
21938 CFLAGS=$lt_save_CFLAGS
21939 LDCXX=$LD
21940 LD=$lt_save_LD
21941 GCC=$lt_save_GCC
21942 with_gnu_ld=$lt_save_with_gnu_ld
21943 lt_cv_path_LDCXX=$lt_cv_path_LD
21944 lt_cv_path_LD=$lt_save_path_LD
21945 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21946 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21947 fi # test "$_lt_caught_CXX_error" != yes
21948
21949 ac_ext=c
21950 ac_cpp='$CPP $CPPFLAGS'
21951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21954
21955
21956
21957 ac_ext=f
21958 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21959 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21960 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21961
21962 if test -z "$F77" || test "X$F77" = "Xno"; then
21963 _lt_disable_F77=yes
21964 fi
21965
21966 archive_cmds_need_lc_F77=no
21967 allow_undefined_flag_F77=
21968 always_export_symbols_F77=no
21969 archive_expsym_cmds_F77=
21970 export_dynamic_flag_spec_F77=
21971 hardcode_direct_F77=no
21972 hardcode_direct_absolute_F77=no
21973 hardcode_libdir_flag_spec_F77=
21974 hardcode_libdir_separator_F77=
21975 hardcode_minus_L_F77=no
21976 hardcode_automatic_F77=no
21977 inherit_rpath_F77=no
21978 module_cmds_F77=
21979 module_expsym_cmds_F77=
21980 link_all_deplibs_F77=unknown
21981 old_archive_cmds_F77=$old_archive_cmds
21982 reload_flag_F77=$reload_flag
21983 reload_cmds_F77=$reload_cmds
21984 no_undefined_flag_F77=
21985 whole_archive_flag_spec_F77=
21986 enable_shared_with_static_runtimes_F77=no
21987
21988 # Source file extension for f77 test sources.
21989 ac_ext=f
21990
21991 # Object file extension for compiled f77 test sources.
21992 objext=o
21993 objext_F77=$objext
21994
21995 # No sense in running all these tests if we already determined that
21996 # the F77 compiler isn't working. Some variables (like enable_shared)
21997 # are currently assumed to apply to all compilers on this platform,
21998 # and will be corrupted by setting them based on a non-working compiler.
21999 if test "$_lt_disable_F77" != yes; then
22000 # Code to be used in simple compile tests
22001 lt_simple_compile_test_code="\
22002 subroutine t
22003 return
22004 end
22005 "
22006
22007 # Code to be used in simple link tests
22008 lt_simple_link_test_code="\
22009 program t
22010 end
22011 "
22012
22013 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22014
22015
22016
22017
22018
22019
22020 # If no C compiler was specified, use CC.
22021 LTCC=${LTCC-"$CC"}
22022
22023 # If no C compiler flags were specified, use CFLAGS.
22024 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22025
22026 # Allow CC to be a program name with arguments.
22027 compiler=$CC
22028
22029
22030 # save warnings/boilerplate of simple test code
22031 ac_outfile=conftest.$ac_objext
22032 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
22033 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22034 _lt_compiler_boilerplate=`cat conftest.err`
22035 $RM conftest*
22036
22037 ac_outfile=conftest.$ac_objext
22038 echo "$lt_simple_link_test_code" >conftest.$ac_ext
22039 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22040 _lt_linker_boilerplate=`cat conftest.err`
22041 $RM -r conftest*
22042
22043
22044 # Allow CC to be a program name with arguments.
22045 lt_save_CC="$CC"
22046 lt_save_GCC=$GCC
22047 lt_save_CFLAGS=$CFLAGS
22048 CC=${F77-"f77"}
22049 CFLAGS=$FFLAGS
22050 compiler=$CC
22051 compiler_F77=$CC
22052 for cc_temp in $compiler""; do
22053 case $cc_temp in
22054 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22055 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22056 \-*) ;;
22057 *) break;;
22058 esac
22059 done
22060 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22061
22062 GCC=$G77
22063 if test -n "$compiler"; then
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
22065 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
22067 $as_echo "$can_build_shared" >&6; }
22068
22069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
22070 $as_echo_n "checking whether to build shared libraries... " >&6; }
22071 test "$can_build_shared" = "no" && enable_shared=no
22072
22073 # On AIX, shared libraries and static libraries use the same namespace, and
22074 # are all built from PIC.
22075 case $host_os in
22076 aix3*)
22077 test "$enable_shared" = yes && enable_static=no
22078 if test -n "$RANLIB"; then
22079 archive_cmds="$archive_cmds~\$RANLIB \$lib"
22080 postinstall_cmds='$RANLIB $lib'
22081 fi
22082 ;;
22083 aix[4-9]*)
22084 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
22085 test "$enable_shared" = yes && enable_static=no
22086 fi
22087 ;;
22088 esac
22089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
22090 $as_echo "$enable_shared" >&6; }
22091
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
22093 $as_echo_n "checking whether to build static libraries... " >&6; }
22094 # Make sure either enable_shared or enable_static is yes.
22095 test "$enable_shared" = yes || enable_static=yes
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
22097 $as_echo "$enable_static" >&6; }
22098
22099 GCC_F77="$G77"
22100 LD_F77="$LD"
22101
22102 ## CAVEAT EMPTOR:
22103 ## There is no encapsulation within the following macros, do not change
22104 ## the running order or otherwise move them around unless you know exactly
22105 ## what you are doing...
22106 lt_prog_compiler_wl_F77=
22107 lt_prog_compiler_pic_F77=
22108 lt_prog_compiler_static_F77=
22109
22110
22111 if test "$GCC" = yes; then
22112 lt_prog_compiler_wl_F77='-Wl,'
22113 lt_prog_compiler_static_F77='-static'
22114
22115 case $host_os in
22116 aix*)
22117 # All AIX code is PIC.
22118 if test "$host_cpu" = ia64; then
22119 # AIX 5 now supports IA64 processor
22120 lt_prog_compiler_static_F77='-Bstatic'
22121 fi
22122 ;;
22123
22124 amigaos*)
22125 case $host_cpu in
22126 powerpc)
22127 # see comment about AmigaOS4 .so support
22128 lt_prog_compiler_pic_F77='-fPIC'
22129 ;;
22130 m68k)
22131 # FIXME: we need at least 68020 code to build shared libraries, but
22132 # adding the `-m68020' flag to GCC prevents building anything better,
22133 # like `-m68040'.
22134 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
22135 ;;
22136 esac
22137 ;;
22138
22139 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22140 # PIC is the default for these OSes.
22141 ;;
22142
22143 mingw* | cygwin* | pw32* | os2* | cegcc*)
22144 # This hack is so that the source file can tell whether it is being
22145 # built for inclusion in a dll (and should export symbols for example).
22146 # Although the cygwin gcc ignores -fPIC, still need this for old-style
22147 # (--disable-auto-import) libraries
22148 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
22149 ;;
22150
22151 darwin* | rhapsody*)
22152 # PIC is the default on this platform
22153 # Common symbols not allowed in MH_DYLIB files
22154 lt_prog_compiler_pic_F77='-fno-common'
22155 ;;
22156
22157 haiku*)
22158 # PIC is the default for Haiku.
22159 # The "-static" flag exists, but is broken.
22160 lt_prog_compiler_static_F77=
22161 ;;
22162
22163 hpux*)
22164 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
22165 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
22166 # sets the default TLS model and affects inlining.
22167 case $host_cpu in
22168 hppa*64*)
22169 # +Z the default
22170 ;;
22171 *)
22172 lt_prog_compiler_pic_F77='-fPIC'
22173 ;;
22174 esac
22175 ;;
22176
22177 interix[3-9]*)
22178 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22179 # Instead, we relocate shared libraries at runtime.
22180 ;;
22181
22182 msdosdjgpp*)
22183 # Just because we use GCC doesn't mean we suddenly get shared libraries
22184 # on systems that don't support them.
22185 lt_prog_compiler_can_build_shared_F77=no
22186 enable_shared=no
22187 ;;
22188
22189 *nto* | *qnx*)
22190 # QNX uses GNU C++, but need to define -shared option too, otherwise
22191 # it will coredump.
22192 lt_prog_compiler_pic_F77='-fPIC -shared'
22193 ;;
22194
22195 sysv4*MP*)
22196 if test -d /usr/nec; then
22197 lt_prog_compiler_pic_F77=-Kconform_pic
22198 fi
22199 ;;
22200
22201 *)
22202 lt_prog_compiler_pic_F77='-fPIC'
22203 ;;
22204 esac
22205
22206 case $cc_basename in
22207 nvcc*) # Cuda Compiler Driver 2.2
22208 lt_prog_compiler_wl_F77='-Xlinker '
22209 if test -n "$lt_prog_compiler_pic_F77"; then
22210 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
22211 fi
22212 ;;
22213 esac
22214 else
22215 # PORTME Check for flag to pass linker flags through the system compiler.
22216 case $host_os in
22217 aix*)
22218 lt_prog_compiler_wl_F77='-Wl,'
22219 if test "$host_cpu" = ia64; then
22220 # AIX 5 now supports IA64 processor
22221 lt_prog_compiler_static_F77='-Bstatic'
22222 else
22223 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
22224 fi
22225 ;;
22226
22227 mingw* | cygwin* | pw32* | os2* | cegcc*)
22228 # This hack is so that the source file can tell whether it is being
22229 # built for inclusion in a dll (and should export symbols for example).
22230 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
22231 ;;
22232
22233 hpux9* | hpux10* | hpux11*)
22234 lt_prog_compiler_wl_F77='-Wl,'
22235 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22236 # not for PA HP-UX.
22237 case $host_cpu in
22238 hppa*64*|ia64*)
22239 # +Z the default
22240 ;;
22241 *)
22242 lt_prog_compiler_pic_F77='+Z'
22243 ;;
22244 esac
22245 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22246 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
22247 ;;
22248
22249 irix5* | irix6* | nonstopux*)
22250 lt_prog_compiler_wl_F77='-Wl,'
22251 # PIC (with -KPIC) is the default.
22252 lt_prog_compiler_static_F77='-non_shared'
22253 ;;
22254
22255 linux* | k*bsd*-gnu | kopensolaris*-gnu)
22256 case $cc_basename in
22257 # old Intel for x86_64 which still supported -KPIC.
22258 ecc*)
22259 lt_prog_compiler_wl_F77='-Wl,'
22260 lt_prog_compiler_pic_F77='-KPIC'
22261 lt_prog_compiler_static_F77='-static'
22262 ;;
22263 # icc used to be incompatible with GCC.
22264 # ICC 10 doesn't accept -KPIC any more.
22265 icc* | ifort*)
22266 lt_prog_compiler_wl_F77='-Wl,'
22267 lt_prog_compiler_pic_F77='-fPIC'
22268 lt_prog_compiler_static_F77='-static'
22269 ;;
22270 # Lahey Fortran 8.1.
22271 lf95*)
22272 lt_prog_compiler_wl_F77='-Wl,'
22273 lt_prog_compiler_pic_F77='--shared'
22274 lt_prog_compiler_static_F77='--static'
22275 ;;
22276 nagfor*)
22277 # NAG Fortran compiler
22278 lt_prog_compiler_wl_F77='-Wl,-Wl,,'
22279 lt_prog_compiler_pic_F77='-PIC'
22280 lt_prog_compiler_static_F77='-Bstatic'
22281 ;;
22282 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
22283 # Portland Group compilers (*not* the Pentium gcc compiler,
22284 # which looks to be a dead project)
22285 lt_prog_compiler_wl_F77='-Wl,'
22286 lt_prog_compiler_pic_F77='-fpic'
22287 lt_prog_compiler_static_F77='-Bstatic'
22288 ;;
22289 ccc*)
22290 lt_prog_compiler_wl_F77='-Wl,'
22291 # All Alpha code is PIC.
22292 lt_prog_compiler_static_F77='-non_shared'
22293 ;;
22294 xl* | bgxl* | bgf* | mpixl*)
22295 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
22296 lt_prog_compiler_wl_F77='-Wl,'
22297 lt_prog_compiler_pic_F77='-qpic'
22298 lt_prog_compiler_static_F77='-qstaticlink'
22299 ;;
22300 *)
22301 case `$CC -V 2>&1 | sed 5q` in
22302 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
22303 # Sun Fortran 8.3 passes all unrecognized flags to the linker
22304 lt_prog_compiler_pic_F77='-KPIC'
22305 lt_prog_compiler_static_F77='-Bstatic'
22306 lt_prog_compiler_wl_F77=''
22307 ;;
22308 *Sun\ F* | *Sun*Fortran*)
22309 lt_prog_compiler_pic_F77='-KPIC'
22310 lt_prog_compiler_static_F77='-Bstatic'
22311 lt_prog_compiler_wl_F77='-Qoption ld '
22312 ;;
22313 *Sun\ C*)
22314 # Sun C 5.9
22315 lt_prog_compiler_pic_F77='-KPIC'
22316 lt_prog_compiler_static_F77='-Bstatic'
22317 lt_prog_compiler_wl_F77='-Wl,'
22318 ;;
22319 *Intel*\ [CF]*Compiler*)
22320 lt_prog_compiler_wl_F77='-Wl,'
22321 lt_prog_compiler_pic_F77='-fPIC'
22322 lt_prog_compiler_static_F77='-static'
22323 ;;
22324 *Portland\ Group*)
22325 lt_prog_compiler_wl_F77='-Wl,'
22326 lt_prog_compiler_pic_F77='-fpic'
22327 lt_prog_compiler_static_F77='-Bstatic'
22328 ;;
22329 esac
22330 ;;
22331 esac
22332 ;;
22333
22334 newsos6)
22335 lt_prog_compiler_pic_F77='-KPIC'
22336 lt_prog_compiler_static_F77='-Bstatic'
22337 ;;
22338
22339 *nto* | *qnx*)
22340 # QNX uses GNU C++, but need to define -shared option too, otherwise
22341 # it will coredump.
22342 lt_prog_compiler_pic_F77='-fPIC -shared'
22343 ;;
22344
22345 osf3* | osf4* | osf5*)
22346 lt_prog_compiler_wl_F77='-Wl,'
22347 # All OSF/1 code is PIC.
22348 lt_prog_compiler_static_F77='-non_shared'
22349 ;;
22350
22351 rdos*)
22352 lt_prog_compiler_static_F77='-non_shared'
22353 ;;
22354
22355 solaris*)
22356 lt_prog_compiler_pic_F77='-KPIC'
22357 lt_prog_compiler_static_F77='-Bstatic'
22358 case $cc_basename in
22359 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
22360 lt_prog_compiler_wl_F77='-Qoption ld ';;
22361 *)
22362 lt_prog_compiler_wl_F77='-Wl,';;
22363 esac
22364 ;;
22365
22366 sunos4*)
22367 lt_prog_compiler_wl_F77='-Qoption ld '
22368 lt_prog_compiler_pic_F77='-PIC'
22369 lt_prog_compiler_static_F77='-Bstatic'
22370 ;;
22371
22372 sysv4 | sysv4.2uw2* | sysv4.3*)
22373 lt_prog_compiler_wl_F77='-Wl,'
22374 lt_prog_compiler_pic_F77='-KPIC'
22375 lt_prog_compiler_static_F77='-Bstatic'
22376 ;;
22377
22378 sysv4*MP*)
22379 if test -d /usr/nec ;then
22380 lt_prog_compiler_pic_F77='-Kconform_pic'
22381 lt_prog_compiler_static_F77='-Bstatic'
22382 fi
22383 ;;
22384
22385 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22386 lt_prog_compiler_wl_F77='-Wl,'
22387 lt_prog_compiler_pic_F77='-KPIC'
22388 lt_prog_compiler_static_F77='-Bstatic'
22389 ;;
22390
22391 unicos*)
22392 lt_prog_compiler_wl_F77='-Wl,'
22393 lt_prog_compiler_can_build_shared_F77=no
22394 ;;
22395
22396 uts4*)
22397 lt_prog_compiler_pic_F77='-pic'
22398 lt_prog_compiler_static_F77='-Bstatic'
22399 ;;
22400
22401 *)
22402 lt_prog_compiler_can_build_shared_F77=no
22403 ;;
22404 esac
22405 fi
22406
22407 case $host_os in
22408 # For platforms which do not support PIC, -DPIC is meaningless:
22409 *djgpp*)
22410 lt_prog_compiler_pic_F77=
22411 ;;
22412 *)
22413 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
22414 ;;
22415 esac
22416
22417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
22418 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
22419 if ${lt_cv_prog_compiler_pic_F77+:} false; then :
22420 $as_echo_n "(cached) " >&6
22421 else
22422 lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
22423 fi
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
22425 $as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
22426 lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
22427
22428 #
22429 # Check to make sure the PIC flag actually works.
22430 #
22431 if test -n "$lt_prog_compiler_pic_F77"; then
22432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
22433 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
22434 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
22435 $as_echo_n "(cached) " >&6
22436 else
22437 lt_cv_prog_compiler_pic_works_F77=no
22438 ac_outfile=conftest.$ac_objext
22439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22440 lt_compiler_flag="$lt_prog_compiler_pic_F77"
22441 # Insert the option either (1) after the last *FLAGS variable, or
22442 # (2) before a word containing "conftest.", or (3) at the end.
22443 # Note that $ac_compile itself does not contain backslashes and begins
22444 # with a dollar sign (not a hyphen), so the echo should work correctly.
22445 # The option is referenced via a variable to avoid confusing sed.
22446 lt_compile=`echo "$ac_compile" | $SED \
22447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22449 -e 's:$: $lt_compiler_flag:'`
22450 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22451 (eval "$lt_compile" 2>conftest.err)
22452 ac_status=$?
22453 cat conftest.err >&5
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 if (exit $ac_status) && test -s "$ac_outfile"; then
22456 # The compiler can only warn and ignore the option if not recognized
22457 # So say no if there are warnings other than the usual output.
22458 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
22459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22460 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22461 lt_cv_prog_compiler_pic_works_F77=yes
22462 fi
22463 fi
22464 $RM conftest*
22465
22466 fi
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
22468 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
22469
22470 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
22471 case $lt_prog_compiler_pic_F77 in
22472 "" | " "*) ;;
22473 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
22474 esac
22475 else
22476 lt_prog_compiler_pic_F77=
22477 lt_prog_compiler_can_build_shared_F77=no
22478 fi
22479
22480 fi
22481
22482
22483
22484
22485
22486 #
22487 # Check to make sure the static flag actually works.
22488 #
22489 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
22490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22491 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22492 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
22493 $as_echo_n "(cached) " >&6
22494 else
22495 lt_cv_prog_compiler_static_works_F77=no
22496 save_LDFLAGS="$LDFLAGS"
22497 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22498 echo "$lt_simple_link_test_code" > conftest.$ac_ext
22499 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22500 # The linker can only warn and ignore the option if not recognized
22501 # So say no if there are warnings
22502 if test -s conftest.err; then
22503 # Append any errors to the config.log.
22504 cat conftest.err 1>&5
22505 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
22506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22507 if diff conftest.exp conftest.er2 >/dev/null; then
22508 lt_cv_prog_compiler_static_works_F77=yes
22509 fi
22510 else
22511 lt_cv_prog_compiler_static_works_F77=yes
22512 fi
22513 fi
22514 $RM -r conftest*
22515 LDFLAGS="$save_LDFLAGS"
22516
22517 fi
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
22519 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
22520
22521 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
22522 :
22523 else
22524 lt_prog_compiler_static_F77=
22525 fi
22526
22527
22528
22529
22530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22531 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22532 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
22533 $as_echo_n "(cached) " >&6
22534 else
22535 lt_cv_prog_compiler_c_o_F77=no
22536 $RM -r conftest 2>/dev/null
22537 mkdir conftest
22538 cd conftest
22539 mkdir out
22540 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22541
22542 lt_compiler_flag="-o out/conftest2.$ac_objext"
22543 # Insert the option either (1) after the last *FLAGS variable, or
22544 # (2) before a word containing "conftest.", or (3) at the end.
22545 # Note that $ac_compile itself does not contain backslashes and begins
22546 # with a dollar sign (not a hyphen), so the echo should work correctly.
22547 lt_compile=`echo "$ac_compile" | $SED \
22548 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22549 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22550 -e 's:$: $lt_compiler_flag:'`
22551 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22552 (eval "$lt_compile" 2>out/conftest.err)
22553 ac_status=$?
22554 cat out/conftest.err >&5
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22557 then
22558 # The compiler can only warn and ignore the option if not recognized
22559 # So say no if there are warnings
22560 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22561 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22562 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22563 lt_cv_prog_compiler_c_o_F77=yes
22564 fi
22565 fi
22566 chmod u+w . 2>&5
22567 $RM conftest*
22568 # SGI C++ compiler will create directory out/ii_files/ for
22569 # template instantiation
22570 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22571 $RM out/* && rmdir out
22572 cd ..
22573 $RM -r conftest
22574 $RM conftest*
22575
22576 fi
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
22578 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
22579
22580
22581
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22583 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22584 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
22585 $as_echo_n "(cached) " >&6
22586 else
22587 lt_cv_prog_compiler_c_o_F77=no
22588 $RM -r conftest 2>/dev/null
22589 mkdir conftest
22590 cd conftest
22591 mkdir out
22592 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22593
22594 lt_compiler_flag="-o out/conftest2.$ac_objext"
22595 # Insert the option either (1) after the last *FLAGS variable, or
22596 # (2) before a word containing "conftest.", or (3) at the end.
22597 # Note that $ac_compile itself does not contain backslashes and begins
22598 # with a dollar sign (not a hyphen), so the echo should work correctly.
22599 lt_compile=`echo "$ac_compile" | $SED \
22600 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22601 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22602 -e 's:$: $lt_compiler_flag:'`
22603 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22604 (eval "$lt_compile" 2>out/conftest.err)
22605 ac_status=$?
22606 cat out/conftest.err >&5
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22609 then
22610 # The compiler can only warn and ignore the option if not recognized
22611 # So say no if there are warnings
22612 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22613 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22614 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22615 lt_cv_prog_compiler_c_o_F77=yes
22616 fi
22617 fi
22618 chmod u+w . 2>&5
22619 $RM conftest*
22620 # SGI C++ compiler will create directory out/ii_files/ for
22621 # template instantiation
22622 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22623 $RM out/* && rmdir out
22624 cd ..
22625 $RM -r conftest
22626 $RM conftest*
22627
22628 fi
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
22630 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
22631
22632
22633
22634
22635 hard_links="nottested"
22636 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22637 # do not overwrite the value of need_locks provided by the user
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22639 $as_echo_n "checking if we can lock with hard links... " >&6; }
22640 hard_links=yes
22641 $RM conftest*
22642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22643 touch conftest.a
22644 ln conftest.a conftest.b 2>&5 || hard_links=no
22645 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22647 $as_echo "$hard_links" >&6; }
22648 if test "$hard_links" = no; then
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22650 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22651 need_locks=warn
22652 fi
22653 else
22654 need_locks=no
22655 fi
22656
22657
22658
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22660 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22661
22662 runpath_var=
22663 allow_undefined_flag_F77=
22664 always_export_symbols_F77=no
22665 archive_cmds_F77=
22666 archive_expsym_cmds_F77=
22667 compiler_needs_object_F77=no
22668 enable_shared_with_static_runtimes_F77=no
22669 export_dynamic_flag_spec_F77=
22670 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22671 hardcode_automatic_F77=no
22672 hardcode_direct_F77=no
22673 hardcode_direct_absolute_F77=no
22674 hardcode_libdir_flag_spec_F77=
22675 hardcode_libdir_separator_F77=
22676 hardcode_minus_L_F77=no
22677 hardcode_shlibpath_var_F77=unsupported
22678 inherit_rpath_F77=no
22679 link_all_deplibs_F77=unknown
22680 module_cmds_F77=
22681 module_expsym_cmds_F77=
22682 old_archive_from_new_cmds_F77=
22683 old_archive_from_expsyms_cmds_F77=
22684 thread_safe_flag_spec_F77=
22685 whole_archive_flag_spec_F77=
22686 # include_expsyms should be a list of space-separated symbols to be *always*
22687 # included in the symbol list
22688 include_expsyms_F77=
22689 # exclude_expsyms can be an extended regexp of symbols to exclude
22690 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22691 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22692 # as well as any symbol that contains `d'.
22693 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22694 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22695 # platforms (ab)use it in PIC code, but their linkers get confused if
22696 # the symbol is explicitly referenced. Since portable code cannot
22697 # rely on this symbol name, it's probably fine to never include it in
22698 # preloaded symbol tables.
22699 # Exclude shared library initialization/finalization symbols.
22700 extract_expsyms_cmds=
22701
22702 case $host_os in
22703 cygwin* | mingw* | pw32* | cegcc*)
22704 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22705 # When not using gcc, we currently assume that we are using
22706 # Microsoft Visual C++.
22707 if test "$GCC" != yes; then
22708 with_gnu_ld=no
22709 fi
22710 ;;
22711 interix*)
22712 # we just hope/assume this is gcc and not c89 (= MSVC++)
22713 with_gnu_ld=yes
22714 ;;
22715 openbsd*)
22716 with_gnu_ld=no
22717 ;;
22718 esac
22719
22720 ld_shlibs_F77=yes
22721
22722 # On some targets, GNU ld is compatible enough with the native linker
22723 # that we're better off using the native interface for both.
22724 lt_use_gnu_ld_interface=no
22725 if test "$with_gnu_ld" = yes; then
22726 case $host_os in
22727 aix*)
22728 # The AIX port of GNU ld has always aspired to compatibility
22729 # with the native linker. However, as the warning in the GNU ld
22730 # block says, versions before 2.19.5* couldn't really create working
22731 # shared libraries, regardless of the interface used.
22732 case `$LD -v 2>&1` in
22733 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
22734 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
22735 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
22736 *)
22737 lt_use_gnu_ld_interface=yes
22738 ;;
22739 esac
22740 ;;
22741 *)
22742 lt_use_gnu_ld_interface=yes
22743 ;;
22744 esac
22745 fi
22746
22747 if test "$lt_use_gnu_ld_interface" = yes; then
22748 # If archive_cmds runs LD, not CC, wlarc should be empty
22749 wlarc='${wl}'
22750
22751 # Set some defaults for GNU ld with shared library support. These
22752 # are reset later if shared libraries are not supported. Putting them
22753 # here allows them to be overridden if necessary.
22754 runpath_var=LD_RUN_PATH
22755 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22756 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22757 # ancient GNU ld didn't support --whole-archive et. al.
22758 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
22759 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22760 else
22761 whole_archive_flag_spec_F77=
22762 fi
22763 supports_anon_versioning=no
22764 case `$LD -v 2>&1` in
22765 *GNU\ gold*) supports_anon_versioning=yes ;;
22766 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22767 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22768 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22769 *\ 2.11.*) ;; # other 2.11 versions
22770 *) supports_anon_versioning=yes ;;
22771 esac
22772
22773 # See if GNU ld supports shared libraries.
22774 case $host_os in
22775 aix[3-9]*)
22776 # On AIX/PPC, the GNU linker is very broken
22777 if test "$host_cpu" != ia64; then
22778 ld_shlibs_F77=no
22779 cat <<_LT_EOF 1>&2
22780
22781 *** Warning: the GNU linker, at least up to release 2.19, is reported
22782 *** to be unable to reliably create shared libraries on AIX.
22783 *** Therefore, libtool is disabling shared libraries support. If you
22784 *** really care for shared libraries, you may want to install binutils
22785 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
22786 *** You will then need to restart the configuration process.
22787
22788 _LT_EOF
22789 fi
22790 ;;
22791
22792 amigaos*)
22793 case $host_cpu in
22794 powerpc)
22795 # see comment about AmigaOS4 .so support
22796 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22797 archive_expsym_cmds_F77=''
22798 ;;
22799 m68k)
22800 archive_cmds_F77='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
22801 hardcode_libdir_flag_spec_F77='-L$libdir'
22802 hardcode_minus_L_F77=yes
22803 ;;
22804 esac
22805 ;;
22806
22807 beos*)
22808 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22809 allow_undefined_flag_F77=unsupported
22810 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
22811 # support --undefined. This deserves some investigation. FIXME
22812 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22813 else
22814 ld_shlibs_F77=no
22815 fi
22816 ;;
22817
22818 cygwin* | mingw* | pw32* | cegcc*)
22819 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22820 # as there is no search path for DLLs.
22821 hardcode_libdir_flag_spec_F77='-L$libdir'
22822 export_dynamic_flag_spec_F77='${wl}--export-all-symbols'
22823 allow_undefined_flag_F77=unsupported
22824 always_export_symbols_F77=no
22825 enable_shared_with_static_runtimes_F77=yes
22826 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
22827 exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
22828
22829 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
22830 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22831 # If the export-symbols file already is a .def file (1st line
22832 # is EXPORTS), use it as is; otherwise, prepend...
22833 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22834 cp $export_symbols $output_objdir/$soname.def;
22835 else
22836 echo EXPORTS > $output_objdir/$soname.def;
22837 cat $export_symbols >> $output_objdir/$soname.def;
22838 fi~
22839 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22840 else
22841 ld_shlibs_F77=no
22842 fi
22843 ;;
22844
22845 haiku*)
22846 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22847 link_all_deplibs_F77=yes
22848 ;;
22849
22850 interix[3-9]*)
22851 hardcode_direct_F77=no
22852 hardcode_shlibpath_var_F77=no
22853 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22854 export_dynamic_flag_spec_F77='${wl}-E'
22855 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22856 # Instead, shared libraries are loaded at an image base (0x10000000 by
22857 # default) and relocated if they conflict, which is a slow very memory
22858 # consuming and fragmenting process. To avoid this, we pick a random,
22859 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22860 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22861 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22862 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22863 ;;
22864
22865 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
22866 tmp_diet=no
22867 if test "$host_os" = linux-dietlibc; then
22868 case $cc_basename in
22869 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
22870 esac
22871 fi
22872 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
22873 && test "$tmp_diet" = no
22874 then
22875 tmp_addflag=' $pic_flag'
22876 tmp_sharedflag='-shared'
22877 case $cc_basename,$host_cpu in
22878 pgcc*) # Portland Group C compiler
22879 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
22880 tmp_addflag=' $pic_flag'
22881 ;;
22882 pgf77* | pgf90* | pgf95* | pgfortran*)
22883 # Portland Group f77 and f90 compilers
22884 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
22885 tmp_addflag=' $pic_flag -Mnomain' ;;
22886 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22887 tmp_addflag=' -i_dynamic' ;;
22888 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22889 tmp_addflag=' -i_dynamic -nofor_main' ;;
22890 ifc* | ifort*) # Intel Fortran compiler
22891 tmp_addflag=' -nofor_main' ;;
22892 lf95*) # Lahey Fortran 8.1
22893 whole_archive_flag_spec_F77=
22894 tmp_sharedflag='--shared' ;;
22895 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
22896 tmp_sharedflag='-qmkshrobj'
22897 tmp_addflag= ;;
22898 nvcc*) # Cuda Compiler Driver 2.2
22899 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
22900 compiler_needs_object_F77=yes
22901 ;;
22902 esac
22903 case `$CC -V 2>&1 | sed 5q` in
22904 *Sun\ C*) # Sun C 5.9
22905 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
22906 compiler_needs_object_F77=yes
22907 tmp_sharedflag='-G' ;;
22908 *Sun\ F*) # Sun Fortran 8.3
22909 tmp_sharedflag='-G' ;;
22910 esac
22911 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22912
22913 if test "x$supports_anon_versioning" = xyes; then
22914 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
22915 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22916 echo "local: *; };" >> $output_objdir/$libname.ver~
22917 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22918 fi
22919
22920 case $cc_basename in
22921 xlf* | bgf* | bgxlf* | mpixlf*)
22922 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
22923 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
22924 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22925 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
22926 if test "x$supports_anon_versioning" = xyes; then
22927 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
22928 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22929 echo "local: *; };" >> $output_objdir/$libname.ver~
22930 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
22931 fi
22932 ;;
22933 esac
22934 else
22935 ld_shlibs_F77=no
22936 fi
22937 ;;
22938
22939 netbsd*)
22940 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22941 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22942 wlarc=
22943 else
22944 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22945 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22946 fi
22947 ;;
22948
22949 solaris*)
22950 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
22951 ld_shlibs_F77=no
22952 cat <<_LT_EOF 1>&2
22953
22954 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22955 *** create shared libraries on Solaris systems. Therefore, libtool
22956 *** is disabling shared libraries support. We urge you to upgrade GNU
22957 *** binutils to release 2.9.1 or newer. Another option is to modify
22958 *** your PATH or compiler configuration so that the native linker is
22959 *** used, and then restart.
22960
22961 _LT_EOF
22962 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22963 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22964 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22965 else
22966 ld_shlibs_F77=no
22967 fi
22968 ;;
22969
22970 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22971 case `$LD -v 2>&1` in
22972 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22973 ld_shlibs_F77=no
22974 cat <<_LT_EOF 1>&2
22975
22976 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22977 *** reliably create shared libraries on SCO systems. Therefore, libtool
22978 *** is disabling shared libraries support. We urge you to upgrade GNU
22979 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22980 *** your PATH or compiler configuration so that the native linker is
22981 *** used, and then restart.
22982
22983 _LT_EOF
22984 ;;
22985 *)
22986 # For security reasons, it is highly recommended that you always
22987 # use absolute paths for naming shared libraries, and exclude the
22988 # DT_RUNPATH tag from executables and libraries. But doing so
22989 # requires that you compile everything twice, which is a pain.
22990 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22991 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22992 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22993 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22994 else
22995 ld_shlibs_F77=no
22996 fi
22997 ;;
22998 esac
22999 ;;
23000
23001 sunos4*)
23002 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23003 wlarc=
23004 hardcode_direct_F77=yes
23005 hardcode_shlibpath_var_F77=no
23006 ;;
23007
23008 *)
23009 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
23010 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23011 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23012 else
23013 ld_shlibs_F77=no
23014 fi
23015 ;;
23016 esac
23017
23018 if test "$ld_shlibs_F77" = no; then
23019 runpath_var=
23020 hardcode_libdir_flag_spec_F77=
23021 export_dynamic_flag_spec_F77=
23022 whole_archive_flag_spec_F77=
23023 fi
23024 else
23025 # PORTME fill in a description of your system's linker (not GNU ld)
23026 case $host_os in
23027 aix3*)
23028 allow_undefined_flag_F77=unsupported
23029 always_export_symbols_F77=yes
23030 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
23031 # Note: this linker hardcodes the directories in LIBPATH if there
23032 # are no directories specified by -L.
23033 hardcode_minus_L_F77=yes
23034 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23035 # Neither direct hardcoding nor static linking is supported with a
23036 # broken collect2.
23037 hardcode_direct_F77=unsupported
23038 fi
23039 ;;
23040
23041 aix[4-9]*)
23042 if test "$host_cpu" = ia64; then
23043 # On IA64, the linker does run time linking by default, so we don't
23044 # have to do anything special.
23045 aix_use_runtimelinking=no
23046 exp_sym_flag='-Bexport'
23047 no_entry_flag=""
23048 else
23049 # If we're using GNU nm, then we don't want the "-C" option.
23050 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23051 # Also, AIX nm treats weak defined symbols like other global
23052 # defined symbols, whereas GNU nm marks them as "W".
23053 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
23054 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
23055 else
23056 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
23057 fi
23058 aix_use_runtimelinking=no
23059
23060 # Test if we are trying to use run time linking or normal
23061 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23062 # need to do runtime linking.
23063 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
23064 for ld_flag in $LDFLAGS; do
23065 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23066 aix_use_runtimelinking=yes
23067 break
23068 fi
23069 done
23070 ;;
23071 esac
23072
23073 exp_sym_flag='-bexport'
23074 no_entry_flag='-bnoentry'
23075 fi
23076
23077 # When large executables or shared objects are built, AIX ld can
23078 # have problems creating the table of contents. If linking a library
23079 # or program results in "error TOC overflow" add -mminimal-toc to
23080 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23081 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23082
23083 archive_cmds_F77=''
23084 hardcode_direct_F77=yes
23085 hardcode_direct_absolute_F77=yes
23086 hardcode_libdir_separator_F77=':'
23087 link_all_deplibs_F77=yes
23088 file_list_spec_F77='${wl}-f,'
23089
23090 if test "$GCC" = yes; then
23091 case $host_os in aix4.[012]|aix4.[012].*)
23092 # We only want to do this on AIX 4.2 and lower, the check
23093 # below for broken collect2 doesn't work under 4.3+
23094 collect2name=`${CC} -print-prog-name=collect2`
23095 if test -f "$collect2name" &&
23096 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
23097 then
23098 # We have reworked collect2
23099 :
23100 else
23101 # We have old collect2
23102 hardcode_direct_F77=unsupported
23103 # It fails to find uninstalled libraries when the uninstalled
23104 # path is not listed in the libpath. Setting hardcode_minus_L
23105 # to unsupported forces relinking
23106 hardcode_minus_L_F77=yes
23107 hardcode_libdir_flag_spec_F77='-L$libdir'
23108 hardcode_libdir_separator_F77=
23109 fi
23110 ;;
23111 esac
23112 shared_flag='-shared'
23113 if test "$aix_use_runtimelinking" = yes; then
23114 shared_flag="$shared_flag "'${wl}-G'
23115 fi
23116 else
23117 # not using gcc
23118 if test "$host_cpu" = ia64; then
23119 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23120 # chokes on -Wl,-G. The following line is correct:
23121 shared_flag='-G'
23122 else
23123 if test "$aix_use_runtimelinking" = yes; then
23124 shared_flag='${wl}-G'
23125 else
23126 shared_flag='${wl}-bM:SRE'
23127 fi
23128 fi
23129 fi
23130
23131 export_dynamic_flag_spec_F77='${wl}-bexpall'
23132 # It seems that -bexpall does not export symbols beginning with
23133 # underscore (_), so it is better to generate a list of symbols to export.
23134 always_export_symbols_F77=yes
23135 if test "$aix_use_runtimelinking" = yes; then
23136 # Warning - without using the other runtime loading flags (-brtl),
23137 # -berok will link without error, but may produce a broken library.
23138 allow_undefined_flag_F77='-berok'
23139 # Determine the default libpath from the value encoded in an
23140 # empty executable.
23141 if test "${lt_cv_aix_libpath+set}" = set; then
23142 aix_libpath=$lt_cv_aix_libpath
23143 else
23144 if ${lt_cv_aix_libpath__F77+:} false; then :
23145 $as_echo_n "(cached) " >&6
23146 else
23147 cat > conftest.$ac_ext <<_ACEOF
23148 program main
23149
23150 end
23151 _ACEOF
23152 if ac_fn_f77_try_link "$LINENO"; then :
23153
23154 lt_aix_libpath_sed='
23155 /Import File Strings/,/^$/ {
23156 /^0/ {
23157 s/^0 *\([^ ]*\) *$/\1/
23158 p
23159 }
23160 }'
23161 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23162 # Check for a 64-bit object if we didn't find anything.
23163 if test -z "$lt_cv_aix_libpath__F77"; then
23164 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23165 fi
23166 fi
23167 rm -f core conftest.err conftest.$ac_objext \
23168 conftest$ac_exeext conftest.$ac_ext
23169 if test -z "$lt_cv_aix_libpath__F77"; then
23170 lt_cv_aix_libpath__F77="/usr/lib:/lib"
23171 fi
23172
23173 fi
23174
23175 aix_libpath=$lt_cv_aix_libpath__F77
23176 fi
23177
23178 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
23179 archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
23180 else
23181 if test "$host_cpu" = ia64; then
23182 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
23183 allow_undefined_flag_F77="-z nodefs"
23184 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
23185 else
23186 # Determine the default libpath from the value encoded in an
23187 # empty executable.
23188 if test "${lt_cv_aix_libpath+set}" = set; then
23189 aix_libpath=$lt_cv_aix_libpath
23190 else
23191 if ${lt_cv_aix_libpath__F77+:} false; then :
23192 $as_echo_n "(cached) " >&6
23193 else
23194 cat > conftest.$ac_ext <<_ACEOF
23195 program main
23196
23197 end
23198 _ACEOF
23199 if ac_fn_f77_try_link "$LINENO"; then :
23200
23201 lt_aix_libpath_sed='
23202 /Import File Strings/,/^$/ {
23203 /^0/ {
23204 s/^0 *\([^ ]*\) *$/\1/
23205 p
23206 }
23207 }'
23208 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23209 # Check for a 64-bit object if we didn't find anything.
23210 if test -z "$lt_cv_aix_libpath__F77"; then
23211 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23212 fi
23213 fi
23214 rm -f core conftest.err conftest.$ac_objext \
23215 conftest$ac_exeext conftest.$ac_ext
23216 if test -z "$lt_cv_aix_libpath__F77"; then
23217 lt_cv_aix_libpath__F77="/usr/lib:/lib"
23218 fi
23219
23220 fi
23221
23222 aix_libpath=$lt_cv_aix_libpath__F77
23223 fi
23224
23225 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
23226 # Warning - without using the other run time loading flags,
23227 # -berok will link without error, but may produce a broken library.
23228 no_undefined_flag_F77=' ${wl}-bernotok'
23229 allow_undefined_flag_F77=' ${wl}-berok'
23230 if test "$with_gnu_ld" = yes; then
23231 # We only use this code for GNU lds that support --whole-archive.
23232 whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
23233 else
23234 # Exported symbols can be pulled into shared objects from archives
23235 whole_archive_flag_spec_F77='$convenience'
23236 fi
23237 archive_cmds_need_lc_F77=yes
23238 # This is similar to how AIX traditionally builds its shared libraries.
23239 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
23240 fi
23241 fi
23242 ;;
23243
23244 amigaos*)
23245 case $host_cpu in
23246 powerpc)
23247 # see comment about AmigaOS4 .so support
23248 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23249 archive_expsym_cmds_F77=''
23250 ;;
23251 m68k)
23252 archive_cmds_F77='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
23253 hardcode_libdir_flag_spec_F77='-L$libdir'
23254 hardcode_minus_L_F77=yes
23255 ;;
23256 esac
23257 ;;
23258
23259 bsdi[45]*)
23260 export_dynamic_flag_spec_F77=-rdynamic
23261 ;;
23262
23263 cygwin* | mingw* | pw32* | cegcc*)
23264 # When not using gcc, we currently assume that we are using
23265 # Microsoft Visual C++.
23266 # hardcode_libdir_flag_spec is actually meaningless, as there is
23267 # no search path for DLLs.
23268 case $cc_basename in
23269 cl*)
23270 # Native MSVC
23271 hardcode_libdir_flag_spec_F77=' '
23272 allow_undefined_flag_F77=unsupported
23273 always_export_symbols_F77=yes
23274 file_list_spec_F77='@'
23275 # Tell ltmain to make .lib files, not .a files.
23276 libext=lib
23277 # Tell ltmain to make .dll files, not .so files.
23278 shrext_cmds=".dll"
23279 # FIXME: Setting linknames here is a bad hack.
23280 archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
23281 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23282 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
23283 else
23284 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
23285 fi~
23286 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
23287 linknames='
23288 # The linker will not automatically build a static lib if we build a DLL.
23289 # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
23290 enable_shared_with_static_runtimes_F77=yes
23291 exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
23292 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
23293 # Don't use ranlib
23294 old_postinstall_cmds_F77='chmod 644 $oldlib'
23295 postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
23296 lt_tool_outputfile="@TOOL_OUTPUT@"~
23297 case $lt_outputfile in
23298 *.exe|*.EXE) ;;
23299 *)
23300 lt_outputfile="$lt_outputfile.exe"
23301 lt_tool_outputfile="$lt_tool_outputfile.exe"
23302 ;;
23303 esac~
23304 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
23305 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
23306 $RM "$lt_outputfile.manifest";
23307 fi'
23308 ;;
23309 *)
23310 # Assume MSVC wrapper
23311 hardcode_libdir_flag_spec_F77=' '
23312 allow_undefined_flag_F77=unsupported
23313 # Tell ltmain to make .lib files, not .a files.
23314 libext=lib
23315 # Tell ltmain to make .dll files, not .so files.
23316 shrext_cmds=".dll"
23317 # FIXME: Setting linknames here is a bad hack.
23318 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
23319 # The linker will automatically build a .lib file if we build a DLL.
23320 old_archive_from_new_cmds_F77='true'
23321 # FIXME: Should let the user specify the lib program.
23322 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
23323 enable_shared_with_static_runtimes_F77=yes
23324 ;;
23325 esac
23326 ;;
23327
23328 darwin* | rhapsody*)
23329
23330
23331 archive_cmds_need_lc_F77=no
23332 hardcode_direct_F77=no
23333 hardcode_automatic_F77=yes
23334 hardcode_shlibpath_var_F77=unsupported
23335 if test "$lt_cv_ld_force_load" = "yes"; then
23336 whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
23337 compiler_needs_object_F77=yes
23338 else
23339 whole_archive_flag_spec_F77=''
23340 fi
23341 link_all_deplibs_F77=yes
23342 allow_undefined_flag_F77="$_lt_dar_allow_undefined"
23343 case $cc_basename in
23344 ifort*) _lt_dar_can_shared=yes ;;
23345 *) _lt_dar_can_shared=$GCC ;;
23346 esac
23347 if test "$_lt_dar_can_shared" = "yes"; then
23348 output_verbose_link_cmd=func_echo_all
23349 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
23350 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
23351 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
23352 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
23353
23354 else
23355 ld_shlibs_F77=no
23356 fi
23357
23358 ;;
23359
23360 dgux*)
23361 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23362 hardcode_libdir_flag_spec_F77='-L$libdir'
23363 hardcode_shlibpath_var_F77=no
23364 ;;
23365
23366 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23367 # support. Future versions do this automatically, but an explicit c++rt0.o
23368 # does not break anything, and helps significantly (at the cost of a little
23369 # extra space).
23370 freebsd2.2*)
23371 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23372 hardcode_libdir_flag_spec_F77='-R$libdir'
23373 hardcode_direct_F77=yes
23374 hardcode_shlibpath_var_F77=no
23375 ;;
23376
23377 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23378 freebsd2.*)
23379 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23380 hardcode_direct_F77=yes
23381 hardcode_minus_L_F77=yes
23382 hardcode_shlibpath_var_F77=no
23383 ;;
23384
23385 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23386 freebsd* | dragonfly*)
23387 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23388 hardcode_libdir_flag_spec_F77='-R$libdir'
23389 hardcode_direct_F77=yes
23390 hardcode_shlibpath_var_F77=no
23391 ;;
23392
23393 hpux9*)
23394 if test "$GCC" = yes; then
23395 archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
23396 else
23397 archive_cmds_F77='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
23398 fi
23399 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23400 hardcode_libdir_separator_F77=:
23401 hardcode_direct_F77=yes
23402
23403 # hardcode_minus_L: Not really in the search PATH,
23404 # but as the default location of the library.
23405 hardcode_minus_L_F77=yes
23406 export_dynamic_flag_spec_F77='${wl}-E'
23407 ;;
23408
23409 hpux10*)
23410 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
23411 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23412 else
23413 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23414 fi
23415 if test "$with_gnu_ld" = no; then
23416 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23417 hardcode_libdir_separator_F77=:
23418 hardcode_direct_F77=yes
23419 hardcode_direct_absolute_F77=yes
23420 export_dynamic_flag_spec_F77='${wl}-E'
23421 # hardcode_minus_L: Not really in the search PATH,
23422 # but as the default location of the library.
23423 hardcode_minus_L_F77=yes
23424 fi
23425 ;;
23426
23427 hpux11*)
23428 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
23429 case $host_cpu in
23430 hppa*64*)
23431 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23432 ;;
23433 ia64*)
23434 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23435 ;;
23436 *)
23437 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23438 ;;
23439 esac
23440 else
23441 case $host_cpu in
23442 hppa*64*)
23443 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23444 ;;
23445 ia64*)
23446 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23447 ;;
23448 *)
23449 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23450 ;;
23451 esac
23452 fi
23453 if test "$with_gnu_ld" = no; then
23454 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23455 hardcode_libdir_separator_F77=:
23456
23457 case $host_cpu in
23458 hppa*64*|ia64*)
23459 hardcode_direct_F77=no
23460 hardcode_shlibpath_var_F77=no
23461 ;;
23462 *)
23463 hardcode_direct_F77=yes
23464 hardcode_direct_absolute_F77=yes
23465 export_dynamic_flag_spec_F77='${wl}-E'
23466
23467 # hardcode_minus_L: Not really in the search PATH,
23468 # but as the default location of the library.
23469 hardcode_minus_L_F77=yes
23470 ;;
23471 esac
23472 fi
23473 ;;
23474
23475 irix5* | irix6* | nonstopux*)
23476 if test "$GCC" = yes; then
23477 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23478 # Try to use the -exported_symbol ld option, if it does not
23479 # work, assume that -exports_file does not work either and
23480 # implicitly export all symbols.
23481 # This should be the same for all languages, so no per-tag cache variable.
23482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
23483 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
23484 if ${lt_cv_irix_exported_symbol+:} false; then :
23485 $as_echo_n "(cached) " >&6
23486 else
23487 save_LDFLAGS="$LDFLAGS"
23488 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
23489 cat > conftest.$ac_ext <<_ACEOF
23490
23491 subroutine foo
23492 end
23493 _ACEOF
23494 if ac_fn_f77_try_link "$LINENO"; then :
23495 lt_cv_irix_exported_symbol=yes
23496 else
23497 lt_cv_irix_exported_symbol=no
23498 fi
23499 rm -f core conftest.err conftest.$ac_objext \
23500 conftest$ac_exeext conftest.$ac_ext
23501 LDFLAGS="$save_LDFLAGS"
23502 fi
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
23504 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
23505 if test "$lt_cv_irix_exported_symbol" = yes; then
23506 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
23507 fi
23508 else
23509 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
23510 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
23511 fi
23512 archive_cmds_need_lc_F77='no'
23513 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23514 hardcode_libdir_separator_F77=:
23515 inherit_rpath_F77=yes
23516 link_all_deplibs_F77=yes
23517 ;;
23518
23519 netbsd*)
23520 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
23521 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23522 else
23523 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23524 fi
23525 hardcode_libdir_flag_spec_F77='-R$libdir'
23526 hardcode_direct_F77=yes
23527 hardcode_shlibpath_var_F77=no
23528 ;;
23529
23530 newsos6)
23531 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23532 hardcode_direct_F77=yes
23533 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23534 hardcode_libdir_separator_F77=:
23535 hardcode_shlibpath_var_F77=no
23536 ;;
23537
23538 *nto* | *qnx*)
23539 ;;
23540
23541 openbsd*)
23542 if test -f /usr/libexec/ld.so; then
23543 hardcode_direct_F77=yes
23544 hardcode_shlibpath_var_F77=no
23545 hardcode_direct_absolute_F77=yes
23546 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23547 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23548 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23549 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23550 export_dynamic_flag_spec_F77='${wl}-E'
23551 else
23552 case $host_os in
23553 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23554 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23555 hardcode_libdir_flag_spec_F77='-R$libdir'
23556 ;;
23557 *)
23558 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23559 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23560 ;;
23561 esac
23562 fi
23563 else
23564 ld_shlibs_F77=no
23565 fi
23566 ;;
23567
23568 os2*)
23569 hardcode_libdir_flag_spec_F77='-L$libdir'
23570 hardcode_minus_L_F77=yes
23571 allow_undefined_flag_F77=unsupported
23572 archive_cmds_F77='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
23573 old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23574 ;;
23575
23576 osf3*)
23577 if test "$GCC" = yes; then
23578 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23579 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23580 else
23581 allow_undefined_flag_F77=' -expect_unresolved \*'
23582 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
23583 fi
23584 archive_cmds_need_lc_F77='no'
23585 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23586 hardcode_libdir_separator_F77=:
23587 ;;
23588
23589 osf4* | osf5*) # as osf3* with the addition of -msym flag
23590 if test "$GCC" = yes; then
23591 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23592 archive_cmds_F77='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23593 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23594 else
23595 allow_undefined_flag_F77=' -expect_unresolved \*'
23596 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
23597 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
23598 $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'
23599
23600 # Both c and cxx compiler support -rpath directly
23601 hardcode_libdir_flag_spec_F77='-rpath $libdir'
23602 fi
23603 archive_cmds_need_lc_F77='no'
23604 hardcode_libdir_separator_F77=:
23605 ;;
23606
23607 solaris*)
23608 no_undefined_flag_F77=' -z defs'
23609 if test "$GCC" = yes; then
23610 wlarc='${wl}'
23611 archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23612 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23613 $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'
23614 else
23615 case `$CC -V 2>&1` in
23616 *"Compilers 5.0"*)
23617 wlarc=''
23618 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23619 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23620 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
23621 ;;
23622 *)
23623 wlarc='${wl}'
23624 archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
23625 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23626 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
23627 ;;
23628 esac
23629 fi
23630 hardcode_libdir_flag_spec_F77='-R$libdir'
23631 hardcode_shlibpath_var_F77=no
23632 case $host_os in
23633 solaris2.[0-5] | solaris2.[0-5].*) ;;
23634 *)
23635 # The compiler driver will combine and reorder linker options,
23636 # but understands `-z linker_flag'. GCC discards it without `$wl',
23637 # but is careful enough not to reorder.
23638 # Supported since Solaris 2.6 (maybe 2.5.1?)
23639 if test "$GCC" = yes; then
23640 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23641 else
23642 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
23643 fi
23644 ;;
23645 esac
23646 link_all_deplibs_F77=yes
23647 ;;
23648
23649 sunos4*)
23650 if test "x$host_vendor" = xsequent; then
23651 # Use $CC to link under sequent, because it throws in some extra .o
23652 # files that make .init and .fini sections work.
23653 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23654 else
23655 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23656 fi
23657 hardcode_libdir_flag_spec_F77='-L$libdir'
23658 hardcode_direct_F77=yes
23659 hardcode_minus_L_F77=yes
23660 hardcode_shlibpath_var_F77=no
23661 ;;
23662
23663 sysv4)
23664 case $host_vendor in
23665 sni)
23666 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23667 hardcode_direct_F77=yes # is this really true???
23668 ;;
23669 siemens)
23670 ## LD is ld it makes a PLAMLIB
23671 ## CC just makes a GrossModule.
23672 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23673 reload_cmds_F77='$CC -r -o $output$reload_objs'
23674 hardcode_direct_F77=no
23675 ;;
23676 motorola)
23677 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23678 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
23679 ;;
23680 esac
23681 runpath_var='LD_RUN_PATH'
23682 hardcode_shlibpath_var_F77=no
23683 ;;
23684
23685 sysv4.3*)
23686 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23687 hardcode_shlibpath_var_F77=no
23688 export_dynamic_flag_spec_F77='-Bexport'
23689 ;;
23690
23691 sysv4*MP*)
23692 if test -d /usr/nec; then
23693 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23694 hardcode_shlibpath_var_F77=no
23695 runpath_var=LD_RUN_PATH
23696 hardcode_runpath_var=yes
23697 ld_shlibs_F77=yes
23698 fi
23699 ;;
23700
23701 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
23702 no_undefined_flag_F77='${wl}-z,text'
23703 archive_cmds_need_lc_F77=no
23704 hardcode_shlibpath_var_F77=no
23705 runpath_var='LD_RUN_PATH'
23706
23707 if test "$GCC" = yes; then
23708 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23709 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23710 else
23711 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23712 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23713 fi
23714 ;;
23715
23716 sysv5* | sco3.2v5* | sco5v6*)
23717 # Note: We can NOT use -z defs as we might desire, because we do not
23718 # link with -lc, and that would cause any symbols used from libc to
23719 # always be unresolved, which means just about no library would
23720 # ever link correctly. If we're not using GNU ld we use -z text
23721 # though, which does catch some bad symbols but isn't as heavy-handed
23722 # as -z defs.
23723 no_undefined_flag_F77='${wl}-z,text'
23724 allow_undefined_flag_F77='${wl}-z,nodefs'
23725 archive_cmds_need_lc_F77=no
23726 hardcode_shlibpath_var_F77=no
23727 hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
23728 hardcode_libdir_separator_F77=':'
23729 link_all_deplibs_F77=yes
23730 export_dynamic_flag_spec_F77='${wl}-Bexport'
23731 runpath_var='LD_RUN_PATH'
23732
23733 if test "$GCC" = yes; then
23734 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23735 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23736 else
23737 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23738 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23739 fi
23740 ;;
23741
23742 uts4*)
23743 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23744 hardcode_libdir_flag_spec_F77='-L$libdir'
23745 hardcode_shlibpath_var_F77=no
23746 ;;
23747
23748 *)
23749 ld_shlibs_F77=no
23750 ;;
23751 esac
23752
23753 if test x$host_vendor = xsni; then
23754 case $host in
23755 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23756 export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
23757 ;;
23758 esac
23759 fi
23760 fi
23761
23762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
23763 $as_echo "$ld_shlibs_F77" >&6; }
23764 test "$ld_shlibs_F77" = no && can_build_shared=no
23765
23766 with_gnu_ld_F77=$with_gnu_ld
23767
23768
23769
23770
23771
23772
23773 #
23774 # Do we need to explicitly link libc?
23775 #
23776 case "x$archive_cmds_need_lc_F77" in
23777 x|xyes)
23778 # Assume -lc should be added
23779 archive_cmds_need_lc_F77=yes
23780
23781 if test "$enable_shared" = yes && test "$GCC" = yes; then
23782 case $archive_cmds_F77 in
23783 *'~'*)
23784 # FIXME: we may have to deal with multi-command sequences.
23785 ;;
23786 '$CC '*)
23787 # Test whether the compiler implicitly links with -lc since on some
23788 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23789 # to ld, don't add -lc before -lgcc.
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
23791 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
23792 if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
23793 $as_echo_n "(cached) " >&6
23794 else
23795 $RM conftest*
23796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23797
23798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23799 (eval $ac_compile) 2>&5
23800 ac_status=$?
23801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23802 test $ac_status = 0; } 2>conftest.err; then
23803 soname=conftest
23804 lib=conftest
23805 libobjs=conftest.$ac_objext
23806 deplibs=
23807 wl=$lt_prog_compiler_wl_F77
23808 pic_flag=$lt_prog_compiler_pic_F77
23809 compiler_flags=-v
23810 linker_flags=-v
23811 verstring=
23812 output_objdir=.
23813 libname=conftest
23814 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23815 allow_undefined_flag_F77=
23816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
23817 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
23818 ac_status=$?
23819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23820 test $ac_status = 0; }
23821 then
23822 lt_cv_archive_cmds_need_lc_F77=no
23823 else
23824 lt_cv_archive_cmds_need_lc_F77=yes
23825 fi
23826 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23827 else
23828 cat conftest.err 1>&5
23829 fi
23830 $RM conftest*
23831
23832 fi
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
23834 $as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
23835 archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
23836 ;;
23837 esac
23838 fi
23839 ;;
23840 esac
23841
23842
23843
23844
23845
23846
23847
23848
23849
23850
23851
23852
23853
23854
23855
23856
23857
23858
23859
23860
23861
23862
23863
23864
23865
23866
23867
23868
23869
23870
23871
23872
23873
23874
23875
23876
23877
23878
23879
23880
23881
23882
23883
23884
23885
23886
23887
23888
23889
23890
23891
23892
23893
23894
23895
23896
23897
23898
23899
23900
23901
23902
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
23904 $as_echo_n "checking dynamic linker characteristics... " >&6; }
23905
23906 library_names_spec=
23907 libname_spec='lib$name'
23908 soname_spec=
23909 shrext_cmds=".so"
23910 postinstall_cmds=
23911 postuninstall_cmds=
23912 finish_cmds=
23913 finish_eval=
23914 shlibpath_var=
23915 shlibpath_overrides_runpath=unknown
23916 version_type=none
23917 dynamic_linker="$host_os ld.so"
23918 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23919 need_lib_prefix=unknown
23920 hardcode_into_libs=no
23921
23922 # when you set need_version to no, make sure it does not cause -set_version
23923 # flags to be left without arguments
23924 need_version=unknown
23925
23926 case $host_os in
23927 aix3*)
23928 version_type=linux # correct to gnu/linux during the next big refactor
23929 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23930 shlibpath_var=LIBPATH
23931
23932 # AIX 3 has no versioning support, so we append a major version to the name.
23933 soname_spec='${libname}${release}${shared_ext}$major'
23934 ;;
23935
23936 aix[4-9]*)
23937 version_type=linux # correct to gnu/linux during the next big refactor
23938 need_lib_prefix=no
23939 need_version=no
23940 hardcode_into_libs=yes
23941 if test "$host_cpu" = ia64; then
23942 # AIX 5 supports IA64
23943 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23944 shlibpath_var=LD_LIBRARY_PATH
23945 else
23946 # With GCC up to 2.95.x, collect2 would create an import file
23947 # for dependence libraries. The import file would start with
23948 # the line `#! .'. This would cause the generated library to
23949 # depend on `.', always an invalid library. This was fixed in
23950 # development snapshots of GCC prior to 3.0.
23951 case $host_os in
23952 aix4 | aix4.[01] | aix4.[01].*)
23953 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23954 echo ' yes '
23955 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
23956 :
23957 else
23958 can_build_shared=no
23959 fi
23960 ;;
23961 esac
23962 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23963 # soname into executable. Probably we can add versioning support to
23964 # collect2, so additional links can be useful in future.
23965 if test "$aix_use_runtimelinking" = yes; then
23966 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23967 # instead of lib<name>.a to let people know that these are not
23968 # typical AIX shared libraries.
23969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23970 else
23971 # We preserve .a as extension for shared libraries through AIX4.2
23972 # and later when we are not doing run time linking.
23973 library_names_spec='${libname}${release}.a $libname.a'
23974 soname_spec='${libname}${release}${shared_ext}$major'
23975 fi
23976 shlibpath_var=LIBPATH
23977 fi
23978 ;;
23979
23980 amigaos*)
23981 case $host_cpu in
23982 powerpc)
23983 # Since July 2007 AmigaOS4 officially supports .so libraries.
23984 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
23985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23986 ;;
23987 m68k)
23988 library_names_spec='$libname.ixlibrary $libname.a'
23989 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23990 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'
23991 ;;
23992 esac
23993 ;;
23994
23995 beos*)
23996 library_names_spec='${libname}${shared_ext}'
23997 dynamic_linker="$host_os ld.so"
23998 shlibpath_var=LIBRARY_PATH
23999 ;;
24000
24001 bsdi[45]*)
24002 version_type=linux # correct to gnu/linux during the next big refactor
24003 need_version=no
24004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24005 soname_spec='${libname}${release}${shared_ext}$major'
24006 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24007 shlibpath_var=LD_LIBRARY_PATH
24008 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24009 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24010 # the default ld.so.conf also contains /usr/contrib/lib and
24011 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24012 # libtool to hard-code these into programs
24013 ;;
24014
24015 cygwin* | mingw* | pw32* | cegcc*)
24016 version_type=windows
24017 shrext_cmds=".dll"
24018 need_version=no
24019 need_lib_prefix=no
24020
24021 case $GCC,$cc_basename in
24022 yes,*)
24023 # gcc
24024 library_names_spec='$libname.dll.a'
24025 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24026 postinstall_cmds='base_file=`basename \${file}`~
24027 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
24028 dldir=$destdir/`dirname \$dlpath`~
24029 test -d \$dldir || mkdir -p \$dldir~
24030 $install_prog $dir/$dlname \$dldir/$dlname~
24031 chmod a+x \$dldir/$dlname~
24032 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
24033 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
24034 fi'
24035 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24036 dlpath=$dir/\$dldll~
24037 $RM \$dlpath'
24038 shlibpath_overrides_runpath=yes
24039
24040 case $host_os in
24041 cygwin*)
24042 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24043 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24044
24045 ;;
24046 mingw* | cegcc*)
24047 # MinGW DLLs use traditional 'lib' prefix
24048 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24049 ;;
24050 pw32*)
24051 # pw32 DLLs use 'pw' prefix rather than 'lib'
24052 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24053 ;;
24054 esac
24055 dynamic_linker='Win32 ld.exe'
24056 ;;
24057
24058 *,cl*)
24059 # Native MSVC
24060 libname_spec='$name'
24061 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24062 library_names_spec='${libname}.dll.lib'
24063
24064 case $build_os in
24065 mingw*)
24066 sys_lib_search_path_spec=
24067 lt_save_ifs=$IFS
24068 IFS=';'
24069 for lt_path in $LIB
24070 do
24071 IFS=$lt_save_ifs
24072 # Let DOS variable expansion print the short 8.3 style file name.
24073 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
24074 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
24075 done
24076 IFS=$lt_save_ifs
24077 # Convert to MSYS style.
24078 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
24079 ;;
24080 cygwin*)
24081 # Convert to unix form, then to dos form, then back to unix form
24082 # but this time dos style (no spaces!) so that the unix form looks
24083 # like /cygdrive/c/PROGRA~1:/cygdr...
24084 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
24085 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
24086 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24087 ;;
24088 *)
24089 sys_lib_search_path_spec="$LIB"
24090 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
24091 # It is most probably a Windows format PATH.
24092 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24093 else
24094 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24095 fi
24096 # FIXME: find the short name or the path components, as spaces are
24097 # common. (e.g. "Program Files" -> "PROGRA~1")
24098 ;;
24099 esac
24100
24101 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24102 postinstall_cmds='base_file=`basename \${file}`~
24103 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
24104 dldir=$destdir/`dirname \$dlpath`~
24105 test -d \$dldir || mkdir -p \$dldir~
24106 $install_prog $dir/$dlname \$dldir/$dlname'
24107 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24108 dlpath=$dir/\$dldll~
24109 $RM \$dlpath'
24110 shlibpath_overrides_runpath=yes
24111 dynamic_linker='Win32 link.exe'
24112 ;;
24113
24114 *)
24115 # Assume MSVC wrapper
24116 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24117 dynamic_linker='Win32 ld.exe'
24118 ;;
24119 esac
24120 # FIXME: first we should search . and the directory the executable is in
24121 shlibpath_var=PATH
24122 ;;
24123
24124 darwin* | rhapsody*)
24125 dynamic_linker="$host_os dyld"
24126 version_type=darwin
24127 need_lib_prefix=no
24128 need_version=no
24129 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24130 soname_spec='${libname}${release}${major}$shared_ext'
24131 shlibpath_overrides_runpath=yes
24132 shlibpath_var=DYLD_LIBRARY_PATH
24133 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24134
24135 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24136 ;;
24137
24138 dgux*)
24139 version_type=linux # correct to gnu/linux during the next big refactor
24140 need_lib_prefix=no
24141 need_version=no
24142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24143 soname_spec='${libname}${release}${shared_ext}$major'
24144 shlibpath_var=LD_LIBRARY_PATH
24145 ;;
24146
24147 freebsd* | dragonfly*)
24148 # DragonFly does not have aout. When/if they implement a new
24149 # versioning mechanism, adjust this.
24150 if test -x /usr/bin/objformat; then
24151 objformat=`/usr/bin/objformat`
24152 else
24153 case $host_os in
24154 freebsd[23].*) objformat=aout ;;
24155 *) objformat=elf ;;
24156 esac
24157 fi
24158 version_type=freebsd-$objformat
24159 case $version_type in
24160 freebsd-elf*)
24161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24162 need_version=no
24163 need_lib_prefix=no
24164 ;;
24165 freebsd-*)
24166 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24167 need_version=yes
24168 ;;
24169 esac
24170 shlibpath_var=LD_LIBRARY_PATH
24171 case $host_os in
24172 freebsd2.*)
24173 shlibpath_overrides_runpath=yes
24174 ;;
24175 freebsd3.[01]* | freebsdelf3.[01]*)
24176 shlibpath_overrides_runpath=yes
24177 hardcode_into_libs=yes
24178 ;;
24179 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24180 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24181 shlibpath_overrides_runpath=no
24182 hardcode_into_libs=yes
24183 ;;
24184 *) # from 4.6 on, and DragonFly
24185 shlibpath_overrides_runpath=yes
24186 hardcode_into_libs=yes
24187 ;;
24188 esac
24189 ;;
24190
24191 gnu*)
24192 version_type=linux # correct to gnu/linux during the next big refactor
24193 need_lib_prefix=no
24194 need_version=no
24195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24196 soname_spec='${libname}${release}${shared_ext}$major'
24197 shlibpath_var=LD_LIBRARY_PATH
24198 shlibpath_overrides_runpath=no
24199 hardcode_into_libs=yes
24200 ;;
24201
24202 haiku*)
24203 version_type=linux # correct to gnu/linux during the next big refactor
24204 need_lib_prefix=no
24205 need_version=no
24206 dynamic_linker="$host_os runtime_loader"
24207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24208 soname_spec='${libname}${release}${shared_ext}$major'
24209 shlibpath_var=LIBRARY_PATH
24210 shlibpath_overrides_runpath=yes
24211 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
24212 hardcode_into_libs=yes
24213 ;;
24214
24215 hpux9* | hpux10* | hpux11*)
24216 # Give a soname corresponding to the major version so that dld.sl refuses to
24217 # link against other versions.
24218 version_type=sunos
24219 need_lib_prefix=no
24220 need_version=no
24221 case $host_cpu in
24222 ia64*)
24223 shrext_cmds='.so'
24224 hardcode_into_libs=yes
24225 dynamic_linker="$host_os dld.so"
24226 shlibpath_var=LD_LIBRARY_PATH
24227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24229 soname_spec='${libname}${release}${shared_ext}$major'
24230 if test "X$HPUX_IA64_MODE" = X32; then
24231 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24232 else
24233 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24234 fi
24235 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24236 ;;
24237 hppa*64*)
24238 shrext_cmds='.sl'
24239 hardcode_into_libs=yes
24240 dynamic_linker="$host_os dld.sl"
24241 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24242 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24244 soname_spec='${libname}${release}${shared_ext}$major'
24245 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24246 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24247 ;;
24248 *)
24249 shrext_cmds='.sl'
24250 dynamic_linker="$host_os dld.sl"
24251 shlibpath_var=SHLIB_PATH
24252 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24254 soname_spec='${libname}${release}${shared_ext}$major'
24255 ;;
24256 esac
24257 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24258 postinstall_cmds='chmod 555 $lib'
24259 # or fails outright, so override atomically:
24260 install_override_mode=555
24261 ;;
24262
24263 interix[3-9]*)
24264 version_type=linux # correct to gnu/linux during the next big refactor
24265 need_lib_prefix=no
24266 need_version=no
24267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24268 soname_spec='${libname}${release}${shared_ext}$major'
24269 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24270 shlibpath_var=LD_LIBRARY_PATH
24271 shlibpath_overrides_runpath=no
24272 hardcode_into_libs=yes
24273 ;;
24274
24275 irix5* | irix6* | nonstopux*)
24276 case $host_os in
24277 nonstopux*) version_type=nonstopux ;;
24278 *)
24279 if test "$lt_cv_prog_gnu_ld" = yes; then
24280 version_type=linux # correct to gnu/linux during the next big refactor
24281 else
24282 version_type=irix
24283 fi ;;
24284 esac
24285 need_lib_prefix=no
24286 need_version=no
24287 soname_spec='${libname}${release}${shared_ext}$major'
24288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24289 case $host_os in
24290 irix5* | nonstopux*)
24291 libsuff= shlibsuff=
24292 ;;
24293 *)
24294 case $LD in # libtool.m4 will add one of these switches to LD
24295 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24296 libsuff= shlibsuff= libmagic=32-bit;;
24297 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24298 libsuff=32 shlibsuff=N32 libmagic=N32;;
24299 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24300 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24301 *) libsuff= shlibsuff= libmagic=never-match;;
24302 esac
24303 ;;
24304 esac
24305 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24306 shlibpath_overrides_runpath=no
24307 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24308 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24309 hardcode_into_libs=yes
24310 ;;
24311
24312 # No shared lib support for Linux oldld, aout, or coff.
24313 linux*oldld* | linux*aout* | linux*coff*)
24314 dynamic_linker=no
24315 ;;
24316
24317 # This must be glibc/ELF.
24318 linux* | k*bsd*-gnu | kopensolaris*-gnu)
24319 version_type=linux # correct to gnu/linux during the next big refactor
24320 need_lib_prefix=no
24321 need_version=no
24322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24323 soname_spec='${libname}${release}${shared_ext}$major'
24324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24325 shlibpath_var=LD_LIBRARY_PATH
24326 shlibpath_overrides_runpath=no
24327
24328 # Some binutils ld are patched to set DT_RUNPATH
24329 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
24330 $as_echo_n "(cached) " >&6
24331 else
24332 lt_cv_shlibpath_overrides_runpath=no
24333 save_LDFLAGS=$LDFLAGS
24334 save_libdir=$libdir
24335 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
24336 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
24337 cat > conftest.$ac_ext <<_ACEOF
24338 program main
24339
24340 end
24341 _ACEOF
24342 if ac_fn_f77_try_link "$LINENO"; then :
24343 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
24344 lt_cv_shlibpath_overrides_runpath=yes
24345 fi
24346 fi
24347 rm -f core conftest.err conftest.$ac_objext \
24348 conftest$ac_exeext conftest.$ac_ext
24349 LDFLAGS=$save_LDFLAGS
24350 libdir=$save_libdir
24351
24352 fi
24353
24354 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24355
24356 # This implies no fast_install, which is unacceptable.
24357 # Some rework will be needed to allow for fast_install
24358 # before this can be enabled.
24359 hardcode_into_libs=yes
24360
24361 # Append ld.so.conf contents to the search path
24362 if test -f /etc/ld.so.conf; then
24363 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' ' '`
24364 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24365 fi
24366
24367 # We used to test for /lib/ld.so.1 and disable shared libraries on
24368 # powerpc, because MkLinux only supported shared libraries with the
24369 # GNU dynamic linker. Since this was broken with cross compilers,
24370 # most powerpc-linux boxes support dynamic linking these days and
24371 # people can always --disable-shared, the test was removed, and we
24372 # assume the GNU/Linux dynamic linker is in use.
24373 dynamic_linker='GNU/Linux ld.so'
24374 ;;
24375
24376 netbsd*)
24377 version_type=sunos
24378 need_lib_prefix=no
24379 need_version=no
24380 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
24381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24383 dynamic_linker='NetBSD (a.out) ld.so'
24384 else
24385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24386 soname_spec='${libname}${release}${shared_ext}$major'
24387 dynamic_linker='NetBSD ld.elf_so'
24388 fi
24389 shlibpath_var=LD_LIBRARY_PATH
24390 shlibpath_overrides_runpath=yes
24391 hardcode_into_libs=yes
24392 ;;
24393
24394 newsos6)
24395 version_type=linux # correct to gnu/linux during the next big refactor
24396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24397 shlibpath_var=LD_LIBRARY_PATH
24398 shlibpath_overrides_runpath=yes
24399 ;;
24400
24401 *nto* | *qnx*)
24402 version_type=qnx
24403 need_lib_prefix=no
24404 need_version=no
24405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24406 soname_spec='${libname}${release}${shared_ext}$major'
24407 shlibpath_var=LD_LIBRARY_PATH
24408 shlibpath_overrides_runpath=no
24409 hardcode_into_libs=yes
24410 dynamic_linker='ldqnx.so'
24411 ;;
24412
24413 openbsd*)
24414 version_type=sunos
24415 sys_lib_dlsearch_path_spec="/usr/lib"
24416 need_lib_prefix=no
24417 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24418 case $host_os in
24419 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24420 *) need_version=no ;;
24421 esac
24422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24424 shlibpath_var=LD_LIBRARY_PATH
24425 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24426 case $host_os in
24427 openbsd2.[89] | openbsd2.[89].*)
24428 shlibpath_overrides_runpath=no
24429 ;;
24430 *)
24431 shlibpath_overrides_runpath=yes
24432 ;;
24433 esac
24434 else
24435 shlibpath_overrides_runpath=yes
24436 fi
24437 ;;
24438
24439 os2*)
24440 libname_spec='$name'
24441 shrext_cmds=".dll"
24442 need_lib_prefix=no
24443 library_names_spec='$libname${shared_ext} $libname.a'
24444 dynamic_linker='OS/2 ld.exe'
24445 shlibpath_var=LIBPATH
24446 ;;
24447
24448 osf3* | osf4* | osf5*)
24449 version_type=osf
24450 need_lib_prefix=no
24451 need_version=no
24452 soname_spec='${libname}${release}${shared_ext}$major'
24453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24454 shlibpath_var=LD_LIBRARY_PATH
24455 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24456 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24457 ;;
24458
24459 rdos*)
24460 dynamic_linker=no
24461 ;;
24462
24463 solaris*)
24464 version_type=linux # correct to gnu/linux during the next big refactor
24465 need_lib_prefix=no
24466 need_version=no
24467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24468 soname_spec='${libname}${release}${shared_ext}$major'
24469 shlibpath_var=LD_LIBRARY_PATH
24470 shlibpath_overrides_runpath=yes
24471 hardcode_into_libs=yes
24472 # ldd complains unless libraries are executable
24473 postinstall_cmds='chmod +x $lib'
24474 ;;
24475
24476 sunos4*)
24477 version_type=sunos
24478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24479 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24480 shlibpath_var=LD_LIBRARY_PATH
24481 shlibpath_overrides_runpath=yes
24482 if test "$with_gnu_ld" = yes; then
24483 need_lib_prefix=no
24484 fi
24485 need_version=yes
24486 ;;
24487
24488 sysv4 | sysv4.3*)
24489 version_type=linux # correct to gnu/linux during the next big refactor
24490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24491 soname_spec='${libname}${release}${shared_ext}$major'
24492 shlibpath_var=LD_LIBRARY_PATH
24493 case $host_vendor in
24494 sni)
24495 shlibpath_overrides_runpath=no
24496 need_lib_prefix=no
24497 runpath_var=LD_RUN_PATH
24498 ;;
24499 siemens)
24500 need_lib_prefix=no
24501 ;;
24502 motorola)
24503 need_lib_prefix=no
24504 need_version=no
24505 shlibpath_overrides_runpath=no
24506 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24507 ;;
24508 esac
24509 ;;
24510
24511 sysv4*MP*)
24512 if test -d /usr/nec ;then
24513 version_type=linux # correct to gnu/linux during the next big refactor
24514 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24515 soname_spec='$libname${shared_ext}.$major'
24516 shlibpath_var=LD_LIBRARY_PATH
24517 fi
24518 ;;
24519
24520 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24521 version_type=freebsd-elf
24522 need_lib_prefix=no
24523 need_version=no
24524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24525 soname_spec='${libname}${release}${shared_ext}$major'
24526 shlibpath_var=LD_LIBRARY_PATH
24527 shlibpath_overrides_runpath=yes
24528 hardcode_into_libs=yes
24529 if test "$with_gnu_ld" = yes; then
24530 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24531 else
24532 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24533 case $host_os in
24534 sco3.2v5*)
24535 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24536 ;;
24537 esac
24538 fi
24539 sys_lib_dlsearch_path_spec='/usr/lib'
24540 ;;
24541
24542 tpf*)
24543 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
24544 version_type=linux # correct to gnu/linux during the next big refactor
24545 need_lib_prefix=no
24546 need_version=no
24547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24548 shlibpath_var=LD_LIBRARY_PATH
24549 shlibpath_overrides_runpath=no
24550 hardcode_into_libs=yes
24551 ;;
24552
24553 uts4*)
24554 version_type=linux # correct to gnu/linux during the next big refactor
24555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24556 soname_spec='${libname}${release}${shared_ext}$major'
24557 shlibpath_var=LD_LIBRARY_PATH
24558 ;;
24559
24560 *)
24561 dynamic_linker=no
24562 ;;
24563 esac
24564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
24565 $as_echo "$dynamic_linker" >&6; }
24566 test "$dynamic_linker" = no && can_build_shared=no
24567
24568 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24569 if test "$GCC" = yes; then
24570 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24571 fi
24572
24573 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
24574 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
24575 fi
24576 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
24577 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
24578 fi
24579
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610
24611
24612
24613
24614
24615
24616
24617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
24618 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
24619 hardcode_action_F77=
24620 if test -n "$hardcode_libdir_flag_spec_F77" ||
24621 test -n "$runpath_var_F77" ||
24622 test "X$hardcode_automatic_F77" = "Xyes" ; then
24623
24624 # We can hardcode non-existent directories.
24625 if test "$hardcode_direct_F77" != no &&
24626 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24627 # have to relink, otherwise we might link with an installed library
24628 # when we should be linking with a yet-to-be-installed one
24629 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
24630 test "$hardcode_minus_L_F77" != no; then
24631 # Linking always hardcodes the temporary library directory.
24632 hardcode_action_F77=relink
24633 else
24634 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24635 hardcode_action_F77=immediate
24636 fi
24637 else
24638 # We cannot hardcode anything, or else we can only hardcode existing
24639 # directories.
24640 hardcode_action_F77=unsupported
24641 fi
24642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
24643 $as_echo "$hardcode_action_F77" >&6; }
24644
24645 if test "$hardcode_action_F77" = relink ||
24646 test "$inherit_rpath_F77" = yes; then
24647 # Fast installation is not supported
24648 enable_fast_install=no
24649 elif test "$shlibpath_overrides_runpath" = yes ||
24650 test "$enable_shared" = no; then
24651 # Fast installation is not necessary
24652 enable_fast_install=needless
24653 fi
24654
24655
24656
24657
24658
24659
24660
24661 fi # test -n "$compiler"
24662
24663 GCC=$lt_save_GCC
24664 CC="$lt_save_CC"
24665 CFLAGS="$lt_save_CFLAGS"
24666 fi # test "$_lt_disable_F77" != yes
24667
24668 ac_ext=c
24669 ac_cpp='$CPP $CPPFLAGS'
24670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24673
24674
24675
24676
24677
24678
24679
24680
24681
24682
24683
24684
24685
24686 ac_config_commands="$ac_config_commands libtool"
24687
24688
24689
24690
24691 # Only expand once:
24692
24693
24694
24695 # Generate an error here if attempting to build both shared and static when
24696 # $libname.a is in $library_names_spec (as mentioned above), rather than
24697 # wait for ar or ld to fail.
24698 #
24699 if test "$enable_shared" = yes && test "$enable_static" = yes; then
24700 case $library_names_spec in
24701 *libname.a*)
24702 as_fn_error $? "cannot create both shared and static libraries on this system, --disable one of the two" "$LINENO" 5
24703 ;;
24704 esac
24705 fi
24706
24707 if test "$enable_static" = yes; then
24708 ENABLE_STATIC_TRUE=
24709 ENABLE_STATIC_FALSE='#'
24710 else
24711 ENABLE_STATIC_TRUE='#'
24712 ENABLE_STATIC_FALSE=
24713 fi
24714
24715
24716
24717 # Many of these library and header checks are for the benefit of
24718 # supplementary programs. libgmp doesn't use anything too weird.
24719
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24721 $as_echo_n "checking for ANSI C header files... " >&6; }
24722 if ${ac_cv_header_stdc+:} false; then :
24723 $as_echo_n "(cached) " >&6
24724 else
24725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24726 /* end confdefs.h. */
24727 #include <stdlib.h>
24728 #include <stdarg.h>
24729 #include <string.h>
24730 #include <float.h>
24731
24732 int
24733 main ()
24734 {
24735
24736 ;
24737 return 0;
24738 }
24739 _ACEOF
24740 if ac_fn_c_try_compile "$LINENO"; then :
24741 ac_cv_header_stdc=yes
24742 else
24743 ac_cv_header_stdc=no
24744 fi
24745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24746
24747 if test $ac_cv_header_stdc = yes; then
24748 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24750 /* end confdefs.h. */
24751 #include <string.h>
24752
24753 _ACEOF
24754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24755 $EGREP "memchr" >/dev/null 2>&1; then :
24756
24757 else
24758 ac_cv_header_stdc=no
24759 fi
24760 rm -f conftest*
24761
24762 fi
24763
24764 if test $ac_cv_header_stdc = yes; then
24765 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24767 /* end confdefs.h. */
24768 #include <stdlib.h>
24769
24770 _ACEOF
24771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24772 $EGREP "free" >/dev/null 2>&1; then :
24773
24774 else
24775 ac_cv_header_stdc=no
24776 fi
24777 rm -f conftest*
24778
24779 fi
24780
24781 if test $ac_cv_header_stdc = yes; then
24782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24783 if test "$cross_compiling" = yes; then :
24784 :
24785 else
24786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24787 /* end confdefs.h. */
24788 #include <ctype.h>
24789 #include <stdlib.h>
24790 #if ((' ' & 0x0FF) == 0x020)
24791 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24792 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24793 #else
24794 # define ISLOWER(c) \
24795 (('a' <= (c) && (c) <= 'i') \
24796 || ('j' <= (c) && (c) <= 'r') \
24797 || ('s' <= (c) && (c) <= 'z'))
24798 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24799 #endif
24800
24801 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24802 int
24803 main ()
24804 {
24805 int i;
24806 for (i = 0; i < 256; i++)
24807 if (XOR (islower (i), ISLOWER (i))
24808 || toupper (i) != TOUPPER (i))
24809 return 2;
24810 return 0;
24811 }
24812 _ACEOF
24813 if ac_fn_c_try_run "$LINENO"; then :
24814
24815 else
24816 ac_cv_header_stdc=no
24817 fi
24818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24819 conftest.$ac_objext conftest.beam conftest.$ac_ext
24820 fi
24821
24822 fi
24823 fi
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
24825 $as_echo "$ac_cv_header_stdc" >&6; }
24826 if test $ac_cv_header_stdc = yes; then
24827
24828 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
24829
24830 fi
24831
24832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
24833 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
24834 if ${ac_cv_header_time+:} false; then :
24835 $as_echo_n "(cached) " >&6
24836 else
24837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24838 /* end confdefs.h. */
24839 #include <sys/types.h>
24840 #include <sys/time.h>
24841 #include <time.h>
24842
24843 int
24844 main ()
24845 {
24846 if ((struct tm *) 0)
24847 return 0;
24848 ;
24849 return 0;
24850 }
24851 _ACEOF
24852 if ac_fn_c_try_compile "$LINENO"; then :
24853 ac_cv_header_time=yes
24854 else
24855 ac_cv_header_time=no
24856 fi
24857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24858 fi
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
24860 $as_echo "$ac_cv_header_time" >&6; }
24861 if test $ac_cv_header_time = yes; then
24862
24863 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
24864
24865 fi
24866
24867
24868 # Reasons for testing:
24869 # float.h - not in SunOS bundled cc
24870 # invent.h - IRIX specific
24871 # langinfo.h - X/Open standard only, not in djgpp for instance
24872 # locale.h - old systems won't have this
24873 # nl_types.h - X/Open standard only, not in djgpp for instance
24874 # (usually langinfo.h gives nl_item etc, but not on netbsd 1.4.1)
24875 # sys/attributes.h - IRIX specific
24876 # sys/iograph.h - IRIX specific
24877 # sys/mman.h - not in Cray Unicos
24878 # sys/param.h - not in mingw
24879 # sys/processor.h - solaris specific, though also present in macos
24880 # sys/pstat.h - HPUX specific
24881 # sys/resource.h - not in mingw
24882 # sys/sysctl.h - not in mingw
24883 # sys/sysinfo.h - OSF specific
24884 # sys/syssgi.h - IRIX specific
24885 # sys/systemcfg.h - AIX specific
24886 # sys/time.h - autoconf suggests testing, don't know anywhere without it
24887 # sys/times.h - not in mingw
24888 # machine/hal_sysinfo.h - OSF specific
24889 #
24890 # inttypes.h, stdint.h, unistd.h and sys/types.h are already in the autoconf
24891 # default tests
24892 #
24893 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
24894 do :
24895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24896 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24897 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24898 cat >>confdefs.h <<_ACEOF
24899 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24900 _ACEOF
24901
24902 fi
24903
24904 done
24905
24906
24907 # On SunOS, sys/resource.h needs sys/time.h (for struct timeval)
24908 for ac_header in sys/resource.h
24909 do :
24910 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "#if TIME_WITH_SYS_TIME
24911 # include <sys/time.h>
24912 # include <time.h>
24913 #else
24914 # if HAVE_SYS_TIME_H
24915 # include <sys/time.h>
24916 # else
24917 # include <time.h>
24918 # endif
24919 #endif
24920 "
24921 if test "x$ac_cv_header_sys_resource_h" = xyes; then :
24922 cat >>confdefs.h <<_ACEOF
24923 #define HAVE_SYS_RESOURCE_H 1
24924 _ACEOF
24925
24926 fi
24927
24928 done
24929
24930
24931 # On NetBSD and OpenBSD, sys/sysctl.h needs sys/param.h for various constants
24932 for ac_header in sys/sysctl.h
24933 do :
24934 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if HAVE_SYS_PARAM_H
24935 # include <sys/param.h>
24936 #endif
24937 "
24938 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
24939 cat >>confdefs.h <<_ACEOF
24940 #define HAVE_SYS_SYSCTL_H 1
24941 _ACEOF
24942
24943 fi
24944
24945 done
24946
24947
24948 # On OSF 4.0, <machine/hal_sysinfo.h> must have <sys/sysinfo.h> for ulong_t
24949 for ac_header in machine/hal_sysinfo.h
24950 do :
24951 ac_fn_c_check_header_compile "$LINENO" "machine/hal_sysinfo.h" "ac_cv_header_machine_hal_sysinfo_h" "#if HAVE_SYS_SYSINFO_H
24952 # include <sys/sysinfo.h>
24953 #endif
24954 "
24955 if test "x$ac_cv_header_machine_hal_sysinfo_h" = xyes; then :
24956 cat >>confdefs.h <<_ACEOF
24957 #define HAVE_MACHINE_HAL_SYSINFO_H 1
24958 _ACEOF
24959
24960 fi
24961
24962 done
24963
24964
24965 # Reasons for testing:
24966 # optarg - not declared in mingw
24967 # fgetc, fscanf, ungetc, vfprintf - not declared in SunOS 4
24968 # sys_errlist, sys_nerr - not declared in SunOS 4
24969 #
24970 # optarg should be in unistd.h and the rest in stdio.h, both of which are
24971 # in the autoconf default includes.
24972 #
24973 # sys_errlist and sys_nerr are supposed to be in <errno.h> on SunOS according
24974 # to the man page (but aren't), in glibc they're in stdio.h.
24975 #
24976 ac_fn_c_check_decl "$LINENO" "fgetc" "ac_cv_have_decl_fgetc" "$ac_includes_default"
24977 if test "x$ac_cv_have_decl_fgetc" = xyes; then :
24978 ac_have_decl=1
24979 else
24980 ac_have_decl=0
24981 fi
24982
24983 cat >>confdefs.h <<_ACEOF
24984 #define HAVE_DECL_FGETC $ac_have_decl
24985 _ACEOF
24986 ac_fn_c_check_decl "$LINENO" "fscanf" "ac_cv_have_decl_fscanf" "$ac_includes_default"
24987 if test "x$ac_cv_have_decl_fscanf" = xyes; then :
24988 ac_have_decl=1
24989 else
24990 ac_have_decl=0
24991 fi
24992
24993 cat >>confdefs.h <<_ACEOF
24994 #define HAVE_DECL_FSCANF $ac_have_decl
24995 _ACEOF
24996 ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "$ac_includes_default"
24997 if test "x$ac_cv_have_decl_optarg" = xyes; then :
24998 ac_have_decl=1
24999 else
25000 ac_have_decl=0
25001 fi
25002
25003 cat >>confdefs.h <<_ACEOF
25004 #define HAVE_DECL_OPTARG $ac_have_decl
25005 _ACEOF
25006 ac_fn_c_check_decl "$LINENO" "ungetc" "ac_cv_have_decl_ungetc" "$ac_includes_default"
25007 if test "x$ac_cv_have_decl_ungetc" = xyes; then :
25008 ac_have_decl=1
25009 else
25010 ac_have_decl=0
25011 fi
25012
25013 cat >>confdefs.h <<_ACEOF
25014 #define HAVE_DECL_UNGETC $ac_have_decl
25015 _ACEOF
25016 ac_fn_c_check_decl "$LINENO" "vfprintf" "ac_cv_have_decl_vfprintf" "$ac_includes_default"
25017 if test "x$ac_cv_have_decl_vfprintf" = xyes; then :
25018 ac_have_decl=1
25019 else
25020 ac_have_decl=0
25021 fi
25022
25023 cat >>confdefs.h <<_ACEOF
25024 #define HAVE_DECL_VFPRINTF $ac_have_decl
25025 _ACEOF
25026
25027 ac_fn_c_check_decl "$LINENO" "sys_errlist" "ac_cv_have_decl_sys_errlist" "#include <stdio.h>
25028 #include <errno.h>
25029 "
25030 if test "x$ac_cv_have_decl_sys_errlist" = xyes; then :
25031 ac_have_decl=1
25032 else
25033 ac_have_decl=0
25034 fi
25035
25036 cat >>confdefs.h <<_ACEOF
25037 #define HAVE_DECL_SYS_ERRLIST $ac_have_decl
25038 _ACEOF
25039 ac_fn_c_check_decl "$LINENO" "sys_nerr" "ac_cv_have_decl_sys_nerr" "#include <stdio.h>
25040 #include <errno.h>
25041 "
25042 if test "x$ac_cv_have_decl_sys_nerr" = xyes; then :
25043 ac_have_decl=1
25044 else
25045 ac_have_decl=0
25046 fi
25047
25048 cat >>confdefs.h <<_ACEOF
25049 #define HAVE_DECL_SYS_NERR $ac_have_decl
25050 _ACEOF
25051
25052
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
25054 $as_echo_n "checking return type of signal handlers... " >&6; }
25055 if ${ac_cv_type_signal+:} false; then :
25056 $as_echo_n "(cached) " >&6
25057 else
25058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25059 /* end confdefs.h. */
25060 #include <sys/types.h>
25061 #include <signal.h>
25062
25063 int
25064 main ()
25065 {
25066 return *(signal (0, 0)) (0) == 1;
25067 ;
25068 return 0;
25069 }
25070 _ACEOF
25071 if ac_fn_c_try_compile "$LINENO"; then :
25072 ac_cv_type_signal=int
25073 else
25074 ac_cv_type_signal=void
25075 fi
25076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25077 fi
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
25079 $as_echo "$ac_cv_type_signal" >&6; }
25080
25081 cat >>confdefs.h <<_ACEOF
25082 #define RETSIGTYPE $ac_cv_type_signal
25083 _ACEOF
25084
25085
25086
25087 # Reasons for testing:
25088 # intmax_t - C99
25089 # long double - not in the HP bundled K&R cc
25090 # long long - only in reasonably recent compilers
25091 # ptrdiff_t - seems to be everywhere, maybe don't need to check this
25092 # quad_t - BSD specific
25093 # uint_least32_t - C99
25094 #
25095 # the default includes are sufficient for all these types
25096 #
25097 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
25098 if test "x$ac_cv_type_intmax_t" = xyes; then :
25099
25100 cat >>confdefs.h <<_ACEOF
25101 #define HAVE_INTMAX_T 1
25102 _ACEOF
25103
25104
25105 fi
25106 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
25107 if test "x$ac_cv_type_long_double" = xyes; then :
25108
25109 cat >>confdefs.h <<_ACEOF
25110 #define HAVE_LONG_DOUBLE 1
25111 _ACEOF
25112
25113
25114 fi
25115 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
25116 if test "x$ac_cv_type_long_long" = xyes; then :
25117
25118 cat >>confdefs.h <<_ACEOF
25119 #define HAVE_LONG_LONG 1
25120 _ACEOF
25121
25122
25123 fi
25124 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
25125 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
25126
25127 cat >>confdefs.h <<_ACEOF
25128 #define HAVE_PTRDIFF_T 1
25129 _ACEOF
25130
25131
25132 fi
25133 ac_fn_c_check_type "$LINENO" "quad_t" "ac_cv_type_quad_t" "$ac_includes_default"
25134 if test "x$ac_cv_type_quad_t" = xyes; then :
25135
25136 cat >>confdefs.h <<_ACEOF
25137 #define HAVE_QUAD_T 1
25138 _ACEOF
25139
25140
25141 fi
25142 ac_fn_c_check_type "$LINENO" "uint_least32_t" "ac_cv_type_uint_least32_t" "$ac_includes_default"
25143 if test "x$ac_cv_type_uint_least32_t" = xyes; then :
25144
25145 cat >>confdefs.h <<_ACEOF
25146 #define HAVE_UINT_LEAST32_T 1
25147 _ACEOF
25148
25149
25150 fi
25151 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
25152 if test "x$ac_cv_type_intptr_t" = xyes; then :
25153
25154 cat >>confdefs.h <<_ACEOF
25155 #define HAVE_INTPTR_T 1
25156 _ACEOF
25157
25158
25159 fi
25160
25161
25162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
25163 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
25164 if ${ac_cv_c_stringize+:} false; then :
25165 $as_echo_n "(cached) " >&6
25166 else
25167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25168 /* end confdefs.h. */
25169 #define x(y) #y
25170
25171 char *s = x(teststring);
25172 _ACEOF
25173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25174 $EGREP "#teststring" >/dev/null 2>&1; then :
25175 ac_cv_c_stringize=no
25176 else
25177 ac_cv_c_stringize=yes
25178 fi
25179 rm -f conftest*
25180
25181 fi
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
25183 $as_echo "$ac_cv_c_stringize" >&6; }
25184 if test $ac_cv_c_stringize = yes; then
25185
25186 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
25187
25188 fi
25189
25190
25191 # FIXME: Really want #ifndef __cplusplus around the #define volatile
25192 # replacement autoconf gives, since volatile is always available in C++.
25193 # But we don't use it in C++ currently.
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
25195 $as_echo_n "checking for working volatile... " >&6; }
25196 if ${ac_cv_c_volatile+:} false; then :
25197 $as_echo_n "(cached) " >&6
25198 else
25199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25200 /* end confdefs.h. */
25201
25202 int
25203 main ()
25204 {
25205
25206 volatile int x;
25207 int * volatile y = (int *) 0;
25208 return !x && !y;
25209 ;
25210 return 0;
25211 }
25212 _ACEOF
25213 if ac_fn_c_try_compile "$LINENO"; then :
25214 ac_cv_c_volatile=yes
25215 else
25216 ac_cv_c_volatile=no
25217 fi
25218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25219 fi
25220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
25221 $as_echo "$ac_cv_c_volatile" >&6; }
25222 if test $ac_cv_c_volatile = no; then
25223
25224 $as_echo "#define volatile /**/" >>confdefs.h
25225
25226 fi
25227
25228
25229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
25230 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
25231 if ${ac_cv_c_restrict+:} false; then :
25232 $as_echo_n "(cached) " >&6
25233 else
25234 ac_cv_c_restrict=no
25235 # The order here caters to the fact that C++ does not require restrict.
25236 for ac_kw in __restrict __restrict__ _Restrict restrict; do
25237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25238 /* end confdefs.h. */
25239 typedef int * int_ptr;
25240 int foo (int_ptr $ac_kw ip) {
25241 return ip[0];
25242 }
25243 int
25244 main ()
25245 {
25246 int s[1];
25247 int * $ac_kw t = s;
25248 t[0] = 0;
25249 return foo(t)
25250 ;
25251 return 0;
25252 }
25253 _ACEOF
25254 if ac_fn_c_try_compile "$LINENO"; then :
25255 ac_cv_c_restrict=$ac_kw
25256 fi
25257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25258 test "$ac_cv_c_restrict" != no && break
25259 done
25260
25261 fi
25262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
25263 $as_echo "$ac_cv_c_restrict" >&6; }
25264
25265 case $ac_cv_c_restrict in
25266 restrict) ;;
25267 no) $as_echo "#define restrict /**/" >>confdefs.h
25268 ;;
25269 *) cat >>confdefs.h <<_ACEOF
25270 #define restrict $ac_cv_c_restrict
25271 _ACEOF
25272 ;;
25273 esac
25274
25275
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <stdarg.h> exists and works" >&5
25277 $as_echo_n "checking whether <stdarg.h> exists and works... " >&6; }
25278 if ${gmp_cv_c_stdarg+:} false; then :
25279 $as_echo_n "(cached) " >&6
25280 else
25281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25282 /* end confdefs.h. */
25283 #include <stdarg.h>
25284 int foo (int x, ...)
25285 {
25286 va_list ap;
25287 int y;
25288 va_start (ap, x);
25289 y = va_arg (ap, int);
25290 va_end (ap);
25291 return y;
25292 }
25293 int
25294 main ()
25295 {
25296
25297 ;
25298 return 0;
25299 }
25300 _ACEOF
25301 if ac_fn_c_try_compile "$LINENO"; then :
25302 gmp_cv_c_stdarg=yes
25303 else
25304 gmp_cv_c_stdarg=no
25305 fi
25306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25307
25308 fi
25309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_stdarg" >&5
25310 $as_echo "$gmp_cv_c_stdarg" >&6; }
25311 if test $gmp_cv_c_stdarg = yes; then
25312
25313 $as_echo "#define HAVE_STDARG 1" >>confdefs.h
25314
25315 fi
25316
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((const)) works" >&5
25318 $as_echo_n "checking whether gcc __attribute__ ((const)) works... " >&6; }
25319 if ${gmp_cv_c_attribute_const+:} false; then :
25320 $as_echo_n "(cached) " >&6
25321 else
25322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25323 /* end confdefs.h. */
25324 int foo (int x) __attribute__ ((const));
25325 int
25326 main ()
25327 {
25328
25329 ;
25330 return 0;
25331 }
25332 _ACEOF
25333 if ac_fn_c_try_compile "$LINENO"; then :
25334 gmp_cv_c_attribute_const=yes
25335 else
25336 gmp_cv_c_attribute_const=no
25337 fi
25338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25339
25340 fi
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_const" >&5
25342 $as_echo "$gmp_cv_c_attribute_const" >&6; }
25343 if test $gmp_cv_c_attribute_const = yes; then
25344
25345 $as_echo "#define HAVE_ATTRIBUTE_CONST 1" >>confdefs.h
25346
25347 fi
25348
25349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((malloc)) works" >&5
25350 $as_echo_n "checking whether gcc __attribute__ ((malloc)) works... " >&6; }
25351 if ${gmp_cv_c_attribute_malloc+:} false; then :
25352 $as_echo_n "(cached) " >&6
25353 else
25354 cat >conftest.c <<EOF
25355 void *foo (int x) __attribute__ ((malloc));
25356 EOF
25357 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1"
25358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
25359 (eval $gmp_compile) 2>&5
25360 ac_status=$?
25361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25362 test $ac_status = 0; }; then
25363 if grep "attribute directive ignored" conftest.out >/dev/null; then
25364 gmp_cv_c_attribute_malloc=no
25365 else
25366 gmp_cv_c_attribute_malloc=yes
25367 fi
25368 else
25369 gmp_cv_c_attribute_malloc=no
25370 fi
25371 cat conftest.out >&5
25372 rm -f conftest*
25373
25374 fi
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_malloc" >&5
25376 $as_echo "$gmp_cv_c_attribute_malloc" >&6; }
25377 if test $gmp_cv_c_attribute_malloc = yes; then
25378
25379 $as_echo "#define HAVE_ATTRIBUTE_MALLOC 1" >>confdefs.h
25380
25381 fi
25382
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5
25384 $as_echo_n "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; }
25385 if ${gmp_cv_c_attribute_mode+:} false; then :
25386 $as_echo_n "(cached) " >&6
25387 else
25388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25389 /* end confdefs.h. */
25390 typedef int SItype __attribute__ ((mode (SI)));
25391 int
25392 main ()
25393 {
25394
25395 ;
25396 return 0;
25397 }
25398 _ACEOF
25399 if ac_fn_c_try_compile "$LINENO"; then :
25400 gmp_cv_c_attribute_mode=yes
25401 else
25402 gmp_cv_c_attribute_mode=no
25403 fi
25404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25405
25406 fi
25407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5
25408 $as_echo "$gmp_cv_c_attribute_mode" >&6; }
25409 if test $gmp_cv_c_attribute_mode = yes; then
25410
25411 $as_echo "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h
25412
25413 fi
25414
25415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((noreturn)) works" >&5
25416 $as_echo_n "checking whether gcc __attribute__ ((noreturn)) works... " >&6; }
25417 if ${gmp_cv_c_attribute_noreturn+:} false; then :
25418 $as_echo_n "(cached) " >&6
25419 else
25420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25421 /* end confdefs.h. */
25422 void foo (int x) __attribute__ ((noreturn));
25423 int
25424 main ()
25425 {
25426
25427 ;
25428 return 0;
25429 }
25430 _ACEOF
25431 if ac_fn_c_try_compile "$LINENO"; then :
25432 gmp_cv_c_attribute_noreturn=yes
25433 else
25434 gmp_cv_c_attribute_noreturn=no
25435 fi
25436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25437
25438 fi
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_noreturn" >&5
25440 $as_echo "$gmp_cv_c_attribute_noreturn" >&6; }
25441 if test $gmp_cv_c_attribute_noreturn = yes; then
25442
25443 $as_echo "#define HAVE_ATTRIBUTE_NORETURN 1" >>confdefs.h
25444
25445 fi
25446
25447
25448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
25449 $as_echo_n "checking for inline... " >&6; }
25450 if ${ac_cv_c_inline+:} false; then :
25451 $as_echo_n "(cached) " >&6
25452 else
25453 ac_cv_c_inline=no
25454 for ac_kw in inline __inline__ __inline; do
25455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25456 /* end confdefs.h. */
25457 #ifndef __cplusplus
25458 typedef int foo_t;
25459 static $ac_kw foo_t static_foo () {return 0; }
25460 $ac_kw foo_t foo () {return 0; }
25461 #endif
25462
25463 _ACEOF
25464 if ac_fn_c_try_compile "$LINENO"; then :
25465 ac_cv_c_inline=$ac_kw
25466 fi
25467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25468 test "$ac_cv_c_inline" != no && break
25469 done
25470
25471 fi
25472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
25473 $as_echo "$ac_cv_c_inline" >&6; }
25474
25475 case $ac_cv_c_inline in
25476 inline | yes) ;;
25477 *)
25478 case $ac_cv_c_inline in
25479 no) ac_val=;;
25480 *) ac_val=$ac_cv_c_inline;;
25481 esac
25482 cat >>confdefs.h <<_ACEOF
25483 #ifndef __cplusplus
25484 #define inline $ac_val
25485 #endif
25486 _ACEOF
25487 ;;
25488 esac
25489
25490
25491 case $ac_cv_c_inline in
25492 no) ;;
25493 *)
25494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25495 /* end confdefs.h. */
25496 #define __GMP_WITHIN_CONFIGURE_INLINE 1
25497 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
25498 #define GMP_NAIL_BITS $GMP_NAIL_BITS
25499 #define GMP_LIMB_BITS 123
25500 $DEFN_LONG_LONG_LIMB
25501 #include "$srcdir/gmp-h.in"
25502
25503 #ifndef __GMP_EXTERN_INLINE
25504 die die die
25505 #endif
25506
25507 int
25508 main ()
25509 {
25510
25511 ;
25512 return 0;
25513 }
25514 _ACEOF
25515 if ac_fn_c_try_compile "$LINENO"; then :
25516
25517 else
25518 case $ac_cv_c_inline in
25519 yes) tmp_inline=inline ;;
25520 *) tmp_inline=$ac_cv_c_inline ;;
25521 esac
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&5
25523 $as_echo "$as_me: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&2;}
25524 fi
25525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25526 ;;
25527 esac
25528
25529
25530 # from libtool
25531 LIBM=
25532 case $host in
25533 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
25534 # These system don't have libm, or don't need it
25535 ;;
25536 *-ncr-sysv4.3*)
25537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
25538 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
25539 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
25540 $as_echo_n "(cached) " >&6
25541 else
25542 ac_check_lib_save_LIBS=$LIBS
25543 LIBS="-lmw $LIBS"
25544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25545 /* end confdefs.h. */
25546
25547 /* Override any GCC internal prototype to avoid an error.
25548 Use char because int might match the return type of a GCC
25549 builtin and then its argument prototype would still apply. */
25550 #ifdef __cplusplus
25551 extern "C"
25552 #endif
25553 char _mwvalidcheckl ();
25554 int
25555 main ()
25556 {
25557 return _mwvalidcheckl ();
25558 ;
25559 return 0;
25560 }
25561 _ACEOF
25562 if ac_fn_c_try_link "$LINENO"; then :
25563 ac_cv_lib_mw__mwvalidcheckl=yes
25564 else
25565 ac_cv_lib_mw__mwvalidcheckl=no
25566 fi
25567 rm -f core conftest.err conftest.$ac_objext \
25568 conftest$ac_exeext conftest.$ac_ext
25569 LIBS=$ac_check_lib_save_LIBS
25570 fi
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
25572 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
25573 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
25574 LIBM="-lmw"
25575 fi
25576
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
25578 $as_echo_n "checking for cos in -lm... " >&6; }
25579 if ${ac_cv_lib_m_cos+:} false; then :
25580 $as_echo_n "(cached) " >&6
25581 else
25582 ac_check_lib_save_LIBS=$LIBS
25583 LIBS="-lm $LIBS"
25584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25585 /* end confdefs.h. */
25586
25587 /* Override any GCC internal prototype to avoid an error.
25588 Use char because int might match the return type of a GCC
25589 builtin and then its argument prototype would still apply. */
25590 #ifdef __cplusplus
25591 extern "C"
25592 #endif
25593 char cos ();
25594 int
25595 main ()
25596 {
25597 return cos ();
25598 ;
25599 return 0;
25600 }
25601 _ACEOF
25602 if ac_fn_c_try_link "$LINENO"; then :
25603 ac_cv_lib_m_cos=yes
25604 else
25605 ac_cv_lib_m_cos=no
25606 fi
25607 rm -f core conftest.err conftest.$ac_objext \
25608 conftest$ac_exeext conftest.$ac_ext
25609 LIBS=$ac_check_lib_save_LIBS
25610 fi
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
25612 $as_echo "$ac_cv_lib_m_cos" >&6; }
25613 if test "x$ac_cv_lib_m_cos" = xyes; then :
25614 LIBM="$LIBM -lm"
25615 fi
25616
25617 ;;
25618 *)
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
25620 $as_echo_n "checking for cos in -lm... " >&6; }
25621 if ${ac_cv_lib_m_cos+:} false; then :
25622 $as_echo_n "(cached) " >&6
25623 else
25624 ac_check_lib_save_LIBS=$LIBS
25625 LIBS="-lm $LIBS"
25626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25627 /* end confdefs.h. */
25628
25629 /* Override any GCC internal prototype to avoid an error.
25630 Use char because int might match the return type of a GCC
25631 builtin and then its argument prototype would still apply. */
25632 #ifdef __cplusplus
25633 extern "C"
25634 #endif
25635 char cos ();
25636 int
25637 main ()
25638 {
25639 return cos ();
25640 ;
25641 return 0;
25642 }
25643 _ACEOF
25644 if ac_fn_c_try_link "$LINENO"; then :
25645 ac_cv_lib_m_cos=yes
25646 else
25647 ac_cv_lib_m_cos=no
25648 fi
25649 rm -f core conftest.err conftest.$ac_objext \
25650 conftest$ac_exeext conftest.$ac_ext
25651 LIBS=$ac_check_lib_save_LIBS
25652 fi
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
25654 $as_echo "$ac_cv_lib_m_cos" >&6; }
25655 if test "x$ac_cv_lib_m_cos" = xyes; then :
25656 LIBM="-lm"
25657 fi
25658
25659 ;;
25660 esac
25661
25662
25663
25664
25665 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
25666 # for constant arguments. Useless!
25667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
25668 $as_echo_n "checking for working alloca.h... " >&6; }
25669 if ${gmp_cv_header_alloca+:} false; then :
25670 $as_echo_n "(cached) " >&6
25671 else
25672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25673 /* end confdefs.h. */
25674 #include <alloca.h>
25675 int
25676 main ()
25677 {
25678 char *p = (char *) alloca (2 * sizeof (int));
25679 ;
25680 return 0;
25681 }
25682 _ACEOF
25683 if ac_fn_c_try_link "$LINENO"; then :
25684 gmp_cv_header_alloca=yes
25685 else
25686 gmp_cv_header_alloca=no
25687 fi
25688 rm -f core conftest.err conftest.$ac_objext \
25689 conftest$ac_exeext conftest.$ac_ext
25690 fi
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_header_alloca" >&5
25692 $as_echo "$gmp_cv_header_alloca" >&6; }
25693 if test $gmp_cv_header_alloca = yes; then
25694
25695 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
25696
25697 fi
25698
25699
25700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca (via gmp-impl.h)" >&5
25701 $as_echo_n "checking for alloca (via gmp-impl.h)... " >&6; }
25702 if ${gmp_cv_func_alloca+:} false; then :
25703 $as_echo_n "(cached) " >&6
25704 else
25705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25706 /* end confdefs.h. */
25707 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
25708 #define GMP_NAIL_BITS $GMP_NAIL_BITS
25709 #define GMP_LIMB_BITS 123
25710 $DEFN_LONG_LONG_LIMB
25711 #include "$srcdir/gmp-h.in"
25712
25713 #include "$srcdir/gmp-impl.h"
25714
25715 int
25716 main ()
25717 {
25718 char *p = (char *) alloca (1);
25719 ;
25720 return 0;
25721 }
25722 _ACEOF
25723 if ac_fn_c_try_link "$LINENO"; then :
25724 gmp_cv_func_alloca=yes
25725 else
25726 gmp_cv_func_alloca=no
25727 fi
25728 rm -f core conftest.err conftest.$ac_objext \
25729 conftest$ac_exeext conftest.$ac_ext
25730 fi
25731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_alloca" >&5
25732 $as_echo "$gmp_cv_func_alloca" >&6; }
25733 if test $gmp_cv_func_alloca = yes; then
25734
25735 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
25736
25737 fi
25738
25739
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to allocate temporary memory" >&5
25741 $as_echo_n "checking how to allocate temporary memory... " >&6; }
25742 if ${gmp_cv_option_alloca+:} false; then :
25743 $as_echo_n "(cached) " >&6
25744 else
25745 case $enable_alloca in
25746 yes)
25747 gmp_cv_option_alloca=alloca
25748 ;;
25749 no)
25750 gmp_cv_option_alloca=malloc-reentrant
25751 ;;
25752 reentrant | notreentrant)
25753 case $gmp_cv_func_alloca in
25754 yes) gmp_cv_option_alloca=alloca ;;
25755 *) gmp_cv_option_alloca=malloc-$enable_alloca ;;
25756 esac
25757 ;;
25758 *)
25759 gmp_cv_option_alloca=$enable_alloca
25760 ;;
25761 esac
25762
25763 fi
25764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_option_alloca" >&5
25765 $as_echo "$gmp_cv_option_alloca" >&6; }
25766
25767
25768
25769 case $gmp_cv_option_alloca in
25770 alloca)
25771 if test $gmp_cv_func_alloca = no; then
25772 as_fn_error $? "--enable-alloca=alloca specified, but alloca not available" "$LINENO" 5
25773 fi
25774 $as_echo "#define WANT_TMP_ALLOCA 1" >>confdefs.h
25775
25776 TAL_OBJECT=tal-reent$U.lo
25777 ;;
25778 malloc-reentrant)
25779 $as_echo "#define WANT_TMP_REENTRANT 1" >>confdefs.h
25780
25781 TAL_OBJECT=tal-reent$U.lo
25782 ;;
25783 malloc-notreentrant)
25784 $as_echo "#define WANT_TMP_NOTREENTRANT 1" >>confdefs.h
25785
25786 TAL_OBJECT=tal-notreent$U.lo
25787 ;;
25788 debug)
25789 $as_echo "#define WANT_TMP_DEBUG 1" >>confdefs.h
25790
25791 TAL_OBJECT=tal-debug$U.lo
25792 ;;
25793 *)
25794 # checks at the start of configure.in should protect us
25795 as_fn_error $? "unrecognised --enable-alloca=$gmp_cv_option_alloca" "$LINENO" 5
25796 ;;
25797 esac
25798
25799
25800
25801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25802 /* end confdefs.h. */
25803 #include <stdio.h>
25804 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
25805 #define GMP_NAIL_BITS $GMP_NAIL_BITS
25806 #define GMP_LIMB_BITS 123
25807 $DEFN_LONG_LONG_LIMB
25808 #include "$srcdir/gmp-h.in"
25809
25810 #if ! _GMP_H_HAVE_FILE
25811 die die die
25812 #endif
25813
25814 int
25815 main ()
25816 {
25817
25818 ;
25819 return 0;
25820 }
25821 _ACEOF
25822 if ac_fn_c_try_compile "$LINENO"; then :
25823
25824 else
25825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&5
25826 $as_echo "$as_me: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&2;}
25827 fi
25828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25829
25830
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25832 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25833 if ${ac_cv_c_bigendian+:} false; then :
25834 $as_echo_n "(cached) " >&6
25835 else
25836 ac_cv_c_bigendian=unknown
25837 # See if we're dealing with a universal compiler.
25838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25839 /* end confdefs.h. */
25840 #ifndef __APPLE_CC__
25841 not a universal capable compiler
25842 #endif
25843 typedef int dummy;
25844
25845 _ACEOF
25846 if ac_fn_c_try_compile "$LINENO"; then :
25847
25848 # Check for potential -arch flags. It is not universal unless
25849 # there are at least two -arch flags with different values.
25850 ac_arch=
25851 ac_prev=
25852 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25853 if test -n "$ac_prev"; then
25854 case $ac_word in
25855 i?86 | x86_64 | ppc | ppc64)
25856 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25857 ac_arch=$ac_word
25858 else
25859 ac_cv_c_bigendian=universal
25860 break
25861 fi
25862 ;;
25863 esac
25864 ac_prev=
25865 elif test "x$ac_word" = "x-arch"; then
25866 ac_prev=arch
25867 fi
25868 done
25869 fi
25870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25871 if test $ac_cv_c_bigendian = unknown; then
25872 # See if sys/param.h defines the BYTE_ORDER macro.
25873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25874 /* end confdefs.h. */
25875 #include <sys/types.h>
25876 #include <sys/param.h>
25877
25878 int
25879 main ()
25880 {
25881 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25882 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25883 && LITTLE_ENDIAN)
25884 bogus endian macros
25885 #endif
25886
25887 ;
25888 return 0;
25889 }
25890 _ACEOF
25891 if ac_fn_c_try_compile "$LINENO"; then :
25892 # It does; now see whether it defined to BIG_ENDIAN or not.
25893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25894 /* end confdefs.h. */
25895 #include <sys/types.h>
25896 #include <sys/param.h>
25897
25898 int
25899 main ()
25900 {
25901 #if BYTE_ORDER != BIG_ENDIAN
25902 not big endian
25903 #endif
25904
25905 ;
25906 return 0;
25907 }
25908 _ACEOF
25909 if ac_fn_c_try_compile "$LINENO"; then :
25910 ac_cv_c_bigendian=yes
25911 else
25912 ac_cv_c_bigendian=no
25913 fi
25914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25915 fi
25916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25917 fi
25918 if test $ac_cv_c_bigendian = unknown; then
25919 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
25920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25921 /* end confdefs.h. */
25922 #include <limits.h>
25923
25924 int
25925 main ()
25926 {
25927 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
25928 bogus endian macros
25929 #endif
25930
25931 ;
25932 return 0;
25933 }
25934 _ACEOF
25935 if ac_fn_c_try_compile "$LINENO"; then :
25936 # It does; now see whether it defined to _BIG_ENDIAN or not.
25937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25938 /* end confdefs.h. */
25939 #include <limits.h>
25940
25941 int
25942 main ()
25943 {
25944 #ifndef _BIG_ENDIAN
25945 not big endian
25946 #endif
25947
25948 ;
25949 return 0;
25950 }
25951 _ACEOF
25952 if ac_fn_c_try_compile "$LINENO"; then :
25953 ac_cv_c_bigendian=yes
25954 else
25955 ac_cv_c_bigendian=no
25956 fi
25957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25958 fi
25959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25960 fi
25961 if test $ac_cv_c_bigendian = unknown; then
25962 # Compile a test program.
25963 if test "$cross_compiling" = yes; then :
25964 # Try to guess by grepping values from an object file.
25965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25966 /* end confdefs.h. */
25967 short int ascii_mm[] =
25968 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25969 short int ascii_ii[] =
25970 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25971 int use_ascii (int i) {
25972 return ascii_mm[i] + ascii_ii[i];
25973 }
25974 short int ebcdic_ii[] =
25975 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25976 short int ebcdic_mm[] =
25977 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25978 int use_ebcdic (int i) {
25979 return ebcdic_mm[i] + ebcdic_ii[i];
25980 }
25981 extern int foo;
25982
25983 int
25984 main ()
25985 {
25986 return use_ascii (foo) == use_ebcdic (foo);
25987 ;
25988 return 0;
25989 }
25990 _ACEOF
25991 if ac_fn_c_try_compile "$LINENO"; then :
25992 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
25993 ac_cv_c_bigendian=yes
25994 fi
25995 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25996 if test "$ac_cv_c_bigendian" = unknown; then
25997 ac_cv_c_bigendian=no
25998 else
25999 # finding both strings is unlikely to happen, but who knows?
26000 ac_cv_c_bigendian=unknown
26001 fi
26002 fi
26003 fi
26004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26005 else
26006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26007 /* end confdefs.h. */
26008 $ac_includes_default
26009 int
26010 main ()
26011 {
26012
26013 /* Are we little or big endian? From Harbison&Steele. */
26014 union
26015 {
26016 long int l;
26017 char c[sizeof (long int)];
26018 } u;
26019 u.l = 1;
26020 return u.c[sizeof (long int) - 1] == 1;
26021
26022 ;
26023 return 0;
26024 }
26025 _ACEOF
26026 if ac_fn_c_try_run "$LINENO"; then :
26027 ac_cv_c_bigendian=no
26028 else
26029 ac_cv_c_bigendian=yes
26030 fi
26031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26032 conftest.$ac_objext conftest.beam conftest.$ac_ext
26033 fi
26034
26035 fi
26036 fi
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26038 $as_echo "$ac_cv_c_bigendian" >&6; }
26039 case $ac_cv_c_bigendian in #(
26040 yes)
26041 $as_echo "#define HAVE_LIMB_BIG_ENDIAN 1" >>confdefs.h
26042
26043
26044 echo "define_not_for_expansion(\`HAVE_LIMB_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
26045 ;; #(
26046 no)
26047 $as_echo "#define HAVE_LIMB_LITTLE_ENDIAN 1" >>confdefs.h
26048
26049
26050 echo "define_not_for_expansion(\`HAVE_LIMB_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
26051
26052 ;; #(
26053 universal)
26054
26055 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26056
26057 ;; #(
26058 *)
26059 : ;;
26060 esac
26061
26062
26063
26064
26065
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking format of \`double' floating point" >&5
26067 $as_echo_n "checking format of \`double' floating point... " >&6; }
26068 if ${gmp_cv_c_double_format+:} false; then :
26069 $as_echo_n "(cached) " >&6
26070 else
26071 gmp_cv_c_double_format=unknown
26072 cat >conftest.c <<\EOF
26073 struct foo {
26074 char before[8];
26075 double x;
26076 char after[8];
26077 };
26078 extern struct foo foo;
26079 struct foo foo = {
26080 { '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
26081 -123456789.0,
26082 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' },
26083 };
26084 EOF
26085 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
26086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
26087 (eval $gmp_compile) 2>&5
26088 ac_status=$?
26089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26090 test $ac_status = 0; }; then
26091 cat >conftest.awk <<\EOF
26092
26093 BEGIN {
26094 found = 0
26095 }
26096
26097 {
26098 for (f = 2; f <= NF; f++)
26099 {
26100 for (i = 0; i < 23; i++)
26101 got[i] = got[i+1];
26102 got[23] = $f;
26103
26104 # match the special begin and end sequences
26105 if (got[0] != "001") continue
26106 if (got[1] != "043") continue
26107 if (got[2] != "105") continue
26108 if (got[3] != "147") continue
26109 if (got[4] != "211") continue
26110 if (got[5] != "253") continue
26111 if (got[6] != "315") continue
26112 if (got[7] != "357") continue
26113 if (got[16] != "376") continue
26114 if (got[17] != "334") continue
26115 if (got[18] != "272") continue
26116 if (got[19] != "230") continue
26117 if (got[20] != "166") continue
26118 if (got[21] != "124") continue
26119 if (got[22] != "062") continue
26120 if (got[23] != "020") continue
26121
26122 saw = " (" got[8] " " got[9] " " got[10] " " got[11] " " got[12] " " got[13] " " got[14] " " got[15] ")"
26123
26124 if (got[8] == "000" && \
26125 got[9] == "000" && \
26126 got[10] == "000" && \
26127 got[11] == "124" && \
26128 got[12] == "064" && \
26129 got[13] == "157" && \
26130 got[14] == "235" && \
26131 got[15] == "301")
26132 {
26133 print "IEEE little endian"
26134 found = 1
26135 exit
26136 }
26137
26138 # Little endian with the two 4-byte halves swapped, as used by ARM
26139 # when the chip is in little endian mode.
26140 #
26141 if (got[8] == "064" && \
26142 got[9] == "157" && \
26143 got[10] == "235" && \
26144 got[11] == "301" && \
26145 got[12] == "000" && \
26146 got[13] == "000" && \
26147 got[14] == "000" && \
26148 got[15] == "124")
26149 {
26150 print "IEEE little endian, swapped halves"
26151 found = 1
26152 exit
26153 }
26154
26155 # gcc 2.95.4 on one GNU/Linux ARM system was seen generating 000 in
26156 # the last byte, whereas 124 is correct. Not sure where the bug
26157 # actually lies, but a running program didn't seem to get a full
26158 # mantissa worth of working bits.
26159 #
26160 # We match this case explicitly so we can give a nice result message,
26161 # but we deliberately exclude it from the normal IEEE double setups
26162 # since it's too broken.
26163 #
26164 if (got[8] == "064" && \
26165 got[9] == "157" && \
26166 got[10] == "235" && \
26167 got[11] == "301" && \
26168 got[12] == "000" && \
26169 got[13] == "000" && \
26170 got[14] == "000" && \
26171 got[15] == "000")
26172 {
26173 print "bad ARM software floats"
26174 found = 1
26175 exit
26176 }
26177
26178 if (got[8] == "301" && \
26179 got[9] == "235" && \
26180 got[10] == "157" && \
26181 got[11] == "064" && \
26182 got[12] == "124" && \
26183 got[13] == "000" && \
26184 got[14] == "000" && \
26185 got[15] == "000")
26186 {
26187 print "IEEE big endian"
26188 found = 1
26189 exit
26190 }
26191
26192 if (got[8] == "353" && \
26193 got[9] == "315" && \
26194 got[10] == "242" && \
26195 got[11] == "171" && \
26196 got[12] == "000" && \
26197 got[13] == "240" && \
26198 got[14] == "000" && \
26199 got[15] == "000")
26200 {
26201 print "VAX D"
26202 found = 1
26203 exit
26204 }
26205
26206 if (got[8] == "275" && \
26207 got[9] == "301" && \
26208 got[10] == "064" && \
26209 got[11] == "157" && \
26210 got[12] == "000" && \
26211 got[13] == "124" && \
26212 got[14] == "000" && \
26213 got[15] == "000")
26214 {
26215 print "VAX G"
26216 found = 1
26217 exit
26218 }
26219
26220 if (got[8] == "300" && \
26221 got[9] == "033" && \
26222 got[10] == "353" && \
26223 got[11] == "171" && \
26224 got[12] == "242" && \
26225 got[13] == "240" && \
26226 got[14] == "000" && \
26227 got[15] == "000")
26228 {
26229 print "Cray CFP"
26230 found = 1
26231 exit
26232 }
26233 }
26234 }
26235
26236 END {
26237 if (! found)
26238 print "unknown", saw
26239 }
26240
26241 EOF
26242 gmp_cv_c_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
26243 case $gmp_cv_c_double_format in
26244 unknown*)
26245 echo "cannot match anything, conftest.$OBJEXT contains" >&5
26246 od -b conftest.$OBJEXT >&5
26247 ;;
26248 esac
26249 else
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
26251 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
26252 fi
26253 rm -f conftest*
26254
26255 fi
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_double_format" >&5
26257 $as_echo "$gmp_cv_c_double_format" >&6; }
26258
26259
26260
26261 case $gmp_cv_c_double_format in
26262 "IEEE big endian")
26263 $as_echo "#define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1" >>confdefs.h
26264
26265
26266 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
26267
26268 ;;
26269 "IEEE little endian")
26270 $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1" >>confdefs.h
26271
26272
26273 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
26274
26275 ;;
26276 "IEEE little endian, swapped halves")
26277 $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_SWAPPED 1" >>confdefs.h
26278 ;;
26279 "VAX D")
26280 $as_echo "#define HAVE_DOUBLE_VAX_D 1" >>confdefs.h
26281 ;;
26282 "VAX G")
26283 $as_echo "#define HAVE_DOUBLE_VAX_G 1" >>confdefs.h
26284 ;;
26285 "Cray CFP")
26286 $as_echo "#define HAVE_DOUBLE_CRAY_CFP 1" >>confdefs.h
26287 ;;
26288 "bad ARM software floats")
26289 ;;
26290 unknown*)
26291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine float format." >&5
26292 $as_echo "$as_me: WARNING: Could not determine float format." >&2;}
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Conversions to and from \"double\" may be slow." >&5
26294 $as_echo "$as_me: WARNING: Conversions to and from \"double\" may be slow." >&2;}
26295 ;;
26296 *)
26297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&5
26298 $as_echo "$as_me: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&2;}
26299 ;;
26300 esac
26301
26302
26303
26304 # Reasons for testing:
26305 # alarm - not in mingw
26306 # attr_get - IRIX specific
26307 # clock_gettime - not in glibc 2.2.4, only very recent systems
26308 # cputime - not in glibc
26309 # getsysinfo - OSF specific
26310 # getrusage - not in mingw
26311 # gettimeofday - not in mingw
26312 # mmap - not in mingw, djgpp
26313 # nl_langinfo - X/Open standard only, not in djgpp for instance
26314 # obstack_vprintf - glibc specific
26315 # processor_info - solaris specific
26316 # pstat_getprocessor - HPUX specific (10.x and up)
26317 # raise - an ANSI-ism, though probably almost universal by now
26318 # read_real_time - AIX specific
26319 # sigaction - not in mingw
26320 # sigaltstack - not in mingw, or old AIX (reputedly)
26321 # sigstack - not in mingw
26322 # strerror - not in SunOS
26323 # strnlen - glibc extension (some other systems too)
26324 # syssgi - IRIX specific
26325 # times - not in mingw
26326 #
26327 # AC_FUNC_STRNLEN is not used because we don't want the AC_LIBOBJ
26328 # replacement setups it gives. It detects a faulty strnlen on AIX, but
26329 # missing out on that test is ok since our only use of strnlen is in
26330 # __gmp_replacement_vsnprintf which is not required on AIX since it has a
26331 # vsnprintf.
26332 #
26333 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
26334 do :
26335 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26336 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26337 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26338 cat >>confdefs.h <<_ACEOF
26339 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26340 _ACEOF
26341
26342 fi
26343 done
26344
26345
26346 # clock_gettime is in librt on *-*-osf5.1 and on glibc, so att -lrt to
26347 # TUNE_LIBS if needed. On linux (tested on x86_32, 2.6.26),
26348 # clock_getres reports ns accuracy, while in a quick test on osf
26349 # clock_getres said only 1 millisecond.
26350
26351 old_LIBS="$LIBS"
26352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
26353 $as_echo_n "checking for library containing clock_gettime... " >&6; }
26354 if ${ac_cv_search_clock_gettime+:} false; then :
26355 $as_echo_n "(cached) " >&6
26356 else
26357 ac_func_search_save_LIBS=$LIBS
26358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26359 /* end confdefs.h. */
26360
26361 /* Override any GCC internal prototype to avoid an error.
26362 Use char because int might match the return type of a GCC
26363 builtin and then its argument prototype would still apply. */
26364 #ifdef __cplusplus
26365 extern "C"
26366 #endif
26367 char clock_gettime ();
26368 int
26369 main ()
26370 {
26371 return clock_gettime ();
26372 ;
26373 return 0;
26374 }
26375 _ACEOF
26376 for ac_lib in '' rt; do
26377 if test -z "$ac_lib"; then
26378 ac_res="none required"
26379 else
26380 ac_res=-l$ac_lib
26381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26382 fi
26383 if ac_fn_c_try_link "$LINENO"; then :
26384 ac_cv_search_clock_gettime=$ac_res
26385 fi
26386 rm -f core conftest.err conftest.$ac_objext \
26387 conftest$ac_exeext
26388 if ${ac_cv_search_clock_gettime+:} false; then :
26389 break
26390 fi
26391 done
26392 if ${ac_cv_search_clock_gettime+:} false; then :
26393
26394 else
26395 ac_cv_search_clock_gettime=no
26396 fi
26397 rm conftest.$ac_ext
26398 LIBS=$ac_func_search_save_LIBS
26399 fi
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
26401 $as_echo "$ac_cv_search_clock_gettime" >&6; }
26402 ac_res=$ac_cv_search_clock_gettime
26403 if test "$ac_res" != no; then :
26404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26405
26406
26407 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
26408
26409 fi
26410
26411 TUNE_LIBS="$LIBS"
26412 LIBS="$old_LIBS"
26413
26414
26415
26416
26417 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
26418 if test "x$ac_cv_func_vsnprintf" = xyes; then :
26419 gmp_vsnprintf_exists=yes
26420 else
26421 gmp_vsnprintf_exists=no
26422 fi
26423
26424 if test "$gmp_vsnprintf_exists" = no; then
26425 gmp_cv_func_vsnprintf=no
26426 else
26427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf works" >&5
26428 $as_echo_n "checking whether vsnprintf works... " >&6; }
26429 if ${gmp_cv_func_vsnprintf+:} false; then :
26430 $as_echo_n "(cached) " >&6
26431 else
26432 gmp_cv_func_vsnprintf=yes
26433 for i in 'return check ("hello world");' 'int n; return check ("%nhello world", &n);'; do
26434 if test "$cross_compiling" = yes; then :
26435 gmp_cv_func_vsnprintf=probably; break
26436 else
26437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26438 /* end confdefs.h. */
26439
26440 #include <string.h> /* for strcmp */
26441 #include <stdio.h> /* for vsnprintf */
26442
26443 #if HAVE_STDARG
26444 #include <stdarg.h>
26445 #else
26446 #include <varargs.h>
26447 #endif
26448
26449 int
26450 #if HAVE_STDARG
26451 check (const char *fmt, ...)
26452 #else
26453 check (va_alist)
26454 va_dcl
26455 #endif
26456 {
26457 static char buf[128];
26458 va_list ap;
26459 int ret;
26460
26461 #if HAVE_STDARG
26462 va_start (ap, fmt);
26463 #else
26464 char *fmt;
26465 va_start (ap);
26466 fmt = va_arg (ap, char *);
26467 #endif
26468
26469 ret = vsnprintf (buf, 4, fmt, ap);
26470
26471 if (strcmp (buf, "hel") != 0)
26472 return 1;
26473
26474 /* allowed return values */
26475 if (ret != -1 && ret != 3 && ret != 11)
26476 return 2;
26477
26478 return 0;
26479 }
26480
26481 int
26482 main ()
26483 {
26484 $i
26485 }
26486
26487 _ACEOF
26488 if ac_fn_c_try_run "$LINENO"; then :
26489 :
26490 else
26491 gmp_cv_func_vsnprintf=no; break
26492 fi
26493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26494 conftest.$ac_objext conftest.beam conftest.$ac_ext
26495 fi
26496
26497 done
26498
26499 fi
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_vsnprintf" >&5
26501 $as_echo "$gmp_cv_func_vsnprintf" >&6; }
26502 if test "$gmp_cv_func_vsnprintf" = probably; then
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&5
26504 $as_echo "$as_me: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&2;}
26505 fi
26506 if test "$gmp_cv_func_vsnprintf" != no; then
26507
26508 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
26509
26510 fi
26511 fi
26512
26513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sscanf needs writable input" >&5
26514 $as_echo_n "checking whether sscanf needs writable input... " >&6; }
26515 if ${gmp_cv_func_sscanf_writable_input+:} false; then :
26516 $as_echo_n "(cached) " >&6
26517 else
26518 case $host in
26519 *-*-hpux9 | *-*-hpux9.*)
26520 gmp_cv_func_sscanf_writable_input=yes ;;
26521 *) gmp_cv_func_sscanf_writable_input=no ;;
26522 esac
26523
26524 fi
26525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_sscanf_writable_input" >&5
26526 $as_echo "$gmp_cv_func_sscanf_writable_input" >&6; }
26527 case $gmp_cv_func_sscanf_writable_input in
26528 yes)
26529 $as_echo "#define SSCANF_WRITABLE_INPUT 1" >>confdefs.h
26530 ;;
26531 no) ;;
26532 *) as_fn_error $? "unrecognised \$gmp_cv_func_sscanf_writable_input" "$LINENO" 5 ;;
26533 esac
26534
26535
26536 # Reasons for checking:
26537 # pst_processor psp_iticksperclktick - not in hpux 9
26538 #
26539 ac_fn_c_check_member "$LINENO" "struct pst_processor" "psp_iticksperclktick" "ac_cv_member_struct_pst_processor_psp_iticksperclktick" "#include <sys/pstat.h>
26540 "
26541 if test "x$ac_cv_member_struct_pst_processor_psp_iticksperclktick" = xyes; then :
26542
26543 $as_echo "#define HAVE_PSP_ITICKSPERCLKTICK 1" >>confdefs.h
26544
26545 fi
26546
26547
26548 # C++ tests, when required
26549 #
26550 if test $enable_cxx = yes; then
26551 ac_ext=cpp
26552 ac_cpp='$CXXCPP $CPPFLAGS'
26553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26556
26557
26558 # Reasons for testing:
26559 # <sstream> - not in g++ 2.95.2
26560 # std::locale - not in g++ 2.95.4
26561 #
26562
26563 for ac_header in sstream
26564 do :
26565 ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default"
26566 if test "x$ac_cv_header_sstream" = xyes; then :
26567 cat >>confdefs.h <<_ACEOF
26568 #define HAVE_SSTREAM 1
26569 _ACEOF
26570
26571 fi
26572
26573 done
26574
26575 ac_fn_cxx_check_type "$LINENO" "std::locale" "ac_cv_type_std__locale" "#include <locale>
26576 "
26577 if test "x$ac_cv_type_std__locale" = xyes; then :
26578
26579 cat >>confdefs.h <<_ACEOF
26580 #define HAVE_STD__LOCALE 1
26581 _ACEOF
26582
26583
26584 fi
26585
26586
26587 ac_ext=c
26588 ac_cpp='$CPP $CPPFLAGS'
26589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26592
26593 fi
26594
26595
26596 # Pick the correct source files in $path and link them to mpn/.
26597 # $gmp_mpn_functions lists all functions we need.
26598 #
26599 # The rule is to find a file with the function name and a .asm, .S,
26600 # .s, or .c extension. Certain multi-function files with special names
26601 # can provide some functions too. (mpn/Makefile.am passes
26602 # -DOPERATION_<func> to get them to generate the right code.)
26603
26604 # Note: $gmp_mpn_functions must have mod_1 before pre_mod_1 so the former
26605 # can optionally provide the latter as an extra entrypoint. Likewise
26606 # divrem_1 and pre_divrem_1.
26607
26608 gmp_mpn_functions_optional="umul udiv \
26609 invert_limb sqr_diagonal sqr_diag_addlsh1 \
26610 mul_2 mul_3 mul_4 mul_5 mul_6 \
26611 addmul_2 addmul_3 addmul_4 addmul_5 addmul_6 addmul_7 addmul_8 \
26612 addlsh1_n sublsh1_n rsblsh1_n rsh1add_n rsh1sub_n \
26613 addlsh2_n sublsh2_n rsblsh2_n \
26614 addlsh_n sublsh_n rsblsh_n \
26615 add_n_sub_n addaddmul_1msb0"
26616
26617 gmp_mpn_functions="$extra_functions \
26618 add add_1 add_n sub sub_1 sub_n addcnd_n subcnd_n neg com \
26619 mul_1 addmul_1 submul_1 \
26620 add_err1_n add_err2_n add_err3_n sub_err1_n sub_err2_n sub_err3_n \
26621 lshift rshift dive_1 diveby3 divis divrem divrem_1 divrem_2 \
26622 fib2_ui mod_1 mod_34lsub1 mode1o pre_divrem_1 pre_mod_1 dump \
26623 mod_1_1 mod_1_2 mod_1_3 mod_1_4 lshiftc \
26624 mul mul_fft mul_n sqr mul_basecase sqr_basecase nussbaumer_mul \
26625 mulmid_basecase toom42_mulmid mulmid_n mulmid \
26626 random random2 pow_1 \
26627 rootrem sqrtrem get_str set_str scan0 scan1 popcount hamdist cmp \
26628 perfsqr perfpow \
26629 gcd_1 gcd gcdext_1 gcdext gcd_subdiv_step \
26630 gcdext_lehmer \
26631 div_q tdiv_qr jacbase jacobi_2 jacobi get_d \
26632 matrix22_mul matrix22_mul1_inverse_vector \
26633 hgcd_matrix hgcd2 hgcd_step hgcd_reduce hgcd hgcd_appr \
26634 hgcd2_jacobi hgcd_jacobi \
26635 mullo_n mullo_basecase \
26636 toom22_mul toom32_mul toom42_mul toom52_mul toom62_mul \
26637 toom33_mul toom43_mul toom53_mul toom54_mul toom63_mul \
26638 toom44_mul \
26639 toom6h_mul toom6_sqr toom8h_mul toom8_sqr \
26640 toom_couple_handling \
26641 toom2_sqr toom3_sqr toom4_sqr \
26642 toom_eval_dgr3_pm1 toom_eval_dgr3_pm2 \
26643 toom_eval_pm1 toom_eval_pm2 toom_eval_pm2exp toom_eval_pm2rexp \
26644 toom_interpolate_5pts toom_interpolate_6pts toom_interpolate_7pts \
26645 toom_interpolate_8pts toom_interpolate_12pts toom_interpolate_16pts \
26646 invertappr invert binvert mulmod_bnm1 sqrmod_bnm1 \
26647 div_qr_2 div_qr_2n_pi1 div_qr_2u_pi1 \
26648 sbpi1_div_q sbpi1_div_qr sbpi1_divappr_q \
26649 dcpi1_div_q dcpi1_div_qr dcpi1_divappr_q \
26650 mu_div_qr mu_divappr_q mu_div_q \
26651 bdiv_q_1 \
26652 sbpi1_bdiv_q sbpi1_bdiv_qr \
26653 dcpi1_bdiv_q dcpi1_bdiv_qr \
26654 mu_bdiv_q mu_bdiv_qr \
26655 bdiv_q bdiv_qr broot brootinv bsqrt bsqrtinv \
26656 divexact bdiv_dbm1c redc_1 redc_2 redc_n powm powlo powm_sec \
26657 sb_div_qr_sec sb_div_r_sec sbpi1_div_qr_sec sbpi1_div_r_sec \
26658 trialdiv remove \
26659 and_n andn_n nand_n ior_n iorn_n nior_n xor_n xnor_n \
26660 copyi copyd zero tabselect \
26661 comb_tables \
26662 $gmp_mpn_functions_optional"
26663
26664
26665
26666 # the list of all object files used by mpn/Makefile.in and the
26667 # top-level Makefile.in, respectively
26668 mpn_objects=
26669 mpn_objs_in_libgmp=
26670
26671 # links from the sources, to be removed by "make distclean"
26672 gmp_srclinks=
26673
26674
26675 # mpn_relative_top_srcdir is $top_srcdir, but for use from within the mpn
26676 # build directory. If $srcdir is relative then we use a relative path too,
26677 # so the two trees can be moved together.
26678 case $srcdir in
26679 [\\/]* | ?:[\\/]*) # absolute, as per autoconf
26680 mpn_relative_top_srcdir=$srcdir ;;
26681 *) # relative
26682 mpn_relative_top_srcdir=../$srcdir ;;
26683 esac
26684
26685
26686
26687
26688
26689
26690 # Fat binary setups.
26691 #
26692 # We proceed through each $fat_path directory, and look for $fat_function
26693 # routines there. Those found are incorporated in the build by generating a
26694 # little mpn/<foo>.asm or mpn/<foo>.c file in the build directory, with
26695 # suitable function renaming, and adding that to $mpn_objects (the same as a
26696 # normal mpn file).
26697 #
26698 # fat.h is generated with macros to let internal calls to each $fat_function
26699 # go directly through __gmpn_cpuvec, plus macros and declarations helping to
26700 # setup that structure, on a per-directory basis ready for
26701 # mpn/<cpu>/fat/fat.c.
26702 #
26703 # fat.h includes thresholds listed in $fat_thresholds, extracted from
26704 # gmp-mparam.h in each directory. An overall maximum for each threshold is
26705 # established, for use in making fixed size arrays of temporary space.
26706 # (Eg. MUL_TOOM33_THRESHOLD_LIMIT used by mpn/generic/mul.c.)
26707 #
26708 # It'd be possible to do some of this manually, but when there's more than a
26709 # few functions and a few directories it becomes very tedious, and very
26710 # prone to having some routine accidentally omitted. On that basis it seems
26711 # best to automate as much as possible, even if the code to do so is a bit
26712 # ugly.
26713 #
26714
26715 if test -n "$fat_path"; then
26716 # Usually the mpn build directory is created with mpn/Makefile
26717 # instantiation, but we want to write to it sooner.
26718 mkdir mpn 2>/dev/null
26719
26720 echo "/* fat.h - setups for fat binaries." >fat.h
26721 echo " Generated by configure - DO NOT EDIT. */" >>fat.h
26722
26723
26724 $as_echo "#define WANT_FAT_BINARY 1" >>confdefs.h
26725
26726
26727 echo 'define(<WANT_FAT_BINARY>, <yes>)' >>$gmp_tmpconfigm4
26728
26729
26730 # Don't want normal copies of fat functions
26731 for tmp_fn in $fat_functions; do
26732 remove_from_list_tmp=
26733 for remove_from_list_i in $gmp_mpn_functions; do
26734 if test $remove_from_list_i = $tmp_fn; then :;
26735 else
26736 remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i"
26737 fi
26738 done
26739 gmp_mpn_functions=$remove_from_list_tmp
26740
26741 remove_from_list_tmp=
26742 for remove_from_list_i in $gmp_mpn_functions_optional; do
26743 if test $remove_from_list_i = $tmp_fn; then :;
26744 else
26745 remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i"
26746 fi
26747 done
26748 gmp_mpn_functions_optional=$remove_from_list_tmp
26749
26750 done
26751
26752 for tmp_fn in $fat_functions; do
26753 case $tmp_fn in
26754 dive_1) tmp_fbase=divexact_1 ;;
26755 diveby3) tmp_fbase=divexact_by3c ;;
26756 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
26757 mode1o) tmp_fbase=modexact_1c_odd ;;
26758 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
26759 mod_1_1) tmp_fbase=mod_1_1p ;;
26760 mod_1_1_cps) tmp_fbase=mod_1_1p_cps ;;
26761 mod_1_2) tmp_fbase=mod_1s_2p ;;
26762 mod_1_2_cps) tmp_fbase=mod_1s_2p_cps ;;
26763 mod_1_3) tmp_fbase=mod_1s_3p ;;
26764 mod_1_3_cps) tmp_fbase=mod_1s_3p_cps ;;
26765 mod_1_4) tmp_fbase=mod_1s_4p ;;
26766 mod_1_4_cps) tmp_fbase=mod_1s_4p_cps ;;
26767 *) tmp_fbase=$tmp_fn ;;
26768 esac
26769
26770 echo "
26771 #ifndef OPERATION_$tmp_fn
26772 #undef mpn_$tmp_fbase
26773 #define mpn_$tmp_fbase (*__gmpn_cpuvec.$tmp_fbase)
26774 #endif
26775 DECL_$tmp_fbase (__MPN(${tmp_fbase}_init));" >>fat.h
26776 # encourage various macros to use fat functions
26777 cat >>confdefs.h <<_ACEOF
26778 #define HAVE_NATIVE_mpn_$tmp_fbase 1
26779 _ACEOF
26780
26781 done
26782
26783 echo "" >>fat.h
26784 echo "/* variable thresholds */" >>fat.h
26785 for tmp_tn in $fat_thresholds; do
26786 echo "#undef $tmp_tn" >>fat.h
26787 echo "#define $tmp_tn CPUVEC_THRESHOLD (`echo $tmp_tn | tr [A-Z] [a-z]`)" >>fat.h
26788 done
26789
26790 echo "
26791 /* Copy all fields into __gmpn_cpuvec.
26792 memcpy is not used because it might operate byte-wise (depending on its
26793 implementation), and we need the function pointer writes to be atomic.
26794 "volatile" discourages the compiler from trying to optimize this. */
26795 #define CPUVEC_INSTALL(vec) \\
26796 do { \\
26797 volatile struct cpuvec_t *p = &__gmpn_cpuvec; \\" >>fat.h
26798 for tmp_fn in $fat_functions; do
26799 case $tmp_fn in
26800 dive_1) tmp_fbase=divexact_1 ;;
26801 diveby3) tmp_fbase=divexact_by3c ;;
26802 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
26803 mode1o) tmp_fbase=modexact_1c_odd ;;
26804 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
26805 mod_1_1) tmp_fbase=mod_1_1p ;;
26806 mod_1_1_cps) tmp_fbase=mod_1_1p_cps ;;
26807 mod_1_2) tmp_fbase=mod_1s_2p ;;
26808 mod_1_2_cps) tmp_fbase=mod_1s_2p_cps ;;
26809 mod_1_3) tmp_fbase=mod_1s_3p ;;
26810 mod_1_3_cps) tmp_fbase=mod_1s_3p_cps ;;
26811 mod_1_4) tmp_fbase=mod_1s_4p ;;
26812 mod_1_4_cps) tmp_fbase=mod_1s_4p_cps ;;
26813 *) tmp_fbase=$tmp_fn ;;
26814 esac
26815
26816 echo " p->$tmp_fbase = vec.$tmp_fbase; \\" >>fat.h
26817 done
26818 for tmp_tn in $fat_thresholds; do
26819 tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]`
26820 echo " p->$tmp_field_name = vec.$tmp_field_name; \\" >>fat.h
26821 done
26822 echo " } while (0)" >>fat.h
26823
26824 echo "
26825 /* A helper to check all fields are filled. */
26826 #define ASSERT_CPUVEC(vec) \\
26827 do { \\" >>fat.h
26828 for tmp_fn in $fat_functions; do
26829 case $tmp_fn in
26830 dive_1) tmp_fbase=divexact_1 ;;
26831 diveby3) tmp_fbase=divexact_by3c ;;
26832 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
26833 mode1o) tmp_fbase=modexact_1c_odd ;;
26834 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
26835 mod_1_1) tmp_fbase=mod_1_1p ;;
26836 mod_1_1_cps) tmp_fbase=mod_1_1p_cps ;;
26837 mod_1_2) tmp_fbase=mod_1s_2p ;;
26838 mod_1_2_cps) tmp_fbase=mod_1s_2p_cps ;;
26839 mod_1_3) tmp_fbase=mod_1s_3p ;;
26840 mod_1_3_cps) tmp_fbase=mod_1s_3p_cps ;;
26841 mod_1_4) tmp_fbase=mod_1s_4p ;;
26842 mod_1_4_cps) tmp_fbase=mod_1s_4p_cps ;;
26843 *) tmp_fbase=$tmp_fn ;;
26844 esac
26845
26846 echo " ASSERT (vec.$tmp_fbase != NULL); \\" >>fat.h
26847 done
26848 for tmp_tn in $fat_thresholds; do
26849 tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]`
26850 echo " ASSERT (vec.$tmp_field_name != 0); \\" >>fat.h
26851 done
26852 echo " } while (0)" >>fat.h
26853
26854 echo "
26855 /* Call ITERATE(field) for each fat threshold field. */
26856 #define ITERATE_FAT_THRESHOLDS() \\
26857 do { \\" >>fat.h
26858 for tmp_tn in $fat_thresholds; do
26859 tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]`
26860 echo " ITERATE ($tmp_tn, $tmp_field_name); \\" >>fat.h
26861 done
26862 echo " } while (0)" >>fat.h
26863
26864 for tmp_dir in $fat_path; do
26865 CPUVEC_SETUP=
26866 THRESH_ASM_SETUP=
26867 echo "" >>fat.h
26868 tmp_suffix=`echo $tmp_dir | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
26869
26870 # In order to keep names unique on a DOS 8.3 filesystem, use a prefix
26871 # (rather than a suffix) for the generated file names, and abbreviate.
26872 case $tmp_suffix in
26873 pentium) tmp_prefix=p ;;
26874 pentium_mmx) tmp_prefix=pm ;;
26875 p6_mmx) tmp_prefix=p2 ;;
26876 p6_p3mmx) tmp_prefix=p3 ;;
26877 pentium4) tmp_prefix=p4 ;;
26878 pentium4_mmx) tmp_prefix=p4m ;;
26879 pentium4_sse2) tmp_prefix=p4s ;;
26880 k6_mmx) tmp_prefix=k6m ;;
26881 k6_k62mmx) tmp_prefix=k62 ;;
26882 k7_mmx) tmp_prefix=k7m ;;
26883 *) tmp_prefix=$tmp_suffix ;;
26884 esac
26885
26886 # Extract desired thresholds from gmp-mparam.h file in this directory,
26887 # if present.
26888 tmp_mparam=$srcdir/mpn/$tmp_dir/gmp-mparam.h
26889 if test -f $tmp_mparam; then
26890 for tmp_tn in $fat_thresholds; do
26891 tmp_thresh=`sed -n "s/^#define $tmp_tn[ ]*\\([0-9][0-9]*\\).*$/\\1/p" $tmp_mparam`
26892 if test -n "$tmp_thresh"; then
26893 THRESH_ASM_SETUP="${THRESH_ASM_SETUP}define($tmp_tn,$tmp_thresh)
26894 "
26895 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.`echo $tmp_tn | tr [A-Z] [a-z]` = $tmp_thresh; \\
26896 "
26897 eval tmp_limit=\$${tmp_tn}_LIMIT
26898 if test -z "$tmp_limit"; then
26899 tmp_limit=0
26900 fi
26901 if test $tmp_thresh -gt $tmp_limit; then
26902 eval ${tmp_tn}_LIMIT=$tmp_thresh
26903 fi
26904 fi
26905 done
26906 fi
26907
26908 for tmp_fn in $fat_functions; do
26909 # functions that can be provided by multi-function files
26910 tmp_mulfunc=
26911 case $tmp_fn in
26912 add_n|sub_n) tmp_mulfunc="aors_n" ;;
26913 add_err1_n|sub_err1_n)
26914 tmp_mulfunc="aors_err1_n" ;;
26915 add_err2_n|sub_err2_n)
26916 tmp_mulfunc="aors_err2_n" ;;
26917 add_err3_n|sub_err3_n)
26918 tmp_mulfunc="aors_err3_n" ;;
26919 addcnd_n|subcnd_n) tmp_mulfunc="aorscnd_n" ;;
26920 addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
26921 popcount|hamdist) tmp_mulfunc="popham" ;;
26922 and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
26923 tmp_mulfunc="logops_n" ;;
26924 lshift|rshift) tmp_mulfunc="lorrshift";;
26925 addlsh1_n)
26926 tmp_mulfunc="aorslsh1_n aorrlsh1_n";;
26927 sublsh1_n)
26928 tmp_mulfunc="aorslsh1_n sorrlsh1_n";;
26929 rsblsh1_n)
26930 tmp_mulfunc="aorrlsh1_n sorrlsh1_n";;
26931 addlsh2_n)
26932 tmp_mulfunc="aorslsh2_n aorrlsh2_n";;
26933 sublsh2_n)
26934 tmp_mulfunc="aorslsh2_n sorrlsh2_n";;
26935 rsblsh2_n)
26936 tmp_mulfunc="aorrlsh2_n sorrlsh2_n";;
26937 addlsh_n)
26938 tmp_mulfunc="aorslsh_n aorrlsh_n";;
26939 sublsh_n)
26940 tmp_mulfunc="aorslsh_n sorrlsh_n";;
26941 rsblsh_n)
26942 tmp_mulfunc="aorrlsh_n sorrlsh_n";;
26943 rsh1add_n|rsh1sub_n)
26944 tmp_mulfunc="rsh1aors_n";;
26945 sb_div_qr_sec|sb_div_r_sec)
26946 tmp_mulfunc="sb_div_sec";;
26947 sbpi1_div_qr_sec|sbpi1_div_r_sec)
26948 tmp_mulfunc="sbpi1_div_sec";;
26949 esac
26950
26951
26952 for tmp_base in $tmp_fn $tmp_mulfunc; do
26953 for tmp_ext in asm S s c; do
26954 tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
26955 if test -f $tmp_file; then
26956
26957 # If the host uses a non-standard ABI, check if tmp_file supports it
26958 #
26959 if test -n "$GMP_NONSTD_ABI" && test $tmp_ext != "c"; then
26960 abi=`sed -n 's/^[ ]*ABI_SUPPORT(\(.*\))/\1/p' $tmp_file `
26961 if echo "$abi" | grep -q "\\b${GMP_NONSTD_ABI}\\b"; then
26962 true
26963 else
26964 continue
26965 fi
26966 fi
26967
26968 mpn_objects="$mpn_objects ${tmp_prefix}_$tmp_fn.lo"
26969 mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/${tmp_prefix}_$tmp_fn.lo"
26970
26971 case $tmp_fn in
26972 dive_1) tmp_fbase=divexact_1 ;;
26973 diveby3) tmp_fbase=divexact_by3c ;;
26974 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
26975 mode1o) tmp_fbase=modexact_1c_odd ;;
26976 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
26977 mod_1_1) tmp_fbase=mod_1_1p ;;
26978 mod_1_1_cps) tmp_fbase=mod_1_1p_cps ;;
26979 mod_1_2) tmp_fbase=mod_1s_2p ;;
26980 mod_1_2_cps) tmp_fbase=mod_1s_2p_cps ;;
26981 mod_1_3) tmp_fbase=mod_1s_3p ;;
26982 mod_1_3_cps) tmp_fbase=mod_1s_3p_cps ;;
26983 mod_1_4) tmp_fbase=mod_1s_4p ;;
26984 mod_1_4_cps) tmp_fbase=mod_1s_4p_cps ;;
26985 *) tmp_fbase=$tmp_fn ;;
26986 esac
26987
26988
26989 # carry-in variant, eg. divrem_1c or modexact_1c_odd
26990 case $tmp_fbase in
26991 *_1*) tmp_fbasec=`echo $tmp_fbase | sed 's/_1/_1c/'` ;;
26992 *) tmp_fbasec=${tmp_fbase}c ;;
26993 esac
26994
26995 # Create a little file doing an include from srcdir. The
26996 # OPERATION and renamings aren't all needed all the time, but
26997 # they don't hurt if unused.
26998 #
26999 # FIXME: Should generate these via config.status commands.
27000 # Would need them all in one AC_CONFIG_COMMANDS though, since
27001 # that macro doesn't accept a set of separate commands generated
27002 # by shell code.
27003 #
27004 case $tmp_ext in
27005 asm)
27006 # hide the d-n-l from autoconf's error checking
27007 tmp_d_n_l=d""nl
27008 echo "$tmp_d_n_l mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
27009 $tmp_d_n_l Generated by configure - DO NOT EDIT.
27010
27011 define(OPERATION_$tmp_fn)
27012 define(__gmpn_$tmp_fbase, __gmpn_${tmp_fbase}_$tmp_suffix)
27013 define(__gmpn_$tmp_fbasec,__gmpn_${tmp_fbasec}_${tmp_suffix})
27014 define(__gmpn_preinv_${tmp_fbase},__gmpn_preinv_${tmp_fbase}_${tmp_suffix})
27015 define(__gmpn_${tmp_fbase}_cps,__gmpn_${tmp_fbase}_cps_${tmp_suffix})
27016
27017 $tmp_d_n_l For k6 and k7 gcd_1 calling their corresponding mpn_modexact_1_odd
27018 ifdef(\`__gmpn_modexact_1_odd',,
27019 \`define(__gmpn_modexact_1_odd,__gmpn_modexact_1_odd_${tmp_suffix})')
27020
27021 $THRESH_ASM_SETUP
27022 include($mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.asm)
27023 " >mpn/${tmp_prefix}_$tmp_fn.asm
27024 ;;
27025 c)
27026 echo "/* mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
27027 Generated by configure - DO NOT EDIT. */
27028
27029 #define OPERATION_$tmp_fn 1
27030 #define __gmpn_$tmp_fbase __gmpn_${tmp_fbase}_$tmp_suffix
27031 #define __gmpn_$tmp_fbasec __gmpn_${tmp_fbasec}_${tmp_suffix}
27032 #define __gmpn_preinv_${tmp_fbase} __gmpn_preinv_${tmp_fbase}_${tmp_suffix}
27033 #define __gmpn_${tmp_fbase}_cps __gmpn_${tmp_fbase}_cps_${tmp_suffix}
27034
27035 #include \"$mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.c\"
27036 " >mpn/${tmp_prefix}_$tmp_fn.c
27037 ;;
27038 esac
27039
27040 # Prototype, and append to CPUVEC_SETUP for this directory.
27041 echo "DECL_$tmp_fbase (__gmpn_${tmp_fbase}_$tmp_suffix);" >>fat.h
27042 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.$tmp_fbase = __gmpn_${tmp_fbase}_${tmp_suffix}; \\
27043 "
27044 # Ditto for any preinv variant (preinv_divrem_1, preinv_mod_1).
27045 if grep "^PROLOGUE(mpn_preinv_$tmp_fn)" $tmp_file >/dev/null; then
27046 echo "DECL_preinv_$tmp_fbase (__gmpn_preinv_${tmp_fbase}_$tmp_suffix);" >>fat.h
27047 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.preinv_$tmp_fbase = __gmpn_preinv_${tmp_fbase}_${tmp_suffix}; \\
27048 "
27049 fi
27050
27051 # Ditto for any mod_1...cps variant
27052 if grep "^PROLOGUE(mpn_${tmp_fbase}_cps)" $tmp_file >/dev/null; then
27053 echo "DECL_${tmp_fbase}_cps (__gmpn_${tmp_fbase}_cps_$tmp_suffix);" >>fat.h
27054 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.${tmp_fbase}_cps = __gmpn_${tmp_fbase}_cps_${tmp_suffix}; \\
27055 "
27056 fi
27057 fi
27058 done
27059 done
27060 done
27061
27062 # Emit CPUVEC_SETUP for this directory
27063 echo "" >>fat.h
27064 echo "#define CPUVEC_SETUP_$tmp_suffix \\" >>fat.h
27065 echo " do { \\" >>fat.h
27066 echo "$CPUVEC_SETUP } while (0)" >>fat.h
27067 done
27068
27069 # Emit threshold limits
27070 echo "" >>fat.h
27071 for tmp_tn in $fat_thresholds; do
27072 eval tmp_limit=\$${tmp_tn}_LIMIT
27073 echo "#define ${tmp_tn}_LIMIT $tmp_limit" >>fat.h
27074 done
27075 fi
27076
27077
27078 # Normal binary setups.
27079 #
27080
27081 for tmp_ext in asm S s c; do
27082 eval found_$tmp_ext=no
27083 done
27084
27085 for tmp_fn in $gmp_mpn_functions; do
27086 for tmp_ext in asm S s c; do
27087 test "$no_create" = yes || rm -f mpn/$tmp_fn.$tmp_ext
27088 done
27089
27090 # mpn_preinv_divrem_1 might have been provided by divrem_1.asm, likewise
27091 # mpn_preinv_mod_1 by mod_1.asm.
27092 case $tmp_fn in
27093 pre_divrem_1)
27094 if test "$HAVE_NATIVE_mpn_preinv_divrem_1" = yes; then continue; fi ;;
27095 pre_mod_1)
27096 if test "$HAVE_NATIVE_mpn_preinv_mod_1" = yes; then continue; fi ;;
27097 esac
27098
27099 # functions that can be provided by multi-function files
27100 tmp_mulfunc=
27101 case $tmp_fn in
27102 add_n|sub_n) tmp_mulfunc="aors_n" ;;
27103 add_err1_n|sub_err1_n)
27104 tmp_mulfunc="aors_err1_n" ;;
27105 add_err2_n|sub_err2_n)
27106 tmp_mulfunc="aors_err2_n" ;;
27107 add_err3_n|sub_err3_n)
27108 tmp_mulfunc="aors_err3_n" ;;
27109 addcnd_n|subcnd_n) tmp_mulfunc="aorscnd_n" ;;
27110 addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
27111 popcount|hamdist) tmp_mulfunc="popham" ;;
27112 and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
27113 tmp_mulfunc="logops_n" ;;
27114 lshift|rshift) tmp_mulfunc="lorrshift";;
27115 addlsh1_n)
27116 tmp_mulfunc="aorslsh1_n aorrlsh1_n";;
27117 sublsh1_n)
27118 tmp_mulfunc="aorslsh1_n sorrlsh1_n";;
27119 rsblsh1_n)
27120 tmp_mulfunc="aorrlsh1_n sorrlsh1_n";;
27121 addlsh2_n)
27122 tmp_mulfunc="aorslsh2_n aorrlsh2_n";;
27123 sublsh2_n)
27124 tmp_mulfunc="aorslsh2_n sorrlsh2_n";;
27125 rsblsh2_n)
27126 tmp_mulfunc="aorrlsh2_n sorrlsh2_n";;
27127 addlsh_n)
27128 tmp_mulfunc="aorslsh_n aorrlsh_n";;
27129 sublsh_n)
27130 tmp_mulfunc="aorslsh_n sorrlsh_n";;
27131 rsblsh_n)
27132 tmp_mulfunc="aorrlsh_n sorrlsh_n";;
27133 rsh1add_n|rsh1sub_n)
27134 tmp_mulfunc="rsh1aors_n";;
27135 sb_div_qr_sec|sb_div_r_sec)
27136 tmp_mulfunc="sb_div_sec";;
27137 sbpi1_div_qr_sec|sbpi1_div_r_sec)
27138 tmp_mulfunc="sbpi1_div_sec";;
27139 esac
27140
27141
27142 found=no
27143 for tmp_dir in $path; do
27144 for tmp_base in $tmp_fn $tmp_mulfunc; do
27145 for tmp_ext in asm S s c; do
27146 tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
27147 if test -f $tmp_file; then
27148
27149 # For a nails build, check if the file supports our nail bits.
27150 # Generic code always supports all nails.
27151 #
27152 # FIXME: When a multi-function file is selected to provide one of
27153 # the nails-neutral routines, like logops_n for and_n, the
27154 # PROLOGUE grepping will create HAVE_NATIVE_mpn_<foo> defines for
27155 # all functions in that file, even if they haven't all been
27156 # nailified. Not sure what to do about this, it's only really a
27157 # problem for logops_n, and it's not too terrible to insist those
27158 # get nailified always.
27159 #
27160 if test $GMP_NAIL_BITS != 0 && test $tmp_dir != generic; then
27161 case $tmp_fn in
27162 and_n | ior_n | xor_n | andn_n | \
27163 copyi | copyd | \
27164 popcount | hamdist | \
27165 udiv | udiv_w_sdiv | umul | \
27166 cntlz | invert_limb)
27167 # these operations are either unaffected by nails or defined
27168 # to operate on full limbs
27169 ;;
27170 *)
27171 nails=`sed -n 's/^[ ]*NAILS_SUPPORT(\(.*\))/\1/p' $tmp_file `
27172 for n in $nails; do
27173 case $n in
27174 *-*)
27175 n_start=`echo "$n" | sed -n 's/\(.*\)-.*/\1/p'`
27176 n_end=`echo "$n" | sed -n 's/.*-\(.*\)/\1/p'`
27177 ;;
27178 *)
27179 n_start=$n
27180 n_end=$n
27181 ;;
27182 esac
27183 if test $GMP_NAIL_BITS -ge $n_start && test $GMP_NAIL_BITS -le $n_end; then
27184 found=yes
27185 break
27186 fi
27187 done
27188 if test $found != yes; then
27189 continue
27190 fi
27191 ;;
27192 esac
27193 fi
27194
27195 # If the host uses a non-standard ABI, check if tmp_file supports it
27196 #
27197 if test -n "$GMP_NONSTD_ABI" && test $tmp_ext != "c"; then
27198 abi=`sed -n 's/^[ ]*ABI_SUPPORT(\(.*\))/\1/p' $tmp_file `
27199 if echo "$abi" | grep -q "\\b${GMP_NONSTD_ABI}\\b"; then
27200 true
27201 else
27202 continue
27203 fi
27204 fi
27205
27206 found=yes
27207 eval found_$tmp_ext=yes
27208
27209 if test $tmp_ext = c; then
27210 tmp_u='$U'
27211 else
27212 tmp_u=
27213 fi
27214
27215 mpn_objects="$mpn_objects $tmp_fn$tmp_u.lo"
27216 mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/$tmp_fn$tmp_u.lo"
27217 ac_config_links="$ac_config_links mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext"
27218
27219 gmp_srclinks="$gmp_srclinks mpn/$tmp_fn.$tmp_ext"
27220
27221 # Duplicate AC_DEFINEs are harmless, so it doesn't matter
27222 # that multi-function files get grepped here repeatedly.
27223 # The PROLOGUE pattern excludes the optional second parameter.
27224 gmp_ep=`
27225 sed -n 's/^[ ]*MULFUNC_PROLOGUE(\(.*\))/\1/p' $tmp_file ;
27226 sed -n 's/^[ ]*PROLOGUE(\([^,]*\).*)/\1/p' $tmp_file
27227 `
27228 for gmp_tmp in $gmp_ep; do
27229 cat >>confdefs.h <<_ACEOF
27230 #define HAVE_NATIVE_$gmp_tmp 1
27231 _ACEOF
27232
27233 eval HAVE_NATIVE_$gmp_tmp=yes
27234 done
27235
27236 case $tmp_fn in
27237 sqr_basecase) sqr_basecase_source=$tmp_file ;;
27238 esac
27239
27240 break
27241 fi
27242 done
27243 if test $found = yes; then break ; fi
27244 done
27245 if test $found = yes; then break ; fi
27246 done
27247
27248 if test $found = no; then
27249 for tmp_optional in $gmp_mpn_functions_optional; do
27250 if test $tmp_optional = $tmp_fn; then
27251 found=yes
27252 fi
27253 done
27254 if test $found = no; then
27255 as_fn_error $? "no version of $tmp_fn found in path: $path" "$LINENO" 5
27256 fi
27257 fi
27258 done
27259
27260 # All cycle counters are .asm files currently
27261 if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
27262 found_asm=yes
27263 fi
27264
27265
27266
27267
27268
27269 # Don't demand an m4 unless it's actually needed.
27270 if test $found_asm = yes; then
27271
27272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable m4" >&5
27273 $as_echo_n "checking for suitable m4... " >&6; }
27274 if ${gmp_cv_prog_m4+:} false; then :
27275 $as_echo_n "(cached) " >&6
27276 else
27277 if test -n "$M4"; then
27278 gmp_cv_prog_m4="$M4"
27279 else
27280 cat >conftest.m4 <<\EOF
27281 define(dollarhash,``$#'')ifelse(dollarhash(x),1,`define(t1,Y)',
27282 ``bad: $# not supported (SunOS /usr/bin/m4)
27283 '')ifelse(eval(89),89,`define(t2,Y)',
27284 `bad: eval() doesnt support 8 or 9 in a constant (OpenBSD 2.6 m4)
27285 ')ifelse(t1`'t2,YY,`good
27286 ')
27287 EOF
27288 echo "trying m4" >&5
27289 gmp_tmp_val=`(m4 conftest.m4) 2>&5`
27290 echo "$gmp_tmp_val" >&5
27291 if test "$gmp_tmp_val" = good; then
27292 gmp_cv_prog_m4="m4"
27293 else
27294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
27295 ac_dummy="$PATH:/usr/5bin"
27296 for ac_dir in $ac_dummy; do
27297 test -z "$ac_dir" && ac_dir=.
27298 echo "trying $ac_dir/m4" >&5
27299 gmp_tmp_val=`($ac_dir/m4 conftest.m4) 2>&5`
27300 echo "$gmp_tmp_val" >&5
27301 if test "$gmp_tmp_val" = good; then
27302 gmp_cv_prog_m4="$ac_dir/m4"
27303 break
27304 fi
27305 done
27306 IFS="$ac_save_ifs"
27307 if test -z "$gmp_cv_prog_m4"; then
27308 as_fn_error $? "No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." "$LINENO" 5
27309 fi
27310 fi
27311 rm -f conftest.m4
27312 fi
27313 fi
27314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_m4" >&5
27315 $as_echo "$gmp_cv_prog_m4" >&6; }
27316 M4="$gmp_cv_prog_m4"
27317
27318
27319
27320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if m4wrap produces spurious output" >&5
27321 $as_echo_n "checking if m4wrap produces spurious output... " >&6; }
27322 if ${gmp_cv_m4_m4wrap_spurious+:} false; then :
27323 $as_echo_n "(cached) " >&6
27324 else
27325 # hide the d-n-l from autoconf's error checking
27326 tmp_d_n_l=d""nl
27327 cat >conftest.m4 <<EOF
27328 changequote({,})define(x,)m4wrap({x})$tmp_d_n_l
27329 EOF
27330 echo test input is >&5
27331 cat conftest.m4 >&5
27332 tmp_chars=`$M4 conftest.m4 | wc -c`
27333 echo produces $tmp_chars chars output >&5
27334 rm -f conftest.m4
27335 if test $tmp_chars = 0; then
27336 gmp_cv_m4_m4wrap_spurious=no
27337 else
27338 gmp_cv_m4_m4wrap_spurious=yes
27339 fi
27340
27341 fi
27342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_m4_m4wrap_spurious" >&5
27343 $as_echo "$gmp_cv_m4_m4wrap_spurious" >&6; }
27344
27345 echo "define(<M4WRAP_SPURIOUS>,<$gmp_cv_m4_m4wrap_spurious>)" >> $gmp_tmpconfigm4
27346
27347
27348 # else
27349 # It's unclear why this m4-not-needed stuff was ever done.
27350 # if test -z "$M4" ; then
27351 # M4=m4-not-needed
27352 # fi
27353 fi
27354
27355 # Only do the GMP_ASM checks if there's a .S or .asm wanting them.
27356 if test $found_asm = no && test $found_S = no; then
27357 gmp_asm_syntax_testing=no
27358 fi
27359
27360 if test "$gmp_asm_syntax_testing" != no; then
27361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to text section" >&5
27362 $as_echo_n "checking how to switch to text section... " >&6; }
27363 if ${gmp_cv_asm_text+:} false; then :
27364 $as_echo_n "(cached) " >&6
27365 else
27366 for i in ".text" ".code" ".csect .text[PR]"; do
27367 echo "trying $i" >&5
27368 cat >conftest.s <<EOF
27369 $i
27370 EOF
27371 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27373 (eval $gmp_assemble) 2>&5
27374 ac_status=$?
27375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27376 test $ac_status = 0; }; then
27377 cat conftest.out >&5
27378 gmp_cv_asm_text=$i
27379 rm -f conftest*
27380 break
27381 else
27382 cat conftest.out >&5
27383 echo "configure: failed program was:" >&5
27384 cat conftest.s >&5
27385 :
27386 fi
27387 rm -f conftest*
27388
27389 done
27390 if test -z "$gmp_cv_asm_text"; then
27391 as_fn_error $? "Cannot determine text section directive" "$LINENO" 5
27392 fi
27393
27394 fi
27395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_text" >&5
27396 $as_echo "$gmp_cv_asm_text" >&6; }
27397 echo "define(<TEXT>, <$gmp_cv_asm_text>)" >> $gmp_tmpconfigm4
27398
27399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to data section" >&5
27400 $as_echo_n "checking how to switch to data section... " >&6; }
27401 if ${gmp_cv_asm_data+:} false; then :
27402 $as_echo_n "(cached) " >&6
27403 else
27404 case $host in
27405 *-*-aix*) gmp_cv_asm_data=".csect .data[RW]" ;;
27406 *) gmp_cv_asm_data=".data" ;;
27407 esac
27408
27409 fi
27410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_data" >&5
27411 $as_echo "$gmp_cv_asm_data" >&6; }
27412 echo "define(<DATA>, <$gmp_cv_asm_data>)" >> $gmp_tmpconfigm4
27413
27414
27415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler label suffix" >&5
27416 $as_echo_n "checking for assembler label suffix... " >&6; }
27417 if ${gmp_cv_asm_label_suffix+:} false; then :
27418 $as_echo_n "(cached) " >&6
27419 else
27420 gmp_cv_asm_label_suffix=unknown
27421 for i in "" ":"; do
27422 echo "trying $i" >&5
27423 cat >conftest.s <<EOF
27424 $gmp_cv_asm_text
27425 somelabel$i
27426 EOF
27427 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27429 (eval $gmp_assemble) 2>&5
27430 ac_status=$?
27431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27432 test $ac_status = 0; }; then
27433 cat conftest.out >&5
27434 gmp_cv_asm_label_suffix=$i
27435 rm -f conftest*
27436 break
27437 else
27438 cat conftest.out >&5
27439 echo "configure: failed program was:" >&5
27440 cat conftest.s >&5
27441 cat conftest.out >&5
27442 fi
27443 rm -f conftest*
27444
27445 done
27446 if test "$gmp_cv_asm_label_suffix" = "unknown"; then
27447 as_fn_error $? "Cannot determine label suffix" "$LINENO" 5
27448 fi
27449
27450 fi
27451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_label_suffix" >&5
27452 $as_echo "$gmp_cv_asm_label_suffix" >&6; }
27453 echo "define(<LABEL_SUFFIX>, <$gmp_cv_asm_label_suffix>)" >> $gmp_tmpconfigm4
27454
27455
27456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global directive" >&5
27457 $as_echo_n "checking for assembler global directive... " >&6; }
27458 if ${gmp_cv_asm_globl+:} false; then :
27459 $as_echo_n "(cached) " >&6
27460 else
27461 case $host in
27462 hppa*-*-*) gmp_cv_asm_globl=.export ;;
27463 ia64*-*-* | itanium-*-* | itanium2-*-*) gmp_cv_asm_globl=.global ;;
27464 *) gmp_cv_asm_globl=.globl ;;
27465 esac
27466
27467 fi
27468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_globl" >&5
27469 $as_echo "$gmp_cv_asm_globl" >&6; }
27470 echo "define(<GLOBL>, <$gmp_cv_asm_globl>)" >> $gmp_tmpconfigm4
27471
27472
27473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global directive attribute" >&5
27474 $as_echo_n "checking for assembler global directive attribute... " >&6; }
27475 if ${gmp_cv_asm_globl_attr+:} false; then :
27476 $as_echo_n "(cached) " >&6
27477 else
27478 case $gmp_cv_asm_globl in
27479 .export) gmp_cv_asm_globl_attr=",entry" ;;
27480 *) gmp_cv_asm_globl_attr="" ;;
27481 esac
27482
27483 fi
27484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_globl_attr" >&5
27485 $as_echo "$gmp_cv_asm_globl_attr" >&6; }
27486 echo "define(<GLOBL_ATTR>, <$gmp_cv_asm_globl_attr>)" >> $gmp_tmpconfigm4
27487
27488
27489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if globals are prefixed by underscore" >&5
27490 $as_echo_n "checking if globals are prefixed by underscore... " >&6; }
27491 if ${gmp_cv_asm_underscore+:} false; then :
27492 $as_echo_n "(cached) " >&6
27493 else
27494 gmp_cv_asm_underscore="unknown"
27495 cat >conftest.c <<EOF
27496 int gurkmacka;
27497 EOF
27498 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5"
27499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
27500 (eval $gmp_compile) 2>&5
27501 ac_status=$?
27502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27503 test $ac_status = 0; }; then
27504 $NM conftest.$OBJEXT >conftest.out
27505 if grep _gurkmacka conftest.out >/dev/null; then
27506 gmp_cv_asm_underscore=yes
27507 elif grep gurkmacka conftest.out >/dev/null; then
27508 gmp_cv_asm_underscore=no
27509 else
27510 echo "configure: $NM doesn't have gurkmacka:" >&5
27511 cat conftest.out >&5
27512 fi
27513 else
27514 echo "configure: failed program was:" >&5
27515 cat conftest.c >&5
27516 fi
27517 rm -f conftest*
27518
27519 fi
27520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_underscore" >&5
27521 $as_echo "$gmp_cv_asm_underscore" >&6; }
27522 case $gmp_cv_asm_underscore in
27523 yes)
27524
27525 echo 'define(<GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
27526 ;;
27527 no)
27528
27529 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
27530 ;;
27531 *)
27532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
27533 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
27534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Cannot determine global symbol prefix." >&5
27535 $as_echo "$as_me: WARNING: | Cannot determine global symbol prefix." >&2;}
27536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $NM output doesn't contain a global data symbol." >&5
27537 $as_echo "$as_me: WARNING: | $NM output doesn't contain a global data symbol." >&2;}
27538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Will proceed with no underscore." >&5
27539 $as_echo "$as_me: WARNING: | Will proceed with no underscore." >&2;}
27540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | If this is wrong then you'll get link errors referring" >&5
27541 $as_echo "$as_me: WARNING: | If this is wrong then you'll get link errors referring" >&2;}
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | to ___gmpn_add_n (note three underscores)." >&5
27543 $as_echo "$as_me: WARNING: | to ___gmpn_add_n (note three underscores)." >&2;}
27544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | In this case do a fresh build with an override," >&5
27545 $as_echo "$as_me: WARNING: | In this case do a fresh build with an override," >&2;}
27546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&5
27547 $as_echo "$as_me: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&2;}
27548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
27549 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
27550
27551 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
27552
27553 ;;
27554 esac
27555
27556
27557
27558
27559
27560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to read-only data section" >&5
27561 $as_echo_n "checking how to switch to read-only data section... " >&6; }
27562 if ${gmp_cv_asm_rodata+:} false; then :
27563 $as_echo_n "(cached) " >&6
27564 else
27565
27566 case $host in
27567 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | x86_64-*-*)
27568 gmp_cv_asm_rodata="$gmp_cv_asm_data" ;;
27569 *)
27570 gmp_cv_asm_rodata="$gmp_cv_asm_text" ;;
27571 esac
27572
27573 cat >conftest.c <<EOF
27574 extern const int foo[]; /* Suppresses C++'s suppression of foo */
27575 const int foo[] = {1,2,3};
27576 EOF
27577 echo "Test program:" >&5
27578 cat conftest.c >&5
27579 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
27580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
27581 (eval $gmp_compile) 2>&5
27582 ac_status=$?
27583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27584 test $ac_status = 0; }; then
27585 echo "Compiler output:" >&5
27586 cat conftest.s >&5
27587 if test $gmp_cv_asm_underscore = yes; then
27588 tmp_gsym_prefix=_
27589 else
27590 tmp_gsym_prefix=
27591 fi
27592 # must see our label
27593 if grep "^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" conftest.s >/dev/null 2>&5; then
27594 # take the last directive before our label (hence skipping segments
27595 # getting debugging info etc)
27596 tmp_match=`sed -n "/^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix/q
27597 /^[. ]*data/p
27598 /^[. ]*rdata/p
27599 /^[. ]*text/p
27600 /^[. ]*section/p
27601 /^[. ]*csect/p
27602 /^[. ]*CSECT/p" conftest.s | sed -n '$p'`
27603 echo "Match: $tmp_match" >&5
27604 if test -n "$tmp_match"; then
27605 gmp_cv_asm_rodata=$tmp_match
27606 fi
27607 else
27608 echo "Couldn't find label: ^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" >&5
27609 fi
27610 fi
27611 rm -f conftest*
27612
27613 fi
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_rodata" >&5
27615 $as_echo "$gmp_cv_asm_rodata" >&6; }
27616 echo "define(<RODATA>, <$gmp_cv_asm_rodata>)" >> $gmp_tmpconfigm4
27617
27618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .type directive" >&5
27619 $as_echo_n "checking for assembler .type directive... " >&6; }
27620 if ${gmp_cv_asm_type+:} false; then :
27621 $as_echo_n "(cached) " >&6
27622 else
27623 gmp_cv_asm_type=
27624 for gmp_tmp_prefix in @ \# %; do
27625 cat >conftest.s <<EOF
27626 .type sym,${gmp_tmp_prefix}function
27627 EOF
27628 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27630 (eval $gmp_assemble) 2>&5
27631 ac_status=$?
27632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27633 test $ac_status = 0; }; then
27634 cat conftest.out >&5
27635 if grep "\.type pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
27636 else
27637 gmp_cv_asm_type=".type \$1,${gmp_tmp_prefix}\$2"
27638 break
27639 fi
27640 else
27641 cat conftest.out >&5
27642 echo "configure: failed program was:" >&5
27643 cat conftest.s >&5
27644 :
27645 fi
27646 rm -f conftest*
27647
27648 done
27649 rm -f conftest*
27650
27651 fi
27652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_type" >&5
27653 $as_echo "$gmp_cv_asm_type" >&6; }
27654 echo "define(<TYPE>, <$gmp_cv_asm_type>)" >> $gmp_tmpconfigm4
27655
27656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .size directive" >&5
27657 $as_echo_n "checking for assembler .size directive... " >&6; }
27658 if ${gmp_cv_asm_size+:} false; then :
27659 $as_echo_n "(cached) " >&6
27660 else
27661 gmp_cv_asm_size=
27662 cat >conftest.s <<EOF
27663 .size sym,1
27664 EOF
27665 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27667 (eval $gmp_assemble) 2>&5
27668 ac_status=$?
27669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27670 test $ac_status = 0; }; then
27671 cat conftest.out >&5
27672 if grep "\.size pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
27673 else
27674 gmp_cv_asm_size=".size \$1,\$2"
27675 fi
27676 else
27677 cat conftest.out >&5
27678 echo "configure: failed program was:" >&5
27679 cat conftest.s >&5
27680 :
27681 fi
27682 rm -f conftest*
27683
27684
27685 fi
27686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_size" >&5
27687 $as_echo "$gmp_cv_asm_size" >&6; }
27688 echo "define(<SIZE>, <$gmp_cv_asm_size>)" >> $gmp_tmpconfigm4
27689
27690
27691
27692
27693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler local label prefix" >&5
27694 $as_echo_n "checking for assembler local label prefix... " >&6; }
27695 if ${gmp_cv_asm_lsym_prefix+:} false; then :
27696 $as_echo_n "(cached) " >&6
27697 else
27698 gmp_tmp_pre_appears=yes
27699 for gmp_tmp_pre in L .L $L $ L$; do
27700 echo "Trying $gmp_tmp_pre" >&5
27701 cat >conftest.s <<EOF
27702 $gmp_cv_asm_text
27703 dummy${gmp_cv_asm_label_suffix}
27704 ${gmp_tmp_pre}gurkmacka${gmp_cv_asm_label_suffix}
27705 EOF
27706 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27708 (eval $gmp_assemble) 2>&5
27709 ac_status=$?
27710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27711 test $ac_status = 0; }; then
27712 cat conftest.out >&5
27713 if $NM conftest.$OBJEXT >conftest.nm 2>&5; then : ; else
27714 cat conftest.nm >&5
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$NM\" failure" >&5
27716 $as_echo "$as_me: WARNING: \"$NM\" failure" >&2;}
27717 break
27718 fi
27719 cat conftest.nm >&5
27720 if grep gurkmacka conftest.nm >/dev/null; then : ; else
27721 # no mention of the symbol, this is good
27722 echo "$gmp_tmp_pre label doesn't appear in object file at all (good)" >&5
27723 gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
27724 gmp_tmp_pre_appears=no
27725 break
27726 fi
27727 if grep ' [a-zN] .*gurkmacka' conftest.nm >/dev/null; then
27728 # symbol mentioned as a local, use this if nothing better
27729 echo "$gmp_tmp_pre label is local but still in object file" >&5
27730 if test -z "$gmp_cv_asm_lsym_prefix"; then
27731 gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
27732 fi
27733 else
27734 echo "$gmp_tmp_pre label is something unknown" >&5
27735 fi
27736
27737 else
27738 cat conftest.out >&5
27739 echo "configure: failed program was:" >&5
27740 cat conftest.s >&5
27741 :
27742 fi
27743 rm -f conftest*
27744
27745 done
27746 rm -f conftest*
27747 if test -z "$gmp_cv_asm_lsym_prefix"; then
27748 gmp_cv_asm_lsym_prefix=L
27749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&5
27750 $as_echo "$as_me: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&2;}
27751 fi
27752 # for development purposes, note whether we got a purely temporary local label
27753 echo "Local label appears in object files: $gmp_tmp_pre_appears" >&5
27754
27755 fi
27756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_lsym_prefix" >&5
27757 $as_echo "$gmp_cv_asm_lsym_prefix" >&6; }
27758 echo "define(<LSYM_PREFIX>, <${gmp_cv_asm_lsym_prefix}>)" >> $gmp_tmpconfigm4
27759
27760 cat >>confdefs.h <<_ACEOF
27761 #define LSYM_PREFIX "$gmp_cv_asm_lsym_prefix"
27762 _ACEOF
27763
27764
27765
27766
27767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler byte directive" >&5
27768 $as_echo_n "checking for assembler byte directive... " >&6; }
27769 if ${gmp_cv_asm_byte+:} false; then :
27770 $as_echo_n "(cached) " >&6
27771 else
27772 for i in .byte data1; do
27773 echo "trying $i" >&5
27774 cat >conftest.s <<EOF
27775 $gmp_cv_asm_data
27776 $i 0
27777
27778 EOF
27779 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27781 (eval $gmp_assemble) 2>&5
27782 ac_status=$?
27783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27784 test $ac_status = 0; }; then
27785 cat conftest.out >&5
27786 gmp_cv_asm_byte=$i
27787 rm -f conftest*
27788 break
27789 else
27790 cat conftest.out >&5
27791 echo "configure: failed program was:" >&5
27792 cat conftest.s >&5
27793 cat conftest.out >&5
27794 fi
27795 rm -f conftest*
27796
27797 done
27798 if test -z "$gmp_cv_asm_byte"; then
27799 as_fn_error $? "Cannot determine how to emit a data byte" "$LINENO" 5
27800 fi
27801
27802 fi
27803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_byte" >&5
27804 $as_echo "$gmp_cv_asm_byte" >&6; }
27805
27806
27807
27808
27809
27810
27811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a 32-bit word" >&5
27812 $as_echo_n "checking how to define a 32-bit word... " >&6; }
27813 if ${gmp_cv_asm_w32+:} false; then :
27814 $as_echo_n "(cached) " >&6
27815 else
27816 case $host in
27817 *-*-hpux*)
27818 # FIXME: HPUX puts first symbol at 0x40000000, breaking our assumption
27819 # that it's at 0x0. We'll have to declare another symbol before the
27820 # .long/.word and look at the distance between the two symbols. The
27821 # only problem is that the sed expression(s) barfs (on Solaris, for
27822 # example) for the symbol with value 0. For now, HPUX uses .word.
27823 gmp_cv_asm_w32=".word"
27824 ;;
27825 *-*-*)
27826 gmp_tmp_val=
27827 for gmp_tmp_op in .long .word data4; do
27828 cat >conftest.s <<EOF
27829 $gmp_cv_asm_data
27830 $gmp_cv_asm_globl foo
27831 $gmp_tmp_op 0
27832 foo$gmp_cv_asm_label_suffix
27833 $gmp_cv_asm_byte 0
27834 EOF
27835 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27837 (eval $gmp_assemble) 2>&5
27838 ac_status=$?
27839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27840 test $ac_status = 0; }; then
27841 cat conftest.out >&5
27842 gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
27843 sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
27844 if test "$gmp_tmp_val" = 4; then
27845 gmp_cv_asm_w32="$gmp_tmp_op"
27846 break
27847 fi
27848 else
27849 cat conftest.out >&5
27850 echo "configure: failed program was:" >&5
27851 cat conftest.s >&5
27852 :
27853 fi
27854 rm -f conftest*
27855
27856 done
27857 rm -f conftest*
27858 ;;
27859 esac
27860 if test -z "$gmp_cv_asm_w32"; then
27861 as_fn_error $? "cannot determine how to define a 32-bit word" "$LINENO" 5
27862 fi
27863
27864 fi
27865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_w32" >&5
27866 $as_echo "$gmp_cv_asm_w32" >&6; }
27867 echo "define(<W32>, <$gmp_cv_asm_w32>)" >> $gmp_tmpconfigm4
27868
27869
27870
27871
27872
27873
27874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align assembly directive is logarithmic" >&5
27875 $as_echo_n "checking if .align assembly directive is logarithmic... " >&6; }
27876 if ${gmp_cv_asm_align_log+:} false; then :
27877 $as_echo_n "(cached) " >&6
27878 else
27879 cat >conftest.s <<EOF
27880 $gmp_cv_asm_data
27881 .align 4
27882 $gmp_cv_asm_globl foo
27883 $gmp_cv_asm_byte 1
27884 .align 4
27885 foo$gmp_cv_asm_label_suffix
27886 $gmp_cv_asm_byte 2
27887 EOF
27888 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27890 (eval $gmp_assemble) 2>&5
27891 ac_status=$?
27892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27893 test $ac_status = 0; }; then
27894 cat conftest.out >&5
27895 gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
27896 sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
27897 if test "$gmp_tmp_val" = "10" || test "$gmp_tmp_val" = "16"; then
27898 gmp_cv_asm_align_log=yes
27899 else
27900 gmp_cv_asm_align_log=no
27901 fi
27902 else
27903 cat conftest.out >&5
27904 echo "configure: failed program was:" >&5
27905 cat conftest.s >&5
27906 as_fn_error $? "cannot assemble alignment test" "$LINENO" 5
27907 fi
27908 rm -f conftest*
27909
27910 fi
27911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_align_log" >&5
27912 $as_echo "$gmp_cv_asm_align_log" >&6; }
27913
27914
27915 echo "define(<ALIGN_LOGARITHMIC>,<$gmp_cv_asm_align_log>)" >> $gmp_tmpconfigm4
27916
27917
27918
27919 case $host in
27920 hppa*-*-*)
27921 # for both pa32 and pa64
27922
27923 echo "include_mpn(\`pa32/pa-defs.m4')" >> $gmp_tmpconfigm4i
27924
27925 ;;
27926 ia64*-*-* | itanium-*-* | itanium2-*-*)
27927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler .align padding is good" >&5
27928 $as_echo_n "checking whether assembler .align padding is good... " >&6; }
27929 if ${gmp_cv_asm_ia64_align_ok+:} false; then :
27930 $as_echo_n "(cached) " >&6
27931 else
27932 cat >conftest.awk <<\EOF
27933 BEGIN {
27934 want[0] = "011"
27935 want[1] = "160"
27936 want[2] = "074"
27937 want[3] = "040"
27938 want[4] = "000"
27939 want[5] = "040"
27940 want[6] = "020"
27941 want[7] = "221"
27942 want[8] = "114"
27943 want[9] = "000"
27944 want[10] = "100"
27945 want[11] = "200"
27946 want[12] = "122"
27947 want[13] = "261"
27948 want[14] = "000"
27949 want[15] = "200"
27950
27951 want[16] = "000"
27952 want[17] = "004"
27953 want[18] = "000"
27954 want[19] = "000"
27955 want[20] = "000"
27956 want[21] = "000"
27957 want[22] = "002"
27958 want[23] = "000"
27959 want[24] = "000"
27960 want[25] = "000"
27961 want[26] = "000"
27962 want[27] = "001"
27963 want[28] = "000"
27964 want[29] = "000"
27965 want[30] = "000"
27966 want[31] = "014"
27967
27968 want[32] = "011"
27969 want[33] = "270"
27970 want[34] = "140"
27971 want[35] = "062"
27972 want[36] = "000"
27973 want[37] = "040"
27974 want[38] = "240"
27975 want[39] = "331"
27976 want[40] = "160"
27977 want[41] = "000"
27978 want[42] = "100"
27979 want[43] = "240"
27980 want[44] = "343"
27981 want[45] = "371"
27982 want[46] = "000"
27983 want[47] = "200"
27984
27985 result = "yes"
27986 }
27987 {
27988 for (f = 2; f <= NF; f++)
27989 {
27990 for (i = 0; i < 47; i++)
27991 got[i] = got[i+1];
27992 got[47] = $f;
27993
27994 found = 1
27995 for (i = 0; i < 48; i++)
27996 if (got[i] != want[i])
27997 {
27998 found = 0
27999 break
28000 }
28001 if (found)
28002 {
28003 result = "no"
28004 exit
28005 }
28006 }
28007 }
28008 END {
28009 print result
28010 }
28011 EOF
28012 cat >conftest.s <<EOF
28013 .text
28014 .align 32
28015 { .mmi; add r14 = r15, r16
28016 add r17 = r18, r19
28017 add r20 = r21, r22 ;; }
28018 .align 32
28019 { .mmi; add r23 = r24, r25
28020 add r26 = r27, r28
28021 add r29 = r30, r31 ;; }
28022
28023 EOF
28024 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28026 (eval $gmp_assemble) 2>&5
28027 ac_status=$?
28028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28029 test $ac_status = 0; }; then
28030 cat conftest.out >&5
28031 gmp_cv_asm_ia64_align_ok=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
28032 else
28033 cat conftest.out >&5
28034 echo "configure: failed program was:" >&5
28035 cat conftest.s >&5
28036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
28037 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
28038 gmp_cv_asm_ia64_align_ok=yes
28039 fi
28040 rm -f conftest*
28041
28042
28043 fi
28044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_ia64_align_ok" >&5
28045 $as_echo "$gmp_cv_asm_ia64_align_ok" >&6; }
28046
28047 echo "define(<IA64_ALIGN_OK>, <\`$gmp_cv_asm_ia64_align_ok'>)" >> $gmp_tmpconfigm4
28048
28049
28050 ;;
28051 m68k-*-* | m68[0-9][0-9][0-9]-*-*)
28052
28053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler instruction and register style" >&5
28054 $as_echo_n "checking assembler instruction and register style... " >&6; }
28055 if ${gmp_cv_asm_m68k_instruction+:} false; then :
28056 $as_echo_n "(cached) " >&6
28057 else
28058 for i in "addl %d0,%d1" "add.l %d0,%d1" "addl d0,d1" "add.l d0,d1"; do
28059 cat >conftest.s <<EOF
28060 $gmp_cv_asm_text
28061 $i
28062 EOF
28063 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28065 (eval $gmp_assemble) 2>&5
28066 ac_status=$?
28067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28068 test $ac_status = 0; }; then
28069 cat conftest.out >&5
28070 gmp_cv_asm_m68k_instruction=$i
28071 rm -f conftest*
28072 break
28073 else
28074 cat conftest.out >&5
28075 echo "configure: failed program was:" >&5
28076 cat conftest.s >&5
28077 :
28078 fi
28079 rm -f conftest*
28080
28081 done
28082 if test -z "$gmp_cv_asm_m68k_instruction"; then
28083 as_fn_error $? "cannot determine assembler instruction and register style" "$LINENO" 5
28084 fi
28085
28086 fi
28087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_instruction" >&5
28088 $as_echo "$gmp_cv_asm_m68k_instruction" >&6; }
28089 case $gmp_cv_asm_m68k_instruction in
28090 "addl d0,d1") want_dot_size=no; want_register_percent=no ;;
28091 "addl %d0,%d1") want_dot_size=no; want_register_percent=yes ;;
28092 "add.l d0,d1") want_dot_size=yes; want_register_percent=no ;;
28093 "add.l %d0,%d1") want_dot_size=yes; want_register_percent=yes ;;
28094 *) as_fn_error $? "oops, unrecognised instruction and register style" "$LINENO" 5 ;;
28095 esac
28096
28097 echo "define(<WANT_REGISTER_PERCENT>, <\`$want_register_percent'>)" >> $gmp_tmpconfigm4
28098
28099
28100 echo "define(<WANT_DOT_SIZE>, <\`$want_dot_size'>)" >> $gmp_tmpconfigm4
28101
28102
28103
28104
28105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler addressing style" >&5
28106 $as_echo_n "checking assembler addressing style... " >&6; }
28107 if ${gmp_cv_asm_m68k_addressing+:} false; then :
28108 $as_echo_n "(cached) " >&6
28109 else
28110 case $gmp_cv_asm_m68k_instruction in
28111 addl*) movel=movel ;;
28112 add.l*) movel=move.l ;;
28113 *) as_fn_error $? "oops, unrecognised gmp_cv_asm_m68k_instruction" "$LINENO" 5 ;;
28114 esac
28115 case $gmp_cv_asm_m68k_instruction in
28116 *"%d0,%d1") dreg=%d0; areg=%a0 ;;
28117 *"d0,d1") dreg=d0; areg=a0 ;;
28118 *) as_fn_error $? "oops, unrecognised gmp_cv_asm_m68k_instruction" "$LINENO" 5 ;;
28119 esac
28120 cat >conftest.s <<EOF
28121 $gmp_cv_asm_text
28122 $movel $dreg, $areg@-
28123 EOF
28124 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28126 (eval $gmp_assemble) 2>&5
28127 ac_status=$?
28128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28129 test $ac_status = 0; }; then
28130 cat conftest.out >&5
28131 gmp_cv_asm_m68k_addressing=mit
28132 else
28133 cat conftest.out >&5
28134 echo "configure: failed program was:" >&5
28135 cat conftest.s >&5
28136 cat >conftest.s <<EOF
28137 $gmp_cv_asm_text
28138 $movel $dreg, -($areg)
28139 EOF
28140 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28142 (eval $gmp_assemble) 2>&5
28143 ac_status=$?
28144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28145 test $ac_status = 0; }; then
28146 cat conftest.out >&5
28147 gmp_cv_asm_m68k_addressing=motorola
28148 else
28149 cat conftest.out >&5
28150 echo "configure: failed program was:" >&5
28151 cat conftest.s >&5
28152 as_fn_error $? "cannot determine assembler addressing style" "$LINENO" 5
28153 fi
28154 rm -f conftest*
28155
28156 fi
28157 rm -f conftest*
28158
28159
28160 fi
28161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_addressing" >&5
28162 $as_echo "$gmp_cv_asm_m68k_addressing" >&6; }
28163
28164 echo "define(<WANT_ADDRESSING>, <\`$gmp_cv_asm_m68k_addressing'>)" >> $gmp_tmpconfigm4
28165
28166
28167
28168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler shortest branches" >&5
28169 $as_echo_n "checking assembler shortest branches... " >&6; }
28170 if ${gmp_cv_asm_m68k_branches+:} false; then :
28171 $as_echo_n "(cached) " >&6
28172 else
28173 for i in jra jbra bra; do
28174 cat >conftest.s <<EOF
28175 $gmp_cv_asm_text
28176 foo$gmp_cv_asm_label_suffix
28177 $i foo
28178 EOF
28179 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28181 (eval $gmp_assemble) 2>&5
28182 ac_status=$?
28183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28184 test $ac_status = 0; }; then
28185 cat conftest.out >&5
28186 gmp_cv_asm_m68k_branches=$i
28187 rm -f conftest*
28188 break
28189 else
28190 cat conftest.out >&5
28191 echo "configure: failed program was:" >&5
28192 cat conftest.s >&5
28193 :
28194 fi
28195 rm -f conftest*
28196
28197 done
28198 if test -z "$gmp_cv_asm_m68k_branches"; then
28199 as_fn_error $? "cannot determine assembler branching style" "$LINENO" 5
28200 fi
28201
28202 fi
28203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_branches" >&5
28204 $as_echo "$gmp_cv_asm_m68k_branches" >&6; }
28205
28206 echo "define(<WANT_BRANCHES>, <\`$gmp_cv_asm_m68k_branches'>)" >> $gmp_tmpconfigm4
28207
28208
28209 ;;
28210 powerpc*-*-* | power[3-9]-*-*)
28211
28212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler output is PIC by default" >&5
28213 $as_echo_n "checking whether compiler output is PIC by default... " >&6; }
28214 if ${gmp_cv_asm_powerpc_pic+:} false; then :
28215 $as_echo_n "(cached) " >&6
28216 else
28217 gmp_cv_asm_powerpc_pic=yes
28218 cat >conftest.c <<EOF
28219 int foo;
28220 int *bar() { return &foo; }
28221 EOF
28222 echo "Test program:" >&5
28223 cat conftest.c >&5
28224 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
28225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
28226 (eval $gmp_compile) 2>&5
28227 ac_status=$?
28228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28229 test $ac_status = 0; }; then
28230 echo "Compiler output:" >&5
28231 cat conftest.s >&5
28232 if grep 'foo@ha' conftest.s >/dev/null 2>&5; then
28233 gmp_cv_asm_powerpc_pic=no
28234 fi
28235 if grep 'ha16(_foo)' conftest.s >/dev/null 2>&5; then
28236 gmp_cv_asm_powerpc_pic=no
28237 fi
28238 fi
28239 rm -f conftest*
28240
28241 fi
28242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_pic" >&5
28243 $as_echo "$gmp_cv_asm_powerpc_pic" >&6; }
28244
28245 echo "define(<PIC_ALWAYS>,<$gmp_cv_asm_powerpc_pic>)" >> $gmp_tmpconfigm4
28246
28247
28248
28249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler needs r on registers" >&5
28250 $as_echo_n "checking if the assembler needs r on registers... " >&6; }
28251 if ${gmp_cv_asm_powerpc_r_registers+:} false; then :
28252 $as_echo_n "(cached) " >&6
28253 else
28254 cat >conftest.s <<EOF
28255 $gmp_cv_asm_text
28256 mtctr 6
28257 EOF
28258 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28260 (eval $gmp_assemble) 2>&5
28261 ac_status=$?
28262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28263 test $ac_status = 0; }; then
28264 cat conftest.out >&5
28265 gmp_cv_asm_powerpc_r_registers=no
28266 else
28267 cat conftest.out >&5
28268 echo "configure: failed program was:" >&5
28269 cat conftest.s >&5
28270 cat >conftest.s <<EOF
28271 $gmp_cv_asm_text
28272 mtctr r6
28273 EOF
28274 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28276 (eval $gmp_assemble) 2>&5
28277 ac_status=$?
28278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28279 test $ac_status = 0; }; then
28280 cat conftest.out >&5
28281 gmp_cv_asm_powerpc_r_registers=yes
28282 else
28283 cat conftest.out >&5
28284 echo "configure: failed program was:" >&5
28285 cat conftest.s >&5
28286 as_fn_error $? "neither \"mtctr 6\" nor \"mtctr r6\" works" "$LINENO" 5
28287 fi
28288 rm -f conftest*
28289
28290 fi
28291 rm -f conftest*
28292
28293 fi
28294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_r_registers" >&5
28295 $as_echo "$gmp_cv_asm_powerpc_r_registers" >&6; }
28296
28297
28298 echo "define(<WANT_R_REGISTERS>,<$gmp_cv_asm_powerpc_r_registers>)" >> $gmp_tmpconfigm4
28299
28300
28301
28302 echo "include_mpn(\`powerpc32/powerpc-defs.m4')" >> $gmp_tmpconfigm4i
28303
28304 case $host in
28305 *-*-aix*)
28306 case $ABI in
28307 mode64)
28308 echo "include_mpn(\`powerpc64/aix.m4')" >> $gmp_tmpconfigm4i
28309 ;;
28310 *)
28311 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
28312 ;;
28313 esac
28314 ;;
28315 *-*-linux* | *-*-*bsd*)
28316 case $ABI in
28317 mode64)
28318 echo "include_mpn(\`powerpc64/elf.m4')" >> $gmp_tmpconfigm4i
28319 ;;
28320 mode32 | 32)
28321 echo "include_mpn(\`powerpc32/elf.m4')" >> $gmp_tmpconfigm4i
28322 ;;
28323 esac
28324 ;;
28325 *-*-darwin*)
28326 case $ABI in
28327 mode64)
28328 echo "include_mpn(\`powerpc64/darwin.m4')" >> $gmp_tmpconfigm4i
28329 ;;
28330 mode32 | 32)
28331 echo "include_mpn(\`powerpc32/darwin.m4')" >> $gmp_tmpconfigm4i
28332 ;;
28333 esac
28334 ;;
28335 *)
28336 # Assume unrecognized operating system is the powerpc eABI
28337
28338 echo "include_mpn(\`powerpc32/eabi.m4')" >> $gmp_tmpconfigm4i
28339
28340 ;;
28341 esac
28342 ;;
28343 power*-*-aix*)
28344
28345 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
28346
28347 ;;
28348 *sparc*-*-*)
28349 case $ABI in
28350 64)
28351
28352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler accepts \".register\"" >&5
28353 $as_echo_n "checking if the assembler accepts \".register\"... " >&6; }
28354 if ${gmp_cv_asm_sparc_register+:} false; then :
28355 $as_echo_n "(cached) " >&6
28356 else
28357 cat >conftest.s <<EOF
28358 $gmp_cv_asm_text
28359 .register %g2,#scratch
28360
28361 EOF
28362 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28364 (eval $gmp_assemble) 2>&5
28365 ac_status=$?
28366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28367 test $ac_status = 0; }; then
28368 cat conftest.out >&5
28369 gmp_cv_asm_sparc_register=yes
28370 else
28371 cat conftest.out >&5
28372 echo "configure: failed program was:" >&5
28373 cat conftest.s >&5
28374 gmp_cv_asm_sparc_register=no
28375 fi
28376 rm -f conftest*
28377
28378 fi
28379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_sparc_register" >&5
28380 $as_echo "$gmp_cv_asm_sparc_register" >&6; }
28381
28382
28383 echo "define(<HAVE_REGISTER>,<$gmp_cv_asm_sparc_register>)" >> $gmp_tmpconfigm4
28384
28385
28386 ;;
28387 esac
28388 ;;
28389 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
28390
28391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the .align directive accepts an 0x90 fill in .text" >&5
28392 $as_echo_n "checking if the .align directive accepts an 0x90 fill in .text... " >&6; }
28393 if ${gmp_cv_asm_align_fill_0x90+:} false; then :
28394 $as_echo_n "(cached) " >&6
28395 else
28396 cat >conftest.s <<EOF
28397 $gmp_cv_asm_text
28398 .align 4, 0x90
28399 .byte 0
28400 .align 4, 0x90
28401 EOF
28402 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28404 (eval $gmp_assemble) 2>&5
28405 ac_status=$?
28406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28407 test $ac_status = 0; }; then
28408 cat conftest.out >&5
28409 if grep "Warning: Fill parameter ignored for executable section" conftest.out >/dev/null; then
28410 echo "Supressing this warning by omitting 0x90" 1>&5
28411 gmp_cv_asm_align_fill_0x90=no
28412 else
28413 gmp_cv_asm_align_fill_0x90=yes
28414 fi
28415 else
28416 cat conftest.out >&5
28417 echo "configure: failed program was:" >&5
28418 cat conftest.s >&5
28419 gmp_cv_asm_align_fill_0x90=no
28420 fi
28421 rm -f conftest*
28422
28423 fi
28424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_align_fill_0x90" >&5
28425 $as_echo "$gmp_cv_asm_align_fill_0x90" >&6; }
28426
28427
28428 echo "define(<ALIGN_FILL_0x90>,<$gmp_cv_asm_align_fill_0x90>)" >> $gmp_tmpconfigm4
28429
28430
28431 case $ABI in
28432 32)
28433
28434 echo "include_mpn(\`x86/x86-defs.m4')" >> $gmp_tmpconfigm4i
28435
28436 $as_echo "#define HAVE_HOST_CPU_FAMILY_x86 1" >>confdefs.h
28437
28438
28439
28440
28441
28442
28443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler COFF type directives" >&5
28444 $as_echo_n "checking for assembler COFF type directives... " >&6; }
28445 if ${gmp_cv_asm_x86_coff_type+:} false; then :
28446 $as_echo_n "(cached) " >&6
28447 else
28448 cat >conftest.s <<EOF
28449 $gmp_cv_asm_text
28450 $gmp_cv_asm_globl ${tmp_gsym_prefix}foo$gmp_cv_asm_globl_attr
28451 .def ${tmp_gsym_prefix}foo
28452 .scl 2
28453 .type 32
28454 .endef
28455 ${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix
28456
28457 EOF
28458 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28460 (eval $gmp_assemble) 2>&5
28461 ac_status=$?
28462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28463 test $ac_status = 0; }; then
28464 cat conftest.out >&5
28465 gmp_cv_asm_x86_coff_type=yes
28466 else
28467 cat conftest.out >&5
28468 echo "configure: failed program was:" >&5
28469 cat conftest.s >&5
28470 gmp_cv_asm_x86_coff_type=no
28471 fi
28472 rm -f conftest*
28473
28474
28475 fi
28476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_coff_type" >&5
28477 $as_echo "$gmp_cv_asm_x86_coff_type" >&6; }
28478 echo "define(<HAVE_COFF_TYPE>, <$gmp_cv_asm_x86_coff_type>)" >> $gmp_tmpconfigm4
28479
28480
28481
28482
28483
28484
28485
28486
28487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore" >&5
28488 $as_echo_n "checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore... " >&6; }
28489 if ${gmp_cv_asm_x86_got_underscore+:} false; then :
28490 $as_echo_n "(cached) " >&6
28491 else
28492 gmp_cv_asm_x86_got_underscore="not applicable"
28493 if test $gmp_cv_asm_underscore = yes; then
28494 tmp_gsym_prefix=_
28495 else
28496 tmp_gsym_prefix=
28497 fi
28498 for tmp_underscore in "" "_"; do
28499 cat >conftest.s <<EOF
28500 $gmp_cv_asm_text
28501 $gmp_cv_asm_globl ${tmp_gsym_prefix}main$gmp_cv_asm_globl_attr
28502 ${tmp_gsym_prefix}main$gmp_cv_asm_label_suffix
28503 addl $ ${tmp_underscore}_GLOBAL_OFFSET_TABLE_, %ebx
28504 EOF
28505 gmp_compile="$CCAS $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.s >&5 && $CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.$OBJEXT >&5"
28506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
28507 (eval $gmp_compile) 2>&5
28508 ac_status=$?
28509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28510 test $ac_status = 0; }; then
28511 if test "$tmp_underscore" = "_"; then
28512 gmp_cv_asm_x86_got_underscore=yes
28513 else
28514 gmp_cv_asm_x86_got_underscore=no
28515 fi
28516 break
28517 fi
28518 done
28519 rm -f conftest* a.out b.out a.exe a_out.exe
28520
28521 fi
28522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_got_underscore" >&5
28523 $as_echo "$gmp_cv_asm_x86_got_underscore" >&6; }
28524 if test "$gmp_cv_asm_x86_got_underscore" = "yes"; then
28525
28526 echo 'define(<GOT_GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
28527
28528 else
28529
28530 echo 'define(<GOT_GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
28531
28532 fi
28533
28534
28535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler takes cl with shldl" >&5
28536 $as_echo_n "checking if the assembler takes cl with shldl... " >&6; }
28537 if ${gmp_cv_asm_x86_shldl_cl+:} false; then :
28538 $as_echo_n "(cached) " >&6
28539 else
28540 cat >conftest.s <<EOF
28541 $gmp_cv_asm_text
28542 shldl %cl, %eax, %ebx
28543 EOF
28544 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28546 (eval $gmp_assemble) 2>&5
28547 ac_status=$?
28548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28549 test $ac_status = 0; }; then
28550 cat conftest.out >&5
28551 gmp_cv_asm_x86_shldl_cl=yes
28552 else
28553 cat conftest.out >&5
28554 echo "configure: failed program was:" >&5
28555 cat conftest.s >&5
28556 gmp_cv_asm_x86_shldl_cl=no
28557 fi
28558 rm -f conftest*
28559
28560
28561 fi
28562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_shldl_cl" >&5
28563 $as_echo "$gmp_cv_asm_x86_shldl_cl" >&6; }
28564 if test "$gmp_cv_asm_x86_shldl_cl" = "yes"; then
28565
28566 echo 'define(<WANT_SHLDL_CL>, <1>)' >>$gmp_tmpconfigm4
28567
28568 else
28569
28570 echo 'define(<WANT_SHLDL_CL>, <0>)' >>$gmp_tmpconfigm4
28571
28572 fi
28573
28574 case $enable_profiling in
28575 prof | gprof) # Check whether --enable-shared was given.
28576 if test "${enable_shared+set}" = set; then :
28577 enableval=$enable_shared; p=${PACKAGE-default}
28578 case $enableval in
28579 yes) enable_shared=yes ;;
28580 no) enable_shared=no ;;
28581 *)
28582 enable_shared=no
28583 # Look at the argument we got. We use all the common list separators.
28584 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
28585 for pkg in $enableval; do
28586 IFS="$lt_save_ifs"
28587 if test "X$pkg" = "X$p"; then
28588 enable_shared=yes
28589 fi
28590 done
28591 IFS="$lt_save_ifs"
28592 ;;
28593 esac
28594 else
28595 enable_shared=yes
28596 fi
28597
28598
28599
28600
28601
28602
28603
28604
28605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to call x86 mcount" >&5
28606 $as_echo_n "checking how to call x86 mcount... " >&6; }
28607 cat >conftest.c <<EOF
28608 foo(){bar();}
28609 EOF
28610
28611 if test "$enable_static" = yes; then
28612 gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c 1>&5"
28613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_asmout_compile\""; } >&5
28614 (eval $gmp_asmout_compile) 2>&5
28615 ac_status=$?
28616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28617 test $ac_status = 0; }; then
28618 if grep '\.data' conftest.s >/dev/null; then
28619 mcount_nonpic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
28620 else
28621 mcount_nonpic_reg=
28622 fi
28623 mcount_nonpic_call=`grep 'call.*mcount' conftest.s`
28624 if test -z "$mcount_nonpic_call"; then
28625 as_fn_error $? "Cannot find mcount call for non-PIC" "$LINENO" 5
28626 fi
28627 else
28628 as_fn_error $? "Cannot compile test program for non-PIC" "$LINENO" 5
28629 fi
28630 fi
28631
28632 if test "$enable_shared" = yes; then
28633 gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic -S conftest.c 1>&5"
28634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_asmout_compile\""; } >&5
28635 (eval $gmp_asmout_compile) 2>&5
28636 ac_status=$?
28637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28638 test $ac_status = 0; }; then
28639 if grep '\.data' conftest.s >/dev/null; then
28640 case $lt_prog_compiler_pic in
28641 *-DDLL_EXPORT*)
28642 # Windows DLLs have non-PIC style mcount
28643 mcount_pic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
28644 ;;
28645 *)
28646 mcount_pic_reg=`sed -n 's/.*GOTOFF.*,\(%[a-z]*\).*$/\1/p' conftest.s`
28647 ;;
28648 esac
28649 else
28650 mcount_pic_reg=
28651 fi
28652 mcount_pic_call=`grep 'call.*mcount' conftest.s`
28653 if test -z "$mcount_pic_call"; then
28654 as_fn_error $? "Cannot find mcount call for PIC" "$LINENO" 5
28655 fi
28656 else
28657 as_fn_error $? "Cannot compile test program for PIC" "$LINENO" 5
28658 fi
28659 fi
28660
28661
28662 echo "define(<MCOUNT_NONPIC_REG>, <\`$mcount_nonpic_reg'>)" >> $gmp_tmpconfigm4
28663
28664
28665 echo "define(<MCOUNT_NONPIC_CALL>,<\`$mcount_nonpic_call'>)" >> $gmp_tmpconfigm4
28666
28667
28668 echo "define(<MCOUNT_PIC_REG>, <\`$mcount_pic_reg'>)" >> $gmp_tmpconfigm4
28669
28670
28671 echo "define(<MCOUNT_PIC_CALL>, <\`$mcount_pic_call'>)" >> $gmp_tmpconfigm4
28672
28673
28674 rm -f conftest.*
28675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: determined" >&5
28676 $as_echo "determined" >&6; }
28677 ;;
28678 esac
28679 case $host in
28680 *-*-darwin*)
28681
28682 echo "include_mpn(\`x86/darwin.m4')" >> $gmp_tmpconfigm4i
28683 ;;
28684 esac
28685 ;;
28686 64|x32)
28687
28688 echo "include_mpn(\`x86_64/x86_64-defs.m4')" >> $gmp_tmpconfigm4i
28689
28690 $as_echo "#define HAVE_HOST_CPU_FAMILY_x86_64 1" >>confdefs.h
28691
28692 case $host in
28693 *-*-darwin*)
28694
28695 echo "include_mpn(\`x86_64/darwin.m4')" >> $gmp_tmpconfigm4i
28696 ;;
28697 *-*-mingw* | *-*-cygwin)
28698
28699 echo "include_mpn(\`x86_64/dos64.m4')" >> $gmp_tmpconfigm4i
28700 ;;
28701 esac
28702 ;;
28703 esac
28704 ;;
28705 esac
28706 fi
28707
28708 # For --enable-minithres, prepend "minithres" to path so that its special
28709 # gmp-mparam.h will be used.
28710 if test $enable_minithres = yes; then
28711 path="minithres $path"
28712 fi
28713
28714 # Create link for gmp-mparam.h.
28715 gmp_mparam_source=
28716 for gmp_mparam_dir in $path; do
28717 test "$no_create" = yes || rm -f gmp-mparam.h
28718 tmp_file=$srcdir/mpn/$gmp_mparam_dir/gmp-mparam.h
28719 if test -f $tmp_file; then
28720 ac_config_links="$ac_config_links gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h"
28721
28722 gmp_srclinks="$gmp_srclinks gmp-mparam.h"
28723 gmp_mparam_source=$tmp_file
28724 break
28725 fi
28726 done
28727 if test -z "$gmp_mparam_source"; then
28728 as_fn_error $? "no version of gmp-mparam.h found in path: $path" "$LINENO" 5
28729 fi
28730
28731 # For a helpful message from tune/tuneup.c
28732 gmp_mparam_suggest=$gmp_mparam_source
28733 if test "$gmp_mparam_dir" = generic; then
28734 for i in $path; do break; done
28735 if test "$i" != generic; then
28736 gmp_mparam_suggest="new file $srcdir/mpn/$i/gmp-mparam.h"
28737 fi
28738 fi
28739
28740 cat >>confdefs.h <<_ACEOF
28741 #define GMP_MPARAM_H_SUGGEST "$gmp_mparam_source"
28742 _ACEOF
28743
28744
28745
28746 # Copy relevant parameters from gmp-mparam.h to config.m4.
28747 # We only do this for parameters that are used by some assembly files.
28748 # Fat binaries do this on a per-file basis, so skip in that case.
28749 #
28750 if test -z "$fat_path"; then
28751 for i in SQR_TOOM2_THRESHOLD BMOD_1_TO_MOD_1_THRESHOLD SHLD_SLOW SHRD_SLOW; do
28752 value=`sed -n 's/^#define '$i'[ ]*\([0-9][0-9]*\).*$/\1/p' $gmp_mparam_source`
28753 if test -n "$value"; then
28754
28755 echo "define(<$i>,<$value>)" >> $gmp_tmpconfigm4
28756
28757 fi
28758 done
28759 fi
28760
28761
28762 # Sizes of some types, needed at preprocessing time.
28763 #
28764 # FIXME: The assumption that GMP_LIMB_BITS is 8*sizeof(mp_limb_t) might
28765 # be slightly rash, but it's true everywhere we know of and ought to be true
28766 # of any sensible system. In a generic C build, grepping LONG_BIT out of
28767 # <limits.h> might be an alternative, for maximum portability.
28768 #
28769 # The cast to long int works around a bug in the HP C Compiler
28770 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28771 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28772 # This bug is HP SR number 8606223364.
28773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
28774 $as_echo_n "checking size of void *... " >&6; }
28775 if ${ac_cv_sizeof_void_p+:} false; then :
28776 $as_echo_n "(cached) " >&6
28777 else
28778 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
28779
28780 else
28781 if test "$ac_cv_type_void_p" = yes; then
28782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28784 as_fn_error 77 "cannot compute sizeof (void *)
28785 See \`config.log' for more details" "$LINENO" 5; }
28786 else
28787 ac_cv_sizeof_void_p=0
28788 fi
28789 fi
28790
28791 fi
28792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
28793 $as_echo "$ac_cv_sizeof_void_p" >&6; }
28794
28795
28796
28797 cat >>confdefs.h <<_ACEOF
28798 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
28799 _ACEOF
28800
28801
28802 # The cast to long int works around a bug in the HP C Compiler
28803 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28804 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28805 # This bug is HP SR number 8606223364.
28806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
28807 $as_echo_n "checking size of unsigned short... " >&6; }
28808 if ${ac_cv_sizeof_unsigned_short+:} false; then :
28809 $as_echo_n "(cached) " >&6
28810 else
28811 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
28812
28813 else
28814 if test "$ac_cv_type_unsigned_short" = yes; then
28815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28817 as_fn_error 77 "cannot compute sizeof (unsigned short)
28818 See \`config.log' for more details" "$LINENO" 5; }
28819 else
28820 ac_cv_sizeof_unsigned_short=0
28821 fi
28822 fi
28823
28824 fi
28825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
28826 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
28827
28828
28829
28830 cat >>confdefs.h <<_ACEOF
28831 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
28832 _ACEOF
28833
28834
28835 # The cast to long int works around a bug in the HP C Compiler
28836 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28837 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28838 # This bug is HP SR number 8606223364.
28839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5
28840 $as_echo_n "checking size of unsigned... " >&6; }
28841 if ${ac_cv_sizeof_unsigned+:} false; then :
28842 $as_echo_n "(cached) " >&6
28843 else
28844 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned" "$ac_includes_default"; then :
28845
28846 else
28847 if test "$ac_cv_type_unsigned" = yes; then
28848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28850 as_fn_error 77 "cannot compute sizeof (unsigned)
28851 See \`config.log' for more details" "$LINENO" 5; }
28852 else
28853 ac_cv_sizeof_unsigned=0
28854 fi
28855 fi
28856
28857 fi
28858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5
28859 $as_echo "$ac_cv_sizeof_unsigned" >&6; }
28860
28861
28862
28863 cat >>confdefs.h <<_ACEOF
28864 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
28865 _ACEOF
28866
28867
28868 # The cast to long int works around a bug in the HP C Compiler
28869 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28870 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28871 # This bug is HP SR number 8606223364.
28872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
28873 $as_echo_n "checking size of unsigned long... " >&6; }
28874 if ${ac_cv_sizeof_unsigned_long+:} false; then :
28875 $as_echo_n "(cached) " >&6
28876 else
28877 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
28878
28879 else
28880 if test "$ac_cv_type_unsigned_long" = yes; then
28881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28883 as_fn_error 77 "cannot compute sizeof (unsigned long)
28884 See \`config.log' for more details" "$LINENO" 5; }
28885 else
28886 ac_cv_sizeof_unsigned_long=0
28887 fi
28888 fi
28889
28890 fi
28891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
28892 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
28893
28894
28895
28896 cat >>confdefs.h <<_ACEOF
28897 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
28898 _ACEOF
28899
28900
28901 # The cast to long int works around a bug in the HP C Compiler
28902 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28903 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28904 # This bug is HP SR number 8606223364.
28905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of mp_limb_t" >&5
28906 $as_echo_n "checking size of mp_limb_t... " >&6; }
28907 if ${ac_cv_sizeof_mp_limb_t+:} false; then :
28908 $as_echo_n "(cached) " >&6
28909 else
28910 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 */
28911 #define GMP_NAIL_BITS $GMP_NAIL_BITS
28912 #define GMP_LIMB_BITS 123
28913 $DEFN_LONG_LONG_LIMB
28914 #include \"$srcdir/gmp-h.in\"
28915
28916 "; then :
28917
28918 else
28919 if test "$ac_cv_type_mp_limb_t" = yes; then
28920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28922 as_fn_error 77 "cannot compute sizeof (mp_limb_t)
28923 See \`config.log' for more details" "$LINENO" 5; }
28924 else
28925 ac_cv_sizeof_mp_limb_t=0
28926 fi
28927 fi
28928
28929 fi
28930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_mp_limb_t" >&5
28931 $as_echo "$ac_cv_sizeof_mp_limb_t" >&6; }
28932
28933
28934
28935 cat >>confdefs.h <<_ACEOF
28936 #define SIZEOF_MP_LIMB_T $ac_cv_sizeof_mp_limb_t
28937 _ACEOF
28938
28939
28940 if test "$ac_cv_sizeof_mp_limb_t" = 0; then
28941 as_fn_error $? "Oops, mp_limb_t doesn't seem to work" "$LINENO" 5
28942 fi
28943 GMP_LIMB_BITS=`expr 8 \* $ac_cv_sizeof_mp_limb_t`
28944
28945
28946 echo "define(<SIZEOF_UNSIGNED>,<$ac_cv_sizeof_unsigned>)" >> $gmp_tmpconfigm4
28947
28948
28949 # Check compiler limb size matches gmp-mparam.h
28950 #
28951 # FIXME: Some of the cycle counter objects in the tune directory depend on
28952 # the size of ulong, it'd be possible to check that here, though a mismatch
28953 # probably wouldn't want to be fatal, none of the libgmp assembler code
28954 # depends on ulong.
28955 #
28956 mparam_bits=`sed -n 's/^#define GMP_LIMB_BITS[ ][ ]*\([0-9]*\).*$/\1/p' $gmp_mparam_source`
28957 if test -n "$mparam_bits" && test "$mparam_bits" -ne $GMP_LIMB_BITS; then
28958 if test "$test_CFLAGS" = set; then
28959 as_fn_error $? "Oops, mp_limb_t is $GMP_LIMB_BITS bits, but the assembler code
28960 in this configuration expects $mparam_bits bits.
28961 You appear to have set \$CFLAGS, perhaps you also need to tell GMP the
28962 intended ABI, see \"ABI and ISA\" in the manual." "$LINENO" 5
28963 else
28964 as_fn_error $? "Oops, mp_limb_t is $GMP_LIMB_BITS bits, but the assembler code
28965 in this configuration expects $mparam_bits bits." "$LINENO" 5
28966 fi
28967 fi
28968
28969
28970 echo "define(<GMP_LIMB_BITS>,$GMP_LIMB_BITS)" >> $gmp_tmpconfigm4
28971
28972
28973 echo "define(<GMP_NAIL_BITS>,$GMP_NAIL_BITS)" >> $gmp_tmpconfigm4
28974
28975
28976 echo "define(<GMP_NUMB_BITS>,eval(GMP_LIMB_BITS-GMP_NAIL_BITS))" >> $gmp_tmpconfigm4
28977
28978
28979
28980
28981
28982
28983
28984
28985 # A recompiled sqr_basecase for use in the tune program, if necessary.
28986 TUNE_SQR_OBJ=
28987 test -d tune || mkdir tune
28988 case $sqr_basecase_source in
28989 *.asm)
28990 sqr_max=`sed -n 's/^def...(SQR_TOOM2_THRESHOLD_MAX, *\([0-9]*\))/\1/p' $sqr_basecase_source`
28991 if test -n "$sqr_max"; then
28992 TUNE_SQR_OBJ=sqr_asm.o
28993
28994 cat >>confdefs.h <<_ACEOF
28995 #define TUNE_SQR_TOOM2_MAX $sqr_max
28996 _ACEOF
28997
28998 fi
28999 cat >tune/sqr_basecase.c <<EOF
29000 /* not sure that an empty file can compile, so put in a dummy */
29001 int sqr_basecase_dummy;
29002 EOF
29003 ;;
29004 *.c)
29005 TUNE_SQR_OBJ=
29006 $as_echo "#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC" >>confdefs.h
29007
29008 cat >tune/sqr_basecase.c <<EOF
29009 #define TUNE_PROGRAM_BUILD 1
29010 #define TUNE_PROGRAM_BUILD_SQR 1
29011 #include "mpn/sqr_basecase.c"
29012 EOF
29013 ;;
29014 esac
29015
29016
29017
29018 # Configs for demos/pexpr.c.
29019 #
29020 ac_config_files="$ac_config_files demos/pexpr-config.h:demos/pexpr-config-h.in"
29021
29022 case $ac_cv_func_clock in
29023 yes) HAVE_CLOCK_01=1
29024 ;;
29025 no) HAVE_CLOCK_01=0 ;;
29026 esac
29027
29028 case $ac_cv_func_cputime in
29029 yes) HAVE_CPUTIME_01=1
29030 ;;
29031 no) HAVE_CPUTIME_01=0 ;;
29032 esac
29033
29034 case $ac_cv_func_getrusage in
29035 yes) HAVE_GETRUSAGE_01=1
29036 ;;
29037 no) HAVE_GETRUSAGE_01=0 ;;
29038 esac
29039
29040 case $ac_cv_func_gettimeofday in
29041 yes) HAVE_GETTIMEOFDAY_01=1
29042 ;;
29043 no) HAVE_GETTIMEOFDAY_01=0 ;;
29044 esac
29045
29046 case $ac_cv_func_sigaction in
29047 yes) HAVE_SIGACTION_01=1
29048 ;;
29049 no) HAVE_SIGACTION_01=0 ;;
29050 esac
29051
29052 case $ac_cv_func_sigaltstack in
29053 yes) HAVE_SIGALTSTACK_01=1
29054 ;;
29055 no) HAVE_SIGALTSTACK_01=0 ;;
29056 esac
29057
29058 case $ac_cv_func_sigstack in
29059 yes) HAVE_SIGSTACK_01=1
29060 ;;
29061 no) HAVE_SIGSTACK_01=0 ;;
29062 esac
29063
29064
29065 case $ac_cv_header_sys_resource_h in
29066 yes) HAVE_SYS_RESOURCE_H_01=1
29067 ;;
29068 no) HAVE_SYS_RESOURCE_H_01=0 ;;
29069 esac
29070
29071
29072 ac_fn_c_check_type "$LINENO" "stack_t" "ac_cv_type_stack_t" "#include <signal.h>
29073 "
29074 if test "x$ac_cv_type_stack_t" = xyes; then :
29075
29076 cat >>confdefs.h <<_ACEOF
29077 #define HAVE_STACK_T 1
29078 _ACEOF
29079
29080 HAVE_STACK_T_01=1
29081 else
29082 HAVE_STACK_T_01=0
29083 fi
29084
29085
29086
29087 # Configs for demos/calc directory
29088 #
29089 # AC_SUBST+AC_CONFIG_FILES is used for calc-config.h, rather than AC_DEFINE+
29090 # AC_CONFIG_HEADERS, since with the latter automake (1.8) will then put the
29091 # directory (ie. demos/calc) into $(DEFAULT_INCLUDES) for every Makefile.in,
29092 # which would look very strange.
29093 #
29094 # -lcurses is required by libreadline. On a typical SVR4 style system this
29095 # normally doesn't have to be given explicitly, since libreadline.so will
29096 # have a NEEDED record for it. But if someone for some reason is using only
29097 # a static libreadline.a then we must give -lcurses. Readline (as of
29098 # version 4.3) doesn't use libtool, so we can't rely on a .la to cover
29099 # necessary dependencies.
29100 #
29101 # On a couple of systems we've seen libreadline available, but the headers
29102 # not in the default include path, so check for readline/readline.h. We've
29103 # also seen readline/history.h missing, not sure if that's just a broken
29104 # install or a very old version, but check that too.
29105 #
29106 ac_config_files="$ac_config_files demos/calc/calc-config.h:demos/calc/calc-config-h.in"
29107
29108 LIBCURSES=
29109 if test $with_readline != no; then
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lncurses" >&5
29111 $as_echo_n "checking for tputs in -lncurses... " >&6; }
29112 if ${ac_cv_lib_ncurses_tputs+:} false; then :
29113 $as_echo_n "(cached) " >&6
29114 else
29115 ac_check_lib_save_LIBS=$LIBS
29116 LIBS="-lncurses $LIBS"
29117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29118 /* end confdefs.h. */
29119
29120 /* Override any GCC internal prototype to avoid an error.
29121 Use char because int might match the return type of a GCC
29122 builtin and then its argument prototype would still apply. */
29123 #ifdef __cplusplus
29124 extern "C"
29125 #endif
29126 char tputs ();
29127 int
29128 main ()
29129 {
29130 return tputs ();
29131 ;
29132 return 0;
29133 }
29134 _ACEOF
29135 if ac_fn_c_try_link "$LINENO"; then :
29136 ac_cv_lib_ncurses_tputs=yes
29137 else
29138 ac_cv_lib_ncurses_tputs=no
29139 fi
29140 rm -f core conftest.err conftest.$ac_objext \
29141 conftest$ac_exeext conftest.$ac_ext
29142 LIBS=$ac_check_lib_save_LIBS
29143 fi
29144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tputs" >&5
29145 $as_echo "$ac_cv_lib_ncurses_tputs" >&6; }
29146 if test "x$ac_cv_lib_ncurses_tputs" = xyes; then :
29147 LIBCURSES=-lncurses
29148 else
29149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lcurses" >&5
29150 $as_echo_n "checking for tputs in -lcurses... " >&6; }
29151 if ${ac_cv_lib_curses_tputs+:} false; then :
29152 $as_echo_n "(cached) " >&6
29153 else
29154 ac_check_lib_save_LIBS=$LIBS
29155 LIBS="-lcurses $LIBS"
29156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29157 /* end confdefs.h. */
29158
29159 /* Override any GCC internal prototype to avoid an error.
29160 Use char because int might match the return type of a GCC
29161 builtin and then its argument prototype would still apply. */
29162 #ifdef __cplusplus
29163 extern "C"
29164 #endif
29165 char tputs ();
29166 int
29167 main ()
29168 {
29169 return tputs ();
29170 ;
29171 return 0;
29172 }
29173 _ACEOF
29174 if ac_fn_c_try_link "$LINENO"; then :
29175 ac_cv_lib_curses_tputs=yes
29176 else
29177 ac_cv_lib_curses_tputs=no
29178 fi
29179 rm -f core conftest.err conftest.$ac_objext \
29180 conftest$ac_exeext conftest.$ac_ext
29181 LIBS=$ac_check_lib_save_LIBS
29182 fi
29183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tputs" >&5
29184 $as_echo "$ac_cv_lib_curses_tputs" >&6; }
29185 if test "x$ac_cv_lib_curses_tputs" = xyes; then :
29186 LIBCURSES=-lcurses
29187 fi
29188
29189 fi
29190
29191 fi
29192
29193 use_readline=$with_readline
29194 if test $with_readline = detect; then
29195 use_readline=no
29196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
29197 $as_echo_n "checking for readline in -lreadline... " >&6; }
29198 if ${ac_cv_lib_readline_readline+:} false; then :
29199 $as_echo_n "(cached) " >&6
29200 else
29201 ac_check_lib_save_LIBS=$LIBS
29202 LIBS="-lreadline $LIBCURSES $LIBS"
29203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29204 /* end confdefs.h. */
29205
29206 /* Override any GCC internal prototype to avoid an error.
29207 Use char because int might match the return type of a GCC
29208 builtin and then its argument prototype would still apply. */
29209 #ifdef __cplusplus
29210 extern "C"
29211 #endif
29212 char readline ();
29213 int
29214 main ()
29215 {
29216 return readline ();
29217 ;
29218 return 0;
29219 }
29220 _ACEOF
29221 if ac_fn_c_try_link "$LINENO"; then :
29222 ac_cv_lib_readline_readline=yes
29223 else
29224 ac_cv_lib_readline_readline=no
29225 fi
29226 rm -f core conftest.err conftest.$ac_objext \
29227 conftest$ac_exeext conftest.$ac_ext
29228 LIBS=$ac_check_lib_save_LIBS
29229 fi
29230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
29231 $as_echo "$ac_cv_lib_readline_readline" >&6; }
29232 if test "x$ac_cv_lib_readline_readline" = xyes; then :
29233 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
29234 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
29235 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
29236 if test "x$ac_cv_header_readline_history_h" = xyes; then :
29237 use_readline=yes
29238 fi
29239
29240
29241 fi
29242
29243
29244 fi
29245
29246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking readline detected" >&5
29247 $as_echo_n "checking readline detected... " >&6; }
29248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_readline" >&5
29249 $as_echo "$use_readline" >&6; }
29250 fi
29251 if test $use_readline = yes; then
29252 WITH_READLINE_01=1
29253
29254 LIBREADLINE=-lreadline
29255
29256 else
29257 WITH_READLINE_01=0
29258 fi
29259 for ac_prog in 'bison -y' byacc
29260 do
29261 # Extract the first word of "$ac_prog", so it can be a program name with args.
29262 set dummy $ac_prog; ac_word=$2
29263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29264 $as_echo_n "checking for $ac_word... " >&6; }
29265 if ${ac_cv_prog_YACC+:} false; then :
29266 $as_echo_n "(cached) " >&6
29267 else
29268 if test -n "$YACC"; then
29269 ac_cv_prog_YACC="$YACC" # Let the user override the test.
29270 else
29271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29272 for as_dir in $PATH
29273 do
29274 IFS=$as_save_IFS
29275 test -z "$as_dir" && as_dir=.
29276 for ac_exec_ext in '' $ac_executable_extensions; do
29277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29278 ac_cv_prog_YACC="$ac_prog"
29279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29280 break 2
29281 fi
29282 done
29283 done
29284 IFS=$as_save_IFS
29285
29286 fi
29287 fi
29288 YACC=$ac_cv_prog_YACC
29289 if test -n "$YACC"; then
29290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
29291 $as_echo "$YACC" >&6; }
29292 else
29293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29294 $as_echo "no" >&6; }
29295 fi
29296
29297
29298 test -n "$YACC" && break
29299 done
29300 test -n "$YACC" || YACC="yacc"
29301
29302 for ac_prog in flex lex
29303 do
29304 # Extract the first word of "$ac_prog", so it can be a program name with args.
29305 set dummy $ac_prog; ac_word=$2
29306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29307 $as_echo_n "checking for $ac_word... " >&6; }
29308 if ${ac_cv_prog_LEX+:} false; then :
29309 $as_echo_n "(cached) " >&6
29310 else
29311 if test -n "$LEX"; then
29312 ac_cv_prog_LEX="$LEX" # Let the user override the test.
29313 else
29314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29315 for as_dir in $PATH
29316 do
29317 IFS=$as_save_IFS
29318 test -z "$as_dir" && as_dir=.
29319 for ac_exec_ext in '' $ac_executable_extensions; do
29320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29321 ac_cv_prog_LEX="$ac_prog"
29322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29323 break 2
29324 fi
29325 done
29326 done
29327 IFS=$as_save_IFS
29328
29329 fi
29330 fi
29331 LEX=$ac_cv_prog_LEX
29332 if test -n "$LEX"; then
29333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
29334 $as_echo "$LEX" >&6; }
29335 else
29336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29337 $as_echo "no" >&6; }
29338 fi
29339
29340
29341 test -n "$LEX" && break
29342 done
29343 test -n "$LEX" || LEX=":"
29344
29345 if test "x$LEX" != "x:"; then
29346 cat >conftest.l <<_ACEOF
29347 %%
29348 a { ECHO; }
29349 b { REJECT; }
29350 c { yymore (); }
29351 d { yyless (1); }
29352 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
29353 yyless ((input () != 0)); }
29354 f { unput (yytext[0]); }
29355 . { BEGIN INITIAL; }
29356 %%
29357 #ifdef YYTEXT_POINTER
29358 extern char *yytext;
29359 #endif
29360 int
29361 main (void)
29362 {
29363 return ! yylex () + ! yywrap ();
29364 }
29365 _ACEOF
29366 { { ac_try="$LEX conftest.l"
29367 case "(($ac_try" in
29368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29369 *) ac_try_echo=$ac_try;;
29370 esac
29371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
29372 $as_echo "$ac_try_echo"; } >&5
29373 (eval "$LEX conftest.l") 2>&5
29374 ac_status=$?
29375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29376 test $ac_status = 0; }
29377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
29378 $as_echo_n "checking lex output file root... " >&6; }
29379 if ${ac_cv_prog_lex_root+:} false; then :
29380 $as_echo_n "(cached) " >&6
29381 else
29382
29383 if test -f lex.yy.c; then
29384 ac_cv_prog_lex_root=lex.yy
29385 elif test -f lexyy.c; then
29386 ac_cv_prog_lex_root=lexyy
29387 else
29388 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
29389 fi
29390 fi
29391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
29392 $as_echo "$ac_cv_prog_lex_root" >&6; }
29393 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
29394
29395 if test -z "${LEXLIB+set}"; then
29396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
29397 $as_echo_n "checking lex library... " >&6; }
29398 if ${ac_cv_lib_lex+:} false; then :
29399 $as_echo_n "(cached) " >&6
29400 else
29401
29402 ac_save_LIBS=$LIBS
29403 ac_cv_lib_lex='none needed'
29404 for ac_lib in '' -lfl -ll; do
29405 LIBS="$ac_lib $ac_save_LIBS"
29406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29407 /* end confdefs.h. */
29408 `cat $LEX_OUTPUT_ROOT.c`
29409 _ACEOF
29410 if ac_fn_c_try_link "$LINENO"; then :
29411 ac_cv_lib_lex=$ac_lib
29412 fi
29413 rm -f core conftest.err conftest.$ac_objext \
29414 conftest$ac_exeext conftest.$ac_ext
29415 test "$ac_cv_lib_lex" != 'none needed' && break
29416 done
29417 LIBS=$ac_save_LIBS
29418
29419 fi
29420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
29421 $as_echo "$ac_cv_lib_lex" >&6; }
29422 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
29423 fi
29424
29425
29426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
29427 $as_echo_n "checking whether yytext is a pointer... " >&6; }
29428 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
29429 $as_echo_n "(cached) " >&6
29430 else
29431 # POSIX says lex can declare yytext either as a pointer or an array; the
29432 # default is implementation-dependent. Figure out which it is, since
29433 # not all implementations provide the %pointer and %array declarations.
29434 ac_cv_prog_lex_yytext_pointer=no
29435 ac_save_LIBS=$LIBS
29436 LIBS="$LEXLIB $ac_save_LIBS"
29437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29438 /* end confdefs.h. */
29439
29440 #define YYTEXT_POINTER 1
29441 `cat $LEX_OUTPUT_ROOT.c`
29442 _ACEOF
29443 if ac_fn_c_try_link "$LINENO"; then :
29444 ac_cv_prog_lex_yytext_pointer=yes
29445 fi
29446 rm -f core conftest.err conftest.$ac_objext \
29447 conftest$ac_exeext conftest.$ac_ext
29448 LIBS=$ac_save_LIBS
29449
29450 fi
29451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
29452 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
29453 if test $ac_cv_prog_lex_yytext_pointer = yes; then
29454
29455 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
29456
29457 fi
29458 rm -f conftest.l $LEX_OUTPUT_ROOT.c
29459
29460 fi
29461 if test "$LEX" = :; then
29462 LEX=${am_missing_run}flex
29463 fi
29464
29465 # Configs for demos/expr directory
29466 #
29467 # Libtool already runs an AC_CHECK_TOOL for ranlib, but we give
29468 # AC_PROG_RANLIB anyway since automake is supposed to complain if it's not
29469 # called. (Automake 1.8.4 doesn't, at least not when the only library is in
29470 # an EXTRA_LIBRARIES.)
29471 #
29472 if test -n "$ac_tool_prefix"; then
29473 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
29474 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
29475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29476 $as_echo_n "checking for $ac_word... " >&6; }
29477 if ${ac_cv_prog_RANLIB+:} false; then :
29478 $as_echo_n "(cached) " >&6
29479 else
29480 if test -n "$RANLIB"; then
29481 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
29482 else
29483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29484 for as_dir in $PATH
29485 do
29486 IFS=$as_save_IFS
29487 test -z "$as_dir" && as_dir=.
29488 for ac_exec_ext in '' $ac_executable_extensions; do
29489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29490 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
29491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29492 break 2
29493 fi
29494 done
29495 done
29496 IFS=$as_save_IFS
29497
29498 fi
29499 fi
29500 RANLIB=$ac_cv_prog_RANLIB
29501 if test -n "$RANLIB"; then
29502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
29503 $as_echo "$RANLIB" >&6; }
29504 else
29505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29506 $as_echo "no" >&6; }
29507 fi
29508
29509
29510 fi
29511 if test -z "$ac_cv_prog_RANLIB"; then
29512 ac_ct_RANLIB=$RANLIB
29513 # Extract the first word of "ranlib", so it can be a program name with args.
29514 set dummy ranlib; ac_word=$2
29515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29516 $as_echo_n "checking for $ac_word... " >&6; }
29517 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
29518 $as_echo_n "(cached) " >&6
29519 else
29520 if test -n "$ac_ct_RANLIB"; then
29521 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
29522 else
29523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29524 for as_dir in $PATH
29525 do
29526 IFS=$as_save_IFS
29527 test -z "$as_dir" && as_dir=.
29528 for ac_exec_ext in '' $ac_executable_extensions; do
29529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29530 ac_cv_prog_ac_ct_RANLIB="ranlib"
29531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29532 break 2
29533 fi
29534 done
29535 done
29536 IFS=$as_save_IFS
29537
29538 fi
29539 fi
29540 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
29541 if test -n "$ac_ct_RANLIB"; then
29542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
29543 $as_echo "$ac_ct_RANLIB" >&6; }
29544 else
29545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29546 $as_echo "no" >&6; }
29547 fi
29548
29549 if test "x$ac_ct_RANLIB" = x; then
29550 RANLIB=":"
29551 else
29552 case $cross_compiling:$ac_tool_warned in
29553 yes:)
29554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29556 ac_tool_warned=yes ;;
29557 esac
29558 RANLIB=$ac_ct_RANLIB
29559 fi
29560 else
29561 RANLIB="$ac_cv_prog_RANLIB"
29562 fi
29563
29564
29565
29566 # Create config.m4.
29567
29568 echo "creating $gmp_configm4"
29569 echo "d""nl $gmp_configm4. Generated automatically by configure." > $gmp_configm4
29570 if test -f $gmp_tmpconfigm4; then
29571 echo "changequote(<,>)" >> $gmp_configm4
29572 echo "ifdef(<__CONFIG_M4_INCLUDED__>,,<" >> $gmp_configm4
29573 cat $gmp_tmpconfigm4 >> $gmp_configm4
29574 echo ">)" >> $gmp_configm4
29575 echo "changequote(\`,')" >> $gmp_configm4
29576 rm $gmp_tmpconfigm4
29577 fi
29578 echo "ifdef(\`__CONFIG_M4_INCLUDED__',,\`" >> $gmp_configm4
29579 if test -f $gmp_tmpconfigm4i; then
29580 cat $gmp_tmpconfigm4i >> $gmp_configm4
29581 rm $gmp_tmpconfigm4i
29582 fi
29583 if test -f $gmp_tmpconfigm4p; then
29584 cat $gmp_tmpconfigm4p >> $gmp_configm4
29585 rm $gmp_tmpconfigm4p
29586 fi
29587 echo "')" >> $gmp_configm4
29588 echo "define(\`__CONFIG_M4_INCLUDED__')" >> $gmp_configm4
29589
29590
29591 # Create Makefiles
29592 # FIXME: Upcoming version of autoconf/automake may not like broken lines.
29593 # Right now automake isn't accepting the new AC_CONFIG_FILES scheme.
29594
29595 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"
29596
29597 cat >confcache <<\_ACEOF
29598 # This file is a shell script that caches the results of configure
29599 # tests run on this system so they can be shared between configure
29600 # scripts and configure runs, see configure's option --config-cache.
29601 # It is not useful on other systems. If it contains results you don't
29602 # want to keep, you may remove or edit it.
29603 #
29604 # config.status only pays attention to the cache file if you give it
29605 # the --recheck option to rerun configure.
29606 #
29607 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29608 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29609 # following values.
29610
29611 _ACEOF
29612
29613 # The following way of writing the cache mishandles newlines in values,
29614 # but we know of no workaround that is simple, portable, and efficient.
29615 # So, we kill variables containing newlines.
29616 # Ultrix sh set writes to stderr and can't be redirected directly,
29617 # and sets the high bit in the cache file unless we assign to the vars.
29618 (
29619 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29620 eval ac_val=\$$ac_var
29621 case $ac_val in #(
29622 *${as_nl}*)
29623 case $ac_var in #(
29624 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29625 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29626 esac
29627 case $ac_var in #(
29628 _ | IFS | as_nl) ;; #(
29629 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29630 *) { eval $ac_var=; unset $ac_var;} ;;
29631 esac ;;
29632 esac
29633 done
29634
29635 (set) 2>&1 |
29636 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29637 *${as_nl}ac_space=\ *)
29638 # `set' does not quote correctly, so add quotes: double-quote
29639 # substitution turns \\\\ into \\, and sed turns \\ into \.
29640 sed -n \
29641 "s/'/'\\\\''/g;
29642 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29643 ;; #(
29644 *)
29645 # `set' quotes correctly as required by POSIX, so do not add quotes.
29646 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29647 ;;
29648 esac |
29649 sort
29650 ) |
29651 sed '
29652 /^ac_cv_env_/b end
29653 t clear
29654 :clear
29655 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29656 t end
29657 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29658 :end' >>confcache
29659 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29660 if test -w "$cache_file"; then
29661 if test "x$cache_file" != "x/dev/null"; then
29662 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29663 $as_echo "$as_me: updating cache $cache_file" >&6;}
29664 if test ! -f "$cache_file" || test -h "$cache_file"; then
29665 cat confcache >"$cache_file"
29666 else
29667 case $cache_file in #(
29668 */* | ?:*)
29669 mv -f confcache "$cache_file"$$ &&
29670 mv -f "$cache_file"$$ "$cache_file" ;; #(
29671 *)
29672 mv -f confcache "$cache_file" ;;
29673 esac
29674 fi
29675 fi
29676 else
29677 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29678 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29679 fi
29680 fi
29681 rm -f confcache
29682
29683 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29684 # Let make expand exec_prefix.
29685 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29686
29687 DEFS=-DHAVE_CONFIG_H
29688
29689 ac_libobjs=
29690 ac_ltlibobjs=
29691 U=
29692 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29693 # 1. Remove the extension, and $U if already installed.
29694 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29695 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29696 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29697 # will be set to the directory where LIBOBJS objects are built.
29698 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29699 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29700 done
29701 LIBOBJS=$ac_libobjs
29702
29703 LTLIBOBJS=$ac_ltlibobjs
29704
29705
29706 if test -n "$EXEEXT"; then
29707 am__EXEEXT_TRUE=
29708 am__EXEEXT_FALSE='#'
29709 else
29710 am__EXEEXT_TRUE='#'
29711 am__EXEEXT_FALSE=
29712 fi
29713
29714 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29715 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
29716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29717 fi
29718 if test -z "${WANT_CXX_TRUE}" && test -z "${WANT_CXX_FALSE}"; then
29719 as_fn_error $? "conditional \"WANT_CXX\" was never defined.
29720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29721 fi
29722 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
29723 as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined.
29724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29725 fi
29726
29727
29728 : "${CONFIG_STATUS=./config.status}"
29729 ac_write_fail=0
29730 ac_clean_files_save=$ac_clean_files
29731 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29732 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29733 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29734 as_write_fail=0
29735 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29736 #! $SHELL
29737 # Generated by $as_me.
29738 # Run this file to recreate the current configuration.
29739 # Compiler output produced by configure, useful for debugging
29740 # configure, is in config.log if it exists.
29741
29742 debug=false
29743 ac_cs_recheck=false
29744 ac_cs_silent=false
29745
29746 SHELL=\${CONFIG_SHELL-$SHELL}
29747 export SHELL
29748 _ASEOF
29749 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29750 ## -------------------- ##
29751 ## M4sh Initialization. ##
29752 ## -------------------- ##
29753
29754 # Be more Bourne compatible
29755 DUALCASE=1; export DUALCASE # for MKS sh
29756 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29757 emulate sh
29758 NULLCMD=:
29759 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29760 # is contrary to our usage. Disable this feature.
29761 alias -g '${1+"$@"}'='"$@"'
29762 setopt NO_GLOB_SUBST
29763 else
29764 case `(set -o) 2>/dev/null` in #(
29765 *posix*) :
29766 set -o posix ;; #(
29767 *) :
29768 ;;
29769 esac
29770 fi
29771
29772
29773 as_nl='
29774 '
29775 export as_nl
29776 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29777 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29778 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29779 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29780 # Prefer a ksh shell builtin over an external printf program on Solaris,
29781 # but without wasting forks for bash or zsh.
29782 if test -z "$BASH_VERSION$ZSH_VERSION" \
29783 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29784 as_echo='print -r --'
29785 as_echo_n='print -rn --'
29786 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29787 as_echo='printf %s\n'
29788 as_echo_n='printf %s'
29789 else
29790 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29791 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29792 as_echo_n='/usr/ucb/echo -n'
29793 else
29794 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29795 as_echo_n_body='eval
29796 arg=$1;
29797 case $arg in #(
29798 *"$as_nl"*)
29799 expr "X$arg" : "X\\(.*\\)$as_nl";
29800 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29801 esac;
29802 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29803 '
29804 export as_echo_n_body
29805 as_echo_n='sh -c $as_echo_n_body as_echo'
29806 fi
29807 export as_echo_body
29808 as_echo='sh -c $as_echo_body as_echo'
29809 fi
29810
29811 # The user is always right.
29812 if test "${PATH_SEPARATOR+set}" != set; then
29813 PATH_SEPARATOR=:
29814 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29815 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29816 PATH_SEPARATOR=';'
29817 }
29818 fi
29819
29820
29821 # IFS
29822 # We need space, tab and new line, in precisely that order. Quoting is
29823 # there to prevent editors from complaining about space-tab.
29824 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29825 # splitting by setting IFS to empty value.)
29826 IFS=" "" $as_nl"
29827
29828 # Find who we are. Look in the path if we contain no directory separator.
29829 as_myself=
29830 case $0 in #((
29831 *[\\/]* ) as_myself=$0 ;;
29832 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29833 for as_dir in $PATH
29834 do
29835 IFS=$as_save_IFS
29836 test -z "$as_dir" && as_dir=.
29837 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29838 done
29839 IFS=$as_save_IFS
29840
29841 ;;
29842 esac
29843 # We did not find ourselves, most probably we were run as `sh COMMAND'
29844 # in which case we are not to be found in the path.
29845 if test "x$as_myself" = x; then
29846 as_myself=$0
29847 fi
29848 if test ! -f "$as_myself"; then
29849 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29850 exit 1
29851 fi
29852
29853 # Unset variables that we do not need and which cause bugs (e.g. in
29854 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29855 # suppresses any "Segmentation fault" message there. '((' could
29856 # trigger a bug in pdksh 5.2.14.
29857 for as_var in BASH_ENV ENV MAIL MAILPATH
29858 do eval test x\${$as_var+set} = xset \
29859 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29860 done
29861 PS1='$ '
29862 PS2='> '
29863 PS4='+ '
29864
29865 # NLS nuisances.
29866 LC_ALL=C
29867 export LC_ALL
29868 LANGUAGE=C
29869 export LANGUAGE
29870
29871 # CDPATH.
29872 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29873
29874
29875 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29876 # ----------------------------------------
29877 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29878 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29879 # script with STATUS, using 1 if that was 0.
29880 as_fn_error ()
29881 {
29882 as_status=$1; test $as_status -eq 0 && as_status=1
29883 if test "$4"; then
29884 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29885 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29886 fi
29887 $as_echo "$as_me: error: $2" >&2
29888 as_fn_exit $as_status
29889 } # as_fn_error
29890
29891
29892 # as_fn_set_status STATUS
29893 # -----------------------
29894 # Set $? to STATUS, without forking.
29895 as_fn_set_status ()
29896 {
29897 return $1
29898 } # as_fn_set_status
29899
29900 # as_fn_exit STATUS
29901 # -----------------
29902 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29903 as_fn_exit ()
29904 {
29905 set +e
29906 as_fn_set_status $1
29907 exit $1
29908 } # as_fn_exit
29909
29910 # as_fn_unset VAR
29911 # ---------------
29912 # Portably unset VAR.
29913 as_fn_unset ()
29914 {
29915 { eval $1=; unset $1;}
29916 }
29917 as_unset=as_fn_unset
29918 # as_fn_append VAR VALUE
29919 # ----------------------
29920 # Append the text in VALUE to the end of the definition contained in VAR. Take
29921 # advantage of any shell optimizations that allow amortized linear growth over
29922 # repeated appends, instead of the typical quadratic growth present in naive
29923 # implementations.
29924 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29925 eval 'as_fn_append ()
29926 {
29927 eval $1+=\$2
29928 }'
29929 else
29930 as_fn_append ()
29931 {
29932 eval $1=\$$1\$2
29933 }
29934 fi # as_fn_append
29935
29936 # as_fn_arith ARG...
29937 # ------------------
29938 # Perform arithmetic evaluation on the ARGs, and store the result in the
29939 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29940 # must be portable across $(()) and expr.
29941 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29942 eval 'as_fn_arith ()
29943 {
29944 as_val=$(( $* ))
29945 }'
29946 else
29947 as_fn_arith ()
29948 {
29949 as_val=`expr "$@" || test $? -eq 1`
29950 }
29951 fi # as_fn_arith
29952
29953
29954 if expr a : '\(a\)' >/dev/null 2>&1 &&
29955 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29956 as_expr=expr
29957 else
29958 as_expr=false
29959 fi
29960
29961 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29962 as_basename=basename
29963 else
29964 as_basename=false
29965 fi
29966
29967 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29968 as_dirname=dirname
29969 else
29970 as_dirname=false
29971 fi
29972
29973 as_me=`$as_basename -- "$0" ||
29974 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29975 X"$0" : 'X\(//\)$' \| \
29976 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29977 $as_echo X/"$0" |
29978 sed '/^.*\/\([^/][^/]*\)\/*$/{
29979 s//\1/
29980 q
29981 }
29982 /^X\/\(\/\/\)$/{
29983 s//\1/
29984 q
29985 }
29986 /^X\/\(\/\).*/{
29987 s//\1/
29988 q
29989 }
29990 s/.*/./; q'`
29991
29992 # Avoid depending upon Character Ranges.
29993 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29994 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29995 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29996 as_cr_digits='0123456789'
29997 as_cr_alnum=$as_cr_Letters$as_cr_digits
29998
29999 ECHO_C= ECHO_N= ECHO_T=
30000 case `echo -n x` in #(((((
30001 -n*)
30002 case `echo 'xy\c'` in
30003 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30004 xy) ECHO_C='\c';;
30005 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30006 ECHO_T=' ';;
30007 esac;;
30008 *)
30009 ECHO_N='-n';;
30010 esac
30011
30012 rm -f conf$$ conf$$.exe conf$$.file
30013 if test -d conf$$.dir; then
30014 rm -f conf$$.dir/conf$$.file
30015 else
30016 rm -f conf$$.dir
30017 mkdir conf$$.dir 2>/dev/null
30018 fi
30019 if (echo >conf$$.file) 2>/dev/null; then
30020 if ln -s conf$$.file conf$$ 2>/dev/null; then
30021 as_ln_s='ln -s'
30022 # ... but there are two gotchas:
30023 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30024 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30025 # In both cases, we have to default to `cp -pR'.
30026 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30027 as_ln_s='cp -pR'
30028 elif ln conf$$.file conf$$ 2>/dev/null; then
30029 as_ln_s=ln
30030 else
30031 as_ln_s='cp -pR'
30032 fi
30033 else
30034 as_ln_s='cp -pR'
30035 fi
30036 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30037 rmdir conf$$.dir 2>/dev/null
30038
30039
30040 # as_fn_mkdir_p
30041 # -------------
30042 # Create "$as_dir" as a directory, including parents if necessary.
30043 as_fn_mkdir_p ()
30044 {
30045
30046 case $as_dir in #(
30047 -*) as_dir=./$as_dir;;
30048 esac
30049 test -d "$as_dir" || eval $as_mkdir_p || {
30050 as_dirs=
30051 while :; do
30052 case $as_dir in #(
30053 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30054 *) as_qdir=$as_dir;;
30055 esac
30056 as_dirs="'$as_qdir' $as_dirs"
30057 as_dir=`$as_dirname -- "$as_dir" ||
30058 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30059 X"$as_dir" : 'X\(//\)[^/]' \| \
30060 X"$as_dir" : 'X\(//\)$' \| \
30061 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30062 $as_echo X"$as_dir" |
30063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30064 s//\1/
30065 q
30066 }
30067 /^X\(\/\/\)[^/].*/{
30068 s//\1/
30069 q
30070 }
30071 /^X\(\/\/\)$/{
30072 s//\1/
30073 q
30074 }
30075 /^X\(\/\).*/{
30076 s//\1/
30077 q
30078 }
30079 s/.*/./; q'`
30080 test -d "$as_dir" && break
30081 done
30082 test -z "$as_dirs" || eval "mkdir $as_dirs"
30083 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30084
30085
30086 } # as_fn_mkdir_p
30087 if mkdir -p . 2>/dev/null; then
30088 as_mkdir_p='mkdir -p "$as_dir"'
30089 else
30090 test -d ./-p && rmdir ./-p
30091 as_mkdir_p=false
30092 fi
30093
30094
30095 # as_fn_executable_p FILE
30096 # -----------------------
30097 # Test if FILE is an executable regular file.
30098 as_fn_executable_p ()
30099 {
30100 test -f "$1" && test -x "$1"
30101 } # as_fn_executable_p
30102 as_test_x='test -x'
30103 as_executable_p=as_fn_executable_p
30104
30105 # Sed expression to map a string onto a valid CPP name.
30106 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30107
30108 # Sed expression to map a string onto a valid variable name.
30109 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30110
30111
30112 exec 6>&1
30113 ## ----------------------------------- ##
30114 ## Main body of $CONFIG_STATUS script. ##
30115 ## ----------------------------------- ##
30116 _ASEOF
30117 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30118
30119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30120 # Save the log message, to keep $0 and so on meaningful, and to
30121 # report actual input values of CONFIG_FILES etc. instead of their
30122 # values after options handling.
30123 ac_log="
30124 This file was extended by GNU MP $as_me 5.1.3, which was
30125 generated by GNU Autoconf 2.69. Invocation command line was
30126
30127 CONFIG_FILES = $CONFIG_FILES
30128 CONFIG_HEADERS = $CONFIG_HEADERS
30129 CONFIG_LINKS = $CONFIG_LINKS
30130 CONFIG_COMMANDS = $CONFIG_COMMANDS
30131 $ $0 $@
30132
30133 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30134 "
30135
30136 _ACEOF
30137
30138 case $ac_config_files in *"
30139 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30140 esac
30141
30142 case $ac_config_headers in *"
30143 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30144 esac
30145
30146
30147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30148 # Files that config.status was made for.
30149 config_files="$ac_config_files"
30150 config_headers="$ac_config_headers"
30151 config_links="$ac_config_links"
30152 config_commands="$ac_config_commands"
30153
30154 _ACEOF
30155
30156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30157 ac_cs_usage="\
30158 \`$as_me' instantiates files and other configuration actions
30159 from templates according to the current configuration. Unless the files
30160 and actions are specified as TAGs, all are instantiated by default.
30161
30162 Usage: $0 [OPTION]... [TAG]...
30163
30164 -h, --help print this help, then exit
30165 -V, --version print version number and configuration settings, then exit
30166 --config print configuration, then exit
30167 -q, --quiet, --silent
30168 do not print progress messages
30169 -d, --debug don't remove temporary files
30170 --recheck update $as_me by reconfiguring in the same conditions
30171 --file=FILE[:TEMPLATE]
30172 instantiate the configuration file FILE
30173 --header=FILE[:TEMPLATE]
30174 instantiate the configuration header FILE
30175
30176 Configuration files:
30177 $config_files
30178
30179 Configuration headers:
30180 $config_headers
30181
30182 Configuration links:
30183 $config_links
30184
30185 Configuration commands:
30186 $config_commands
30187
30188 Report bugs to <gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html>.
30189 GNU MP home page: <http://www.gnu.org/software/gmp/>.
30190 General help using GNU software: <http://www.gnu.org/gethelp/>."
30191
30192 _ACEOF
30193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30194 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30195 ac_cs_version="\\
30196 GNU MP config.status 5.1.3
30197 configured by $0, generated by GNU Autoconf 2.69,
30198 with options \\"\$ac_cs_config\\"
30199
30200 Copyright (C) 2012 Free Software Foundation, Inc.
30201 This config.status script is free software; the Free Software Foundation
30202 gives unlimited permission to copy, distribute and modify it."
30203
30204 ac_pwd='$ac_pwd'
30205 srcdir='$srcdir'
30206 INSTALL='$INSTALL'
30207 MKDIR_P='$MKDIR_P'
30208 AWK='$AWK'
30209 test -n "\$AWK" || AWK=awk
30210 _ACEOF
30211
30212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30213 # The default lists apply if the user does not specify any file.
30214 ac_need_defaults=:
30215 while test $# != 0
30216 do
30217 case $1 in
30218 --*=?*)
30219 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30220 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30221 ac_shift=:
30222 ;;
30223 --*=)
30224 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30225 ac_optarg=
30226 ac_shift=:
30227 ;;
30228 *)
30229 ac_option=$1
30230 ac_optarg=$2
30231 ac_shift=shift
30232 ;;
30233 esac
30234
30235 case $ac_option in
30236 # Handling of the options.
30237 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30238 ac_cs_recheck=: ;;
30239 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30240 $as_echo "$ac_cs_version"; exit ;;
30241 --config | --confi | --conf | --con | --co | --c )
30242 $as_echo "$ac_cs_config"; exit ;;
30243 --debug | --debu | --deb | --de | --d | -d )
30244 debug=: ;;
30245 --file | --fil | --fi | --f )
30246 $ac_shift
30247 case $ac_optarg in
30248 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30249 '') as_fn_error $? "missing file argument" ;;
30250 esac
30251 as_fn_append CONFIG_FILES " '$ac_optarg'"
30252 ac_need_defaults=false;;
30253 --header | --heade | --head | --hea )
30254 $ac_shift
30255 case $ac_optarg in
30256 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30257 esac
30258 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30259 ac_need_defaults=false;;
30260 --he | --h)
30261 # Conflict between --help and --header
30262 as_fn_error $? "ambiguous option: \`$1'
30263 Try \`$0 --help' for more information.";;
30264 --help | --hel | -h )
30265 $as_echo "$ac_cs_usage"; exit ;;
30266 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30267 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30268 ac_cs_silent=: ;;
30269
30270 # This is an error.
30271 -*) as_fn_error $? "unrecognized option: \`$1'
30272 Try \`$0 --help' for more information." ;;
30273
30274 *) as_fn_append ac_config_targets " $1"
30275 ac_need_defaults=false ;;
30276
30277 esac
30278 shift
30279 done
30280
30281 ac_configure_extra_args=
30282
30283 if $ac_cs_silent; then
30284 exec 6>/dev/null
30285 ac_configure_extra_args="$ac_configure_extra_args --silent"
30286 fi
30287
30288 _ACEOF
30289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30290 if \$ac_cs_recheck; then
30291 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30292 shift
30293 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30294 CONFIG_SHELL='$SHELL'
30295 export CONFIG_SHELL
30296 exec "\$@"
30297 fi
30298
30299 _ACEOF
30300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30301 exec 5>>config.log
30302 {
30303 echo
30304 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30305 ## Running $as_me. ##
30306 _ASBOX
30307 $as_echo "$ac_log"
30308 } >&5
30309
30310 _ACEOF
30311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30312 #
30313 # INIT-COMMANDS
30314 #
30315
30316
30317 # The HP-UX ksh and POSIX shell print the target directory to stdout
30318 # if CDPATH is set.
30319 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30320
30321 sed_quote_subst='$sed_quote_subst'
30322 double_quote_subst='$double_quote_subst'
30323 delay_variable_subst='$delay_variable_subst'
30324 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
30325 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
30326 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
30327 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
30328 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
30329 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
30330 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
30331 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
30332 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
30333 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
30334 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
30335 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
30336 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
30337 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
30338 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
30339 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
30340 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
30341 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
30342 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
30343 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
30344 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
30345 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
30346 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
30347 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
30348 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
30349 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
30350 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
30351 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
30352 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
30353 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
30354 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
30355 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
30356 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
30357 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
30358 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
30359 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
30360 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
30361 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
30362 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
30363 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
30364 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
30365 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
30366 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
30367 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
30368 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
30369 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
30370 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
30371 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
30372 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
30373 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
30374 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
30375 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
30376 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
30377 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
30378 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
30379 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
30380 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
30381 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"`'
30382 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
30383 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
30384 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
30385 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
30386 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
30387 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
30388 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
30389 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
30390 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
30391 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
30392 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
30393 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
30394 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
30395 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
30396 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
30397 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
30398 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
30399 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
30400 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
30401 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
30402 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
30403 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
30404 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
30405 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
30406 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
30407 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
30408 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
30409 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
30410 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
30411 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
30412 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
30413 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
30414 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
30415 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
30416 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
30417 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
30418 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
30419 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
30420 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
30421 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
30422 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
30423 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
30424 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
30425 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
30426 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
30427 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
30428 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
30429 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
30430 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
30431 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
30432 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
30433 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
30434 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
30435 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
30436 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
30437 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
30438 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
30439 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
30440 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
30441 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
30442 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
30443 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
30444 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
30445 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
30446 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
30447 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
30448 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
30449 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
30450 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
30451 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
30452 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
30453 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
30454 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
30455 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
30456 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
30457 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
30458 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
30459 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
30460 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
30461 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
30462 LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
30463 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
30464 reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
30465 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30466 reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
30467 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30468 old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
30469 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
30470 compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
30471 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
30472 GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
30473 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
30474 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
30475 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
30476 lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
30477 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
30478 lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
30479 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
30480 lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
30481 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
30482 lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
30483 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
30484 archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
30485 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
30486 enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
30487 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
30488 export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
30489 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
30490 whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
30491 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
30492 compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
30493 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30494 old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
30495 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30496 old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
30497 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30498 archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
30499 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30500 archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
30501 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30502 module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
30503 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30504 module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
30505 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
30506 with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
30507 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
30508 allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
30509 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
30510 no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
30511 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
30512 hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
30513 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
30514 hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
30515 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
30516 hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
30517 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
30518 hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
30519 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
30520 hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
30521 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
30522 hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
30523 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
30524 hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
30525 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
30526 inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
30527 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
30528 link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
30529 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
30530 always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
30531 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30532 export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
30533 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
30534 exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
30535 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
30536 include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
30537 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30538 prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
30539 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30540 postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
30541 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
30542 file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
30543 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
30544 hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
30545 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
30546 compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`'
30547 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
30548 predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`'
30549 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
30550 postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`'
30551 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
30552 predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`'
30553 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
30554 postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`'
30555 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
30556 compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`'
30557
30558 LTCC='$LTCC'
30559 LTCFLAGS='$LTCFLAGS'
30560 compiler='$compiler_DEFAULT'
30561
30562 # A function that is used when there is no print builtin or printf.
30563 func_fallback_echo ()
30564 {
30565 eval 'cat <<_LTECHO_EOF
30566 \$1
30567 _LTECHO_EOF'
30568 }
30569
30570 # Quote evaled strings.
30571 for var in NM \
30572 AS \
30573 DLLTOOL \
30574 OBJDUMP \
30575 SHELL \
30576 ECHO \
30577 PATH_SEPARATOR \
30578 SED \
30579 GREP \
30580 EGREP \
30581 FGREP \
30582 LD \
30583 LN_S \
30584 lt_SP2NL \
30585 lt_NL2SP \
30586 reload_flag \
30587 deplibs_check_method \
30588 file_magic_cmd \
30589 file_magic_glob \
30590 want_nocaseglob \
30591 sharedlib_from_linklib_cmd \
30592 AR \
30593 AR_FLAGS \
30594 archiver_list_spec \
30595 STRIP \
30596 RANLIB \
30597 CC \
30598 CFLAGS \
30599 compiler \
30600 lt_cv_sys_global_symbol_pipe \
30601 lt_cv_sys_global_symbol_to_cdecl \
30602 lt_cv_sys_global_symbol_to_c_name_address \
30603 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30604 nm_file_list_spec \
30605 lt_prog_compiler_no_builtin_flag \
30606 lt_prog_compiler_pic \
30607 lt_prog_compiler_wl \
30608 lt_prog_compiler_static \
30609 lt_cv_prog_compiler_c_o \
30610 need_locks \
30611 MANIFEST_TOOL \
30612 DSYMUTIL \
30613 NMEDIT \
30614 LIPO \
30615 OTOOL \
30616 OTOOL64 \
30617 shrext_cmds \
30618 export_dynamic_flag_spec \
30619 whole_archive_flag_spec \
30620 compiler_needs_object \
30621 with_gnu_ld \
30622 allow_undefined_flag \
30623 no_undefined_flag \
30624 hardcode_libdir_flag_spec \
30625 hardcode_libdir_separator \
30626 exclude_expsyms \
30627 include_expsyms \
30628 file_list_spec \
30629 variables_saved_for_relink \
30630 libname_spec \
30631 library_names_spec \
30632 soname_spec \
30633 install_override_mode \
30634 finish_eval \
30635 old_striplib \
30636 striplib \
30637 compiler_lib_search_dirs \
30638 predep_objects \
30639 postdep_objects \
30640 predeps \
30641 postdeps \
30642 compiler_lib_search_path \
30643 LD_CXX \
30644 LD_F77 \
30645 reload_flag_CXX \
30646 reload_flag_F77 \
30647 compiler_CXX \
30648 compiler_F77 \
30649 lt_prog_compiler_no_builtin_flag_CXX \
30650 lt_prog_compiler_no_builtin_flag_F77 \
30651 lt_prog_compiler_pic_CXX \
30652 lt_prog_compiler_pic_F77 \
30653 lt_prog_compiler_wl_CXX \
30654 lt_prog_compiler_wl_F77 \
30655 lt_prog_compiler_static_CXX \
30656 lt_prog_compiler_static_F77 \
30657 lt_cv_prog_compiler_c_o_CXX \
30658 lt_cv_prog_compiler_c_o_F77 \
30659 export_dynamic_flag_spec_CXX \
30660 export_dynamic_flag_spec_F77 \
30661 whole_archive_flag_spec_CXX \
30662 whole_archive_flag_spec_F77 \
30663 compiler_needs_object_CXX \
30664 compiler_needs_object_F77 \
30665 with_gnu_ld_CXX \
30666 with_gnu_ld_F77 \
30667 allow_undefined_flag_CXX \
30668 allow_undefined_flag_F77 \
30669 no_undefined_flag_CXX \
30670 no_undefined_flag_F77 \
30671 hardcode_libdir_flag_spec_CXX \
30672 hardcode_libdir_flag_spec_F77 \
30673 hardcode_libdir_separator_CXX \
30674 hardcode_libdir_separator_F77 \
30675 exclude_expsyms_CXX \
30676 exclude_expsyms_F77 \
30677 include_expsyms_CXX \
30678 include_expsyms_F77 \
30679 file_list_spec_CXX \
30680 file_list_spec_F77 \
30681 compiler_lib_search_dirs_CXX \
30682 compiler_lib_search_dirs_F77 \
30683 predep_objects_CXX \
30684 predep_objects_F77 \
30685 postdep_objects_CXX \
30686 postdep_objects_F77 \
30687 predeps_CXX \
30688 predeps_F77 \
30689 postdeps_CXX \
30690 postdeps_F77 \
30691 compiler_lib_search_path_CXX \
30692 compiler_lib_search_path_F77; do
30693 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
30694 *[\\\\\\\`\\"\\\$]*)
30695 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30696 ;;
30697 *)
30698 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30699 ;;
30700 esac
30701 done
30702
30703 # Double-quote double-evaled strings.
30704 for var in reload_cmds \
30705 old_postinstall_cmds \
30706 old_postuninstall_cmds \
30707 old_archive_cmds \
30708 extract_expsyms_cmds \
30709 old_archive_from_new_cmds \
30710 old_archive_from_expsyms_cmds \
30711 archive_cmds \
30712 archive_expsym_cmds \
30713 module_cmds \
30714 module_expsym_cmds \
30715 export_symbols_cmds \
30716 prelink_cmds \
30717 postlink_cmds \
30718 postinstall_cmds \
30719 postuninstall_cmds \
30720 finish_cmds \
30721 sys_lib_search_path_spec \
30722 sys_lib_dlsearch_path_spec \
30723 reload_cmds_CXX \
30724 reload_cmds_F77 \
30725 old_archive_cmds_CXX \
30726 old_archive_cmds_F77 \
30727 old_archive_from_new_cmds_CXX \
30728 old_archive_from_new_cmds_F77 \
30729 old_archive_from_expsyms_cmds_CXX \
30730 old_archive_from_expsyms_cmds_F77 \
30731 archive_cmds_CXX \
30732 archive_cmds_F77 \
30733 archive_expsym_cmds_CXX \
30734 archive_expsym_cmds_F77 \
30735 module_cmds_CXX \
30736 module_cmds_F77 \
30737 module_expsym_cmds_CXX \
30738 module_expsym_cmds_F77 \
30739 export_symbols_cmds_CXX \
30740 export_symbols_cmds_F77 \
30741 prelink_cmds_CXX \
30742 prelink_cmds_F77 \
30743 postlink_cmds_CXX \
30744 postlink_cmds_F77; do
30745 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
30746 *[\\\\\\\`\\"\\\$]*)
30747 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30748 ;;
30749 *)
30750 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30751 ;;
30752 esac
30753 done
30754
30755 ac_aux_dir='$ac_aux_dir'
30756 xsi_shell='$xsi_shell'
30757 lt_shell_append='$lt_shell_append'
30758
30759 # See if we are running on zsh, and set the options which allow our
30760 # commands through without removal of \ escapes INIT.
30761 if test -n "\${ZSH_VERSION+set}" ; then
30762 setopt NO_GLOB_SUBST
30763 fi
30764
30765
30766 PACKAGE='$PACKAGE'
30767 VERSION='$VERSION'
30768 TIMESTAMP='$TIMESTAMP'
30769 RM='$RM'
30770 ofile='$ofile'
30771
30772
30773
30774
30775
30776
30777
30778
30779 _ACEOF
30780
30781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30782
30783 # Handling of arguments.
30784 for ac_config_target in $ac_config_targets
30785 do
30786 case $ac_config_target in
30787 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
30788 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30789 "mpn/$tmp_fn.$tmp_ext") CONFIG_LINKS="$CONFIG_LINKS mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext" ;;
30790 "gmp-mparam.h") CONFIG_LINKS="$CONFIG_LINKS gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h" ;;
30791 "demos/pexpr-config.h") CONFIG_FILES="$CONFIG_FILES demos/pexpr-config.h:demos/pexpr-config-h.in" ;;
30792 "demos/calc/calc-config.h") CONFIG_FILES="$CONFIG_FILES demos/calc/calc-config.h:demos/calc/calc-config-h.in" ;;
30793 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30794 "mpf/Makefile") CONFIG_FILES="$CONFIG_FILES mpf/Makefile" ;;
30795 "mpn/Makefile") CONFIG_FILES="$CONFIG_FILES mpn/Makefile" ;;
30796 "mpq/Makefile") CONFIG_FILES="$CONFIG_FILES mpq/Makefile" ;;
30797 "mpz/Makefile") CONFIG_FILES="$CONFIG_FILES mpz/Makefile" ;;
30798 "printf/Makefile") CONFIG_FILES="$CONFIG_FILES printf/Makefile" ;;
30799 "scanf/Makefile") CONFIG_FILES="$CONFIG_FILES scanf/Makefile" ;;
30800 "rand/Makefile") CONFIG_FILES="$CONFIG_FILES rand/Makefile" ;;
30801 "cxx/Makefile") CONFIG_FILES="$CONFIG_FILES cxx/Makefile" ;;
30802 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
30803 "tests/devel/Makefile") CONFIG_FILES="$CONFIG_FILES tests/devel/Makefile" ;;
30804 "tests/mpf/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpf/Makefile" ;;
30805 "tests/mpn/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpn/Makefile" ;;
30806 "tests/mpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpq/Makefile" ;;
30807 "tests/mpz/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpz/Makefile" ;;
30808 "tests/rand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rand/Makefile" ;;
30809 "tests/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
30810 "tests/cxx/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxx/Makefile" ;;
30811 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
30812 "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
30813 "demos/Makefile") CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;;
30814 "demos/calc/Makefile") CONFIG_FILES="$CONFIG_FILES demos/calc/Makefile" ;;
30815 "demos/expr/Makefile") CONFIG_FILES="$CONFIG_FILES demos/expr/Makefile" ;;
30816 "gmp.h") CONFIG_FILES="$CONFIG_FILES gmp.h:gmp-h.in" ;;
30817
30818 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30819 esac
30820 done
30821
30822
30823 # If the user did not use the arguments to specify the items to instantiate,
30824 # then the envvar interface is used. Set only those that are not.
30825 # We use the long form for the default assignment because of an extremely
30826 # bizarre bug on SunOS 4.1.3.
30827 if $ac_need_defaults; then
30828 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30829 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30830 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30831 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30832 fi
30833
30834 # Have a temporary directory for convenience. Make it in the build tree
30835 # simply because there is no reason against having it here, and in addition,
30836 # creating and moving files from /tmp can sometimes cause problems.
30837 # Hook for its removal unless debugging.
30838 # Note that there is a small window in which the directory will not be cleaned:
30839 # after its creation but before its name has been assigned to `$tmp'.
30840 $debug ||
30841 {
30842 tmp= ac_tmp=
30843 trap 'exit_status=$?
30844 : "${ac_tmp:=$tmp}"
30845 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30846 ' 0
30847 trap 'as_fn_exit 1' 1 2 13 15
30848 }
30849 # Create a (secure) tmp directory for tmp files.
30850
30851 {
30852 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30853 test -d "$tmp"
30854 } ||
30855 {
30856 tmp=./conf$$-$RANDOM
30857 (umask 077 && mkdir "$tmp")
30858 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
30859 ac_tmp=$tmp
30860
30861 # Set up the scripts for CONFIG_FILES section.
30862 # No need to generate them if there are no CONFIG_FILES.
30863 # This happens for instance with `./config.status config.h'.
30864 if test -n "$CONFIG_FILES"; then
30865
30866
30867 ac_cr=`echo X | tr X '\015'`
30868 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30869 # But we know of no other shell where ac_cr would be empty at this
30870 # point, so we can use a bashism as a fallback.
30871 if test "x$ac_cr" = x; then
30872 eval ac_cr=\$\'\\r\'
30873 fi
30874 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30875 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30876 ac_cs_awk_cr='\\r'
30877 else
30878 ac_cs_awk_cr=$ac_cr
30879 fi
30880
30881 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
30882 _ACEOF
30883
30884
30885 {
30886 echo "cat >conf$$subs.awk <<_ACEOF" &&
30887 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30888 echo "_ACEOF"
30889 } >conf$$subs.sh ||
30890 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30891 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30892 ac_delim='%!_!# '
30893 for ac_last_try in false false false false false :; do
30894 . ./conf$$subs.sh ||
30895 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30896
30897 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30898 if test $ac_delim_n = $ac_delim_num; then
30899 break
30900 elif $ac_last_try; then
30901 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30902 else
30903 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30904 fi
30905 done
30906 rm -f conf$$subs.sh
30907
30908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30909 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
30910 _ACEOF
30911 sed -n '
30912 h
30913 s/^/S["/; s/!.*/"]=/
30914 p
30915 g
30916 s/^[^!]*!//
30917 :repl
30918 t repl
30919 s/'"$ac_delim"'$//
30920 t delim
30921 :nl
30922 h
30923 s/\(.\{148\}\)..*/\1/
30924 t more1
30925 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30926 p
30927 n
30928 b repl
30929 :more1
30930 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30931 p
30932 g
30933 s/.\{148\}//
30934 t nl
30935 :delim
30936 h
30937 s/\(.\{148\}\)..*/\1/
30938 t more2
30939 s/["\\]/\\&/g; s/^/"/; s/$/"/
30940 p
30941 b
30942 :more2
30943 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30944 p
30945 g
30946 s/.\{148\}//
30947 t delim
30948 ' <conf$$subs.awk | sed '
30949 /^[^""]/{
30950 N
30951 s/\n//
30952 }
30953 ' >>$CONFIG_STATUS || ac_write_fail=1
30954 rm -f conf$$subs.awk
30955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30956 _ACAWK
30957 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
30958 for (key in S) S_is_set[key] = 1
30959 FS = ""
30960
30961 }
30962 {
30963 line = $ 0
30964 nfields = split(line, field, "@")
30965 substed = 0
30966 len = length(field[1])
30967 for (i = 2; i < nfields; i++) {
30968 key = field[i]
30969 keylen = length(key)
30970 if (S_is_set[key]) {
30971 value = S[key]
30972 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30973 len += length(value) + length(field[++i])
30974 substed = 1
30975 } else
30976 len += 1 + keylen
30977 }
30978
30979 print line
30980 }
30981
30982 _ACAWK
30983 _ACEOF
30984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30985 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30986 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30987 else
30988 cat
30989 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
30990 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
30991 _ACEOF
30992
30993 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
30994 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
30995 # trailing colons and then remove the whole line if VPATH becomes empty
30996 # (actually we leave an empty line to preserve line numbers).
30997 if test "x$srcdir" = x.; then
30998 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
30999 h
31000 s///
31001 s/^/:/
31002 s/[ ]*$/:/
31003 s/:\$(srcdir):/:/g
31004 s/:\${srcdir}:/:/g
31005 s/:@srcdir@:/:/g
31006 s/^:*//
31007 s/:*$//
31008 x
31009 s/\(=[ ]*\).*/\1/
31010 G
31011 s/\n//
31012 s/^[^=]*=[ ]*$//
31013 }'
31014 fi
31015
31016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31017 fi # test -n "$CONFIG_FILES"
31018
31019 # Set up the scripts for CONFIG_HEADERS section.
31020 # No need to generate them if there are no CONFIG_HEADERS.
31021 # This happens for instance with `./config.status Makefile'.
31022 if test -n "$CONFIG_HEADERS"; then
31023 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31024 BEGIN {
31025 _ACEOF
31026
31027 # Transform confdefs.h into an awk script `defines.awk', embedded as
31028 # here-document in config.status, that substitutes the proper values into
31029 # config.h.in to produce config.h.
31030
31031 # Create a delimiter string that does not exist in confdefs.h, to ease
31032 # handling of long lines.
31033 ac_delim='%!_!# '
31034 for ac_last_try in false false :; do
31035 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31036 if test -z "$ac_tt"; then
31037 break
31038 elif $ac_last_try; then
31039 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31040 else
31041 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31042 fi
31043 done
31044
31045 # For the awk script, D is an array of macro values keyed by name,
31046 # likewise P contains macro parameters if any. Preserve backslash
31047 # newline sequences.
31048
31049 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31050 sed -n '
31051 s/.\{148\}/&'"$ac_delim"'/g
31052 t rset
31053 :rset
31054 s/^[ ]*#[ ]*define[ ][ ]*/ /
31055 t def
31056 d
31057 :def
31058 s/\\$//
31059 t bsnl
31060 s/["\\]/\\&/g
31061 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31062 D["\1"]=" \3"/p
31063 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31064 d
31065 :bsnl
31066 s/["\\]/\\&/g
31067 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31068 D["\1"]=" \3\\\\\\n"\\/p
31069 t cont
31070 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31071 t cont
31072 d
31073 :cont
31074 n
31075 s/.\{148\}/&'"$ac_delim"'/g
31076 t clear
31077 :clear
31078 s/\\$//
31079 t bsnlc
31080 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31081 d
31082 :bsnlc
31083 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31084 b cont
31085 ' <confdefs.h | sed '
31086 s/'"$ac_delim"'/"\\\
31087 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31088
31089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31090 for (key in D) D_is_set[key] = 1
31091 FS = ""
31092 }
31093 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31094 line = \$ 0
31095 split(line, arg, " ")
31096 if (arg[1] == "#") {
31097 defundef = arg[2]
31098 mac1 = arg[3]
31099 } else {
31100 defundef = substr(arg[1], 2)
31101 mac1 = arg[2]
31102 }
31103 split(mac1, mac2, "(") #)
31104 macro = mac2[1]
31105 prefix = substr(line, 1, index(line, defundef) - 1)
31106 if (D_is_set[macro]) {
31107 # Preserve the white space surrounding the "#".
31108 print prefix "define", macro P[macro] D[macro]
31109 next
31110 } else {
31111 # Replace #undef with comments. This is necessary, for example,
31112 # in the case of _POSIX_SOURCE, which is predefined and required
31113 # on some systems where configure will not decide to define it.
31114 if (defundef == "undef") {
31115 print "/*", prefix defundef, macro, "*/"
31116 next
31117 }
31118 }
31119 }
31120 { print }
31121 _ACAWK
31122 _ACEOF
31123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31124 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31125 fi # test -n "$CONFIG_HEADERS"
31126
31127
31128 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31129 shift
31130 for ac_tag
31131 do
31132 case $ac_tag in
31133 :[FHLC]) ac_mode=$ac_tag; continue;;
31134 esac
31135 case $ac_mode$ac_tag in
31136 :[FHL]*:*);;
31137 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31138 :[FH]-) ac_tag=-:-;;
31139 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31140 esac
31141 ac_save_IFS=$IFS
31142 IFS=:
31143 set x $ac_tag
31144 IFS=$ac_save_IFS
31145 shift
31146 ac_file=$1
31147 shift
31148
31149 case $ac_mode in
31150 :L) ac_source=$1;;
31151 :[FH])
31152 ac_file_inputs=
31153 for ac_f
31154 do
31155 case $ac_f in
31156 -) ac_f="$ac_tmp/stdin";;
31157 *) # Look for the file first in the build tree, then in the source tree
31158 # (if the path is not absolute). The absolute path cannot be DOS-style,
31159 # because $ac_f cannot contain `:'.
31160 test -f "$ac_f" ||
31161 case $ac_f in
31162 [\\/$]*) false;;
31163 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31164 esac ||
31165 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31166 esac
31167 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31168 as_fn_append ac_file_inputs " '$ac_f'"
31169 done
31170
31171 # Let's still pretend it is `configure' which instantiates (i.e., don't
31172 # use $as_me), people would be surprised to read:
31173 # /* config.h. Generated by config.status. */
31174 configure_input='Generated from '`
31175 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31176 `' by configure.'
31177 if test x"$ac_file" != x-; then
31178 configure_input="$ac_file. $configure_input"
31179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31180 $as_echo "$as_me: creating $ac_file" >&6;}
31181 fi
31182 # Neutralize special characters interpreted by sed in replacement strings.
31183 case $configure_input in #(
31184 *\&* | *\|* | *\\* )
31185 ac_sed_conf_input=`$as_echo "$configure_input" |
31186 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31187 *) ac_sed_conf_input=$configure_input;;
31188 esac
31189
31190 case $ac_tag in
31191 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31192 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31193 esac
31194 ;;
31195 esac
31196
31197 ac_dir=`$as_dirname -- "$ac_file" ||
31198 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31199 X"$ac_file" : 'X\(//\)[^/]' \| \
31200 X"$ac_file" : 'X\(//\)$' \| \
31201 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31202 $as_echo X"$ac_file" |
31203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31204 s//\1/
31205 q
31206 }
31207 /^X\(\/\/\)[^/].*/{
31208 s//\1/
31209 q
31210 }
31211 /^X\(\/\/\)$/{
31212 s//\1/
31213 q
31214 }
31215 /^X\(\/\).*/{
31216 s//\1/
31217 q
31218 }
31219 s/.*/./; q'`
31220 as_dir="$ac_dir"; as_fn_mkdir_p
31221 ac_builddir=.
31222
31223 case "$ac_dir" in
31224 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31225 *)
31226 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31227 # A ".." for each directory in $ac_dir_suffix.
31228 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31229 case $ac_top_builddir_sub in
31230 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31231 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31232 esac ;;
31233 esac
31234 ac_abs_top_builddir=$ac_pwd
31235 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31236 # for backward compatibility:
31237 ac_top_builddir=$ac_top_build_prefix
31238
31239 case $srcdir in
31240 .) # We are building in place.
31241 ac_srcdir=.
31242 ac_top_srcdir=$ac_top_builddir_sub
31243 ac_abs_top_srcdir=$ac_pwd ;;
31244 [\\/]* | ?:[\\/]* ) # Absolute name.
31245 ac_srcdir=$srcdir$ac_dir_suffix;
31246 ac_top_srcdir=$srcdir
31247 ac_abs_top_srcdir=$srcdir ;;
31248 *) # Relative name.
31249 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31250 ac_top_srcdir=$ac_top_build_prefix$srcdir
31251 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31252 esac
31253 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31254
31255
31256 case $ac_mode in
31257 :F)
31258 #
31259 # CONFIG_FILE
31260 #
31261
31262 case $INSTALL in
31263 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31264 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31265 esac
31266 ac_MKDIR_P=$MKDIR_P
31267 case $MKDIR_P in
31268 [\\/$]* | ?:[\\/]* ) ;;
31269 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31270 esac
31271 _ACEOF
31272
31273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31274 # If the template does not know about datarootdir, expand it.
31275 # FIXME: This hack should be removed a few years after 2.60.
31276 ac_datarootdir_hack=; ac_datarootdir_seen=
31277 ac_sed_dataroot='
31278 /datarootdir/ {
31279 p
31280 q
31281 }
31282 /@datadir@/p
31283 /@docdir@/p
31284 /@infodir@/p
31285 /@localedir@/p
31286 /@mandir@/p'
31287 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31288 *datarootdir*) ac_datarootdir_seen=yes;;
31289 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31291 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31292 _ACEOF
31293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31294 ac_datarootdir_hack='
31295 s&@datadir@&$datadir&g
31296 s&@docdir@&$docdir&g
31297 s&@infodir@&$infodir&g
31298 s&@localedir@&$localedir&g
31299 s&@mandir@&$mandir&g
31300 s&\\\${datarootdir}&$datarootdir&g' ;;
31301 esac
31302 _ACEOF
31303
31304 # Neutralize VPATH when `$srcdir' = `.'.
31305 # Shell code in configure.ac might set extrasub.
31306 # FIXME: do we really want to maintain this feature?
31307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31308 ac_sed_extra="$ac_vpsub
31309 $extrasub
31310 _ACEOF
31311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31312 :t
31313 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31314 s|@configure_input@|$ac_sed_conf_input|;t t
31315 s&@top_builddir@&$ac_top_builddir_sub&;t t
31316 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31317 s&@srcdir@&$ac_srcdir&;t t
31318 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31319 s&@top_srcdir@&$ac_top_srcdir&;t t
31320 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31321 s&@builddir@&$ac_builddir&;t t
31322 s&@abs_builddir@&$ac_abs_builddir&;t t
31323 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31324 s&@INSTALL@&$ac_INSTALL&;t t
31325 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31326 $ac_datarootdir_hack
31327 "
31328 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
31329 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31330
31331 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31332 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31333 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31334 "$ac_tmp/out"`; test -z "$ac_out"; } &&
31335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31336 which seems to be undefined. Please make sure it is defined" >&5
31337 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31338 which seems to be undefined. Please make sure it is defined" >&2;}
31339
31340 rm -f "$ac_tmp/stdin"
31341 case $ac_file in
31342 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31343 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31344 esac \
31345 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31346 ;;
31347 :H)
31348 #
31349 # CONFIG_HEADER
31350 #
31351 if test x"$ac_file" != x-; then
31352 {
31353 $as_echo "/* $configure_input */" \
31354 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31355 } >"$ac_tmp/config.h" \
31356 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31357 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31358 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31359 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31360 else
31361 rm -f "$ac_file"
31362 mv "$ac_tmp/config.h" "$ac_file" \
31363 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31364 fi
31365 else
31366 $as_echo "/* $configure_input */" \
31367 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31368 || as_fn_error $? "could not create -" "$LINENO" 5
31369 fi
31370 # Compute "$ac_file"'s index in $config_headers.
31371 _am_arg="$ac_file"
31372 _am_stamp_count=1
31373 for _am_header in $config_headers :; do
31374 case $_am_header in
31375 $_am_arg | $_am_arg:* )
31376 break ;;
31377 * )
31378 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31379 esac
31380 done
31381 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31382 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31383 X"$_am_arg" : 'X\(//\)[^/]' \| \
31384 X"$_am_arg" : 'X\(//\)$' \| \
31385 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31386 $as_echo X"$_am_arg" |
31387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31388 s//\1/
31389 q
31390 }
31391 /^X\(\/\/\)[^/].*/{
31392 s//\1/
31393 q
31394 }
31395 /^X\(\/\/\)$/{
31396 s//\1/
31397 q
31398 }
31399 /^X\(\/\).*/{
31400 s//\1/
31401 q
31402 }
31403 s/.*/./; q'`/stamp-h$_am_stamp_count
31404 ;;
31405 :L)
31406 #
31407 # CONFIG_LINK
31408 #
31409
31410 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31411 :
31412 else
31413 # Prefer the file from the source tree if names are identical.
31414 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31415 ac_source=$srcdir/$ac_source
31416 fi
31417
31418 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31419 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31420
31421 if test ! -r "$ac_source"; then
31422 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31423 fi
31424 rm -f "$ac_file"
31425
31426 # Try a relative symlink, then a hard link, then a copy.
31427 case $ac_source in
31428 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31429 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31430 esac
31431 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31432 ln "$ac_source" "$ac_file" 2>/dev/null ||
31433 cp -p "$ac_source" "$ac_file" ||
31434 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31435 fi
31436 ;;
31437 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31438 $as_echo "$as_me: executing $ac_file commands" >&6;}
31439 ;;
31440 esac
31441
31442
31443 case $ac_file$ac_mode in
31444 "libtool":C)
31445
31446 # See if we are running on zsh, and set the options which allow our
31447 # commands through without removal of \ escapes.
31448 if test -n "${ZSH_VERSION+set}" ; then
31449 setopt NO_GLOB_SUBST
31450 fi
31451
31452 cfgfile="${ofile}T"
31453 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31454 $RM "$cfgfile"
31455
31456 cat <<_LT_EOF >> "$cfgfile"
31457 #! $SHELL
31458
31459 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31460 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31461 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31462 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31463 #
31464 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31465 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
31466 # Foundation, Inc.
31467 # Written by Gordon Matzigkeit, 1996
31468 #
31469 # This file is part of GNU Libtool.
31470 #
31471 # GNU Libtool is free software; you can redistribute it and/or
31472 # modify it under the terms of the GNU General Public License as
31473 # published by the Free Software Foundation; either version 2 of
31474 # the License, or (at your option) any later version.
31475 #
31476 # As a special exception to the GNU General Public License,
31477 # if you distribute this file as part of a program or library that
31478 # is built using GNU Libtool, you may include this file under the
31479 # same distribution terms that you use for the rest of that program.
31480 #
31481 # GNU Libtool is distributed in the hope that it will be useful,
31482 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31483 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31484 # GNU General Public License for more details.
31485 #
31486 # You should have received a copy of the GNU General Public License
31487 # along with GNU Libtool; see the file COPYING. If not, a copy
31488 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31489 # obtained by writing to the Free Software Foundation, Inc.,
31490 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31491
31492
31493 # The names of the tagged configurations supported by this script.
31494 available_tags="CXX F77 "
31495
31496 # ### BEGIN LIBTOOL CONFIG
31497
31498 # A BSD- or MS-compatible name lister.
31499 NM=$lt_NM
31500
31501 # Assembler program.
31502 AS=$lt_AS
31503
31504 # DLL creation program.
31505 DLLTOOL=$lt_DLLTOOL
31506
31507 # Object dumper program.
31508 OBJDUMP=$lt_OBJDUMP
31509
31510 # Which release of libtool.m4 was used?
31511 macro_version=$macro_version
31512 macro_revision=$macro_revision
31513
31514 # Whether or not to build shared libraries.
31515 build_libtool_libs=$enable_shared
31516
31517 # Whether or not to build static libraries.
31518 build_old_libs=$enable_static
31519
31520 # What type of objects to build.
31521 pic_mode=$pic_mode
31522
31523 # Whether or not to optimize for fast installation.
31524 fast_install=$enable_fast_install
31525
31526 # Shell to use when invoking shell scripts.
31527 SHELL=$lt_SHELL
31528
31529 # An echo program that protects backslashes.
31530 ECHO=$lt_ECHO
31531
31532 # The PATH separator for the build system.
31533 PATH_SEPARATOR=$lt_PATH_SEPARATOR
31534
31535 # The host system.
31536 host_alias=$host_alias
31537 host=$host
31538 host_os=$host_os
31539
31540 # The build system.
31541 build_alias=$build_alias
31542 build=$build
31543 build_os=$build_os
31544
31545 # A sed program that does not truncate output.
31546 SED=$lt_SED
31547
31548 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31549 Xsed="\$SED -e 1s/^X//"
31550
31551 # A grep program that handles long lines.
31552 GREP=$lt_GREP
31553
31554 # An ERE matcher.
31555 EGREP=$lt_EGREP
31556
31557 # A literal string matcher.
31558 FGREP=$lt_FGREP
31559
31560 # Whether we need soft or hard links.
31561 LN_S=$lt_LN_S
31562
31563 # What is the maximum length of a command?
31564 max_cmd_len=$max_cmd_len
31565
31566 # Object file suffix (normally "o").
31567 objext=$ac_objext
31568
31569 # Executable file suffix (normally "").
31570 exeext=$exeext
31571
31572 # whether the shell understands "unset".
31573 lt_unset=$lt_unset
31574
31575 # turn spaces into newlines.
31576 SP2NL=$lt_lt_SP2NL
31577
31578 # turn newlines into spaces.
31579 NL2SP=$lt_lt_NL2SP
31580
31581 # convert \$build file names to \$host format.
31582 to_host_file_cmd=$lt_cv_to_host_file_cmd
31583
31584 # convert \$build files to toolchain format.
31585 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
31586
31587 # Method to check whether dependent libraries are shared objects.
31588 deplibs_check_method=$lt_deplibs_check_method
31589
31590 # Command to use when deplibs_check_method = "file_magic".
31591 file_magic_cmd=$lt_file_magic_cmd
31592
31593 # How to find potential files when deplibs_check_method = "file_magic".
31594 file_magic_glob=$lt_file_magic_glob
31595
31596 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
31597 want_nocaseglob=$lt_want_nocaseglob
31598
31599 # Command to associate shared and link libraries.
31600 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
31601
31602 # The archiver.
31603 AR=$lt_AR
31604
31605 # Flags to create an archive.
31606 AR_FLAGS=$lt_AR_FLAGS
31607
31608 # How to feed a file listing to the archiver.
31609 archiver_list_spec=$lt_archiver_list_spec
31610
31611 # A symbol stripping program.
31612 STRIP=$lt_STRIP
31613
31614 # Commands used to install an old-style archive.
31615 RANLIB=$lt_RANLIB
31616 old_postinstall_cmds=$lt_old_postinstall_cmds
31617 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31618
31619 # Whether to use a lock for old archive extraction.
31620 lock_old_archive_extraction=$lock_old_archive_extraction
31621
31622 # A C compiler.
31623 LTCC=$lt_CC
31624
31625 # LTCC compiler flags.
31626 LTCFLAGS=$lt_CFLAGS
31627
31628 # Take the output of nm and produce a listing of raw symbols and C names.
31629 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31630
31631 # Transform the output of nm in a proper C declaration.
31632 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31633
31634 # Transform the output of nm in a C name address pair.
31635 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31636
31637 # Transform the output of nm in a C name address pair when lib prefix is needed.
31638 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31639
31640 # Specify filename containing input files for \$NM.
31641 nm_file_list_spec=$lt_nm_file_list_spec
31642
31643 # The root where to search for dependent libraries,and in which our libraries should be installed.
31644 lt_sysroot=$lt_sysroot
31645
31646 # The name of the directory that contains temporary libtool files.
31647 objdir=$objdir
31648
31649 # Used to examine libraries when file_magic_cmd begins with "file".
31650 MAGIC_CMD=$MAGIC_CMD
31651
31652 # Must we lock files when doing compilation?
31653 need_locks=$lt_need_locks
31654
31655 # Manifest tool.
31656 MANIFEST_TOOL=$lt_MANIFEST_TOOL
31657
31658 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31659 DSYMUTIL=$lt_DSYMUTIL
31660
31661 # Tool to change global to local symbols on Mac OS X.
31662 NMEDIT=$lt_NMEDIT
31663
31664 # Tool to manipulate fat objects and archives on Mac OS X.
31665 LIPO=$lt_LIPO
31666
31667 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31668 OTOOL=$lt_OTOOL
31669
31670 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31671 OTOOL64=$lt_OTOOL64
31672
31673 # Old archive suffix (normally "a").
31674 libext=$libext
31675
31676 # Shared library suffix (normally ".so").
31677 shrext_cmds=$lt_shrext_cmds
31678
31679 # The commands to extract the exported symbol list from a shared archive.
31680 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31681
31682 # Variables whose values should be saved in libtool wrapper scripts and
31683 # restored at link time.
31684 variables_saved_for_relink=$lt_variables_saved_for_relink
31685
31686 # Do we need the "lib" prefix for modules?
31687 need_lib_prefix=$need_lib_prefix
31688
31689 # Do we need a version for libraries?
31690 need_version=$need_version
31691
31692 # Library versioning type.
31693 version_type=$version_type
31694
31695 # Shared library runtime path variable.
31696 runpath_var=$runpath_var
31697
31698 # Shared library path variable.
31699 shlibpath_var=$shlibpath_var
31700
31701 # Is shlibpath searched before the hard-coded library search path?
31702 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31703
31704 # Format of library name prefix.
31705 libname_spec=$lt_libname_spec
31706
31707 # List of archive names. First name is the real one, the rest are links.
31708 # The last name is the one that the linker finds with -lNAME
31709 library_names_spec=$lt_library_names_spec
31710
31711 # The coded name of the library, if different from the real name.
31712 soname_spec=$lt_soname_spec
31713
31714 # Permission mode override for installation of shared libraries.
31715 install_override_mode=$lt_install_override_mode
31716
31717 # Command to use after installation of a shared archive.
31718 postinstall_cmds=$lt_postinstall_cmds
31719
31720 # Command to use after uninstallation of a shared archive.
31721 postuninstall_cmds=$lt_postuninstall_cmds
31722
31723 # Commands used to finish a libtool library installation in a directory.
31724 finish_cmds=$lt_finish_cmds
31725
31726 # As "finish_cmds", except a single script fragment to be evaled but
31727 # not shown.
31728 finish_eval=$lt_finish_eval
31729
31730 # Whether we should hardcode library paths into libraries.
31731 hardcode_into_libs=$hardcode_into_libs
31732
31733 # Compile-time system search path for libraries.
31734 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31735
31736 # Run-time system search path for libraries.
31737 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31738
31739 # Whether dlopen is supported.
31740 dlopen_support=$enable_dlopen
31741
31742 # Whether dlopen of programs is supported.
31743 dlopen_self=$enable_dlopen_self
31744
31745 # Whether dlopen of statically linked programs is supported.
31746 dlopen_self_static=$enable_dlopen_self_static
31747
31748 # Commands to strip libraries.
31749 old_striplib=$lt_old_striplib
31750 striplib=$lt_striplib
31751
31752
31753 # The linker used to build libraries.
31754 LD=$lt_LD
31755
31756 # How to create reloadable object files.
31757 reload_flag=$lt_reload_flag
31758 reload_cmds=$lt_reload_cmds
31759
31760 # Commands used to build an old-style archive.
31761 old_archive_cmds=$lt_old_archive_cmds
31762
31763 # A language specific compiler.
31764 CC=$lt_compiler
31765
31766 # Is the compiler the GNU compiler?
31767 with_gcc=$GCC
31768
31769 # Compiler flag to turn off builtin functions.
31770 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31771
31772 # Additional compiler flags for building library objects.
31773 pic_flag=$lt_lt_prog_compiler_pic
31774
31775 # How to pass a linker flag through the compiler.
31776 wl=$lt_lt_prog_compiler_wl
31777
31778 # Compiler flag to prevent dynamic linking.
31779 link_static_flag=$lt_lt_prog_compiler_static
31780
31781 # Does compiler simultaneously support -c and -o options?
31782 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31783
31784 # Whether or not to add -lc for building shared libraries.
31785 build_libtool_need_lc=$archive_cmds_need_lc
31786
31787 # Whether or not to disallow shared libs when runtime libs are static.
31788 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31789
31790 # Compiler flag to allow reflexive dlopens.
31791 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31792
31793 # Compiler flag to generate shared objects directly from archives.
31794 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31795
31796 # Whether the compiler copes with passing no objects directly.
31797 compiler_needs_object=$lt_compiler_needs_object
31798
31799 # Create an old-style archive from a shared archive.
31800 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31801
31802 # Create a temporary old-style archive to link instead of a shared archive.
31803 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31804
31805 # Commands used to build a shared archive.
31806 archive_cmds=$lt_archive_cmds
31807 archive_expsym_cmds=$lt_archive_expsym_cmds
31808
31809 # Commands used to build a loadable module if different from building
31810 # a shared archive.
31811 module_cmds=$lt_module_cmds
31812 module_expsym_cmds=$lt_module_expsym_cmds
31813
31814 # Whether we are building with GNU ld or not.
31815 with_gnu_ld=$lt_with_gnu_ld
31816
31817 # Flag that allows shared libraries with undefined symbols to be built.
31818 allow_undefined_flag=$lt_allow_undefined_flag
31819
31820 # Flag that enforces no undefined symbols.
31821 no_undefined_flag=$lt_no_undefined_flag
31822
31823 # Flag to hardcode \$libdir into a binary during linking.
31824 # This must work even if \$libdir does not exist
31825 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31826
31827 # Whether we need a single "-rpath" flag with a separated argument.
31828 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31829
31830 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31831 # DIR into the resulting binary.
31832 hardcode_direct=$hardcode_direct
31833
31834 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31835 # DIR into the resulting binary and the resulting library dependency is
31836 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31837 # library is relocated.
31838 hardcode_direct_absolute=$hardcode_direct_absolute
31839
31840 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31841 # into the resulting binary.
31842 hardcode_minus_L=$hardcode_minus_L
31843
31844 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31845 # into the resulting binary.
31846 hardcode_shlibpath_var=$hardcode_shlibpath_var
31847
31848 # Set to "yes" if building a shared library automatically hardcodes DIR
31849 # into the library and all subsequent libraries and executables linked
31850 # against it.
31851 hardcode_automatic=$hardcode_automatic
31852
31853 # Set to yes if linker adds runtime paths of dependent libraries
31854 # to runtime path list.
31855 inherit_rpath=$inherit_rpath
31856
31857 # Whether libtool must link a program against all its dependency libraries.
31858 link_all_deplibs=$link_all_deplibs
31859
31860 # Set to "yes" if exported symbols are required.
31861 always_export_symbols=$always_export_symbols
31862
31863 # The commands to list exported symbols.
31864 export_symbols_cmds=$lt_export_symbols_cmds
31865
31866 # Symbols that should not be listed in the preloaded symbols.
31867 exclude_expsyms=$lt_exclude_expsyms
31868
31869 # Symbols that must always be exported.
31870 include_expsyms=$lt_include_expsyms
31871
31872 # Commands necessary for linking programs (against libraries) with templates.
31873 prelink_cmds=$lt_prelink_cmds
31874
31875 # Commands necessary for finishing linking programs.
31876 postlink_cmds=$lt_postlink_cmds
31877
31878 # Specify filename containing input files.
31879 file_list_spec=$lt_file_list_spec
31880
31881 # How to hardcode a shared library path into an executable.
31882 hardcode_action=$hardcode_action
31883
31884 # The directories searched by this compiler when creating a shared library.
31885 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31886
31887 # Dependencies to place before and after the objects being linked to
31888 # create a shared library.
31889 predep_objects=$lt_predep_objects
31890 postdep_objects=$lt_postdep_objects
31891 predeps=$lt_predeps
31892 postdeps=$lt_postdeps
31893
31894 # The library search path used internally by the compiler when linking
31895 # a shared library.
31896 compiler_lib_search_path=$lt_compiler_lib_search_path
31897
31898 # ### END LIBTOOL CONFIG
31899
31900 _LT_EOF
31901
31902 case $host_os in
31903 aix3*)
31904 cat <<\_LT_EOF >> "$cfgfile"
31905 # AIX sometimes has problems with the GCC collect2 program. For some
31906 # reason, if we set the COLLECT_NAMES environment variable, the problems
31907 # vanish in a puff of smoke.
31908 if test "X${COLLECT_NAMES+set}" != Xset; then
31909 COLLECT_NAMES=
31910 export COLLECT_NAMES
31911 fi
31912 _LT_EOF
31913 ;;
31914 esac
31915
31916
31917 ltmain="$ac_aux_dir/ltmain.sh"
31918
31919
31920 # We use sed instead of cat because bash on DJGPP gets confused if
31921 # if finds mixed CR/LF and LF-only lines. Since sed operates in
31922 # text mode, it properly converts lines to CR/LF. This bash problem
31923 # is reportedly fixed, but why not run on old versions too?
31924 sed '$q' "$ltmain" >> "$cfgfile" \
31925 || (rm -f "$cfgfile"; exit 1)
31926
31927 if test x"$xsi_shell" = xyes; then
31928 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
31929 func_dirname ()\
31930 {\
31931 \ case ${1} in\
31932 \ */*) func_dirname_result="${1%/*}${2}" ;;\
31933 \ * ) func_dirname_result="${3}" ;;\
31934 \ esac\
31935 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
31936 && mv -f "$cfgfile.tmp" "$cfgfile" \
31937 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31938 test 0 -eq $? || _lt_function_replace_fail=:
31939
31940
31941 sed -e '/^func_basename ()$/,/^} # func_basename /c\
31942 func_basename ()\
31943 {\
31944 \ func_basename_result="${1##*/}"\
31945 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
31946 && mv -f "$cfgfile.tmp" "$cfgfile" \
31947 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31948 test 0 -eq $? || _lt_function_replace_fail=:
31949
31950
31951 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
31952 func_dirname_and_basename ()\
31953 {\
31954 \ case ${1} in\
31955 \ */*) func_dirname_result="${1%/*}${2}" ;;\
31956 \ * ) func_dirname_result="${3}" ;;\
31957 \ esac\
31958 \ func_basename_result="${1##*/}"\
31959 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
31960 && mv -f "$cfgfile.tmp" "$cfgfile" \
31961 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31962 test 0 -eq $? || _lt_function_replace_fail=:
31963
31964
31965 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
31966 func_stripname ()\
31967 {\
31968 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
31969 \ # positional parameters, so assign one to ordinary parameter first.\
31970 \ func_stripname_result=${3}\
31971 \ func_stripname_result=${func_stripname_result#"${1}"}\
31972 \ func_stripname_result=${func_stripname_result%"${2}"}\
31973 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
31974 && mv -f "$cfgfile.tmp" "$cfgfile" \
31975 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31976 test 0 -eq $? || _lt_function_replace_fail=:
31977
31978
31979 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
31980 func_split_long_opt ()\
31981 {\
31982 \ func_split_long_opt_name=${1%%=*}\
31983 \ func_split_long_opt_arg=${1#*=}\
31984 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
31985 && mv -f "$cfgfile.tmp" "$cfgfile" \
31986 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31987 test 0 -eq $? || _lt_function_replace_fail=:
31988
31989
31990 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
31991 func_split_short_opt ()\
31992 {\
31993 \ func_split_short_opt_arg=${1#??}\
31994 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
31995 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
31996 && mv -f "$cfgfile.tmp" "$cfgfile" \
31997 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31998 test 0 -eq $? || _lt_function_replace_fail=:
31999
32000
32001 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
32002 func_lo2o ()\
32003 {\
32004 \ case ${1} in\
32005 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
32006 \ *) func_lo2o_result=${1} ;;\
32007 \ esac\
32008 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
32009 && mv -f "$cfgfile.tmp" "$cfgfile" \
32010 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32011 test 0 -eq $? || _lt_function_replace_fail=:
32012
32013
32014 sed -e '/^func_xform ()$/,/^} # func_xform /c\
32015 func_xform ()\
32016 {\
32017 func_xform_result=${1%.*}.lo\
32018 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
32019 && mv -f "$cfgfile.tmp" "$cfgfile" \
32020 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32021 test 0 -eq $? || _lt_function_replace_fail=:
32022
32023
32024 sed -e '/^func_arith ()$/,/^} # func_arith /c\
32025 func_arith ()\
32026 {\
32027 func_arith_result=$(( $* ))\
32028 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
32029 && mv -f "$cfgfile.tmp" "$cfgfile" \
32030 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32031 test 0 -eq $? || _lt_function_replace_fail=:
32032
32033
32034 sed -e '/^func_len ()$/,/^} # func_len /c\
32035 func_len ()\
32036 {\
32037 func_len_result=${#1}\
32038 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
32039 && mv -f "$cfgfile.tmp" "$cfgfile" \
32040 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32041 test 0 -eq $? || _lt_function_replace_fail=:
32042
32043 fi
32044
32045 if test x"$lt_shell_append" = xyes; then
32046 sed -e '/^func_append ()$/,/^} # func_append /c\
32047 func_append ()\
32048 {\
32049 eval "${1}+=\\${2}"\
32050 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
32051 && mv -f "$cfgfile.tmp" "$cfgfile" \
32052 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32053 test 0 -eq $? || _lt_function_replace_fail=:
32054
32055
32056 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
32057 func_append_quoted ()\
32058 {\
32059 \ func_quote_for_eval "${2}"\
32060 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
32061 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
32062 && mv -f "$cfgfile.tmp" "$cfgfile" \
32063 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32064 test 0 -eq $? || _lt_function_replace_fail=:
32065
32066
32067 # Save a `func_append' function call where possible by direct use of '+='
32068 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
32069 && mv -f "$cfgfile.tmp" "$cfgfile" \
32070 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32071 test 0 -eq $? || _lt_function_replace_fail=:
32072 else
32073 # Save a `func_append' function call even when '+=' is not available
32074 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
32075 && mv -f "$cfgfile.tmp" "$cfgfile" \
32076 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32077 test 0 -eq $? || _lt_function_replace_fail=:
32078 fi
32079
32080 if test x"$_lt_function_replace_fail" = x":"; then
32081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
32082 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
32083 fi
32084
32085
32086 mv -f "$cfgfile" "$ofile" ||
32087 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32088 chmod +x "$ofile"
32089
32090
32091 cat <<_LT_EOF >> "$ofile"
32092
32093 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32094
32095 # The linker used to build libraries.
32096 LD=$lt_LD_CXX
32097
32098 # How to create reloadable object files.
32099 reload_flag=$lt_reload_flag_CXX
32100 reload_cmds=$lt_reload_cmds_CXX
32101
32102 # Commands used to build an old-style archive.
32103 old_archive_cmds=$lt_old_archive_cmds_CXX
32104
32105 # A language specific compiler.
32106 CC=$lt_compiler_CXX
32107
32108 # Is the compiler the GNU compiler?
32109 with_gcc=$GCC_CXX
32110
32111 # Compiler flag to turn off builtin functions.
32112 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32113
32114 # Additional compiler flags for building library objects.
32115 pic_flag=$lt_lt_prog_compiler_pic_CXX
32116
32117 # How to pass a linker flag through the compiler.
32118 wl=$lt_lt_prog_compiler_wl_CXX
32119
32120 # Compiler flag to prevent dynamic linking.
32121 link_static_flag=$lt_lt_prog_compiler_static_CXX
32122
32123 # Does compiler simultaneously support -c and -o options?
32124 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32125
32126 # Whether or not to add -lc for building shared libraries.
32127 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32128
32129 # Whether or not to disallow shared libs when runtime libs are static.
32130 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32131
32132 # Compiler flag to allow reflexive dlopens.
32133 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32134
32135 # Compiler flag to generate shared objects directly from archives.
32136 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32137
32138 # Whether the compiler copes with passing no objects directly.
32139 compiler_needs_object=$lt_compiler_needs_object_CXX
32140
32141 # Create an old-style archive from a shared archive.
32142 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32143
32144 # Create a temporary old-style archive to link instead of a shared archive.
32145 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32146
32147 # Commands used to build a shared archive.
32148 archive_cmds=$lt_archive_cmds_CXX
32149 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32150
32151 # Commands used to build a loadable module if different from building
32152 # a shared archive.
32153 module_cmds=$lt_module_cmds_CXX
32154 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32155
32156 # Whether we are building with GNU ld or not.
32157 with_gnu_ld=$lt_with_gnu_ld_CXX
32158
32159 # Flag that allows shared libraries with undefined symbols to be built.
32160 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32161
32162 # Flag that enforces no undefined symbols.
32163 no_undefined_flag=$lt_no_undefined_flag_CXX
32164
32165 # Flag to hardcode \$libdir into a binary during linking.
32166 # This must work even if \$libdir does not exist
32167 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32168
32169 # Whether we need a single "-rpath" flag with a separated argument.
32170 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32171
32172 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32173 # DIR into the resulting binary.
32174 hardcode_direct=$hardcode_direct_CXX
32175
32176 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32177 # DIR into the resulting binary and the resulting library dependency is
32178 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32179 # library is relocated.
32180 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32181
32182 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32183 # into the resulting binary.
32184 hardcode_minus_L=$hardcode_minus_L_CXX
32185
32186 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32187 # into the resulting binary.
32188 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32189
32190 # Set to "yes" if building a shared library automatically hardcodes DIR
32191 # into the library and all subsequent libraries and executables linked
32192 # against it.
32193 hardcode_automatic=$hardcode_automatic_CXX
32194
32195 # Set to yes if linker adds runtime paths of dependent libraries
32196 # to runtime path list.
32197 inherit_rpath=$inherit_rpath_CXX
32198
32199 # Whether libtool must link a program against all its dependency libraries.
32200 link_all_deplibs=$link_all_deplibs_CXX
32201
32202 # Set to "yes" if exported symbols are required.
32203 always_export_symbols=$always_export_symbols_CXX
32204
32205 # The commands to list exported symbols.
32206 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32207
32208 # Symbols that should not be listed in the preloaded symbols.
32209 exclude_expsyms=$lt_exclude_expsyms_CXX
32210
32211 # Symbols that must always be exported.
32212 include_expsyms=$lt_include_expsyms_CXX
32213
32214 # Commands necessary for linking programs (against libraries) with templates.
32215 prelink_cmds=$lt_prelink_cmds_CXX
32216
32217 # Commands necessary for finishing linking programs.
32218 postlink_cmds=$lt_postlink_cmds_CXX
32219
32220 # Specify filename containing input files.
32221 file_list_spec=$lt_file_list_spec_CXX
32222
32223 # How to hardcode a shared library path into an executable.
32224 hardcode_action=$hardcode_action_CXX
32225
32226 # The directories searched by this compiler when creating a shared library.
32227 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32228
32229 # Dependencies to place before and after the objects being linked to
32230 # create a shared library.
32231 predep_objects=$lt_predep_objects_CXX
32232 postdep_objects=$lt_postdep_objects_CXX
32233 predeps=$lt_predeps_CXX
32234 postdeps=$lt_postdeps_CXX
32235
32236 # The library search path used internally by the compiler when linking
32237 # a shared library.
32238 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32239
32240 # ### END LIBTOOL TAG CONFIG: CXX
32241 _LT_EOF
32242
32243
32244 cat <<_LT_EOF >> "$ofile"
32245
32246 # ### BEGIN LIBTOOL TAG CONFIG: F77
32247
32248 # The linker used to build libraries.
32249 LD=$lt_LD_F77
32250
32251 # How to create reloadable object files.
32252 reload_flag=$lt_reload_flag_F77
32253 reload_cmds=$lt_reload_cmds_F77
32254
32255 # Commands used to build an old-style archive.
32256 old_archive_cmds=$lt_old_archive_cmds_F77
32257
32258 # A language specific compiler.
32259 CC=$lt_compiler_F77
32260
32261 # Is the compiler the GNU compiler?
32262 with_gcc=$GCC_F77
32263
32264 # Compiler flag to turn off builtin functions.
32265 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
32266
32267 # Additional compiler flags for building library objects.
32268 pic_flag=$lt_lt_prog_compiler_pic_F77
32269
32270 # How to pass a linker flag through the compiler.
32271 wl=$lt_lt_prog_compiler_wl_F77
32272
32273 # Compiler flag to prevent dynamic linking.
32274 link_static_flag=$lt_lt_prog_compiler_static_F77
32275
32276 # Does compiler simultaneously support -c and -o options?
32277 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
32278
32279 # Whether or not to add -lc for building shared libraries.
32280 build_libtool_need_lc=$archive_cmds_need_lc_F77
32281
32282 # Whether or not to disallow shared libs when runtime libs are static.
32283 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
32284
32285 # Compiler flag to allow reflexive dlopens.
32286 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
32287
32288 # Compiler flag to generate shared objects directly from archives.
32289 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
32290
32291 # Whether the compiler copes with passing no objects directly.
32292 compiler_needs_object=$lt_compiler_needs_object_F77
32293
32294 # Create an old-style archive from a shared archive.
32295 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
32296
32297 # Create a temporary old-style archive to link instead of a shared archive.
32298 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
32299
32300 # Commands used to build a shared archive.
32301 archive_cmds=$lt_archive_cmds_F77
32302 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
32303
32304 # Commands used to build a loadable module if different from building
32305 # a shared archive.
32306 module_cmds=$lt_module_cmds_F77
32307 module_expsym_cmds=$lt_module_expsym_cmds_F77
32308
32309 # Whether we are building with GNU ld or not.
32310 with_gnu_ld=$lt_with_gnu_ld_F77
32311
32312 # Flag that allows shared libraries with undefined symbols to be built.
32313 allow_undefined_flag=$lt_allow_undefined_flag_F77
32314
32315 # Flag that enforces no undefined symbols.
32316 no_undefined_flag=$lt_no_undefined_flag_F77
32317
32318 # Flag to hardcode \$libdir into a binary during linking.
32319 # This must work even if \$libdir does not exist
32320 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
32321
32322 # Whether we need a single "-rpath" flag with a separated argument.
32323 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
32324
32325 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32326 # DIR into the resulting binary.
32327 hardcode_direct=$hardcode_direct_F77
32328
32329 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32330 # DIR into the resulting binary and the resulting library dependency is
32331 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32332 # library is relocated.
32333 hardcode_direct_absolute=$hardcode_direct_absolute_F77
32334
32335 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32336 # into the resulting binary.
32337 hardcode_minus_L=$hardcode_minus_L_F77
32338
32339 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32340 # into the resulting binary.
32341 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
32342
32343 # Set to "yes" if building a shared library automatically hardcodes DIR
32344 # into the library and all subsequent libraries and executables linked
32345 # against it.
32346 hardcode_automatic=$hardcode_automatic_F77
32347
32348 # Set to yes if linker adds runtime paths of dependent libraries
32349 # to runtime path list.
32350 inherit_rpath=$inherit_rpath_F77
32351
32352 # Whether libtool must link a program against all its dependency libraries.
32353 link_all_deplibs=$link_all_deplibs_F77
32354
32355 # Set to "yes" if exported symbols are required.
32356 always_export_symbols=$always_export_symbols_F77
32357
32358 # The commands to list exported symbols.
32359 export_symbols_cmds=$lt_export_symbols_cmds_F77
32360
32361 # Symbols that should not be listed in the preloaded symbols.
32362 exclude_expsyms=$lt_exclude_expsyms_F77
32363
32364 # Symbols that must always be exported.
32365 include_expsyms=$lt_include_expsyms_F77
32366
32367 # Commands necessary for linking programs (against libraries) with templates.
32368 prelink_cmds=$lt_prelink_cmds_F77
32369
32370 # Commands necessary for finishing linking programs.
32371 postlink_cmds=$lt_postlink_cmds_F77
32372
32373 # Specify filename containing input files.
32374 file_list_spec=$lt_file_list_spec_F77
32375
32376 # How to hardcode a shared library path into an executable.
32377 hardcode_action=$hardcode_action_F77
32378
32379 # The directories searched by this compiler when creating a shared library.
32380 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
32381
32382 # Dependencies to place before and after the objects being linked to
32383 # create a shared library.
32384 predep_objects=$lt_predep_objects_F77
32385 postdep_objects=$lt_postdep_objects_F77
32386 predeps=$lt_predeps_F77
32387 postdeps=$lt_postdeps_F77
32388
32389 # The library search path used internally by the compiler when linking
32390 # a shared library.
32391 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
32392
32393 # ### END LIBTOOL TAG CONFIG: F77
32394 _LT_EOF
32395
32396 ;;
32397
32398 esac
32399 done # for ac_tag
32400
32401
32402 as_fn_exit 0
32403 _ACEOF
32404 ac_clean_files=$ac_clean_files_save
32405
32406 test $ac_write_fail = 0 ||
32407 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32408
32409
32410 # configure is writing to config.log, and then calls config.status.
32411 # config.status does its own redirection, appending to config.log.
32412 # Unfortunately, on DOS this fails, as config.log is still kept open
32413 # by configure, so config.status won't be able to write to it; its
32414 # output is simply discarded. So we exec the FD to /dev/null,
32415 # effectively closing config.log, so it can be properly (re)opened and
32416 # appended to by config.status. When coming back to configure, we
32417 # need to make the FD available again.
32418 if test "$no_create" != yes; then
32419 ac_cs_success=:
32420 ac_config_status_args=
32421 test "$silent" = yes &&
32422 ac_config_status_args="$ac_config_status_args --quiet"
32423 exec 5>/dev/null
32424 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32425 exec 5>>config.log
32426 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32427 # would make configure fail if this is the last instruction.
32428 $ac_cs_success || as_fn_exit 1
32429 fi
32430 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32432 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32433 fi
32434
32435
32436 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
32437
32438 Version: ${PACKAGE_STRING}
32439 Host type: ${host}
32440 ABI: ${ABI}
32441 Install prefix: ${prefix}
32442 Compiler: ${CC}
32443 Static libraries: ${enable_static}
32444 Shared libraries: ${enable_shared}
32445 " >&5
32446 $as_echo "$as_me: summary of build options:
32447
32448 Version: ${PACKAGE_STRING}
32449 Host type: ${host}
32450 ABI: ${ABI}
32451 Install prefix: ${prefix}
32452 Compiler: ${CC}
32453 Static libraries: ${enable_static}
32454 Shared libraries: ${enable_shared}
32455 " >&6;}
32456
32457 if test x$cross_compiling = xyes ; then
32458 case "$host" in
32459 *-*-mingw* | *-*-cygwin)
32460 if test x$ABI = x64 ; then
32461 { $as_echo "$as_me:${as_lineno-$LINENO}: If wine64 is installed, use make check TESTS_ENVIRONMENT=wine64." >&5
32462 $as_echo "$as_me: If wine64 is installed, use make check TESTS_ENVIRONMENT=wine64." >&6;}
32463 else
32464 { $as_echo "$as_me:${as_lineno-$LINENO}: If wine is installed, use make check TESTS_ENVIRONMENT=wine." >&5
32465 $as_echo "$as_me: If wine is installed, use make check TESTS_ENVIRONMENT=wine." >&6;}
32466 fi
32467 ;;
32468 esac
32469 fi
32470