configure revision 1.1.1.3 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for MPFR 3.1.5.
4 #
5 #
6 # Copyright 1999-2016 Free Software Foundation, Inc.
7 # Contributed by the AriC and Caramba projects, INRIA.
8 #
9 # This file is part of the GNU MPFR Library.
10 #
11 # The GNU MPFR Library is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License as published
13 # by the Free Software Foundation; either version 3 of the License, or (at
14 # your option) any later version.
15 #
16 # The GNU MPFR Library is distributed in the hope that it will be useful, but
17 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
19 # License for more details.
20 #
21 # You should have received a copy of the GNU Lesser General Public License
22 # along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see
23 # http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
24 # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
25 #
26 #
27 #
28 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
29 #
30 #
31 # This configure script is free software; the Free Software Foundation
32 # gives unlimited permission to copy, distribute and modify it.
33 ## -------------------- ##
34 ## M4sh Initialization. ##
35 ## -------------------- ##
36
37 # Be more Bourne compatible
38 DUALCASE=1; export DUALCASE # for MKS sh
39 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
40 emulate sh
41 NULLCMD=:
42 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
43 # is contrary to our usage. Disable this feature.
44 alias -g '${1+"$@"}'='"$@"'
45 setopt NO_GLOB_SUBST
46 else
47 case `(set -o) 2>/dev/null` in #(
48 *posix*) :
49 set -o posix ;; #(
50 *) :
51 ;;
52 esac
53 fi
54
55
56 as_nl='
57 '
58 export as_nl
59 # Printing a long string crashes Solaris 7 /usr/bin/printf.
60 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
61 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
62 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
63 # Prefer a ksh shell builtin over an external printf program on Solaris,
64 # but without wasting forks for bash or zsh.
65 if test -z "$BASH_VERSION$ZSH_VERSION" \
66 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
67 as_echo='print -r --'
68 as_echo_n='print -rn --'
69 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
70 as_echo='printf %s\n'
71 as_echo_n='printf %s'
72 else
73 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
74 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
75 as_echo_n='/usr/ucb/echo -n'
76 else
77 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
78 as_echo_n_body='eval
79 arg=$1;
80 case $arg in #(
81 *"$as_nl"*)
82 expr "X$arg" : "X\\(.*\\)$as_nl";
83 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
84 esac;
85 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
86 '
87 export as_echo_n_body
88 as_echo_n='sh -c $as_echo_n_body as_echo'
89 fi
90 export as_echo_body
91 as_echo='sh -c $as_echo_body as_echo'
92 fi
93
94 # The user is always right.
95 if test "${PATH_SEPARATOR+set}" != set; then
96 PATH_SEPARATOR=:
97 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
98 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
99 PATH_SEPARATOR=';'
100 }
101 fi
102
103
104 # IFS
105 # We need space, tab and new line, in precisely that order. Quoting is
106 # there to prevent editors from complaining about space-tab.
107 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
108 # splitting by setting IFS to empty value.)
109 IFS=" "" $as_nl"
110
111 # Find who we are. Look in the path if we contain no directory separator.
112 as_myself=
113 case $0 in #((
114 *[\\/]* ) as_myself=$0 ;;
115 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 for as_dir in $PATH
117 do
118 IFS=$as_save_IFS
119 test -z "$as_dir" && as_dir=.
120 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 done
122 IFS=$as_save_IFS
123
124 ;;
125 esac
126 # We did not find ourselves, most probably we were run as `sh COMMAND'
127 # in which case we are not to be found in the path.
128 if test "x$as_myself" = x; then
129 as_myself=$0
130 fi
131 if test ! -f "$as_myself"; then
132 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
133 exit 1
134 fi
135
136 # Unset variables that we do not need and which cause bugs (e.g. in
137 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
138 # suppresses any "Segmentation fault" message there. '((' could
139 # trigger a bug in pdksh 5.2.14.
140 for as_var in BASH_ENV ENV MAIL MAILPATH
141 do eval test x\${$as_var+set} = xset \
142 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
143 done
144 PS1='$ '
145 PS2='> '
146 PS4='+ '
147
148 # NLS nuisances.
149 LC_ALL=C
150 export LC_ALL
151 LANGUAGE=C
152 export LANGUAGE
153
154 # CDPATH.
155 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
156
157 # Use a proper internal environment variable to ensure we don't fall
158 # into an infinite loop, continuously re-executing ourselves.
159 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
160 _as_can_reexec=no; export _as_can_reexec;
161 # We cannot yet assume a decent shell, so we have to provide a
162 # neutralization value for shells without unset; and this also
163 # works around shells that cannot unset nonexistent variables.
164 # Preserve -v and -x to the replacement shell.
165 BASH_ENV=/dev/null
166 ENV=/dev/null
167 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
168 case $- in # ((((
169 *v*x* | *x*v* ) as_opts=-vx ;;
170 *v* ) as_opts=-v ;;
171 *x* ) as_opts=-x ;;
172 * ) as_opts= ;;
173 esac
174 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
175 # Admittedly, this is quite paranoid, since all the known shells bail
176 # out after a failed `exec'.
177 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
178 as_fn_exit 255
179 fi
180 # We don't want this to propagate to other subprocesses.
181 { _as_can_reexec=; unset _as_can_reexec;}
182 if test "x$CONFIG_SHELL" = x; then
183 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
184 emulate sh
185 NULLCMD=:
186 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
187 # is contrary to our usage. Disable this feature.
188 alias -g '\${1+\"\$@\"}'='\"\$@\"'
189 setopt NO_GLOB_SUBST
190 else
191 case \`(set -o) 2>/dev/null\` in #(
192 *posix*) :
193 set -o posix ;; #(
194 *) :
195 ;;
196 esac
197 fi
198 "
199 as_required="as_fn_return () { (exit \$1); }
200 as_fn_success () { as_fn_return 0; }
201 as_fn_failure () { as_fn_return 1; }
202 as_fn_ret_success () { return 0; }
203 as_fn_ret_failure () { return 1; }
204
205 exitcode=0
206 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
207 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
208 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
209 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
210 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
211
212 else
213 exitcode=1; echo positional parameters were not saved.
214 fi
215 test x\$exitcode = x0 || exit 1
216 test -x / || exit 1"
217 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
218 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
219 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
220 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
221 test \$(( 1 + 1 )) = 2 || exit 1
222
223 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
224 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
225 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
226 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
227 PATH=/empty FPATH=/empty; export PATH FPATH
228 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
229 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
230 if (eval "$as_required") 2>/dev/null; then :
231 as_have_required=yes
232 else
233 as_have_required=no
234 fi
235 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
236
237 else
238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
239 as_found=false
240 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
241 do
242 IFS=$as_save_IFS
243 test -z "$as_dir" && as_dir=.
244 as_found=:
245 case $as_dir in #(
246 /*)
247 for as_base in sh bash ksh sh5; do
248 # Try only shells that exist, to save several forks.
249 as_shell=$as_dir/$as_base
250 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
251 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
252 CONFIG_SHELL=$as_shell as_have_required=yes
253 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
254 break 2
255 fi
256 fi
257 done;;
258 esac
259 as_found=false
260 done
261 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
262 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
263 CONFIG_SHELL=$SHELL as_have_required=yes
264 fi; }
265 IFS=$as_save_IFS
266
267
268 if test "x$CONFIG_SHELL" != x; then :
269 export CONFIG_SHELL
270 # We cannot yet assume a decent shell, so we have to provide a
271 # neutralization value for shells without unset; and this also
272 # works around shells that cannot unset nonexistent variables.
273 # Preserve -v and -x to the replacement shell.
274 BASH_ENV=/dev/null
275 ENV=/dev/null
276 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
277 case $- in # ((((
278 *v*x* | *x*v* ) as_opts=-vx ;;
279 *v* ) as_opts=-v ;;
280 *x* ) as_opts=-x ;;
281 * ) as_opts= ;;
282 esac
283 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
284 # Admittedly, this is quite paranoid, since all the known shells bail
285 # out after a failed `exec'.
286 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
287 exit 255
288 fi
289
290 if test x$as_have_required = xno; then :
291 $as_echo "$0: This script requires a shell more modern than all"
292 $as_echo "$0: the shells that I found on your system."
293 if test x${ZSH_VERSION+set} = xset ; then
294 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
295 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
296 else
297 $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system,
298 $0: including any error possibly output before this
299 $0: message. Then install a modern shell, or manually run
300 $0: the script under such a shell if you do have one."
301 fi
302 exit 1
303 fi
304 fi
305 fi
306 SHELL=${CONFIG_SHELL-/bin/sh}
307 export SHELL
308 # Unset more variables known to interfere with behavior of common tools.
309 CLICOLOR_FORCE= GREP_OPTIONS=
310 unset CLICOLOR_FORCE GREP_OPTIONS
311
312 ## --------------------- ##
313 ## M4sh Shell Functions. ##
314 ## --------------------- ##
315 # as_fn_unset VAR
316 # ---------------
317 # Portably unset VAR.
318 as_fn_unset ()
319 {
320 { eval $1=; unset $1;}
321 }
322 as_unset=as_fn_unset
323
324 # as_fn_set_status STATUS
325 # -----------------------
326 # Set $? to STATUS, without forking.
327 as_fn_set_status ()
328 {
329 return $1
330 } # as_fn_set_status
331
332 # as_fn_exit STATUS
333 # -----------------
334 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
335 as_fn_exit ()
336 {
337 set +e
338 as_fn_set_status $1
339 exit $1
340 } # as_fn_exit
341
342 # as_fn_mkdir_p
343 # -------------
344 # Create "$as_dir" as a directory, including parents if necessary.
345 as_fn_mkdir_p ()
346 {
347
348 case $as_dir in #(
349 -*) as_dir=./$as_dir;;
350 esac
351 test -d "$as_dir" || eval $as_mkdir_p || {
352 as_dirs=
353 while :; do
354 case $as_dir in #(
355 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
356 *) as_qdir=$as_dir;;
357 esac
358 as_dirs="'$as_qdir' $as_dirs"
359 as_dir=`$as_dirname -- "$as_dir" ||
360 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
361 X"$as_dir" : 'X\(//\)[^/]' \| \
362 X"$as_dir" : 'X\(//\)$' \| \
363 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
364 $as_echo X"$as_dir" |
365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
366 s//\1/
367 q
368 }
369 /^X\(\/\/\)[^/].*/{
370 s//\1/
371 q
372 }
373 /^X\(\/\/\)$/{
374 s//\1/
375 q
376 }
377 /^X\(\/\).*/{
378 s//\1/
379 q
380 }
381 s/.*/./; q'`
382 test -d "$as_dir" && break
383 done
384 test -z "$as_dirs" || eval "mkdir $as_dirs"
385 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
386
387
388 } # as_fn_mkdir_p
389
390 # as_fn_executable_p FILE
391 # -----------------------
392 # Test if FILE is an executable regular file.
393 as_fn_executable_p ()
394 {
395 test -f "$1" && test -x "$1"
396 } # as_fn_executable_p
397 # as_fn_append VAR VALUE
398 # ----------------------
399 # Append the text in VALUE to the end of the definition contained in VAR. Take
400 # advantage of any shell optimizations that allow amortized linear growth over
401 # repeated appends, instead of the typical quadratic growth present in naive
402 # implementations.
403 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
404 eval 'as_fn_append ()
405 {
406 eval $1+=\$2
407 }'
408 else
409 as_fn_append ()
410 {
411 eval $1=\$$1\$2
412 }
413 fi # as_fn_append
414
415 # as_fn_arith ARG...
416 # ------------------
417 # Perform arithmetic evaluation on the ARGs, and store the result in the
418 # global $as_val. Take advantage of shells that can avoid forks. The arguments
419 # must be portable across $(()) and expr.
420 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
421 eval 'as_fn_arith ()
422 {
423 as_val=$(( $* ))
424 }'
425 else
426 as_fn_arith ()
427 {
428 as_val=`expr "$@" || test $? -eq 1`
429 }
430 fi # as_fn_arith
431
432
433 # as_fn_error STATUS ERROR [LINENO LOG_FD]
434 # ----------------------------------------
435 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
436 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
437 # script with STATUS, using 1 if that was 0.
438 as_fn_error ()
439 {
440 as_status=$1; test $as_status -eq 0 && as_status=1
441 if test "$4"; then
442 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
443 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
444 fi
445 $as_echo "$as_me: error: $2" >&2
446 as_fn_exit $as_status
447 } # as_fn_error
448
449 if expr a : '\(a\)' >/dev/null 2>&1 &&
450 test "X`expr 00001 : '.*\(...\)'`" = X001; then
451 as_expr=expr
452 else
453 as_expr=false
454 fi
455
456 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
457 as_basename=basename
458 else
459 as_basename=false
460 fi
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464 else
465 as_dirname=false
466 fi
467
468 as_me=`$as_basename -- "$0" ||
469 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
470 X"$0" : 'X\(//\)$' \| \
471 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
472 $as_echo X/"$0" |
473 sed '/^.*\/\([^/][^/]*\)\/*$/{
474 s//\1/
475 q
476 }
477 /^X\/\(\/\/\)$/{
478 s//\1/
479 q
480 }
481 /^X\/\(\/\).*/{
482 s//\1/
483 q
484 }
485 s/.*/./; q'`
486
487 # Avoid depending upon Character Ranges.
488 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
489 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
490 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
491 as_cr_digits='0123456789'
492 as_cr_alnum=$as_cr_Letters$as_cr_digits
493
494
495 as_lineno_1=$LINENO as_lineno_1a=$LINENO
496 as_lineno_2=$LINENO as_lineno_2a=$LINENO
497 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
498 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
499 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
500 sed -n '
501 p
502 /[$]LINENO/=
503 ' <$as_myself |
504 sed '
505 s/[$]LINENO.*/&-/
506 t lineno
507 b
508 :lineno
509 N
510 :loop
511 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
512 t loop
513 s/-\n.*//
514 ' >$as_me.lineno &&
515 chmod +x "$as_me.lineno" ||
516 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
517
518 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
519 # already done that, so ensure we don't try to do so again and fall
520 # in an infinite loop. This has already happened in practice.
521 _as_can_reexec=no; export _as_can_reexec
522 # Don't try to exec as it changes $[0], causing all sort of problems
523 # (the dirname of $[0] is not the place where we might find the
524 # original and so on. Autoconf is especially sensitive to this).
525 . "./$as_me.lineno"
526 # Exit status is that of the last command.
527 exit
528 }
529
530 ECHO_C= ECHO_N= ECHO_T=
531 case `echo -n x` in #(((((
532 -n*)
533 case `echo 'xy\c'` in
534 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
535 xy) ECHO_C='\c';;
536 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
537 ECHO_T=' ';;
538 esac;;
539 *)
540 ECHO_N='-n';;
541 esac
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
556 # In both cases, we have to default to `cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
582
583 # Sed expression to map a string onto a valid variable name.
584 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
585
586 SHELL=${CONFIG_SHELL-/bin/sh}
587
588
589 test -n "$DJDIR" || exec 7<&0 </dev/null
590 exec 6>&1
591
592 # Name of the host.
593 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
594 # so uname gets run too.
595 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
596
597 #
598 # Initializations.
599 #
600 ac_default_prefix=/usr/local
601 ac_clean_files=
602 ac_config_libobj_dir=.
603 LIBOBJS=
604 cross_compiling=no
605 subdirs=
606 MFLAGS=
607 MAKEFLAGS=
608
609 # Identity of this package.
610 PACKAGE_NAME='MPFR'
611 PACKAGE_TARNAME='mpfr'
612 PACKAGE_VERSION='3.1.5'
613 PACKAGE_STRING='MPFR 3.1.5'
614 PACKAGE_BUGREPORT=''
615 PACKAGE_URL=''
616
617 # Factoring default headers for most tests.
618 ac_includes_default="\
619 #include <stdio.h>
620 #ifdef HAVE_SYS_TYPES_H
621 # include <sys/types.h>
622 #endif
623 #ifdef HAVE_SYS_STAT_H
624 # include <sys/stat.h>
625 #endif
626 #ifdef STDC_HEADERS
627 # include <stdlib.h>
628 # include <stddef.h>
629 #else
630 # ifdef HAVE_STDLIB_H
631 # include <stdlib.h>
632 # endif
633 #endif
634 #ifdef HAVE_STRING_H
635 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
636 # include <memory.h>
637 # endif
638 # include <string.h>
639 #endif
640 #ifdef HAVE_STRINGS_H
641 # include <strings.h>
642 #endif
643 #ifdef HAVE_INTTYPES_H
644 # include <inttypes.h>
645 #endif
646 #ifdef HAVE_STDINT_H
647 # include <stdint.h>
648 #endif
649 #ifdef HAVE_UNISTD_H
650 # include <unistd.h>
651 #endif"
652
653 ac_subst_vars='am__EXEEXT_FALSE
654 am__EXEEXT_TRUE
655 LTLIBOBJS
656 LIBOBJS
657 DATAFILES
658 LT_SYS_LIBRARY_PATH
659 OTOOL64
660 OTOOL
661 LIPO
662 NMEDIT
663 DSYMUTIL
664 MANIFEST_TOOL
665 RANLIB
666 LN_S
667 NM
668 ac_ct_DUMPBIN
669 DUMPBIN
670 LD
671 FGREP
672 LIBTOOL
673 OBJDUMP
674 DLLTOOL
675 AS
676 LIBMPFR_LDFLAGS
677 MPFR_LDFLAGS
678 TUNE_LIBS
679 ALLOCA
680 MPFR_LIBM
681 ac_ct_AR
682 AR
683 CPP
684 am__fastdepCC_FALSE
685 am__fastdepCC_TRUE
686 CCDEPMODE
687 am__nodep
688 AMDEPBACKSLASH
689 AMDEP_FALSE
690 AMDEP_TRUE
691 am__quote
692 am__include
693 DEPDIR
694 OBJEXT
695 EXEEXT
696 ac_ct_CC
697 CPPFLAGS
698 LDFLAGS
699 CFLAGS
700 CC
701 SED
702 EGREP
703 GREP
704 host_os
705 host_vendor
706 host_cpu
707 host
708 build_os
709 build_vendor
710 build_cpu
711 build
712 MAINT
713 MAINTAINER_MODE_FALSE
714 MAINTAINER_MODE_TRUE
715 AM_BACKSLASH
716 AM_DEFAULT_VERBOSITY
717 AM_DEFAULT_V
718 AM_V
719 am__untar
720 am__tar
721 AMTAR
722 am__leading_dot
723 SET_MAKE
724 AWK
725 mkdir_p
726 MKDIR_P
727 INSTALL_STRIP_PROGRAM
728 STRIP
729 install_sh
730 MAKEINFO
731 AUTOHEADER
732 AUTOMAKE
733 AUTOCONF
734 ACLOCAL
735 VERSION
736 PACKAGE
737 CYGPATH_W
738 am__isrc
739 INSTALL_DATA
740 INSTALL_SCRIPT
741 INSTALL_PROGRAM
742 target_alias
743 host_alias
744 build_alias
745 LIBS
746 ECHO_T
747 ECHO_N
748 ECHO_C
749 DEFS
750 mandir
751 localedir
752 libdir
753 psdir
754 pdfdir
755 dvidir
756 htmldir
757 infodir
758 docdir
759 oldincludedir
760 includedir
761 runstatedir
762 localstatedir
763 sharedstatedir
764 sysconfdir
765 datadir
766 datarootdir
767 libexecdir
768 sbindir
769 bindir
770 program_transform_name
771 prefix
772 exec_prefix
773 PACKAGE_URL
774 PACKAGE_BUGREPORT
775 PACKAGE_STRING
776 PACKAGE_VERSION
777 PACKAGE_TARNAME
778 PACKAGE_NAME
779 PATH_SEPARATOR
780 SHELL'
781 ac_subst_files=''
782 ac_user_opts='
783 enable_option_checking
784 enable_silent_rules
785 enable_maintainer_mode
786 with_gmp_include
787 with_gmp_lib
788 with_gmp
789 with_gmp_build
790 with_mulhigh_size
791 enable_gmp_internals
792 enable_assert
793 enable_logging
794 enable_thread_safe
795 enable_warnings
796 enable_tests_timeout
797 enable_dependency_tracking
798 enable_decimal_float
799 enable_shared
800 enable_static
801 with_pic
802 enable_fast_install
803 with_aix_soname
804 with_gnu_ld
805 with_sysroot
806 enable_libtool_lock
807 '
808 ac_precious_vars='build_alias
809 host_alias
810 target_alias
811 CC
812 CFLAGS
813 LDFLAGS
814 LIBS
815 CPPFLAGS
816 CPP
817 LT_SYS_LIBRARY_PATH'
818
819
820 # Initialize some variables set by options.
821 ac_init_help=
822 ac_init_version=false
823 ac_unrecognized_opts=
824 ac_unrecognized_sep=
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
841
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 runstatedir='${localstatedir}/run'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
868
869 ac_prev=
870 ac_dashdash=
871 for ac_option
872 do
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
878 fi
879
880 case $ac_option in
881 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *=) ac_optarg= ;;
883 *) ac_optarg=yes ;;
884 esac
885
886 # Accept the important Cygnus configure options, so we can diagnose typos.
887
888 case $ac_dashdash$ac_option in
889 --)
890 ac_dashdash=yes ;;
891
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 bindir=$ac_optarg ;;
896
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
901
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
908
909 --config-cache | -C)
910 cache_file=config.cache ;;
911
912 -datadir | --datadir | --datadi | --datad)
913 ac_prev=datadir ;;
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
916
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
923
924 -disable-* | --disable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=no ;;
939
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
944
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
949
950 -enable-* | --enable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error $? "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=\$ac_optarg ;;
965
966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968 | --exec | --exe | --ex)
969 ac_prev=exec_prefix ;;
970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972 | --exec=* | --exe=* | --ex=*)
973 exec_prefix=$ac_optarg ;;
974
975 -gas | --gas | --ga | --g)
976 # Obsolete; use --with-gas.
977 with_gas=yes ;;
978
979 -help | --help | --hel | --he | -h)
980 ac_init_help=long ;;
981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982 ac_init_help=recursive ;;
983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 ac_init_help=short ;;
985
986 -host | --host | --hos | --ho)
987 ac_prev=host_alias ;;
988 -host=* | --host=* | --hos=* | --ho=*)
989 host_alias=$ac_optarg ;;
990
991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 ac_prev=htmldir ;;
993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 | --ht=*)
995 htmldir=$ac_optarg ;;
996
997 -includedir | --includedir | --includedi | --included | --include \
998 | --includ | --inclu | --incl | --inc)
999 ac_prev=includedir ;;
1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001 | --includ=* | --inclu=* | --incl=* | --inc=*)
1002 includedir=$ac_optarg ;;
1003
1004 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 ac_prev=infodir ;;
1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007 infodir=$ac_optarg ;;
1008
1009 -libdir | --libdir | --libdi | --libd)
1010 ac_prev=libdir ;;
1011 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012 libdir=$ac_optarg ;;
1013
1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015 | --libexe | --libex | --libe)
1016 ac_prev=libexecdir ;;
1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018 | --libexe=* | --libex=* | --libe=*)
1019 libexecdir=$ac_optarg ;;
1020
1021 -localedir | --localedir | --localedi | --localed | --locale)
1022 ac_prev=localedir ;;
1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 localedir=$ac_optarg ;;
1025
1026 -localstatedir | --localstatedir | --localstatedi | --localstated \
1027 | --localstate | --localstat | --localsta | --localst | --locals)
1028 ac_prev=localstatedir ;;
1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031 localstatedir=$ac_optarg ;;
1032
1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 ac_prev=mandir ;;
1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036 mandir=$ac_optarg ;;
1037
1038 -nfp | --nfp | --nf)
1039 # Obsolete; use --without-fp.
1040 with_fp=no ;;
1041
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n)
1044 no_create=yes ;;
1045
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 no_recursion=yes ;;
1049
1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052 | --oldin | --oldi | --old | --ol | --o)
1053 ac_prev=oldincludedir ;;
1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057 oldincludedir=$ac_optarg ;;
1058
1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 ac_prev=prefix ;;
1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062 prefix=$ac_optarg ;;
1063
1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065 | --program-pre | --program-pr | --program-p)
1066 ac_prev=program_prefix ;;
1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069 program_prefix=$ac_optarg ;;
1070
1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072 | --program-suf | --program-su | --program-s)
1073 ac_prev=program_suffix ;;
1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076 program_suffix=$ac_optarg ;;
1077
1078 -program-transform-name | --program-transform-name \
1079 | --program-transform-nam | --program-transform-na \
1080 | --program-transform-n | --program-transform- \
1081 | --program-transform | --program-transfor \
1082 | --program-transfo | --program-transf \
1083 | --program-trans | --program-tran \
1084 | --progr-tra | --program-tr | --program-t)
1085 ac_prev=program_transform_name ;;
1086 -program-transform-name=* | --program-transform-name=* \
1087 | --program-transform-nam=* | --program-transform-na=* \
1088 | --program-transform-n=* | --program-transform-=* \
1089 | --program-transform=* | --program-transfor=* \
1090 | --program-transfo=* | --program-transf=* \
1091 | --program-trans=* | --program-tran=* \
1092 | --progr-tra=* | --program-tr=* | --program-t=*)
1093 program_transform_name=$ac_optarg ;;
1094
1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 ac_prev=pdfdir ;;
1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 pdfdir=$ac_optarg ;;
1099
1100 -psdir | --psdir | --psdi | --psd | --ps)
1101 ac_prev=psdir ;;
1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 psdir=$ac_optarg ;;
1104
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1107 silent=yes ;;
1108
1109 -runstatedir | --runstatedir | --runstatedi | --runstated \
1110 | --runstate | --runstat | --runsta | --runst | --runs \
1111 | --run | --ru | --r)
1112 ac_prev=runstatedir ;;
1113 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1114 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1115 | --run=* | --ru=* | --r=*)
1116 runstatedir=$ac_optarg ;;
1117
1118 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119 ac_prev=sbindir ;;
1120 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121 | --sbi=* | --sb=*)
1122 sbindir=$ac_optarg ;;
1123
1124 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126 | --sharedst | --shareds | --shared | --share | --shar \
1127 | --sha | --sh)
1128 ac_prev=sharedstatedir ;;
1129 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132 | --sha=* | --sh=*)
1133 sharedstatedir=$ac_optarg ;;
1134
1135 -site | --site | --sit)
1136 ac_prev=site ;;
1137 -site=* | --site=* | --sit=*)
1138 site=$ac_optarg ;;
1139
1140 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141 ac_prev=srcdir ;;
1142 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1143 srcdir=$ac_optarg ;;
1144
1145 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146 | --syscon | --sysco | --sysc | --sys | --sy)
1147 ac_prev=sysconfdir ;;
1148 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1150 sysconfdir=$ac_optarg ;;
1151
1152 -target | --target | --targe | --targ | --tar | --ta | --t)
1153 ac_prev=target_alias ;;
1154 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1155 target_alias=$ac_optarg ;;
1156
1157 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158 verbose=yes ;;
1159
1160 -version | --version | --versio | --versi | --vers | -V)
1161 ac_init_version=: ;;
1162
1163 -with-* | --with-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error $? "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172 "with_$ac_useropt"
1173 "*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=\$ac_optarg ;;
1178
1179 -without-* | --without-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error $? "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=no ;;
1194
1195 --x)
1196 # Obsolete; use --with-x.
1197 with_x=yes ;;
1198
1199 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200 | --x-incl | --x-inc | --x-in | --x-i)
1201 ac_prev=x_includes ;;
1202 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1204 x_includes=$ac_optarg ;;
1205
1206 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208 ac_prev=x_libraries ;;
1209 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1211 x_libraries=$ac_optarg ;;
1212
1213 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1214 Try \`$0 --help' for more information"
1215 ;;
1216
1217 *=*)
1218 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1219 # Reject names that are not valid shell variable names.
1220 case $ac_envvar in #(
1221 '' | [0-9]* | *[!_$as_cr_alnum]* )
1222 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1223 esac
1224 eval $ac_envvar=\$ac_optarg
1225 export $ac_envvar ;;
1226
1227 *)
1228 # FIXME: should be removed in autoconf 3.0.
1229 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1230 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1232 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1233 ;;
1234
1235 esac
1236 done
1237
1238 if test -n "$ac_prev"; then
1239 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1240 as_fn_error $? "missing argument to $ac_option"
1241 fi
1242
1243 if test -n "$ac_unrecognized_opts"; then
1244 case $enable_option_checking in
1245 no) ;;
1246 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1247 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1248 esac
1249 fi
1250
1251 # Check all directory arguments for consistency.
1252 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253 datadir sysconfdir sharedstatedir localstatedir includedir \
1254 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255 libdir localedir mandir runstatedir
1256 do
1257 eval ac_val=\$$ac_var
1258 # Remove trailing slashes.
1259 case $ac_val in
1260 */ )
1261 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262 eval $ac_var=\$ac_val;;
1263 esac
1264 # Be sure to have absolute directory names.
1265 case $ac_val in
1266 [\\/$]* | ?:[\\/]* ) continue;;
1267 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1268 esac
1269 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1270 done
1271
1272 # There might be people who depend on the old broken behavior: `$host'
1273 # used to hold the argument of --host etc.
1274 # FIXME: To remove some day.
1275 build=$build_alias
1276 host=$host_alias
1277 target=$target_alias
1278
1279 # FIXME: To remove some day.
1280 if test "x$host_alias" != x; then
1281 if test "x$build_alias" = x; then
1282 cross_compiling=maybe
1283 elif test "x$build_alias" != "x$host_alias"; then
1284 cross_compiling=yes
1285 fi
1286 fi
1287
1288 ac_tool_prefix=
1289 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290
1291 test "$silent" = yes && exec 6>/dev/null
1292
1293
1294 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295 ac_ls_di=`ls -di .` &&
1296 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297 as_fn_error $? "working directory cannot be determined"
1298 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299 as_fn_error $? "pwd does not report name of working directory"
1300
1301
1302 # Find the source files, if location was not specified.
1303 if test -z "$srcdir"; then
1304 ac_srcdir_defaulted=yes
1305 # Try the directory containing this script, then the parent directory.
1306 ac_confdir=`$as_dirname -- "$as_myself" ||
1307 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308 X"$as_myself" : 'X\(//\)[^/]' \| \
1309 X"$as_myself" : 'X\(//\)$' \| \
1310 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1311 $as_echo X"$as_myself" |
1312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\/\)[^/].*/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)$/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\).*/{
1325 s//\1/
1326 q
1327 }
1328 s/.*/./; q'`
1329 srcdir=$ac_confdir
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1331 srcdir=..
1332 fi
1333 else
1334 ac_srcdir_defaulted=no
1335 fi
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1338 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1339 fi
1340 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1341 ac_abs_confdir=`(
1342 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1343 pwd)`
1344 # When building in place, set srcdir=.
1345 if test "$ac_abs_confdir" = "$ac_pwd"; then
1346 srcdir=.
1347 fi
1348 # Remove unnecessary trailing slashes from srcdir.
1349 # Double slashes in file names in object file debugging info
1350 # mess up M-x gdb in Emacs.
1351 case $srcdir in
1352 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353 esac
1354 for ac_var in $ac_precious_vars; do
1355 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_env_${ac_var}_value=\$${ac_var}
1357 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359 done
1360
1361 #
1362 # Report the --help message.
1363 #
1364 if test "$ac_init_help" = "long"; then
1365 # Omit some internal or obsolete options to make the list less imposing.
1366 # This message is too long to be a string in the A/UX 3.1 sh.
1367 cat <<_ACEOF
1368 \`configure' configures MPFR 3.1.5 to adapt to many kinds of systems.
1369
1370 Usage: $0 [OPTION]... [VAR=VALUE]...
1371
1372 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373 VAR=VALUE. See below for descriptions of some of the useful variables.
1374
1375 Defaults for the options are specified in brackets.
1376
1377 Configuration:
1378 -h, --help display this help and exit
1379 --help=short display options specific to this package
1380 --help=recursive display the short help of all the included packages
1381 -V, --version display version information and exit
1382 -q, --quiet, --silent do not print \`checking ...' messages
1383 --cache-file=FILE cache test results in FILE [disabled]
1384 -C, --config-cache alias for \`--cache-file=config.cache'
1385 -n, --no-create do not create output files
1386 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1387
1388 Installation directories:
1389 --prefix=PREFIX install architecture-independent files in PREFIX
1390 [$ac_default_prefix]
1391 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1392 [PREFIX]
1393
1394 By default, \`make install' will install all the files in
1395 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1396 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1397 for instance \`--prefix=\$HOME'.
1398
1399 For better control, use the options below.
1400
1401 Fine tuning of the installation directories:
1402 --bindir=DIR user executables [EPREFIX/bin]
1403 --sbindir=DIR system admin executables [EPREFIX/sbin]
1404 --libexecdir=DIR program executables [EPREFIX/libexec]
1405 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1406 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1407 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1408 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1409 --libdir=DIR object code libraries [EPREFIX/lib]
1410 --includedir=DIR C header files [PREFIX/include]
1411 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1414 --infodir=DIR info documentation [DATAROOTDIR/info]
1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1416 --mandir=DIR man documentation [DATAROOTDIR/man]
1417 --docdir=DIR documentation root [DATAROOTDIR/doc/mpfr]
1418 --htmldir=DIR html documentation [DOCDIR]
1419 --dvidir=DIR dvi documentation [DOCDIR]
1420 --pdfdir=DIR pdf documentation [DOCDIR]
1421 --psdir=DIR ps documentation [DOCDIR]
1422 _ACEOF
1423
1424 cat <<\_ACEOF
1425
1426 Program names:
1427 --program-prefix=PREFIX prepend PREFIX to installed program names
1428 --program-suffix=SUFFIX append SUFFIX to installed program names
1429 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1430
1431 System types:
1432 --build=BUILD configure for building on BUILD [guessed]
1433 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1434 _ACEOF
1435 fi
1436
1437 if test -n "$ac_init_help"; then
1438 case $ac_init_help in
1439 short | recursive ) echo "Configuration of MPFR 3.1.5:";;
1440 esac
1441 cat <<\_ACEOF
1442
1443 Optional Features:
1444 --disable-option-checking ignore unrecognized --enable/--with options
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 --enable-silent-rules less verbose build output (undo: "make V=1")
1448 --disable-silent-rules verbose build output (undo: "make V=0")
1449 --disable-maintainer-mode
1450 disable make rules and dependencies not useful (and
1451 sometimes confusing) to the casual installer
1452 --enable-gmp-internals enable use of GMP undocumented functions [default=no]
1453 --enable-assert enable ASSERT checking [default=no]
1454 --enable-logging enable MPFR logging (the system must support it)
1455 [default=no]
1456 --disable-thread-safe explicitly disable TLS support
1457 --enable-thread-safe build MPFR as thread safe, i.e. with TLS support
1458 (the system must support it) [default=autodetect]
1459 --enable-warnings allow MPFR to output warnings to stderr [default=no]
1460 --enable-tests-timeout=NUM enable timeout (NUM seconds) for test programs
1461 (NUM <= 9999) [default=no]; if enabled, env variable
1462 $MPFR_TESTS_TIMEOUT overrides NUM (0: no timeout).
1463 --enable-dependency-tracking
1464 do not reject slow dependency extractors
1465 --disable-dependency-tracking
1466 speeds up one-time build
1467 --enable-decimal-float build conversion functions from/to decimal floats
1468 [default=no]
1469 --enable-shared[=PKGS] build shared libraries [default=yes]
1470 --enable-static[=PKGS] build static libraries [default=yes]
1471 --enable-fast-install[=PKGS]
1472 optimize for fast installation [default=yes]
1473 --disable-libtool-lock avoid locking (might break parallel builds)
1474
1475 Optional Packages:
1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1478 --with-gmp-include=DIR GMP include directory
1479 --with-gmp-lib=DIR GMP lib directory
1480 --with-gmp=DIR GMP install directory
1481 --with-gmp-build=DIR GMP build directory (please read INSTALL file)
1482 --with-mulhigh-size=NUM internal threshold table for mulhigh
1483 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1484 both]
1485 --with-aix-soname=aix|svr4|both
1486 shared library versioning (aka "SONAME") variant to
1487 provide on AIX, [default=aix].
1488 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1489 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1490 compiler's sysroot if not specified).
1491
1492 Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
1497 LIBS libraries to pass to the linker, e.g. -l<library>
1498 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1499 you have headers in a nonstandard directory <include dir>
1500 CPP C preprocessor
1501 LT_SYS_LIBRARY_PATH
1502 User-defined run-time library search path.
1503
1504 Use these variables to override the choices made by `configure' or to help
1505 it to find libraries and programs with nonstandard names/locations.
1506
1507 Report bugs to the package provider.
1508 _ACEOF
1509 ac_status=$?
1510 fi
1511
1512 if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515 test -d "$ac_dir" ||
1516 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1517 continue
1518 ac_builddir=.
1519
1520 case "$ac_dir" in
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *)
1523 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530 esac
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1535
1536 case $srcdir in
1537 .) # We are building in place.
1538 ac_srcdir=.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 esac
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1560 else
1561 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1564 done
1565 fi
1566
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569 cat <<\_ACEOF
1570 MPFR configure 3.1.5
1571 generated by GNU Autoconf 2.69
1572
1573 Copyright (C) 2012 Free Software Foundation, Inc.
1574 This configure script is free software; the Free Software Foundation
1575 gives unlimited permission to copy, distribute and modify it.
1576
1577
1578 Copyright 1999-2016 Free Software Foundation, Inc.
1579 Contributed by the AriC and Caramba projects, INRIA.
1580
1581 This file is part of the GNU MPFR Library.
1582
1583 The GNU MPFR Library is free software; you can redistribute it and/or modify
1584 it under the terms of the GNU Lesser General Public License as published
1585 by the Free Software Foundation; either version 3 of the License, or (at
1586 your option) any later version.
1587
1588 The GNU MPFR Library is distributed in the hope that it will be useful, but
1589 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1590 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
1591 License for more details.
1592
1593 You should have received a copy of the GNU Lesser General Public License
1594 along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see
1595 http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
1596 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
1597
1598 _ACEOF
1599 exit
1600 fi
1601
1602 ## ------------------------ ##
1603 ## Autoconf initialization. ##
1604 ## ------------------------ ##
1605
1606 # ac_fn_c_try_compile LINENO
1607 # --------------------------
1608 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1609 ac_fn_c_try_compile ()
1610 {
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 rm -f conftest.$ac_objext
1613 if { { ac_try="$ac_compile"
1614 case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_compile") 2>conftest.err
1621 ac_status=$?
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1626 fi
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && {
1629 test -z "$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 } && test -s conftest.$ac_objext; then :
1632 ac_retval=0
1633 else
1634 $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1636
1637 ac_retval=1
1638 fi
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 as_fn_set_status $ac_retval
1641
1642 } # ac_fn_c_try_compile
1643
1644 # ac_fn_c_try_cpp LINENO
1645 # ----------------------
1646 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1647 ac_fn_c_try_cpp ()
1648 {
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 if { { ac_try="$ac_cpp conftest.$ac_ext"
1651 case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1658 ac_status=$?
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1663 fi
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } > conftest.i && {
1666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1667 test ! -s conftest.err
1668 }; then :
1669 ac_retval=0
1670 else
1671 $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1673
1674 ac_retval=1
1675 fi
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677 as_fn_set_status $ac_retval
1678
1679 } # ac_fn_c_try_cpp
1680
1681 # ac_fn_c_try_run LINENO
1682 # ----------------------
1683 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1684 # that executables *can* be run.
1685 ac_fn_c_try_run ()
1686 {
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 if { { ac_try="$ac_link"
1689 case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_link") 2>&5
1696 ac_status=$?
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1699 { { case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_try") 2>&5
1706 ac_status=$?
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; }; }; then :
1709 ac_retval=0
1710 else
1711 $as_echo "$as_me: program exited with status $ac_status" >&5
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1714
1715 ac_retval=$ac_status
1716 fi
1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1720
1721 } # ac_fn_c_try_run
1722
1723 # ac_fn_c_try_link LINENO
1724 # -----------------------
1725 # Try to link conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_c_try_link ()
1727 {
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 rm -f conftest.$ac_objext conftest$ac_exeext
1730 if { { ac_try="$ac_link"
1731 case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_link") 2>conftest.err
1738 ac_status=$?
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1743 fi
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_c_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest$ac_exeext && {
1749 test "$cross_compiling" = yes ||
1750 test -x conftest$ac_exeext
1751 }; then :
1752 ac_retval=0
1753 else
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1756
1757 ac_retval=1
1758 fi
1759 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1760 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1761 # interfere with the next link command; also delete a directory that is
1762 # left behind by Apple's compiler. We do this before executing the actions.
1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
1766
1767 } # ac_fn_c_try_link
1768
1769 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1770 # -------------------------------------------------------
1771 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1772 # the include files in INCLUDES and setting the cache variable VAR
1773 # accordingly.
1774 ac_fn_c_check_header_mongrel ()
1775 {
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 if eval \${$3+:} false; then :
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if eval \${$3+:} false; then :
1781 $as_echo_n "(cached) " >&6
1782 fi
1783 eval ac_res=\$$3
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785 $as_echo "$ac_res" >&6; }
1786 else
1787 # Is the header compilable?
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1789 $as_echo_n "checking $2 usability... " >&6; }
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 $4
1793 #include <$2>
1794 _ACEOF
1795 if ac_fn_c_try_compile "$LINENO"; then :
1796 ac_header_compiler=yes
1797 else
1798 ac_header_compiler=no
1799 fi
1800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1802 $as_echo "$ac_header_compiler" >&6; }
1803
1804 # Is the header present?
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1806 $as_echo_n "checking $2 presence... " >&6; }
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h. */
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_cpp "$LINENO"; then :
1812 ac_header_preproc=yes
1813 else
1814 ac_header_preproc=no
1815 fi
1816 rm -f conftest.err conftest.i conftest.$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1818 $as_echo "$ac_header_preproc" >&6; }
1819
1820 # So? What about this header?
1821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1822 yes:no: )
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1824 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1826 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1827 ;;
1828 no:yes:* )
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1830 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1832 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1834 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1836 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1838 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1839 ;;
1840 esac
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1845 else
1846 eval "$3=\$ac_header_compiler"
1847 fi
1848 eval ac_res=\$$3
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1851 fi
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853
1854 } # ac_fn_c_check_header_mongrel
1855
1856 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1857 # -------------------------------------------------------
1858 # Tests whether HEADER exists and can be compiled using the include files in
1859 # INCLUDES, setting the cache variable VAR accordingly.
1860 ac_fn_c_check_header_compile ()
1861 {
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864 $as_echo_n "checking for $2... " >&6; }
1865 if eval \${$3+:} false; then :
1866 $as_echo_n "(cached) " >&6
1867 else
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1870 $4
1871 #include <$2>
1872 _ACEOF
1873 if ac_fn_c_try_compile "$LINENO"; then :
1874 eval "$3=yes"
1875 else
1876 eval "$3=no"
1877 fi
1878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879 fi
1880 eval ac_res=\$$3
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884
1885 } # ac_fn_c_check_header_compile
1886
1887 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1888 # ----------------------------------------------------
1889 # Tries to find if the field MEMBER exists in type AGGR, after including
1890 # INCLUDES, setting cache variable VAR accordingly.
1891 ac_fn_c_check_member ()
1892 {
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1895 $as_echo_n "checking for $2.$3... " >&6; }
1896 if eval \${$4+:} false; then :
1897 $as_echo_n "(cached) " >&6
1898 else
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1901 $5
1902 int
1903 main (void)
1904 {
1905 static $2 ac_aggr;
1906 if (ac_aggr.$3)
1907 return 0;
1908 ;
1909 return 0;
1910 }
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913 eval "$4=yes"
1914 else
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1917 $5
1918 int
1919 main (void)
1920 {
1921 static $2 ac_aggr;
1922 if (sizeof ac_aggr.$3)
1923 return 0;
1924 ;
1925 return 0;
1926 }
1927 _ACEOF
1928 if ac_fn_c_try_compile "$LINENO"; then :
1929 eval "$4=yes"
1930 else
1931 eval "$4=no"
1932 fi
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 fi
1937 eval ac_res=\$$4
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942 } # ac_fn_c_check_member
1943
1944 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1945 # -------------------------------------------
1946 # Tests whether TYPE exists after having included INCLUDES, setting cache
1947 # variable VAR accordingly.
1948 ac_fn_c_check_type ()
1949 {
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval \${$3+:} false; then :
1954 $as_echo_n "(cached) " >&6
1955 else
1956 eval "$3=no"
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1959 $4
1960 int
1961 main (void)
1962 {
1963 if (sizeof ($2))
1964 return 0;
1965 ;
1966 return 0;
1967 }
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1972 $4
1973 int
1974 main (void)
1975 {
1976 if (sizeof (($2)))
1977 return 0;
1978 ;
1979 return 0;
1980 }
1981 _ACEOF
1982 if ac_fn_c_try_compile "$LINENO"; then :
1983
1984 else
1985 eval "$3=yes"
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 fi
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 fi
1991 eval ac_res=\$$3
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995
1996 } # ac_fn_c_check_type
1997
1998 # ac_fn_c_check_func LINENO FUNC VAR
1999 # ----------------------------------
2000 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2001 ac_fn_c_check_func ()
2002 {
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005 $as_echo_n "checking for $2... " >&6; }
2006 if eval \${$3+:} false; then :
2007 $as_echo_n "(cached) " >&6
2008 else
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2011 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2013 #define $2 innocuous_$2
2014
2015 /* System header to define __stub macros and hopefully few prototypes,
2016 which can conflict with char $2 (); below.
2017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2018 <limits.h> exists even on freestanding compilers. */
2019
2020 #ifdef __STDC__
2021 # include <limits.h>
2022 #else
2023 # include <assert.h>
2024 #endif
2025
2026 #undef $2
2027
2028 /* Override any GCC internal prototype to avoid an error.
2029 Use char because int might match the return type of a GCC
2030 builtin and then its argument prototype would still apply. */
2031 #ifdef __cplusplus
2032 extern "C"
2033 #endif
2034 char $2 ();
2035 /* The GNU C library defines this for functions which it implements
2036 to always fail with ENOSYS. Some functions are actually named
2037 something starting with __ and the normal name is an alias. */
2038 #if defined __stub_$2 || defined __stub___$2
2039 choke me
2040 #endif
2041
2042 int
2043 main (void)
2044 {
2045 return $2 ();
2046 ;
2047 return 0;
2048 }
2049 _ACEOF
2050 if ac_fn_c_try_link "$LINENO"; then :
2051 eval "$3=yes"
2052 else
2053 eval "$3=no"
2054 fi
2055 rm -f core conftest.err conftest.$ac_objext \
2056 conftest$ac_exeext conftest.$ac_ext
2057 fi
2058 eval ac_res=\$$3
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062
2063 } # ac_fn_c_check_func
2064
2065 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2066 # --------------------------------------------
2067 # Tries to find the compile-time value of EXPR in a program that includes
2068 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2069 # computed
2070 ac_fn_c_compute_int ()
2071 {
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 if test "$cross_compiling" = yes; then
2074 # Depending upon the size, compute the lo and hi bounds.
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2077 $4
2078 int
2079 main (void)
2080 {
2081 static int test_array [1 - 2 * !(($2) >= 0)];
2082 test_array [0] = 0;
2083 return test_array [0];
2084
2085 ;
2086 return 0;
2087 }
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 ac_lo=0 ac_mid=0
2091 while :; do
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2094 $4
2095 int
2096 main (void)
2097 {
2098 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2099 test_array [0] = 0;
2100 return test_array [0];
2101
2102 ;
2103 return 0;
2104 }
2105 _ACEOF
2106 if ac_fn_c_try_compile "$LINENO"; then :
2107 ac_hi=$ac_mid; break
2108 else
2109 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2110 if test $ac_lo -le $ac_mid; then
2111 ac_lo= ac_hi=
2112 break
2113 fi
2114 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2115 fi
2116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 done
2118 else
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2121 $4
2122 int
2123 main (void)
2124 {
2125 static int test_array [1 - 2 * !(($2) < 0)];
2126 test_array [0] = 0;
2127 return test_array [0];
2128
2129 ;
2130 return 0;
2131 }
2132 _ACEOF
2133 if ac_fn_c_try_compile "$LINENO"; then :
2134 ac_hi=-1 ac_mid=-1
2135 while :; do
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2138 $4
2139 int
2140 main (void)
2141 {
2142 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2143 test_array [0] = 0;
2144 return test_array [0];
2145
2146 ;
2147 return 0;
2148 }
2149 _ACEOF
2150 if ac_fn_c_try_compile "$LINENO"; then :
2151 ac_lo=$ac_mid; break
2152 else
2153 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2154 if test $ac_mid -le $ac_hi; then
2155 ac_lo= ac_hi=
2156 break
2157 fi
2158 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2159 fi
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 done
2162 else
2163 ac_lo= ac_hi=
2164 fi
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 fi
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 # Binary search between lo and hi bounds.
2169 while test "x$ac_lo" != "x$ac_hi"; do
2170 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h. */
2173 $4
2174 int
2175 main (void)
2176 {
2177 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2178 test_array [0] = 0;
2179 return test_array [0];
2180
2181 ;
2182 return 0;
2183 }
2184 _ACEOF
2185 if ac_fn_c_try_compile "$LINENO"; then :
2186 ac_hi=$ac_mid
2187 else
2188 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2189 fi
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191 done
2192 case $ac_lo in #((
2193 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2194 '') ac_retval=1 ;;
2195 esac
2196 else
2197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198 /* end confdefs.h. */
2199 $4
2200 static long int longval () { return $2; }
2201 static unsigned long int ulongval () { return $2; }
2202 #include <stdio.h>
2203 #include <stdlib.h>
2204 int
2205 main (void)
2206 {
2207
2208 FILE *f = fopen ("conftest.val", "w");
2209 if (! f)
2210 return 1;
2211 if (($2) < 0)
2212 {
2213 long int i = longval ();
2214 if (i != ($2))
2215 return 1;
2216 fprintf (f, "%ld", i);
2217 }
2218 else
2219 {
2220 unsigned long int i = ulongval ();
2221 if (i != ($2))
2222 return 1;
2223 fprintf (f, "%lu", i);
2224 }
2225 /* Do not output a trailing newline, as this causes \r\n confusion
2226 on some platforms. */
2227 return ferror (f) || fclose (f) != 0;
2228
2229 ;
2230 return 0;
2231 }
2232 _ACEOF
2233 if ac_fn_c_try_run "$LINENO"; then :
2234 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2235 else
2236 ac_retval=1
2237 fi
2238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2239 conftest.$ac_objext conftest.beam conftest.$ac_ext
2240 rm -f conftest.val
2241
2242 fi
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2244 as_fn_set_status $ac_retval
2245
2246 } # ac_fn_c_compute_int
2247 cat >config.log <<_ACEOF
2248 This file contains any messages produced by compilers while
2249 running configure, to aid debugging if configure makes a mistake.
2250
2251 It was created by MPFR $as_me 3.1.5, which was
2252 generated by GNU Autoconf 2.69. Invocation command line was
2253
2254 $ $0 $@
2255
2256 _ACEOF
2257 exec 5>>config.log
2258 {
2259 cat <<_ASUNAME
2260 ## --------- ##
2261 ## Platform. ##
2262 ## --------- ##
2263
2264 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2265 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2266 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2267 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2268 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2269
2270 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2271 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2272
2273 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2274 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2275 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2276 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2277 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2278 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2279 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2280
2281 _ASUNAME
2282
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286 IFS=$as_save_IFS
2287 test -z "$as_dir" && as_dir=.
2288 $as_echo "PATH: $as_dir"
2289 done
2290 IFS=$as_save_IFS
2291
2292 } >&5
2293
2294 cat >&5 <<_ACEOF
2295
2296
2297 ## ----------- ##
2298 ## Core tests. ##
2299 ## ----------- ##
2300
2301 _ACEOF
2302
2303
2304 # Keep a trace of the command line.
2305 # Strip out --no-create and --no-recursion so they do not pile up.
2306 # Strip out --silent because we don't want to record it for future runs.
2307 # Also quote any args containing shell meta-characters.
2308 # Make two passes to allow for proper duplicate-argument suppression.
2309 ac_configure_args=
2310 ac_configure_args0=
2311 ac_configure_args1=
2312 ac_must_keep_next=false
2313 for ac_pass in 1 2
2314 do
2315 for ac_arg
2316 do
2317 case $ac_arg in
2318 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2319 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2320 | -silent | --silent | --silen | --sile | --sil)
2321 continue ;;
2322 *\'*)
2323 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2324 esac
2325 case $ac_pass in
2326 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2327 2)
2328 as_fn_append ac_configure_args1 " '$ac_arg'"
2329 if test $ac_must_keep_next = true; then
2330 ac_must_keep_next=false # Got value, back to normal.
2331 else
2332 case $ac_arg in
2333 *=* | --config-cache | -C | -disable-* | --disable-* \
2334 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2335 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2336 | -with-* | --with-* | -without-* | --without-* | --x)
2337 case "$ac_configure_args0 " in
2338 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2339 esac
2340 ;;
2341 -* ) ac_must_keep_next=true ;;
2342 esac
2343 fi
2344 as_fn_append ac_configure_args " '$ac_arg'"
2345 ;;
2346 esac
2347 done
2348 done
2349 { ac_configure_args0=; unset ac_configure_args0;}
2350 { ac_configure_args1=; unset ac_configure_args1;}
2351
2352 # When interrupted or exit'd, cleanup temporary files, and complete
2353 # config.log. We remove comments because anyway the quotes in there
2354 # would cause problems or look ugly.
2355 # WARNING: Use '\'' to represent an apostrophe within the trap.
2356 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2357 trap 'exit_status=$?
2358 # Save into config.log some information that might help in debugging.
2359 {
2360 echo
2361
2362 $as_echo "## ---------------- ##
2363 ## Cache variables. ##
2364 ## ---------------- ##"
2365 echo
2366 # The following way of writing the cache mishandles newlines in values,
2367 (
2368 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2369 eval ac_val=\$$ac_var
2370 case $ac_val in #(
2371 *${as_nl}*)
2372 case $ac_var in #(
2373 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2374 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2375 esac
2376 case $ac_var in #(
2377 _ | IFS | as_nl) ;; #(
2378 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2379 *) { eval $ac_var=; unset $ac_var;} ;;
2380 esac ;;
2381 esac
2382 done
2383 (set) 2>&1 |
2384 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2385 *${as_nl}ac_space=\ *)
2386 sed -n \
2387 "s/'\''/'\''\\\\'\'''\''/g;
2388 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2389 ;; #(
2390 *)
2391 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2392 ;;
2393 esac |
2394 sort
2395 )
2396 echo
2397
2398 $as_echo "## ----------------- ##
2399 ## Output variables. ##
2400 ## ----------------- ##"
2401 echo
2402 for ac_var in $ac_subst_vars
2403 do
2404 eval ac_val=\$$ac_var
2405 case $ac_val in
2406 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2407 esac
2408 $as_echo "$ac_var='\''$ac_val'\''"
2409 done | sort
2410 echo
2411
2412 if test -n "$ac_subst_files"; then
2413 $as_echo "## ------------------- ##
2414 ## File substitutions. ##
2415 ## ------------------- ##"
2416 echo
2417 for ac_var in $ac_subst_files
2418 do
2419 eval ac_val=\$$ac_var
2420 case $ac_val in
2421 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2422 esac
2423 $as_echo "$ac_var='\''$ac_val'\''"
2424 done | sort
2425 echo
2426 fi
2427
2428 if test -s confdefs.h; then
2429 $as_echo "## ----------- ##
2430 ## confdefs.h. ##
2431 ## ----------- ##"
2432 echo
2433 cat confdefs.h
2434 echo
2435 fi
2436 test "$ac_signal" != 0 &&
2437 $as_echo "$as_me: caught signal $ac_signal"
2438 $as_echo "$as_me: exit $exit_status"
2439 } >&5
2440 rm -f core *.core core.conftest.* &&
2441 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2442 exit $exit_status
2443 ' 0
2444 for ac_signal in 1 2 13 15; do
2445 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2446 done
2447 ac_signal=0
2448
2449 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2450 rm -f -r conftest* confdefs.h
2451
2452 $as_echo "/* confdefs.h */" > confdefs.h
2453
2454 # Predefined preprocessor variables.
2455
2456 cat >>confdefs.h <<_ACEOF
2457 #define PACKAGE_NAME "$PACKAGE_NAME"
2458 _ACEOF
2459
2460 cat >>confdefs.h <<_ACEOF
2461 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2462 _ACEOF
2463
2464 cat >>confdefs.h <<_ACEOF
2465 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2466 _ACEOF
2467
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_STRING "$PACKAGE_STRING"
2470 _ACEOF
2471
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2474 _ACEOF
2475
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_URL "$PACKAGE_URL"
2478 _ACEOF
2479
2480
2481 # Let the site file select an alternate cache file if it wants to.
2482 # Prefer an explicitly selected file to automatically selected ones.
2483 ac_site_file1=NONE
2484 ac_site_file2=NONE
2485 if test -n "$CONFIG_SITE"; then
2486 # We do not want a PATH search for config.site.
2487 case $CONFIG_SITE in #((
2488 -*) ac_site_file1=./$CONFIG_SITE;;
2489 */*) ac_site_file1=$CONFIG_SITE;;
2490 *) ac_site_file1=./$CONFIG_SITE;;
2491 esac
2492 elif test "x$prefix" != xNONE; then
2493 ac_site_file1=$prefix/share/config.site
2494 ac_site_file2=$prefix/etc/config.site
2495 else
2496 ac_site_file1=$ac_default_prefix/share/config.site
2497 ac_site_file2=$ac_default_prefix/etc/config.site
2498 fi
2499 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2500 do
2501 test "x$ac_site_file" = xNONE && continue
2502 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2504 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2505 sed 's/^/| /' "$ac_site_file" >&5
2506 . "$ac_site_file" \
2507 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2509 as_fn_error $? "failed to load site script $ac_site_file
2510 See \`config.log' for more details" "$LINENO" 5; }
2511 fi
2512 done
2513
2514 if test -r "$cache_file"; then
2515 # Some versions of bash will fail to source /dev/null (special files
2516 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2517 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2519 $as_echo "$as_me: loading cache $cache_file" >&6;}
2520 case $cache_file in
2521 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2522 *) . "./$cache_file";;
2523 esac
2524 fi
2525 else
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2527 $as_echo "$as_me: creating cache $cache_file" >&6;}
2528 >$cache_file
2529 fi
2530
2531 # Check that the precious variables saved in the cache have kept the same
2532 # value.
2533 ac_cache_corrupted=false
2534 for ac_var in $ac_precious_vars; do
2535 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2536 eval ac_new_set=\$ac_env_${ac_var}_set
2537 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2538 eval ac_new_val=\$ac_env_${ac_var}_value
2539 case $ac_old_set,$ac_new_set in
2540 set,)
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2542 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2543 ac_cache_corrupted=: ;;
2544 ,set)
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2546 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2547 ac_cache_corrupted=: ;;
2548 ,);;
2549 *)
2550 if test "x$ac_old_val" != "x$ac_new_val"; then
2551 # differences in whitespace do not lead to failure.
2552 ac_old_val_w=`echo x $ac_old_val`
2553 ac_new_val_w=`echo x $ac_new_val`
2554 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2556 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2557 ac_cache_corrupted=:
2558 else
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2560 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2561 eval $ac_var=\$ac_old_val
2562 fi
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2564 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2566 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2567 fi;;
2568 esac
2569 # Pass precious variables to config.status.
2570 if test "$ac_new_set" = set; then
2571 case $ac_new_val in
2572 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2573 *) ac_arg=$ac_var=$ac_new_val ;;
2574 esac
2575 case " $ac_configure_args " in
2576 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2577 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2578 esac
2579 fi
2580 done
2581 if $ac_cache_corrupted; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2585 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2586 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2587 fi
2588 ## -------------------- ##
2589 ## Main body of script. ##
2590 ## -------------------- ##
2591
2592 ac_ext=c
2593 ac_cpp='$CPP $CPPFLAGS'
2594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2597
2598
2599
2600 am__api_version='1.15'
2601
2602 ac_aux_dir=
2603 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2604 if test -f "$ac_dir/install-sh"; then
2605 ac_aux_dir=$ac_dir
2606 ac_install_sh="$ac_aux_dir/install-sh -c"
2607 break
2608 elif test -f "$ac_dir/install.sh"; then
2609 ac_aux_dir=$ac_dir
2610 ac_install_sh="$ac_aux_dir/install.sh -c"
2611 break
2612 elif test -f "$ac_dir/shtool"; then
2613 ac_aux_dir=$ac_dir
2614 ac_install_sh="$ac_aux_dir/shtool install -c"
2615 break
2616 fi
2617 done
2618 if test -z "$ac_aux_dir"; then
2619 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2620 fi
2621
2622 # These three variables are undocumented and unsupported,
2623 # and are intended to be withdrawn in a future Autoconf release.
2624 # They can cause serious problems if a builder's source tree is in a directory
2625 # whose full name contains unusual characters.
2626 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2627 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2628 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2629
2630
2631 # Find a good install program. We prefer a C program (faster),
2632 # so one script is as good as another. But avoid the broken or
2633 # incompatible versions:
2634 # SysV /etc/install, /usr/sbin/install
2635 # SunOS /usr/etc/install
2636 # IRIX /sbin/install
2637 # AIX /bin/install
2638 # AmigaOS /C/install, which installs bootblocks on floppy discs
2639 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2640 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2641 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2642 # OS/2's system install, which has a completely different semantic
2643 # ./install, which can be erroneously created by make from ./install.sh.
2644 # Reject install programs that cannot install multiple files.
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2646 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2647 if test -z "$INSTALL"; then
2648 if ${ac_cv_path_install+:} false; then :
2649 $as_echo_n "(cached) " >&6
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2653 do
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 # Account for people who put trailing slashes in PATH elements.
2657 case $as_dir/ in #((
2658 ./ | .// | /[cC]/* | \
2659 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2660 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2661 /usr/ucb/* ) ;;
2662 *)
2663 # OSF1 and SCO ODT 3.0 have their own names for install.
2664 # Don't use installbsd from OSF since it installs stuff as root
2665 # by default.
2666 for ac_prog in ginstall scoinst install; do
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2669 if test $ac_prog = install &&
2670 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2671 # AIX install. It has an incompatible calling convention.
2672 :
2673 elif test $ac_prog = install &&
2674 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2675 # program-specific install script used by HP pwplus--don't use.
2676 :
2677 else
2678 rm -rf conftest.one conftest.two conftest.dir
2679 echo one > conftest.one
2680 echo two > conftest.two
2681 mkdir conftest.dir
2682 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2683 test -s conftest.one && test -s conftest.two &&
2684 test -s conftest.dir/conftest.one &&
2685 test -s conftest.dir/conftest.two
2686 then
2687 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2688 break 3
2689 fi
2690 fi
2691 fi
2692 done
2693 done
2694 ;;
2695 esac
2696
2697 done
2698 IFS=$as_save_IFS
2699
2700 rm -rf conftest.one conftest.two conftest.dir
2701
2702 fi
2703 if test "${ac_cv_path_install+set}" = set; then
2704 INSTALL=$ac_cv_path_install
2705 else
2706 # As a last resort, use the slow shell script. Don't cache a
2707 # value for INSTALL within a source directory, because that will
2708 # break other packages using the cache if that directory is
2709 # removed, or if the value is a relative name.
2710 INSTALL=$ac_install_sh
2711 fi
2712 fi
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2714 $as_echo "$INSTALL" >&6; }
2715
2716 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2717 # It thinks the first close brace ends the variable substitution.
2718 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2719
2720 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2721
2722 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2723
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2725 $as_echo_n "checking whether build environment is sane... " >&6; }
2726 # Reject unsafe characters in $srcdir or the absolute working directory
2727 # name. Accept space and tab only in the latter.
2728 am_lf='
2729 '
2730 case `pwd` in
2731 *[\\\"\#\$\&\'\`$am_lf]*)
2732 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2733 esac
2734 case $srcdir in
2735 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2736 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2737 esac
2738
2739 # Do 'set' in a subshell so we don't clobber the current shell's
2740 # arguments. Must try -L first in case configure is actually a
2741 # symlink; some systems play weird games with the mod time of symlinks
2742 # (eg FreeBSD returns the mod time of the symlink's containing
2743 # directory).
2744 if (
2745 am_has_slept=no
2746 for am_try in 1 2; do
2747 echo "timestamp, slept: $am_has_slept" > conftest.file
2748 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2749 if test "$*" = "X"; then
2750 # -L didn't work.
2751 set X `ls -t "$srcdir/configure" conftest.file`
2752 fi
2753 if test "$*" != "X $srcdir/configure conftest.file" \
2754 && test "$*" != "X conftest.file $srcdir/configure"; then
2755
2756 # If neither matched, then we have a broken ls. This can happen
2757 # if, for instance, CONFIG_SHELL is bash and it inherits a
2758 # broken ls alias from the environment. This has actually
2759 # happened. Such a system could not be considered "sane".
2760 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2761 alias in your environment" "$LINENO" 5
2762 fi
2763 if test "$2" = conftest.file || test $am_try -eq 2; then
2764 break
2765 fi
2766 # Just in case.
2767 sleep 1
2768 am_has_slept=yes
2769 done
2770 test "$2" = conftest.file
2771 )
2772 then
2773 # Ok.
2774 :
2775 else
2776 as_fn_error $? "newly created file is older than distributed files!
2777 Check your system clock" "$LINENO" 5
2778 fi
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2780 $as_echo "yes" >&6; }
2781 # If we didn't sleep, we still need to ensure time stamps of config.status and
2782 # generated files are strictly newer.
2783 am_sleep_pid=
2784 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2785 ( sleep 1 ) &
2786 am_sleep_pid=$!
2787 fi
2788
2789 rm -f conftest.file
2790
2791 test "$program_prefix" != NONE &&
2792 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2793 # Use a double $ so make ignores it.
2794 test "$program_suffix" != NONE &&
2795 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2796 # Double any \ or $.
2797 # By default was `s,x,x', remove it if useless.
2798 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2799 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2800
2801 # Expand $ac_aux_dir to an absolute path.
2802 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2803
2804 if test x"${MISSING+set}" != xset; then
2805 case $am_aux_dir in
2806 *\ * | *\ *)
2807 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2808 *)
2809 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2810 esac
2811 fi
2812 # Use eval to expand $SHELL
2813 if eval "$MISSING --is-lightweight"; then
2814 am_missing_run="$MISSING "
2815 else
2816 am_missing_run=
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2818 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2819 fi
2820
2821 if test x"${install_sh+set}" != xset; then
2822 case $am_aux_dir in
2823 *\ * | *\ *)
2824 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2825 *)
2826 install_sh="\${SHELL} $am_aux_dir/install-sh"
2827 esac
2828 fi
2829
2830 # Installed binaries are usually stripped using 'strip' when the user
2831 # run "make install-strip". However 'strip' might not be the right
2832 # tool to use in cross-compilation environments, therefore Automake
2833 # will honor the 'STRIP' environment variable to overrule this program.
2834 if test "$cross_compiling" != no; then
2835 if test -n "$ac_tool_prefix"; then
2836 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2837 set dummy ${ac_tool_prefix}strip; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if ${ac_cv_prog_STRIP+:} false; then :
2841 $as_echo_n "(cached) " >&6
2842 else
2843 if test -n "$STRIP"; then
2844 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2856 fi
2857 done
2858 done
2859 IFS=$as_save_IFS
2860
2861 fi
2862 fi
2863 STRIP=$ac_cv_prog_STRIP
2864 if test -n "$STRIP"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2866 $as_echo "$STRIP" >&6; }
2867 else
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2870 fi
2871
2872
2873 fi
2874 if test -z "$ac_cv_prog_STRIP"; then
2875 ac_ct_STRIP=$STRIP
2876 # Extract the first word of "strip", so it can be a program name with args.
2877 set dummy strip; ac_word=$2
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2881 $as_echo_n "(cached) " >&6
2882 else
2883 if test -n "$ac_ct_STRIP"; then
2884 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2885 else
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2888 do
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2893 ac_cv_prog_ac_ct_STRIP="strip"
2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 break 2
2896 fi
2897 done
2898 done
2899 IFS=$as_save_IFS
2900
2901 fi
2902 fi
2903 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2904 if test -n "$ac_ct_STRIP"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2906 $as_echo "$ac_ct_STRIP" >&6; }
2907 else
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2910 fi
2911
2912 if test "x$ac_ct_STRIP" = x; then
2913 STRIP=":"
2914 else
2915 case $cross_compiling:$ac_tool_warned in
2916 yes:)
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2919 ac_tool_warned=yes ;;
2920 esac
2921 STRIP=$ac_ct_STRIP
2922 fi
2923 else
2924 STRIP="$ac_cv_prog_STRIP"
2925 fi
2926
2927 fi
2928 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2929
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2931 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2932 if test -z "$MKDIR_P"; then
2933 if ${ac_cv_path_mkdir+:} false; then :
2934 $as_echo_n "(cached) " >&6
2935 else
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2938 do
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_prog in mkdir gmkdir; do
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2944 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2945 'mkdir (GNU coreutils) '* | \
2946 'mkdir (coreutils) '* | \
2947 'mkdir (fileutils) '4.1*)
2948 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2949 break 3;;
2950 esac
2951 done
2952 done
2953 done
2954 IFS=$as_save_IFS
2955
2956 fi
2957
2958 test -d ./--version && rmdir ./--version
2959 if test "${ac_cv_path_mkdir+set}" = set; then
2960 MKDIR_P="$ac_cv_path_mkdir -p"
2961 else
2962 # As a last resort, use the slow shell script. Don't cache a
2963 # value for MKDIR_P within a source directory, because that will
2964 # break other packages using the cache if that directory is
2965 # removed, or if the value is a relative name.
2966 MKDIR_P="$ac_install_sh -d"
2967 fi
2968 fi
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2970 $as_echo "$MKDIR_P" >&6; }
2971
2972 for ac_prog in gawk mawk nawk awk
2973 do
2974 # Extract the first word of "$ac_prog", so it can be a program name with args.
2975 set dummy $ac_prog; ac_word=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if ${ac_cv_prog_AWK+:} false; then :
2979 $as_echo_n "(cached) " >&6
2980 else
2981 if test -n "$AWK"; then
2982 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2986 do
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991 ac_cv_prog_AWK="$ac_prog"
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 break 2
2994 fi
2995 done
2996 done
2997 IFS=$as_save_IFS
2998
2999 fi
3000 fi
3001 AWK=$ac_cv_prog_AWK
3002 if test -n "$AWK"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3004 $as_echo "$AWK" >&6; }
3005 else
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3008 fi
3009
3010
3011 test -n "$AWK" && break
3012 done
3013
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3015 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3016 set x ${MAKE-make}
3017 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3018 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3019 $as_echo_n "(cached) " >&6
3020 else
3021 cat >conftest.make <<\_ACEOF
3022 SHELL = /bin/sh
3023 all:
3024 @echo '@@@%%%=$(MAKE)=@@@%%%'
3025 _ACEOF
3026 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3027 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3028 *@@@%%%=?*=@@@%%%*)
3029 eval ac_cv_prog_make_${ac_make}_set=yes;;
3030 *)
3031 eval ac_cv_prog_make_${ac_make}_set=no;;
3032 esac
3033 rm -f conftest.make
3034 fi
3035 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3037 $as_echo "yes" >&6; }
3038 SET_MAKE=
3039 else
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3042 SET_MAKE="MAKE=${MAKE-make}"
3043 fi
3044
3045 rm -rf .tst 2>/dev/null
3046 mkdir .tst 2>/dev/null
3047 if test -d .tst; then
3048 am__leading_dot=.
3049 else
3050 am__leading_dot=_
3051 fi
3052 rmdir .tst 2>/dev/null
3053
3054 # Check whether --enable-silent-rules was given.
3055 if test "${enable_silent_rules+set}" = set; then :
3056 enableval=$enable_silent_rules;
3057 fi
3058
3059 case $enable_silent_rules in # (((
3060 yes) AM_DEFAULT_VERBOSITY=0;;
3061 no) AM_DEFAULT_VERBOSITY=1;;
3062 *) AM_DEFAULT_VERBOSITY=1;;
3063 esac
3064 am_make=${MAKE-make}
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3066 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3067 if ${am_cv_make_support_nested_variables+:} false; then :
3068 $as_echo_n "(cached) " >&6
3069 else
3070 if $as_echo 'TRUE=$(BAR$(V))
3071 BAR0=false
3072 BAR1=true
3073 V=1
3074 am__doit:
3075 @$(TRUE)
3076 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3077 am_cv_make_support_nested_variables=yes
3078 else
3079 am_cv_make_support_nested_variables=no
3080 fi
3081 fi
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3083 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3084 if test $am_cv_make_support_nested_variables = yes; then
3085 AM_V='$(V)'
3086 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3087 else
3088 AM_V=$AM_DEFAULT_VERBOSITY
3089 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3090 fi
3091 AM_BACKSLASH='\'
3092
3093 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3094 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3095 # is not polluted with repeated "-I."
3096 am__isrc=' -I$(srcdir)'
3097 # test to see if srcdir already configured
3098 if test -f $srcdir/config.status; then
3099 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3100 fi
3101 fi
3102
3103 # test whether we have cygpath
3104 if test -z "$CYGPATH_W"; then
3105 if (cygpath --version) >/dev/null 2>/dev/null; then
3106 CYGPATH_W='cygpath -w'
3107 else
3108 CYGPATH_W=echo
3109 fi
3110 fi
3111
3112
3113 # Define the identity of the package.
3114 PACKAGE='mpfr'
3115 VERSION='3.1.5'
3116
3117
3118 # Some tools Automake needs.
3119
3120 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3121
3122
3123 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3124
3125
3126 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3127
3128
3129 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3130
3131
3132 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3133
3134 # For better backward compatibility. To be removed once Automake 1.9.x
3135 # dies out for good. For more background, see:
3136 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3137 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3138 mkdir_p='$(MKDIR_P)'
3139
3140 # We need awk for the "check" target (and possibly the TAP driver). The
3141 # system "awk" is bad on some platforms.
3142 # Always define AMTAR for backward compatibility. Yes, it's still used
3143 # in the wild :-( We should find a proper way to deprecate it ...
3144 AMTAR='$${TAR-tar}'
3145
3146
3147 # We'll loop over all known methods to create a tar archive until one works.
3148 _am_tools='gnutar pax cpio none'
3149
3150 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3151
3152
3153
3154
3155
3156
3157 # POSIX will say in a future version that running "rm -f" with no argument
3158 # is OK; and we want to be able to make that assumption in our Makefile
3159 # recipes. So use an aggressive probe to check that the usage we want is
3160 # actually supported "in the wild" to an acceptable degree.
3161 # See automake bug#10828.
3162 # To make any issue more visible, cause the running configure to be aborted
3163 # by default if the 'rm' program in use doesn't match our expectations; the
3164 # user can still override this though.
3165 if rm -f && rm -fr && rm -rf; then : OK; else
3166 cat >&2 <<'END'
3167 Oops!
3168
3169 Your 'rm' program seems unable to run without file operands specified
3170 on the command line, even when the '-f' option is present. This is contrary
3171 to the behaviour of most rm programs out there, and not conforming with
3172 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3173
3174 Please tell bug-automake@gnu.org about your system, including the value
3175 of your $PATH and any error possibly output before this message. This
3176 can help us improve future automake versions.
3177
3178 END
3179 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3180 echo 'Configuration will proceed anyway, since you have set the' >&2
3181 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3182 echo >&2
3183 else
3184 cat >&2 <<'END'
3185 Aborting the configuration process, to ensure you take notice of the issue.
3186
3187 You can download and install GNU coreutils to get an 'rm' implementation
3188 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3189
3190 If you want to complete the configuration process using your problematic
3191 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3192 to "yes", and re-run configure.
3193
3194 END
3195 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3196 fi
3197 fi
3198
3199
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3201 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3202 # Check whether --enable-maintainer-mode was given.
3203 if test "${enable_maintainer_mode+set}" = set; then :
3204 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3205 else
3206 USE_MAINTAINER_MODE=yes
3207 fi
3208
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3210 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3211 if test $USE_MAINTAINER_MODE = yes; then
3212 MAINTAINER_MODE_TRUE=
3213 MAINTAINER_MODE_FALSE='#'
3214 else
3215 MAINTAINER_MODE_TRUE='#'
3216 MAINTAINER_MODE_FALSE=
3217 fi
3218
3219 MAINT=$MAINTAINER_MODE_TRUE
3220
3221
3222
3223
3224
3225
3226 test_CFLAGS=${CFLAGS+set}
3227
3228 if test -n "$CFLAGS" || test -n "$CC" ; then
3229 user_redefine_cc=yes
3230 fi
3231
3232
3233 # Make sure we can run config.sub.
3234 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3235 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3236
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3238 $as_echo_n "checking build system type... " >&6; }
3239 if ${ac_cv_build+:} false; then :
3240 $as_echo_n "(cached) " >&6
3241 else
3242 ac_build_alias=$build_alias
3243 test "x$ac_build_alias" = x &&
3244 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3245 test "x$ac_build_alias" = x &&
3246 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3247 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3248 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3249
3250 fi
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3252 $as_echo "$ac_cv_build" >&6; }
3253 case $ac_cv_build in
3254 *-*-*) ;;
3255 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3256 esac
3257 build=$ac_cv_build
3258 ac_save_IFS=$IFS; IFS='-'
3259 set x $ac_cv_build
3260 shift
3261 build_cpu=$1
3262 build_vendor=$2
3263 shift; shift
3264 # Remember, the first character of IFS is used to create $*,
3265 # except with old shells:
3266 build_os=$*
3267 IFS=$ac_save_IFS
3268 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3269
3270
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3272 $as_echo_n "checking host system type... " >&6; }
3273 if ${ac_cv_host+:} false; then :
3274 $as_echo_n "(cached) " >&6
3275 else
3276 if test "x$host_alias" = x; then
3277 ac_cv_host=$ac_cv_build
3278 else
3279 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3280 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3281 fi
3282
3283 fi
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3285 $as_echo "$ac_cv_host" >&6; }
3286 case $ac_cv_host in
3287 *-*-*) ;;
3288 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3289 esac
3290 host=$ac_cv_host
3291 ac_save_IFS=$IFS; IFS='-'
3292 set x $ac_cv_host
3293 shift
3294 host_cpu=$1
3295 host_vendor=$2
3296 shift; shift
3297 # Remember, the first character of IFS is used to create $*,
3298 # except with old shells:
3299 host_os=$*
3300 IFS=$ac_save_IFS
3301 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3302
3303
3304
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3306 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3307 if ${ac_cv_path_GREP+:} false; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 if test -z "$GREP"; then
3311 ac_path_GREP_found=false
3312 # Loop through the user's path and test for each of PROGNAME-LIST
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3315 do
3316 IFS=$as_save_IFS
3317 test -z "$as_dir" && as_dir=.
3318 for ac_prog in grep ggrep; do
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3321 as_fn_executable_p "$ac_path_GREP" || continue
3322 # Check for GNU ac_path_GREP and select it if it is found.
3323 # Check for GNU $ac_path_GREP
3324 case `"$ac_path_GREP" --version 2>&1` in
3325 *GNU*)
3326 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3327 *)
3328 ac_count=0
3329 $as_echo_n 0123456789 >"conftest.in"
3330 while :
3331 do
3332 cat "conftest.in" "conftest.in" >"conftest.tmp"
3333 mv "conftest.tmp" "conftest.in"
3334 cp "conftest.in" "conftest.nl"
3335 $as_echo 'GREP' >> "conftest.nl"
3336 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3337 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3338 as_fn_arith $ac_count + 1 && ac_count=$as_val
3339 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3340 # Best one so far, save it but keep looking for a better one
3341 ac_cv_path_GREP="$ac_path_GREP"
3342 ac_path_GREP_max=$ac_count
3343 fi
3344 # 10*(2^10) chars as input seems more than enough
3345 test $ac_count -gt 10 && break
3346 done
3347 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3348 esac
3349
3350 $ac_path_GREP_found && break 3
3351 done
3352 done
3353 done
3354 IFS=$as_save_IFS
3355 if test -z "$ac_cv_path_GREP"; then
3356 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3357 fi
3358 else
3359 ac_cv_path_GREP=$GREP
3360 fi
3361
3362 fi
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3364 $as_echo "$ac_cv_path_GREP" >&6; }
3365 GREP="$ac_cv_path_GREP"
3366
3367
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3369 $as_echo_n "checking for egrep... " >&6; }
3370 if ${ac_cv_path_EGREP+:} false; then :
3371 $as_echo_n "(cached) " >&6
3372 else
3373 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3374 then ac_cv_path_EGREP="$GREP -E"
3375 else
3376 if test -z "$EGREP"; then
3377 ac_path_EGREP_found=false
3378 # Loop through the user's path and test for each of PROGNAME-LIST
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3381 do
3382 IFS=$as_save_IFS
3383 test -z "$as_dir" && as_dir=.
3384 for ac_prog in egrep; do
3385 for ac_exec_ext in '' $ac_executable_extensions; do
3386 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3387 as_fn_executable_p "$ac_path_EGREP" || continue
3388 # Check for GNU ac_path_EGREP and select it if it is found.
3389 # Check for GNU $ac_path_EGREP
3390 case `"$ac_path_EGREP" --version 2>&1` in
3391 *GNU*)
3392 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3393 *)
3394 ac_count=0
3395 $as_echo_n 0123456789 >"conftest.in"
3396 while :
3397 do
3398 cat "conftest.in" "conftest.in" >"conftest.tmp"
3399 mv "conftest.tmp" "conftest.in"
3400 cp "conftest.in" "conftest.nl"
3401 $as_echo 'EGREP' >> "conftest.nl"
3402 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3404 as_fn_arith $ac_count + 1 && ac_count=$as_val
3405 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3406 # Best one so far, save it but keep looking for a better one
3407 ac_cv_path_EGREP="$ac_path_EGREP"
3408 ac_path_EGREP_max=$ac_count
3409 fi
3410 # 10*(2^10) chars as input seems more than enough
3411 test $ac_count -gt 10 && break
3412 done
3413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3414 esac
3415
3416 $ac_path_EGREP_found && break 3
3417 done
3418 done
3419 done
3420 IFS=$as_save_IFS
3421 if test -z "$ac_cv_path_EGREP"; then
3422 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3423 fi
3424 else
3425 ac_cv_path_EGREP=$EGREP
3426 fi
3427
3428 fi
3429 fi
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3431 $as_echo "$ac_cv_path_EGREP" >&6; }
3432 EGREP="$ac_cv_path_EGREP"
3433
3434
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3436 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3437 if ${ac_cv_path_SED+:} false; then :
3438 $as_echo_n "(cached) " >&6
3439 else
3440 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3441 for ac_i in 1 2 3 4 5 6 7; do
3442 ac_script="$ac_script$as_nl$ac_script"
3443 done
3444 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3445 { ac_script=; unset ac_script;}
3446 if test -z "$SED"; then
3447 ac_path_SED_found=false
3448 # Loop through the user's path and test for each of PROGNAME-LIST
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 for as_dir in $PATH
3451 do
3452 IFS=$as_save_IFS
3453 test -z "$as_dir" && as_dir=.
3454 for ac_prog in sed gsed; do
3455 for ac_exec_ext in '' $ac_executable_extensions; do
3456 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3457 as_fn_executable_p "$ac_path_SED" || continue
3458 # Check for GNU ac_path_SED and select it if it is found.
3459 # Check for GNU $ac_path_SED
3460 case `"$ac_path_SED" --version 2>&1` in
3461 *GNU*)
3462 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3463 *)
3464 ac_count=0
3465 $as_echo_n 0123456789 >"conftest.in"
3466 while :
3467 do
3468 cat "conftest.in" "conftest.in" >"conftest.tmp"
3469 mv "conftest.tmp" "conftest.in"
3470 cp "conftest.in" "conftest.nl"
3471 $as_echo '' >> "conftest.nl"
3472 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3473 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3474 as_fn_arith $ac_count + 1 && ac_count=$as_val
3475 if test $ac_count -gt ${ac_path_SED_max-0}; then
3476 # Best one so far, save it but keep looking for a better one
3477 ac_cv_path_SED="$ac_path_SED"
3478 ac_path_SED_max=$ac_count
3479 fi
3480 # 10*(2^10) chars as input seems more than enough
3481 test $ac_count -gt 10 && break
3482 done
3483 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3484 esac
3485
3486 $ac_path_SED_found && break 3
3487 done
3488 done
3489 done
3490 IFS=$as_save_IFS
3491 if test -z "$ac_cv_path_SED"; then
3492 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3493 fi
3494 else
3495 ac_cv_path_SED=$SED
3496 fi
3497
3498 fi
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3500 $as_echo "$ac_cv_path_SED" >&6; }
3501 SED="$ac_cv_path_SED"
3502 rm -f conftest.sed
3503
3504
3505
3506 unset gmp_lib_path GMP_CFLAGS GMP_CC
3507
3508 # Check whether --with-gmp_include was given.
3509 if test "${with_gmp_include+set}" = set; then :
3510 withval=$with_gmp_include;
3511 if test -d "$withval" ; then
3512 local_tmp=`realpath "$withval" 2>/dev/null`
3513 if test "$local_tmp" != "" ; then
3514 if test -d "$local_tmp" ; then
3515 withval="$local_tmp"
3516 else
3517 withval="$withval"
3518 fi
3519 else
3520 withval="$withval"
3521 fi
3522 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then
3523 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5
3524 fi
3525 else
3526 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5
3527 fi
3528
3529 CPPFLAGS="$CPPFLAGS -I$withval"
3530 fi
3531
3532
3533 # Check whether --with-gmp_lib was given.
3534 if test "${with_gmp_lib+set}" = set; then :
3535 withval=$with_gmp_lib;
3536
3537 if test -d "$withval" ; then
3538 local_tmp=`realpath "$withval" 2>/dev/null`
3539 if test "$local_tmp" != "" ; then
3540 if test -d "$local_tmp" ; then
3541 withval="$local_tmp"
3542 else
3543 withval="$withval"
3544 fi
3545 else
3546 withval="$withval"
3547 fi
3548 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then
3549 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5
3550 fi
3551 else
3552 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5
3553 fi
3554
3555 LDFLAGS="$LDFLAGS -L$withval"
3556 gmp_lib_path="$withval"
3557
3558 fi
3559
3560
3561 # Check whether --with-gmp was given.
3562 if test "${with_gmp+set}" = set; then :
3563 withval=$with_gmp;
3564
3565 if test -d "$withval" ; then
3566 local_tmp=`realpath "$withval" 2>/dev/null`
3567 if test "$local_tmp" != "" ; then
3568 if test -d "$local_tmp" ; then
3569 withval="$local_tmp"
3570 else
3571 withval="$withval"
3572 fi
3573 else
3574 withval="$withval"
3575 fi
3576 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then
3577 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5
3578 fi
3579 else
3580 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5
3581 fi
3582
3583 if test -z "$with_gmp_lib" && test -z "$with_gmp_include" ; then
3584 CPPFLAGS="$CPPFLAGS -I$withval/include"
3585 LDFLAGS="$LDFLAGS -L$withval/lib"
3586 gmp_lib_path="$withval/lib"
3587 else
3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error $? "Do not use --with-gmp and --with-gmp-include/--with-gmp-lib options simultaneously.
3591 See \`config.log' for more details" "$LINENO" 5; }
3592 fi
3593
3594 fi
3595
3596
3597
3598 # Check whether --with-gmp_build was given.
3599 if test "${with_gmp_build+set}" = set; then :
3600 withval=$with_gmp_build;
3601
3602 if test -d "$withval" ; then
3603 local_tmp=`realpath "$withval" 2>/dev/null`
3604 if test "$local_tmp" != "" ; then
3605 if test -d "$local_tmp" ; then
3606 withval="$local_tmp"
3607 else
3608 withval="$withval"
3609 fi
3610 else
3611 withval="$withval"
3612 fi
3613 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then
3614 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5
3615 fi
3616 else
3617 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5
3618 fi
3619
3620 if test -z "$gmp_lib_path" && test -z "$with_gmp_include" ; then
3621 CPPFLAGS="$CPPFLAGS -I$withval -I$withval/tune"
3622 LDFLAGS="$LDFLAGS -L$withval -L$withval/.libs -L$withval/tune"
3623 gmp_lib_path="$withval$PATH_SEPARATOR$withval/.libs$PATH_SEPARATOR$withval/tune"
3624 if test -r $withval/Makefile ; then
3625 GMP_CFLAGS=`$SED -n 's/^CFLAGS = //p' $withval/Makefile`
3626 GMP_CC=`$SED -n 's/^CC = //p' $withval/Makefile`
3627 GMP_SOURCE=`$SED -n 's/^srcdir = *//p' $withval/Makefile`
3628 case "$GMP_SOURCE" in
3629 .) GMP_SOURCE="" ;;
3630 /*) ;;
3631 ?*) GMP_SOURCE="$withval/$GMP_SOURCE" ;;
3632 esac
3633 if test -d "$GMP_SOURCE" ; then
3634 CPPFLAGS="$CPPFLAGS -I$GMP_SOURCE -I$GMP_SOURCE/tune"
3635 fi
3636 fi
3637 use_gmp_build=yes
3638 else
3639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3641 as_fn_error $? "Do not use --with-gmp-build and other --with-gmp options simultaneously.
3642 See \`config.log' for more details" "$LINENO" 5; }
3643 fi
3644
3645 fi
3646
3647
3648
3649 # Check whether --with-mulhigh_size was given.
3650 if test "${with_mulhigh_size+set}" = set; then :
3651 withval=$with_mulhigh_size;
3652 cat >>confdefs.h <<_ACEOF
3653 #define MPFR_MULHIGH_SIZE $withval
3654 _ACEOF
3655
3656 fi
3657
3658
3659 # Check whether --enable-gmp-internals was given.
3660 if test "${enable_gmp_internals+set}" = set; then :
3661 enableval=$enable_gmp_internals; case $enableval in
3662 yes)
3663 $as_echo "#define WANT_GMP_INTERNALS 1" >>confdefs.h
3664 ;;
3665 no) ;;
3666 *) as_fn_error $? "bad value for --enable-gmp-internals: yes or no" "$LINENO" 5 ;;
3667 esac
3668 fi
3669
3670
3671 # Check whether --enable-assert was given.
3672 if test "${enable_assert+set}" = set; then :
3673 enableval=$enable_assert; case $enableval in
3674 yes)
3675 $as_echo "#define MPFR_WANT_ASSERT 1" >>confdefs.h
3676 ;;
3677 no) ;;
3678 full)
3679 $as_echo "#define MPFR_WANT_ASSERT 2" >>confdefs.h
3680 ;;
3681 *) as_fn_error $? "bad value for --enable-assert: yes, no or full" "$LINENO" 5 ;;
3682 esac
3683 fi
3684
3685 # Check whether --enable-logging was given.
3686 if test "${enable_logging+set}" = set; then :
3687 enableval=$enable_logging; case $enableval in
3688 yes)
3689 $as_echo "#define MPFR_USE_LOGGING 1" >>confdefs.h
3690 ;;
3691 no) ;;
3692 *) as_fn_error $? "bad value for --enable-logging: yes or no" "$LINENO" 5 ;;
3693 esac
3694 fi
3695
3696 # Check whether --enable-thread-safe was given.
3697 if test "${enable_thread_safe+set}" = set; then :
3698 enableval=$enable_thread_safe; case $enableval in
3699 yes) ;;
3700 no) ;;
3701 *) as_fn_error $? "bad value for --enable-thread-safe: yes or no" "$LINENO" 5 ;;
3702 esac
3703 fi
3704
3705 # Check whether --enable-warnings was given.
3706 if test "${enable_warnings+set}" = set; then :
3707 enableval=$enable_warnings; case $enableval in
3708 yes)
3709 $as_echo "#define MPFR_USE_WARNINGS 1" >>confdefs.h
3710 ;;
3711 no) ;;
3712 *) as_fn_error $? "bad value for --enable-warnings: yes or no" "$LINENO" 5 ;;
3713 esac
3714 fi
3715
3716
3717 # Check whether --enable-tests-timeout was given.
3718 if test "${enable_tests_timeout+set}" = set; then :
3719 enableval=$enable_tests_timeout; case $enableval in
3720 no) ;;
3721 yes)
3722 $as_echo "#define MPFR_TESTS_TIMEOUT 0" >>confdefs.h
3723 ;;
3724 [0-9]|[0-9][0-9]|[0-9][0-9][0-9]|[0-9][0-9][0-9][0-9])
3725
3726 cat >>confdefs.h <<_ACEOF
3727 #define MPFR_TESTS_TIMEOUT $enableval
3728 _ACEOF
3729 ;;
3730 *) as_fn_error $? "bad value for --enable-tests-timeout" "$LINENO" 5 ;;
3731 esac
3732 fi
3733
3734
3735
3736
3737
3738
3739 if test -z "$user_redefine_cc" && test "$cross_compiling" != yes ; then
3740
3741 if test -z "$GMP_CC$GMP_CFLAGS" ; then
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC and CFLAGS in gmp.h" >&5
3743 $as_echo_n "checking for CC and CFLAGS in gmp.h... " >&6; }
3744 GMP_CC=__GMP_CC
3745 GMP_CFLAGS=__GMP_CFLAGS
3746 # /lib/cpp under Solaris doesn't support some environment variables
3747 # used by GCC, such as C_INCLUDE_PATH. If the user has set up such
3748 # environment variables, he probably wants to use them. So, let us
3749 # prefer cpp and gcc to /lib/cpp.
3750 for cpp in cpp gcc /lib/cpp cc c99
3751 do
3752 case $cpp in
3753 *cpp*) ;;
3754 *) cpp="$cpp -E" ;;
3755 esac
3756 echo foo > conftest.c
3757 if $cpp $CPPFLAGS conftest.c > /dev/null 2> /dev/null ; then
3758 # Get CC
3759 echo "#include \"gmp.h\"" > conftest.c
3760 echo "MPFR_OPTION __GMP_CC" >> conftest.c
3761 GMP_CC=`$cpp $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e 's/MPFR_OPTION //g;s/ *" *//g'`
3762 # Get CFLAGS
3763 echo "#include \"gmp.h\"" > conftest.c
3764 echo "MPFR_OPTION __GMP_CFLAGS" >> conftest.c
3765 unset rmpedantic
3766 test "$enable_logging" = yes && rmpedantic='s/[ "]-pedantic[ "]/ /g;'
3767 GMP_CFLAGS=`$cpp $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e "$rmpedantic"'s/MPFR_OPTION //g;s/ *" *//g'`
3768 break
3769 fi
3770 done
3771 rm -f conftest*
3772 if test "x$GMP_CC" = "x__GMP_CC" || test "x$GMP_CFLAGS" = "x__GMP_CFLAGS" ; then
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774 $as_echo "no" >&6; }
3775 GMP_CFLAGS=
3776 GMP_CC=
3777 else
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&5
3779 $as_echo "yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&6; }
3780 fi
3781 fi
3782
3783 if test -n "$GMP_CC$GMP_CFLAGS" ; then
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS" >&5
3785 $as_echo_n "checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS... " >&6; }
3786 echo "int main (void) { return 0; }" > conftest.c
3787 if $GMP_CC $GMP_CFLAGS -o conftest conftest.c 2> /dev/null ; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3789 $as_echo "yes" >&6; }
3790 CFLAGS=$GMP_CFLAGS
3791 CC=$GMP_CC
3792 else
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3795 fi
3796 rm -f conftest*
3797 fi
3798
3799 fi
3800
3801
3802 ac_ext=c
3803 ac_cpp='$CPP $CPPFLAGS'
3804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3807 if test -n "$ac_tool_prefix"; then
3808 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3809 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811 $as_echo_n "checking for $ac_word... " >&6; }
3812 if ${ac_cv_prog_CC+:} false; then :
3813 $as_echo_n "(cached) " >&6
3814 else
3815 if test -n "$CC"; then
3816 ac_cv_prog_CC="$CC" # Let the user override the test.
3817 else
3818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 for as_dir in $PATH
3820 do
3821 IFS=$as_save_IFS
3822 test -z "$as_dir" && as_dir=.
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3825 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3827 break 2
3828 fi
3829 done
3830 done
3831 IFS=$as_save_IFS
3832
3833 fi
3834 fi
3835 CC=$ac_cv_prog_CC
3836 if test -n "$CC"; then
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3838 $as_echo "$CC" >&6; }
3839 else
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 $as_echo "no" >&6; }
3842 fi
3843
3844
3845 fi
3846 if test -z "$ac_cv_prog_CC"; then
3847 ac_ct_CC=$CC
3848 # Extract the first word of "gcc", so it can be a program name with args.
3849 set dummy gcc; ac_word=$2
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851 $as_echo_n "checking for $ac_word... " >&6; }
3852 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3853 $as_echo_n "(cached) " >&6
3854 else
3855 if test -n "$ac_ct_CC"; then
3856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3857 else
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH
3860 do
3861 IFS=$as_save_IFS
3862 test -z "$as_dir" && as_dir=.
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3865 ac_cv_prog_ac_ct_CC="gcc"
3866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3867 break 2
3868 fi
3869 done
3870 done
3871 IFS=$as_save_IFS
3872
3873 fi
3874 fi
3875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3876 if test -n "$ac_ct_CC"; then
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3878 $as_echo "$ac_ct_CC" >&6; }
3879 else
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 $as_echo "no" >&6; }
3882 fi
3883
3884 if test "x$ac_ct_CC" = x; then
3885 CC=""
3886 else
3887 case $cross_compiling:$ac_tool_warned in
3888 yes:)
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3891 ac_tool_warned=yes ;;
3892 esac
3893 CC=$ac_ct_CC
3894 fi
3895 else
3896 CC="$ac_cv_prog_CC"
3897 fi
3898
3899 if test -z "$CC"; then
3900 if test -n "$ac_tool_prefix"; then
3901 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3902 set dummy ${ac_tool_prefix}cc; ac_word=$2
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904 $as_echo_n "checking for $ac_word... " >&6; }
3905 if ${ac_cv_prog_CC+:} false; then :
3906 $as_echo_n "(cached) " >&6
3907 else
3908 if test -n "$CC"; then
3909 ac_cv_prog_CC="$CC" # Let the user override the test.
3910 else
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH
3913 do
3914 IFS=$as_save_IFS
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3918 ac_cv_prog_CC="${ac_tool_prefix}cc"
3919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 break 2
3921 fi
3922 done
3923 done
3924 IFS=$as_save_IFS
3925
3926 fi
3927 fi
3928 CC=$ac_cv_prog_CC
3929 if test -n "$CC"; then
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3931 $as_echo "$CC" >&6; }
3932 else
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934 $as_echo "no" >&6; }
3935 fi
3936
3937
3938 fi
3939 fi
3940 if test -z "$CC"; then
3941 # Extract the first word of "cc", so it can be a program name with args.
3942 set dummy cc; ac_word=$2
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3944 $as_echo_n "checking for $ac_word... " >&6; }
3945 if ${ac_cv_prog_CC+:} false; then :
3946 $as_echo_n "(cached) " >&6
3947 else
3948 if test -n "$CC"; then
3949 ac_cv_prog_CC="$CC" # Let the user override the test.
3950 else
3951 ac_prog_rejected=no
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 for as_dir in $PATH
3954 do
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3960 ac_prog_rejected=yes
3961 continue
3962 fi
3963 ac_cv_prog_CC="cc"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 break 2
3966 fi
3967 done
3968 done
3969 IFS=$as_save_IFS
3970
3971 if test $ac_prog_rejected = yes; then
3972 # We found a bogon in the path, so make sure we never use it.
3973 set dummy $ac_cv_prog_CC
3974 shift
3975 if test $# != 0; then
3976 # We chose a different compiler from the bogus one.
3977 # However, it has the same basename, so the bogon will be chosen
3978 # first if we set CC to just the basename; use the full file name.
3979 shift
3980 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3981 fi
3982 fi
3983 fi
3984 fi
3985 CC=$ac_cv_prog_CC
3986 if test -n "$CC"; then
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3988 $as_echo "$CC" >&6; }
3989 else
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991 $as_echo "no" >&6; }
3992 fi
3993
3994
3995 fi
3996 if test -z "$CC"; then
3997 if test -n "$ac_tool_prefix"; then
3998 for ac_prog in cl.exe
3999 do
4000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4001 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4003 $as_echo_n "checking for $ac_word... " >&6; }
4004 if ${ac_cv_prog_CC+:} false; then :
4005 $as_echo_n "(cached) " >&6
4006 else
4007 if test -n "$CC"; then
4008 ac_cv_prog_CC="$CC" # Let the user override the test.
4009 else
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 for as_dir in $PATH
4012 do
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
4015 for ac_exec_ext in '' $ac_executable_extensions; do
4016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4017 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4019 break 2
4020 fi
4021 done
4022 done
4023 IFS=$as_save_IFS
4024
4025 fi
4026 fi
4027 CC=$ac_cv_prog_CC
4028 if test -n "$CC"; then
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4030 $as_echo "$CC" >&6; }
4031 else
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033 $as_echo "no" >&6; }
4034 fi
4035
4036
4037 test -n "$CC" && break
4038 done
4039 fi
4040 if test -z "$CC"; then
4041 ac_ct_CC=$CC
4042 for ac_prog in cl.exe
4043 do
4044 # Extract the first word of "$ac_prog", so it can be a program name with args.
4045 set dummy $ac_prog; ac_word=$2
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 $as_echo_n "checking for $ac_word... " >&6; }
4048 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 if test -n "$ac_ct_CC"; then
4052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4053 else
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH
4056 do
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4061 ac_cv_prog_ac_ct_CC="$ac_prog"
4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 break 2
4064 fi
4065 done
4066 done
4067 IFS=$as_save_IFS
4068
4069 fi
4070 fi
4071 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4072 if test -n "$ac_ct_CC"; then
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4074 $as_echo "$ac_ct_CC" >&6; }
4075 else
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 $as_echo "no" >&6; }
4078 fi
4079
4080
4081 test -n "$ac_ct_CC" && break
4082 done
4083
4084 if test "x$ac_ct_CC" = x; then
4085 CC=""
4086 else
4087 case $cross_compiling:$ac_tool_warned in
4088 yes:)
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4091 ac_tool_warned=yes ;;
4092 esac
4093 CC=$ac_ct_CC
4094 fi
4095 fi
4096
4097 fi
4098
4099
4100 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4102 as_fn_error $? "no acceptable C compiler found in \$PATH
4103 See \`config.log' for more details" "$LINENO" 5; }
4104
4105 # Provide some information about the compiler.
4106 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4107 set X $ac_compile
4108 ac_compiler=$2
4109 for ac_option in --version -v -V -qversion; do
4110 { { ac_try="$ac_compiler $ac_option >&5"
4111 case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114 esac
4115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4116 $as_echo "$ac_try_echo"; } >&5
4117 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4118 ac_status=$?
4119 if test -s conftest.err; then
4120 sed '10a\
4121 ... rest of stderr output deleted ...
4122 10q' conftest.err >conftest.er1
4123 cat conftest.er1 >&5
4124 fi
4125 rm -f conftest.er1 conftest.err
4126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4127 test $ac_status = 0; }
4128 done
4129
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4132
4133 int
4134 main (void)
4135 {
4136
4137 ;
4138 return 0;
4139 }
4140 _ACEOF
4141 ac_clean_files_save=$ac_clean_files
4142 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4143 # Try to create an executable without -o first, disregard a.out.
4144 # It will help us diagnose broken compilers, and finding out an intuition
4145 # of exeext.
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4147 $as_echo_n "checking whether the C compiler works... " >&6; }
4148 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4149
4150 # The possible output files:
4151 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4152
4153 ac_rmfiles=
4154 for ac_file in $ac_files
4155 do
4156 case $ac_file in
4157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4158 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4159 esac
4160 done
4161 rm -f $ac_rmfiles
4162
4163 if { { ac_try="$ac_link_default"
4164 case "(($ac_try" in
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4167 esac
4168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4169 $as_echo "$ac_try_echo"; } >&5
4170 (eval "$ac_link_default") 2>&5
4171 ac_status=$?
4172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4173 test $ac_status = 0; }; then :
4174 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4175 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4176 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4177 # so that the user can short-circuit this test for compilers unknown to
4178 # Autoconf.
4179 for ac_file in $ac_files ''
4180 do
4181 test -f "$ac_file" || continue
4182 case $ac_file in
4183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4184 ;;
4185 [ab].out )
4186 # We found the default executable, but exeext='' is most
4187 # certainly right.
4188 break;;
4189 *.* )
4190 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4191 then :; else
4192 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4193 fi
4194 # We set ac_cv_exeext here because the later test for it is not
4195 # safe: cross compilers may not add the suffix if given an `-o'
4196 # argument, so we may need to know it at that point already.
4197 # Even if this section looks crufty: it has the advantage of
4198 # actually working.
4199 break;;
4200 * )
4201 break;;
4202 esac
4203 done
4204 test "$ac_cv_exeext" = no && ac_cv_exeext=
4205
4206 else
4207 ac_file=''
4208 fi
4209 if test -z "$ac_file"; then :
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4212 $as_echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4214
4215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4217 as_fn_error 77 "C compiler cannot create executables
4218 See \`config.log' for more details" "$LINENO" 5; }
4219 else
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4221 $as_echo "yes" >&6; }
4222 fi
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4224 $as_echo_n "checking for C compiler default output file name... " >&6; }
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4226 $as_echo "$ac_file" >&6; }
4227 ac_exeext=$ac_cv_exeext
4228
4229 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4230 ac_clean_files=$ac_clean_files_save
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4232 $as_echo_n "checking for suffix of executables... " >&6; }
4233 if { { ac_try="$ac_link"
4234 case "(($ac_try" in
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4237 esac
4238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4239 $as_echo "$ac_try_echo"; } >&5
4240 (eval "$ac_link") 2>&5
4241 ac_status=$?
4242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4243 test $ac_status = 0; }; then :
4244 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4245 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4246 # work properly (i.e., refer to `conftest.exe'), while it won't with
4247 # `rm'.
4248 for ac_file in conftest.exe conftest conftest.*; do
4249 test -f "$ac_file" || continue
4250 case $ac_file in
4251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4252 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4253 break;;
4254 * ) break;;
4255 esac
4256 done
4257 else
4258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4260 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4261 See \`config.log' for more details" "$LINENO" 5; }
4262 fi
4263 rm -f conftest conftest$ac_cv_exeext
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4265 $as_echo "$ac_cv_exeext" >&6; }
4266
4267 rm -f conftest.$ac_ext
4268 EXEEXT=$ac_cv_exeext
4269 ac_exeext=$EXEEXT
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4272 #include <stdio.h>
4273 int
4274 main (void)
4275 {
4276 FILE *f = fopen ("conftest.out", "w");
4277 return ferror (f) || fclose (f) != 0;
4278
4279 ;
4280 return 0;
4281 }
4282 _ACEOF
4283 ac_clean_files="$ac_clean_files conftest.out"
4284 # Check that the compiler produces executables we can run. If not, either
4285 # the compiler is broken, or we cross compile.
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4287 $as_echo_n "checking whether we are cross compiling... " >&6; }
4288 if test "$cross_compiling" != yes; then
4289 { { ac_try="$ac_link"
4290 case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4293 esac
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_link") 2>&5
4297 ac_status=$?
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; }
4300 if { ac_try='./conftest$ac_cv_exeext'
4301 { { case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304 esac
4305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306 $as_echo "$ac_try_echo"; } >&5
4307 (eval "$ac_try") 2>&5
4308 ac_status=$?
4309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310 test $ac_status = 0; }; }; then
4311 cross_compiling=no
4312 else
4313 if test "$cross_compiling" = maybe; then
4314 cross_compiling=yes
4315 else
4316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4318 as_fn_error $? "cannot run C compiled programs.
4319 If you meant to cross compile, use \`--host'.
4320 See \`config.log' for more details" "$LINENO" 5; }
4321 fi
4322 fi
4323 fi
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4325 $as_echo "$cross_compiling" >&6; }
4326
4327 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4328 ac_clean_files=$ac_clean_files_save
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4330 $as_echo_n "checking for suffix of object files... " >&6; }
4331 if ${ac_cv_objext+:} false; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4336
4337 int
4338 main (void)
4339 {
4340
4341 ;
4342 return 0;
4343 }
4344 _ACEOF
4345 rm -f conftest.o conftest.obj
4346 if { { ac_try="$ac_compile"
4347 case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4350 esac
4351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4352 $as_echo "$ac_try_echo"; } >&5
4353 (eval "$ac_compile") 2>&5
4354 ac_status=$?
4355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4356 test $ac_status = 0; }; then :
4357 for ac_file in conftest.o conftest.obj conftest.*; do
4358 test -f "$ac_file" || continue;
4359 case $ac_file in
4360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4361 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4362 break;;
4363 esac
4364 done
4365 else
4366 $as_echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4368
4369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4371 as_fn_error $? "cannot compute suffix of object files: cannot compile
4372 See \`config.log' for more details" "$LINENO" 5; }
4373 fi
4374 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4375 fi
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4377 $as_echo "$ac_cv_objext" >&6; }
4378 OBJEXT=$ac_cv_objext
4379 ac_objext=$OBJEXT
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4381 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4382 if ${ac_cv_c_compiler_gnu+:} false; then :
4383 $as_echo_n "(cached) " >&6
4384 else
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4387
4388 int
4389 main (void)
4390 {
4391 #ifndef __GNUC__
4392 choke me
4393 #endif
4394
4395 ;
4396 return 0;
4397 }
4398 _ACEOF
4399 if ac_fn_c_try_compile "$LINENO"; then :
4400 ac_compiler_gnu=yes
4401 else
4402 ac_compiler_gnu=no
4403 fi
4404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4406
4407 fi
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4409 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4410 if test $ac_compiler_gnu = yes; then
4411 GCC=yes
4412 else
4413 GCC=
4414 fi
4415 ac_test_CFLAGS=${CFLAGS+set}
4416 ac_save_CFLAGS=$CFLAGS
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4418 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4419 if ${ac_cv_prog_cc_g+:} false; then :
4420 $as_echo_n "(cached) " >&6
4421 else
4422 ac_save_c_werror_flag=$ac_c_werror_flag
4423 ac_c_werror_flag=yes
4424 ac_cv_prog_cc_g=no
4425 CFLAGS="-g"
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4428
4429 int
4430 main (void)
4431 {
4432
4433 ;
4434 return 0;
4435 }
4436 _ACEOF
4437 if ac_fn_c_try_compile "$LINENO"; then :
4438 ac_cv_prog_cc_g=yes
4439 else
4440 CFLAGS=""
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h. */
4443
4444 int
4445 main (void)
4446 {
4447
4448 ;
4449 return 0;
4450 }
4451 _ACEOF
4452 if ac_fn_c_try_compile "$LINENO"; then :
4453
4454 else
4455 ac_c_werror_flag=$ac_save_c_werror_flag
4456 CFLAGS="-g"
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4459
4460 int
4461 main (void)
4462 {
4463
4464 ;
4465 return 0;
4466 }
4467 _ACEOF
4468 if ac_fn_c_try_compile "$LINENO"; then :
4469 ac_cv_prog_cc_g=yes
4470 fi
4471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 fi
4473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4474 fi
4475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476 ac_c_werror_flag=$ac_save_c_werror_flag
4477 fi
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4479 $as_echo "$ac_cv_prog_cc_g" >&6; }
4480 if test "$ac_test_CFLAGS" = set; then
4481 CFLAGS=$ac_save_CFLAGS
4482 elif test $ac_cv_prog_cc_g = yes; then
4483 if test "$GCC" = yes; then
4484 CFLAGS="-g -O2"
4485 else
4486 CFLAGS="-g"
4487 fi
4488 else
4489 if test "$GCC" = yes; then
4490 CFLAGS="-O2"
4491 else
4492 CFLAGS=
4493 fi
4494 fi
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4496 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4497 if ${ac_cv_prog_cc_c89+:} false; then :
4498 $as_echo_n "(cached) " >&6
4499 else
4500 ac_cv_prog_cc_c89=no
4501 ac_save_CC=$CC
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4504 #include <stdarg.h>
4505 #include <stdio.h>
4506 struct stat;
4507 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4508 struct buf { int x; };
4509 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4510 static char *e (p, i)
4511 char **p;
4512 int i;
4513 {
4514 return p[i];
4515 }
4516 static char *f (char * (*g) (char **, int), char **p, ...)
4517 {
4518 char *s;
4519 va_list v;
4520 va_start (v,p);
4521 s = g (p, va_arg (v,int));
4522 va_end (v);
4523 return s;
4524 }
4525
4526 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4527 function prototypes and stuff, but not '\xHH' hex character constants.
4528 These don't provoke an error unfortunately, instead are silently treated
4529 as 'x'. The following induces an error, until -std is added to get
4530 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4531 array size at least. It's necessary to write '\x00'==0 to get something
4532 that's true only with -std. */
4533 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4534
4535 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4536 inside strings and character constants. */
4537 #define FOO(x) 'x'
4538 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4539
4540 int test (int i, double x);
4541 struct s1 {int (*f) (int a);};
4542 struct s2 {int (*f) (double a);};
4543 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4544 int argc;
4545 char **argv;
4546 int
4547 main (void)
4548 {
4549 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4550 ;
4551 return 0;
4552 }
4553 _ACEOF
4554 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4555 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4556 do
4557 CC="$ac_save_CC $ac_arg"
4558 if ac_fn_c_try_compile "$LINENO"; then :
4559 ac_cv_prog_cc_c89=$ac_arg
4560 fi
4561 rm -f core conftest.err conftest.$ac_objext
4562 test "x$ac_cv_prog_cc_c89" != "xno" && break
4563 done
4564 rm -f conftest.$ac_ext
4565 CC=$ac_save_CC
4566
4567 fi
4568 # AC_CACHE_VAL
4569 case "x$ac_cv_prog_cc_c89" in
4570 x)
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4572 $as_echo "none needed" >&6; } ;;
4573 xno)
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4575 $as_echo "unsupported" >&6; } ;;
4576 *)
4577 CC="$CC $ac_cv_prog_cc_c89"
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4579 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4580 esac
4581 if test "x$ac_cv_prog_cc_c89" != xno; then :
4582
4583 fi
4584
4585 ac_ext=c
4586 ac_cpp='$CPP $CPPFLAGS'
4587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4590
4591 ac_ext=c
4592 ac_cpp='$CPP $CPPFLAGS'
4593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4597 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4598 if ${am_cv_prog_cc_c_o+:} false; then :
4599 $as_echo_n "(cached) " >&6
4600 else
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4603
4604 int
4605 main (void)
4606 {
4607
4608 ;
4609 return 0;
4610 }
4611 _ACEOF
4612 # Make sure it works both with $CC and with simple cc.
4613 # Following AC_PROG_CC_C_O, we do the test twice because some
4614 # compilers refuse to overwrite an existing .o file with -o,
4615 # though they will create one.
4616 am_cv_prog_cc_c_o=yes
4617 for am_i in 1 2; do
4618 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4619 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4620 ac_status=$?
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } \
4623 && test -f conftest2.$ac_objext; then
4624 : OK
4625 else
4626 am_cv_prog_cc_c_o=no
4627 break
4628 fi
4629 done
4630 rm -f core conftest*
4631 unset am_i
4632 fi
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4634 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4635 if test "$am_cv_prog_cc_c_o" != yes; then
4636 # Losing compiler, so override with the script.
4637 # FIXME: It is wrong to rewrite CC.
4638 # But if we don't then we get into trouble of one sort or another.
4639 # A longer-term fix would be to have automake use am__CC in this case,
4640 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4641 CC="$am_aux_dir/compile $CC"
4642 fi
4643 ac_ext=c
4644 ac_cpp='$CPP $CPPFLAGS'
4645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4648
4649 DEPDIR="${am__leading_dot}deps"
4650
4651 ac_config_commands="$ac_config_commands depfiles"
4652
4653
4654 am_make=${MAKE-make}
4655 cat > confinc << 'END'
4656 am__doit:
4657 @echo this is the am__doit target
4658 .PHONY: am__doit
4659 END
4660 # If we don't find an include directive, just comment out the code.
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4662 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4663 am__include="#"
4664 am__quote=
4665 _am_result=none
4666 # First try GNU make style include.
4667 echo "include confinc" > confmf
4668 # Ignore all kinds of additional output from 'make'.
4669 case `$am_make -s -f confmf 2> /dev/null` in #(
4670 *the\ am__doit\ target*)
4671 am__include=include
4672 am__quote=
4673 _am_result=GNU
4674 ;;
4675 esac
4676 # Now try BSD make style include.
4677 if test "$am__include" = "#"; then
4678 echo '.include "confinc"' > confmf
4679 case `$am_make -s -f confmf 2> /dev/null` in #(
4680 *the\ am__doit\ target*)
4681 am__include=.include
4682 am__quote="\""
4683 _am_result=BSD
4684 ;;
4685 esac
4686 fi
4687
4688
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4690 $as_echo "$_am_result" >&6; }
4691 rm -f confinc confmf
4692
4693 # Check whether --enable-dependency-tracking was given.
4694 if test "${enable_dependency_tracking+set}" = set; then :
4695 enableval=$enable_dependency_tracking;
4696 fi
4697
4698 if test "x$enable_dependency_tracking" != xno; then
4699 am_depcomp="$ac_aux_dir/depcomp"
4700 AMDEPBACKSLASH='\'
4701 am__nodep='_no'
4702 fi
4703 if test "x$enable_dependency_tracking" != xno; then
4704 AMDEP_TRUE=
4705 AMDEP_FALSE='#'
4706 else
4707 AMDEP_TRUE='#'
4708 AMDEP_FALSE=
4709 fi
4710
4711
4712
4713 depcc="$CC" am_compiler_list=
4714
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4716 $as_echo_n "checking dependency style of $depcc... " >&6; }
4717 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4718 $as_echo_n "(cached) " >&6
4719 else
4720 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4721 # We make a subdir and do the tests there. Otherwise we can end up
4722 # making bogus files that we don't know about and never remove. For
4723 # instance it was reported that on HP-UX the gcc test will end up
4724 # making a dummy file named 'D' -- because '-MD' means "put the output
4725 # in D".
4726 rm -rf conftest.dir
4727 mkdir conftest.dir
4728 # Copy depcomp to subdir because otherwise we won't find it if we're
4729 # using a relative directory.
4730 cp "$am_depcomp" conftest.dir
4731 cd conftest.dir
4732 # We will build objects and dependencies in a subdirectory because
4733 # it helps to detect inapplicable dependency modes. For instance
4734 # both Tru64's cc and ICC support -MD to output dependencies as a
4735 # side effect of compilation, but ICC will put the dependencies in
4736 # the current directory while Tru64 will put them in the object
4737 # directory.
4738 mkdir sub
4739
4740 am_cv_CC_dependencies_compiler_type=none
4741 if test "$am_compiler_list" = ""; then
4742 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4743 fi
4744 am__universal=false
4745 case " $depcc " in #(
4746 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4747 esac
4748
4749 for depmode in $am_compiler_list; do
4750 # Setup a source with many dependencies, because some compilers
4751 # like to wrap large dependency lists on column 80 (with \), and
4752 # we should not choose a depcomp mode which is confused by this.
4753 #
4754 # We need to recreate these files for each test, as the compiler may
4755 # overwrite some of them when testing with obscure command lines.
4756 # This happens at least with the AIX C compiler.
4757 : > sub/conftest.c
4758 for i in 1 2 3 4 5 6; do
4759 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4760 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4761 # Solaris 10 /bin/sh.
4762 echo '/* dummy */' > sub/conftst$i.h
4763 done
4764 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4765
4766 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4767 # mode. It turns out that the SunPro C++ compiler does not properly
4768 # handle '-M -o', and we need to detect this. Also, some Intel
4769 # versions had trouble with output in subdirs.
4770 am__obj=sub/conftest.${OBJEXT-o}
4771 am__minus_obj="-o $am__obj"
4772 case $depmode in
4773 gcc)
4774 # This depmode causes a compiler race in universal mode.
4775 test "$am__universal" = false || continue
4776 ;;
4777 nosideeffect)
4778 # After this tag, mechanisms are not by side-effect, so they'll
4779 # only be used when explicitly requested.
4780 if test "x$enable_dependency_tracking" = xyes; then
4781 continue
4782 else
4783 break
4784 fi
4785 ;;
4786 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4787 # This compiler won't grok '-c -o', but also, the minuso test has
4788 # not run yet. These depmodes are late enough in the game, and
4789 # so weak that their functioning should not be impacted.
4790 am__obj=conftest.${OBJEXT-o}
4791 am__minus_obj=
4792 ;;
4793 none) break ;;
4794 esac
4795 if depmode=$depmode \
4796 source=sub/conftest.c object=$am__obj \
4797 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4798 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4799 >/dev/null 2>conftest.err &&
4800 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4801 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4802 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4803 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4804 # icc doesn't choke on unknown options, it will just issue warnings
4805 # or remarks (even with -Werror). So we grep stderr for any message
4806 # that says an option was ignored or not supported.
4807 # When given -MP, icc 7.0 and 7.1 complain thusly:
4808 # icc: Command line warning: ignoring option '-M'; no argument required
4809 # The diagnosis changed in icc 8.0:
4810 # icc: Command line remark: option '-MP' not supported
4811 if (grep 'ignoring option' conftest.err ||
4812 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4813 am_cv_CC_dependencies_compiler_type=$depmode
4814 break
4815 fi
4816 fi
4817 done
4818
4819 cd ..
4820 rm -rf conftest.dir
4821 else
4822 am_cv_CC_dependencies_compiler_type=none
4823 fi
4824
4825 fi
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4827 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4828 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4829
4830 if
4831 test "x$enable_dependency_tracking" != xno \
4832 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4833 am__fastdepCC_TRUE=
4834 am__fastdepCC_FALSE='#'
4835 else
4836 am__fastdepCC_TRUE='#'
4837 am__fastdepCC_FALSE=
4838 fi
4839
4840
4841 ac_ext=c
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4847 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4848 # On Suns, sometimes $CPP names a directory.
4849 if test -n "$CPP" && test -d "$CPP"; then
4850 CPP=
4851 fi
4852 if test -z "$CPP"; then
4853 if ${ac_cv_prog_CPP+:} false; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 # Double quotes because CPP needs to be expanded
4857 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4858 do
4859 ac_preproc_ok=false
4860 for ac_c_preproc_warn_flag in '' yes
4861 do
4862 # Use a header file that comes with gcc, so configuring glibc
4863 # with a fresh cross-compiler works.
4864 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4865 # <limits.h> exists even on freestanding compilers.
4866 # On the NeXT, cc -E runs the code through the compiler's parser,
4867 # not just through cpp. "Syntax error" is here to catch this case.
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4870 #ifdef __STDC__
4871 # include <limits.h>
4872 #else
4873 # include <assert.h>
4874 #endif
4875 Syntax error
4876 _ACEOF
4877 if ac_fn_c_try_cpp "$LINENO"; then :
4878
4879 else
4880 # Broken: fails on valid input.
4881 continue
4882 fi
4883 rm -f conftest.err conftest.i conftest.$ac_ext
4884
4885 # OK, works on sane cases. Now check whether nonexistent headers
4886 # can be detected and how.
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4889 #include <ac_nonexistent.h>
4890 _ACEOF
4891 if ac_fn_c_try_cpp "$LINENO"; then :
4892 # Broken: success on invalid input.
4893 continue
4894 else
4895 # Passes both tests.
4896 ac_preproc_ok=:
4897 break
4898 fi
4899 rm -f conftest.err conftest.i conftest.$ac_ext
4900
4901 done
4902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4903 rm -f conftest.i conftest.err conftest.$ac_ext
4904 if $ac_preproc_ok; then :
4905 break
4906 fi
4907
4908 done
4909 ac_cv_prog_CPP=$CPP
4910
4911 fi
4912 CPP=$ac_cv_prog_CPP
4913 else
4914 ac_cv_prog_CPP=$CPP
4915 fi
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4917 $as_echo "$CPP" >&6; }
4918 ac_preproc_ok=false
4919 for ac_c_preproc_warn_flag in '' yes
4920 do
4921 # Use a header file that comes with gcc, so configuring glibc
4922 # with a fresh cross-compiler works.
4923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924 # <limits.h> exists even on freestanding compilers.
4925 # On the NeXT, cc -E runs the code through the compiler's parser,
4926 # not just through cpp. "Syntax error" is here to catch this case.
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929 #ifdef __STDC__
4930 # include <limits.h>
4931 #else
4932 # include <assert.h>
4933 #endif
4934 Syntax error
4935 _ACEOF
4936 if ac_fn_c_try_cpp "$LINENO"; then :
4937
4938 else
4939 # Broken: fails on valid input.
4940 continue
4941 fi
4942 rm -f conftest.err conftest.i conftest.$ac_ext
4943
4944 # OK, works on sane cases. Now check whether nonexistent headers
4945 # can be detected and how.
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4948 #include <ac_nonexistent.h>
4949 _ACEOF
4950 if ac_fn_c_try_cpp "$LINENO"; then :
4951 # Broken: success on invalid input.
4952 continue
4953 else
4954 # Passes both tests.
4955 ac_preproc_ok=:
4956 break
4957 fi
4958 rm -f conftest.err conftest.i conftest.$ac_ext
4959
4960 done
4961 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4962 rm -f conftest.i conftest.err conftest.$ac_ext
4963 if $ac_preproc_ok; then :
4964
4965 else
4966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4968 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4969 See \`config.log' for more details" "$LINENO" 5; }
4970 fi
4971
4972 ac_ext=c
4973 ac_cpp='$CPP $CPPFLAGS'
4974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4977
4978 ac_ext=c
4979 ac_cpp='$CPP $CPPFLAGS'
4980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4983
4984
4985
4986 if test -n "$ac_tool_prefix"; then
4987 for ac_prog in ar lib "link -lib"
4988 do
4989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4990 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992 $as_echo_n "checking for $ac_word... " >&6; }
4993 if ${ac_cv_prog_AR+:} false; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 if test -n "$AR"; then
4997 ac_cv_prog_AR="$AR" # Let the user override the test.
4998 else
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5001 do
5002 IFS=$as_save_IFS
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5006 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 break 2
5009 fi
5010 done
5011 done
5012 IFS=$as_save_IFS
5013
5014 fi
5015 fi
5016 AR=$ac_cv_prog_AR
5017 if test -n "$AR"; then
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5019 $as_echo "$AR" >&6; }
5020 else
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5023 fi
5024
5025
5026 test -n "$AR" && break
5027 done
5028 fi
5029 if test -z "$AR"; then
5030 ac_ct_AR=$AR
5031 for ac_prog in ar lib "link -lib"
5032 do
5033 # Extract the first word of "$ac_prog", so it can be a program name with args.
5034 set dummy $ac_prog; ac_word=$2
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5036 $as_echo_n "checking for $ac_word... " >&6; }
5037 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 if test -n "$ac_ct_AR"; then
5041 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5042 else
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 for as_dir in $PATH
5045 do
5046 IFS=$as_save_IFS
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5050 ac_cv_prog_ac_ct_AR="$ac_prog"
5051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 break 2
5053 fi
5054 done
5055 done
5056 IFS=$as_save_IFS
5057
5058 fi
5059 fi
5060 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5061 if test -n "$ac_ct_AR"; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5063 $as_echo "$ac_ct_AR" >&6; }
5064 else
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
5067 fi
5068
5069
5070 test -n "$ac_ct_AR" && break
5071 done
5072
5073 if test "x$ac_ct_AR" = x; then
5074 AR="false"
5075 else
5076 case $cross_compiling:$ac_tool_warned in
5077 yes:)
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5080 ac_tool_warned=yes ;;
5081 esac
5082 AR=$ac_ct_AR
5083 fi
5084 fi
5085
5086 : ${AR=ar}
5087
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5089 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5090 if ${am_cv_ar_interface+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 ac_ext=c
5094 ac_cpp='$CPP $CPPFLAGS'
5095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5098
5099 am_cv_ar_interface=ar
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102 int some_variable = 0;
5103 _ACEOF
5104 if ac_fn_c_try_compile "$LINENO"; then :
5105 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5107 (eval $am_ar_try) 2>&5
5108 ac_status=$?
5109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5110 test $ac_status = 0; }
5111 if test "$ac_status" -eq 0; then
5112 am_cv_ar_interface=ar
5113 else
5114 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5116 (eval $am_ar_try) 2>&5
5117 ac_status=$?
5118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5119 test $ac_status = 0; }
5120 if test "$ac_status" -eq 0; then
5121 am_cv_ar_interface=lib
5122 else
5123 am_cv_ar_interface=unknown
5124 fi
5125 fi
5126 rm -f conftest.lib libconftest.a
5127
5128 fi
5129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5130 ac_ext=c
5131 ac_cpp='$CPP $CPPFLAGS'
5132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5135
5136 fi
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5138 $as_echo "$am_cv_ar_interface" >&6; }
5139
5140 case $am_cv_ar_interface in
5141 ar)
5142 ;;
5143 lib)
5144 # Microsoft lib, so override with the ar-lib wrapper script.
5145 # FIXME: It is wrong to rewrite AR.
5146 # But if we don't then we get into trouble of one sort or another.
5147 # A longer-term fix would be to have automake use am__AR in this case,
5148 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5149 # similar.
5150 AR="$am_aux_dir/ar-lib $AR"
5151 ;;
5152 unknown)
5153 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5154 ;;
5155 esac
5156
5157
5158 # Check whether --enable-decimal-float was given.
5159 if test "${enable_decimal_float+set}" = set; then :
5160 enableval=$enable_decimal_float; case $enableval in
5161 yes)
5162 $as_echo "#define MPFR_WANT_DECIMAL_FLOATS 1" >>confdefs.h
5163
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler knows _Decimal64" >&5
5165 $as_echo_n "checking if compiler knows _Decimal64... " >&6; }
5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h. */
5168 _Decimal64 x;
5169 int
5170 main (void)
5171 {
5172
5173 ;
5174 return 0;
5175 }
5176 _ACEOF
5177 if ac_fn_c_try_compile "$LINENO"; then :
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5179 $as_echo "yes" >&6; }
5180 if test "$use_gmp_build" != yes ; then
5181 as_fn_error $? "decimal float support requires --with-gmp-build" "$LINENO" 5
5182 fi
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _GMP_IEEE_FLOATS is defined" >&5
5184 $as_echo_n "checking if _GMP_IEEE_FLOATS is defined... " >&6; }
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5187
5188 #include "gmp.h"
5189 #include "gmp-impl.h"
5190 #ifndef _GMP_IEEE_FLOATS
5191 #error "_GMP_IEEE_FLOATS is not defined"
5192 #endif
5193 _ACEOF
5194 if ac_fn_c_try_compile "$LINENO"; then :
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5196 $as_echo "yes" >&6; }
5197 else
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5200 as_fn_error $? "decimal float support requires _GMP_IEEE_FLOATS" "$LINENO" 5
5201 fi
5202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5203
5204 else
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 $as_echo "no" >&6; }
5207 as_fn_error $? "Compiler doesn't know _Decimal64 (ISO/IEC TR 24732).
5208 Please use another compiler or build MPFR without --enable-decimal-float." "$LINENO" 5
5209
5210 fi
5211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking decimal float format" >&5
5213 $as_echo_n "checking decimal float format... " >&6; }
5214 if test "$cross_compiling" = yes; then :
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming DPD" >&5
5216 $as_echo "assuming DPD" >&6; }
5217 $as_echo "#define DPD_FORMAT 1" >>confdefs.h
5218
5219 else
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221 /* end confdefs.h. */
5222
5223 #include <stdlib.h>
5224
5225 int
5226 main (void)
5227 {
5228
5229 volatile _Decimal64 x = 1;
5230 union { double d; _Decimal64 d64; } y;
5231 if (x != x) return 3;
5232 y.d64 = 1234567890123456.0dd;
5233 return y.d == 0.14894469406741037E-123 ? 0 :
5234 y.d == 0.59075095508629822E-68 ? 1 : 2;
5235
5236 ;
5237 return 0;
5238 }
5239 _ACEOF
5240 if ac_fn_c_try_run "$LINENO"; then :
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DPD" >&5
5242 $as_echo "DPD" >&6; }
5243 $as_echo "#define DPD_FORMAT 1" >>confdefs.h
5244
5245 else
5246 case "$?" in
5247 1) { $as_echo "$as_me:${as_lineno-$LINENO}: result: BID" >&5
5248 $as_echo "BID" >&6; } ;;
5249 2) { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5251 as_fn_error $? "neither DPD nor BID
5252 See \`config.log' for more details" "$LINENO" 5; } ;;
5253 3) { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5255 as_fn_error $? "_Decimal64 support is broken.
5256 Please use another compiler or build MPFR without --enable-decimal-float.
5257 See \`config.log' for more details" "$LINENO" 5; } ;;
5258 *) { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5260 as_fn_error $? "internal error
5261 See \`config.log' for more details" "$LINENO" 5; } ;;
5262 esac
5263 fi
5264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5265 conftest.$ac_objext conftest.beam conftest.$ac_ext
5266 fi
5267
5268 ;;
5269 no) ;;
5270 *) as_fn_error $? "bad value for --enable-decimal-float: yes or no" "$LINENO" 5 ;;
5271 esac
5272 fi
5273
5274
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICC" >&5
5276 $as_echo_n "checking for ICC... " >&6; }
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5279
5280 #if !defined(__ICC)
5281 # error "ICC Not Found"
5282 error
5283 #endif
5284
5285 int
5286 main (void)
5287 {
5288
5289 ;
5290 return 0;
5291 }
5292 _ACEOF
5293 if ac_fn_c_try_compile "$LINENO"; then :
5294
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5296 $as_echo "yes" >&6; }
5297 CFLAGS="-fp_port -mp -wd1572 -wd265 -wd186 -wd239 $CFLAGS"
5298
5299 else
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 $as_echo "no" >&6; }
5302 fi
5303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304
5305 if test "$test_CFLAGS" != set && test -n "$GCC"; then
5306 CFLAGS="-Wpointer-arith $CFLAGS"
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the selected language is C++" >&5
5308 $as_echo_n "checking whether the selected language is C++... " >&6; }
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5311
5312 #if defined (__cplusplus)
5313 # error "C++"
5314 error
5315 #endif
5316
5317 int
5318 main (void)
5319 {
5320
5321 ;
5322 return 0;
5323 }
5324 _ACEOF
5325 if ac_fn_c_try_compile "$LINENO"; then :
5326
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328 $as_echo "no" >&6; }
5329 CFLAGS="-Wmissing-prototypes $CFLAGS"
5330
5331 else
5332
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5334 $as_echo "yes" >&6; }
5335 CFLAGS="-Wmissing-declarations -Wno-sign-compare $CFLAGS"
5336
5337 fi
5338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5339 CFLAGS="-Wall $CFLAGS"
5340 fi
5341
5342
5343
5344 case $host in
5345 *-apple-darwin*)
5346 case "$LD $LDFLAGS" in
5347 *-Wl,-search_paths_first*) ;;
5348 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -Wl,-search_paths_first" >&5
5349 $as_echo_n "checking if the compiler understands -Wl,-search_paths_first... " >&6; }
5350 saved_LDFLAGS="$LDFLAGS"
5351 LDFLAGS="-Wl,-search_paths_first $LDFLAGS"
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354
5355 int
5356 main (void)
5357 {
5358
5359 ;
5360 return 0;
5361 }
5362 _ACEOF
5363 if ac_fn_c_try_link "$LINENO"; then :
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5365 $as_echo "yes" >&6; }
5366 else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5369 LDFLAGS="$saved_LDFLAGS"
5370 fi
5371 rm -f core conftest.err conftest.$ac_objext \
5372 conftest$ac_exeext conftest.$ac_ext
5373 ;;
5374 esac
5375 ;;
5376 esac
5377
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5379 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5380 if ${ac_cv_c_const+:} false; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385
5386 int
5387 main (void)
5388 {
5389
5390 #ifndef __cplusplus
5391 /* Ultrix mips cc rejects this sort of thing. */
5392 typedef int charset[2];
5393 const charset cs = { 0, 0 };
5394 /* SunOS 4.1.1 cc rejects this. */
5395 char const *const *pcpcc;
5396 char **ppc;
5397 /* NEC SVR4.0.2 mips cc rejects this. */
5398 struct point {int x, y;};
5399 static struct point const zero = {0,0};
5400 /* AIX XL C 1.02.0.0 rejects this.
5401 It does not let you subtract one const X* pointer from another in
5402 an arm of an if-expression whose if-part is not a constant
5403 expression */
5404 const char *g = "string";
5405 pcpcc = &g + (g ? g-g : 0);
5406 /* HPUX 7.0 cc rejects these. */
5407 ++pcpcc;
5408 ppc = (char**) pcpcc;
5409 pcpcc = (char const *const *) ppc;
5410 { /* SCO 3.2v4 cc rejects this sort of thing. */
5411 char tx;
5412 char *t = &tx;
5413 char const *s = 0 ? (char *) 0 : (char const *) 0;
5414
5415 *t++ = 0;
5416 if (s) return 0;
5417 }
5418 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5419 int x[] = {25, 17};
5420 const int *foo = &x[0];
5421 ++foo;
5422 }
5423 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5424 typedef const int *iptr;
5425 iptr p = 0;
5426 ++p;
5427 }
5428 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5429 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5430 struct s { int j; const int *ap[3]; } bx;
5431 struct s *b = &bx; b->j = 5;
5432 }
5433 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5434 const int foo = 10;
5435 if (!foo) return 0;
5436 }
5437 return !cs[0] && !zero.x;
5438 #endif
5439
5440 ;
5441 return 0;
5442 }
5443 _ACEOF
5444 if ac_fn_c_try_compile "$LINENO"; then :
5445 ac_cv_c_const=yes
5446 else
5447 ac_cv_c_const=no
5448 fi
5449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450 fi
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5452 $as_echo "$ac_cv_c_const" >&6; }
5453 if test $ac_cv_c_const = no; then
5454
5455 $as_echo "#define const /**/" >>confdefs.h
5456
5457 fi
5458
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
5460 $as_echo_n "checking for working volatile... " >&6; }
5461 if ${ac_cv_c_volatile+:} false; then :
5462 $as_echo_n "(cached) " >&6
5463 else
5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465 /* end confdefs.h. */
5466
5467 int
5468 main (void)
5469 {
5470
5471 volatile int x;
5472 int * volatile y = (int *) 0;
5473 return !x && !y;
5474 ;
5475 return 0;
5476 }
5477 _ACEOF
5478 if ac_fn_c_try_compile "$LINENO"; then :
5479 ac_cv_c_volatile=yes
5480 else
5481 ac_cv_c_volatile=no
5482 fi
5483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5484 fi
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
5486 $as_echo "$ac_cv_c_volatile" >&6; }
5487 if test $ac_cv_c_volatile = no; then
5488
5489 $as_echo "#define volatile /**/" >>confdefs.h
5490
5491 fi
5492
5493
5494
5495 MPFR_LIBM=''
5496
5497 case $host in
5498 *-*-beos* | *-*-cygwin* | *-*-pw32*)
5499 # According to libtool AC CHECK LIBM, these systems don't have libm
5500 ;;
5501 *-*-solaris*)
5502 # On Solaris the math functions new in C99 are in -lm9x.
5503 # FIXME: Do we need -lm9x as well as -lm, or just instead of?
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm9x" >&5
5505 $as_echo_n "checking for main in -lm9x... " >&6; }
5506 if ${ac_cv_lib_m9x_main+:} false; then :
5507 $as_echo_n "(cached) " >&6
5508 else
5509 ac_check_lib_save_LIBS=$LIBS
5510 LIBS="-lm9x $LIBS"
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5513
5514
5515 int
5516 main (void)
5517 {
5518 return main ();
5519 ;
5520 return 0;
5521 }
5522 _ACEOF
5523 if ac_fn_c_try_link "$LINENO"; then :
5524 ac_cv_lib_m9x_main=yes
5525 else
5526 ac_cv_lib_m9x_main=no
5527 fi
5528 rm -f core conftest.err conftest.$ac_objext \
5529 conftest$ac_exeext conftest.$ac_ext
5530 LIBS=$ac_check_lib_save_LIBS
5531 fi
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m9x_main" >&5
5533 $as_echo "$ac_cv_lib_m9x_main" >&6; }
5534 if test "x$ac_cv_lib_m9x_main" = xyes; then :
5535 MPFR_LIBM="-lm9x"
5536 fi
5537
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5539 $as_echo_n "checking for main in -lm... " >&6; }
5540 if ${ac_cv_lib_m_main+:} false; then :
5541 $as_echo_n "(cached) " >&6
5542 else
5543 ac_check_lib_save_LIBS=$LIBS
5544 LIBS="-lm $LIBS"
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5547
5548
5549 int
5550 main (void)
5551 {
5552 return main ();
5553 ;
5554 return 0;
5555 }
5556 _ACEOF
5557 if ac_fn_c_try_link "$LINENO"; then :
5558 ac_cv_lib_m_main=yes
5559 else
5560 ac_cv_lib_m_main=no
5561 fi
5562 rm -f core conftest.err conftest.$ac_objext \
5563 conftest$ac_exeext conftest.$ac_ext
5564 LIBS=$ac_check_lib_save_LIBS
5565 fi
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5567 $as_echo "$ac_cv_lib_m_main" >&6; }
5568 if test "x$ac_cv_lib_m_main" = xyes; then :
5569 MPFR_LIBM="$MPFR_LIBM -lm"
5570 fi
5571
5572 ;;
5573 *-ncr-sysv4.3*)
5574 # FIXME: What does -lmw mean? Libtool AC CHECK LIBM does it this way.
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
5576 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
5577 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
5578 $as_echo_n "(cached) " >&6
5579 else
5580 ac_check_lib_save_LIBS=$LIBS
5581 LIBS="-lmw $LIBS"
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584
5585 /* Override any GCC internal prototype to avoid an error.
5586 Use char because int might match the return type of a GCC
5587 builtin and then its argument prototype would still apply. */
5588 #ifdef __cplusplus
5589 extern "C"
5590 #endif
5591 char _mwvalidcheckl ();
5592 int
5593 main (void)
5594 {
5595 return _mwvalidcheckl ();
5596 ;
5597 return 0;
5598 }
5599 _ACEOF
5600 if ac_fn_c_try_link "$LINENO"; then :
5601 ac_cv_lib_mw__mwvalidcheckl=yes
5602 else
5603 ac_cv_lib_mw__mwvalidcheckl=no
5604 fi
5605 rm -f core conftest.err conftest.$ac_objext \
5606 conftest$ac_exeext conftest.$ac_ext
5607 LIBS=$ac_check_lib_save_LIBS
5608 fi
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
5610 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
5611 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
5612 MPFR_LIBM="-lmw"
5613 fi
5614
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5616 $as_echo_n "checking for main in -lm... " >&6; }
5617 if ${ac_cv_lib_m_main+:} false; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 ac_check_lib_save_LIBS=$LIBS
5621 LIBS="-lm $LIBS"
5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623 /* end confdefs.h. */
5624
5625
5626 int
5627 main (void)
5628 {
5629 return main ();
5630 ;
5631 return 0;
5632 }
5633 _ACEOF
5634 if ac_fn_c_try_link "$LINENO"; then :
5635 ac_cv_lib_m_main=yes
5636 else
5637 ac_cv_lib_m_main=no
5638 fi
5639 rm -f core conftest.err conftest.$ac_objext \
5640 conftest$ac_exeext conftest.$ac_ext
5641 LIBS=$ac_check_lib_save_LIBS
5642 fi
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5644 $as_echo "$ac_cv_lib_m_main" >&6; }
5645 if test "x$ac_cv_lib_m_main" = xyes; then :
5646 MPFR_LIBM="$MPFR_LIBM -lm"
5647 fi
5648
5649 ;;
5650 *)
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5652 $as_echo_n "checking for main in -lm... " >&6; }
5653 if ${ac_cv_lib_m_main+:} false; then :
5654 $as_echo_n "(cached) " >&6
5655 else
5656 ac_check_lib_save_LIBS=$LIBS
5657 LIBS="-lm $LIBS"
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660
5661
5662 int
5663 main (void)
5664 {
5665 return main ();
5666 ;
5667 return 0;
5668 }
5669 _ACEOF
5670 if ac_fn_c_try_link "$LINENO"; then :
5671 ac_cv_lib_m_main=yes
5672 else
5673 ac_cv_lib_m_main=no
5674 fi
5675 rm -f core conftest.err conftest.$ac_objext \
5676 conftest$ac_exeext conftest.$ac_ext
5677 LIBS=$ac_check_lib_save_LIBS
5678 fi
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5680 $as_echo "$ac_cv_lib_m_main" >&6; }
5681 if test "x$ac_cv_lib_m_main" = xyes; then :
5682 MPFR_LIBM="-lm"
5683 fi
5684
5685 ;;
5686 esac
5687
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5689 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5690 if ${ac_cv_header_time+:} false; then :
5691 $as_echo_n "(cached) " >&6
5692 else
5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694 /* end confdefs.h. */
5695 #include <sys/types.h>
5696 #include <sys/time.h>
5697 #include <time.h>
5698
5699 int
5700 main (void)
5701 {
5702 if ((struct tm *) 0)
5703 return 0;
5704 ;
5705 return 0;
5706 }
5707 _ACEOF
5708 if ac_fn_c_try_compile "$LINENO"; then :
5709 ac_cv_header_time=yes
5710 else
5711 ac_cv_header_time=no
5712 fi
5713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714 fi
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5716 $as_echo "$ac_cv_header_time" >&6; }
5717 if test $ac_cv_header_time = yes; then
5718
5719 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5720
5721 fi
5722
5723
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5725 $as_echo_n "checking for ANSI C header files... " >&6; }
5726 if ${ac_cv_header_stdc+:} false; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5731 #include <stdlib.h>
5732 #include <stdarg.h>
5733 #include <string.h>
5734 #include <float.h>
5735
5736 int
5737 main (void)
5738 {
5739
5740 ;
5741 return 0;
5742 }
5743 _ACEOF
5744 if ac_fn_c_try_compile "$LINENO"; then :
5745 ac_cv_header_stdc=yes
5746 else
5747 ac_cv_header_stdc=no
5748 fi
5749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750
5751 if test $ac_cv_header_stdc = yes; then
5752 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5755 #include <string.h>
5756
5757 _ACEOF
5758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5759 $EGREP "memchr" >/dev/null 2>&1; then :
5760
5761 else
5762 ac_cv_header_stdc=no
5763 fi
5764 rm -f conftest*
5765
5766 fi
5767
5768 if test $ac_cv_header_stdc = yes; then
5769 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771 /* end confdefs.h. */
5772 #include <stdlib.h>
5773
5774 _ACEOF
5775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5776 $EGREP "free" >/dev/null 2>&1; then :
5777
5778 else
5779 ac_cv_header_stdc=no
5780 fi
5781 rm -f conftest*
5782
5783 fi
5784
5785 if test $ac_cv_header_stdc = yes; then
5786 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5787 if test "$cross_compiling" = yes; then :
5788 :
5789 else
5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792 #include <ctype.h>
5793 #include <stdlib.h>
5794 #if ((' ' & 0x0FF) == 0x020)
5795 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5796 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5797 #else
5798 # define ISLOWER(c) \
5799 (('a' <= (c) && (c) <= 'i') \
5800 || ('j' <= (c) && (c) <= 'r') \
5801 || ('s' <= (c) && (c) <= 'z'))
5802 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5803 #endif
5804
5805 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5806 int
5807 main ()
5808 {
5809 int i;
5810 for (i = 0; i < 256; i++)
5811 if (XOR (islower (i), ISLOWER (i))
5812 || toupper (i) != TOUPPER (i))
5813 return 2;
5814 return 0;
5815 }
5816 _ACEOF
5817 if ac_fn_c_try_run "$LINENO"; then :
5818
5819 else
5820 ac_cv_header_stdc=no
5821 fi
5822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5823 conftest.$ac_objext conftest.beam conftest.$ac_ext
5824 fi
5825
5826 fi
5827 fi
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5829 $as_echo "$ac_cv_header_stdc" >&6; }
5830 if test $ac_cv_header_stdc = yes; then
5831
5832 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5833
5834 fi
5835
5836 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5837 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5838 inttypes.h stdint.h unistd.h
5839 do :
5840 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5841 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5842 "
5843 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5844 cat >>confdefs.h <<_ACEOF
5845 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5846 _ACEOF
5847
5848 fi
5849
5850 done
5851
5852
5853 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5854 if test "x$ac_cv_type_size_t" = xyes; then :
5855
5856 else
5857
5858 cat >>confdefs.h <<_ACEOF
5859 #define size_t unsigned int
5860 _ACEOF
5861
5862 fi
5863
5864
5865
5866
5867
5868
5869
5870 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
5871 if test "x$ac_cv_header_limits_h" = xyes; then :
5872
5873 else
5874 as_fn_error $? "limits.h not found" "$LINENO" 5
5875 fi
5876
5877
5878 ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
5879 if test "x$ac_cv_header_float_h" = xyes; then :
5880
5881 else
5882 as_fn_error $? "float.h not found" "$LINENO" 5
5883 fi
5884
5885
5886 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5887 if test "x$ac_cv_header_string_h" = xyes; then :
5888
5889 else
5890 as_fn_error $? "string.h not found" "$LINENO" 5
5891 fi
5892
5893
5894
5895 for ac_header in locale.h
5896 do :
5897 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
5898 if test "x$ac_cv_header_locale_h" = xyes; then :
5899 cat >>confdefs.h <<_ACEOF
5900 #define HAVE_LOCALE_H 1
5901 _ACEOF
5902
5903 fi
5904
5905 done
5906
5907
5908 for ac_header in wchar.h
5909 do :
5910 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
5911 if test "x$ac_cv_header_wchar_h" = xyes; then :
5912 cat >>confdefs.h <<_ACEOF
5913 #define HAVE_WCHAR_H 1
5914 _ACEOF
5915
5916 fi
5917
5918 done
5919
5920
5921 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
5922 if test "x$ac_cv_header_stdarg_h" = xyes; then :
5923
5924 $as_echo "#define HAVE_STDARG 1" >>confdefs.h
5925
5926 else
5927 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
5928 if test "x$ac_cv_header_varargs_h" = xyes; then :
5929
5930 else
5931 as_fn_error $? "stdarg.h or varargs.h not found" "$LINENO" 5
5932 fi
5933
5934
5935 fi
5936
5937
5938
5939 for ac_header in sys/time.h sys/fpu.h
5940 do :
5941 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5942 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5943 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5944 cat >>confdefs.h <<_ACEOF
5945 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5946 _ACEOF
5947
5948 fi
5949
5950 done
5951
5952
5953 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
5954 "
5955 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
5956
5957 cat >>confdefs.h <<_ACEOF
5958 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
5959 _ACEOF
5960
5961
5962 fi
5963 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
5964 "
5965 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
5966
5967 cat >>confdefs.h <<_ACEOF
5968 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
5969 _ACEOF
5970
5971
5972 fi
5973
5974
5975 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5976 # for constant arguments. Useless!
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5978 $as_echo_n "checking for working alloca.h... " >&6; }
5979 if ${ac_cv_working_alloca_h+:} false; then :
5980 $as_echo_n "(cached) " >&6
5981 else
5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5984 #include <alloca.h>
5985 int
5986 main (void)
5987 {
5988 char *p = (char *) alloca (2 * sizeof (int));
5989 if (p) return 0;
5990 ;
5991 return 0;
5992 }
5993 _ACEOF
5994 if ac_fn_c_try_link "$LINENO"; then :
5995 ac_cv_working_alloca_h=yes
5996 else
5997 ac_cv_working_alloca_h=no
5998 fi
5999 rm -f core conftest.err conftest.$ac_objext \
6000 conftest$ac_exeext conftest.$ac_ext
6001 fi
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6003 $as_echo "$ac_cv_working_alloca_h" >&6; }
6004 if test $ac_cv_working_alloca_h = yes; then
6005
6006 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6007
6008 fi
6009
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6011 $as_echo_n "checking for alloca... " >&6; }
6012 if ${ac_cv_func_alloca_works+:} false; then :
6013 $as_echo_n "(cached) " >&6
6014 else
6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016 /* end confdefs.h. */
6017 #ifdef __GNUC__
6018 # define alloca __builtin_alloca
6019 #else
6020 # ifdef _MSC_VER
6021 # include <malloc.h>
6022 # define alloca _alloca
6023 # else
6024 # ifdef HAVE_ALLOCA_H
6025 # include <alloca.h>
6026 # else
6027 # ifdef _AIX
6028 #pragma alloca
6029 # else
6030 # ifndef alloca /* predefined by HP cc +Olibcalls */
6031 void *alloca (size_t);
6032 # endif
6033 # endif
6034 # endif
6035 # endif
6036 #endif
6037
6038 int
6039 main (void)
6040 {
6041 char *p = (char *) alloca (1);
6042 if (p) return 0;
6043 ;
6044 return 0;
6045 }
6046 _ACEOF
6047 if ac_fn_c_try_link "$LINENO"; then :
6048 ac_cv_func_alloca_works=yes
6049 else
6050 ac_cv_func_alloca_works=no
6051 fi
6052 rm -f core conftest.err conftest.$ac_objext \
6053 conftest$ac_exeext conftest.$ac_ext
6054 fi
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6056 $as_echo "$ac_cv_func_alloca_works" >&6; }
6057
6058 if test $ac_cv_func_alloca_works = yes; then
6059
6060 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6061
6062 else
6063 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6064 # that cause trouble. Some versions do not even contain alloca or
6065 # contain a buggy version. If you still want to use their alloca,
6066 # use ar to extract alloca.o from them instead of compiling alloca.c.
6067
6068 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6069
6070 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6071
6072
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6074 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6075 if ${ac_cv_os_cray+:} false; then :
6076 $as_echo_n "(cached) " >&6
6077 else
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6080 #if defined CRAY && ! defined CRAY2
6081 webecray
6082 #else
6083 wenotbecray
6084 #endif
6085
6086 _ACEOF
6087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6088 $EGREP "webecray" >/dev/null 2>&1; then :
6089 ac_cv_os_cray=yes
6090 else
6091 ac_cv_os_cray=no
6092 fi
6093 rm -f conftest*
6094
6095 fi
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6097 $as_echo "$ac_cv_os_cray" >&6; }
6098 if test $ac_cv_os_cray = yes; then
6099 for ac_func in _getb67 GETB67 getb67; do
6100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6101 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6102 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6103
6104 cat >>confdefs.h <<_ACEOF
6105 #define CRAY_STACKSEG_END $ac_func
6106 _ACEOF
6107
6108 break
6109 fi
6110
6111 done
6112 fi
6113
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6115 $as_echo_n "checking stack direction for C alloca... " >&6; }
6116 if ${ac_cv_c_stack_direction+:} false; then :
6117 $as_echo_n "(cached) " >&6
6118 else
6119 if test "$cross_compiling" = yes; then :
6120 ac_cv_c_stack_direction=0
6121 else
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h. */
6124 $ac_includes_default
6125 int
6126 find_stack_direction (int *addr, int depth)
6127 {
6128 int dir, dummy = 0;
6129 if (! addr)
6130 addr = &dummy;
6131 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6132 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6133 return dir + dummy;
6134 }
6135
6136 int
6137 main (int argc, char **argv)
6138 {
6139 return find_stack_direction (0, argc + !argv + 20) < 0;
6140 }
6141 _ACEOF
6142 if ac_fn_c_try_run "$LINENO"; then :
6143 ac_cv_c_stack_direction=1
6144 else
6145 ac_cv_c_stack_direction=-1
6146 fi
6147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6148 conftest.$ac_objext conftest.beam conftest.$ac_ext
6149 fi
6150
6151 fi
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6153 $as_echo "$ac_cv_c_stack_direction" >&6; }
6154 cat >>confdefs.h <<_ACEOF
6155 #define STACK_DIRECTION $ac_cv_c_stack_direction
6156 _ACEOF
6157
6158
6159 fi
6160
6161
6162
6163 for ac_header in stdint.h
6164 do :
6165 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
6166 if test "x$ac_cv_header_stdint_h" = xyes; then :
6167 cat >>confdefs.h <<_ACEOF
6168 #define HAVE_STDINT_H 1
6169 _ACEOF
6170
6171 fi
6172
6173 done
6174
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
6176 $as_echo_n "checking for SIZE_MAX... " >&6; }
6177 if ${gl_cv_size_max+:} false; then :
6178 $as_echo_n "(cached) " >&6
6179 else
6180
6181 gl_cv_size_max=
6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6184
6185 #include <limits.h>
6186 #ifdef HAVE_INTTYPES_H
6187 # include <inttypes.h>
6188 #endif
6189 #if HAVE_STDINT_H
6190 # include <stdint.h>
6191 #endif
6192 #ifdef SIZE_MAX
6193 Found it
6194 #endif
6195
6196 _ACEOF
6197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6198 $EGREP "Found it" >/dev/null 2>&1; then :
6199 gl_cv_size_max=yes
6200 fi
6201 rm -f conftest*
6202
6203 if test -z "$gl_cv_size_max"; then
6204 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
6205 #include <limits.h>"; then :
6206
6207 else
6208 size_t_bits_minus_1=
6209 fi
6210
6211 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
6212
6213 else
6214 fits_in_uint=
6215 fi
6216
6217 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
6218 if test $fits_in_uint = 1; then
6219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6220 /* end confdefs.h. */
6221 #include <stddef.h>
6222 extern size_t foo;
6223 extern unsigned long foo;
6224
6225 int
6226 main (void)
6227 {
6228
6229 ;
6230 return 0;
6231 }
6232 _ACEOF
6233 if ac_fn_c_try_compile "$LINENO"; then :
6234 fits_in_uint=0
6235 fi
6236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6237 fi
6238 if test $fits_in_uint = 1; then
6239 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
6240 else
6241 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
6242 fi
6243 else
6244 gl_cv_size_max='((size_t)~(size_t)0)'
6245 fi
6246 fi
6247
6248 fi
6249
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
6251 $as_echo "$gl_cv_size_max" >&6; }
6252 if test "$gl_cv_size_max" != yes; then
6253
6254 cat >>confdefs.h <<_ACEOF
6255 #define SIZE_MAX $gl_cv_size_max
6256 _ACEOF
6257
6258 fi
6259
6260
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to copy va_list" >&5
6262 $as_echo_n "checking how to copy va_list... " >&6; }
6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264 /* end confdefs.h. */
6265
6266 #include <stdarg.h>
6267
6268 int
6269 main (void)
6270 {
6271
6272 va_list ap1, ap2;
6273 va_copy(ap1, ap2);
6274
6275 ;
6276 return 0;
6277 }
6278 _ACEOF
6279 if ac_fn_c_try_link "$LINENO"; then :
6280
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: va_copy" >&5
6282 $as_echo "va_copy" >&6; }
6283 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
6284
6285
6286 else
6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6289
6290 #include <stdarg.h>
6291
6292 int
6293 main (void)
6294 {
6295
6296 va_list ap1, ap2;
6297 __va_copy(ap1, ap2);
6298
6299 ;
6300 return 0;
6301 }
6302 _ACEOF
6303 if ac_fn_c_try_link "$LINENO"; then :
6304 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __va_copy" >&5
6306 $as_echo "__va_copy" >&6; }
6307 else
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: memcpy" >&5
6309 $as_echo "memcpy" >&6; }
6310 fi
6311 rm -f core conftest.err conftest.$ac_objext \
6312 conftest$ac_exeext conftest.$ac_ext
6313 fi
6314 rm -f core conftest.err conftest.$ac_objext \
6315 conftest$ac_exeext conftest.$ac_ext
6316
6317 for ac_func in memmove memset setlocale strtol gettimeofday
6318 do :
6319 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6320 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6321 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6322 cat >>confdefs.h <<_ACEOF
6323 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6324 _ACEOF
6325
6326 fi
6327 done
6328
6329
6330 case $host in
6331 alpha*-*-*)
6332 saved_CFLAGS="$CFLAGS"
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IEEE-754 switches" >&5
6334 $as_echo_n "checking for IEEE-754 switches... " >&6; }
6335 if ${mpfr_cv_ieee_switches+:} false; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338
6339 if test -n "$GCC"; then
6340 mpfr_cv_ieee_switches="-mfp-rounding-mode=d -mieee-with-inexact"
6341 else
6342 mpfr_cv_ieee_switches="-fprm d -ieee_with_inexact"
6343 fi
6344 CFLAGS="$CFLAGS $mpfr_cv_ieee_switches"
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6347
6348 int
6349 main (void)
6350 {
6351
6352 ;
6353 return 0;
6354 }
6355 _ACEOF
6356 if ac_fn_c_try_compile "$LINENO"; then :
6357
6358 else
6359 mpfr_cv_ieee_switches="none"
6360 fi
6361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362
6363 fi
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_ieee_switches" >&5
6365 $as_echo "$mpfr_cv_ieee_switches" >&6; }
6366 if test "$mpfr_cv_ieee_switches" = "none"; then
6367 CFLAGS="$saved_CFLAGS"
6368 else
6369 CFLAGS="$saved_CFLAGS $mpfr_cv_ieee_switches"
6370 fi
6371 esac
6372
6373 ac_fn_c_check_type "$LINENO" "long long int" "ac_cv_type_long_long_int" "$ac_includes_default"
6374 if test "x$ac_cv_type_long_long_int" = xyes; then :
6375
6376 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6377
6378 fi
6379
6380
6381 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6382 if test "x$ac_cv_type_intmax_t" = xyes; then :
6383
6384 cat >>confdefs.h <<_ACEOF
6385 #define HAVE_INTMAX_T 1
6386 _ACEOF
6387
6388
6389 fi
6390
6391 if test "$ac_cv_type_intmax_t" = yes; then
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working INTMAX_MAX" >&5
6393 $as_echo_n "checking for working INTMAX_MAX... " >&6; }
6394 if ${mpfr_cv_have_intmax_max+:} false; then :
6395 $as_echo_n "(cached) " >&6
6396 else
6397
6398 saved_CPPFLAGS="$CPPFLAGS"
6399 CPPFLAGS="$CPPFLAGS -I$srcdir/src"
6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h. */
6402 #include "mpfr-intmax.h"
6403 int
6404 main (void)
6405 {
6406 intmax_t x = INTMAX_MAX; (void) x;
6407
6408 ;
6409 return 0;
6410 }
6411 _ACEOF
6412 if ac_fn_c_try_compile "$LINENO"; then :
6413 mpfr_cv_have_intmax_max=yes
6414 else
6415 mpfr_cv_have_intmax_max=no
6416 fi
6417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418 CPPFLAGS="$saved_CPPFLAGS"
6419
6420 fi
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_intmax_max" >&5
6422 $as_echo "$mpfr_cv_have_intmax_max" >&6; }
6423 if test "$mpfr_cv_have_intmax_max" = "yes"; then
6424
6425 $as_echo "#define MPFR_HAVE_INTMAX_MAX 1" >>confdefs.h
6426
6427 fi
6428 fi
6429
6430 ac_fn_c_check_type "$LINENO" "union fpc_csr" "ac_cv_type_union_fpc_csr" "
6431 #if HAVE_SYS_FPU_H
6432 # include <sys/fpu.h>
6433 #endif
6434
6435 "
6436 if test "x$ac_cv_type_union_fpc_csr" = xyes; then :
6437
6438 $as_echo "#define HAVE_FPC_CSR 1" >>confdefs.h
6439
6440 fi
6441
6442
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround" >&5
6444 $as_echo_n "checking for fesetround... " >&6; }
6445 if ${mpfr_cv_have_fesetround+:} false; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448
6449 saved_LIBS="$LIBS"
6450 LIBS="$LIBS $MPFR_LIBM"
6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6453 #include <fenv.h>
6454 int
6455 main (void)
6456 {
6457 fesetround(FE_TONEAREST);
6458 ;
6459 return 0;
6460 }
6461 _ACEOF
6462 if ac_fn_c_try_link "$LINENO"; then :
6463 mpfr_cv_have_fesetround=yes
6464 else
6465 mpfr_cv_have_fesetround=no
6466 fi
6467 rm -f core conftest.err conftest.$ac_objext \
6468 conftest$ac_exeext conftest.$ac_ext
6469 LIBS="$saved_LIBS"
6470
6471 fi
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_fesetround" >&5
6473 $as_echo "$mpfr_cv_have_fesetround" >&6; }
6474 if test "$mpfr_cv_have_fesetround" = "yes"; then
6475
6476 $as_echo "#define MPFR_HAVE_FESETROUND 1" >>confdefs.h
6477
6478 fi
6479
6480 if test -n "$GCC"; then
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc float-conversion bug" >&5
6482 $as_echo_n "checking for gcc float-conversion bug... " >&6; }
6483 if ${mpfr_cv_gcc_floatconv_bug+:} false; then :
6484 $as_echo_n "(cached) " >&6
6485 else
6486
6487 saved_LIBS="$LIBS"
6488 LIBS="$LIBS $MPFR_LIBM"
6489 if test "$cross_compiling" = yes; then :
6490 mpfr_cv_gcc_floatconv_bug="cannot test, use -ffloat-store"
6491 else
6492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6493 /* end confdefs.h. */
6494
6495 #include <float.h>
6496 #ifdef MPFR_HAVE_FESETROUND
6497 #include <fenv.h>
6498 #endif
6499 static double get_max (void);
6500 int main (void) {
6501 double x = 0.5;
6502 double y;
6503 int i;
6504 for (i = 1; i <= 11; i++)
6505 x *= x;
6506 if (x != 0)
6507 return 1;
6508 #ifdef MPFR_HAVE_FESETROUND
6509 /* Useful test for the G4 PowerPC */
6510 fesetround(FE_TOWARDZERO);
6511 x = y = get_max ();
6512 x *= 2.0;
6513 if (x != y)
6514 return 1;
6515 #endif
6516 return 0;
6517 }
6518 static double get_max (void) { static volatile double d = DBL_MAX; return d; }
6519
6520 _ACEOF
6521 if ac_fn_c_try_run "$LINENO"; then :
6522 mpfr_cv_gcc_floatconv_bug="no"
6523 else
6524 mpfr_cv_gcc_floatconv_bug="yes, use -ffloat-store"
6525 fi
6526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6527 conftest.$ac_objext conftest.beam conftest.$ac_ext
6528 fi
6529
6530 LIBS="$saved_LIBS"
6531
6532 fi
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_gcc_floatconv_bug" >&5
6534 $as_echo "$mpfr_cv_gcc_floatconv_bug" >&6; }
6535 if test "$mpfr_cv_gcc_floatconv_bug" != "no"; then
6536 CFLAGS="$CFLAGS -ffloat-store"
6537 fi
6538 fi
6539
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for subnormal numbers" >&5
6541 $as_echo_n "checking for subnormal numbers... " >&6; }
6542 if ${mpfr_cv_have_denorms+:} false; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545
6546 if test "$cross_compiling" = yes; then :
6547 mpfr_cv_have_denorms="cannot test, assume no"
6548 else
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6551
6552 #include <stdio.h>
6553 int main (void) {
6554 double x = 2.22507385850720138309e-308;
6555 fprintf (stderr, "%e\n", x / 2.0);
6556 return 2.0 * (x / 2.0) != x;
6557 }
6558
6559 _ACEOF
6560 if ac_fn_c_try_run "$LINENO"; then :
6561 mpfr_cv_have_denorms="yes"
6562 else
6563 mpfr_cv_have_denorms="no"
6564 fi
6565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6566 conftest.$ac_objext conftest.beam conftest.$ac_ext
6567 fi
6568
6569
6570 fi
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_denorms" >&5
6572 $as_echo "$mpfr_cv_have_denorms" >&6; }
6573 if test "$mpfr_cv_have_denorms" = "yes"; then
6574
6575 $as_echo "#define HAVE_DENORMS 1" >>confdefs.h
6576
6577 fi
6578
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed zeros" >&5
6580 $as_echo_n "checking for signed zeros... " >&6; }
6581 if ${mpfr_cv_have_signedz+:} false; then :
6582 $as_echo_n "(cached) " >&6
6583 else
6584
6585 if test "$cross_compiling" = yes; then :
6586 mpfr_cv_have_signedz="cannot test, assume no"
6587 else
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6590
6591 int main (void) {
6592 return 1.0 / 0.0 == 1.0 / -0.0;
6593 }
6594
6595 _ACEOF
6596 if ac_fn_c_try_run "$LINENO"; then :
6597 mpfr_cv_have_signedz="yes"
6598 else
6599 mpfr_cv_have_signedz="no"
6600 fi
6601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6602 conftest.$ac_objext conftest.beam conftest.$ac_ext
6603 fi
6604
6605
6606 fi
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_signedz" >&5
6608 $as_echo "$mpfr_cv_have_signedz" >&6; }
6609 if test "$mpfr_cv_have_signedz" = "yes"; then
6610
6611 $as_echo "#define HAVE_SIGNEDZ 1" >>confdefs.h
6612
6613 fi
6614
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the FP division by 0 fails" >&5
6616 $as_echo_n "checking if the FP division by 0 fails... " >&6; }
6617 if ${mpfr_cv_errdivzero+:} false; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6620
6621 if test "$cross_compiling" = yes; then :
6622 mpfr_cv_errdivzero="cannot test, assume no"
6623 else
6624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625 /* end confdefs.h. */
6626
6627 int main (void) {
6628 volatile double d = 0.0, x;
6629 x = 0.0 / d;
6630 x = 1.0 / d;
6631 (void) x;
6632 return 0;
6633 }
6634
6635 _ACEOF
6636 if ac_fn_c_try_run "$LINENO"; then :
6637 mpfr_cv_errdivzero="no"
6638 else
6639 mpfr_cv_errdivzero="yes"
6640 fi
6641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6642 conftest.$ac_objext conftest.beam conftest.$ac_ext
6643 fi
6644
6645
6646 fi
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_errdivzero" >&5
6648 $as_echo "$mpfr_cv_errdivzero" >&6; }
6649 if test "$mpfr_cv_errdivzero" = "yes"; then
6650
6651 $as_echo "#define MPFR_ERRDIVZERO 1" >>confdefs.h
6652
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The floating-point division by 0 fails instead of" >&5
6654 $as_echo "$as_me: WARNING: The floating-point division by 0 fails instead of" >&2;}
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: returning a special value: NaN or infinity. Tests" >&5
6656 $as_echo "$as_me: WARNING: returning a special value: NaN or infinity. Tests" >&2;}
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: involving a FP division by 0 will be disabled." >&5
6658 $as_echo "$as_me: WARNING: involving a FP division by 0 will be disabled." >&2;}
6659 fi
6660
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if NAN == NAN" >&5
6662 $as_echo_n "checking if NAN == NAN... " >&6; }
6663 if ${mpfr_cv_nanisnan+:} false; then :
6664 $as_echo_n "(cached) " >&6
6665 else
6666
6667 if test "$cross_compiling" = yes; then :
6668 mpfr_cv_nanisnan="cannot test, assume no"
6669 else
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h. */
6672
6673 #include <stdio.h>
6674 #include <math.h>
6675 #ifndef NAN
6676 # define NAN (0.0/0.0)
6677 #endif
6678 int main (void) {
6679 double d;
6680 d = NAN;
6681 return d != d;
6682 }
6683
6684 _ACEOF
6685 if ac_fn_c_try_run "$LINENO"; then :
6686 mpfr_cv_nanisnan="yes"
6687 else
6688 mpfr_cv_nanisnan="no"
6689 fi
6690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6691 conftest.$ac_objext conftest.beam conftest.$ac_ext
6692 fi
6693
6694
6695 fi
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_nanisnan" >&5
6697 $as_echo "$mpfr_cv_nanisnan" >&6; }
6698 if test "$mpfr_cv_nanisnan" = "yes"; then
6699
6700 $as_echo "#define MPFR_NANISNAN 1" >>confdefs.h
6701
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The test NAN != NAN is false. The probable reason is that" >&5
6703 $as_echo "$as_me: WARNING: The test NAN != NAN is false. The probable reason is that" >&2;}
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler optimizes floating-point expressions in an" >&5
6705 $as_echo "$as_me: WARNING: your compiler optimizes floating-point expressions in an" >&2;}
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsafe way because some option, such as -ffast-math or" >&5
6707 $as_echo "$as_me: WARNING: unsafe way because some option, such as -ffast-math or" >&2;}
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -fast (depending on the compiler), has been used. You" >&5
6709 $as_echo "$as_me: WARNING: -fast (depending on the compiler), has been used. You" >&2;}
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: should NOT use such an option, otherwise MPFR functions" >&5
6711 $as_echo "$as_me: WARNING: should NOT use such an option, otherwise MPFR functions" >&2;}
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&5
6713 $as_echo "$as_me: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&2;}
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&5
6715 $as_echo "$as_me: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&2;}
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you did not use such an option, please send us a bug" >&5
6717 $as_echo "$as_me: WARNING: If you did not use such an option, please send us a bug" >&2;}
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: report so that we can try to find a workaround for your" >&5
6719 $as_echo "$as_me: WARNING: report so that we can try to find a workaround for your" >&2;}
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: platform and/or document the behavior." >&5
6721 $as_echo "$as_me: WARNING: platform and/or document the behavior." >&2;}
6722 fi
6723
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if charset has consecutive values" >&5
6725 $as_echo_n "checking if charset has consecutive values... " >&6; }
6726 if test "$cross_compiling" = yes; then :
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5
6728 $as_echo "cannot test" >&6; }
6729 else
6730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731 /* end confdefs.h. */
6732
6733 char *number = "0123456789";
6734 char *lower = "abcdefghijklmnopqrstuvwxyz";
6735 char *upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
6736
6737 int
6738 main (void)
6739 {
6740
6741 int i;
6742 unsigned char *p;
6743 for (p = (unsigned char*) number, i = 0; i < 9; i++)
6744 if ( (*p)+1 != *(p+1) ) return 1;
6745 for (p = (unsigned char*) lower, i = 0; i < 25; i++)
6746 if ( (*p)+1 != *(p+1) ) return 1;
6747 for (p = (unsigned char*) upper, i = 0; i < 25; i++)
6748 if ( (*p)+1 != *(p+1) ) return 1;
6749
6750 ;
6751 return 0;
6752 }
6753 _ACEOF
6754 if ac_fn_c_try_run "$LINENO"; then :
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6756 $as_echo "yes" >&6; }
6757 else
6758
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760 $as_echo "no" >&6; }
6761
6762 $as_echo "#define MPFR_NO_CONSECUTIVE_CHARSET 1" >>confdefs.h
6763
6764
6765 fi
6766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6767 conftest.$ac_objext conftest.beam conftest.$ac_ext
6768 fi
6769
6770
6771 saved_LIBS="$LIBS"
6772 LIBS="$LIBS $MPFR_LIBM"
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/round" >&5
6774 $as_echo_n "checking for math/round... " >&6; }
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777
6778 #include <math.h>
6779 static int f (double (*func)(double)) { return 0; }
6780
6781 int
6782 main (void)
6783 {
6784
6785 return f(round);
6786
6787 ;
6788 return 0;
6789 }
6790 _ACEOF
6791 if ac_fn_c_try_link "$LINENO"; then :
6792
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6794 $as_echo "yes" >&6; }
6795
6796 $as_echo "#define HAVE_ROUND 1" >>confdefs.h
6797
6798
6799 else
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6802 fi
6803 rm -f core conftest.err conftest.$ac_objext \
6804 conftest$ac_exeext conftest.$ac_ext
6805
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/trunc" >&5
6807 $as_echo_n "checking for math/trunc... " >&6; }
6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6810
6811 #include <math.h>
6812 static int f (double (*func)(double)) { return 0; }
6813
6814 int
6815 main (void)
6816 {
6817
6818 return f(trunc);
6819
6820 ;
6821 return 0;
6822 }
6823 _ACEOF
6824 if ac_fn_c_try_link "$LINENO"; then :
6825
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6827 $as_echo "yes" >&6; }
6828
6829 $as_echo "#define HAVE_TRUNC 1" >>confdefs.h
6830
6831
6832 else
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 $as_echo "no" >&6; }
6835 fi
6836 rm -f core conftest.err conftest.$ac_objext \
6837 conftest$ac_exeext conftest.$ac_ext
6838
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/floor" >&5
6840 $as_echo_n "checking for math/floor... " >&6; }
6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h. */
6843
6844 #include <math.h>
6845 static int f (double (*func)(double)) { return 0; }
6846
6847 int
6848 main (void)
6849 {
6850
6851 return f(floor);
6852
6853 ;
6854 return 0;
6855 }
6856 _ACEOF
6857 if ac_fn_c_try_link "$LINENO"; then :
6858
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6860 $as_echo "yes" >&6; }
6861
6862 $as_echo "#define HAVE_FLOOR 1" >>confdefs.h
6863
6864
6865 else
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6868 fi
6869 rm -f core conftest.err conftest.$ac_objext \
6870 conftest$ac_exeext conftest.$ac_ext
6871
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/ceil" >&5
6873 $as_echo_n "checking for math/ceil... " >&6; }
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6876
6877 #include <math.h>
6878 static int f (double (*func)(double)) { return 0; }
6879
6880 int
6881 main (void)
6882 {
6883
6884 return f(ceil);
6885
6886 ;
6887 return 0;
6888 }
6889 _ACEOF
6890 if ac_fn_c_try_link "$LINENO"; then :
6891
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6893 $as_echo "yes" >&6; }
6894
6895 $as_echo "#define HAVE_CEIL 1" >>confdefs.h
6896
6897
6898 else
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900 $as_echo "no" >&6; }
6901 fi
6902 rm -f core conftest.err conftest.$ac_objext \
6903 conftest$ac_exeext conftest.$ac_ext
6904
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/nearbyint" >&5
6906 $as_echo_n "checking for math/nearbyint... " >&6; }
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h. */
6909
6910 #include <math.h>
6911 static int f (double (*func)(double)) { return 0; }
6912
6913 int
6914 main (void)
6915 {
6916
6917 return f(nearbyint);
6918
6919 ;
6920 return 0;
6921 }
6922 _ACEOF
6923 if ac_fn_c_try_link "$LINENO"; then :
6924
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6926 $as_echo "yes" >&6; }
6927
6928 $as_echo "#define HAVE_NEARBYINT 1" >>confdefs.h
6929
6930
6931 else
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6934 fi
6935 rm -f core conftest.err conftest.$ac_objext \
6936 conftest$ac_exeext conftest.$ac_ext
6937
6938 LIBS="$saved_LIBS"
6939
6940
6941
6942
6943 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
6944 if test "x$ac_cv_type_long_double" = xyes; then :
6945
6946 cat >>confdefs.h <<_ACEOF
6947 #define HAVE_LONG_DOUBLE 1
6948 _ACEOF
6949
6950
6951 fi
6952
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking format of \`long double' floating point" >&5
6954 $as_echo_n "checking format of \`long double' floating point... " >&6; }
6955 if ${mpfr_cv_c_long_double_format+:} false; then :
6956 $as_echo_n "(cached) " >&6
6957 else
6958 mpfr_cv_c_long_double_format=unknown
6959 if test "$ac_cv_type_long_double" != yes; then
6960 mpfr_cv_c_long_double_format="not available"
6961 else
6962 cat >conftest.c <<\EOF
6963
6964 /* "before" is 16 bytes to ensure there's no padding between it and "x".
6965 We're not expecting any "long double" bigger than 16 bytes or with
6966 alignment requirements stricter than 16 bytes. */
6967 struct {
6968 char before[16];
6969 long double x;
6970 char after[8];
6971 } foo = {
6972 { '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
6973 '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
6974 -123456789.0,
6975 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' }
6976 };
6977
6978 EOF
6979 mpfr_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
6980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mpfr_compile\""; } >&5
6981 (eval $mpfr_compile) 2>&5
6982 ac_status=$?
6983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6984 test $ac_status = 0; }; then
6985 cat >conftest.awk <<\EOF
6986
6987 BEGIN {
6988 found = 0
6989 }
6990
6991 # got[] holds a sliding window of bytes read the input. got[0] is the most
6992 # recent byte read, and got[31] the oldest byte read, so when looking to
6993 # match some data the indices are "reversed".
6994 #
6995 {
6996 for (f = 2; f <= NF; f++)
6997 {
6998 # new byte, shift others up
6999 for (i = 31; i >= 0; i--)
7000 got[i+1] = got[i];
7001 got[0] = $f;
7002
7003 # end sequence
7004 if (got[7] != "376") continue
7005 if (got[6] != "334") continue
7006 if (got[5] != "272") continue
7007 if (got[4] != "230") continue
7008 if (got[3] != "166") continue
7009 if (got[2] != "124") continue
7010 if (got[1] != "062") continue
7011 if (got[0] != "020") continue
7012
7013 # start sequence, with 8-byte body
7014 if (got[23] == "001" && \
7015 got[22] == "043" && \
7016 got[21] == "105" && \
7017 got[20] == "147" && \
7018 got[19] == "211" && \
7019 got[18] == "253" && \
7020 got[17] == "315" && \
7021 got[16] == "357")
7022 {
7023 saw = " (" got[15] \
7024 " " got[14] \
7025 " " got[13] \
7026 " " got[12] \
7027 " " got[11] \
7028 " " got[10] \
7029 " " got[9] \
7030 " " got[8] ")"
7031
7032 if (got[15] == "301" && \
7033 got[14] == "235" && \
7034 got[13] == "157" && \
7035 got[12] == "064" && \
7036 got[11] == "124" && \
7037 got[10] == "000" && \
7038 got[9] == "000" && \
7039 got[8] == "000")
7040 {
7041 print "IEEE double, big endian"
7042 found = 1
7043 exit
7044 }
7045
7046 if (got[15] == "000" && \
7047 got[14] == "000" && \
7048 got[13] == "000" && \
7049 got[12] == "124" && \
7050 got[11] == "064" && \
7051 got[10] == "157" && \
7052 got[9] == "235" && \
7053 got[8] == "301")
7054 {
7055 print "IEEE double, little endian"
7056 found = 1
7057 exit
7058 }
7059 }
7060
7061 # start sequence, with 12-byte body
7062 if (got[27] == "001" && \
7063 got[26] == "043" && \
7064 got[25] == "105" && \
7065 got[24] == "147" && \
7066 got[23] == "211" && \
7067 got[22] == "253" && \
7068 got[21] == "315" && \
7069 got[20] == "357")
7070 {
7071 saw = " (" got[19] \
7072 " " got[18] \
7073 " " got[17] \
7074 " " got[16] \
7075 " " got[15] \
7076 " " got[14] \
7077 " " got[13] \
7078 " " got[12] \
7079 " " got[11] \
7080 " " got[10] \
7081 " " got[9] \
7082 " " got[8] ")"
7083
7084 if (got[19] == "000" && \
7085 got[18] == "000" && \
7086 got[17] == "000" && \
7087 got[16] == "000" && \
7088 got[15] == "240" && \
7089 got[14] == "242" && \
7090 got[13] == "171" && \
7091 got[12] == "353" && \
7092 got[11] == "031" && \
7093 got[10] == "300")
7094 {
7095 print "IEEE extended, little endian"
7096 found = 1
7097 exit
7098 }
7099
7100 if (got[19] == "300" && \
7101 got[18] == "031" && \
7102 got[17] == "000" && \
7103 got[16] == "000" && \
7104 got[15] == "353" && \
7105 got[14] == "171" && \
7106 got[13] == "242" && \
7107 got[12] == "240" && \
7108 got[11] == "000" && \
7109 got[10] == "000" && \
7110 got[09] == "000" && \
7111 got[08] == "000")
7112 {
7113 # format found on m68k
7114 print "IEEE extended, big endian"
7115 found = 1
7116 exit
7117 }
7118 }
7119
7120 # start sequence, with 16-byte body
7121 if (got[31] == "001" && \
7122 got[30] == "043" && \
7123 got[29] == "105" && \
7124 got[28] == "147" && \
7125 got[27] == "211" && \
7126 got[26] == "253" && \
7127 got[25] == "315" && \
7128 got[24] == "357")
7129 {
7130 saw = " (" got[23] \
7131 " " got[22] \
7132 " " got[21] \
7133 " " got[20] \
7134 " " got[19] \
7135 " " got[18] \
7136 " " got[17] \
7137 " " got[16] \
7138 " " got[15] \
7139 " " got[14] \
7140 " " got[13] \
7141 " " got[12] \
7142 " " got[11] \
7143 " " got[10] \
7144 " " got[9] \
7145 " " got[8] ")"
7146
7147 if (got[23] == "000" && \
7148 got[22] == "000" && \
7149 got[21] == "000" && \
7150 got[20] == "000" && \
7151 got[19] == "240" && \
7152 got[18] == "242" && \
7153 got[17] == "171" && \
7154 got[16] == "353" && \
7155 got[15] == "031" && \
7156 got[14] == "300")
7157 {
7158 print "IEEE extended, little endian"
7159 found = 1
7160 exit
7161 }
7162
7163 if (got[23] == "300" && \
7164 got[22] == "031" && \
7165 got[21] == "326" && \
7166 got[20] == "363" && \
7167 got[19] == "105" && \
7168 got[18] == "100" && \
7169 got[17] == "000" && \
7170 got[16] == "000" && \
7171 got[15] == "000" && \
7172 got[14] == "000" && \
7173 got[13] == "000" && \
7174 got[12] == "000" && \
7175 got[11] == "000" && \
7176 got[10] == "000" && \
7177 got[9] == "000" && \
7178 got[8] == "000")
7179 {
7180 # format used on HP 9000/785 under HP-UX
7181 print "IEEE quad, big endian"
7182 found = 1
7183 exit
7184 }
7185
7186 if (got[23] == "000" && \
7187 got[22] == "000" && \
7188 got[21] == "000" && \
7189 got[20] == "000" && \
7190 got[19] == "000" && \
7191 got[18] == "000" && \
7192 got[17] == "000" && \
7193 got[16] == "000" && \
7194 got[15] == "000" && \
7195 got[14] == "000" && \
7196 got[13] == "100" && \
7197 got[12] == "105" && \
7198 got[11] == "363" && \
7199 got[10] == "326" && \
7200 got[9] == "031" && \
7201 got[8] == "300")
7202 {
7203 print "IEEE quad, little endian"
7204 found = 1
7205 exit
7206 }
7207
7208 if (got[23] == "301" && \
7209 got[22] == "235" && \
7210 got[21] == "157" && \
7211 got[20] == "064" && \
7212 got[19] == "124" && \
7213 got[18] == "000" && \
7214 got[17] == "000" && \
7215 got[16] == "000" && \
7216 got[15] == "000" && \
7217 got[14] == "000" && \
7218 got[13] == "000" && \
7219 got[12] == "000" && \
7220 got[11] == "000" && \
7221 got[10] == "000" && \
7222 got[9] == "000" && \
7223 got[8] == "000")
7224 {
7225 # format used on 32-bit PowerPC (Mac OS X and Debian GNU/Linux)
7226 print "possibly double-double, big endian"
7227 found = 1
7228 exit
7229 }
7230 }
7231 }
7232 }
7233
7234 END {
7235 if (! found)
7236 print "unknown", saw
7237 }
7238
7239 EOF
7240 mpfr_cv_c_long_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
7241 case $mpfr_cv_c_long_double_format in
7242 unknown*)
7243 echo "cannot match anything, conftest.$OBJEXT contains" >&5
7244 od -b conftest.$OBJEXT >&5
7245 ;;
7246 esac
7247 else
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
7249 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
7250 fi
7251 fi
7252 rm -f conftest*
7253
7254 fi
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_c_long_double_format" >&5
7256 $as_echo "$mpfr_cv_c_long_double_format" >&6; }
7257
7258
7259
7260 case $mpfr_cv_c_long_double_format in
7261 "IEEE extended, little endian")
7262 $as_echo "#define HAVE_LDOUBLE_IEEE_EXT_LITTLE 1" >>confdefs.h
7263
7264 ;;
7265 "IEEE quad, big endian")
7266 $as_echo "#define HAVE_LDOUBLE_IEEE_QUAD_BIG 1" >>confdefs.h
7267
7268 ;;
7269 "IEEE quad, little endian")
7270 $as_echo "#define HAVE_LDOUBLE_IEEE_QUAD_LITTLE 1" >>confdefs.h
7271
7272 ;;
7273 "possibly double-double, big endian")
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This format is known on GCC/PowerPC platforms," >&5
7275 $as_echo "$as_me: WARNING: This format is known on GCC/PowerPC platforms," >&2;}
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but due to GCC PR26374, we can't test further." >&5
7277 $as_echo "$as_me: WARNING: but due to GCC PR26374, we can't test further." >&2;}
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You can safely ignore this warning, though." >&5
7279 $as_echo "$as_me: WARNING: You can safely ignore this warning, though." >&2;}
7280 # Since we are not sure, we do not want to define a macro.
7281 ;;
7282 unknown* | "not available")
7283 ;;
7284 *)
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, unrecognised float format: $mpfr_cv_c_long_double_format" >&5
7286 $as_echo "$as_me: WARNING: oops, unrecognised float format: $mpfr_cv_c_long_double_format" >&2;}
7287 ;;
7288 esac
7289
7290
7291 if test "$enable_logging" = yes; then
7292 if test "$enable_thread_safe" = yes; then
7293 as_fn_error $? "Enable either \`Logging' or \`thread-safe', not both" "$LINENO" 5
7294 else
7295 enable_thread_safe=no
7296 fi
7297 fi
7298
7299 if test "$enable_thread_safe" != no; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support using C11" >&5
7301 $as_echo_n "checking for TLS support using C11... " >&6; }
7302 saved_CPPFLAGS="$CPPFLAGS"
7303 CPPFLAGS="$CPPFLAGS -I$srcdir/src"
7304 if test "$cross_compiling" = yes; then :
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test, assume no" >&5
7306 $as_echo "cannot test, assume no" >&6; }
7307
7308 else
7309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310 /* end confdefs.h. */
7311
7312 #define MPFR_USE_THREAD_SAFE 1
7313 #define MPFR_USE_C11_THREAD_SAFE 1
7314 #include "mpfr-thread.h"
7315 MPFR_THREAD_ATTR int x = 17;
7316 int main (void) {
7317 return x != 17;
7318 }
7319
7320 _ACEOF
7321 if ac_fn_c_try_run "$LINENO"; then :
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7323 $as_echo "yes" >&6; }
7324
7325 $as_echo "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h
7326
7327
7328 $as_echo "#define MPFR_USE_C11_THREAD_SAFE 1" >>confdefs.h
7329
7330 tls_c11_support=yes
7331
7332 else
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7335
7336 fi
7337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7338 conftest.$ac_objext conftest.beam conftest.$ac_ext
7339 fi
7340
7341 CPPFLAGS="$saved_CPPFLAGS"
7342
7343 if test "$tls_c11_support" != "yes"
7344 then
7345
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
7347 $as_echo_n "checking for TLS support... " >&6; }
7348 saved_CPPFLAGS="$CPPFLAGS"
7349 CPPFLAGS="$CPPFLAGS -I$srcdir/src"
7350 if test "$cross_compiling" = yes; then :
7351 if test "$enable_thread_safe" = yes; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test, assume yes" >&5
7353 $as_echo "cannot test, assume yes" >&6; }
7354
7355 $as_echo "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h
7356
7357 else
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test, assume no" >&5
7359 $as_echo "cannot test, assume no" >&6; }
7360 fi
7361
7362 else
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7365
7366 #define MPFR_USE_THREAD_SAFE 1
7367 #include "mpfr-thread.h"
7368 MPFR_THREAD_ATTR int x = 17;
7369 int main (void) {
7370 return x != 17;
7371 }
7372
7373 _ACEOF
7374 if ac_fn_c_try_run "$LINENO"; then :
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7376 $as_echo "yes" >&6; }
7377
7378 $as_echo "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h
7379
7380
7381 else
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7384 if test "$enable_thread_safe" = yes; then
7385 as_fn_error $? "please configure with --disable-thread-safe" "$LINENO" 5
7386 fi
7387
7388 fi
7389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7390 conftest.$ac_objext conftest.beam conftest.$ac_ext
7391 fi
7392
7393 CPPFLAGS="$saved_CPPFLAGS"
7394 fi
7395 fi
7396
7397
7398 # (Based on GMP 5.1)
7399 # clock_gettime is in librt on *-*-osf5.1 and on glibc < 2.17, so add -lrt to
7400 # TUNE_LIBS if needed (e.g. if clock_gettime is not already in the C library).
7401 # On linux (tested on x86_32, 2.6.26), clock_getres reports ns accuracy,
7402 # while in a quick test on osf, clock_getres said only 1 millisecond.
7403 old_LIBS="$LIBS"
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
7405 $as_echo_n "checking for library containing clock_gettime... " >&6; }
7406 if ${ac_cv_search_clock_gettime+:} false; then :
7407 $as_echo_n "(cached) " >&6
7408 else
7409 ac_func_search_save_LIBS=$LIBS
7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h. */
7412
7413 /* Override any GCC internal prototype to avoid an error.
7414 Use char because int might match the return type of a GCC
7415 builtin and then its argument prototype would still apply. */
7416 #ifdef __cplusplus
7417 extern "C"
7418 #endif
7419 char clock_gettime ();
7420 int
7421 main (void)
7422 {
7423 return clock_gettime ();
7424 ;
7425 return 0;
7426 }
7427 _ACEOF
7428 for ac_lib in '' rt; do
7429 if test -z "$ac_lib"; then
7430 ac_res="none required"
7431 else
7432 ac_res=-l$ac_lib
7433 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7434 fi
7435 if ac_fn_c_try_link "$LINENO"; then :
7436 ac_cv_search_clock_gettime=$ac_res
7437 fi
7438 rm -f core conftest.err conftest.$ac_objext \
7439 conftest$ac_exeext
7440 if ${ac_cv_search_clock_gettime+:} false; then :
7441 break
7442 fi
7443 done
7444 if ${ac_cv_search_clock_gettime+:} false; then :
7445
7446 else
7447 ac_cv_search_clock_gettime=no
7448 fi
7449 rm conftest.$ac_ext
7450 LIBS=$ac_func_search_save_LIBS
7451 fi
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
7453 $as_echo "$ac_cv_search_clock_gettime" >&6; }
7454 ac_res=$ac_cv_search_clock_gettime
7455 if test "$ac_res" != no; then :
7456 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7457
7458
7459 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
7460
7461 fi
7462
7463 TUNE_LIBS="$LIBS"
7464 LIBS="$old_LIBS"
7465
7466
7467
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp.h" >&5
7469 $as_echo_n "checking for gmp.h... " >&6; }
7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471 /* end confdefs.h. */
7472
7473 #include "gmp.h"
7474
7475 _ACEOF
7476 if ac_fn_c_try_compile "$LINENO"; then :
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7478 $as_echo "yes" >&6; }
7479 else
7480
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482 $as_echo "no" >&6; }
7483 as_fn_error $? "gmp.h can't be found, or is unusable." "$LINENO" 5
7484
7485 fi
7486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7487
7488
7489
7490 case `pwd` in
7491 *\ * | *\ *)
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7493 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7494 esac
7495
7496
7497
7498 macro_version='2.4.6'
7499 macro_revision='2.4.6'
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513 ltmain=$ac_aux_dir/ltmain.sh
7514
7515 # Backslashify metacharacters that are still active within
7516 # double-quoted strings.
7517 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7518
7519 # Same as above, but do not quote variable references.
7520 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7521
7522 # Sed substitution to delay expansion of an escaped shell variable in a
7523 # double_quote_subst'ed string.
7524 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7525
7526 # Sed substitution to delay expansion of an escaped single quote.
7527 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7528
7529 # Sed substitution to avoid accidental globbing in evaled expressions
7530 no_glob_subst='s/\*/\\\*/g'
7531
7532 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7533 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7534 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7535
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7537 $as_echo_n "checking how to print strings... " >&6; }
7538 # Test print first, because it will be a builtin if present.
7539 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7540 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7541 ECHO='print -r --'
7542 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7543 ECHO='printf %s\n'
7544 else
7545 # Use this function as a fallback that always works.
7546 func_fallback_echo ()
7547 {
7548 eval 'cat <<_LTECHO_EOF
7549 $1
7550 _LTECHO_EOF'
7551 }
7552 ECHO='func_fallback_echo'
7553 fi
7554
7555 # func_echo_all arg...
7556 # Invoke $ECHO with all args, space-separated.
7557 func_echo_all ()
7558 {
7559 $ECHO ""
7560 }
7561
7562 case $ECHO in
7563 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7564 $as_echo "printf" >&6; } ;;
7565 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7566 $as_echo "print -r" >&6; } ;;
7567 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7568 $as_echo "cat" >&6; } ;;
7569 esac
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7585 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7586 if ${ac_cv_path_SED+:} false; then :
7587 $as_echo_n "(cached) " >&6
7588 else
7589 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7590 for ac_i in 1 2 3 4 5 6 7; do
7591 ac_script="$ac_script$as_nl$ac_script"
7592 done
7593 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7594 { ac_script=; unset ac_script;}
7595 if test -z "$SED"; then
7596 ac_path_SED_found=false
7597 # Loop through the user's path and test for each of PROGNAME-LIST
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601 IFS=$as_save_IFS
7602 test -z "$as_dir" && as_dir=.
7603 for ac_prog in sed gsed; do
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7606 as_fn_executable_p "$ac_path_SED" || continue
7607 # Check for GNU ac_path_SED and select it if it is found.
7608 # Check for GNU $ac_path_SED
7609 case `"$ac_path_SED" --version 2>&1` in
7610 *GNU*)
7611 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7612 *)
7613 ac_count=0
7614 $as_echo_n 0123456789 >"conftest.in"
7615 while :
7616 do
7617 cat "conftest.in" "conftest.in" >"conftest.tmp"
7618 mv "conftest.tmp" "conftest.in"
7619 cp "conftest.in" "conftest.nl"
7620 $as_echo '' >> "conftest.nl"
7621 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7622 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7623 as_fn_arith $ac_count + 1 && ac_count=$as_val
7624 if test $ac_count -gt ${ac_path_SED_max-0}; then
7625 # Best one so far, save it but keep looking for a better one
7626 ac_cv_path_SED="$ac_path_SED"
7627 ac_path_SED_max=$ac_count
7628 fi
7629 # 10*(2^10) chars as input seems more than enough
7630 test $ac_count -gt 10 && break
7631 done
7632 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7633 esac
7634
7635 $ac_path_SED_found && break 3
7636 done
7637 done
7638 done
7639 IFS=$as_save_IFS
7640 if test -z "$ac_cv_path_SED"; then
7641 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7642 fi
7643 else
7644 ac_cv_path_SED=$SED
7645 fi
7646
7647 fi
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7649 $as_echo "$ac_cv_path_SED" >&6; }
7650 SED="$ac_cv_path_SED"
7651 rm -f conftest.sed
7652
7653 test -z "$SED" && SED=sed
7654 Xsed="$SED -e 1s/^X//"
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7667 $as_echo_n "checking for fgrep... " >&6; }
7668 if ${ac_cv_path_FGREP+:} false; then :
7669 $as_echo_n "(cached) " >&6
7670 else
7671 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7672 then ac_cv_path_FGREP="$GREP -F"
7673 else
7674 if test -z "$FGREP"; then
7675 ac_path_FGREP_found=false
7676 # Loop through the user's path and test for each of PROGNAME-LIST
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7679 do
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
7682 for ac_prog in fgrep; do
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7685 as_fn_executable_p "$ac_path_FGREP" || continue
7686 # Check for GNU ac_path_FGREP and select it if it is found.
7687 # Check for GNU $ac_path_FGREP
7688 case `"$ac_path_FGREP" --version 2>&1` in
7689 *GNU*)
7690 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7691 *)
7692 ac_count=0
7693 $as_echo_n 0123456789 >"conftest.in"
7694 while :
7695 do
7696 cat "conftest.in" "conftest.in" >"conftest.tmp"
7697 mv "conftest.tmp" "conftest.in"
7698 cp "conftest.in" "conftest.nl"
7699 $as_echo 'FGREP' >> "conftest.nl"
7700 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7701 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7702 as_fn_arith $ac_count + 1 && ac_count=$as_val
7703 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7704 # Best one so far, save it but keep looking for a better one
7705 ac_cv_path_FGREP="$ac_path_FGREP"
7706 ac_path_FGREP_max=$ac_count
7707 fi
7708 # 10*(2^10) chars as input seems more than enough
7709 test $ac_count -gt 10 && break
7710 done
7711 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7712 esac
7713
7714 $ac_path_FGREP_found && break 3
7715 done
7716 done
7717 done
7718 IFS=$as_save_IFS
7719 if test -z "$ac_cv_path_FGREP"; then
7720 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7721 fi
7722 else
7723 ac_cv_path_FGREP=$FGREP
7724 fi
7725
7726 fi
7727 fi
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7729 $as_echo "$ac_cv_path_FGREP" >&6; }
7730 FGREP="$ac_cv_path_FGREP"
7731
7732
7733 test -z "$GREP" && GREP=grep
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753 # Check whether --with-gnu-ld was given.
7754 if test "${with_gnu_ld+set}" = set; then :
7755 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7756 else
7757 with_gnu_ld=no
7758 fi
7759
7760 ac_prog=ld
7761 if test yes = "$GCC"; then
7762 # Check if gcc -print-prog-name=ld gives a path.
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7764 $as_echo_n "checking for ld used by $CC... " >&6; }
7765 case $host in
7766 *-*-mingw*)
7767 # gcc leaves a trailing carriage return, which upsets mingw
7768 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7769 *)
7770 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7771 esac
7772 case $ac_prog in
7773 # Accept absolute paths.
7774 [\\/]* | ?:[\\/]*)
7775 re_direlt='/[^/][^/]*/\.\./'
7776 # Canonicalize the pathname of ld
7777 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7778 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7779 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7780 done
7781 test -z "$LD" && LD=$ac_prog
7782 ;;
7783 "")
7784 # If it fails, then pretend we aren't using GCC.
7785 ac_prog=ld
7786 ;;
7787 *)
7788 # If it is relative, then search for the first ld in PATH.
7789 with_gnu_ld=unknown
7790 ;;
7791 esac
7792 elif test yes = "$with_gnu_ld"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7794 $as_echo_n "checking for GNU ld... " >&6; }
7795 else
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7797 $as_echo_n "checking for non-GNU ld... " >&6; }
7798 fi
7799 if ${lt_cv_path_LD+:} false; then :
7800 $as_echo_n "(cached) " >&6
7801 else
7802 if test -z "$LD"; then
7803 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7804 for ac_dir in $PATH; do
7805 IFS=$lt_save_ifs
7806 test -z "$ac_dir" && ac_dir=.
7807 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7808 lt_cv_path_LD=$ac_dir/$ac_prog
7809 # Check to see if the program is GNU ld. I'd rather use --version,
7810 # but apparently some variants of GNU ld only accept -v.
7811 # Break only if it was the GNU/non-GNU ld that we prefer.
7812 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7813 *GNU* | *'with BFD'*)
7814 test no != "$with_gnu_ld" && break
7815 ;;
7816 *)
7817 test yes != "$with_gnu_ld" && break
7818 ;;
7819 esac
7820 fi
7821 done
7822 IFS=$lt_save_ifs
7823 else
7824 lt_cv_path_LD=$LD # Let the user override the test with a path.
7825 fi
7826 fi
7827
7828 LD=$lt_cv_path_LD
7829 if test -n "$LD"; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7831 $as_echo "$LD" >&6; }
7832 else
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834 $as_echo "no" >&6; }
7835 fi
7836 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7838 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7839 if ${lt_cv_prog_gnu_ld+:} false; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7843 case `$LD -v 2>&1 </dev/null` in
7844 *GNU* | *'with BFD'*)
7845 lt_cv_prog_gnu_ld=yes
7846 ;;
7847 *)
7848 lt_cv_prog_gnu_ld=no
7849 ;;
7850 esac
7851 fi
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7853 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7854 with_gnu_ld=$lt_cv_prog_gnu_ld
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7865 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7866 if ${lt_cv_path_NM+:} false; then :
7867 $as_echo_n "(cached) " >&6
7868 else
7869 if test -n "$NM"; then
7870 # Let the user override the test.
7871 lt_cv_path_NM=$NM
7872 else
7873 lt_nm_to_check=${ac_tool_prefix}nm
7874 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7875 lt_nm_to_check="$lt_nm_to_check nm"
7876 fi
7877 for lt_tmp_nm in $lt_nm_to_check; do
7878 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7879 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7880 IFS=$lt_save_ifs
7881 test -z "$ac_dir" && ac_dir=.
7882 tmp_nm=$ac_dir/$lt_tmp_nm
7883 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7884 # Check to see if the nm accepts a BSD-compat flag.
7885 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7886 # nm: unknown option "B" ignored
7887 # Tru64's nm complains that /dev/null is an invalid object file
7888 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7889 case $build_os in
7890 mingw*) lt_bad_file=conftest.nm/nofile ;;
7891 *) lt_bad_file=/dev/null ;;
7892 esac
7893 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7894 *$lt_bad_file* | *'Invalid file or object type'*)
7895 lt_cv_path_NM="$tmp_nm -B"
7896 break 2
7897 ;;
7898 *)
7899 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7900 */dev/null*)
7901 lt_cv_path_NM="$tmp_nm -p"
7902 break 2
7903 ;;
7904 *)
7905 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7906 continue # so that we can try to find one that supports BSD flags
7907 ;;
7908 esac
7909 ;;
7910 esac
7911 fi
7912 done
7913 IFS=$lt_save_ifs
7914 done
7915 : ${lt_cv_path_NM=no}
7916 fi
7917 fi
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7919 $as_echo "$lt_cv_path_NM" >&6; }
7920 if test no != "$lt_cv_path_NM"; then
7921 NM=$lt_cv_path_NM
7922 else
7923 # Didn't find any BSD compatible name lister, look for dumpbin.
7924 if test -n "$DUMPBIN"; then :
7925 # Let the user override the test.
7926 else
7927 if test -n "$ac_tool_prefix"; then
7928 for ac_prog in dumpbin "link -dump"
7929 do
7930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7931 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933 $as_echo_n "checking for $ac_word... " >&6; }
7934 if ${ac_cv_prog_DUMPBIN+:} false; then :
7935 $as_echo_n "(cached) " >&6
7936 else
7937 if test -n "$DUMPBIN"; then
7938 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7939 else
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 for as_dir in $PATH
7942 do
7943 IFS=$as_save_IFS
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
7946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7947 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 break 2
7950 fi
7951 done
7952 done
7953 IFS=$as_save_IFS
7954
7955 fi
7956 fi
7957 DUMPBIN=$ac_cv_prog_DUMPBIN
7958 if test -n "$DUMPBIN"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7960 $as_echo "$DUMPBIN" >&6; }
7961 else
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963 $as_echo "no" >&6; }
7964 fi
7965
7966
7967 test -n "$DUMPBIN" && break
7968 done
7969 fi
7970 if test -z "$DUMPBIN"; then
7971 ac_ct_DUMPBIN=$DUMPBIN
7972 for ac_prog in dumpbin "link -dump"
7973 do
7974 # Extract the first word of "$ac_prog", so it can be a program name with args.
7975 set dummy $ac_prog; ac_word=$2
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977 $as_echo_n "checking for $ac_word... " >&6; }
7978 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7979 $as_echo_n "(cached) " >&6
7980 else
7981 if test -n "$ac_ct_DUMPBIN"; then
7982 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7983 else
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 for as_dir in $PATH
7986 do
7987 IFS=$as_save_IFS
7988 test -z "$as_dir" && as_dir=.
7989 for ac_exec_ext in '' $ac_executable_extensions; do
7990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7991 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7993 break 2
7994 fi
7995 done
7996 done
7997 IFS=$as_save_IFS
7998
7999 fi
8000 fi
8001 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8002 if test -n "$ac_ct_DUMPBIN"; then
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8004 $as_echo "$ac_ct_DUMPBIN" >&6; }
8005 else
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007 $as_echo "no" >&6; }
8008 fi
8009
8010
8011 test -n "$ac_ct_DUMPBIN" && break
8012 done
8013
8014 if test "x$ac_ct_DUMPBIN" = x; then
8015 DUMPBIN=":"
8016 else
8017 case $cross_compiling:$ac_tool_warned in
8018 yes:)
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8021 ac_tool_warned=yes ;;
8022 esac
8023 DUMPBIN=$ac_ct_DUMPBIN
8024 fi
8025 fi
8026
8027 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8028 *COFF*)
8029 DUMPBIN="$DUMPBIN -symbols -headers"
8030 ;;
8031 *)
8032 DUMPBIN=:
8033 ;;
8034 esac
8035 fi
8036
8037 if test : != "$DUMPBIN"; then
8038 NM=$DUMPBIN
8039 fi
8040 fi
8041 test -z "$NM" && NM=nm
8042
8043
8044
8045
8046
8047
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8049 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8050 if ${lt_cv_nm_interface+:} false; then :
8051 $as_echo_n "(cached) " >&6
8052 else
8053 lt_cv_nm_interface="BSD nm"
8054 echo "int some_variable = 0;" > conftest.$ac_ext
8055 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8056 (eval "$ac_compile" 2>conftest.err)
8057 cat conftest.err >&5
8058 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8059 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8060 cat conftest.err >&5
8061 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8062 cat conftest.out >&5
8063 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8064 lt_cv_nm_interface="MS dumpbin"
8065 fi
8066 rm -f conftest*
8067 fi
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8069 $as_echo "$lt_cv_nm_interface" >&6; }
8070
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8072 $as_echo_n "checking whether ln -s works... " >&6; }
8073 LN_S=$as_ln_s
8074 if test "$LN_S" = "ln -s"; then
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8076 $as_echo "yes" >&6; }
8077 else
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8079 $as_echo "no, using $LN_S" >&6; }
8080 fi
8081
8082 # find the maximum length of command line arguments
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8084 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8085 if ${lt_cv_sys_max_cmd_len+:} false; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 i=0
8089 teststring=ABCD
8090
8091 case $build_os in
8092 msdosdjgpp*)
8093 # On DJGPP, this test can blow up pretty badly due to problems in libc
8094 # (any single argument exceeding 2000 bytes causes a buffer overrun
8095 # during glob expansion). Even if it were fixed, the result of this
8096 # check would be larger than it should be.
8097 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8098 ;;
8099
8100 gnu*)
8101 # Under GNU Hurd, this test is not required because there is
8102 # no limit to the length of command line arguments.
8103 # Libtool will interpret -1 as no limit whatsoever
8104 lt_cv_sys_max_cmd_len=-1;
8105 ;;
8106
8107 cygwin* | mingw* | cegcc*)
8108 # On Win9x/ME, this test blows up -- it succeeds, but takes
8109 # about 5 minutes as the teststring grows exponentially.
8110 # Worse, since 9x/ME are not pre-emptively multitasking,
8111 # you end up with a "frozen" computer, even though with patience
8112 # the test eventually succeeds (with a max line length of 256k).
8113 # Instead, let's just punt: use the minimum linelength reported by
8114 # all of the supported platforms: 8192 (on NT/2K/XP).
8115 lt_cv_sys_max_cmd_len=8192;
8116 ;;
8117
8118 mint*)
8119 # On MiNT this can take a long time and run out of memory.
8120 lt_cv_sys_max_cmd_len=8192;
8121 ;;
8122
8123 amigaos*)
8124 # On AmigaOS with pdksh, this test takes hours, literally.
8125 # So we just punt and use a minimum line length of 8192.
8126 lt_cv_sys_max_cmd_len=8192;
8127 ;;
8128
8129 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8130 # This has been around since 386BSD, at least. Likely further.
8131 if test -x /sbin/sysctl; then
8132 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8133 elif test -x /usr/sbin/sysctl; then
8134 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8135 else
8136 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8137 fi
8138 # And add a safety zone
8139 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8140 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8141 ;;
8142
8143 interix*)
8144 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8145 lt_cv_sys_max_cmd_len=196608
8146 ;;
8147
8148 os2*)
8149 # The test takes a long time on OS/2.
8150 lt_cv_sys_max_cmd_len=8192
8151 ;;
8152
8153 osf*)
8154 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8155 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8156 # nice to cause kernel panics so lets avoid the loop below.
8157 # First set a reasonable default.
8158 lt_cv_sys_max_cmd_len=16384
8159 #
8160 if test -x /sbin/sysconfig; then
8161 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8162 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8163 esac
8164 fi
8165 ;;
8166 sco3.2v5*)
8167 lt_cv_sys_max_cmd_len=102400
8168 ;;
8169 sysv5* | sco5v6* | sysv4.2uw2*)
8170 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8171 if test -n "$kargmax"; then
8172 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8173 else
8174 lt_cv_sys_max_cmd_len=32768
8175 fi
8176 ;;
8177 *)
8178 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8179 if test -n "$lt_cv_sys_max_cmd_len" && \
8180 test undefined != "$lt_cv_sys_max_cmd_len"; then
8181 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8182 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8183 else
8184 # Make teststring a little bigger before we do anything with it.
8185 # a 1K string should be a reasonable start.
8186 for i in 1 2 3 4 5 6 7 8; do
8187 teststring=$teststring$teststring
8188 done
8189 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8190 # If test is not a shell built-in, we'll probably end up computing a
8191 # maximum length that is only half of the actual maximum length, but
8192 # we can't tell.
8193 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8194 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8195 test 17 != "$i" # 1/2 MB should be enough
8196 do
8197 i=`expr $i + 1`
8198 teststring=$teststring$teststring
8199 done
8200 # Only check the string length outside the loop.
8201 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8202 teststring=
8203 # Add a significant safety factor because C++ compilers can tack on
8204 # massive amounts of additional arguments before passing them to the
8205 # linker. It appears as though 1/2 is a usable value.
8206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8207 fi
8208 ;;
8209 esac
8210
8211 fi
8212
8213 if test -n "$lt_cv_sys_max_cmd_len"; then
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8215 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8216 else
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8218 $as_echo "none" >&6; }
8219 fi
8220 max_cmd_len=$lt_cv_sys_max_cmd_len
8221
8222
8223
8224
8225
8226
8227 : ${CP="cp -f"}
8228 : ${MV="mv -f"}
8229 : ${RM="rm -f"}
8230
8231 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8232 lt_unset=unset
8233 else
8234 lt_unset=false
8235 fi
8236
8237
8238
8239
8240
8241 # test EBCDIC or ASCII
8242 case `echo X|tr X '\101'` in
8243 A) # ASCII based system
8244 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8245 lt_SP2NL='tr \040 \012'
8246 lt_NL2SP='tr \015\012 \040\040'
8247 ;;
8248 *) # EBCDIC based system
8249 lt_SP2NL='tr \100 \n'
8250 lt_NL2SP='tr \r\n \100\100'
8251 ;;
8252 esac
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8263 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8264 if ${lt_cv_to_host_file_cmd+:} false; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8267 case $host in
8268 *-*-mingw* )
8269 case $build in
8270 *-*-mingw* ) # actually msys
8271 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8272 ;;
8273 *-*-cygwin* )
8274 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8275 ;;
8276 * ) # otherwise, assume *nix
8277 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8278 ;;
8279 esac
8280 ;;
8281 *-*-cygwin* )
8282 case $build in
8283 *-*-mingw* ) # actually msys
8284 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8285 ;;
8286 *-*-cygwin* )
8287 lt_cv_to_host_file_cmd=func_convert_file_noop
8288 ;;
8289 * ) # otherwise, assume *nix
8290 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8291 ;;
8292 esac
8293 ;;
8294 * ) # unhandled hosts (and "normal" native builds)
8295 lt_cv_to_host_file_cmd=func_convert_file_noop
8296 ;;
8297 esac
8298
8299 fi
8300
8301 to_host_file_cmd=$lt_cv_to_host_file_cmd
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8303 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8304
8305
8306
8307
8308
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8310 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8311 if ${lt_cv_to_tool_file_cmd+:} false; then :
8312 $as_echo_n "(cached) " >&6
8313 else
8314 #assume ordinary cross tools, or native build.
8315 lt_cv_to_tool_file_cmd=func_convert_file_noop
8316 case $host in
8317 *-*-mingw* )
8318 case $build in
8319 *-*-mingw* ) # actually msys
8320 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8321 ;;
8322 esac
8323 ;;
8324 esac
8325
8326 fi
8327
8328 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8330 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8331
8332
8333
8334
8335
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8337 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8338 if ${lt_cv_ld_reload_flag+:} false; then :
8339 $as_echo_n "(cached) " >&6
8340 else
8341 lt_cv_ld_reload_flag='-r'
8342 fi
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8344 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8345 reload_flag=$lt_cv_ld_reload_flag
8346 case $reload_flag in
8347 "" | " "*) ;;
8348 *) reload_flag=" $reload_flag" ;;
8349 esac
8350 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8351 case $host_os in
8352 cygwin* | mingw* | pw32* | cegcc*)
8353 if test yes != "$GCC"; then
8354 reload_cmds=false
8355 fi
8356 ;;
8357 darwin*)
8358 if test yes = "$GCC"; then
8359 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8360 else
8361 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8362 fi
8363 ;;
8364 esac
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374 if test -n "$ac_tool_prefix"; then
8375 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8376 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8378 $as_echo_n "checking for $ac_word... " >&6; }
8379 if ${ac_cv_prog_OBJDUMP+:} false; then :
8380 $as_echo_n "(cached) " >&6
8381 else
8382 if test -n "$OBJDUMP"; then
8383 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8384 else
8385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386 for as_dir in $PATH
8387 do
8388 IFS=$as_save_IFS
8389 test -z "$as_dir" && as_dir=.
8390 for ac_exec_ext in '' $ac_executable_extensions; do
8391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8392 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8394 break 2
8395 fi
8396 done
8397 done
8398 IFS=$as_save_IFS
8399
8400 fi
8401 fi
8402 OBJDUMP=$ac_cv_prog_OBJDUMP
8403 if test -n "$OBJDUMP"; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8405 $as_echo "$OBJDUMP" >&6; }
8406 else
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8408 $as_echo "no" >&6; }
8409 fi
8410
8411
8412 fi
8413 if test -z "$ac_cv_prog_OBJDUMP"; then
8414 ac_ct_OBJDUMP=$OBJDUMP
8415 # Extract the first word of "objdump", so it can be a program name with args.
8416 set dummy objdump; ac_word=$2
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8418 $as_echo_n "checking for $ac_word... " >&6; }
8419 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8420 $as_echo_n "(cached) " >&6
8421 else
8422 if test -n "$ac_ct_OBJDUMP"; then
8423 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8424 else
8425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426 for as_dir in $PATH
8427 do
8428 IFS=$as_save_IFS
8429 test -z "$as_dir" && as_dir=.
8430 for ac_exec_ext in '' $ac_executable_extensions; do
8431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8432 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8434 break 2
8435 fi
8436 done
8437 done
8438 IFS=$as_save_IFS
8439
8440 fi
8441 fi
8442 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8443 if test -n "$ac_ct_OBJDUMP"; then
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8445 $as_echo "$ac_ct_OBJDUMP" >&6; }
8446 else
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8448 $as_echo "no" >&6; }
8449 fi
8450
8451 if test "x$ac_ct_OBJDUMP" = x; then
8452 OBJDUMP="false"
8453 else
8454 case $cross_compiling:$ac_tool_warned in
8455 yes:)
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8458 ac_tool_warned=yes ;;
8459 esac
8460 OBJDUMP=$ac_ct_OBJDUMP
8461 fi
8462 else
8463 OBJDUMP="$ac_cv_prog_OBJDUMP"
8464 fi
8465
8466 test -z "$OBJDUMP" && OBJDUMP=objdump
8467
8468
8469
8470
8471
8472
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8474 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8475 if ${lt_cv_deplibs_check_method+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 lt_cv_file_magic_cmd='$MAGIC_CMD'
8479 lt_cv_file_magic_test_file=
8480 lt_cv_deplibs_check_method='unknown'
8481 # Need to set the preceding variable on all platforms that support
8482 # interlibrary dependencies.
8483 # 'none' -- dependencies not supported.
8484 # 'unknown' -- same as none, but documents that we really don't know.
8485 # 'pass_all' -- all dependencies passed with no checks.
8486 # 'test_compile' -- check by making test program.
8487 # 'file_magic [[regex]]' -- check by looking for files in library path
8488 # that responds to the $file_magic_cmd with a given extended regex.
8489 # If you have 'file' or equivalent on your system and you're not sure
8490 # whether 'pass_all' will *always* work, you probably want this one.
8491
8492 case $host_os in
8493 aix[4-9]*)
8494 lt_cv_deplibs_check_method=pass_all
8495 ;;
8496
8497 beos*)
8498 lt_cv_deplibs_check_method=pass_all
8499 ;;
8500
8501 bsdi[45]*)
8502 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8503 lt_cv_file_magic_cmd='/usr/bin/file -L'
8504 lt_cv_file_magic_test_file=/shlib/libc.so
8505 ;;
8506
8507 cygwin*)
8508 # func_win32_libid is a shell function defined in ltmain.sh
8509 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8510 lt_cv_file_magic_cmd='func_win32_libid'
8511 ;;
8512
8513 mingw* | pw32*)
8514 # Base MSYS/MinGW do not provide the 'file' command needed by
8515 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8516 # unless we find 'file', for example because we are cross-compiling.
8517 if ( file / ) >/dev/null 2>&1; then
8518 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8519 lt_cv_file_magic_cmd='func_win32_libid'
8520 else
8521 # Keep this pattern in sync with the one in func_win32_libid.
8522 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8523 lt_cv_file_magic_cmd='$OBJDUMP -f'
8524 fi
8525 ;;
8526
8527 cegcc*)
8528 # use the weaker test based on 'objdump'. See mingw*.
8529 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8530 lt_cv_file_magic_cmd='$OBJDUMP -f'
8531 ;;
8532
8533 darwin* | rhapsody*)
8534 lt_cv_deplibs_check_method=pass_all
8535 ;;
8536
8537 freebsd* | dragonfly*)
8538 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8539 case $host_cpu in
8540 i*86 )
8541 # Not sure whether the presence of OpenBSD here was a mistake.
8542 # Let's accept both of them until this is cleared up.
8543 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8544 lt_cv_file_magic_cmd=/usr/bin/file
8545 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8546 ;;
8547 esac
8548 else
8549 lt_cv_deplibs_check_method=pass_all
8550 fi
8551 ;;
8552
8553 haiku*)
8554 lt_cv_deplibs_check_method=pass_all
8555 ;;
8556
8557 hpux10.20* | hpux11*)
8558 lt_cv_file_magic_cmd=/usr/bin/file
8559 case $host_cpu in
8560 ia64*)
8561 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8562 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8563 ;;
8564 hppa*64*)
8565 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]'
8566 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8567 ;;
8568 *)
8569 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8570 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8571 ;;
8572 esac
8573 ;;
8574
8575 interix[3-9]*)
8576 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8578 ;;
8579
8580 irix5* | irix6* | nonstopux*)
8581 case $LD in
8582 *-32|*"-32 ") libmagic=32-bit;;
8583 *-n32|*"-n32 ") libmagic=N32;;
8584 *-64|*"-64 ") libmagic=64-bit;;
8585 *) libmagic=never-match;;
8586 esac
8587 lt_cv_deplibs_check_method=pass_all
8588 ;;
8589
8590 # This must be glibc/ELF.
8591 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8592 lt_cv_deplibs_check_method=pass_all
8593 ;;
8594
8595 netbsd* | netbsdelf*-gnu)
8596 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8598 else
8599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8600 fi
8601 ;;
8602
8603 newos6*)
8604 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8605 lt_cv_file_magic_cmd=/usr/bin/file
8606 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8607 ;;
8608
8609 *nto* | *qnx*)
8610 lt_cv_deplibs_check_method=pass_all
8611 ;;
8612
8613 openbsd* | bitrig*)
8614 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8616 else
8617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8618 fi
8619 ;;
8620
8621 osf3* | osf4* | osf5*)
8622 lt_cv_deplibs_check_method=pass_all
8623 ;;
8624
8625 rdos*)
8626 lt_cv_deplibs_check_method=pass_all
8627 ;;
8628
8629 solaris*)
8630 lt_cv_deplibs_check_method=pass_all
8631 ;;
8632
8633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8634 lt_cv_deplibs_check_method=pass_all
8635 ;;
8636
8637 sysv4 | sysv4.3*)
8638 case $host_vendor in
8639 motorola)
8640 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]'
8641 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8642 ;;
8643 ncr)
8644 lt_cv_deplibs_check_method=pass_all
8645 ;;
8646 sequent)
8647 lt_cv_file_magic_cmd='/bin/file'
8648 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8649 ;;
8650 sni)
8651 lt_cv_file_magic_cmd='/bin/file'
8652 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8653 lt_cv_file_magic_test_file=/lib/libc.so
8654 ;;
8655 siemens)
8656 lt_cv_deplibs_check_method=pass_all
8657 ;;
8658 pc)
8659 lt_cv_deplibs_check_method=pass_all
8660 ;;
8661 esac
8662 ;;
8663
8664 tpf*)
8665 lt_cv_deplibs_check_method=pass_all
8666 ;;
8667 os2*)
8668 lt_cv_deplibs_check_method=pass_all
8669 ;;
8670 esac
8671
8672 fi
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8674 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8675
8676 file_magic_glob=
8677 want_nocaseglob=no
8678 if test "$build" = "$host"; then
8679 case $host_os in
8680 mingw* | pw32*)
8681 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8682 want_nocaseglob=yes
8683 else
8684 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8685 fi
8686 ;;
8687 esac
8688 fi
8689
8690 file_magic_cmd=$lt_cv_file_magic_cmd
8691 deplibs_check_method=$lt_cv_deplibs_check_method
8692 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715 if test -n "$ac_tool_prefix"; then
8716 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8717 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719 $as_echo_n "checking for $ac_word... " >&6; }
8720 if ${ac_cv_prog_DLLTOOL+:} false; then :
8721 $as_echo_n "(cached) " >&6
8722 else
8723 if test -n "$DLLTOOL"; then
8724 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8725 else
8726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8727 for as_dir in $PATH
8728 do
8729 IFS=$as_save_IFS
8730 test -z "$as_dir" && as_dir=.
8731 for ac_exec_ext in '' $ac_executable_extensions; do
8732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8733 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8735 break 2
8736 fi
8737 done
8738 done
8739 IFS=$as_save_IFS
8740
8741 fi
8742 fi
8743 DLLTOOL=$ac_cv_prog_DLLTOOL
8744 if test -n "$DLLTOOL"; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8746 $as_echo "$DLLTOOL" >&6; }
8747 else
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749 $as_echo "no" >&6; }
8750 fi
8751
8752
8753 fi
8754 if test -z "$ac_cv_prog_DLLTOOL"; then
8755 ac_ct_DLLTOOL=$DLLTOOL
8756 # Extract the first word of "dlltool", so it can be a program name with args.
8757 set dummy dlltool; ac_word=$2
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8759 $as_echo_n "checking for $ac_word... " >&6; }
8760 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8761 $as_echo_n "(cached) " >&6
8762 else
8763 if test -n "$ac_ct_DLLTOOL"; then
8764 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8765 else
8766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8767 for as_dir in $PATH
8768 do
8769 IFS=$as_save_IFS
8770 test -z "$as_dir" && as_dir=.
8771 for ac_exec_ext in '' $ac_executable_extensions; do
8772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8773 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8775 break 2
8776 fi
8777 done
8778 done
8779 IFS=$as_save_IFS
8780
8781 fi
8782 fi
8783 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8784 if test -n "$ac_ct_DLLTOOL"; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8786 $as_echo "$ac_ct_DLLTOOL" >&6; }
8787 else
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789 $as_echo "no" >&6; }
8790 fi
8791
8792 if test "x$ac_ct_DLLTOOL" = x; then
8793 DLLTOOL="false"
8794 else
8795 case $cross_compiling:$ac_tool_warned in
8796 yes:)
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8799 ac_tool_warned=yes ;;
8800 esac
8801 DLLTOOL=$ac_ct_DLLTOOL
8802 fi
8803 else
8804 DLLTOOL="$ac_cv_prog_DLLTOOL"
8805 fi
8806
8807 test -z "$DLLTOOL" && DLLTOOL=dlltool
8808
8809
8810
8811
8812
8813
8814
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8816 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8817 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8818 $as_echo_n "(cached) " >&6
8819 else
8820 lt_cv_sharedlib_from_linklib_cmd='unknown'
8821
8822 case $host_os in
8823 cygwin* | mingw* | pw32* | cegcc*)
8824 # two different shell functions defined in ltmain.sh;
8825 # decide which one to use based on capabilities of $DLLTOOL
8826 case `$DLLTOOL --help 2>&1` in
8827 *--identify-strict*)
8828 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8829 ;;
8830 *)
8831 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8832 ;;
8833 esac
8834 ;;
8835 *)
8836 # fallback: assume linklib IS sharedlib
8837 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8838 ;;
8839 esac
8840
8841 fi
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8843 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8844 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8845 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8846
8847
8848
8849
8850
8851
8852
8853 if test -n "$ac_tool_prefix"; then
8854 for ac_prog in ar
8855 do
8856 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8857 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8859 $as_echo_n "checking for $ac_word... " >&6; }
8860 if ${ac_cv_prog_AR+:} false; then :
8861 $as_echo_n "(cached) " >&6
8862 else
8863 if test -n "$AR"; then
8864 ac_cv_prog_AR="$AR" # Let the user override the test.
8865 else
8866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8867 for as_dir in $PATH
8868 do
8869 IFS=$as_save_IFS
8870 test -z "$as_dir" && as_dir=.
8871 for ac_exec_ext in '' $ac_executable_extensions; do
8872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8873 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8875 break 2
8876 fi
8877 done
8878 done
8879 IFS=$as_save_IFS
8880
8881 fi
8882 fi
8883 AR=$ac_cv_prog_AR
8884 if test -n "$AR"; then
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8886 $as_echo "$AR" >&6; }
8887 else
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889 $as_echo "no" >&6; }
8890 fi
8891
8892
8893 test -n "$AR" && break
8894 done
8895 fi
8896 if test -z "$AR"; then
8897 ac_ct_AR=$AR
8898 for ac_prog in ar
8899 do
8900 # Extract the first word of "$ac_prog", so it can be a program name with args.
8901 set dummy $ac_prog; ac_word=$2
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903 $as_echo_n "checking for $ac_word... " >&6; }
8904 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8905 $as_echo_n "(cached) " >&6
8906 else
8907 if test -n "$ac_ct_AR"; then
8908 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8909 else
8910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8911 for as_dir in $PATH
8912 do
8913 IFS=$as_save_IFS
8914 test -z "$as_dir" && as_dir=.
8915 for ac_exec_ext in '' $ac_executable_extensions; do
8916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8917 ac_cv_prog_ac_ct_AR="$ac_prog"
8918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8919 break 2
8920 fi
8921 done
8922 done
8923 IFS=$as_save_IFS
8924
8925 fi
8926 fi
8927 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8928 if test -n "$ac_ct_AR"; then
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8930 $as_echo "$ac_ct_AR" >&6; }
8931 else
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933 $as_echo "no" >&6; }
8934 fi
8935
8936
8937 test -n "$ac_ct_AR" && break
8938 done
8939
8940 if test "x$ac_ct_AR" = x; then
8941 AR="false"
8942 else
8943 case $cross_compiling:$ac_tool_warned in
8944 yes:)
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8947 ac_tool_warned=yes ;;
8948 esac
8949 AR=$ac_ct_AR
8950 fi
8951 fi
8952
8953 : ${AR=ar}
8954 : ${AR_FLAGS=cru}
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8967 $as_echo_n "checking for archiver @FILE support... " >&6; }
8968 if ${lt_cv_ar_at_file+:} false; then :
8969 $as_echo_n "(cached) " >&6
8970 else
8971 lt_cv_ar_at_file=no
8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973 /* end confdefs.h. */
8974
8975 int
8976 main (void)
8977 {
8978
8979 ;
8980 return 0;
8981 }
8982 _ACEOF
8983 if ac_fn_c_try_compile "$LINENO"; then :
8984 echo conftest.$ac_objext > conftest.lst
8985 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8987 (eval $lt_ar_try) 2>&5
8988 ac_status=$?
8989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8990 test $ac_status = 0; }
8991 if test 0 -eq "$ac_status"; then
8992 # Ensure the archiver fails upon bogus file names.
8993 rm -f conftest.$ac_objext libconftest.a
8994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8995 (eval $lt_ar_try) 2>&5
8996 ac_status=$?
8997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8998 test $ac_status = 0; }
8999 if test 0 -ne "$ac_status"; then
9000 lt_cv_ar_at_file=@
9001 fi
9002 fi
9003 rm -f conftest.* libconftest.a
9004
9005 fi
9006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9007
9008 fi
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9010 $as_echo "$lt_cv_ar_at_file" >&6; }
9011
9012 if test no = "$lt_cv_ar_at_file"; then
9013 archiver_list_spec=
9014 else
9015 archiver_list_spec=$lt_cv_ar_at_file
9016 fi
9017
9018
9019
9020
9021
9022
9023
9024 if test -n "$ac_tool_prefix"; then
9025 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9026 set dummy ${ac_tool_prefix}strip; ac_word=$2
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9028 $as_echo_n "checking for $ac_word... " >&6; }
9029 if ${ac_cv_prog_STRIP+:} false; then :
9030 $as_echo_n "(cached) " >&6
9031 else
9032 if test -n "$STRIP"; then
9033 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9034 else
9035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9036 for as_dir in $PATH
9037 do
9038 IFS=$as_save_IFS
9039 test -z "$as_dir" && as_dir=.
9040 for ac_exec_ext in '' $ac_executable_extensions; do
9041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9042 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9044 break 2
9045 fi
9046 done
9047 done
9048 IFS=$as_save_IFS
9049
9050 fi
9051 fi
9052 STRIP=$ac_cv_prog_STRIP
9053 if test -n "$STRIP"; then
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9055 $as_echo "$STRIP" >&6; }
9056 else
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9058 $as_echo "no" >&6; }
9059 fi
9060
9061
9062 fi
9063 if test -z "$ac_cv_prog_STRIP"; then
9064 ac_ct_STRIP=$STRIP
9065 # Extract the first word of "strip", so it can be a program name with args.
9066 set dummy strip; ac_word=$2
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9068 $as_echo_n "checking for $ac_word... " >&6; }
9069 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9070 $as_echo_n "(cached) " >&6
9071 else
9072 if test -n "$ac_ct_STRIP"; then
9073 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9074 else
9075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9076 for as_dir in $PATH
9077 do
9078 IFS=$as_save_IFS
9079 test -z "$as_dir" && as_dir=.
9080 for ac_exec_ext in '' $ac_executable_extensions; do
9081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9082 ac_cv_prog_ac_ct_STRIP="strip"
9083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9084 break 2
9085 fi
9086 done
9087 done
9088 IFS=$as_save_IFS
9089
9090 fi
9091 fi
9092 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9093 if test -n "$ac_ct_STRIP"; then
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9095 $as_echo "$ac_ct_STRIP" >&6; }
9096 else
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9098 $as_echo "no" >&6; }
9099 fi
9100
9101 if test "x$ac_ct_STRIP" = x; then
9102 STRIP=":"
9103 else
9104 case $cross_compiling:$ac_tool_warned in
9105 yes:)
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9108 ac_tool_warned=yes ;;
9109 esac
9110 STRIP=$ac_ct_STRIP
9111 fi
9112 else
9113 STRIP="$ac_cv_prog_STRIP"
9114 fi
9115
9116 test -z "$STRIP" && STRIP=:
9117
9118
9119
9120
9121
9122
9123 if test -n "$ac_tool_prefix"; then
9124 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9125 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9127 $as_echo_n "checking for $ac_word... " >&6; }
9128 if ${ac_cv_prog_RANLIB+:} false; then :
9129 $as_echo_n "(cached) " >&6
9130 else
9131 if test -n "$RANLIB"; then
9132 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9133 else
9134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9135 for as_dir in $PATH
9136 do
9137 IFS=$as_save_IFS
9138 test -z "$as_dir" && as_dir=.
9139 for ac_exec_ext in '' $ac_executable_extensions; do
9140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9141 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9143 break 2
9144 fi
9145 done
9146 done
9147 IFS=$as_save_IFS
9148
9149 fi
9150 fi
9151 RANLIB=$ac_cv_prog_RANLIB
9152 if test -n "$RANLIB"; then
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9154 $as_echo "$RANLIB" >&6; }
9155 else
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9157 $as_echo "no" >&6; }
9158 fi
9159
9160
9161 fi
9162 if test -z "$ac_cv_prog_RANLIB"; then
9163 ac_ct_RANLIB=$RANLIB
9164 # Extract the first word of "ranlib", so it can be a program name with args.
9165 set dummy ranlib; ac_word=$2
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9167 $as_echo_n "checking for $ac_word... " >&6; }
9168 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9169 $as_echo_n "(cached) " >&6
9170 else
9171 if test -n "$ac_ct_RANLIB"; then
9172 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9173 else
9174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9175 for as_dir in $PATH
9176 do
9177 IFS=$as_save_IFS
9178 test -z "$as_dir" && as_dir=.
9179 for ac_exec_ext in '' $ac_executable_extensions; do
9180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9181 ac_cv_prog_ac_ct_RANLIB="ranlib"
9182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9183 break 2
9184 fi
9185 done
9186 done
9187 IFS=$as_save_IFS
9188
9189 fi
9190 fi
9191 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9192 if test -n "$ac_ct_RANLIB"; then
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9194 $as_echo "$ac_ct_RANLIB" >&6; }
9195 else
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9197 $as_echo "no" >&6; }
9198 fi
9199
9200 if test "x$ac_ct_RANLIB" = x; then
9201 RANLIB=":"
9202 else
9203 case $cross_compiling:$ac_tool_warned in
9204 yes:)
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9207 ac_tool_warned=yes ;;
9208 esac
9209 RANLIB=$ac_ct_RANLIB
9210 fi
9211 else
9212 RANLIB="$ac_cv_prog_RANLIB"
9213 fi
9214
9215 test -z "$RANLIB" && RANLIB=:
9216
9217
9218
9219
9220
9221
9222 # Determine commands to create old-style static archives.
9223 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9224 old_postinstall_cmds='chmod 644 $oldlib'
9225 old_postuninstall_cmds=
9226
9227 if test -n "$RANLIB"; then
9228 case $host_os in
9229 bitrig* | openbsd*)
9230 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9231 ;;
9232 *)
9233 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9234 ;;
9235 esac
9236 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9237 fi
9238
9239 case $host_os in
9240 darwin*)
9241 lock_old_archive_extraction=yes ;;
9242 *)
9243 lock_old_archive_extraction=no ;;
9244 esac
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284 # If no C compiler was specified, use CC.
9285 LTCC=${LTCC-"$CC"}
9286
9287 # If no C compiler flags were specified, use CFLAGS.
9288 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9289
9290 # Allow CC to be a program name with arguments.
9291 compiler=$CC
9292
9293
9294 # Check for command to grab the raw symbol name followed by C symbol from nm.
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9296 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9297 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9298 $as_echo_n "(cached) " >&6
9299 else
9300
9301 # These are sane defaults that work on at least a few old systems.
9302 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9303
9304 # Character class describing NM global symbol codes.
9305 symcode='[BCDEGRST]'
9306
9307 # Regexp to match symbols that can be accessed directly from C.
9308 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9309
9310 # Define system-specific variables.
9311 case $host_os in
9312 aix*)
9313 symcode='[BCDT]'
9314 ;;
9315 cygwin* | mingw* | pw32* | cegcc*)
9316 symcode='[ABCDGISTW]'
9317 ;;
9318 hpux*)
9319 if test ia64 = "$host_cpu"; then
9320 symcode='[ABCDEGRST]'
9321 fi
9322 ;;
9323 irix* | nonstopux*)
9324 symcode='[BCDEGRST]'
9325 ;;
9326 osf*)
9327 symcode='[BCDEGQRST]'
9328 ;;
9329 solaris*)
9330 symcode='[BDRT]'
9331 ;;
9332 sco3.2v5*)
9333 symcode='[DT]'
9334 ;;
9335 sysv4.2uw2*)
9336 symcode='[DT]'
9337 ;;
9338 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9339 symcode='[ABDT]'
9340 ;;
9341 sysv4)
9342 symcode='[DFNSTU]'
9343 ;;
9344 esac
9345
9346 # If we're using GNU nm, then use its standard symbol codes.
9347 case `$NM -V 2>&1` in
9348 *GNU* | *'with BFD'*)
9349 symcode='[ABCDGIRSTW]' ;;
9350 esac
9351
9352 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9353 # Gets list of data symbols to import.
9354 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9355 # Adjust the below global symbol transforms to fixup imported variables.
9356 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9357 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9358 lt_c_name_lib_hook="\
9359 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9360 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9361 else
9362 # Disable hooks by default.
9363 lt_cv_sys_global_symbol_to_import=
9364 lt_cdecl_hook=
9365 lt_c_name_hook=
9366 lt_c_name_lib_hook=
9367 fi
9368
9369 # Transform an extracted symbol line into a proper C declaration.
9370 # Some systems (esp. on ia64) link data and code symbols differently,
9371 # so use this general approach.
9372 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9373 $lt_cdecl_hook\
9374 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9375 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9376
9377 # Transform an extracted symbol line into symbol name and symbol address
9378 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9379 $lt_c_name_hook\
9380 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9381 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9382
9383 # Transform an extracted symbol line into symbol name with lib prefix and
9384 # symbol address.
9385 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9386 $lt_c_name_lib_hook\
9387 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9388 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9389 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9390
9391 # Handle CRLF in mingw tool chain
9392 opt_cr=
9393 case $build_os in
9394 mingw*)
9395 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9396 ;;
9397 esac
9398
9399 # Try without a prefix underscore, then with it.
9400 for ac_symprfx in "" "_"; do
9401
9402 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9403 symxfrm="\\1 $ac_symprfx\\2 \\2"
9404
9405 # Write the raw and C identifiers.
9406 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9407 # Fake it for dumpbin and say T for any non-static function,
9408 # D for any global variable and I for any imported variable.
9409 # Also find C++ and __fastcall symbols from MSVC++,
9410 # which start with @ or ?.
9411 lt_cv_sys_global_symbol_pipe="$AWK '"\
9412 " {last_section=section; section=\$ 3};"\
9413 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9414 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9415 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9416 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9417 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9418 " \$ 0!~/External *\|/{next};"\
9419 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9420 " {if(hide[section]) next};"\
9421 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9422 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9423 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9424 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9425 " ' prfx=^$ac_symprfx"
9426 else
9427 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9428 fi
9429 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9430
9431 # Check to see that the pipe works correctly.
9432 pipe_works=no
9433
9434 rm -f conftest*
9435 cat > conftest.$ac_ext <<_LT_EOF
9436 #ifdef __cplusplus
9437 extern "C" {
9438 #endif
9439 char nm_test_var;
9440 void nm_test_func(void);
9441 void nm_test_func(void){}
9442 #ifdef __cplusplus
9443 }
9444 #endif
9445 int main(){nm_test_var='a';nm_test_func();return(0);}
9446 _LT_EOF
9447
9448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9449 (eval $ac_compile) 2>&5
9450 ac_status=$?
9451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9452 test $ac_status = 0; }; then
9453 # Now try to grab the symbols.
9454 nlist=conftest.nm
9455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9456 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9457 ac_status=$?
9458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9459 test $ac_status = 0; } && test -s "$nlist"; then
9460 # Try sorting and uniquifying the output.
9461 if sort "$nlist" | uniq > "$nlist"T; then
9462 mv -f "$nlist"T "$nlist"
9463 else
9464 rm -f "$nlist"T
9465 fi
9466
9467 # Make sure that we snagged all the symbols we need.
9468 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9469 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9470 cat <<_LT_EOF > conftest.$ac_ext
9471 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9472 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9473 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9474 relocations are performed -- see ld's documentation on pseudo-relocs. */
9475 # define LT_DLSYM_CONST
9476 #elif defined __osf__
9477 /* This system does not cope well with relocations in const data. */
9478 # define LT_DLSYM_CONST
9479 #else
9480 # define LT_DLSYM_CONST const
9481 #endif
9482
9483 #ifdef __cplusplus
9484 extern "C" {
9485 #endif
9486
9487 _LT_EOF
9488 # Now generate the symbol file.
9489 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9490
9491 cat <<_LT_EOF >> conftest.$ac_ext
9492
9493 /* The mapping between symbol names and symbols. */
9494 LT_DLSYM_CONST struct {
9495 const char *name;
9496 void *address;
9497 }
9498 lt__PROGRAM__LTX_preloaded_symbols[] =
9499 {
9500 { "@PROGRAM@", (void *) 0 },
9501 _LT_EOF
9502 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9503 cat <<\_LT_EOF >> conftest.$ac_ext
9504 {0, (void *) 0}
9505 };
9506
9507 /* This works around a problem in FreeBSD linker */
9508 #ifdef FREEBSD_WORKAROUND
9509 static const void *lt_preloaded_setup() {
9510 return lt__PROGRAM__LTX_preloaded_symbols;
9511 }
9512 #endif
9513
9514 #ifdef __cplusplus
9515 }
9516 #endif
9517 _LT_EOF
9518 # Now try linking the two files.
9519 mv conftest.$ac_objext conftstm.$ac_objext
9520 lt_globsym_save_LIBS=$LIBS
9521 lt_globsym_save_CFLAGS=$CFLAGS
9522 LIBS=conftstm.$ac_objext
9523 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9525 (eval $ac_link) 2>&5
9526 ac_status=$?
9527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9528 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9529 pipe_works=yes
9530 fi
9531 LIBS=$lt_globsym_save_LIBS
9532 CFLAGS=$lt_globsym_save_CFLAGS
9533 else
9534 echo "cannot find nm_test_func in $nlist" >&5
9535 fi
9536 else
9537 echo "cannot find nm_test_var in $nlist" >&5
9538 fi
9539 else
9540 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9541 fi
9542 else
9543 echo "$progname: failed program was:" >&5
9544 cat conftest.$ac_ext >&5
9545 fi
9546 rm -rf conftest* conftst*
9547
9548 # Do not use the global_symbol_pipe unless it works.
9549 if test yes = "$pipe_works"; then
9550 break
9551 else
9552 lt_cv_sys_global_symbol_pipe=
9553 fi
9554 done
9555
9556 fi
9557
9558 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9559 lt_cv_sys_global_symbol_to_cdecl=
9560 fi
9561 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9563 $as_echo "failed" >&6; }
9564 else
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9566 $as_echo "ok" >&6; }
9567 fi
9568
9569 # Response file support.
9570 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9571 nm_file_list_spec='@'
9572 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9573 nm_file_list_spec='@'
9574 fi
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9613 $as_echo_n "checking for sysroot... " >&6; }
9614
9615 # Check whether --with-sysroot was given.
9616 if test "${with_sysroot+set}" = set; then :
9617 withval=$with_sysroot;
9618 else
9619 with_sysroot=no
9620 fi
9621
9622
9623 lt_sysroot=
9624 case $with_sysroot in #(
9625 yes)
9626 if test yes = "$GCC"; then
9627 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9628 fi
9629 ;; #(
9630 /*)
9631 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9632 ;; #(
9633 no|'')
9634 ;; #(
9635 *)
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9637 $as_echo "$with_sysroot" >&6; }
9638 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9639 ;;
9640 esac
9641
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9643 $as_echo "${lt_sysroot:-no}" >&6; }
9644
9645
9646
9647
9648
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9650 $as_echo_n "checking for a working dd... " >&6; }
9651 if ${ac_cv_path_lt_DD+:} false; then :
9652 $as_echo_n "(cached) " >&6
9653 else
9654 printf 0123456789abcdef0123456789abcdef >conftest.i
9655 cat conftest.i conftest.i >conftest2.i
9656 : ${lt_DD:=$DD}
9657 if test -z "$lt_DD"; then
9658 ac_path_lt_DD_found=false
9659 # Loop through the user's path and test for each of PROGNAME-LIST
9660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9661 for as_dir in $PATH
9662 do
9663 IFS=$as_save_IFS
9664 test -z "$as_dir" && as_dir=.
9665 for ac_prog in dd; do
9666 for ac_exec_ext in '' $ac_executable_extensions; do
9667 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9668 as_fn_executable_p "$ac_path_lt_DD" || continue
9669 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9670 cmp -s conftest.i conftest.out \
9671 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9672 fi
9673 $ac_path_lt_DD_found && break 3
9674 done
9675 done
9676 done
9677 IFS=$as_save_IFS
9678 if test -z "$ac_cv_path_lt_DD"; then
9679 :
9680 fi
9681 else
9682 ac_cv_path_lt_DD=$lt_DD
9683 fi
9684
9685 rm -f conftest.i conftest2.i conftest.out
9686 fi
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9688 $as_echo "$ac_cv_path_lt_DD" >&6; }
9689
9690
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9692 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9693 if ${lt_cv_truncate_bin+:} false; then :
9694 $as_echo_n "(cached) " >&6
9695 else
9696 printf 0123456789abcdef0123456789abcdef >conftest.i
9697 cat conftest.i conftest.i >conftest2.i
9698 lt_cv_truncate_bin=
9699 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9700 cmp -s conftest.i conftest.out \
9701 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9702 fi
9703 rm -f conftest.i conftest2.i conftest.out
9704 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9705 fi
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9707 $as_echo "$lt_cv_truncate_bin" >&6; }
9708
9709
9710
9711
9712
9713
9714
9715 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9716 func_cc_basename ()
9717 {
9718 for cc_temp in $*""; do
9719 case $cc_temp in
9720 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9721 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9722 \-*) ;;
9723 *) break;;
9724 esac
9725 done
9726 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9727 }
9728
9729 # Check whether --enable-libtool-lock was given.
9730 if test "${enable_libtool_lock+set}" = set; then :
9731 enableval=$enable_libtool_lock;
9732 fi
9733
9734 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9735
9736 # Some flags need to be propagated to the compiler or linker for good
9737 # libtool support.
9738 case $host in
9739 ia64-*-hpux*)
9740 # Find out what ABI is being produced by ac_compile, and set mode
9741 # options accordingly.
9742 echo 'int i;' > conftest.$ac_ext
9743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9744 (eval $ac_compile) 2>&5
9745 ac_status=$?
9746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9747 test $ac_status = 0; }; then
9748 case `/usr/bin/file conftest.$ac_objext` in
9749 *ELF-32*)
9750 HPUX_IA64_MODE=32
9751 ;;
9752 *ELF-64*)
9753 HPUX_IA64_MODE=64
9754 ;;
9755 esac
9756 fi
9757 rm -rf conftest*
9758 ;;
9759 *-*-irix6*)
9760 # Find out what ABI is being produced by ac_compile, and set linker
9761 # options accordingly.
9762 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9764 (eval $ac_compile) 2>&5
9765 ac_status=$?
9766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9767 test $ac_status = 0; }; then
9768 if test yes = "$lt_cv_prog_gnu_ld"; then
9769 case `/usr/bin/file conftest.$ac_objext` in
9770 *32-bit*)
9771 LD="${LD-ld} -melf32bsmip"
9772 ;;
9773 *N32*)
9774 LD="${LD-ld} -melf32bmipn32"
9775 ;;
9776 *64-bit*)
9777 LD="${LD-ld} -melf64bmip"
9778 ;;
9779 esac
9780 else
9781 case `/usr/bin/file conftest.$ac_objext` in
9782 *32-bit*)
9783 LD="${LD-ld} -32"
9784 ;;
9785 *N32*)
9786 LD="${LD-ld} -n32"
9787 ;;
9788 *64-bit*)
9789 LD="${LD-ld} -64"
9790 ;;
9791 esac
9792 fi
9793 fi
9794 rm -rf conftest*
9795 ;;
9796
9797 mips64*-*linux*)
9798 # Find out what ABI is being produced by ac_compile, and set linker
9799 # options accordingly.
9800 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9802 (eval $ac_compile) 2>&5
9803 ac_status=$?
9804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9805 test $ac_status = 0; }; then
9806 emul=elf
9807 case `/usr/bin/file conftest.$ac_objext` in
9808 *32-bit*)
9809 emul="${emul}32"
9810 ;;
9811 *64-bit*)
9812 emul="${emul}64"
9813 ;;
9814 esac
9815 case `/usr/bin/file conftest.$ac_objext` in
9816 *MSB*)
9817 emul="${emul}btsmip"
9818 ;;
9819 *LSB*)
9820 emul="${emul}ltsmip"
9821 ;;
9822 esac
9823 case `/usr/bin/file conftest.$ac_objext` in
9824 *N32*)
9825 emul="${emul}n32"
9826 ;;
9827 esac
9828 LD="${LD-ld} -m $emul"
9829 fi
9830 rm -rf conftest*
9831 ;;
9832
9833 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9834 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9835 # Find out what ABI is being produced by ac_compile, and set linker
9836 # options accordingly. Note that the listed cases only cover the
9837 # situations where additional linker options are needed (such as when
9838 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9839 # vice versa); the common cases where no linker options are needed do
9840 # not appear in the list.
9841 echo 'int i;' > conftest.$ac_ext
9842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9843 (eval $ac_compile) 2>&5
9844 ac_status=$?
9845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9846 test $ac_status = 0; }; then
9847 case `/usr/bin/file conftest.o` in
9848 *32-bit*)
9849 case $host in
9850 x86_64-*kfreebsd*-gnu)
9851 LD="${LD-ld} -m elf_i386_fbsd"
9852 ;;
9853 x86_64-*linux*)
9854 case `/usr/bin/file conftest.o` in
9855 *x86-64*)
9856 LD="${LD-ld} -m elf32_x86_64"
9857 ;;
9858 *)
9859 LD="${LD-ld} -m elf_i386"
9860 ;;
9861 esac
9862 ;;
9863 powerpc64le-*linux*)
9864 LD="${LD-ld} -m elf32lppclinux"
9865 ;;
9866 powerpc64-*linux*)
9867 LD="${LD-ld} -m elf32ppclinux"
9868 ;;
9869 s390x-*linux*)
9870 LD="${LD-ld} -m elf_s390"
9871 ;;
9872 sparc64-*linux*)
9873 LD="${LD-ld} -m elf32_sparc"
9874 ;;
9875 esac
9876 ;;
9877 *64-bit*)
9878 case $host in
9879 x86_64-*kfreebsd*-gnu)
9880 LD="${LD-ld} -m elf_x86_64_fbsd"
9881 ;;
9882 x86_64-*linux*)
9883 LD="${LD-ld} -m elf_x86_64"
9884 ;;
9885 powerpcle-*linux*)
9886 LD="${LD-ld} -m elf64lppc"
9887 ;;
9888 powerpc-*linux*)
9889 LD="${LD-ld} -m elf64ppc"
9890 ;;
9891 s390*-*linux*|s390*-*tpf*)
9892 LD="${LD-ld} -m elf64_s390"
9893 ;;
9894 sparc*-*linux*)
9895 LD="${LD-ld} -m elf64_sparc"
9896 ;;
9897 esac
9898 ;;
9899 esac
9900 fi
9901 rm -rf conftest*
9902 ;;
9903
9904 *-*-sco3.2v5*)
9905 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9906 SAVE_CFLAGS=$CFLAGS
9907 CFLAGS="$CFLAGS -belf"
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9909 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9910 if ${lt_cv_cc_needs_belf+:} false; then :
9911 $as_echo_n "(cached) " >&6
9912 else
9913 ac_ext=c
9914 ac_cpp='$CPP $CPPFLAGS'
9915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9918
9919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9920 /* end confdefs.h. */
9921
9922 int
9923 main (void)
9924 {
9925
9926 ;
9927 return 0;
9928 }
9929 _ACEOF
9930 if ac_fn_c_try_link "$LINENO"; then :
9931 lt_cv_cc_needs_belf=yes
9932 else
9933 lt_cv_cc_needs_belf=no
9934 fi
9935 rm -f core conftest.err conftest.$ac_objext \
9936 conftest$ac_exeext conftest.$ac_ext
9937 ac_ext=c
9938 ac_cpp='$CPP $CPPFLAGS'
9939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9942
9943 fi
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9945 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9946 if test yes != "$lt_cv_cc_needs_belf"; then
9947 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9948 CFLAGS=$SAVE_CFLAGS
9949 fi
9950 ;;
9951 *-*solaris*)
9952 # Find out what ABI is being produced by ac_compile, and set linker
9953 # options accordingly.
9954 echo 'int i;' > conftest.$ac_ext
9955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9956 (eval $ac_compile) 2>&5
9957 ac_status=$?
9958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9959 test $ac_status = 0; }; then
9960 case `/usr/bin/file conftest.o` in
9961 *64-bit*)
9962 case $lt_cv_prog_gnu_ld in
9963 yes*)
9964 case $host in
9965 i?86-*-solaris*|x86_64-*-solaris*)
9966 LD="${LD-ld} -m elf_x86_64"
9967 ;;
9968 sparc*-*-solaris*)
9969 LD="${LD-ld} -m elf64_sparc"
9970 ;;
9971 esac
9972 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9973 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9974 LD=${LD-ld}_sol2
9975 fi
9976 ;;
9977 *)
9978 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9979 LD="${LD-ld} -64"
9980 fi
9981 ;;
9982 esac
9983 ;;
9984 esac
9985 fi
9986 rm -rf conftest*
9987 ;;
9988 esac
9989
9990 need_locks=$enable_libtool_lock
9991
9992 if test -n "$ac_tool_prefix"; then
9993 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9994 set dummy ${ac_tool_prefix}mt; ac_word=$2
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9996 $as_echo_n "checking for $ac_word... " >&6; }
9997 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9998 $as_echo_n "(cached) " >&6
9999 else
10000 if test -n "$MANIFEST_TOOL"; then
10001 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10002 else
10003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004 for as_dir in $PATH
10005 do
10006 IFS=$as_save_IFS
10007 test -z "$as_dir" && as_dir=.
10008 for ac_exec_ext in '' $ac_executable_extensions; do
10009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10010 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10012 break 2
10013 fi
10014 done
10015 done
10016 IFS=$as_save_IFS
10017
10018 fi
10019 fi
10020 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10021 if test -n "$MANIFEST_TOOL"; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10023 $as_echo "$MANIFEST_TOOL" >&6; }
10024 else
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10026 $as_echo "no" >&6; }
10027 fi
10028
10029
10030 fi
10031 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10032 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10033 # Extract the first word of "mt", so it can be a program name with args.
10034 set dummy mt; ac_word=$2
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10036 $as_echo_n "checking for $ac_word... " >&6; }
10037 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10038 $as_echo_n "(cached) " >&6
10039 else
10040 if test -n "$ac_ct_MANIFEST_TOOL"; then
10041 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10042 else
10043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10044 for as_dir in $PATH
10045 do
10046 IFS=$as_save_IFS
10047 test -z "$as_dir" && as_dir=.
10048 for ac_exec_ext in '' $ac_executable_extensions; do
10049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10050 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10052 break 2
10053 fi
10054 done
10055 done
10056 IFS=$as_save_IFS
10057
10058 fi
10059 fi
10060 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10061 if test -n "$ac_ct_MANIFEST_TOOL"; then
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10063 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10064 else
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10066 $as_echo "no" >&6; }
10067 fi
10068
10069 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10070 MANIFEST_TOOL=":"
10071 else
10072 case $cross_compiling:$ac_tool_warned in
10073 yes:)
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10076 ac_tool_warned=yes ;;
10077 esac
10078 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10079 fi
10080 else
10081 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10082 fi
10083
10084 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10086 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10087 if ${lt_cv_path_mainfest_tool+:} false; then :
10088 $as_echo_n "(cached) " >&6
10089 else
10090 lt_cv_path_mainfest_tool=no
10091 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10092 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10093 cat conftest.err >&5
10094 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10095 lt_cv_path_mainfest_tool=yes
10096 fi
10097 rm -f conftest*
10098 fi
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10100 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10101 if test yes != "$lt_cv_path_mainfest_tool"; then
10102 MANIFEST_TOOL=:
10103 fi
10104
10105
10106
10107
10108
10109
10110 case $host_os in
10111 rhapsody* | darwin*)
10112 if test -n "$ac_tool_prefix"; then
10113 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10114 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10116 $as_echo_n "checking for $ac_word... " >&6; }
10117 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10118 $as_echo_n "(cached) " >&6
10119 else
10120 if test -n "$DSYMUTIL"; then
10121 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10122 else
10123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10124 for as_dir in $PATH
10125 do
10126 IFS=$as_save_IFS
10127 test -z "$as_dir" && as_dir=.
10128 for ac_exec_ext in '' $ac_executable_extensions; do
10129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10130 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10132 break 2
10133 fi
10134 done
10135 done
10136 IFS=$as_save_IFS
10137
10138 fi
10139 fi
10140 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10141 if test -n "$DSYMUTIL"; then
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10143 $as_echo "$DSYMUTIL" >&6; }
10144 else
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10146 $as_echo "no" >&6; }
10147 fi
10148
10149
10150 fi
10151 if test -z "$ac_cv_prog_DSYMUTIL"; then
10152 ac_ct_DSYMUTIL=$DSYMUTIL
10153 # Extract the first word of "dsymutil", so it can be a program name with args.
10154 set dummy dsymutil; ac_word=$2
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10156 $as_echo_n "checking for $ac_word... " >&6; }
10157 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10158 $as_echo_n "(cached) " >&6
10159 else
10160 if test -n "$ac_ct_DSYMUTIL"; then
10161 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10162 else
10163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10164 for as_dir in $PATH
10165 do
10166 IFS=$as_save_IFS
10167 test -z "$as_dir" && as_dir=.
10168 for ac_exec_ext in '' $ac_executable_extensions; do
10169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10170 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10172 break 2
10173 fi
10174 done
10175 done
10176 IFS=$as_save_IFS
10177
10178 fi
10179 fi
10180 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10181 if test -n "$ac_ct_DSYMUTIL"; then
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10183 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10184 else
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186 $as_echo "no" >&6; }
10187 fi
10188
10189 if test "x$ac_ct_DSYMUTIL" = x; then
10190 DSYMUTIL=":"
10191 else
10192 case $cross_compiling:$ac_tool_warned in
10193 yes:)
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10196 ac_tool_warned=yes ;;
10197 esac
10198 DSYMUTIL=$ac_ct_DSYMUTIL
10199 fi
10200 else
10201 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10202 fi
10203
10204 if test -n "$ac_tool_prefix"; then
10205 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10206 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10208 $as_echo_n "checking for $ac_word... " >&6; }
10209 if ${ac_cv_prog_NMEDIT+:} false; then :
10210 $as_echo_n "(cached) " >&6
10211 else
10212 if test -n "$NMEDIT"; then
10213 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10214 else
10215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10216 for as_dir in $PATH
10217 do
10218 IFS=$as_save_IFS
10219 test -z "$as_dir" && as_dir=.
10220 for ac_exec_ext in '' $ac_executable_extensions; do
10221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10222 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10224 break 2
10225 fi
10226 done
10227 done
10228 IFS=$as_save_IFS
10229
10230 fi
10231 fi
10232 NMEDIT=$ac_cv_prog_NMEDIT
10233 if test -n "$NMEDIT"; then
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10235 $as_echo "$NMEDIT" >&6; }
10236 else
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10238 $as_echo "no" >&6; }
10239 fi
10240
10241
10242 fi
10243 if test -z "$ac_cv_prog_NMEDIT"; then
10244 ac_ct_NMEDIT=$NMEDIT
10245 # Extract the first word of "nmedit", so it can be a program name with args.
10246 set dummy nmedit; ac_word=$2
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10248 $as_echo_n "checking for $ac_word... " >&6; }
10249 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10250 $as_echo_n "(cached) " >&6
10251 else
10252 if test -n "$ac_ct_NMEDIT"; then
10253 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10254 else
10255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10256 for as_dir in $PATH
10257 do
10258 IFS=$as_save_IFS
10259 test -z "$as_dir" && as_dir=.
10260 for ac_exec_ext in '' $ac_executable_extensions; do
10261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10262 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10264 break 2
10265 fi
10266 done
10267 done
10268 IFS=$as_save_IFS
10269
10270 fi
10271 fi
10272 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10273 if test -n "$ac_ct_NMEDIT"; then
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10275 $as_echo "$ac_ct_NMEDIT" >&6; }
10276 else
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278 $as_echo "no" >&6; }
10279 fi
10280
10281 if test "x$ac_ct_NMEDIT" = x; then
10282 NMEDIT=":"
10283 else
10284 case $cross_compiling:$ac_tool_warned in
10285 yes:)
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10288 ac_tool_warned=yes ;;
10289 esac
10290 NMEDIT=$ac_ct_NMEDIT
10291 fi
10292 else
10293 NMEDIT="$ac_cv_prog_NMEDIT"
10294 fi
10295
10296 if test -n "$ac_tool_prefix"; then
10297 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10298 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10300 $as_echo_n "checking for $ac_word... " >&6; }
10301 if ${ac_cv_prog_LIPO+:} false; then :
10302 $as_echo_n "(cached) " >&6
10303 else
10304 if test -n "$LIPO"; then
10305 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10306 else
10307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10308 for as_dir in $PATH
10309 do
10310 IFS=$as_save_IFS
10311 test -z "$as_dir" && as_dir=.
10312 for ac_exec_ext in '' $ac_executable_extensions; do
10313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10314 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10316 break 2
10317 fi
10318 done
10319 done
10320 IFS=$as_save_IFS
10321
10322 fi
10323 fi
10324 LIPO=$ac_cv_prog_LIPO
10325 if test -n "$LIPO"; then
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10327 $as_echo "$LIPO" >&6; }
10328 else
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10330 $as_echo "no" >&6; }
10331 fi
10332
10333
10334 fi
10335 if test -z "$ac_cv_prog_LIPO"; then
10336 ac_ct_LIPO=$LIPO
10337 # Extract the first word of "lipo", so it can be a program name with args.
10338 set dummy lipo; ac_word=$2
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10340 $as_echo_n "checking for $ac_word... " >&6; }
10341 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10342 $as_echo_n "(cached) " >&6
10343 else
10344 if test -n "$ac_ct_LIPO"; then
10345 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10346 else
10347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10348 for as_dir in $PATH
10349 do
10350 IFS=$as_save_IFS
10351 test -z "$as_dir" && as_dir=.
10352 for ac_exec_ext in '' $ac_executable_extensions; do
10353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10354 ac_cv_prog_ac_ct_LIPO="lipo"
10355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10356 break 2
10357 fi
10358 done
10359 done
10360 IFS=$as_save_IFS
10361
10362 fi
10363 fi
10364 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10365 if test -n "$ac_ct_LIPO"; then
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10367 $as_echo "$ac_ct_LIPO" >&6; }
10368 else
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10370 $as_echo "no" >&6; }
10371 fi
10372
10373 if test "x$ac_ct_LIPO" = x; then
10374 LIPO=":"
10375 else
10376 case $cross_compiling:$ac_tool_warned in
10377 yes:)
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10380 ac_tool_warned=yes ;;
10381 esac
10382 LIPO=$ac_ct_LIPO
10383 fi
10384 else
10385 LIPO="$ac_cv_prog_LIPO"
10386 fi
10387
10388 if test -n "$ac_tool_prefix"; then
10389 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10390 set dummy ${ac_tool_prefix}otool; ac_word=$2
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10392 $as_echo_n "checking for $ac_word... " >&6; }
10393 if ${ac_cv_prog_OTOOL+:} false; then :
10394 $as_echo_n "(cached) " >&6
10395 else
10396 if test -n "$OTOOL"; then
10397 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10398 else
10399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10400 for as_dir in $PATH
10401 do
10402 IFS=$as_save_IFS
10403 test -z "$as_dir" && as_dir=.
10404 for ac_exec_ext in '' $ac_executable_extensions; do
10405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10406 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10408 break 2
10409 fi
10410 done
10411 done
10412 IFS=$as_save_IFS
10413
10414 fi
10415 fi
10416 OTOOL=$ac_cv_prog_OTOOL
10417 if test -n "$OTOOL"; then
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10419 $as_echo "$OTOOL" >&6; }
10420 else
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10422 $as_echo "no" >&6; }
10423 fi
10424
10425
10426 fi
10427 if test -z "$ac_cv_prog_OTOOL"; then
10428 ac_ct_OTOOL=$OTOOL
10429 # Extract the first word of "otool", so it can be a program name with args.
10430 set dummy otool; ac_word=$2
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10432 $as_echo_n "checking for $ac_word... " >&6; }
10433 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10434 $as_echo_n "(cached) " >&6
10435 else
10436 if test -n "$ac_ct_OTOOL"; then
10437 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10438 else
10439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10440 for as_dir in $PATH
10441 do
10442 IFS=$as_save_IFS
10443 test -z "$as_dir" && as_dir=.
10444 for ac_exec_ext in '' $ac_executable_extensions; do
10445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10446 ac_cv_prog_ac_ct_OTOOL="otool"
10447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10448 break 2
10449 fi
10450 done
10451 done
10452 IFS=$as_save_IFS
10453
10454 fi
10455 fi
10456 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10457 if test -n "$ac_ct_OTOOL"; then
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10459 $as_echo "$ac_ct_OTOOL" >&6; }
10460 else
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10462 $as_echo "no" >&6; }
10463 fi
10464
10465 if test "x$ac_ct_OTOOL" = x; then
10466 OTOOL=":"
10467 else
10468 case $cross_compiling:$ac_tool_warned in
10469 yes:)
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10472 ac_tool_warned=yes ;;
10473 esac
10474 OTOOL=$ac_ct_OTOOL
10475 fi
10476 else
10477 OTOOL="$ac_cv_prog_OTOOL"
10478 fi
10479
10480 if test -n "$ac_tool_prefix"; then
10481 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10482 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10484 $as_echo_n "checking for $ac_word... " >&6; }
10485 if ${ac_cv_prog_OTOOL64+:} false; then :
10486 $as_echo_n "(cached) " >&6
10487 else
10488 if test -n "$OTOOL64"; then
10489 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10490 else
10491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10492 for as_dir in $PATH
10493 do
10494 IFS=$as_save_IFS
10495 test -z "$as_dir" && as_dir=.
10496 for ac_exec_ext in '' $ac_executable_extensions; do
10497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10498 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10500 break 2
10501 fi
10502 done
10503 done
10504 IFS=$as_save_IFS
10505
10506 fi
10507 fi
10508 OTOOL64=$ac_cv_prog_OTOOL64
10509 if test -n "$OTOOL64"; then
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10511 $as_echo "$OTOOL64" >&6; }
10512 else
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10514 $as_echo "no" >&6; }
10515 fi
10516
10517
10518 fi
10519 if test -z "$ac_cv_prog_OTOOL64"; then
10520 ac_ct_OTOOL64=$OTOOL64
10521 # Extract the first word of "otool64", so it can be a program name with args.
10522 set dummy otool64; ac_word=$2
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10524 $as_echo_n "checking for $ac_word... " >&6; }
10525 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10526 $as_echo_n "(cached) " >&6
10527 else
10528 if test -n "$ac_ct_OTOOL64"; then
10529 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10530 else
10531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532 for as_dir in $PATH
10533 do
10534 IFS=$as_save_IFS
10535 test -z "$as_dir" && as_dir=.
10536 for ac_exec_ext in '' $ac_executable_extensions; do
10537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10538 ac_cv_prog_ac_ct_OTOOL64="otool64"
10539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10540 break 2
10541 fi
10542 done
10543 done
10544 IFS=$as_save_IFS
10545
10546 fi
10547 fi
10548 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10549 if test -n "$ac_ct_OTOOL64"; then
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10551 $as_echo "$ac_ct_OTOOL64" >&6; }
10552 else
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554 $as_echo "no" >&6; }
10555 fi
10556
10557 if test "x$ac_ct_OTOOL64" = x; then
10558 OTOOL64=":"
10559 else
10560 case $cross_compiling:$ac_tool_warned in
10561 yes:)
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10564 ac_tool_warned=yes ;;
10565 esac
10566 OTOOL64=$ac_ct_OTOOL64
10567 fi
10568 else
10569 OTOOL64="$ac_cv_prog_OTOOL64"
10570 fi
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10599 $as_echo_n "checking for -single_module linker flag... " >&6; }
10600 if ${lt_cv_apple_cc_single_mod+:} false; then :
10601 $as_echo_n "(cached) " >&6
10602 else
10603 lt_cv_apple_cc_single_mod=no
10604 if test -z "$LT_MULTI_MODULE"; then
10605 # By default we will add the -single_module flag. You can override
10606 # by either setting the environment variable LT_MULTI_MODULE
10607 # non-empty at configure time, or by adding -multi_module to the
10608 # link flags.
10609 rm -rf libconftest.dylib*
10610 echo "int foo(void){return 1;}" > conftest.c
10611 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10612 -dynamiclib -Wl,-single_module conftest.c" >&5
10613 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10614 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10615 _lt_result=$?
10616 # If there is a non-empty error log, and "single_module"
10617 # appears in it, assume the flag caused a linker warning
10618 if test -s conftest.err && $GREP single_module conftest.err; then
10619 cat conftest.err >&5
10620 # Otherwise, if the output was created with a 0 exit code from
10621 # the compiler, it worked.
10622 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10623 lt_cv_apple_cc_single_mod=yes
10624 else
10625 cat conftest.err >&5
10626 fi
10627 rm -rf libconftest.dylib*
10628 rm -f conftest.*
10629 fi
10630 fi
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10632 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10633
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10635 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10636 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10637 $as_echo_n "(cached) " >&6
10638 else
10639 lt_cv_ld_exported_symbols_list=no
10640 save_LDFLAGS=$LDFLAGS
10641 echo "_main" > conftest.sym
10642 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644 /* end confdefs.h. */
10645
10646 int
10647 main (void)
10648 {
10649
10650 ;
10651 return 0;
10652 }
10653 _ACEOF
10654 if ac_fn_c_try_link "$LINENO"; then :
10655 lt_cv_ld_exported_symbols_list=yes
10656 else
10657 lt_cv_ld_exported_symbols_list=no
10658 fi
10659 rm -f core conftest.err conftest.$ac_objext \
10660 conftest$ac_exeext conftest.$ac_ext
10661 LDFLAGS=$save_LDFLAGS
10662
10663 fi
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10665 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10666
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10668 $as_echo_n "checking for -force_load linker flag... " >&6; }
10669 if ${lt_cv_ld_force_load+:} false; then :
10670 $as_echo_n "(cached) " >&6
10671 else
10672 lt_cv_ld_force_load=no
10673 cat > conftest.c << _LT_EOF
10674 int forced_loaded() { return 2;}
10675 _LT_EOF
10676 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10677 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10678 echo "$AR cru libconftest.a conftest.o" >&5
10679 $AR cru libconftest.a conftest.o 2>&5
10680 echo "$RANLIB libconftest.a" >&5
10681 $RANLIB libconftest.a 2>&5
10682 cat > conftest.c << _LT_EOF
10683 int main() { return 0;}
10684 _LT_EOF
10685 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10686 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10687 _lt_result=$?
10688 if test -s conftest.err && $GREP force_load conftest.err; then
10689 cat conftest.err >&5
10690 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10691 lt_cv_ld_force_load=yes
10692 else
10693 cat conftest.err >&5
10694 fi
10695 rm -f conftest.err libconftest.a conftest conftest.c
10696 rm -rf conftest.dSYM
10697
10698 fi
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10700 $as_echo "$lt_cv_ld_force_load" >&6; }
10701 case $host_os in
10702 rhapsody* | darwin1.[012])
10703 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10704 darwin1.*)
10705 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10706 darwin*) # darwin 5.x on
10707 # if running on 10.5 or later, the deployment target defaults
10708 # to the OS version, if on x86, and 10.4, the deployment
10709 # target defaults to 10.4. Don't you love it?
10710 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10711 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10712 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10713 10.[012][,.]*)
10714 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10715 10.*)
10716 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10717 esac
10718 ;;
10719 esac
10720 if test yes = "$lt_cv_apple_cc_single_mod"; then
10721 _lt_dar_single_mod='$single_module'
10722 fi
10723 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10724 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10725 else
10726 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10727 fi
10728 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10729 _lt_dsymutil='~$DSYMUTIL $lib || :'
10730 else
10731 _lt_dsymutil=
10732 fi
10733 ;;
10734 esac
10735
10736 # func_munge_path_list VARIABLE PATH
10737 # -----------------------------------
10738 # VARIABLE is name of variable containing _space_ separated list of
10739 # directories to be munged by the contents of PATH, which is string
10740 # having a format:
10741 # "DIR[:DIR]:"
10742 # string "DIR[ DIR]" will be prepended to VARIABLE
10743 # ":DIR[:DIR]"
10744 # string "DIR[ DIR]" will be appended to VARIABLE
10745 # "DIRP[:DIRP]::[DIRA:]DIRA"
10746 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10747 # "DIRA[ DIRA]" will be appended to VARIABLE
10748 # "DIR[:DIR]"
10749 # VARIABLE will be replaced by "DIR[ DIR]"
10750 func_munge_path_list ()
10751 {
10752 case x$2 in
10753 x)
10754 ;;
10755 *:)
10756 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10757 ;;
10758 x:*)
10759 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10760 ;;
10761 *::*)
10762 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10763 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10764 ;;
10765 *)
10766 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10767 ;;
10768 esac
10769 }
10770
10771 for ac_header in dlfcn.h
10772 do :
10773 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10774 "
10775 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10776 cat >>confdefs.h <<_ACEOF
10777 #define HAVE_DLFCN_H 1
10778 _ACEOF
10779
10780 fi
10781
10782 done
10783
10784
10785
10786
10787
10788 # Set options
10789 enable_win32_dll=yes
10790
10791 case $host in
10792 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10793 if test -n "$ac_tool_prefix"; then
10794 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10795 set dummy ${ac_tool_prefix}as; ac_word=$2
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10797 $as_echo_n "checking for $ac_word... " >&6; }
10798 if ${ac_cv_prog_AS+:} false; then :
10799 $as_echo_n "(cached) " >&6
10800 else
10801 if test -n "$AS"; then
10802 ac_cv_prog_AS="$AS" # Let the user override the test.
10803 else
10804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10805 for as_dir in $PATH
10806 do
10807 IFS=$as_save_IFS
10808 test -z "$as_dir" && as_dir=.
10809 for ac_exec_ext in '' $ac_executable_extensions; do
10810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10811 ac_cv_prog_AS="${ac_tool_prefix}as"
10812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10813 break 2
10814 fi
10815 done
10816 done
10817 IFS=$as_save_IFS
10818
10819 fi
10820 fi
10821 AS=$ac_cv_prog_AS
10822 if test -n "$AS"; then
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10824 $as_echo "$AS" >&6; }
10825 else
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10827 $as_echo "no" >&6; }
10828 fi
10829
10830
10831 fi
10832 if test -z "$ac_cv_prog_AS"; then
10833 ac_ct_AS=$AS
10834 # Extract the first word of "as", so it can be a program name with args.
10835 set dummy as; ac_word=$2
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10837 $as_echo_n "checking for $ac_word... " >&6; }
10838 if ${ac_cv_prog_ac_ct_AS+:} false; then :
10839 $as_echo_n "(cached) " >&6
10840 else
10841 if test -n "$ac_ct_AS"; then
10842 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10843 else
10844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10845 for as_dir in $PATH
10846 do
10847 IFS=$as_save_IFS
10848 test -z "$as_dir" && as_dir=.
10849 for ac_exec_ext in '' $ac_executable_extensions; do
10850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10851 ac_cv_prog_ac_ct_AS="as"
10852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10853 break 2
10854 fi
10855 done
10856 done
10857 IFS=$as_save_IFS
10858
10859 fi
10860 fi
10861 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10862 if test -n "$ac_ct_AS"; then
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10864 $as_echo "$ac_ct_AS" >&6; }
10865 else
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867 $as_echo "no" >&6; }
10868 fi
10869
10870 if test "x$ac_ct_AS" = x; then
10871 AS="false"
10872 else
10873 case $cross_compiling:$ac_tool_warned in
10874 yes:)
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10877 ac_tool_warned=yes ;;
10878 esac
10879 AS=$ac_ct_AS
10880 fi
10881 else
10882 AS="$ac_cv_prog_AS"
10883 fi
10884
10885 if test -n "$ac_tool_prefix"; then
10886 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10887 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10889 $as_echo_n "checking for $ac_word... " >&6; }
10890 if ${ac_cv_prog_DLLTOOL+:} false; then :
10891 $as_echo_n "(cached) " >&6
10892 else
10893 if test -n "$DLLTOOL"; then
10894 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10895 else
10896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10897 for as_dir in $PATH
10898 do
10899 IFS=$as_save_IFS
10900 test -z "$as_dir" && as_dir=.
10901 for ac_exec_ext in '' $ac_executable_extensions; do
10902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10903 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10905 break 2
10906 fi
10907 done
10908 done
10909 IFS=$as_save_IFS
10910
10911 fi
10912 fi
10913 DLLTOOL=$ac_cv_prog_DLLTOOL
10914 if test -n "$DLLTOOL"; then
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10916 $as_echo "$DLLTOOL" >&6; }
10917 else
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10919 $as_echo "no" >&6; }
10920 fi
10921
10922
10923 fi
10924 if test -z "$ac_cv_prog_DLLTOOL"; then
10925 ac_ct_DLLTOOL=$DLLTOOL
10926 # Extract the first word of "dlltool", so it can be a program name with args.
10927 set dummy dlltool; ac_word=$2
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10929 $as_echo_n "checking for $ac_word... " >&6; }
10930 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10931 $as_echo_n "(cached) " >&6
10932 else
10933 if test -n "$ac_ct_DLLTOOL"; then
10934 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10935 else
10936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10937 for as_dir in $PATH
10938 do
10939 IFS=$as_save_IFS
10940 test -z "$as_dir" && as_dir=.
10941 for ac_exec_ext in '' $ac_executable_extensions; do
10942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10943 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10945 break 2
10946 fi
10947 done
10948 done
10949 IFS=$as_save_IFS
10950
10951 fi
10952 fi
10953 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10954 if test -n "$ac_ct_DLLTOOL"; then
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10956 $as_echo "$ac_ct_DLLTOOL" >&6; }
10957 else
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959 $as_echo "no" >&6; }
10960 fi
10961
10962 if test "x$ac_ct_DLLTOOL" = x; then
10963 DLLTOOL="false"
10964 else
10965 case $cross_compiling:$ac_tool_warned in
10966 yes:)
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10969 ac_tool_warned=yes ;;
10970 esac
10971 DLLTOOL=$ac_ct_DLLTOOL
10972 fi
10973 else
10974 DLLTOOL="$ac_cv_prog_DLLTOOL"
10975 fi
10976
10977 if test -n "$ac_tool_prefix"; then
10978 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10979 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10981 $as_echo_n "checking for $ac_word... " >&6; }
10982 if ${ac_cv_prog_OBJDUMP+:} false; then :
10983 $as_echo_n "(cached) " >&6
10984 else
10985 if test -n "$OBJDUMP"; then
10986 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10987 else
10988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10989 for as_dir in $PATH
10990 do
10991 IFS=$as_save_IFS
10992 test -z "$as_dir" && as_dir=.
10993 for ac_exec_ext in '' $ac_executable_extensions; do
10994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10995 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10997 break 2
10998 fi
10999 done
11000 done
11001 IFS=$as_save_IFS
11002
11003 fi
11004 fi
11005 OBJDUMP=$ac_cv_prog_OBJDUMP
11006 if test -n "$OBJDUMP"; then
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11008 $as_echo "$OBJDUMP" >&6; }
11009 else
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11011 $as_echo "no" >&6; }
11012 fi
11013
11014
11015 fi
11016 if test -z "$ac_cv_prog_OBJDUMP"; then
11017 ac_ct_OBJDUMP=$OBJDUMP
11018 # Extract the first word of "objdump", so it can be a program name with args.
11019 set dummy objdump; ac_word=$2
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11021 $as_echo_n "checking for $ac_word... " >&6; }
11022 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11023 $as_echo_n "(cached) " >&6
11024 else
11025 if test -n "$ac_ct_OBJDUMP"; then
11026 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11027 else
11028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11029 for as_dir in $PATH
11030 do
11031 IFS=$as_save_IFS
11032 test -z "$as_dir" && as_dir=.
11033 for ac_exec_ext in '' $ac_executable_extensions; do
11034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11035 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11037 break 2
11038 fi
11039 done
11040 done
11041 IFS=$as_save_IFS
11042
11043 fi
11044 fi
11045 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11046 if test -n "$ac_ct_OBJDUMP"; then
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11048 $as_echo "$ac_ct_OBJDUMP" >&6; }
11049 else
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11051 $as_echo "no" >&6; }
11052 fi
11053
11054 if test "x$ac_ct_OBJDUMP" = x; then
11055 OBJDUMP="false"
11056 else
11057 case $cross_compiling:$ac_tool_warned in
11058 yes:)
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11061 ac_tool_warned=yes ;;
11062 esac
11063 OBJDUMP=$ac_ct_OBJDUMP
11064 fi
11065 else
11066 OBJDUMP="$ac_cv_prog_OBJDUMP"
11067 fi
11068
11069 ;;
11070 esac
11071
11072 test -z "$AS" && AS=as
11073
11074
11075
11076
11077
11078 test -z "$DLLTOOL" && DLLTOOL=dlltool
11079
11080
11081
11082
11083
11084 test -z "$OBJDUMP" && OBJDUMP=objdump
11085
11086
11087
11088
11089
11090
11091
11092 enable_dlopen=no
11093
11094
11095
11096 # Check whether --enable-shared was given.
11097 if test "${enable_shared+set}" = set; then :
11098 enableval=$enable_shared; p=${PACKAGE-default}
11099 case $enableval in
11100 yes) enable_shared=yes ;;
11101 no) enable_shared=no ;;
11102 *)
11103 enable_shared=no
11104 # Look at the argument we got. We use all the common list separators.
11105 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11106 for pkg in $enableval; do
11107 IFS=$lt_save_ifs
11108 if test "X$pkg" = "X$p"; then
11109 enable_shared=yes
11110 fi
11111 done
11112 IFS=$lt_save_ifs
11113 ;;
11114 esac
11115 else
11116 enable_shared=yes
11117 fi
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127 # Check whether --enable-static was given.
11128 if test "${enable_static+set}" = set; then :
11129 enableval=$enable_static; p=${PACKAGE-default}
11130 case $enableval in
11131 yes) enable_static=yes ;;
11132 no) enable_static=no ;;
11133 *)
11134 enable_static=no
11135 # Look at the argument we got. We use all the common list separators.
11136 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11137 for pkg in $enableval; do
11138 IFS=$lt_save_ifs
11139 if test "X$pkg" = "X$p"; then
11140 enable_static=yes
11141 fi
11142 done
11143 IFS=$lt_save_ifs
11144 ;;
11145 esac
11146 else
11147 enable_static=yes
11148 fi
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159 # Check whether --with-pic was given.
11160 if test "${with_pic+set}" = set; then :
11161 withval=$with_pic; lt_p=${PACKAGE-default}
11162 case $withval in
11163 yes|no) pic_mode=$withval ;;
11164 *)
11165 pic_mode=default
11166 # Look at the argument we got. We use all the common list separators.
11167 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11168 for lt_pkg in $withval; do
11169 IFS=$lt_save_ifs
11170 if test "X$lt_pkg" = "X$lt_p"; then
11171 pic_mode=yes
11172 fi
11173 done
11174 IFS=$lt_save_ifs
11175 ;;
11176 esac
11177 else
11178 pic_mode=default
11179 fi
11180
11181
11182
11183
11184
11185
11186
11187
11188 # Check whether --enable-fast-install was given.
11189 if test "${enable_fast_install+set}" = set; then :
11190 enableval=$enable_fast_install; p=${PACKAGE-default}
11191 case $enableval in
11192 yes) enable_fast_install=yes ;;
11193 no) enable_fast_install=no ;;
11194 *)
11195 enable_fast_install=no
11196 # Look at the argument we got. We use all the common list separators.
11197 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11198 for pkg in $enableval; do
11199 IFS=$lt_save_ifs
11200 if test "X$pkg" = "X$p"; then
11201 enable_fast_install=yes
11202 fi
11203 done
11204 IFS=$lt_save_ifs
11205 ;;
11206 esac
11207 else
11208 enable_fast_install=yes
11209 fi
11210
11211
11212
11213
11214
11215
11216
11217
11218 shared_archive_member_spec=
11219 case $host,$enable_shared in
11220 power*-*-aix[5-9]*,yes)
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11222 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11223
11224 # Check whether --with-aix-soname was given.
11225 if test "${with_aix_soname+set}" = set; then :
11226 withval=$with_aix_soname; case $withval in
11227 aix|svr4|both)
11228 ;;
11229 *)
11230 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11231 ;;
11232 esac
11233 lt_cv_with_aix_soname=$with_aix_soname
11234 else
11235 if ${lt_cv_with_aix_soname+:} false; then :
11236 $as_echo_n "(cached) " >&6
11237 else
11238 lt_cv_with_aix_soname=aix
11239 fi
11240
11241 with_aix_soname=$lt_cv_with_aix_soname
11242 fi
11243
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11245 $as_echo "$with_aix_soname" >&6; }
11246 if test aix != "$with_aix_soname"; then
11247 # For the AIX way of multilib, we name the shared archive member
11248 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11249 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11250 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11251 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11252 if test 64 = "${OBJECT_MODE-32}"; then
11253 shared_archive_member_spec=shr_64
11254 else
11255 shared_archive_member_spec=shr
11256 fi
11257 fi
11258 ;;
11259 *)
11260 with_aix_soname=aix
11261 ;;
11262 esac
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273 # This can be used to rebuild libtool when needed
11274 LIBTOOL_DEPS=$ltmain
11275
11276 # Always use our own libtool.
11277 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308 test -z "$LN_S" && LN_S="ln -s"
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323 if test -n "${ZSH_VERSION+set}"; then
11324 setopt NO_GLOB_SUBST
11325 fi
11326
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11328 $as_echo_n "checking for objdir... " >&6; }
11329 if ${lt_cv_objdir+:} false; then :
11330 $as_echo_n "(cached) " >&6
11331 else
11332 rm -f .libs 2>/dev/null
11333 mkdir .libs 2>/dev/null
11334 if test -d .libs; then
11335 lt_cv_objdir=.libs
11336 else
11337 # MS-DOS does not allow filenames that begin with a dot.
11338 lt_cv_objdir=_libs
11339 fi
11340 rmdir .libs 2>/dev/null
11341 fi
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11343 $as_echo "$lt_cv_objdir" >&6; }
11344 objdir=$lt_cv_objdir
11345
11346
11347
11348
11349
11350 cat >>confdefs.h <<_ACEOF
11351 #define LT_OBJDIR "$lt_cv_objdir/"
11352 _ACEOF
11353
11354
11355
11356
11357 case $host_os in
11358 aix3*)
11359 # AIX sometimes has problems with the GCC collect2 program. For some
11360 # reason, if we set the COLLECT_NAMES environment variable, the problems
11361 # vanish in a puff of smoke.
11362 if test set != "${COLLECT_NAMES+set}"; then
11363 COLLECT_NAMES=
11364 export COLLECT_NAMES
11365 fi
11366 ;;
11367 esac
11368
11369 # Global variables:
11370 ofile=libtool
11371 can_build_shared=yes
11372
11373 # All known linkers require a '.a' archive for static linking (except MSVC,
11374 # which needs '.lib').
11375 libext=a
11376
11377 with_gnu_ld=$lt_cv_prog_gnu_ld
11378
11379 old_CC=$CC
11380 old_CFLAGS=$CFLAGS
11381
11382 # Set sane defaults for various variables
11383 test -z "$CC" && CC=cc
11384 test -z "$LTCC" && LTCC=$CC
11385 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11386 test -z "$LD" && LD=ld
11387 test -z "$ac_objext" && ac_objext=o
11388
11389 func_cc_basename $compiler
11390 cc_basename=$func_cc_basename_result
11391
11392
11393 # Only perform the check for file, if the check method requires it
11394 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11395 case $deplibs_check_method in
11396 file_magic*)
11397 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11399 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11400 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11401 $as_echo_n "(cached) " >&6
11402 else
11403 case $MAGIC_CMD in
11404 [\\/*] | ?:[\\/]*)
11405 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11406 ;;
11407 *)
11408 lt_save_MAGIC_CMD=$MAGIC_CMD
11409 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11410 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11411 for ac_dir in $ac_dummy; do
11412 IFS=$lt_save_ifs
11413 test -z "$ac_dir" && ac_dir=.
11414 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11415 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11416 if test -n "$file_magic_test_file"; then
11417 case $deplibs_check_method in
11418 "file_magic "*)
11419 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11420 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11421 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11422 $EGREP "$file_magic_regex" > /dev/null; then
11423 :
11424 else
11425 cat <<_LT_EOF 1>&2
11426
11427 *** Warning: the command libtool uses to detect shared libraries,
11428 *** $file_magic_cmd, produces output that libtool cannot recognize.
11429 *** The result is that libtool may fail to recognize shared libraries
11430 *** as such. This will affect the creation of libtool libraries that
11431 *** depend on shared libraries, but programs linked with such libtool
11432 *** libraries will work regardless of this problem. Nevertheless, you
11433 *** may want to report the problem to your system manager and/or to
11434 *** bug-libtool (at] gnu.org
11435
11436 _LT_EOF
11437 fi ;;
11438 esac
11439 fi
11440 break
11441 fi
11442 done
11443 IFS=$lt_save_ifs
11444 MAGIC_CMD=$lt_save_MAGIC_CMD
11445 ;;
11446 esac
11447 fi
11448
11449 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11450 if test -n "$MAGIC_CMD"; then
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11452 $as_echo "$MAGIC_CMD" >&6; }
11453 else
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455 $as_echo "no" >&6; }
11456 fi
11457
11458
11459
11460
11461
11462 if test -z "$lt_cv_path_MAGIC_CMD"; then
11463 if test -n "$ac_tool_prefix"; then
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11465 $as_echo_n "checking for file... " >&6; }
11466 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11467 $as_echo_n "(cached) " >&6
11468 else
11469 case $MAGIC_CMD in
11470 [\\/*] | ?:[\\/]*)
11471 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11472 ;;
11473 *)
11474 lt_save_MAGIC_CMD=$MAGIC_CMD
11475 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11476 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11477 for ac_dir in $ac_dummy; do
11478 IFS=$lt_save_ifs
11479 test -z "$ac_dir" && ac_dir=.
11480 if test -f "$ac_dir/file"; then
11481 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11482 if test -n "$file_magic_test_file"; then
11483 case $deplibs_check_method in
11484 "file_magic "*)
11485 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11486 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11487 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11488 $EGREP "$file_magic_regex" > /dev/null; then
11489 :
11490 else
11491 cat <<_LT_EOF 1>&2
11492
11493 *** Warning: the command libtool uses to detect shared libraries,
11494 *** $file_magic_cmd, produces output that libtool cannot recognize.
11495 *** The result is that libtool may fail to recognize shared libraries
11496 *** as such. This will affect the creation of libtool libraries that
11497 *** depend on shared libraries, but programs linked with such libtool
11498 *** libraries will work regardless of this problem. Nevertheless, you
11499 *** may want to report the problem to your system manager and/or to
11500 *** bug-libtool (at] gnu.org
11501
11502 _LT_EOF
11503 fi ;;
11504 esac
11505 fi
11506 break
11507 fi
11508 done
11509 IFS=$lt_save_ifs
11510 MAGIC_CMD=$lt_save_MAGIC_CMD
11511 ;;
11512 esac
11513 fi
11514
11515 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11516 if test -n "$MAGIC_CMD"; then
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11518 $as_echo "$MAGIC_CMD" >&6; }
11519 else
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11521 $as_echo "no" >&6; }
11522 fi
11523
11524
11525 else
11526 MAGIC_CMD=:
11527 fi
11528 fi
11529
11530 fi
11531 ;;
11532 esac
11533
11534 # Use C for the default configuration in the libtool script
11535
11536 lt_save_CC=$CC
11537 ac_ext=c
11538 ac_cpp='$CPP $CPPFLAGS'
11539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11542
11543
11544 # Source file extension for C test sources.
11545 ac_ext=c
11546
11547 # Object file extension for compiled C test sources.
11548 objext=o
11549 objext=$objext
11550
11551 # Code to be used in simple compile tests
11552 lt_simple_compile_test_code="int some_variable = 0;"
11553
11554 # Code to be used in simple link tests
11555 lt_simple_link_test_code='int main(){return(0);}'
11556
11557
11558
11559
11560
11561
11562
11563 # If no C compiler was specified, use CC.
11564 LTCC=${LTCC-"$CC"}
11565
11566 # If no C compiler flags were specified, use CFLAGS.
11567 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11568
11569 # Allow CC to be a program name with arguments.
11570 compiler=$CC
11571
11572 # Save the default compiler, since it gets overwritten when the other
11573 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11574 compiler_DEFAULT=$CC
11575
11576 # save warnings/boilerplate of simple test code
11577 ac_outfile=conftest.$ac_objext
11578 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11579 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11580 _lt_compiler_boilerplate=`cat conftest.err`
11581 $RM conftest*
11582
11583 ac_outfile=conftest.$ac_objext
11584 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11585 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11586 _lt_linker_boilerplate=`cat conftest.err`
11587 $RM -r conftest*
11588
11589
11590 ## CAVEAT EMPTOR:
11591 ## There is no encapsulation within the following macros, do not change
11592 ## the running order or otherwise move them around unless you know exactly
11593 ## what you are doing...
11594 if test -n "$compiler"; then
11595
11596 lt_prog_compiler_no_builtin_flag=
11597
11598 if test yes = "$GCC"; then
11599 case $cc_basename in
11600 nvcc*)
11601 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11602 *)
11603 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11604 esac
11605
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11607 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11608 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11609 $as_echo_n "(cached) " >&6
11610 else
11611 lt_cv_prog_compiler_rtti_exceptions=no
11612 ac_outfile=conftest.$ac_objext
11613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11614 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11615 # Insert the option either (1) after the last *FLAGS variable, or
11616 # (2) before a word containing "conftest.", or (3) at the end.
11617 # Note that $ac_compile itself does not contain backslashes and begins
11618 # with a dollar sign (not a hyphen), so the echo should work correctly.
11619 # The option is referenced via a variable to avoid confusing sed.
11620 lt_compile=`echo "$ac_compile" | $SED \
11621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11623 -e 's:$: $lt_compiler_flag:'`
11624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11625 (eval "$lt_compile" 2>conftest.err)
11626 ac_status=$?
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 if (exit $ac_status) && test -s "$ac_outfile"; then
11630 # The compiler can only warn and ignore the option if not recognized
11631 # So say no if there are warnings other than the usual output.
11632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11634 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11635 lt_cv_prog_compiler_rtti_exceptions=yes
11636 fi
11637 fi
11638 $RM conftest*
11639
11640 fi
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11642 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11643
11644 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11645 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11646 else
11647 :
11648 fi
11649
11650 fi
11651
11652
11653
11654
11655
11656
11657 lt_prog_compiler_wl=
11658 lt_prog_compiler_pic=
11659 lt_prog_compiler_static=
11660
11661
11662 if test yes = "$GCC"; then
11663 lt_prog_compiler_wl='-Wl,'
11664 lt_prog_compiler_static='-static'
11665
11666 case $host_os in
11667 aix*)
11668 # All AIX code is PIC.
11669 if test ia64 = "$host_cpu"; then
11670 # AIX 5 now supports IA64 processor
11671 lt_prog_compiler_static='-Bstatic'
11672 fi
11673 lt_prog_compiler_pic='-fPIC'
11674 ;;
11675
11676 amigaos*)
11677 case $host_cpu in
11678 powerpc)
11679 # see comment about AmigaOS4 .so support
11680 lt_prog_compiler_pic='-fPIC'
11681 ;;
11682 m68k)
11683 # FIXME: we need at least 68020 code to build shared libraries, but
11684 # adding the '-m68020' flag to GCC prevents building anything better,
11685 # like '-m68040'.
11686 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11687 ;;
11688 esac
11689 ;;
11690
11691 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11692 # PIC is the default for these OSes.
11693 ;;
11694
11695 mingw* | cygwin* | pw32* | os2* | cegcc*)
11696 # This hack is so that the source file can tell whether it is being
11697 # built for inclusion in a dll (and should export symbols for example).
11698 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11699 # (--disable-auto-import) libraries
11700 lt_prog_compiler_pic='-DDLL_EXPORT'
11701 case $host_os in
11702 os2*)
11703 lt_prog_compiler_static='$wl-static'
11704 ;;
11705 esac
11706 ;;
11707
11708 darwin* | rhapsody*)
11709 # PIC is the default on this platform
11710 # Common symbols not allowed in MH_DYLIB files
11711 lt_prog_compiler_pic='-fno-common'
11712 ;;
11713
11714 haiku*)
11715 # PIC is the default for Haiku.
11716 # The "-static" flag exists, but is broken.
11717 lt_prog_compiler_static=
11718 ;;
11719
11720 hpux*)
11721 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11722 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11723 # sets the default TLS model and affects inlining.
11724 case $host_cpu in
11725 hppa*64*)
11726 # +Z the default
11727 ;;
11728 *)
11729 lt_prog_compiler_pic='-fPIC'
11730 ;;
11731 esac
11732 ;;
11733
11734 interix[3-9]*)
11735 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11736 # Instead, we relocate shared libraries at runtime.
11737 ;;
11738
11739 msdosdjgpp*)
11740 # Just because we use GCC doesn't mean we suddenly get shared libraries
11741 # on systems that don't support them.
11742 lt_prog_compiler_can_build_shared=no
11743 enable_shared=no
11744 ;;
11745
11746 *nto* | *qnx*)
11747 # QNX uses GNU C++, but need to define -shared option too, otherwise
11748 # it will coredump.
11749 lt_prog_compiler_pic='-fPIC -shared'
11750 ;;
11751
11752 sysv4*MP*)
11753 if test -d /usr/nec; then
11754 lt_prog_compiler_pic=-Kconform_pic
11755 fi
11756 ;;
11757
11758 *)
11759 lt_prog_compiler_pic='-fPIC'
11760 ;;
11761 esac
11762
11763 case $cc_basename in
11764 nvcc*) # Cuda Compiler Driver 2.2
11765 lt_prog_compiler_wl='-Xlinker '
11766 if test -n "$lt_prog_compiler_pic"; then
11767 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11768 fi
11769 ;;
11770 esac
11771 else
11772 # PORTME Check for flag to pass linker flags through the system compiler.
11773 case $host_os in
11774 aix*)
11775 lt_prog_compiler_wl='-Wl,'
11776 if test ia64 = "$host_cpu"; then
11777 # AIX 5 now supports IA64 processor
11778 lt_prog_compiler_static='-Bstatic'
11779 else
11780 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11781 fi
11782 ;;
11783
11784 darwin* | rhapsody*)
11785 # PIC is the default on this platform
11786 # Common symbols not allowed in MH_DYLIB files
11787 lt_prog_compiler_pic='-fno-common'
11788 case $cc_basename in
11789 nagfor*)
11790 # NAG Fortran compiler
11791 lt_prog_compiler_wl='-Wl,-Wl,,'
11792 lt_prog_compiler_pic='-PIC'
11793 lt_prog_compiler_static='-Bstatic'
11794 ;;
11795 esac
11796 ;;
11797
11798 mingw* | cygwin* | pw32* | os2* | cegcc*)
11799 # This hack is so that the source file can tell whether it is being
11800 # built for inclusion in a dll (and should export symbols for example).
11801 lt_prog_compiler_pic='-DDLL_EXPORT'
11802 case $host_os in
11803 os2*)
11804 lt_prog_compiler_static='$wl-static'
11805 ;;
11806 esac
11807 ;;
11808
11809 hpux9* | hpux10* | hpux11*)
11810 lt_prog_compiler_wl='-Wl,'
11811 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11812 # not for PA HP-UX.
11813 case $host_cpu in
11814 hppa*64*|ia64*)
11815 # +Z the default
11816 ;;
11817 *)
11818 lt_prog_compiler_pic='+Z'
11819 ;;
11820 esac
11821 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11822 lt_prog_compiler_static='$wl-a ${wl}archive'
11823 ;;
11824
11825 irix5* | irix6* | nonstopux*)
11826 lt_prog_compiler_wl='-Wl,'
11827 # PIC (with -KPIC) is the default.
11828 lt_prog_compiler_static='-non_shared'
11829 ;;
11830
11831 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11832 case $cc_basename in
11833 # old Intel for x86_64, which still supported -KPIC.
11834 ecc*)
11835 lt_prog_compiler_wl='-Wl,'
11836 lt_prog_compiler_pic='-KPIC'
11837 lt_prog_compiler_static='-static'
11838 ;;
11839 # icc used to be incompatible with GCC.
11840 # ICC 10 doesn't accept -KPIC any more.
11841 icc* | ifort*)
11842 lt_prog_compiler_wl='-Wl,'
11843 lt_prog_compiler_pic='-fPIC'
11844 lt_prog_compiler_static='-static'
11845 ;;
11846 # Lahey Fortran 8.1.
11847 lf95*)
11848 lt_prog_compiler_wl='-Wl,'
11849 lt_prog_compiler_pic='--shared'
11850 lt_prog_compiler_static='--static'
11851 ;;
11852 nagfor*)
11853 # NAG Fortran compiler
11854 lt_prog_compiler_wl='-Wl,-Wl,,'
11855 lt_prog_compiler_pic='-PIC'
11856 lt_prog_compiler_static='-Bstatic'
11857 ;;
11858 tcc*)
11859 # Fabrice Bellard et al's Tiny C Compiler
11860 lt_prog_compiler_wl='-Wl,'
11861 lt_prog_compiler_pic='-fPIC'
11862 lt_prog_compiler_static='-static'
11863 ;;
11864 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11865 # Portland Group compilers (*not* the Pentium gcc compiler,
11866 # which looks to be a dead project)
11867 lt_prog_compiler_wl='-Wl,'
11868 lt_prog_compiler_pic='-fpic'
11869 lt_prog_compiler_static='-Bstatic'
11870 ;;
11871 ccc*)
11872 lt_prog_compiler_wl='-Wl,'
11873 # All Alpha code is PIC.
11874 lt_prog_compiler_static='-non_shared'
11875 ;;
11876 xl* | bgxl* | bgf* | mpixl*)
11877 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11878 lt_prog_compiler_wl='-Wl,'
11879 lt_prog_compiler_pic='-qpic'
11880 lt_prog_compiler_static='-qstaticlink'
11881 ;;
11882 *)
11883 case `$CC -V 2>&1 | sed 5q` in
11884 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11885 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11886 lt_prog_compiler_pic='-KPIC'
11887 lt_prog_compiler_static='-Bstatic'
11888 lt_prog_compiler_wl=''
11889 ;;
11890 *Sun\ F* | *Sun*Fortran*)
11891 lt_prog_compiler_pic='-KPIC'
11892 lt_prog_compiler_static='-Bstatic'
11893 lt_prog_compiler_wl='-Qoption ld '
11894 ;;
11895 *Sun\ C*)
11896 # Sun C 5.9
11897 lt_prog_compiler_pic='-KPIC'
11898 lt_prog_compiler_static='-Bstatic'
11899 lt_prog_compiler_wl='-Wl,'
11900 ;;
11901 *Intel*\ [CF]*Compiler*)
11902 lt_prog_compiler_wl='-Wl,'
11903 lt_prog_compiler_pic='-fPIC'
11904 lt_prog_compiler_static='-static'
11905 ;;
11906 *Portland\ Group*)
11907 lt_prog_compiler_wl='-Wl,'
11908 lt_prog_compiler_pic='-fpic'
11909 lt_prog_compiler_static='-Bstatic'
11910 ;;
11911 esac
11912 ;;
11913 esac
11914 ;;
11915
11916 newsos6)
11917 lt_prog_compiler_pic='-KPIC'
11918 lt_prog_compiler_static='-Bstatic'
11919 ;;
11920
11921 *nto* | *qnx*)
11922 # QNX uses GNU C++, but need to define -shared option too, otherwise
11923 # it will coredump.
11924 lt_prog_compiler_pic='-fPIC -shared'
11925 ;;
11926
11927 osf3* | osf4* | osf5*)
11928 lt_prog_compiler_wl='-Wl,'
11929 # All OSF/1 code is PIC.
11930 lt_prog_compiler_static='-non_shared'
11931 ;;
11932
11933 rdos*)
11934 lt_prog_compiler_static='-non_shared'
11935 ;;
11936
11937 solaris*)
11938 lt_prog_compiler_pic='-KPIC'
11939 lt_prog_compiler_static='-Bstatic'
11940 case $cc_basename in
11941 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11942 lt_prog_compiler_wl='-Qoption ld ';;
11943 *)
11944 lt_prog_compiler_wl='-Wl,';;
11945 esac
11946 ;;
11947
11948 sunos4*)
11949 lt_prog_compiler_wl='-Qoption ld '
11950 lt_prog_compiler_pic='-PIC'
11951 lt_prog_compiler_static='-Bstatic'
11952 ;;
11953
11954 sysv4 | sysv4.2uw2* | sysv4.3*)
11955 lt_prog_compiler_wl='-Wl,'
11956 lt_prog_compiler_pic='-KPIC'
11957 lt_prog_compiler_static='-Bstatic'
11958 ;;
11959
11960 sysv4*MP*)
11961 if test -d /usr/nec; then
11962 lt_prog_compiler_pic='-Kconform_pic'
11963 lt_prog_compiler_static='-Bstatic'
11964 fi
11965 ;;
11966
11967 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11968 lt_prog_compiler_wl='-Wl,'
11969 lt_prog_compiler_pic='-KPIC'
11970 lt_prog_compiler_static='-Bstatic'
11971 ;;
11972
11973 unicos*)
11974 lt_prog_compiler_wl='-Wl,'
11975 lt_prog_compiler_can_build_shared=no
11976 ;;
11977
11978 uts4*)
11979 lt_prog_compiler_pic='-pic'
11980 lt_prog_compiler_static='-Bstatic'
11981 ;;
11982
11983 *)
11984 lt_prog_compiler_can_build_shared=no
11985 ;;
11986 esac
11987 fi
11988
11989 case $host_os in
11990 # For platforms that do not support PIC, -DPIC is meaningless:
11991 *djgpp*)
11992 lt_prog_compiler_pic=
11993 ;;
11994 *)
11995 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11996 ;;
11997 esac
11998
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12000 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12001 if ${lt_cv_prog_compiler_pic+:} false; then :
12002 $as_echo_n "(cached) " >&6
12003 else
12004 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12005 fi
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12007 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12008 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12009
12010 #
12011 # Check to make sure the PIC flag actually works.
12012 #
12013 if test -n "$lt_prog_compiler_pic"; then
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12015 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12016 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12017 $as_echo_n "(cached) " >&6
12018 else
12019 lt_cv_prog_compiler_pic_works=no
12020 ac_outfile=conftest.$ac_objext
12021 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12022 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12023 # Insert the option either (1) after the last *FLAGS variable, or
12024 # (2) before a word containing "conftest.", or (3) at the end.
12025 # Note that $ac_compile itself does not contain backslashes and begins
12026 # with a dollar sign (not a hyphen), so the echo should work correctly.
12027 # The option is referenced via a variable to avoid confusing sed.
12028 lt_compile=`echo "$ac_compile" | $SED \
12029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12031 -e 's:$: $lt_compiler_flag:'`
12032 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12033 (eval "$lt_compile" 2>conftest.err)
12034 ac_status=$?
12035 cat conftest.err >&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 if (exit $ac_status) && test -s "$ac_outfile"; then
12038 # The compiler can only warn and ignore the option if not recognized
12039 # So say no if there are warnings other than the usual output.
12040 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12042 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12043 lt_cv_prog_compiler_pic_works=yes
12044 fi
12045 fi
12046 $RM conftest*
12047
12048 fi
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12050 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12051
12052 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12053 case $lt_prog_compiler_pic in
12054 "" | " "*) ;;
12055 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12056 esac
12057 else
12058 lt_prog_compiler_pic=
12059 lt_prog_compiler_can_build_shared=no
12060 fi
12061
12062 fi
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074 #
12075 # Check to make sure the static flag actually works.
12076 #
12077 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12079 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12080 if ${lt_cv_prog_compiler_static_works+:} false; then :
12081 $as_echo_n "(cached) " >&6
12082 else
12083 lt_cv_prog_compiler_static_works=no
12084 save_LDFLAGS=$LDFLAGS
12085 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12086 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12087 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12088 # The linker can only warn and ignore the option if not recognized
12089 # So say no if there are warnings
12090 if test -s conftest.err; then
12091 # Append any errors to the config.log.
12092 cat conftest.err 1>&5
12093 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12094 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12095 if diff conftest.exp conftest.er2 >/dev/null; then
12096 lt_cv_prog_compiler_static_works=yes
12097 fi
12098 else
12099 lt_cv_prog_compiler_static_works=yes
12100 fi
12101 fi
12102 $RM -r conftest*
12103 LDFLAGS=$save_LDFLAGS
12104
12105 fi
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12107 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12108
12109 if test yes = "$lt_cv_prog_compiler_static_works"; then
12110 :
12111 else
12112 lt_prog_compiler_static=
12113 fi
12114
12115
12116
12117
12118
12119
12120
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12122 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12123 if ${lt_cv_prog_compiler_c_o+:} false; then :
12124 $as_echo_n "(cached) " >&6
12125 else
12126 lt_cv_prog_compiler_c_o=no
12127 $RM -r conftest 2>/dev/null
12128 mkdir conftest
12129 cd conftest
12130 mkdir out
12131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12132
12133 lt_compiler_flag="-o out/conftest2.$ac_objext"
12134 # Insert the option either (1) after the last *FLAGS variable, or
12135 # (2) before a word containing "conftest.", or (3) at the end.
12136 # Note that $ac_compile itself does not contain backslashes and begins
12137 # with a dollar sign (not a hyphen), so the echo should work correctly.
12138 lt_compile=`echo "$ac_compile" | $SED \
12139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12141 -e 's:$: $lt_compiler_flag:'`
12142 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12143 (eval "$lt_compile" 2>out/conftest.err)
12144 ac_status=$?
12145 cat out/conftest.err >&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12148 then
12149 # The compiler can only warn and ignore the option if not recognized
12150 # So say no if there are warnings
12151 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12152 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12153 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12154 lt_cv_prog_compiler_c_o=yes
12155 fi
12156 fi
12157 chmod u+w . 2>&5
12158 $RM conftest*
12159 # SGI C++ compiler will create directory out/ii_files/ for
12160 # template instantiation
12161 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12162 $RM out/* && rmdir out
12163 cd ..
12164 $RM -r conftest
12165 $RM conftest*
12166
12167 fi
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12169 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12170
12171
12172
12173
12174
12175
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12177 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12178 if ${lt_cv_prog_compiler_c_o+:} false; then :
12179 $as_echo_n "(cached) " >&6
12180 else
12181 lt_cv_prog_compiler_c_o=no
12182 $RM -r conftest 2>/dev/null
12183 mkdir conftest
12184 cd conftest
12185 mkdir out
12186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12187
12188 lt_compiler_flag="-o out/conftest2.$ac_objext"
12189 # Insert the option either (1) after the last *FLAGS variable, or
12190 # (2) before a word containing "conftest.", or (3) at the end.
12191 # Note that $ac_compile itself does not contain backslashes and begins
12192 # with a dollar sign (not a hyphen), so the echo should work correctly.
12193 lt_compile=`echo "$ac_compile" | $SED \
12194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12196 -e 's:$: $lt_compiler_flag:'`
12197 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12198 (eval "$lt_compile" 2>out/conftest.err)
12199 ac_status=$?
12200 cat out/conftest.err >&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12203 then
12204 # The compiler can only warn and ignore the option if not recognized
12205 # So say no if there are warnings
12206 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12207 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12208 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12209 lt_cv_prog_compiler_c_o=yes
12210 fi
12211 fi
12212 chmod u+w . 2>&5
12213 $RM conftest*
12214 # SGI C++ compiler will create directory out/ii_files/ for
12215 # template instantiation
12216 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12217 $RM out/* && rmdir out
12218 cd ..
12219 $RM -r conftest
12220 $RM conftest*
12221
12222 fi
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12224 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12225
12226
12227
12228
12229 hard_links=nottested
12230 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12231 # do not overwrite the value of need_locks provided by the user
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12233 $as_echo_n "checking if we can lock with hard links... " >&6; }
12234 hard_links=yes
12235 $RM conftest*
12236 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12237 touch conftest.a
12238 ln conftest.a conftest.b 2>&5 || hard_links=no
12239 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12241 $as_echo "$hard_links" >&6; }
12242 if test no = "$hard_links"; then
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12244 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12245 need_locks=warn
12246 fi
12247 else
12248 need_locks=no
12249 fi
12250
12251
12252
12253
12254
12255
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12257 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12258
12259 runpath_var=
12260 allow_undefined_flag=
12261 always_export_symbols=no
12262 archive_cmds=
12263 archive_expsym_cmds=
12264 compiler_needs_object=no
12265 enable_shared_with_static_runtimes=no
12266 export_dynamic_flag_spec=
12267 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12268 hardcode_automatic=no
12269 hardcode_direct=no
12270 hardcode_direct_absolute=no
12271 hardcode_libdir_flag_spec=
12272 hardcode_libdir_separator=
12273 hardcode_minus_L=no
12274 hardcode_shlibpath_var=unsupported
12275 inherit_rpath=no
12276 link_all_deplibs=unknown
12277 module_cmds=
12278 module_expsym_cmds=
12279 old_archive_from_new_cmds=
12280 old_archive_from_expsyms_cmds=
12281 thread_safe_flag_spec=
12282 whole_archive_flag_spec=
12283 # include_expsyms should be a list of space-separated symbols to be *always*
12284 # included in the symbol list
12285 include_expsyms=
12286 # exclude_expsyms can be an extended regexp of symbols to exclude
12287 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12288 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12289 # as well as any symbol that contains 'd'.
12290 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12291 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12292 # platforms (ab)use it in PIC code, but their linkers get confused if
12293 # the symbol is explicitly referenced. Since portable code cannot
12294 # rely on this symbol name, it's probably fine to never include it in
12295 # preloaded symbol tables.
12296 # Exclude shared library initialization/finalization symbols.
12297 extract_expsyms_cmds=
12298
12299 case $host_os in
12300 cygwin* | mingw* | pw32* | cegcc*)
12301 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12302 # When not using gcc, we currently assume that we are using
12303 # Microsoft Visual C++.
12304 if test yes != "$GCC"; then
12305 with_gnu_ld=no
12306 fi
12307 ;;
12308 interix*)
12309 # we just hope/assume this is gcc and not c89 (= MSVC++)
12310 with_gnu_ld=yes
12311 ;;
12312 openbsd* | bitrig*)
12313 with_gnu_ld=no
12314 ;;
12315 linux* | k*bsd*-gnu | gnu*)
12316 link_all_deplibs=no
12317 ;;
12318 esac
12319
12320 ld_shlibs=yes
12321
12322 # On some targets, GNU ld is compatible enough with the native linker
12323 # that we're better off using the native interface for both.
12324 lt_use_gnu_ld_interface=no
12325 if test yes = "$with_gnu_ld"; then
12326 case $host_os in
12327 aix*)
12328 # The AIX port of GNU ld has always aspired to compatibility
12329 # with the native linker. However, as the warning in the GNU ld
12330 # block says, versions before 2.19.5* couldn't really create working
12331 # shared libraries, regardless of the interface used.
12332 case `$LD -v 2>&1` in
12333 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12334 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12335 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12336 *)
12337 lt_use_gnu_ld_interface=yes
12338 ;;
12339 esac
12340 ;;
12341 *)
12342 lt_use_gnu_ld_interface=yes
12343 ;;
12344 esac
12345 fi
12346
12347 if test yes = "$lt_use_gnu_ld_interface"; then
12348 # If archive_cmds runs LD, not CC, wlarc should be empty
12349 wlarc='$wl'
12350
12351 # Set some defaults for GNU ld with shared library support. These
12352 # are reset later if shared libraries are not supported. Putting them
12353 # here allows them to be overridden if necessary.
12354 runpath_var=LD_RUN_PATH
12355 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12356 export_dynamic_flag_spec='$wl--export-dynamic'
12357 # ancient GNU ld didn't support --whole-archive et. al.
12358 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12359 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12360 else
12361 whole_archive_flag_spec=
12362 fi
12363 supports_anon_versioning=no
12364 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12365 *GNU\ gold*) supports_anon_versioning=yes ;;
12366 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12367 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12368 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12369 *\ 2.11.*) ;; # other 2.11 versions
12370 *) supports_anon_versioning=yes ;;
12371 esac
12372
12373 # See if GNU ld supports shared libraries.
12374 case $host_os in
12375 aix[3-9]*)
12376 # On AIX/PPC, the GNU linker is very broken
12377 if test ia64 != "$host_cpu"; then
12378 ld_shlibs=no
12379 cat <<_LT_EOF 1>&2
12380
12381 *** Warning: the GNU linker, at least up to release 2.19, is reported
12382 *** to be unable to reliably create shared libraries on AIX.
12383 *** Therefore, libtool is disabling shared libraries support. If you
12384 *** really care for shared libraries, you may want to install binutils
12385 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12386 *** You will then need to restart the configuration process.
12387
12388 _LT_EOF
12389 fi
12390 ;;
12391
12392 amigaos*)
12393 case $host_cpu in
12394 powerpc)
12395 # see comment about AmigaOS4 .so support
12396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12397 archive_expsym_cmds=''
12398 ;;
12399 m68k)
12400 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)'
12401 hardcode_libdir_flag_spec='-L$libdir'
12402 hardcode_minus_L=yes
12403 ;;
12404 esac
12405 ;;
12406
12407 beos*)
12408 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12409 allow_undefined_flag=unsupported
12410 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
12411 # support --undefined. This deserves some investigation. FIXME
12412 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12413 else
12414 ld_shlibs=no
12415 fi
12416 ;;
12417
12418 cygwin* | mingw* | pw32* | cegcc*)
12419 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12420 # as there is no search path for DLLs.
12421 hardcode_libdir_flag_spec='-L$libdir'
12422 export_dynamic_flag_spec='$wl--export-all-symbols'
12423 allow_undefined_flag=unsupported
12424 always_export_symbols=no
12425 enable_shared_with_static_runtimes=yes
12426 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'
12427 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12428
12429 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12431 # If the export-symbols file already is a .def file, use it as
12432 # is; otherwise, prepend EXPORTS...
12433 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12434 cp $export_symbols $output_objdir/$soname.def;
12435 else
12436 echo EXPORTS > $output_objdir/$soname.def;
12437 cat $export_symbols >> $output_objdir/$soname.def;
12438 fi~
12439 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12440 else
12441 ld_shlibs=no
12442 fi
12443 ;;
12444
12445 haiku*)
12446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12447 link_all_deplibs=yes
12448 ;;
12449
12450 os2*)
12451 hardcode_libdir_flag_spec='-L$libdir'
12452 hardcode_minus_L=yes
12453 allow_undefined_flag=unsupported
12454 shrext_cmds=.dll
12455 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12456 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12457 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12458 $ECHO EXPORTS >> $output_objdir/$libname.def~
12459 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12460 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12461 emximp -o $lib $output_objdir/$libname.def'
12462 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12463 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12464 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12465 $ECHO EXPORTS >> $output_objdir/$libname.def~
12466 prefix_cmds="$SED"~
12467 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12468 prefix_cmds="$prefix_cmds -e 1d";
12469 fi~
12470 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12471 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12472 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12473 emximp -o $lib $output_objdir/$libname.def'
12474 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12475 enable_shared_with_static_runtimes=yes
12476 ;;
12477
12478 interix[3-9]*)
12479 hardcode_direct=no
12480 hardcode_shlibpath_var=no
12481 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12482 export_dynamic_flag_spec='$wl-E'
12483 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12484 # Instead, shared libraries are loaded at an image base (0x10000000 by
12485 # default) and relocated if they conflict, which is a slow very memory
12486 # consuming and fragmenting process. To avoid this, we pick a random,
12487 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12488 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12489 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12490 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'
12491 ;;
12492
12493 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12494 tmp_diet=no
12495 if test linux-dietlibc = "$host_os"; then
12496 case $cc_basename in
12497 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12498 esac
12499 fi
12500 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12501 && test no = "$tmp_diet"
12502 then
12503 tmp_addflag=' $pic_flag'
12504 tmp_sharedflag='-shared'
12505 case $cc_basename,$host_cpu in
12506 pgcc*) # Portland Group C compiler
12507 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'
12508 tmp_addflag=' $pic_flag'
12509 ;;
12510 pgf77* | pgf90* | pgf95* | pgfortran*)
12511 # Portland Group f77 and f90 compilers
12512 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'
12513 tmp_addflag=' $pic_flag -Mnomain' ;;
12514 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12515 tmp_addflag=' -i_dynamic' ;;
12516 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12517 tmp_addflag=' -i_dynamic -nofor_main' ;;
12518 ifc* | ifort*) # Intel Fortran compiler
12519 tmp_addflag=' -nofor_main' ;;
12520 lf95*) # Lahey Fortran 8.1
12521 whole_archive_flag_spec=
12522 tmp_sharedflag='--shared' ;;
12523 nagfor*) # NAGFOR 5.3
12524 tmp_sharedflag='-Wl,-shared' ;;
12525 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12526 tmp_sharedflag='-qmkshrobj'
12527 tmp_addflag= ;;
12528 nvcc*) # Cuda Compiler Driver 2.2
12529 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'
12530 compiler_needs_object=yes
12531 ;;
12532 esac
12533 case `$CC -V 2>&1 | sed 5q` in
12534 *Sun\ C*) # Sun C 5.9
12535 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'
12536 compiler_needs_object=yes
12537 tmp_sharedflag='-G' ;;
12538 *Sun\ F*) # Sun Fortran 8.3
12539 tmp_sharedflag='-G' ;;
12540 esac
12541 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12542
12543 if test yes = "$supports_anon_versioning"; then
12544 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12545 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12546 echo "local: *; };" >> $output_objdir/$libname.ver~
12547 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12548 fi
12549
12550 case $cc_basename in
12551 tcc*)
12552 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12553 export_dynamic_flag_spec='-rdynamic'
12554 ;;
12555 xlf* | bgf* | bgxlf* | mpixlf*)
12556 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12557 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12558 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12559 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12560 if test yes = "$supports_anon_versioning"; then
12561 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12562 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12563 echo "local: *; };" >> $output_objdir/$libname.ver~
12564 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12565 fi
12566 ;;
12567 esac
12568 else
12569 ld_shlibs=no
12570 fi
12571 ;;
12572
12573 netbsd* | netbsdelf*-gnu)
12574 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12575 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12576 wlarc=
12577 else
12578 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12579 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12580 fi
12581 ;;
12582
12583 solaris*)
12584 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12585 ld_shlibs=no
12586 cat <<_LT_EOF 1>&2
12587
12588 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12589 *** create shared libraries on Solaris systems. Therefore, libtool
12590 *** is disabling shared libraries support. We urge you to upgrade GNU
12591 *** binutils to release 2.9.1 or newer. Another option is to modify
12592 *** your PATH or compiler configuration so that the native linker is
12593 *** used, and then restart.
12594
12595 _LT_EOF
12596 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12597 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12598 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12599 else
12600 ld_shlibs=no
12601 fi
12602 ;;
12603
12604 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12605 case `$LD -v 2>&1` in
12606 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12607 ld_shlibs=no
12608 cat <<_LT_EOF 1>&2
12609
12610 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12611 *** reliably create shared libraries on SCO systems. Therefore, libtool
12612 *** is disabling shared libraries support. We urge you to upgrade GNU
12613 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12614 *** your PATH or compiler configuration so that the native linker is
12615 *** used, and then restart.
12616
12617 _LT_EOF
12618 ;;
12619 *)
12620 # For security reasons, it is highly recommended that you always
12621 # use absolute paths for naming shared libraries, and exclude the
12622 # DT_RUNPATH tag from executables and libraries. But doing so
12623 # requires that you compile everything twice, which is a pain.
12624 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12625 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12627 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12628 else
12629 ld_shlibs=no
12630 fi
12631 ;;
12632 esac
12633 ;;
12634
12635 sunos4*)
12636 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12637 wlarc=
12638 hardcode_direct=yes
12639 hardcode_shlibpath_var=no
12640 ;;
12641
12642 *)
12643 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12644 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12645 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12646 else
12647 ld_shlibs=no
12648 fi
12649 ;;
12650 esac
12651
12652 if test no = "$ld_shlibs"; then
12653 runpath_var=
12654 hardcode_libdir_flag_spec=
12655 export_dynamic_flag_spec=
12656 whole_archive_flag_spec=
12657 fi
12658 else
12659 # PORTME fill in a description of your system's linker (not GNU ld)
12660 case $host_os in
12661 aix3*)
12662 allow_undefined_flag=unsupported
12663 always_export_symbols=yes
12664 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'
12665 # Note: this linker hardcodes the directories in LIBPATH if there
12666 # are no directories specified by -L.
12667 hardcode_minus_L=yes
12668 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12669 # Neither direct hardcoding nor static linking is supported with a
12670 # broken collect2.
12671 hardcode_direct=unsupported
12672 fi
12673 ;;
12674
12675 aix[4-9]*)
12676 if test ia64 = "$host_cpu"; then
12677 # On IA64, the linker does run time linking by default, so we don't
12678 # have to do anything special.
12679 aix_use_runtimelinking=no
12680 exp_sym_flag='-Bexport'
12681 no_entry_flag=
12682 else
12683 # If we're using GNU nm, then we don't want the "-C" option.
12684 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12685 # Without the "-l" option, or with the "-B" option, AIX nm treats
12686 # weak defined symbols like other global defined symbols, whereas
12687 # GNU nm marks them as "W".
12688 # While the 'weak' keyword is ignored in the Export File, we need
12689 # it in the Import File for the 'aix-soname' feature, so we have
12690 # to replace the "-B" option with "-P" for AIX nm.
12691 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12692 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12693 else
12694 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12695 fi
12696 aix_use_runtimelinking=no
12697
12698 # Test if we are trying to use run time linking or normal
12699 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12700 # have runtime linking enabled, and use it for executables.
12701 # For shared libraries, we enable/disable runtime linking
12702 # depending on the kind of the shared library created -
12703 # when "with_aix_soname,aix_use_runtimelinking" is:
12704 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12705 # "aix,yes" lib.so shared, rtl:yes, for executables
12706 # lib.a static archive
12707 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12708 # lib.a(lib.so.V) shared, rtl:no, for executables
12709 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12710 # lib.a(lib.so.V) shared, rtl:no
12711 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12712 # lib.a static archive
12713 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12714 for ld_flag in $LDFLAGS; do
12715 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12716 aix_use_runtimelinking=yes
12717 break
12718 fi
12719 done
12720 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12721 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12722 # so we don't have lib.a shared libs to link our executables.
12723 # We have to force runtime linking in this case.
12724 aix_use_runtimelinking=yes
12725 LDFLAGS="$LDFLAGS -Wl,-brtl"
12726 fi
12727 ;;
12728 esac
12729
12730 exp_sym_flag='-bexport'
12731 no_entry_flag='-bnoentry'
12732 fi
12733
12734 # When large executables or shared objects are built, AIX ld can
12735 # have problems creating the table of contents. If linking a library
12736 # or program results in "error TOC overflow" add -mminimal-toc to
12737 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12738 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12739
12740 archive_cmds=''
12741 hardcode_direct=yes
12742 hardcode_direct_absolute=yes
12743 hardcode_libdir_separator=':'
12744 link_all_deplibs=yes
12745 file_list_spec='$wl-f,'
12746 case $with_aix_soname,$aix_use_runtimelinking in
12747 aix,*) ;; # traditional, no import file
12748 svr4,* | *,yes) # use import file
12749 # The Import File defines what to hardcode.
12750 hardcode_direct=no
12751 hardcode_direct_absolute=no
12752 ;;
12753 esac
12754
12755 if test yes = "$GCC"; then
12756 case $host_os in aix4.[012]|aix4.[012].*)
12757 # We only want to do this on AIX 4.2 and lower, the check
12758 # below for broken collect2 doesn't work under 4.3+
12759 collect2name=`$CC -print-prog-name=collect2`
12760 if test -f "$collect2name" &&
12761 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12762 then
12763 # We have reworked collect2
12764 :
12765 else
12766 # We have old collect2
12767 hardcode_direct=unsupported
12768 # It fails to find uninstalled libraries when the uninstalled
12769 # path is not listed in the libpath. Setting hardcode_minus_L
12770 # to unsupported forces relinking
12771 hardcode_minus_L=yes
12772 hardcode_libdir_flag_spec='-L$libdir'
12773 hardcode_libdir_separator=
12774 fi
12775 ;;
12776 esac
12777 shared_flag='-shared'
12778 if test yes = "$aix_use_runtimelinking"; then
12779 shared_flag="$shared_flag "'$wl-G'
12780 fi
12781 # Need to ensure runtime linking is disabled for the traditional
12782 # shared library, or the linker may eventually find shared libraries
12783 # /with/ Import File - we do not want to mix them.
12784 shared_flag_aix='-shared'
12785 shared_flag_svr4='-shared $wl-G'
12786 else
12787 # not using gcc
12788 if test ia64 = "$host_cpu"; then
12789 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12790 # chokes on -Wl,-G. The following line is correct:
12791 shared_flag='-G'
12792 else
12793 if test yes = "$aix_use_runtimelinking"; then
12794 shared_flag='$wl-G'
12795 else
12796 shared_flag='$wl-bM:SRE'
12797 fi
12798 shared_flag_aix='$wl-bM:SRE'
12799 shared_flag_svr4='$wl-G'
12800 fi
12801 fi
12802
12803 export_dynamic_flag_spec='$wl-bexpall'
12804 # It seems that -bexpall does not export symbols beginning with
12805 # underscore (_), so it is better to generate a list of symbols to export.
12806 always_export_symbols=yes
12807 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12808 # Warning - without using the other runtime loading flags (-brtl),
12809 # -berok will link without error, but may produce a broken library.
12810 allow_undefined_flag='-berok'
12811 # Determine the default libpath from the value encoded in an
12812 # empty executable.
12813 if test set = "${lt_cv_aix_libpath+set}"; then
12814 aix_libpath=$lt_cv_aix_libpath
12815 else
12816 if ${lt_cv_aix_libpath_+:} false; then :
12817 $as_echo_n "(cached) " >&6
12818 else
12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12821
12822 int
12823 main (void)
12824 {
12825
12826 ;
12827 return 0;
12828 }
12829 _ACEOF
12830 if ac_fn_c_try_link "$LINENO"; then :
12831
12832 lt_aix_libpath_sed='
12833 /Import File Strings/,/^$/ {
12834 /^0/ {
12835 s/^0 *\([^ ]*\) *$/\1/
12836 p
12837 }
12838 }'
12839 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12840 # Check for a 64-bit object if we didn't find anything.
12841 if test -z "$lt_cv_aix_libpath_"; then
12842 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12843 fi
12844 fi
12845 rm -f core conftest.err conftest.$ac_objext \
12846 conftest$ac_exeext conftest.$ac_ext
12847 if test -z "$lt_cv_aix_libpath_"; then
12848 lt_cv_aix_libpath_=/usr/lib:/lib
12849 fi
12850
12851 fi
12852
12853 aix_libpath=$lt_cv_aix_libpath_
12854 fi
12855
12856 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12857 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12858 else
12859 if test ia64 = "$host_cpu"; then
12860 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12861 allow_undefined_flag="-z nodefs"
12862 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"
12863 else
12864 # Determine the default libpath from the value encoded in an
12865 # empty executable.
12866 if test set = "${lt_cv_aix_libpath+set}"; then
12867 aix_libpath=$lt_cv_aix_libpath
12868 else
12869 if ${lt_cv_aix_libpath_+:} false; then :
12870 $as_echo_n "(cached) " >&6
12871 else
12872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12873 /* end confdefs.h. */
12874
12875 int
12876 main (void)
12877 {
12878
12879 ;
12880 return 0;
12881 }
12882 _ACEOF
12883 if ac_fn_c_try_link "$LINENO"; then :
12884
12885 lt_aix_libpath_sed='
12886 /Import File Strings/,/^$/ {
12887 /^0/ {
12888 s/^0 *\([^ ]*\) *$/\1/
12889 p
12890 }
12891 }'
12892 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12893 # Check for a 64-bit object if we didn't find anything.
12894 if test -z "$lt_cv_aix_libpath_"; then
12895 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12896 fi
12897 fi
12898 rm -f core conftest.err conftest.$ac_objext \
12899 conftest$ac_exeext conftest.$ac_ext
12900 if test -z "$lt_cv_aix_libpath_"; then
12901 lt_cv_aix_libpath_=/usr/lib:/lib
12902 fi
12903
12904 fi
12905
12906 aix_libpath=$lt_cv_aix_libpath_
12907 fi
12908
12909 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12910 # Warning - without using the other run time loading flags,
12911 # -berok will link without error, but may produce a broken library.
12912 no_undefined_flag=' $wl-bernotok'
12913 allow_undefined_flag=' $wl-berok'
12914 if test yes = "$with_gnu_ld"; then
12915 # We only use this code for GNU lds that support --whole-archive.
12916 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12917 else
12918 # Exported symbols can be pulled into shared objects from archives
12919 whole_archive_flag_spec='$convenience'
12920 fi
12921 archive_cmds_need_lc=yes
12922 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12923 # -brtl affects multiple linker settings, -berok does not and is overridden later
12924 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12925 if test svr4 != "$with_aix_soname"; then
12926 # This is similar to how AIX traditionally builds its shared libraries.
12927 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12928 fi
12929 if test aix != "$with_aix_soname"; then
12930 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12931 else
12932 # used by -dlpreopen to get the symbols
12933 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12934 fi
12935 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12936 fi
12937 fi
12938 ;;
12939
12940 amigaos*)
12941 case $host_cpu in
12942 powerpc)
12943 # see comment about AmigaOS4 .so support
12944 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12945 archive_expsym_cmds=''
12946 ;;
12947 m68k)
12948 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)'
12949 hardcode_libdir_flag_spec='-L$libdir'
12950 hardcode_minus_L=yes
12951 ;;
12952 esac
12953 ;;
12954
12955 bsdi[45]*)
12956 export_dynamic_flag_spec=-rdynamic
12957 ;;
12958
12959 cygwin* | mingw* | pw32* | cegcc*)
12960 # When not using gcc, we currently assume that we are using
12961 # Microsoft Visual C++.
12962 # hardcode_libdir_flag_spec is actually meaningless, as there is
12963 # no search path for DLLs.
12964 case $cc_basename in
12965 cl*)
12966 # Native MSVC
12967 hardcode_libdir_flag_spec=' '
12968 allow_undefined_flag=unsupported
12969 always_export_symbols=yes
12970 file_list_spec='@'
12971 # Tell ltmain to make .lib files, not .a files.
12972 libext=lib
12973 # Tell ltmain to make .dll files, not .so files.
12974 shrext_cmds=.dll
12975 # FIXME: Setting linknames here is a bad hack.
12976 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12977 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12978 cp "$export_symbols" "$output_objdir/$soname.def";
12979 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12980 else
12981 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12982 fi~
12983 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12984 linknames='
12985 # The linker will not automatically build a static lib if we build a DLL.
12986 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12987 enable_shared_with_static_runtimes=yes
12988 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12989 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12990 # Don't use ranlib
12991 old_postinstall_cmds='chmod 644 $oldlib'
12992 postlink_cmds='lt_outputfile="@OUTPUT@"~
12993 lt_tool_outputfile="@TOOL_OUTPUT@"~
12994 case $lt_outputfile in
12995 *.exe|*.EXE) ;;
12996 *)
12997 lt_outputfile=$lt_outputfile.exe
12998 lt_tool_outputfile=$lt_tool_outputfile.exe
12999 ;;
13000 esac~
13001 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13002 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13003 $RM "$lt_outputfile.manifest";
13004 fi'
13005 ;;
13006 *)
13007 # Assume MSVC wrapper
13008 hardcode_libdir_flag_spec=' '
13009 allow_undefined_flag=unsupported
13010 # Tell ltmain to make .lib files, not .a files.
13011 libext=lib
13012 # Tell ltmain to make .dll files, not .so files.
13013 shrext_cmds=.dll
13014 # FIXME: Setting linknames here is a bad hack.
13015 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13016 # The linker will automatically build a .lib file if we build a DLL.
13017 old_archive_from_new_cmds='true'
13018 # FIXME: Should let the user specify the lib program.
13019 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13020 enable_shared_with_static_runtimes=yes
13021 ;;
13022 esac
13023 ;;
13024
13025 darwin* | rhapsody*)
13026
13027
13028 archive_cmds_need_lc=no
13029 hardcode_direct=no
13030 hardcode_automatic=yes
13031 hardcode_shlibpath_var=unsupported
13032 if test yes = "$lt_cv_ld_force_load"; then
13033 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\"`'
13034
13035 else
13036 whole_archive_flag_spec=''
13037 fi
13038 link_all_deplibs=yes
13039 allow_undefined_flag=$_lt_dar_allow_undefined
13040 case $cc_basename in
13041 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13042 *) _lt_dar_can_shared=$GCC ;;
13043 esac
13044 if test yes = "$_lt_dar_can_shared"; then
13045 output_verbose_link_cmd=func_echo_all
13046 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13047 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13048 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"
13049 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"
13050
13051 else
13052 ld_shlibs=no
13053 fi
13054
13055 ;;
13056
13057 dgux*)
13058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13059 hardcode_libdir_flag_spec='-L$libdir'
13060 hardcode_shlibpath_var=no
13061 ;;
13062
13063 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13064 # support. Future versions do this automatically, but an explicit c++rt0.o
13065 # does not break anything, and helps significantly (at the cost of a little
13066 # extra space).
13067 freebsd2.2*)
13068 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13069 hardcode_libdir_flag_spec='-R$libdir'
13070 hardcode_direct=yes
13071 hardcode_shlibpath_var=no
13072 ;;
13073
13074 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13075 freebsd2.*)
13076 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13077 hardcode_direct=yes
13078 hardcode_minus_L=yes
13079 hardcode_shlibpath_var=no
13080 ;;
13081
13082 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13083 freebsd* | dragonfly*)
13084 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13085 hardcode_libdir_flag_spec='-R$libdir'
13086 hardcode_direct=yes
13087 hardcode_shlibpath_var=no
13088 ;;
13089
13090 hpux9*)
13091 if test yes = "$GCC"; then
13092 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13093 else
13094 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13095 fi
13096 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13097 hardcode_libdir_separator=:
13098 hardcode_direct=yes
13099
13100 # hardcode_minus_L: Not really in the search PATH,
13101 # but as the default location of the library.
13102 hardcode_minus_L=yes
13103 export_dynamic_flag_spec='$wl-E'
13104 ;;
13105
13106 hpux10*)
13107 if test yes,no = "$GCC,$with_gnu_ld"; then
13108 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13109 else
13110 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13111 fi
13112 if test no = "$with_gnu_ld"; then
13113 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13114 hardcode_libdir_separator=:
13115 hardcode_direct=yes
13116 hardcode_direct_absolute=yes
13117 export_dynamic_flag_spec='$wl-E'
13118 # hardcode_minus_L: Not really in the search PATH,
13119 # but as the default location of the library.
13120 hardcode_minus_L=yes
13121 fi
13122 ;;
13123
13124 hpux11*)
13125 if test yes,no = "$GCC,$with_gnu_ld"; then
13126 case $host_cpu in
13127 hppa*64*)
13128 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13129 ;;
13130 ia64*)
13131 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13132 ;;
13133 *)
13134 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13135 ;;
13136 esac
13137 else
13138 case $host_cpu in
13139 hppa*64*)
13140 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13141 ;;
13142 ia64*)
13143 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13144 ;;
13145 *)
13146
13147 # Older versions of the 11.00 compiler do not understand -b yet
13148 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13150 $as_echo_n "checking if $CC understands -b... " >&6; }
13151 if ${lt_cv_prog_compiler__b+:} false; then :
13152 $as_echo_n "(cached) " >&6
13153 else
13154 lt_cv_prog_compiler__b=no
13155 save_LDFLAGS=$LDFLAGS
13156 LDFLAGS="$LDFLAGS -b"
13157 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13158 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13159 # The linker can only warn and ignore the option if not recognized
13160 # So say no if there are warnings
13161 if test -s conftest.err; then
13162 # Append any errors to the config.log.
13163 cat conftest.err 1>&5
13164 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13165 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13166 if diff conftest.exp conftest.er2 >/dev/null; then
13167 lt_cv_prog_compiler__b=yes
13168 fi
13169 else
13170 lt_cv_prog_compiler__b=yes
13171 fi
13172 fi
13173 $RM -r conftest*
13174 LDFLAGS=$save_LDFLAGS
13175
13176 fi
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13178 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13179
13180 if test yes = "$lt_cv_prog_compiler__b"; then
13181 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13182 else
13183 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13184 fi
13185
13186 ;;
13187 esac
13188 fi
13189 if test no = "$with_gnu_ld"; then
13190 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13191 hardcode_libdir_separator=:
13192
13193 case $host_cpu in
13194 hppa*64*|ia64*)
13195 hardcode_direct=no
13196 hardcode_shlibpath_var=no
13197 ;;
13198 *)
13199 hardcode_direct=yes
13200 hardcode_direct_absolute=yes
13201 export_dynamic_flag_spec='$wl-E'
13202
13203 # hardcode_minus_L: Not really in the search PATH,
13204 # but as the default location of the library.
13205 hardcode_minus_L=yes
13206 ;;
13207 esac
13208 fi
13209 ;;
13210
13211 irix5* | irix6* | nonstopux*)
13212 if test yes = "$GCC"; then
13213 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'
13214 # Try to use the -exported_symbol ld option, if it does not
13215 # work, assume that -exports_file does not work either and
13216 # implicitly export all symbols.
13217 # This should be the same for all languages, so no per-tag cache variable.
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13219 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13220 if ${lt_cv_irix_exported_symbol+:} false; then :
13221 $as_echo_n "(cached) " >&6
13222 else
13223 save_LDFLAGS=$LDFLAGS
13224 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13226 /* end confdefs.h. */
13227 int foo (void) { return 0; }
13228 _ACEOF
13229 if ac_fn_c_try_link "$LINENO"; then :
13230 lt_cv_irix_exported_symbol=yes
13231 else
13232 lt_cv_irix_exported_symbol=no
13233 fi
13234 rm -f core conftest.err conftest.$ac_objext \
13235 conftest$ac_exeext conftest.$ac_ext
13236 LDFLAGS=$save_LDFLAGS
13237 fi
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13239 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13240 if test yes = "$lt_cv_irix_exported_symbol"; then
13241 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'
13242 fi
13243 link_all_deplibs=no
13244 else
13245 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'
13246 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'
13247 fi
13248 archive_cmds_need_lc='no'
13249 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13250 hardcode_libdir_separator=:
13251 inherit_rpath=yes
13252 link_all_deplibs=yes
13253 ;;
13254
13255 linux*)
13256 case $cc_basename in
13257 tcc*)
13258 # Fabrice Bellard et al's Tiny C Compiler
13259 ld_shlibs=yes
13260 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13261 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13262 ;;
13263 esac
13264 ;;
13265
13266 netbsd* | netbsdelf*-gnu)
13267 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13268 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13269 else
13270 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13271 fi
13272 hardcode_libdir_flag_spec='-R$libdir'
13273 hardcode_direct=yes
13274 hardcode_shlibpath_var=no
13275 ;;
13276
13277 newsos6)
13278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13279 hardcode_direct=yes
13280 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13281 hardcode_libdir_separator=:
13282 hardcode_shlibpath_var=no
13283 ;;
13284
13285 *nto* | *qnx*)
13286 ;;
13287
13288 openbsd* | bitrig*)
13289 if test -f /usr/libexec/ld.so; then
13290 hardcode_direct=yes
13291 hardcode_shlibpath_var=no
13292 hardcode_direct_absolute=yes
13293 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13294 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13295 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13296 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13297 export_dynamic_flag_spec='$wl-E'
13298 else
13299 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13300 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13301 fi
13302 else
13303 ld_shlibs=no
13304 fi
13305 ;;
13306
13307 os2*)
13308 hardcode_libdir_flag_spec='-L$libdir'
13309 hardcode_minus_L=yes
13310 allow_undefined_flag=unsupported
13311 shrext_cmds=.dll
13312 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13313 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13314 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13315 $ECHO EXPORTS >> $output_objdir/$libname.def~
13316 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13317 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13318 emximp -o $lib $output_objdir/$libname.def'
13319 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13320 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13321 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13322 $ECHO EXPORTS >> $output_objdir/$libname.def~
13323 prefix_cmds="$SED"~
13324 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13325 prefix_cmds="$prefix_cmds -e 1d";
13326 fi~
13327 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13328 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13329 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13330 emximp -o $lib $output_objdir/$libname.def'
13331 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13332 enable_shared_with_static_runtimes=yes
13333 ;;
13334
13335 osf3*)
13336 if test yes = "$GCC"; then
13337 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13338 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'
13339 else
13340 allow_undefined_flag=' -expect_unresolved \*'
13341 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'
13342 fi
13343 archive_cmds_need_lc='no'
13344 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13345 hardcode_libdir_separator=:
13346 ;;
13347
13348 osf4* | osf5*) # as osf3* with the addition of -msym flag
13349 if test yes = "$GCC"; then
13350 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13351 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'
13352 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13353 else
13354 allow_undefined_flag=' -expect_unresolved \*'
13355 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'
13356 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~
13357 $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'
13358
13359 # Both c and cxx compiler support -rpath directly
13360 hardcode_libdir_flag_spec='-rpath $libdir'
13361 fi
13362 archive_cmds_need_lc='no'
13363 hardcode_libdir_separator=:
13364 ;;
13365
13366 solaris*)
13367 no_undefined_flag=' -z defs'
13368 if test yes = "$GCC"; then
13369 wlarc='$wl'
13370 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13371 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13372 $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'
13373 else
13374 case `$CC -V 2>&1` in
13375 *"Compilers 5.0"*)
13376 wlarc=''
13377 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13378 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13379 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13380 ;;
13381 *)
13382 wlarc='$wl'
13383 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13384 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13385 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13386 ;;
13387 esac
13388 fi
13389 hardcode_libdir_flag_spec='-R$libdir'
13390 hardcode_shlibpath_var=no
13391 case $host_os in
13392 solaris2.[0-5] | solaris2.[0-5].*) ;;
13393 *)
13394 # The compiler driver will combine and reorder linker options,
13395 # but understands '-z linker_flag'. GCC discards it without '$wl',
13396 # but is careful enough not to reorder.
13397 # Supported since Solaris 2.6 (maybe 2.5.1?)
13398 if test yes = "$GCC"; then
13399 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13400 else
13401 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13402 fi
13403 ;;
13404 esac
13405 link_all_deplibs=yes
13406 ;;
13407
13408 sunos4*)
13409 if test sequent = "$host_vendor"; then
13410 # Use $CC to link under sequent, because it throws in some extra .o
13411 # files that make .init and .fini sections work.
13412 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13413 else
13414 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13415 fi
13416 hardcode_libdir_flag_spec='-L$libdir'
13417 hardcode_direct=yes
13418 hardcode_minus_L=yes
13419 hardcode_shlibpath_var=no
13420 ;;
13421
13422 sysv4)
13423 case $host_vendor in
13424 sni)
13425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13426 hardcode_direct=yes # is this really true???
13427 ;;
13428 siemens)
13429 ## LD is ld it makes a PLAMLIB
13430 ## CC just makes a GrossModule.
13431 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13432 reload_cmds='$CC -r -o $output$reload_objs'
13433 hardcode_direct=no
13434 ;;
13435 motorola)
13436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13437 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13438 ;;
13439 esac
13440 runpath_var='LD_RUN_PATH'
13441 hardcode_shlibpath_var=no
13442 ;;
13443
13444 sysv4.3*)
13445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13446 hardcode_shlibpath_var=no
13447 export_dynamic_flag_spec='-Bexport'
13448 ;;
13449
13450 sysv4*MP*)
13451 if test -d /usr/nec; then
13452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13453 hardcode_shlibpath_var=no
13454 runpath_var=LD_RUN_PATH
13455 hardcode_runpath_var=yes
13456 ld_shlibs=yes
13457 fi
13458 ;;
13459
13460 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13461 no_undefined_flag='$wl-z,text'
13462 archive_cmds_need_lc=no
13463 hardcode_shlibpath_var=no
13464 runpath_var='LD_RUN_PATH'
13465
13466 if test yes = "$GCC"; then
13467 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13468 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13469 else
13470 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13471 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13472 fi
13473 ;;
13474
13475 sysv5* | sco3.2v5* | sco5v6*)
13476 # Note: We CANNOT use -z defs as we might desire, because we do not
13477 # link with -lc, and that would cause any symbols used from libc to
13478 # always be unresolved, which means just about no library would
13479 # ever link correctly. If we're not using GNU ld we use -z text
13480 # though, which does catch some bad symbols but isn't as heavy-handed
13481 # as -z defs.
13482 no_undefined_flag='$wl-z,text'
13483 allow_undefined_flag='$wl-z,nodefs'
13484 archive_cmds_need_lc=no
13485 hardcode_shlibpath_var=no
13486 hardcode_libdir_flag_spec='$wl-R,$libdir'
13487 hardcode_libdir_separator=':'
13488 link_all_deplibs=yes
13489 export_dynamic_flag_spec='$wl-Bexport'
13490 runpath_var='LD_RUN_PATH'
13491
13492 if test yes = "$GCC"; then
13493 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13494 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13495 else
13496 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13497 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13498 fi
13499 ;;
13500
13501 uts4*)
13502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13503 hardcode_libdir_flag_spec='-L$libdir'
13504 hardcode_shlibpath_var=no
13505 ;;
13506
13507 *)
13508 ld_shlibs=no
13509 ;;
13510 esac
13511
13512 if test sni = "$host_vendor"; then
13513 case $host in
13514 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13515 export_dynamic_flag_spec='$wl-Blargedynsym'
13516 ;;
13517 esac
13518 fi
13519 fi
13520
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13522 $as_echo "$ld_shlibs" >&6; }
13523 test no = "$ld_shlibs" && can_build_shared=no
13524
13525 with_gnu_ld=$with_gnu_ld
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541 #
13542 # Do we need to explicitly link libc?
13543 #
13544 case "x$archive_cmds_need_lc" in
13545 x|xyes)
13546 # Assume -lc should be added
13547 archive_cmds_need_lc=yes
13548
13549 if test yes,yes = "$GCC,$enable_shared"; then
13550 case $archive_cmds in
13551 *'~'*)
13552 # FIXME: we may have to deal with multi-command sequences.
13553 ;;
13554 '$CC '*)
13555 # Test whether the compiler implicitly links with -lc since on some
13556 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13557 # to ld, don't add -lc before -lgcc.
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13559 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13560 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13561 $as_echo_n "(cached) " >&6
13562 else
13563 $RM conftest*
13564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13565
13566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13567 (eval $ac_compile) 2>&5
13568 ac_status=$?
13569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13570 test $ac_status = 0; } 2>conftest.err; then
13571 soname=conftest
13572 lib=conftest
13573 libobjs=conftest.$ac_objext
13574 deplibs=
13575 wl=$lt_prog_compiler_wl
13576 pic_flag=$lt_prog_compiler_pic
13577 compiler_flags=-v
13578 linker_flags=-v
13579 verstring=
13580 output_objdir=.
13581 libname=conftest
13582 lt_save_allow_undefined_flag=$allow_undefined_flag
13583 allow_undefined_flag=
13584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13585 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13586 ac_status=$?
13587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13588 test $ac_status = 0; }
13589 then
13590 lt_cv_archive_cmds_need_lc=no
13591 else
13592 lt_cv_archive_cmds_need_lc=yes
13593 fi
13594 allow_undefined_flag=$lt_save_allow_undefined_flag
13595 else
13596 cat conftest.err 1>&5
13597 fi
13598 $RM conftest*
13599
13600 fi
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13602 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13603 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13604 ;;
13605 esac
13606 fi
13607 ;;
13608 esac
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13762 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13763
13764 if test yes = "$GCC"; then
13765 case $host_os in
13766 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13767 *) lt_awk_arg='/^libraries:/' ;;
13768 esac
13769 case $host_os in
13770 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13771 *) lt_sed_strip_eq='s|=/|/|g' ;;
13772 esac
13773 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13774 case $lt_search_path_spec in
13775 *\;*)
13776 # if the path contains ";" then we assume it to be the separator
13777 # otherwise default to the standard path separator (i.e. ":") - it is
13778 # assumed that no part of a normal pathname contains ";" but that should
13779 # okay in the real world where ";" in dirpaths is itself problematic.
13780 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13781 ;;
13782 *)
13783 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13784 ;;
13785 esac
13786 # Ok, now we have the path, separated by spaces, we can step through it
13787 # and add multilib dir if necessary...
13788 lt_tmp_lt_search_path_spec=
13789 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13790 # ...but if some path component already ends with the multilib dir we assume
13791 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13792 case "$lt_multi_os_dir; $lt_search_path_spec " in
13793 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13794 lt_multi_os_dir=
13795 ;;
13796 esac
13797 for lt_sys_path in $lt_search_path_spec; do
13798 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13799 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13800 elif test -n "$lt_multi_os_dir"; then
13801 test -d "$lt_sys_path" && \
13802 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13803 fi
13804 done
13805 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13806 BEGIN {RS = " "; FS = "/|\n";} {
13807 lt_foo = "";
13808 lt_count = 0;
13809 for (lt_i = NF; lt_i > 0; lt_i--) {
13810 if ($lt_i != "" && $lt_i != ".") {
13811 if ($lt_i == "..") {
13812 lt_count++;
13813 } else {
13814 if (lt_count == 0) {
13815 lt_foo = "/" $lt_i lt_foo;
13816 } else {
13817 lt_count--;
13818 }
13819 }
13820 }
13821 }
13822 if (lt_foo != "") { lt_freq[lt_foo]++; }
13823 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13824 }'`
13825 # AWK program above erroneously prepends '/' to C:/dos/paths
13826 # for these hosts.
13827 case $host_os in
13828 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13829 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13830 esac
13831 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13832 else
13833 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13834 fi
13835 library_names_spec=
13836 libname_spec='lib$name'
13837 soname_spec=
13838 shrext_cmds=.so
13839 postinstall_cmds=
13840 postuninstall_cmds=
13841 finish_cmds=
13842 finish_eval=
13843 shlibpath_var=
13844 shlibpath_overrides_runpath=unknown
13845 version_type=none
13846 dynamic_linker="$host_os ld.so"
13847 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13848 need_lib_prefix=unknown
13849 hardcode_into_libs=no
13850
13851 # when you set need_version to no, make sure it does not cause -set_version
13852 # flags to be left without arguments
13853 need_version=unknown
13854
13855
13856
13857 case $host_os in
13858 aix3*)
13859 version_type=linux # correct to gnu/linux during the next big refactor
13860 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13861 shlibpath_var=LIBPATH
13862
13863 # AIX 3 has no versioning support, so we append a major version to the name.
13864 soname_spec='$libname$release$shared_ext$major'
13865 ;;
13866
13867 aix[4-9]*)
13868 version_type=linux # correct to gnu/linux during the next big refactor
13869 need_lib_prefix=no
13870 need_version=no
13871 hardcode_into_libs=yes
13872 if test ia64 = "$host_cpu"; then
13873 # AIX 5 supports IA64
13874 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13875 shlibpath_var=LD_LIBRARY_PATH
13876 else
13877 # With GCC up to 2.95.x, collect2 would create an import file
13878 # for dependence libraries. The import file would start with
13879 # the line '#! .'. This would cause the generated library to
13880 # depend on '.', always an invalid library. This was fixed in
13881 # development snapshots of GCC prior to 3.0.
13882 case $host_os in
13883 aix4 | aix4.[01] | aix4.[01].*)
13884 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13885 echo ' yes '
13886 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13887 :
13888 else
13889 can_build_shared=no
13890 fi
13891 ;;
13892 esac
13893 # Using Import Files as archive members, it is possible to support
13894 # filename-based versioning of shared library archives on AIX. While
13895 # this would work for both with and without runtime linking, it will
13896 # prevent static linking of such archives. So we do filename-based
13897 # shared library versioning with .so extension only, which is used
13898 # when both runtime linking and shared linking is enabled.
13899 # Unfortunately, runtime linking may impact performance, so we do
13900 # not want this to be the default eventually. Also, we use the
13901 # versioned .so libs for executables only if there is the -brtl
13902 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13903 # To allow for filename-based versioning support, we need to create
13904 # libNAME.so.V as an archive file, containing:
13905 # *) an Import File, referring to the versioned filename of the
13906 # archive as well as the shared archive member, telling the
13907 # bitwidth (32 or 64) of that shared object, and providing the
13908 # list of exported symbols of that shared object, eventually
13909 # decorated with the 'weak' keyword
13910 # *) the shared object with the F_LOADONLY flag set, to really avoid
13911 # it being seen by the linker.
13912 # At run time we better use the real file rather than another symlink,
13913 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13914
13915 case $with_aix_soname,$aix_use_runtimelinking in
13916 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13917 # soname into executable. Probably we can add versioning support to
13918 # collect2, so additional links can be useful in future.
13919 aix,yes) # traditional libtool
13920 dynamic_linker='AIX unversionable lib.so'
13921 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13922 # instead of lib<name>.a to let people know that these are not
13923 # typical AIX shared libraries.
13924 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13925 ;;
13926 aix,no) # traditional AIX only
13927 dynamic_linker='AIX lib.a(lib.so.V)'
13928 # We preserve .a as extension for shared libraries through AIX4.2
13929 # and later when we are not doing run time linking.
13930 library_names_spec='$libname$release.a $libname.a'
13931 soname_spec='$libname$release$shared_ext$major'
13932 ;;
13933 svr4,*) # full svr4 only
13934 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13935 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13936 # We do not specify a path in Import Files, so LIBPATH fires.
13937 shlibpath_overrides_runpath=yes
13938 ;;
13939 *,yes) # both, prefer svr4
13940 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13941 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13942 # unpreferred sharedlib libNAME.a needs extra handling
13943 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13944 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13945 # We do not specify a path in Import Files, so LIBPATH fires.
13946 shlibpath_overrides_runpath=yes
13947 ;;
13948 *,no) # both, prefer aix
13949 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13950 library_names_spec='$libname$release.a $libname.a'
13951 soname_spec='$libname$release$shared_ext$major'
13952 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13953 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13954 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13955 ;;
13956 esac
13957 shlibpath_var=LIBPATH
13958 fi
13959 ;;
13960
13961 amigaos*)
13962 case $host_cpu in
13963 powerpc)
13964 # Since July 2007 AmigaOS4 officially supports .so libraries.
13965 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13967 ;;
13968 m68k)
13969 library_names_spec='$libname.ixlibrary $libname.a'
13970 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13971 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13972 ;;
13973 esac
13974 ;;
13975
13976 beos*)
13977 library_names_spec='$libname$shared_ext'
13978 dynamic_linker="$host_os ld.so"
13979 shlibpath_var=LIBRARY_PATH
13980 ;;
13981
13982 bsdi[45]*)
13983 version_type=linux # correct to gnu/linux during the next big refactor
13984 need_version=no
13985 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13986 soname_spec='$libname$release$shared_ext$major'
13987 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13988 shlibpath_var=LD_LIBRARY_PATH
13989 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13990 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13991 # the default ld.so.conf also contains /usr/contrib/lib and
13992 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13993 # libtool to hard-code these into programs
13994 ;;
13995
13996 cygwin* | mingw* | pw32* | cegcc*)
13997 version_type=windows
13998 shrext_cmds=.dll
13999 need_version=no
14000 need_lib_prefix=no
14001
14002 case $GCC,$cc_basename in
14003 yes,*)
14004 # gcc
14005 library_names_spec='$libname.dll.a'
14006 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14007 postinstall_cmds='base_file=`basename \$file`~
14008 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14009 dldir=$destdir/`dirname \$dlpath`~
14010 test -d \$dldir || mkdir -p \$dldir~
14011 $install_prog $dir/$dlname \$dldir/$dlname~
14012 chmod a+x \$dldir/$dlname~
14013 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14014 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14015 fi'
14016 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14017 dlpath=$dir/\$dldll~
14018 $RM \$dlpath'
14019 shlibpath_overrides_runpath=yes
14020
14021 case $host_os in
14022 cygwin*)
14023 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14024 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14025
14026 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14027 ;;
14028 mingw* | cegcc*)
14029 # MinGW DLLs use traditional 'lib' prefix
14030 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14031 ;;
14032 pw32*)
14033 # pw32 DLLs use 'pw' prefix rather than 'lib'
14034 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14035 ;;
14036 esac
14037 dynamic_linker='Win32 ld.exe'
14038 ;;
14039
14040 *,cl*)
14041 # Native MSVC
14042 libname_spec='$name'
14043 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14044 library_names_spec='$libname.dll.lib'
14045
14046 case $build_os in
14047 mingw*)
14048 sys_lib_search_path_spec=
14049 lt_save_ifs=$IFS
14050 IFS=';'
14051 for lt_path in $LIB
14052 do
14053 IFS=$lt_save_ifs
14054 # Let DOS variable expansion print the short 8.3 style file name.
14055 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14056 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14057 done
14058 IFS=$lt_save_ifs
14059 # Convert to MSYS style.
14060 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14061 ;;
14062 cygwin*)
14063 # Convert to unix form, then to dos form, then back to unix form
14064 # but this time dos style (no spaces!) so that the unix form looks
14065 # like /cygdrive/c/PROGRA~1:/cygdr...
14066 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14067 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14068 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14069 ;;
14070 *)
14071 sys_lib_search_path_spec=$LIB
14072 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14073 # It is most probably a Windows format PATH.
14074 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14075 else
14076 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14077 fi
14078 # FIXME: find the short name or the path components, as spaces are
14079 # common. (e.g. "Program Files" -> "PROGRA~1")
14080 ;;
14081 esac
14082
14083 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14084 postinstall_cmds='base_file=`basename \$file`~
14085 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14086 dldir=$destdir/`dirname \$dlpath`~
14087 test -d \$dldir || mkdir -p \$dldir~
14088 $install_prog $dir/$dlname \$dldir/$dlname'
14089 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14090 dlpath=$dir/\$dldll~
14091 $RM \$dlpath'
14092 shlibpath_overrides_runpath=yes
14093 dynamic_linker='Win32 link.exe'
14094 ;;
14095
14096 *)
14097 # Assume MSVC wrapper
14098 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14099 dynamic_linker='Win32 ld.exe'
14100 ;;
14101 esac
14102 # FIXME: first we should search . and the directory the executable is in
14103 shlibpath_var=PATH
14104 ;;
14105
14106 darwin* | rhapsody*)
14107 dynamic_linker="$host_os dyld"
14108 version_type=darwin
14109 need_lib_prefix=no
14110 need_version=no
14111 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14112 soname_spec='$libname$release$major$shared_ext'
14113 shlibpath_overrides_runpath=yes
14114 shlibpath_var=DYLD_LIBRARY_PATH
14115 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14116
14117 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14118 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14119 ;;
14120
14121 dgux*)
14122 version_type=linux # correct to gnu/linux during the next big refactor
14123 need_lib_prefix=no
14124 need_version=no
14125 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14126 soname_spec='$libname$release$shared_ext$major'
14127 shlibpath_var=LD_LIBRARY_PATH
14128 ;;
14129
14130 freebsd* | dragonfly*)
14131 # DragonFly does not have aout. When/if they implement a new
14132 # versioning mechanism, adjust this.
14133 if test -x /usr/bin/objformat; then
14134 objformat=`/usr/bin/objformat`
14135 else
14136 case $host_os in
14137 freebsd[23].*) objformat=aout ;;
14138 *) objformat=elf ;;
14139 esac
14140 fi
14141 version_type=freebsd-$objformat
14142 case $version_type in
14143 freebsd-elf*)
14144 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14145 soname_spec='$libname$release$shared_ext$major'
14146 need_version=no
14147 need_lib_prefix=no
14148 ;;
14149 freebsd-*)
14150 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14151 need_version=yes
14152 ;;
14153 esac
14154 shlibpath_var=LD_LIBRARY_PATH
14155 case $host_os in
14156 freebsd2.*)
14157 shlibpath_overrides_runpath=yes
14158 ;;
14159 freebsd3.[01]* | freebsdelf3.[01]*)
14160 shlibpath_overrides_runpath=yes
14161 hardcode_into_libs=yes
14162 ;;
14163 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14164 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14165 shlibpath_overrides_runpath=no
14166 hardcode_into_libs=yes
14167 ;;
14168 *) # from 4.6 on, and DragonFly
14169 shlibpath_overrides_runpath=yes
14170 hardcode_into_libs=yes
14171 ;;
14172 esac
14173 ;;
14174
14175 haiku*)
14176 version_type=linux # correct to gnu/linux during the next big refactor
14177 need_lib_prefix=no
14178 need_version=no
14179 dynamic_linker="$host_os runtime_loader"
14180 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14181 soname_spec='$libname$release$shared_ext$major'
14182 shlibpath_var=LIBRARY_PATH
14183 shlibpath_overrides_runpath=no
14184 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14185 hardcode_into_libs=yes
14186 ;;
14187
14188 hpux9* | hpux10* | hpux11*)
14189 # Give a soname corresponding to the major version so that dld.sl refuses to
14190 # link against other versions.
14191 version_type=sunos
14192 need_lib_prefix=no
14193 need_version=no
14194 case $host_cpu in
14195 ia64*)
14196 shrext_cmds='.so'
14197 hardcode_into_libs=yes
14198 dynamic_linker="$host_os dld.so"
14199 shlibpath_var=LD_LIBRARY_PATH
14200 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14202 soname_spec='$libname$release$shared_ext$major'
14203 if test 32 = "$HPUX_IA64_MODE"; then
14204 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14205 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14206 else
14207 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14208 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14209 fi
14210 ;;
14211 hppa*64*)
14212 shrext_cmds='.sl'
14213 hardcode_into_libs=yes
14214 dynamic_linker="$host_os dld.sl"
14215 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14217 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14218 soname_spec='$libname$release$shared_ext$major'
14219 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14221 ;;
14222 *)
14223 shrext_cmds='.sl'
14224 dynamic_linker="$host_os dld.sl"
14225 shlibpath_var=SHLIB_PATH
14226 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14228 soname_spec='$libname$release$shared_ext$major'
14229 ;;
14230 esac
14231 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14232 postinstall_cmds='chmod 555 $lib'
14233 # or fails outright, so override atomically:
14234 install_override_mode=555
14235 ;;
14236
14237 interix[3-9]*)
14238 version_type=linux # correct to gnu/linux during the next big refactor
14239 need_lib_prefix=no
14240 need_version=no
14241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14242 soname_spec='$libname$release$shared_ext$major'
14243 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14244 shlibpath_var=LD_LIBRARY_PATH
14245 shlibpath_overrides_runpath=no
14246 hardcode_into_libs=yes
14247 ;;
14248
14249 irix5* | irix6* | nonstopux*)
14250 case $host_os in
14251 nonstopux*) version_type=nonstopux ;;
14252 *)
14253 if test yes = "$lt_cv_prog_gnu_ld"; then
14254 version_type=linux # correct to gnu/linux during the next big refactor
14255 else
14256 version_type=irix
14257 fi ;;
14258 esac
14259 need_lib_prefix=no
14260 need_version=no
14261 soname_spec='$libname$release$shared_ext$major'
14262 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14263 case $host_os in
14264 irix5* | nonstopux*)
14265 libsuff= shlibsuff=
14266 ;;
14267 *)
14268 case $LD in # libtool.m4 will add one of these switches to LD
14269 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14270 libsuff= shlibsuff= libmagic=32-bit;;
14271 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14272 libsuff=32 shlibsuff=N32 libmagic=N32;;
14273 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14274 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14275 *) libsuff= shlibsuff= libmagic=never-match;;
14276 esac
14277 ;;
14278 esac
14279 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14280 shlibpath_overrides_runpath=no
14281 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14282 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14283 hardcode_into_libs=yes
14284 ;;
14285
14286 # No shared lib support for Linux oldld, aout, or coff.
14287 linux*oldld* | linux*aout* | linux*coff*)
14288 dynamic_linker=no
14289 ;;
14290
14291 linux*android*)
14292 version_type=none # Android doesn't support versioned libraries.
14293 need_lib_prefix=no
14294 need_version=no
14295 library_names_spec='$libname$release$shared_ext'
14296 soname_spec='$libname$release$shared_ext'
14297 finish_cmds=
14298 shlibpath_var=LD_LIBRARY_PATH
14299 shlibpath_overrides_runpath=yes
14300
14301 # This implies no fast_install, which is unacceptable.
14302 # Some rework will be needed to allow for fast_install
14303 # before this can be enabled.
14304 hardcode_into_libs=yes
14305
14306 dynamic_linker='Android linker'
14307 # Don't embed -rpath directories since the linker doesn't support them.
14308 hardcode_libdir_flag_spec='-L$libdir'
14309 ;;
14310
14311 # This must be glibc/ELF.
14312 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14313 version_type=linux # correct to gnu/linux during the next big refactor
14314 need_lib_prefix=no
14315 need_version=no
14316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14317 soname_spec='$libname$release$shared_ext$major'
14318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14319 shlibpath_var=LD_LIBRARY_PATH
14320 shlibpath_overrides_runpath=no
14321
14322 # Some binutils ld are patched to set DT_RUNPATH
14323 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14324 $as_echo_n "(cached) " >&6
14325 else
14326 lt_cv_shlibpath_overrides_runpath=no
14327 save_LDFLAGS=$LDFLAGS
14328 save_libdir=$libdir
14329 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14330 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14332 /* end confdefs.h. */
14333
14334 int
14335 main (void)
14336 {
14337
14338 ;
14339 return 0;
14340 }
14341 _ACEOF
14342 if ac_fn_c_try_link "$LINENO"; then :
14343 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14344 lt_cv_shlibpath_overrides_runpath=yes
14345 fi
14346 fi
14347 rm -f core conftest.err conftest.$ac_objext \
14348 conftest$ac_exeext conftest.$ac_ext
14349 LDFLAGS=$save_LDFLAGS
14350 libdir=$save_libdir
14351
14352 fi
14353
14354 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14355
14356 # This implies no fast_install, which is unacceptable.
14357 # Some rework will be needed to allow for fast_install
14358 # before this can be enabled.
14359 hardcode_into_libs=yes
14360
14361 # Ideally, we could use ldconfig to report *all* directores which are
14362 # searched for libraries, however this is still not possible. Aside from not
14363 # being certain /sbin/ldconfig is available, command
14364 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14365 # even though it is searched at run-time. Try to do the best guess by
14366 # appending ld.so.conf contents (and includes) to the search path.
14367 if test -f /etc/ld.so.conf; then
14368 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' ' '`
14369 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14370 fi
14371
14372 # We used to test for /lib/ld.so.1 and disable shared libraries on
14373 # powerpc, because MkLinux only supported shared libraries with the
14374 # GNU dynamic linker. Since this was broken with cross compilers,
14375 # most powerpc-linux boxes support dynamic linking these days and
14376 # people can always --disable-shared, the test was removed, and we
14377 # assume the GNU/Linux dynamic linker is in use.
14378 dynamic_linker='GNU/Linux ld.so'
14379 ;;
14380
14381 netbsdelf*-gnu)
14382 version_type=linux
14383 need_lib_prefix=no
14384 need_version=no
14385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14386 soname_spec='${libname}${release}${shared_ext}$major'
14387 shlibpath_var=LD_LIBRARY_PATH
14388 shlibpath_overrides_runpath=no
14389 hardcode_into_libs=yes
14390 dynamic_linker='NetBSD ld.elf_so'
14391 ;;
14392
14393 netbsd*)
14394 version_type=sunos
14395 need_lib_prefix=no
14396 need_version=no
14397 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14398 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14400 dynamic_linker='NetBSD (a.out) ld.so'
14401 else
14402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14403 soname_spec='$libname$release$shared_ext$major'
14404 dynamic_linker='NetBSD ld.elf_so'
14405 fi
14406 shlibpath_var=LD_LIBRARY_PATH
14407 shlibpath_overrides_runpath=yes
14408 hardcode_into_libs=yes
14409 ;;
14410
14411 newsos6)
14412 version_type=linux # correct to gnu/linux during the next big refactor
14413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14414 shlibpath_var=LD_LIBRARY_PATH
14415 shlibpath_overrides_runpath=yes
14416 ;;
14417
14418 *nto* | *qnx*)
14419 version_type=qnx
14420 need_lib_prefix=no
14421 need_version=no
14422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14423 soname_spec='$libname$release$shared_ext$major'
14424 shlibpath_var=LD_LIBRARY_PATH
14425 shlibpath_overrides_runpath=no
14426 hardcode_into_libs=yes
14427 dynamic_linker='ldqnx.so'
14428 ;;
14429
14430 openbsd* | bitrig*)
14431 version_type=sunos
14432 sys_lib_dlsearch_path_spec=/usr/lib
14433 need_lib_prefix=no
14434 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14435 need_version=no
14436 else
14437 need_version=yes
14438 fi
14439 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14441 shlibpath_var=LD_LIBRARY_PATH
14442 shlibpath_overrides_runpath=yes
14443 ;;
14444
14445 os2*)
14446 libname_spec='$name'
14447 version_type=windows
14448 shrext_cmds=.dll
14449 need_version=no
14450 need_lib_prefix=no
14451 # OS/2 can only load a DLL with a base name of 8 characters or less.
14452 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14453 v=$($ECHO $release$versuffix | tr -d .-);
14454 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14455 $ECHO $n$v`$shared_ext'
14456 library_names_spec='${libname}_dll.$libext'
14457 dynamic_linker='OS/2 ld.exe'
14458 shlibpath_var=BEGINLIBPATH
14459 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14460 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14461 postinstall_cmds='base_file=`basename \$file`~
14462 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14463 dldir=$destdir/`dirname \$dlpath`~
14464 test -d \$dldir || mkdir -p \$dldir~
14465 $install_prog $dir/$dlname \$dldir/$dlname~
14466 chmod a+x \$dldir/$dlname~
14467 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14468 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14469 fi'
14470 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14471 dlpath=$dir/\$dldll~
14472 $RM \$dlpath'
14473 ;;
14474
14475 osf3* | osf4* | osf5*)
14476 version_type=osf
14477 need_lib_prefix=no
14478 need_version=no
14479 soname_spec='$libname$release$shared_ext$major'
14480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14481 shlibpath_var=LD_LIBRARY_PATH
14482 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14484 ;;
14485
14486 rdos*)
14487 dynamic_linker=no
14488 ;;
14489
14490 solaris*)
14491 version_type=linux # correct to gnu/linux during the next big refactor
14492 need_lib_prefix=no
14493 need_version=no
14494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14495 soname_spec='$libname$release$shared_ext$major'
14496 shlibpath_var=LD_LIBRARY_PATH
14497 shlibpath_overrides_runpath=yes
14498 hardcode_into_libs=yes
14499 # ldd complains unless libraries are executable
14500 postinstall_cmds='chmod +x $lib'
14501 ;;
14502
14503 sunos4*)
14504 version_type=sunos
14505 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14506 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14507 shlibpath_var=LD_LIBRARY_PATH
14508 shlibpath_overrides_runpath=yes
14509 if test yes = "$with_gnu_ld"; then
14510 need_lib_prefix=no
14511 fi
14512 need_version=yes
14513 ;;
14514
14515 sysv4 | sysv4.3*)
14516 version_type=linux # correct to gnu/linux during the next big refactor
14517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14518 soname_spec='$libname$release$shared_ext$major'
14519 shlibpath_var=LD_LIBRARY_PATH
14520 case $host_vendor in
14521 sni)
14522 shlibpath_overrides_runpath=no
14523 need_lib_prefix=no
14524 runpath_var=LD_RUN_PATH
14525 ;;
14526 siemens)
14527 need_lib_prefix=no
14528 ;;
14529 motorola)
14530 need_lib_prefix=no
14531 need_version=no
14532 shlibpath_overrides_runpath=no
14533 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14534 ;;
14535 esac
14536 ;;
14537
14538 sysv4*MP*)
14539 if test -d /usr/nec; then
14540 version_type=linux # correct to gnu/linux during the next big refactor
14541 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14542 soname_spec='$libname$shared_ext.$major'
14543 shlibpath_var=LD_LIBRARY_PATH
14544 fi
14545 ;;
14546
14547 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14548 version_type=sco
14549 need_lib_prefix=no
14550 need_version=no
14551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14552 soname_spec='$libname$release$shared_ext$major'
14553 shlibpath_var=LD_LIBRARY_PATH
14554 shlibpath_overrides_runpath=yes
14555 hardcode_into_libs=yes
14556 if test yes = "$with_gnu_ld"; then
14557 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14558 else
14559 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14560 case $host_os in
14561 sco3.2v5*)
14562 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14563 ;;
14564 esac
14565 fi
14566 sys_lib_dlsearch_path_spec='/usr/lib'
14567 ;;
14568
14569 tpf*)
14570 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14571 version_type=linux # correct to gnu/linux during the next big refactor
14572 need_lib_prefix=no
14573 need_version=no
14574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14575 shlibpath_var=LD_LIBRARY_PATH
14576 shlibpath_overrides_runpath=no
14577 hardcode_into_libs=yes
14578 ;;
14579
14580 uts4*)
14581 version_type=linux # correct to gnu/linux during the next big refactor
14582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14583 soname_spec='$libname$release$shared_ext$major'
14584 shlibpath_var=LD_LIBRARY_PATH
14585 ;;
14586
14587 *)
14588 dynamic_linker=no
14589 ;;
14590 esac
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14592 $as_echo "$dynamic_linker" >&6; }
14593 test no = "$dynamic_linker" && can_build_shared=no
14594
14595 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14596 if test yes = "$GCC"; then
14597 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14598 fi
14599
14600 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14601 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14602 fi
14603
14604 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14605 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14606 fi
14607
14608 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14609 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14610
14611 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14612 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14613
14614 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14615 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14714 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14715 hardcode_action=
14716 if test -n "$hardcode_libdir_flag_spec" ||
14717 test -n "$runpath_var" ||
14718 test yes = "$hardcode_automatic"; then
14719
14720 # We can hardcode non-existent directories.
14721 if test no != "$hardcode_direct" &&
14722 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14723 # have to relink, otherwise we might link with an installed library
14724 # when we should be linking with a yet-to-be-installed one
14725 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14726 test no != "$hardcode_minus_L"; then
14727 # Linking always hardcodes the temporary library directory.
14728 hardcode_action=relink
14729 else
14730 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14731 hardcode_action=immediate
14732 fi
14733 else
14734 # We cannot hardcode anything, or else we can only hardcode existing
14735 # directories.
14736 hardcode_action=unsupported
14737 fi
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14739 $as_echo "$hardcode_action" >&6; }
14740
14741 if test relink = "$hardcode_action" ||
14742 test yes = "$inherit_rpath"; then
14743 # Fast installation is not supported
14744 enable_fast_install=no
14745 elif test yes = "$shlibpath_overrides_runpath" ||
14746 test no = "$enable_shared"; then
14747 # Fast installation is not necessary
14748 enable_fast_install=needless
14749 fi
14750
14751
14752
14753
14754
14755
14756 if test yes != "$enable_dlopen"; then
14757 enable_dlopen=unknown
14758 enable_dlopen_self=unknown
14759 enable_dlopen_self_static=unknown
14760 else
14761 lt_cv_dlopen=no
14762 lt_cv_dlopen_libs=
14763
14764 case $host_os in
14765 beos*)
14766 lt_cv_dlopen=load_add_on
14767 lt_cv_dlopen_libs=
14768 lt_cv_dlopen_self=yes
14769 ;;
14770
14771 mingw* | pw32* | cegcc*)
14772 lt_cv_dlopen=LoadLibrary
14773 lt_cv_dlopen_libs=
14774 ;;
14775
14776 cygwin*)
14777 lt_cv_dlopen=dlopen
14778 lt_cv_dlopen_libs=
14779 ;;
14780
14781 darwin*)
14782 # if libdl is installed we need to link against it
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14784 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14785 if ${ac_cv_lib_dl_dlopen+:} false; then :
14786 $as_echo_n "(cached) " >&6
14787 else
14788 ac_check_lib_save_LIBS=$LIBS
14789 LIBS="-ldl $LIBS"
14790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791 /* end confdefs.h. */
14792
14793 /* Override any GCC internal prototype to avoid an error.
14794 Use char because int might match the return type of a GCC
14795 builtin and then its argument prototype would still apply. */
14796 #ifdef __cplusplus
14797 extern "C"
14798 #endif
14799 char dlopen ();
14800 int
14801 main (void)
14802 {
14803 return dlopen ();
14804 ;
14805 return 0;
14806 }
14807 _ACEOF
14808 if ac_fn_c_try_link "$LINENO"; then :
14809 ac_cv_lib_dl_dlopen=yes
14810 else
14811 ac_cv_lib_dl_dlopen=no
14812 fi
14813 rm -f core conftest.err conftest.$ac_objext \
14814 conftest$ac_exeext conftest.$ac_ext
14815 LIBS=$ac_check_lib_save_LIBS
14816 fi
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14818 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14819 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14820 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14821 else
14822
14823 lt_cv_dlopen=dyld
14824 lt_cv_dlopen_libs=
14825 lt_cv_dlopen_self=yes
14826
14827 fi
14828
14829 ;;
14830
14831 tpf*)
14832 # Don't try to run any link tests for TPF. We know it's impossible
14833 # because TPF is a cross-compiler, and we know how we open DSOs.
14834 lt_cv_dlopen=dlopen
14835 lt_cv_dlopen_libs=
14836 lt_cv_dlopen_self=no
14837 ;;
14838
14839 *)
14840 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14841 if test "x$ac_cv_func_shl_load" = xyes; then :
14842 lt_cv_dlopen=shl_load
14843 else
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14845 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14846 if ${ac_cv_lib_dld_shl_load+:} false; then :
14847 $as_echo_n "(cached) " >&6
14848 else
14849 ac_check_lib_save_LIBS=$LIBS
14850 LIBS="-ldld $LIBS"
14851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852 /* end confdefs.h. */
14853
14854 /* Override any GCC internal prototype to avoid an error.
14855 Use char because int might match the return type of a GCC
14856 builtin and then its argument prototype would still apply. */
14857 #ifdef __cplusplus
14858 extern "C"
14859 #endif
14860 char shl_load ();
14861 int
14862 main (void)
14863 {
14864 return shl_load ();
14865 ;
14866 return 0;
14867 }
14868 _ACEOF
14869 if ac_fn_c_try_link "$LINENO"; then :
14870 ac_cv_lib_dld_shl_load=yes
14871 else
14872 ac_cv_lib_dld_shl_load=no
14873 fi
14874 rm -f core conftest.err conftest.$ac_objext \
14875 conftest$ac_exeext conftest.$ac_ext
14876 LIBS=$ac_check_lib_save_LIBS
14877 fi
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14879 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14880 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14881 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14882 else
14883 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14884 if test "x$ac_cv_func_dlopen" = xyes; then :
14885 lt_cv_dlopen=dlopen
14886 else
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14888 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14889 if ${ac_cv_lib_dl_dlopen+:} false; then :
14890 $as_echo_n "(cached) " >&6
14891 else
14892 ac_check_lib_save_LIBS=$LIBS
14893 LIBS="-ldl $LIBS"
14894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14895 /* end confdefs.h. */
14896
14897 /* Override any GCC internal prototype to avoid an error.
14898 Use char because int might match the return type of a GCC
14899 builtin and then its argument prototype would still apply. */
14900 #ifdef __cplusplus
14901 extern "C"
14902 #endif
14903 char dlopen ();
14904 int
14905 main (void)
14906 {
14907 return dlopen ();
14908 ;
14909 return 0;
14910 }
14911 _ACEOF
14912 if ac_fn_c_try_link "$LINENO"; then :
14913 ac_cv_lib_dl_dlopen=yes
14914 else
14915 ac_cv_lib_dl_dlopen=no
14916 fi
14917 rm -f core conftest.err conftest.$ac_objext \
14918 conftest$ac_exeext conftest.$ac_ext
14919 LIBS=$ac_check_lib_save_LIBS
14920 fi
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14922 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14923 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14924 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14925 else
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14927 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14928 if ${ac_cv_lib_svld_dlopen+:} false; then :
14929 $as_echo_n "(cached) " >&6
14930 else
14931 ac_check_lib_save_LIBS=$LIBS
14932 LIBS="-lsvld $LIBS"
14933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14934 /* end confdefs.h. */
14935
14936 /* Override any GCC internal prototype to avoid an error.
14937 Use char because int might match the return type of a GCC
14938 builtin and then its argument prototype would still apply. */
14939 #ifdef __cplusplus
14940 extern "C"
14941 #endif
14942 char dlopen ();
14943 int
14944 main (void)
14945 {
14946 return dlopen ();
14947 ;
14948 return 0;
14949 }
14950 _ACEOF
14951 if ac_fn_c_try_link "$LINENO"; then :
14952 ac_cv_lib_svld_dlopen=yes
14953 else
14954 ac_cv_lib_svld_dlopen=no
14955 fi
14956 rm -f core conftest.err conftest.$ac_objext \
14957 conftest$ac_exeext conftest.$ac_ext
14958 LIBS=$ac_check_lib_save_LIBS
14959 fi
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14961 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14962 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14963 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14964 else
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14966 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14967 if ${ac_cv_lib_dld_dld_link+:} false; then :
14968 $as_echo_n "(cached) " >&6
14969 else
14970 ac_check_lib_save_LIBS=$LIBS
14971 LIBS="-ldld $LIBS"
14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14973 /* end confdefs.h. */
14974
14975 /* Override any GCC internal prototype to avoid an error.
14976 Use char because int might match the return type of a GCC
14977 builtin and then its argument prototype would still apply. */
14978 #ifdef __cplusplus
14979 extern "C"
14980 #endif
14981 char dld_link ();
14982 int
14983 main (void)
14984 {
14985 return dld_link ();
14986 ;
14987 return 0;
14988 }
14989 _ACEOF
14990 if ac_fn_c_try_link "$LINENO"; then :
14991 ac_cv_lib_dld_dld_link=yes
14992 else
14993 ac_cv_lib_dld_dld_link=no
14994 fi
14995 rm -f core conftest.err conftest.$ac_objext \
14996 conftest$ac_exeext conftest.$ac_ext
14997 LIBS=$ac_check_lib_save_LIBS
14998 fi
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15000 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15001 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15002 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15003 fi
15004
15005
15006 fi
15007
15008
15009 fi
15010
15011
15012 fi
15013
15014
15015 fi
15016
15017
15018 fi
15019
15020 ;;
15021 esac
15022
15023 if test no = "$lt_cv_dlopen"; then
15024 enable_dlopen=no
15025 else
15026 enable_dlopen=yes
15027 fi
15028
15029 case $lt_cv_dlopen in
15030 dlopen)
15031 save_CPPFLAGS=$CPPFLAGS
15032 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15033
15034 save_LDFLAGS=$LDFLAGS
15035 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15036
15037 save_LIBS=$LIBS
15038 LIBS="$lt_cv_dlopen_libs $LIBS"
15039
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15041 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15042 if ${lt_cv_dlopen_self+:} false; then :
15043 $as_echo_n "(cached) " >&6
15044 else
15045 if test yes = "$cross_compiling"; then :
15046 lt_cv_dlopen_self=cross
15047 else
15048 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15049 lt_status=$lt_dlunknown
15050 cat > conftest.$ac_ext <<_LT_EOF
15051 #line $LINENO "configure"
15052 #include "confdefs.h"
15053
15054 #if HAVE_DLFCN_H
15055 #include <dlfcn.h>
15056 #endif
15057
15058 #include <stdio.h>
15059
15060 #ifdef RTLD_GLOBAL
15061 # define LT_DLGLOBAL RTLD_GLOBAL
15062 #else
15063 # ifdef DL_GLOBAL
15064 # define LT_DLGLOBAL DL_GLOBAL
15065 # else
15066 # define LT_DLGLOBAL 0
15067 # endif
15068 #endif
15069
15070 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15071 find out it does not work in some platform. */
15072 #ifndef LT_DLLAZY_OR_NOW
15073 # ifdef RTLD_LAZY
15074 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15075 # else
15076 # ifdef DL_LAZY
15077 # define LT_DLLAZY_OR_NOW DL_LAZY
15078 # else
15079 # ifdef RTLD_NOW
15080 # define LT_DLLAZY_OR_NOW RTLD_NOW
15081 # else
15082 # ifdef DL_NOW
15083 # define LT_DLLAZY_OR_NOW DL_NOW
15084 # else
15085 # define LT_DLLAZY_OR_NOW 0
15086 # endif
15087 # endif
15088 # endif
15089 # endif
15090 #endif
15091
15092 /* When -fvisibility=hidden is used, assume the code has been annotated
15093 correspondingly for the symbols needed. */
15094 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15095 int fnord () __attribute__((visibility("default")));
15096 #endif
15097
15098 int fnord () { return 42; }
15099 int main ()
15100 {
15101 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15102 int status = $lt_dlunknown;
15103
15104 if (self)
15105 {
15106 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15107 else
15108 {
15109 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15110 else puts (dlerror ());
15111 }
15112 /* dlclose (self); */
15113 }
15114 else
15115 puts (dlerror ());
15116
15117 return status;
15118 }
15119 _LT_EOF
15120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15121 (eval $ac_link) 2>&5
15122 ac_status=$?
15123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15124 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15125 (./conftest; exit; ) >&5 2>/dev/null
15126 lt_status=$?
15127 case x$lt_status in
15128 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15129 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15130 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15131 esac
15132 else :
15133 # compilation failed
15134 lt_cv_dlopen_self=no
15135 fi
15136 fi
15137 rm -fr conftest*
15138
15139
15140 fi
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15142 $as_echo "$lt_cv_dlopen_self" >&6; }
15143
15144 if test yes = "$lt_cv_dlopen_self"; then
15145 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15147 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15148 if ${lt_cv_dlopen_self_static+:} false; then :
15149 $as_echo_n "(cached) " >&6
15150 else
15151 if test yes = "$cross_compiling"; then :
15152 lt_cv_dlopen_self_static=cross
15153 else
15154 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15155 lt_status=$lt_dlunknown
15156 cat > conftest.$ac_ext <<_LT_EOF
15157 #line $LINENO "configure"
15158 #include "confdefs.h"
15159
15160 #if HAVE_DLFCN_H
15161 #include <dlfcn.h>
15162 #endif
15163
15164 #include <stdio.h>
15165
15166 #ifdef RTLD_GLOBAL
15167 # define LT_DLGLOBAL RTLD_GLOBAL
15168 #else
15169 # ifdef DL_GLOBAL
15170 # define LT_DLGLOBAL DL_GLOBAL
15171 # else
15172 # define LT_DLGLOBAL 0
15173 # endif
15174 #endif
15175
15176 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15177 find out it does not work in some platform. */
15178 #ifndef LT_DLLAZY_OR_NOW
15179 # ifdef RTLD_LAZY
15180 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15181 # else
15182 # ifdef DL_LAZY
15183 # define LT_DLLAZY_OR_NOW DL_LAZY
15184 # else
15185 # ifdef RTLD_NOW
15186 # define LT_DLLAZY_OR_NOW RTLD_NOW
15187 # else
15188 # ifdef DL_NOW
15189 # define LT_DLLAZY_OR_NOW DL_NOW
15190 # else
15191 # define LT_DLLAZY_OR_NOW 0
15192 # endif
15193 # endif
15194 # endif
15195 # endif
15196 #endif
15197
15198 /* When -fvisibility=hidden is used, assume the code has been annotated
15199 correspondingly for the symbols needed. */
15200 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15201 int fnord () __attribute__((visibility("default")));
15202 #endif
15203
15204 int fnord () { return 42; }
15205 int main ()
15206 {
15207 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15208 int status = $lt_dlunknown;
15209
15210 if (self)
15211 {
15212 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15213 else
15214 {
15215 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15216 else puts (dlerror ());
15217 }
15218 /* dlclose (self); */
15219 }
15220 else
15221 puts (dlerror ());
15222
15223 return status;
15224 }
15225 _LT_EOF
15226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15227 (eval $ac_link) 2>&5
15228 ac_status=$?
15229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15230 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15231 (./conftest; exit; ) >&5 2>/dev/null
15232 lt_status=$?
15233 case x$lt_status in
15234 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15235 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15236 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15237 esac
15238 else :
15239 # compilation failed
15240 lt_cv_dlopen_self_static=no
15241 fi
15242 fi
15243 rm -fr conftest*
15244
15245
15246 fi
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15248 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15249 fi
15250
15251 CPPFLAGS=$save_CPPFLAGS
15252 LDFLAGS=$save_LDFLAGS
15253 LIBS=$save_LIBS
15254 ;;
15255 esac
15256
15257 case $lt_cv_dlopen_self in
15258 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15259 *) enable_dlopen_self=unknown ;;
15260 esac
15261
15262 case $lt_cv_dlopen_self_static in
15263 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15264 *) enable_dlopen_self_static=unknown ;;
15265 esac
15266 fi
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284 striplib=
15285 old_striplib=
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15287 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15288 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15289 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15290 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15292 $as_echo "yes" >&6; }
15293 else
15294 # FIXME - insert some real tests, host_os isn't really good enough
15295 case $host_os in
15296 darwin*)
15297 if test -n "$STRIP"; then
15298 striplib="$STRIP -x"
15299 old_striplib="$STRIP -S"
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15301 $as_echo "yes" >&6; }
15302 else
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15304 $as_echo "no" >&6; }
15305 fi
15306 ;;
15307 *)
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15309 $as_echo "no" >&6; }
15310 ;;
15311 esac
15312 fi
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325 # Report what library types will actually be built
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15327 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15329 $as_echo "$can_build_shared" >&6; }
15330
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15332 $as_echo_n "checking whether to build shared libraries... " >&6; }
15333 test no = "$can_build_shared" && enable_shared=no
15334
15335 # On AIX, shared libraries and static libraries use the same namespace, and
15336 # are all built from PIC.
15337 case $host_os in
15338 aix3*)
15339 test yes = "$enable_shared" && enable_static=no
15340 if test -n "$RANLIB"; then
15341 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15342 postinstall_cmds='$RANLIB $lib'
15343 fi
15344 ;;
15345
15346 aix[4-9]*)
15347 if test ia64 != "$host_cpu"; then
15348 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15349 yes,aix,yes) ;; # shared object as lib.so file only
15350 yes,svr4,*) ;; # shared object as lib.so archive member only
15351 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15352 esac
15353 fi
15354 ;;
15355 esac
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15357 $as_echo "$enable_shared" >&6; }
15358
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15360 $as_echo_n "checking whether to build static libraries... " >&6; }
15361 # Make sure either enable_shared or enable_static is yes.
15362 test yes = "$enable_shared" || enable_static=yes
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15364 $as_echo "$enable_static" >&6; }
15365
15366
15367
15368
15369 fi
15370 ac_ext=c
15371 ac_cpp='$CPP $CPPFLAGS'
15372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15375
15376 CC=$lt_save_CC
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392 ac_config_commands="$ac_config_commands libtool"
15393
15394
15395
15396
15397 # Only expand once:
15398
15399
15400 case $host in
15401 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLL/static GMP" >&5
15403 $as_echo_n "checking for DLL/static GMP... " >&6; }
15404 if test "$enable_shared" = yes; then
15405 MPFR_LDFLAGS="$MPFR_LDFLAGS -no-undefined"
15406 LIBMPFR_LDFLAGS="$LIBMPFR_LDFLAGS -Wl,--output-def,.libs/libmpfr-4.dll.def"
15407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15408 /* end confdefs.h. */
15409
15410 #include "gmp.h"
15411 #if !__GMP_LIBGMP_DLL
15412 # error "Dead man"
15413 error
15414 #endif
15415
15416 int
15417 main (void)
15418 {
15419
15420 ;
15421 return 0;
15422 }
15423 _ACEOF
15424 if ac_fn_c_try_compile "$LINENO"; then :
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
15426 $as_echo "DLL" >&6; }
15427 else
15428
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
15430 $as_echo "static" >&6; }
15431 as_fn_error $? "gmp.h isn't a DLL: use --enable-static --disable-shared" "$LINENO" 5
15432 fi
15433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15434 else
15435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15436 /* end confdefs.h. */
15437
15438 #include "gmp.h"
15439 #if __GMP_LIBGMP_DLL
15440 # error "Dead man"
15441 error
15442 #endif
15443
15444 int
15445 main (void)
15446 {
15447
15448 ;
15449 return 0;
15450 }
15451 _ACEOF
15452 if ac_fn_c_try_compile "$LINENO"; then :
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
15454 $as_echo "static" >&6; }
15455 else
15456
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
15458 $as_echo "DLL" >&6; }
15459 as_fn_error $? "gmp.h is a DLL: use --disable-static --enable-shared" "$LINENO" 5
15460 fi
15461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15462 fi
15463 ;;
15464 esac
15465
15466
15467
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5
15469 $as_echo_n "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; }
15470 if ${gmp_cv_c_attribute_mode+:} false; then :
15471 $as_echo_n "(cached) " >&6
15472 else
15473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15474 /* end confdefs.h. */
15475 typedef int SItype __attribute__ ((mode (SI)));
15476 int
15477 main (void)
15478 {
15479
15480 ;
15481 return 0;
15482 }
15483 _ACEOF
15484 if ac_fn_c_try_compile "$LINENO"; then :
15485 gmp_cv_c_attribute_mode=yes
15486 else
15487 gmp_cv_c_attribute_mode=no
15488 fi
15489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15490
15491 fi
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5
15493 $as_echo "$gmp_cv_c_attribute_mode" >&6; }
15494 if test $gmp_cv_c_attribute_mode = yes; then
15495
15496 $as_echo "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h
15497
15498 fi
15499
15500
15501
15502
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent GMP" >&5
15504 $as_echo_n "checking for recent GMP... " >&6; }
15505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15506 /* end confdefs.h. */
15507
15508 #include "gmp.h"
15509 #if (__GNU_MP_VERSION*100+__GNU_MP_VERSION_MINOR*10 < 410)
15510 # error "min GMP version is 4.1.0"
15511 error
15512 #endif
15513
15514 _ACEOF
15515 if ac_fn_c_try_compile "$LINENO"; then :
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15517 $as_echo "yes" >&6; }
15518 else
15519
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15521 $as_echo "no" >&6; }
15522 as_fn_error $? "GMP 4.1.0 min required" "$LINENO" 5
15523
15524 fi
15525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15526
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking usable gmp.h at link time" >&5
15528 $as_echo_n "checking usable gmp.h at link time... " >&6; }
15529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15530 /* end confdefs.h. */
15531
15532 #include "gmp.h"
15533
15534 int
15535 main (void)
15536 {
15537
15538 ;
15539 return 0;
15540 }
15541 _ACEOF
15542 if ac_fn_c_try_link "$LINENO"; then :
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15544 $as_echo "yes" >&6; }
15545 else
15546
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15548 $as_echo "no" >&6; }
15549 as_fn_error $? "There is an incompatibility between gmp.h and the compiler.
15550 See 'config.log' for details.
15551 Such an incompatibility is known between GMP 4.1, which uses
15552 \"extern __inline__\" with all GCC versions, and GCC 5." "$LINENO" 5
15553
15554 fi
15555 rm -f core conftest.err conftest.$ac_objext \
15556 conftest$ac_exeext conftest.$ac_ext
15557
15558 if test "$use_gmp_build" = yes ; then
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp internal files" >&5
15560 $as_echo_n "checking for gmp internal files... " >&6; }
15561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15562 /* end confdefs.h. */
15563
15564 #include "gmp.h"
15565 #include "gmp-impl.h"
15566 #include "longlong.h"
15567
15568 _ACEOF
15569 if ac_fn_c_try_compile "$LINENO"; then :
15570
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15572 $as_echo "yes" >&6; }
15573
15574 $as_echo "#define MPFR_HAVE_GMP_IMPL 1" >>confdefs.h
15575
15576
15577 else
15578
15579 as_fn_error $? "header files gmp-impl.h and longlong.h not found" "$LINENO" 5
15580
15581 fi
15582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15583 fi
15584
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMP_NUMB_BITS and sizeof(mp_limb_t) consistency" >&5
15586 $as_echo_n "checking for GMP_NUMB_BITS and sizeof(mp_limb_t) consistency... " >&6; }
15587 if test "$cross_compiling" = yes; then :
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5
15589 $as_echo "cannot test" >&6; }
15590 else
15591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15592 /* end confdefs.h. */
15593
15594 #include <stdio.h>
15595 #include <limits.h>
15596 #include "gmp.h"
15597
15598 int
15599 main (void)
15600 {
15601
15602 if (GMP_NUMB_BITS == sizeof(mp_limb_t) * CHAR_BIT)
15603 return 0;
15604 fprintf (stderr, "GMP_NUMB_BITS = %ld\n", (long) GMP_NUMB_BITS);
15605 fprintf (stderr, "sizeof(mp_limb_t) = %ld\n", (long) sizeof(mp_limb_t));
15606 fprintf (stderr, "sizeof(mp_limb_t) * CHAR_BIT = %ld != GMP_NUMB_BITS\n",
15607 (long) (sizeof(mp_limb_t) * CHAR_BIT));
15608 return 1;
15609
15610 ;
15611 return 0;
15612 }
15613 _ACEOF
15614 if ac_fn_c_try_run "$LINENO"; then :
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15616 $as_echo "yes" >&6; }
15617 else
15618
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15620 $as_echo "no" >&6; }
15621 as_fn_error $? "GMP_NUMB_BITS and sizeof(mp_limb_t) are not consistent.
15622 You probably need to change some of the GMP or MPFR compile options.
15623 See 'config.log' for details (search for GMP_NUMB_BITS)." "$LINENO" 5
15624 fi
15625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15626 conftest.$ac_objext conftest.beam conftest.$ac_ext
15627 fi
15628
15629
15630
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
15632 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
15633 if ${ac_cv_lib_gmp___gmpz_init+:} false; then :
15634 $as_echo_n "(cached) " >&6
15635 else
15636 ac_check_lib_save_LIBS=$LIBS
15637 LIBS="-lgmp $LIBS"
15638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15639 /* end confdefs.h. */
15640
15641 /* Override any GCC internal prototype to avoid an error.
15642 Use char because int might match the return type of a GCC
15643 builtin and then its argument prototype would still apply. */
15644 #ifdef __cplusplus
15645 extern "C"
15646 #endif
15647 char __gmpz_init ();
15648 int
15649 main (void)
15650 {
15651 return __gmpz_init ();
15652 ;
15653 return 0;
15654 }
15655 _ACEOF
15656 if ac_fn_c_try_link "$LINENO"; then :
15657 ac_cv_lib_gmp___gmpz_init=yes
15658 else
15659 ac_cv_lib_gmp___gmpz_init=no
15660 fi
15661 rm -f core conftest.err conftest.$ac_objext \
15662 conftest$ac_exeext conftest.$ac_ext
15663 LIBS=$ac_check_lib_save_LIBS
15664 fi
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
15666 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
15667 if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then :
15668 LIBS="-lgmp $LIBS"
15669 else
15670 as_fn_error $? "libgmp not found or uses a different ABI (including static vs shared).
15671 Please read the INSTALL file -- see \"In case of problem\"." "$LINENO" 5
15672 fi
15673
15674
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp.h version and libgmp version are the same" >&5
15676 $as_echo_n "checking if gmp.h version and libgmp version are the same... " >&6; }
15677 saved_LD_RUN_PATH="$LD_RUN_PATH"
15678 LD_RUN_PATH="${LD_RUN_PATH:+$LD_RUN_PATH$PATH_SEPARATOR}$gmp_lib_path"
15679 export LD_RUN_PATH
15680 if test "$cross_compiling" = yes; then :
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5
15682 $as_echo "cannot test" >&6; }
15683
15684 else
15685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15686 /* end confdefs.h. */
15687
15688 #include <stdio.h>
15689 #include <string.h>
15690 #include "gmp.h"
15691
15692 int
15693 main (void)
15694 {
15695
15696 char buffer[100];
15697 sprintf (buffer, "%d.%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR,
15698 __GNU_MP_VERSION_PATCHLEVEL);
15699 printf ("(%s/%s) ", buffer, gmp_version);
15700 if (strcmp (buffer, gmp_version) == 0)
15701 return 0;
15702 if (__GNU_MP_VERSION_PATCHLEVEL != 0)
15703 return 1;
15704 sprintf (buffer, "%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR);
15705 return (strcmp (buffer, gmp_version) != 0) ? 1 : 0;
15706
15707 ;
15708 return 0;
15709 }
15710 _ACEOF
15711 if ac_fn_c_try_run "$LINENO"; then :
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15713 $as_echo "yes" >&6; }
15714
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMP library vs header correctness" >&5
15716 $as_echo_n "checking for GMP library vs header correctness... " >&6; }
15717 if ${mpfr_cv_check_gmp+:} false; then :
15718 $as_echo_n "(cached) " >&6
15719 else
15720
15721 if test "$cross_compiling" = yes; then :
15722 mpfr_cv_check_gmp="cannot test, assume yes"
15723 else
15724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15725 /* end confdefs.h. */
15726
15727 #include <stdio.h>
15728 #include <limits.h>
15729 #include <gmp.h>
15730
15731 int
15732 main (void)
15733 {
15734
15735 fprintf (stderr, "GMP_NAIL_BITS = %d\n", (int) GMP_NAIL_BITS);
15736 fprintf (stderr, "GMP_NUMB_BITS = %d\n", (int) GMP_NUMB_BITS);
15737 fprintf (stderr, "mp_bits_per_limb = %d\n", (int) mp_bits_per_limb);
15738 fprintf (stderr, "sizeof(mp_limb_t) = %d\n", (int) sizeof(mp_limb_t));
15739 if (GMP_NAIL_BITS != 0)
15740 {
15741 fprintf (stderr, "GMP_NAIL_BITS != 0\n");
15742 return 1;
15743 }
15744 if (GMP_NUMB_BITS != mp_bits_per_limb)
15745 {
15746 fprintf (stderr, "GMP_NUMB_BITS != mp_bits_per_limb\n");
15747 return 2;
15748 }
15749 if (GMP_NUMB_BITS != sizeof(mp_limb_t) * CHAR_BIT)
15750 {
15751 fprintf (stderr, "GMP_NUMB_BITS != sizeof(mp_limb_t) * CHAR_BIT\n");
15752 return 3;
15753 }
15754 return 0;
15755
15756 ;
15757 return 0;
15758 }
15759 _ACEOF
15760 if ac_fn_c_try_run "$LINENO"; then :
15761 mpfr_cv_check_gmp="yes"
15762 else
15763 mpfr_cv_check_gmp="no (exit status is $?)"
15764 fi
15765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15766 conftest.$ac_objext conftest.beam conftest.$ac_ext
15767 fi
15768
15769
15770 fi
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_check_gmp" >&5
15772 $as_echo "$mpfr_cv_check_gmp" >&6; }
15773 case $mpfr_cv_check_gmp in
15774 no*)
15775 as_fn_error $? "bad GMP library or header - ABI problem?
15776 See 'config.log' for details." "$LINENO" 5
15777 esac
15778
15779
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for double-to-integer conversion bug" >&5
15781 $as_echo_n "checking for double-to-integer conversion bug... " >&6; }
15782 if ${mpfr_cv_dbl_int_bug+:} false; then :
15783 $as_echo_n "(cached) " >&6
15784 else
15785
15786 if test "$cross_compiling" = yes; then :
15787 mpfr_cv_dbl_int_bug="cannot test, assume not present"
15788 else
15789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15790 /* end confdefs.h. */
15791
15792 #include <gmp.h>
15793
15794 int
15795 main (void)
15796 {
15797
15798 double d;
15799 mp_limb_t u;
15800 int i;
15801
15802 d = 1.0;
15803 for (i = 0; i < GMP_NUMB_BITS - 1; i++)
15804 d = d + d;
15805 u = (mp_limb_t) d;
15806 for (; i > 0; i--)
15807 {
15808 if (u & 1)
15809 break;
15810 u = u >> 1;
15811 }
15812 return (i == 0 && u == 1UL) ? 0 : 254 - i;
15813
15814 ;
15815 return 0;
15816 }
15817 _ACEOF
15818 if ac_fn_c_try_run "$LINENO"; then :
15819 mpfr_cv_dbl_int_bug="no"
15820 else
15821 mpfr_cv_dbl_int_bug="yes or failed to exec (exit status is $?)"
15822 fi
15823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15824 conftest.$ac_objext conftest.beam conftest.$ac_ext
15825 fi
15826
15827
15828 fi
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_dbl_int_bug" >&5
15830 $as_echo "$mpfr_cv_dbl_int_bug" >&6; }
15831 case $mpfr_cv_dbl_int_bug in
15832 yes*)
15833 as_fn_error $? "double-to-integer conversion is incorrect.
15834 You need to use another compiler (or lower the optimization level)." "$LINENO" 5
15835 esac
15836
15837
15838 if test "$ac_cv_type_intmax_t" = yes; then
15839
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%jd\"" >&5
15841 $as_echo_n "checking if gmp_printf supports \"%jd\"... " >&6; }
15842 if test "$cross_compiling" = yes; then :
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
15844 $as_echo "cross-compiling" >&6; }
15845
15846 else
15847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15848 /* end confdefs.h. */
15849
15850 #include <stdio.h>
15851 #include <string.h>
15852
15853 #ifdef HAVE_INTTYPES_H
15854 # include <inttypes.h>
15855 #endif
15856 #ifdef HAVE_STDINT_H
15857 # include <stdint.h>
15858 #endif
15859
15860 #include <gmp.h>
15861
15862 int
15863 main (void)
15864 {
15865
15866 char s[256];
15867 intmax_t a = 17;
15868
15869 if (gmp_sprintf (s, "(%0.0jd)(%d)", a, 42) == -1) return 1;
15870 return (strcmp (s, "(17)(42)") != 0);
15871
15872 ;
15873 return 0;
15874 }
15875 _ACEOF
15876 if ac_fn_c_try_run "$LINENO"; then :
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15878 $as_echo "yes" >&6; }
15879
15880 else
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15882 $as_echo "no" >&6; }
15883
15884 $as_echo "#define NPRINTF_J 1" >>confdefs.h
15885
15886 fi
15887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15888 conftest.$ac_objext conftest.beam conftest.$ac_ext
15889 fi
15890
15891
15892 fi
15893
15894
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%hhd\"" >&5
15896 $as_echo_n "checking if gmp_printf supports \"%hhd\"... " >&6; }
15897 if test "$cross_compiling" = yes; then :
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
15899 $as_echo "cross-compiling" >&6; }
15900
15901 else
15902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15903 /* end confdefs.h. */
15904
15905 #include <stdio.h>
15906 #include <string.h>
15907
15908 #include <gmp.h>
15909
15910 #include <gmp.h>
15911
15912 int
15913 main (void)
15914 {
15915
15916 char s[256];
15917 char a = 17;
15918
15919 if (gmp_sprintf (s, "(%0.0hhd)(%d)", a, 42) == -1) return 1;
15920 return (strcmp (s, "(17)(42)") != 0);
15921
15922 ;
15923 return 0;
15924 }
15925 _ACEOF
15926 if ac_fn_c_try_run "$LINENO"; then :
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15928 $as_echo "yes" >&6; }
15929
15930 else
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15932 $as_echo "no" >&6; }
15933
15934 $as_echo "#define NPRINTF_HH 1" >>confdefs.h
15935
15936 fi
15937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15938 conftest.$ac_objext conftest.beam conftest.$ac_ext
15939 fi
15940
15941
15942
15943
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%lld\"" >&5
15945 $as_echo_n "checking if gmp_printf supports \"%lld\"... " >&6; }
15946 if test "$cross_compiling" = yes; then :
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
15948 $as_echo "cross-compiling" >&6; }
15949
15950 else
15951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15952 /* end confdefs.h. */
15953
15954 #include <stdio.h>
15955 #include <string.h>
15956
15957 #include <gmp.h>
15958
15959 #include <gmp.h>
15960
15961 int
15962 main (void)
15963 {
15964
15965 char s[256];
15966 long long int a = 17;
15967
15968 if (gmp_sprintf (s, "(%0.0lld)(%d)", a, 42) == -1) return 1;
15969 return (strcmp (s, "(17)(42)") != 0);
15970
15971 ;
15972 return 0;
15973 }
15974 _ACEOF
15975 if ac_fn_c_try_run "$LINENO"; then :
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15977 $as_echo "yes" >&6; }
15978
15979 else
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15981 $as_echo "no" >&6; }
15982
15983 $as_echo "#define NPRINTF_LL 1" >>confdefs.h
15984
15985 fi
15986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15987 conftest.$ac_objext conftest.beam conftest.$ac_ext
15988 fi
15989
15990
15991
15992
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%Lf\"" >&5
15994 $as_echo_n "checking if gmp_printf supports \"%Lf\"... " >&6; }
15995 if test "$cross_compiling" = yes; then :
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
15997 $as_echo "cross-compiling" >&6; }
15998
15999 else
16000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16001 /* end confdefs.h. */
16002
16003 #include <stdio.h>
16004 #include <string.h>
16005
16006 #include <gmp.h>
16007
16008 #include <gmp.h>
16009
16010 int
16011 main (void)
16012 {
16013
16014 char s[256];
16015 long double a = 17;
16016
16017 if (gmp_sprintf (s, "(%0.0Lf)(%d)", a, 42) == -1) return 1;
16018 return (strcmp (s, "(17)(42)") != 0);
16019
16020 ;
16021 return 0;
16022 }
16023 _ACEOF
16024 if ac_fn_c_try_run "$LINENO"; then :
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16026 $as_echo "yes" >&6; }
16027
16028 else
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16030 $as_echo "no" >&6; }
16031
16032 $as_echo "#define NPRINTF_L 1" >>confdefs.h
16033
16034 fi
16035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16036 conftest.$ac_objext conftest.beam conftest.$ac_ext
16037 fi
16038
16039
16040
16041
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%td\"" >&5
16043 $as_echo_n "checking if gmp_printf supports \"%td\"... " >&6; }
16044 if test "$cross_compiling" = yes; then :
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
16046 $as_echo "cross-compiling" >&6; }
16047
16048 else
16049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16050 /* end confdefs.h. */
16051
16052 #include <stdio.h>
16053 #include <string.h>
16054
16055 #if defined (__cplusplus)
16056 #include <cstddef>
16057 #else
16058 #include <stddef.h>
16059 #endif
16060 #include <gmp.h>
16061
16062 #include <gmp.h>
16063
16064 int
16065 main (void)
16066 {
16067
16068 char s[256];
16069 ptrdiff_t a = 17;
16070
16071 if (gmp_sprintf (s, "(%0.0td)(%d)", a, 42) == -1) return 1;
16072 return (strcmp (s, "(17)(42)") != 0);
16073
16074 ;
16075 return 0;
16076 }
16077 _ACEOF
16078 if ac_fn_c_try_run "$LINENO"; then :
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16080 $as_echo "yes" >&6; }
16081
16082 else
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16084 $as_echo "no" >&6; }
16085
16086 $as_echo "#define NPRINTF_T 1" >>confdefs.h
16087
16088 fi
16089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16090 conftest.$ac_objext conftest.beam conftest.$ac_ext
16091 fi
16092
16093
16094
16095 else
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16097 $as_echo "no" >&6; }
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==========================================================" >&5
16099 $as_echo "$as_me: WARNING: ==========================================================" >&2;}
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'gmp.h' and 'libgmp' seem to have different versions or" >&5
16101 $as_echo "$as_me: WARNING: 'gmp.h' and 'libgmp' seem to have different versions or" >&2;}
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we cannot run a program linked with GMP (if you cannot" >&5
16103 $as_echo "$as_me: WARNING: we cannot run a program linked with GMP (if you cannot" >&2;}
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see the version numbers above). A cause may be different" >&5
16105 $as_echo "$as_me: WARNING: see the version numbers above). A cause may be different" >&2;}
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GMP versions with different ABI's or the use of --with-gmp" >&5
16107 $as_echo "$as_me: WARNING: GMP versions with different ABI's or the use of --with-gmp" >&2;}
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: or --with-gmp-include with a system include directory" >&5
16109 $as_echo "$as_me: WARNING: or --with-gmp-include with a system include directory" >&2;}
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (such as /usr/include or /usr/local/include)." >&5
16111 $as_echo "$as_me: WARNING: (such as /usr/include or /usr/local/include)." >&2;}
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: However since we can't use 'libtool' inside the configure," >&5
16113 $as_echo "$as_me: WARNING: However since we can't use 'libtool' inside the configure," >&2;}
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we can't be sure. See 'config.log' for details." >&5
16115 $as_echo "$as_me: WARNING: we can't be sure. See 'config.log' for details." >&2;}
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CC=\"$CC\"" >&5
16117 $as_echo "$as_me: WARNING: CC=\"$CC\"" >&2;}
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CFLAGS=\"$CFLAGS\"" >&5
16119 $as_echo "$as_me: WARNING: CFLAGS=\"$CFLAGS\"" >&2;}
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CPPFLAGS=\"$CPPFLAGS\"" >&5
16121 $as_echo "$as_me: WARNING: CPPFLAGS=\"$CPPFLAGS\"" >&2;}
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LDFLAGS=\"$LDFLAGS\"" >&5
16123 $as_echo "$as_me: WARNING: LDFLAGS=\"$LDFLAGS\"" >&2;}
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LIBS=\"$LIBS\"" >&5
16125 $as_echo "$as_me: WARNING: LIBS=\"$LIBS\"" >&2;}
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Temporary LD_RUN_PATH was \"$LD_RUN_PATH\"." >&5
16127 $as_echo "$as_me: WARNING: Temporary LD_RUN_PATH was \"$LD_RUN_PATH\"." >&2;}
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==========================================================" >&5
16129 $as_echo "$as_me: WARNING: ==========================================================" >&2;}
16130
16131 fi
16132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16133 conftest.$ac_objext conftest.beam conftest.$ac_ext
16134 fi
16135
16136 LD_RUN_PATH="$saved_LD_RUN_PATH"
16137
16138 for ac_func in __gmpn_rootrem __gmpn_sbpi1_divappr_q
16139 do :
16140 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16141 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16142 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16143 cat >>confdefs.h <<_ACEOF
16144 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16145 _ACEOF
16146
16147 fi
16148 done
16149
16150
16151 if test -f confdefs.h; then
16152 $SED '/#define PACKAGE_/d' <confdefs.h >confdefs.tmp
16153 $SED '/#define HAVE_STRING/d' <confdefs.tmp >confdefs.h
16154 $SED '/#define HAVE_ALLOCA /d' <confdefs.h >confdefs.tmp
16155 $SED '/#define HAVE_DLFCN_H/d' <confdefs.tmp >confdefs.h
16156 $SED '/#define HAVE_MEM/d' <confdefs.h >confdefs.tmp
16157 $SED '/#define STDC_HEADERS/d' <confdefs.tmp >confdefs.h
16158 $SED '/#define HAVE_STRTOL/d' <confdefs.h >confdefs.tmp
16159 $SED '/#define HAVE_STDLIB_H/d' <confdefs.tmp >confdefs.h
16160 $SED '/#define HAVE_UNISTD_H/d' <confdefs.h >confdefs.tmp
16161 $SED '/#define HAVE_STDC_HEADERS/d' <confdefs.tmp >confdefs.h
16162 $SED '/#define HAVE_LONG_DOUBLE/d' <confdefs.h >confdefs.tmp
16163 $SED '/#define HAVE_SYS_STAT_H/d' <confdefs.tmp >confdefs.h
16164 $SED '/#define HAVE_SYS_TYPES_H/d' <confdefs.h >confdefs.tmp
16165 $SED '/#define PROTOTYPES/d' <confdefs.tmp >confdefs.h
16166 $SED '/#define __PROTOTYPES/d' <confdefs.h >confdefs.tmp
16167
16168 mv confdefs.tmp confdefs.h
16169 fi
16170
16171 if $EGREP -q -e '-dev$' $srcdir/VERSION; then
16172 DATAFILES=`echo \`$SED -n \
16173 's/^ *data_check *("\(data\/[^"]*\)".*/tests\/\1/p' \
16174 $srcdir/tests/*.c\``
16175 fi
16176
16177 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile tests/Makefile tune/Makefile src/mparam.h:src/mparam_h.in"
16178
16179 cat >confcache <<\_ACEOF
16180 # This file is a shell script that caches the results of configure
16181 # tests run on this system so they can be shared between configure
16182 # scripts and configure runs, see configure's option --config-cache.
16183 # It is not useful on other systems. If it contains results you don't
16184 # want to keep, you may remove or edit it.
16185 #
16186 # config.status only pays attention to the cache file if you give it
16187 # the --recheck option to rerun configure.
16188 #
16189 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16190 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16191 # following values.
16192
16193 _ACEOF
16194
16195 # The following way of writing the cache mishandles newlines in values,
16196 # but we know of no workaround that is simple, portable, and efficient.
16197 # So, we kill variables containing newlines.
16198 # Ultrix sh set writes to stderr and can't be redirected directly,
16199 # and sets the high bit in the cache file unless we assign to the vars.
16200 (
16201 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16202 eval ac_val=\$$ac_var
16203 case $ac_val in #(
16204 *${as_nl}*)
16205 case $ac_var in #(
16206 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16207 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16208 esac
16209 case $ac_var in #(
16210 _ | IFS | as_nl) ;; #(
16211 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16212 *) { eval $ac_var=; unset $ac_var;} ;;
16213 esac ;;
16214 esac
16215 done
16216
16217 (set) 2>&1 |
16218 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16219 *${as_nl}ac_space=\ *)
16220 # `set' does not quote correctly, so add quotes: double-quote
16221 # substitution turns \\\\ into \\, and sed turns \\ into \.
16222 sed -n \
16223 "s/'/'\\\\''/g;
16224 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16225 ;; #(
16226 *)
16227 # `set' quotes correctly as required by POSIX, so do not add quotes.
16228 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16229 ;;
16230 esac |
16231 sort
16232 ) |
16233 sed '
16234 /^ac_cv_env_/b end
16235 t clear
16236 :clear
16237 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16238 t end
16239 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16240 :end' >>confcache
16241 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16242 if test -w "$cache_file"; then
16243 if test "x$cache_file" != "x/dev/null"; then
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16245 $as_echo "$as_me: updating cache $cache_file" >&6;}
16246 if test ! -f "$cache_file" || test -h "$cache_file"; then
16247 cat confcache >"$cache_file"
16248 else
16249 case $cache_file in #(
16250 */* | ?:*)
16251 mv -f confcache "$cache_file"$$ &&
16252 mv -f "$cache_file"$$ "$cache_file" ;; #(
16253 *)
16254 mv -f confcache "$cache_file" ;;
16255 esac
16256 fi
16257 fi
16258 else
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16260 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16261 fi
16262 fi
16263 rm -f confcache
16264
16265 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16266 # Let make expand exec_prefix.
16267 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16268
16269 # Transform confdefs.h into DEFS.
16270 # Protect against shell expansion while executing Makefile rules.
16271 # Protect against Makefile macro expansion.
16272 #
16273 # If the first sed substitution is executed (which looks for macros that
16274 # take arguments), then branch to the quote section. Otherwise,
16275 # look for a macro that doesn't take arguments.
16276 ac_script='
16277 :mline
16278 /\\$/{
16279 N
16280 s,\\\n,,
16281 b mline
16282 }
16283 t clear
16284 :clear
16285 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16286 t quote
16287 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16288 t quote
16289 b any
16290 :quote
16291 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16292 s/\[/\\&/g
16293 s/\]/\\&/g
16294 s/\$/$$/g
16295 H
16296 :any
16297 ${
16298 g
16299 s/^\n//
16300 s/\n/ /g
16301 p
16302 }
16303 '
16304 DEFS=`sed -n "$ac_script" confdefs.h`
16305
16306
16307 ac_libobjs=
16308 ac_ltlibobjs=
16309 U=
16310 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16311 # 1. Remove the extension, and $U if already installed.
16312 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16313 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16314 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16315 # will be set to the directory where LIBOBJS objects are built.
16316 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16317 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16318 done
16319 LIBOBJS=$ac_libobjs
16320
16321 LTLIBOBJS=$ac_ltlibobjs
16322
16323
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16325 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16326 if test -n "$am_sleep_pid"; then
16327 # Hide warnings about reused PIDs.
16328 wait $am_sleep_pid 2>/dev/null
16329 fi
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16331 $as_echo "done" >&6; }
16332 if test -n "$EXEEXT"; then
16333 am__EXEEXT_TRUE=
16334 am__EXEEXT_FALSE='#'
16335 else
16336 am__EXEEXT_TRUE='#'
16337 am__EXEEXT_FALSE=
16338 fi
16339
16340 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16341 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16343 fi
16344 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16345 as_fn_error $? "conditional \"AMDEP\" was never defined.
16346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16347 fi
16348 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16349 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16351 fi
16352
16353 : "${CONFIG_STATUS=./config.status}"
16354 ac_write_fail=0
16355 ac_clean_files_save=$ac_clean_files
16356 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16358 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16359 as_write_fail=0
16360 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16361 #! $SHELL
16362 # Generated by $as_me.
16363 # Run this file to recreate the current configuration.
16364 # Compiler output produced by configure, useful for debugging
16365 # configure, is in config.log if it exists.
16366
16367 debug=false
16368 ac_cs_recheck=false
16369 ac_cs_silent=false
16370
16371 SHELL=\${CONFIG_SHELL-$SHELL}
16372 export SHELL
16373 _ASEOF
16374 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16375 ## -------------------- ##
16376 ## M4sh Initialization. ##
16377 ## -------------------- ##
16378
16379 # Be more Bourne compatible
16380 DUALCASE=1; export DUALCASE # for MKS sh
16381 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16382 emulate sh
16383 NULLCMD=:
16384 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16385 # is contrary to our usage. Disable this feature.
16386 alias -g '${1+"$@"}'='"$@"'
16387 setopt NO_GLOB_SUBST
16388 else
16389 case `(set -o) 2>/dev/null` in #(
16390 *posix*) :
16391 set -o posix ;; #(
16392 *) :
16393 ;;
16394 esac
16395 fi
16396
16397
16398 as_nl='
16399 '
16400 export as_nl
16401 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16402 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16403 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16404 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16405 # Prefer a ksh shell builtin over an external printf program on Solaris,
16406 # but without wasting forks for bash or zsh.
16407 if test -z "$BASH_VERSION$ZSH_VERSION" \
16408 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16409 as_echo='print -r --'
16410 as_echo_n='print -rn --'
16411 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16412 as_echo='printf %s\n'
16413 as_echo_n='printf %s'
16414 else
16415 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16416 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16417 as_echo_n='/usr/ucb/echo -n'
16418 else
16419 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16420 as_echo_n_body='eval
16421 arg=$1;
16422 case $arg in #(
16423 *"$as_nl"*)
16424 expr "X$arg" : "X\\(.*\\)$as_nl";
16425 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16426 esac;
16427 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16428 '
16429 export as_echo_n_body
16430 as_echo_n='sh -c $as_echo_n_body as_echo'
16431 fi
16432 export as_echo_body
16433 as_echo='sh -c $as_echo_body as_echo'
16434 fi
16435
16436 # The user is always right.
16437 if test "${PATH_SEPARATOR+set}" != set; then
16438 PATH_SEPARATOR=:
16439 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16440 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16441 PATH_SEPARATOR=';'
16442 }
16443 fi
16444
16445
16446 # IFS
16447 # We need space, tab and new line, in precisely that order. Quoting is
16448 # there to prevent editors from complaining about space-tab.
16449 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16450 # splitting by setting IFS to empty value.)
16451 IFS=" "" $as_nl"
16452
16453 # Find who we are. Look in the path if we contain no directory separator.
16454 as_myself=
16455 case $0 in #((
16456 *[\\/]* ) as_myself=$0 ;;
16457 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16458 for as_dir in $PATH
16459 do
16460 IFS=$as_save_IFS
16461 test -z "$as_dir" && as_dir=.
16462 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16463 done
16464 IFS=$as_save_IFS
16465
16466 ;;
16467 esac
16468 # We did not find ourselves, most probably we were run as `sh COMMAND'
16469 # in which case we are not to be found in the path.
16470 if test "x$as_myself" = x; then
16471 as_myself=$0
16472 fi
16473 if test ! -f "$as_myself"; then
16474 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16475 exit 1
16476 fi
16477
16478 # Unset variables that we do not need and which cause bugs (e.g. in
16479 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16480 # suppresses any "Segmentation fault" message there. '((' could
16481 # trigger a bug in pdksh 5.2.14.
16482 for as_var in BASH_ENV ENV MAIL MAILPATH
16483 do eval test x\${$as_var+set} = xset \
16484 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16485 done
16486 PS1='$ '
16487 PS2='> '
16488 PS4='+ '
16489
16490 # NLS nuisances.
16491 LC_ALL=C
16492 export LC_ALL
16493 LANGUAGE=C
16494 export LANGUAGE
16495
16496 # CDPATH.
16497 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16498
16499
16500 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16501 # ----------------------------------------
16502 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16503 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16504 # script with STATUS, using 1 if that was 0.
16505 as_fn_error ()
16506 {
16507 as_status=$1; test $as_status -eq 0 && as_status=1
16508 if test "$4"; then
16509 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16510 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16511 fi
16512 $as_echo "$as_me: error: $2" >&2
16513 as_fn_exit $as_status
16514 } # as_fn_error
16515
16516
16517 # as_fn_set_status STATUS
16518 # -----------------------
16519 # Set $? to STATUS, without forking.
16520 as_fn_set_status ()
16521 {
16522 return $1
16523 } # as_fn_set_status
16524
16525 # as_fn_exit STATUS
16526 # -----------------
16527 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16528 as_fn_exit ()
16529 {
16530 set +e
16531 as_fn_set_status $1
16532 exit $1
16533 } # as_fn_exit
16534
16535 # as_fn_unset VAR
16536 # ---------------
16537 # Portably unset VAR.
16538 as_fn_unset ()
16539 {
16540 { eval $1=; unset $1;}
16541 }
16542 as_unset=as_fn_unset
16543 # as_fn_append VAR VALUE
16544 # ----------------------
16545 # Append the text in VALUE to the end of the definition contained in VAR. Take
16546 # advantage of any shell optimizations that allow amortized linear growth over
16547 # repeated appends, instead of the typical quadratic growth present in naive
16548 # implementations.
16549 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16550 eval 'as_fn_append ()
16551 {
16552 eval $1+=\$2
16553 }'
16554 else
16555 as_fn_append ()
16556 {
16557 eval $1=\$$1\$2
16558 }
16559 fi # as_fn_append
16560
16561 # as_fn_arith ARG...
16562 # ------------------
16563 # Perform arithmetic evaluation on the ARGs, and store the result in the
16564 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16565 # must be portable across $(()) and expr.
16566 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16567 eval 'as_fn_arith ()
16568 {
16569 as_val=$(( $* ))
16570 }'
16571 else
16572 as_fn_arith ()
16573 {
16574 as_val=`expr "$@" || test $? -eq 1`
16575 }
16576 fi # as_fn_arith
16577
16578
16579 if expr a : '\(a\)' >/dev/null 2>&1 &&
16580 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16581 as_expr=expr
16582 else
16583 as_expr=false
16584 fi
16585
16586 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16587 as_basename=basename
16588 else
16589 as_basename=false
16590 fi
16591
16592 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16593 as_dirname=dirname
16594 else
16595 as_dirname=false
16596 fi
16597
16598 as_me=`$as_basename -- "$0" ||
16599 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16600 X"$0" : 'X\(//\)$' \| \
16601 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16602 $as_echo X/"$0" |
16603 sed '/^.*\/\([^/][^/]*\)\/*$/{
16604 s//\1/
16605 q
16606 }
16607 /^X\/\(\/\/\)$/{
16608 s//\1/
16609 q
16610 }
16611 /^X\/\(\/\).*/{
16612 s//\1/
16613 q
16614 }
16615 s/.*/./; q'`
16616
16617 # Avoid depending upon Character Ranges.
16618 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16619 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16620 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16621 as_cr_digits='0123456789'
16622 as_cr_alnum=$as_cr_Letters$as_cr_digits
16623
16624 ECHO_C= ECHO_N= ECHO_T=
16625 case `echo -n x` in #(((((
16626 -n*)
16627 case `echo 'xy\c'` in
16628 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16629 xy) ECHO_C='\c';;
16630 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16631 ECHO_T=' ';;
16632 esac;;
16633 *)
16634 ECHO_N='-n';;
16635 esac
16636
16637 rm -f conf$$ conf$$.exe conf$$.file
16638 if test -d conf$$.dir; then
16639 rm -f conf$$.dir/conf$$.file
16640 else
16641 rm -f conf$$.dir
16642 mkdir conf$$.dir 2>/dev/null
16643 fi
16644 if (echo >conf$$.file) 2>/dev/null; then
16645 if ln -s conf$$.file conf$$ 2>/dev/null; then
16646 as_ln_s='ln -s'
16647 # ... but there are two gotchas:
16648 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16649 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16650 # In both cases, we have to default to `cp -pR'.
16651 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16652 as_ln_s='cp -pR'
16653 elif ln conf$$.file conf$$ 2>/dev/null; then
16654 as_ln_s=ln
16655 else
16656 as_ln_s='cp -pR'
16657 fi
16658 else
16659 as_ln_s='cp -pR'
16660 fi
16661 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16662 rmdir conf$$.dir 2>/dev/null
16663
16664
16665 # as_fn_mkdir_p
16666 # -------------
16667 # Create "$as_dir" as a directory, including parents if necessary.
16668 as_fn_mkdir_p ()
16669 {
16670
16671 case $as_dir in #(
16672 -*) as_dir=./$as_dir;;
16673 esac
16674 test -d "$as_dir" || eval $as_mkdir_p || {
16675 as_dirs=
16676 while :; do
16677 case $as_dir in #(
16678 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16679 *) as_qdir=$as_dir;;
16680 esac
16681 as_dirs="'$as_qdir' $as_dirs"
16682 as_dir=`$as_dirname -- "$as_dir" ||
16683 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16684 X"$as_dir" : 'X\(//\)[^/]' \| \
16685 X"$as_dir" : 'X\(//\)$' \| \
16686 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16687 $as_echo X"$as_dir" |
16688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16689 s//\1/
16690 q
16691 }
16692 /^X\(\/\/\)[^/].*/{
16693 s//\1/
16694 q
16695 }
16696 /^X\(\/\/\)$/{
16697 s//\1/
16698 q
16699 }
16700 /^X\(\/\).*/{
16701 s//\1/
16702 q
16703 }
16704 s/.*/./; q'`
16705 test -d "$as_dir" && break
16706 done
16707 test -z "$as_dirs" || eval "mkdir $as_dirs"
16708 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16709
16710
16711 } # as_fn_mkdir_p
16712 if mkdir -p . 2>/dev/null; then
16713 as_mkdir_p='mkdir -p "$as_dir"'
16714 else
16715 test -d ./-p && rmdir ./-p
16716 as_mkdir_p=false
16717 fi
16718
16719
16720 # as_fn_executable_p FILE
16721 # -----------------------
16722 # Test if FILE is an executable regular file.
16723 as_fn_executable_p ()
16724 {
16725 test -f "$1" && test -x "$1"
16726 } # as_fn_executable_p
16727 as_test_x='test -x'
16728 as_executable_p=as_fn_executable_p
16729
16730 # Sed expression to map a string onto a valid CPP name.
16731 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16732
16733 # Sed expression to map a string onto a valid variable name.
16734 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16735
16736
16737 exec 6>&1
16738 ## ----------------------------------- ##
16739 ## Main body of $CONFIG_STATUS script. ##
16740 ## ----------------------------------- ##
16741 _ASEOF
16742 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16743
16744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16745 # Save the log message, to keep $0 and so on meaningful, and to
16746 # report actual input values of CONFIG_FILES etc. instead of their
16747 # values after options handling.
16748 ac_log="
16749 This file was extended by MPFR $as_me 3.1.5, which was
16750 generated by GNU Autoconf 2.69. Invocation command line was
16751
16752 CONFIG_FILES = $CONFIG_FILES
16753 CONFIG_HEADERS = $CONFIG_HEADERS
16754 CONFIG_LINKS = $CONFIG_LINKS
16755 CONFIG_COMMANDS = $CONFIG_COMMANDS
16756 $ $0 $@
16757
16758 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16759 "
16760
16761 _ACEOF
16762
16763 case $ac_config_files in *"
16764 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16765 esac
16766
16767
16768
16769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16770 # Files that config.status was made for.
16771 config_files="$ac_config_files"
16772 config_commands="$ac_config_commands"
16773
16774 _ACEOF
16775
16776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16777 ac_cs_usage="\
16778 \`$as_me' instantiates files and other configuration actions
16779 from templates according to the current configuration. Unless the files
16780 and actions are specified as TAGs, all are instantiated by default.
16781
16782 Usage: $0 [OPTION]... [TAG]...
16783
16784 -h, --help print this help, then exit
16785 -V, --version print version number and configuration settings, then exit
16786 --config print configuration, then exit
16787 -q, --quiet, --silent
16788 do not print progress messages
16789 -d, --debug don't remove temporary files
16790 --recheck update $as_me by reconfiguring in the same conditions
16791 --file=FILE[:TEMPLATE]
16792 instantiate the configuration file FILE
16793
16794 Configuration files:
16795 $config_files
16796
16797 Configuration commands:
16798 $config_commands
16799
16800 Report bugs to the package provider."
16801
16802 _ACEOF
16803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16804 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16805 ac_cs_version="\\
16806 MPFR config.status 3.1.5
16807 configured by $0, generated by GNU Autoconf 2.69,
16808 with options \\"\$ac_cs_config\\"
16809
16810 Copyright (C) 2012 Free Software Foundation, Inc.
16811 This config.status script is free software; the Free Software Foundation
16812 gives unlimited permission to copy, distribute and modify it."
16813
16814 ac_pwd='$ac_pwd'
16815 srcdir='$srcdir'
16816 INSTALL='$INSTALL'
16817 MKDIR_P='$MKDIR_P'
16818 AWK='$AWK'
16819 test -n "\$AWK" || AWK=awk
16820 _ACEOF
16821
16822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16823 # The default lists apply if the user does not specify any file.
16824 ac_need_defaults=:
16825 while test $# != 0
16826 do
16827 case $1 in
16828 --*=?*)
16829 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16830 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16831 ac_shift=:
16832 ;;
16833 --*=)
16834 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16835 ac_optarg=
16836 ac_shift=:
16837 ;;
16838 *)
16839 ac_option=$1
16840 ac_optarg=$2
16841 ac_shift=shift
16842 ;;
16843 esac
16844
16845 case $ac_option in
16846 # Handling of the options.
16847 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16848 ac_cs_recheck=: ;;
16849 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16850 $as_echo "$ac_cs_version"; exit ;;
16851 --config | --confi | --conf | --con | --co | --c )
16852 $as_echo "$ac_cs_config"; exit ;;
16853 --debug | --debu | --deb | --de | --d | -d )
16854 debug=: ;;
16855 --file | --fil | --fi | --f )
16856 $ac_shift
16857 case $ac_optarg in
16858 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16859 '') as_fn_error $? "missing file argument" ;;
16860 esac
16861 as_fn_append CONFIG_FILES " '$ac_optarg'"
16862 ac_need_defaults=false;;
16863 --he | --h | --help | --hel | -h )
16864 $as_echo "$ac_cs_usage"; exit ;;
16865 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16866 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16867 ac_cs_silent=: ;;
16868
16869 # This is an error.
16870 -*) as_fn_error $? "unrecognized option: \`$1'
16871 Try \`$0 --help' for more information." ;;
16872
16873 *) as_fn_append ac_config_targets " $1"
16874 ac_need_defaults=false ;;
16875
16876 esac
16877 shift
16878 done
16879
16880 ac_configure_extra_args=
16881
16882 if $ac_cs_silent; then
16883 exec 6>/dev/null
16884 ac_configure_extra_args="$ac_configure_extra_args --silent"
16885 fi
16886
16887 _ACEOF
16888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16889 if \$ac_cs_recheck; then
16890 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16891 shift
16892 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16893 CONFIG_SHELL='$SHELL'
16894 export CONFIG_SHELL
16895 exec "\$@"
16896 fi
16897
16898 _ACEOF
16899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16900 exec 5>>config.log
16901 {
16902 echo
16903 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16904 ## Running $as_me. ##
16905 _ASBOX
16906 $as_echo "$ac_log"
16907 } >&5
16908
16909 _ACEOF
16910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16911 #
16912 # INIT-COMMANDS
16913 #
16914 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16915
16916
16917 # The HP-UX ksh and POSIX shell print the target directory to stdout
16918 # if CDPATH is set.
16919 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16920
16921 sed_quote_subst='$sed_quote_subst'
16922 double_quote_subst='$double_quote_subst'
16923 delay_variable_subst='$delay_variable_subst'
16924 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16925 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16926 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16927 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16928 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16929 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16930 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16931 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16932 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16933 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16934 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16935 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16936 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16937 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16938 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16939 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16940 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16941 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16942 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16943 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16944 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16945 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16946 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16947 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16948 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16949 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16950 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16951 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16952 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16953 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16954 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16955 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16956 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16957 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16958 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16959 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16960 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16961 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16962 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16963 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16964 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16965 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16966 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16967 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16968 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16969 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16970 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16971 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16972 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16973 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16974 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16975 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16976 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16977 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16978 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16979 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16980 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16981 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16982 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16983 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"`'
16984 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16985 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16986 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16987 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16988 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16989 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16990 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16991 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16992 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16993 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16994 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16995 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16996 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16997 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16998 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16999 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17000 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17001 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17002 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17003 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17004 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17005 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17006 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17007 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17008 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17009 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17010 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17011 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17012 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17013 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17014 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17015 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17016 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17017 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17018 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17019 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17020 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17021 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17022 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17023 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17024 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17025 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17026 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17027 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17028 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17029 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17030 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17031 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17032 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17033 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17034 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17035 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17036 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17037 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17038 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17039 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17040 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17041 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17042 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17043 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17044 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17045 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17046 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17047 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17048 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17049 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17050 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17051 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17052 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17053 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17054 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17055 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17056 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17057 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17058 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17059 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17060
17061 LTCC='$LTCC'
17062 LTCFLAGS='$LTCFLAGS'
17063 compiler='$compiler_DEFAULT'
17064
17065 # A function that is used when there is no print builtin or printf.
17066 func_fallback_echo ()
17067 {
17068 eval 'cat <<_LTECHO_EOF
17069 \$1
17070 _LTECHO_EOF'
17071 }
17072
17073 # Quote evaled strings.
17074 for var in AS \
17075 DLLTOOL \
17076 OBJDUMP \
17077 SHELL \
17078 ECHO \
17079 PATH_SEPARATOR \
17080 SED \
17081 GREP \
17082 EGREP \
17083 FGREP \
17084 LD \
17085 NM \
17086 LN_S \
17087 lt_SP2NL \
17088 lt_NL2SP \
17089 reload_flag \
17090 deplibs_check_method \
17091 file_magic_cmd \
17092 file_magic_glob \
17093 want_nocaseglob \
17094 sharedlib_from_linklib_cmd \
17095 AR \
17096 AR_FLAGS \
17097 archiver_list_spec \
17098 STRIP \
17099 RANLIB \
17100 CC \
17101 CFLAGS \
17102 compiler \
17103 lt_cv_sys_global_symbol_pipe \
17104 lt_cv_sys_global_symbol_to_cdecl \
17105 lt_cv_sys_global_symbol_to_import \
17106 lt_cv_sys_global_symbol_to_c_name_address \
17107 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17108 lt_cv_nm_interface \
17109 nm_file_list_spec \
17110 lt_cv_truncate_bin \
17111 lt_prog_compiler_no_builtin_flag \
17112 lt_prog_compiler_pic \
17113 lt_prog_compiler_wl \
17114 lt_prog_compiler_static \
17115 lt_cv_prog_compiler_c_o \
17116 need_locks \
17117 MANIFEST_TOOL \
17118 DSYMUTIL \
17119 NMEDIT \
17120 LIPO \
17121 OTOOL \
17122 OTOOL64 \
17123 shrext_cmds \
17124 export_dynamic_flag_spec \
17125 whole_archive_flag_spec \
17126 compiler_needs_object \
17127 with_gnu_ld \
17128 allow_undefined_flag \
17129 no_undefined_flag \
17130 hardcode_libdir_flag_spec \
17131 hardcode_libdir_separator \
17132 exclude_expsyms \
17133 include_expsyms \
17134 file_list_spec \
17135 variables_saved_for_relink \
17136 libname_spec \
17137 library_names_spec \
17138 soname_spec \
17139 install_override_mode \
17140 finish_eval \
17141 old_striplib \
17142 striplib; do
17143 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17144 *[\\\\\\\`\\"\\\$]*)
17145 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17146 ;;
17147 *)
17148 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17149 ;;
17150 esac
17151 done
17152
17153 # Double-quote double-evaled strings.
17154 for var in reload_cmds \
17155 old_postinstall_cmds \
17156 old_postuninstall_cmds \
17157 old_archive_cmds \
17158 extract_expsyms_cmds \
17159 old_archive_from_new_cmds \
17160 old_archive_from_expsyms_cmds \
17161 archive_cmds \
17162 archive_expsym_cmds \
17163 module_cmds \
17164 module_expsym_cmds \
17165 export_symbols_cmds \
17166 prelink_cmds \
17167 postlink_cmds \
17168 postinstall_cmds \
17169 postuninstall_cmds \
17170 finish_cmds \
17171 sys_lib_search_path_spec \
17172 configure_time_dlsearch_path \
17173 configure_time_lt_sys_library_path; do
17174 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17175 *[\\\\\\\`\\"\\\$]*)
17176 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17177 ;;
17178 *)
17179 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17180 ;;
17181 esac
17182 done
17183
17184 ac_aux_dir='$ac_aux_dir'
17185
17186 # See if we are running on zsh, and set the options that allow our
17187 # commands through without removal of \ escapes INIT.
17188 if test -n "\${ZSH_VERSION+set}"; then
17189 setopt NO_GLOB_SUBST
17190 fi
17191
17192
17193 PACKAGE='$PACKAGE'
17194 VERSION='$VERSION'
17195 RM='$RM'
17196 ofile='$ofile'
17197
17198
17199
17200
17201 _ACEOF
17202
17203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17204
17205 # Handling of arguments.
17206 for ac_config_target in $ac_config_targets
17207 do
17208 case $ac_config_target in
17209 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17210 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17211 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17212 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17213 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17214 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17215 "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
17216 "src/mparam.h") CONFIG_FILES="$CONFIG_FILES src/mparam.h:src/mparam_h.in" ;;
17217
17218 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17219 esac
17220 done
17221
17222
17223 # If the user did not use the arguments to specify the items to instantiate,
17224 # then the envvar interface is used. Set only those that are not.
17225 # We use the long form for the default assignment because of an extremely
17226 # bizarre bug on SunOS 4.1.3.
17227 if $ac_need_defaults; then
17228 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17229 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17230 fi
17231
17232 # Have a temporary directory for convenience. Make it in the build tree
17233 # simply because there is no reason against having it here, and in addition,
17234 # creating and moving files from /tmp can sometimes cause problems.
17235 # Hook for its removal unless debugging.
17236 # Note that there is a small window in which the directory will not be cleaned:
17237 # after its creation but before its name has been assigned to `$tmp'.
17238 $debug ||
17239 {
17240 tmp= ac_tmp=
17241 trap 'exit_status=$?
17242 : "${ac_tmp:=$tmp}"
17243 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17244 ' 0
17245 trap 'as_fn_exit 1' 1 2 13 15
17246 }
17247 # Create a (secure) tmp directory for tmp files.
17248
17249 {
17250 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17251 test -d "$tmp"
17252 } ||
17253 {
17254 tmp=./conf$$-$RANDOM
17255 (umask 077 && mkdir "$tmp")
17256 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17257 ac_tmp=$tmp
17258
17259 # Set up the scripts for CONFIG_FILES section.
17260 # No need to generate them if there are no CONFIG_FILES.
17261 # This happens for instance with `./config.status config.h'.
17262 if test -n "$CONFIG_FILES"; then
17263
17264
17265 ac_cr=`echo X | tr X '\015'`
17266 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17267 # But we know of no other shell where ac_cr would be empty at this
17268 # point, so we can use a bashism as a fallback.
17269 if test "x$ac_cr" = x; then
17270 eval ac_cr=\$\'\\r\'
17271 fi
17272 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17273 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17274 ac_cs_awk_cr='\\r'
17275 else
17276 ac_cs_awk_cr=$ac_cr
17277 fi
17278
17279 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17280 _ACEOF
17281
17282
17283 {
17284 echo "cat >conf$$subs.awk <<_ACEOF" &&
17285 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17286 echo "_ACEOF"
17287 } >conf$$subs.sh ||
17288 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17289 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17290 ac_delim='%!_!# '
17291 for ac_last_try in false false false false false :; do
17292 . ./conf$$subs.sh ||
17293 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17294
17295 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17296 if test $ac_delim_n = $ac_delim_num; then
17297 break
17298 elif $ac_last_try; then
17299 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17300 else
17301 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17302 fi
17303 done
17304 rm -f conf$$subs.sh
17305
17306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17307 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17308 _ACEOF
17309 sed -n '
17310 h
17311 s/^/S["/; s/!.*/"]=/
17312 p
17313 g
17314 s/^[^!]*!//
17315 :repl
17316 t repl
17317 s/'"$ac_delim"'$//
17318 t delim
17319 :nl
17320 h
17321 s/\(.\{148\}\)..*/\1/
17322 t more1
17323 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17324 p
17325 n
17326 b repl
17327 :more1
17328 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17329 p
17330 g
17331 s/.\{148\}//
17332 t nl
17333 :delim
17334 h
17335 s/\(.\{148\}\)..*/\1/
17336 t more2
17337 s/["\\]/\\&/g; s/^/"/; s/$/"/
17338 p
17339 b
17340 :more2
17341 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17342 p
17343 g
17344 s/.\{148\}//
17345 t delim
17346 ' <conf$$subs.awk | sed '
17347 /^[^""]/{
17348 N
17349 s/\n//
17350 }
17351 ' >>$CONFIG_STATUS || ac_write_fail=1
17352 rm -f conf$$subs.awk
17353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17354 _ACAWK
17355 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17356 for (key in S) S_is_set[key] = 1
17357 FS = ""
17358
17359 }
17360 {
17361 line = $ 0
17362 nfields = split(line, field, "@")
17363 substed = 0
17364 len = length(field[1])
17365 for (i = 2; i < nfields; i++) {
17366 key = field[i]
17367 keylen = length(key)
17368 if (S_is_set[key]) {
17369 value = S[key]
17370 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17371 len += length(value) + length(field[++i])
17372 substed = 1
17373 } else
17374 len += 1 + keylen
17375 }
17376
17377 print line
17378 }
17379
17380 _ACAWK
17381 _ACEOF
17382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17383 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17384 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17385 else
17386 cat
17387 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17388 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17389 _ACEOF
17390
17391 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17392 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17393 # trailing colons and then remove the whole line if VPATH becomes empty
17394 # (actually we leave an empty line to preserve line numbers).
17395 if test "x$srcdir" = x.; then
17396 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17397 h
17398 s///
17399 s/^/:/
17400 s/[ ]*$/:/
17401 s/:\$(srcdir):/:/g
17402 s/:\${srcdir}:/:/g
17403 s/:@srcdir@:/:/g
17404 s/^:*//
17405 s/:*$//
17406 x
17407 s/\(=[ ]*\).*/\1/
17408 G
17409 s/\n//
17410 s/^[^=]*=[ ]*$//
17411 }'
17412 fi
17413
17414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17415 fi # test -n "$CONFIG_FILES"
17416
17417
17418 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17419 shift
17420 for ac_tag
17421 do
17422 case $ac_tag in
17423 :[FHLC]) ac_mode=$ac_tag; continue;;
17424 esac
17425 case $ac_mode$ac_tag in
17426 :[FHL]*:*);;
17427 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17428 :[FH]-) ac_tag=-:-;;
17429 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17430 esac
17431 ac_save_IFS=$IFS
17432 IFS=:
17433 set x $ac_tag
17434 IFS=$ac_save_IFS
17435 shift
17436 ac_file=$1
17437 shift
17438
17439 case $ac_mode in
17440 :L) ac_source=$1;;
17441 :[FH])
17442 ac_file_inputs=
17443 for ac_f
17444 do
17445 case $ac_f in
17446 -) ac_f="$ac_tmp/stdin";;
17447 *) # Look for the file first in the build tree, then in the source tree
17448 # (if the path is not absolute). The absolute path cannot be DOS-style,
17449 # because $ac_f cannot contain `:'.
17450 test -f "$ac_f" ||
17451 case $ac_f in
17452 [\\/$]*) false;;
17453 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17454 esac ||
17455 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17456 esac
17457 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17458 as_fn_append ac_file_inputs " '$ac_f'"
17459 done
17460
17461 # Let's still pretend it is `configure' which instantiates (i.e., don't
17462 # use $as_me), people would be surprised to read:
17463 # /* config.h. Generated by config.status. */
17464 configure_input='Generated from '`
17465 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17466 `' by configure.'
17467 if test x"$ac_file" != x-; then
17468 configure_input="$ac_file. $configure_input"
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17470 $as_echo "$as_me: creating $ac_file" >&6;}
17471 fi
17472 # Neutralize special characters interpreted by sed in replacement strings.
17473 case $configure_input in #(
17474 *\&* | *\|* | *\\* )
17475 ac_sed_conf_input=`$as_echo "$configure_input" |
17476 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17477 *) ac_sed_conf_input=$configure_input;;
17478 esac
17479
17480 case $ac_tag in
17481 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17482 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17483 esac
17484 ;;
17485 esac
17486
17487 ac_dir=`$as_dirname -- "$ac_file" ||
17488 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17489 X"$ac_file" : 'X\(//\)[^/]' \| \
17490 X"$ac_file" : 'X\(//\)$' \| \
17491 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17492 $as_echo X"$ac_file" |
17493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17494 s//\1/
17495 q
17496 }
17497 /^X\(\/\/\)[^/].*/{
17498 s//\1/
17499 q
17500 }
17501 /^X\(\/\/\)$/{
17502 s//\1/
17503 q
17504 }
17505 /^X\(\/\).*/{
17506 s//\1/
17507 q
17508 }
17509 s/.*/./; q'`
17510 as_dir="$ac_dir"; as_fn_mkdir_p
17511 ac_builddir=.
17512
17513 case "$ac_dir" in
17514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17515 *)
17516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17517 # A ".." for each directory in $ac_dir_suffix.
17518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17519 case $ac_top_builddir_sub in
17520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17522 esac ;;
17523 esac
17524 ac_abs_top_builddir=$ac_pwd
17525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17526 # for backward compatibility:
17527 ac_top_builddir=$ac_top_build_prefix
17528
17529 case $srcdir in
17530 .) # We are building in place.
17531 ac_srcdir=.
17532 ac_top_srcdir=$ac_top_builddir_sub
17533 ac_abs_top_srcdir=$ac_pwd ;;
17534 [\\/]* | ?:[\\/]* ) # Absolute name.
17535 ac_srcdir=$srcdir$ac_dir_suffix;
17536 ac_top_srcdir=$srcdir
17537 ac_abs_top_srcdir=$srcdir ;;
17538 *) # Relative name.
17539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17540 ac_top_srcdir=$ac_top_build_prefix$srcdir
17541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17542 esac
17543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17544
17545
17546 case $ac_mode in
17547 :F)
17548 #
17549 # CONFIG_FILE
17550 #
17551
17552 case $INSTALL in
17553 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17554 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17555 esac
17556 ac_MKDIR_P=$MKDIR_P
17557 case $MKDIR_P in
17558 [\\/$]* | ?:[\\/]* ) ;;
17559 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17560 esac
17561 _ACEOF
17562
17563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17564 # If the template does not know about datarootdir, expand it.
17565 # FIXME: This hack should be removed a few years after 2.60.
17566 ac_datarootdir_hack=; ac_datarootdir_seen=
17567 ac_sed_dataroot='
17568 /datarootdir/ {
17569 p
17570 q
17571 }
17572 /@datadir@/p
17573 /@docdir@/p
17574 /@infodir@/p
17575 /@localedir@/p
17576 /@mandir@/p'
17577 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17578 *datarootdir*) ac_datarootdir_seen=yes;;
17579 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17581 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17582 _ACEOF
17583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17584 ac_datarootdir_hack='
17585 s&@datadir@&$datadir&g
17586 s&@docdir@&$docdir&g
17587 s&@infodir@&$infodir&g
17588 s&@localedir@&$localedir&g
17589 s&@mandir@&$mandir&g
17590 s&\\\${datarootdir}&$datarootdir&g' ;;
17591 esac
17592 _ACEOF
17593
17594 # Neutralize VPATH when `$srcdir' = `.'.
17595 # Shell code in configure.ac might set extrasub.
17596 # FIXME: do we really want to maintain this feature?
17597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17598 ac_sed_extra="$ac_vpsub
17599 $extrasub
17600 _ACEOF
17601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17602 :t
17603 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17604 s|@configure_input@|$ac_sed_conf_input|;t t
17605 s&@top_builddir@&$ac_top_builddir_sub&;t t
17606 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17607 s&@srcdir@&$ac_srcdir&;t t
17608 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17609 s&@top_srcdir@&$ac_top_srcdir&;t t
17610 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17611 s&@builddir@&$ac_builddir&;t t
17612 s&@abs_builddir@&$ac_abs_builddir&;t t
17613 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17614 s&@INSTALL@&$ac_INSTALL&;t t
17615 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17616 $ac_datarootdir_hack
17617 "
17618 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17619 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17620
17621 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17622 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17623 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17624 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17626 which seems to be undefined. Please make sure it is defined" >&5
17627 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17628 which seems to be undefined. Please make sure it is defined" >&2;}
17629
17630 rm -f "$ac_tmp/stdin"
17631 case $ac_file in
17632 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17633 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17634 esac \
17635 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17636 ;;
17637
17638
17639 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17640 $as_echo "$as_me: executing $ac_file commands" >&6;}
17641 ;;
17642 esac
17643
17644
17645 case $ac_file$ac_mode in
17646 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17647 # Older Autoconf quotes --file arguments for eval, but not when files
17648 # are listed without --file. Let's play safe and only enable the eval
17649 # if we detect the quoting.
17650 case $CONFIG_FILES in
17651 *\'*) eval set x "$CONFIG_FILES" ;;
17652 *) set x $CONFIG_FILES ;;
17653 esac
17654 shift
17655 for mf
17656 do
17657 # Strip MF so we end up with the name of the file.
17658 mf=`echo "$mf" | sed -e 's/:.*$//'`
17659 # Check whether this is an Automake generated Makefile or not.
17660 # We used to match only the files named 'Makefile.in', but
17661 # some people rename them; so instead we look at the file content.
17662 # Grep'ing the first line is not enough: some people post-process
17663 # each Makefile.in and add a new line on top of each file to say so.
17664 # Grep'ing the whole file is not good either: AIX grep has a line
17665 # limit of 2048, but all sed's we know have understand at least 4000.
17666 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17667 dirpart=`$as_dirname -- "$mf" ||
17668 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17669 X"$mf" : 'X\(//\)[^/]' \| \
17670 X"$mf" : 'X\(//\)$' \| \
17671 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17672 $as_echo X"$mf" |
17673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17674 s//\1/
17675 q
17676 }
17677 /^X\(\/\/\)[^/].*/{
17678 s//\1/
17679 q
17680 }
17681 /^X\(\/\/\)$/{
17682 s//\1/
17683 q
17684 }
17685 /^X\(\/\).*/{
17686 s//\1/
17687 q
17688 }
17689 s/.*/./; q'`
17690 else
17691 continue
17692 fi
17693 # Extract the definition of DEPDIR, am__include, and am__quote
17694 # from the Makefile without running 'make'.
17695 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17696 test -z "$DEPDIR" && continue
17697 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17698 test -z "$am__include" && continue
17699 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17700 # Find all dependency output files, they are included files with
17701 # $(DEPDIR) in their names. We invoke sed twice because it is the
17702 # simplest approach to changing $(DEPDIR) to its actual value in the
17703 # expansion.
17704 for file in `sed -n "
17705 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17706 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17707 # Make sure the directory exists.
17708 test -f "$dirpart/$file" && continue
17709 fdir=`$as_dirname -- "$file" ||
17710 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17711 X"$file" : 'X\(//\)[^/]' \| \
17712 X"$file" : 'X\(//\)$' \| \
17713 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17714 $as_echo X"$file" |
17715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17716 s//\1/
17717 q
17718 }
17719 /^X\(\/\/\)[^/].*/{
17720 s//\1/
17721 q
17722 }
17723 /^X\(\/\/\)$/{
17724 s//\1/
17725 q
17726 }
17727 /^X\(\/\).*/{
17728 s//\1/
17729 q
17730 }
17731 s/.*/./; q'`
17732 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17733 # echo "creating $dirpart/$file"
17734 echo '# dummy' > "$dirpart/$file"
17735 done
17736 done
17737 }
17738 ;;
17739 "libtool":C)
17740
17741 # See if we are running on zsh, and set the options that allow our
17742 # commands through without removal of \ escapes.
17743 if test -n "${ZSH_VERSION+set}"; then
17744 setopt NO_GLOB_SUBST
17745 fi
17746
17747 cfgfile=${ofile}T
17748 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17749 $RM "$cfgfile"
17750
17751 cat <<_LT_EOF >> "$cfgfile"
17752 #! $SHELL
17753 # Generated automatically by $as_me ($PACKAGE) $VERSION
17754 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17755
17756 # Provide generalized library-building support services.
17757 # Written by Gordon Matzigkeit, 1996
17758
17759 # Copyright (C) 2014 Free Software Foundation, Inc.
17760 # This is free software; see the source for copying conditions. There is NO
17761 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17762
17763 # GNU Libtool is free software; you can redistribute it and/or modify
17764 # it under the terms of the GNU General Public License as published by
17765 # the Free Software Foundation; either version 2 of of the License, or
17766 # (at your option) any later version.
17767 #
17768 # As a special exception to the GNU General Public License, if you
17769 # distribute this file as part of a program or library that is built
17770 # using GNU Libtool, you may include this file under the same
17771 # distribution terms that you use for the rest of that program.
17772 #
17773 # GNU Libtool is distributed in the hope that it will be useful, but
17774 # WITHOUT ANY WARRANTY; without even the implied warranty of
17775 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17776 # GNU General Public License for more details.
17777 #
17778 # You should have received a copy of the GNU General Public License
17779 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17780
17781
17782 # The names of the tagged configurations supported by this script.
17783 available_tags=''
17784
17785 # Configured defaults for sys_lib_dlsearch_path munging.
17786 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17787
17788 # ### BEGIN LIBTOOL CONFIG
17789
17790 # Which release of libtool.m4 was used?
17791 macro_version=$macro_version
17792 macro_revision=$macro_revision
17793
17794 # Assembler program.
17795 AS=$lt_AS
17796
17797 # DLL creation program.
17798 DLLTOOL=$lt_DLLTOOL
17799
17800 # Object dumper program.
17801 OBJDUMP=$lt_OBJDUMP
17802
17803 # Whether or not to build shared libraries.
17804 build_libtool_libs=$enable_shared
17805
17806 # Whether or not to build static libraries.
17807 build_old_libs=$enable_static
17808
17809 # What type of objects to build.
17810 pic_mode=$pic_mode
17811
17812 # Whether or not to optimize for fast installation.
17813 fast_install=$enable_fast_install
17814
17815 # Shared archive member basename,for filename based shared library versioning on AIX.
17816 shared_archive_member_spec=$shared_archive_member_spec
17817
17818 # Shell to use when invoking shell scripts.
17819 SHELL=$lt_SHELL
17820
17821 # An echo program that protects backslashes.
17822 ECHO=$lt_ECHO
17823
17824 # The PATH separator for the build system.
17825 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17826
17827 # The host system.
17828 host_alias=$host_alias
17829 host=$host
17830 host_os=$host_os
17831
17832 # The build system.
17833 build_alias=$build_alias
17834 build=$build
17835 build_os=$build_os
17836
17837 # A sed program that does not truncate output.
17838 SED=$lt_SED
17839
17840 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17841 Xsed="\$SED -e 1s/^X//"
17842
17843 # A grep program that handles long lines.
17844 GREP=$lt_GREP
17845
17846 # An ERE matcher.
17847 EGREP=$lt_EGREP
17848
17849 # A literal string matcher.
17850 FGREP=$lt_FGREP
17851
17852 # A BSD- or MS-compatible name lister.
17853 NM=$lt_NM
17854
17855 # Whether we need soft or hard links.
17856 LN_S=$lt_LN_S
17857
17858 # What is the maximum length of a command?
17859 max_cmd_len=$max_cmd_len
17860
17861 # Object file suffix (normally "o").
17862 objext=$ac_objext
17863
17864 # Executable file suffix (normally "").
17865 exeext=$exeext
17866
17867 # whether the shell understands "unset".
17868 lt_unset=$lt_unset
17869
17870 # turn spaces into newlines.
17871 SP2NL=$lt_lt_SP2NL
17872
17873 # turn newlines into spaces.
17874 NL2SP=$lt_lt_NL2SP
17875
17876 # convert \$build file names to \$host format.
17877 to_host_file_cmd=$lt_cv_to_host_file_cmd
17878
17879 # convert \$build files to toolchain format.
17880 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17881
17882 # Method to check whether dependent libraries are shared objects.
17883 deplibs_check_method=$lt_deplibs_check_method
17884
17885 # Command to use when deplibs_check_method = "file_magic".
17886 file_magic_cmd=$lt_file_magic_cmd
17887
17888 # How to find potential files when deplibs_check_method = "file_magic".
17889 file_magic_glob=$lt_file_magic_glob
17890
17891 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17892 want_nocaseglob=$lt_want_nocaseglob
17893
17894 # Command to associate shared and link libraries.
17895 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17896
17897 # The archiver.
17898 AR=$lt_AR
17899
17900 # Flags to create an archive.
17901 AR_FLAGS=$lt_AR_FLAGS
17902
17903 # How to feed a file listing to the archiver.
17904 archiver_list_spec=$lt_archiver_list_spec
17905
17906 # A symbol stripping program.
17907 STRIP=$lt_STRIP
17908
17909 # Commands used to install an old-style archive.
17910 RANLIB=$lt_RANLIB
17911 old_postinstall_cmds=$lt_old_postinstall_cmds
17912 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17913
17914 # Whether to use a lock for old archive extraction.
17915 lock_old_archive_extraction=$lock_old_archive_extraction
17916
17917 # A C compiler.
17918 LTCC=$lt_CC
17919
17920 # LTCC compiler flags.
17921 LTCFLAGS=$lt_CFLAGS
17922
17923 # Take the output of nm and produce a listing of raw symbols and C names.
17924 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17925
17926 # Transform the output of nm in a proper C declaration.
17927 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17928
17929 # Transform the output of nm into a list of symbols to manually relocate.
17930 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17931
17932 # Transform the output of nm in a C name address pair.
17933 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17934
17935 # Transform the output of nm in a C name address pair when lib prefix is needed.
17936 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17937
17938 # The name lister interface.
17939 nm_interface=$lt_lt_cv_nm_interface
17940
17941 # Specify filename containing input files for \$NM.
17942 nm_file_list_spec=$lt_nm_file_list_spec
17943
17944 # The root where to search for dependent libraries,and where our libraries should be installed.
17945 lt_sysroot=$lt_sysroot
17946
17947 # Command to truncate a binary pipe.
17948 lt_truncate_bin=$lt_lt_cv_truncate_bin
17949
17950 # The name of the directory that contains temporary libtool files.
17951 objdir=$objdir
17952
17953 # Used to examine libraries when file_magic_cmd begins with "file".
17954 MAGIC_CMD=$MAGIC_CMD
17955
17956 # Must we lock files when doing compilation?
17957 need_locks=$lt_need_locks
17958
17959 # Manifest tool.
17960 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17961
17962 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17963 DSYMUTIL=$lt_DSYMUTIL
17964
17965 # Tool to change global to local symbols on Mac OS X.
17966 NMEDIT=$lt_NMEDIT
17967
17968 # Tool to manipulate fat objects and archives on Mac OS X.
17969 LIPO=$lt_LIPO
17970
17971 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17972 OTOOL=$lt_OTOOL
17973
17974 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17975 OTOOL64=$lt_OTOOL64
17976
17977 # Old archive suffix (normally "a").
17978 libext=$libext
17979
17980 # Shared library suffix (normally ".so").
17981 shrext_cmds=$lt_shrext_cmds
17982
17983 # The commands to extract the exported symbol list from a shared archive.
17984 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17985
17986 # Variables whose values should be saved in libtool wrapper scripts and
17987 # restored at link time.
17988 variables_saved_for_relink=$lt_variables_saved_for_relink
17989
17990 # Do we need the "lib" prefix for modules?
17991 need_lib_prefix=$need_lib_prefix
17992
17993 # Do we need a version for libraries?
17994 need_version=$need_version
17995
17996 # Library versioning type.
17997 version_type=$version_type
17998
17999 # Shared library runtime path variable.
18000 runpath_var=$runpath_var
18001
18002 # Shared library path variable.
18003 shlibpath_var=$shlibpath_var
18004
18005 # Is shlibpath searched before the hard-coded library search path?
18006 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18007
18008 # Format of library name prefix.
18009 libname_spec=$lt_libname_spec
18010
18011 # List of archive names. First name is the real one, the rest are links.
18012 # The last name is the one that the linker finds with -lNAME
18013 library_names_spec=$lt_library_names_spec
18014
18015 # The coded name of the library, if different from the real name.
18016 soname_spec=$lt_soname_spec
18017
18018 # Permission mode override for installation of shared libraries.
18019 install_override_mode=$lt_install_override_mode
18020
18021 # Command to use after installation of a shared archive.
18022 postinstall_cmds=$lt_postinstall_cmds
18023
18024 # Command to use after uninstallation of a shared archive.
18025 postuninstall_cmds=$lt_postuninstall_cmds
18026
18027 # Commands used to finish a libtool library installation in a directory.
18028 finish_cmds=$lt_finish_cmds
18029
18030 # As "finish_cmds", except a single script fragment to be evaled but
18031 # not shown.
18032 finish_eval=$lt_finish_eval
18033
18034 # Whether we should hardcode library paths into libraries.
18035 hardcode_into_libs=$hardcode_into_libs
18036
18037 # Compile-time system search path for libraries.
18038 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18039
18040 # Detected run-time system search path for libraries.
18041 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18042
18043 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18044 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18045
18046 # Whether dlopen is supported.
18047 dlopen_support=$enable_dlopen
18048
18049 # Whether dlopen of programs is supported.
18050 dlopen_self=$enable_dlopen_self
18051
18052 # Whether dlopen of statically linked programs is supported.
18053 dlopen_self_static=$enable_dlopen_self_static
18054
18055 # Commands to strip libraries.
18056 old_striplib=$lt_old_striplib
18057 striplib=$lt_striplib
18058
18059
18060 # The linker used to build libraries.
18061 LD=$lt_LD
18062
18063 # How to create reloadable object files.
18064 reload_flag=$lt_reload_flag
18065 reload_cmds=$lt_reload_cmds
18066
18067 # Commands used to build an old-style archive.
18068 old_archive_cmds=$lt_old_archive_cmds
18069
18070 # A language specific compiler.
18071 CC=$lt_compiler
18072
18073 # Is the compiler the GNU compiler?
18074 with_gcc=$GCC
18075
18076 # Compiler flag to turn off builtin functions.
18077 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18078
18079 # Additional compiler flags for building library objects.
18080 pic_flag=$lt_lt_prog_compiler_pic
18081
18082 # How to pass a linker flag through the compiler.
18083 wl=$lt_lt_prog_compiler_wl
18084
18085 # Compiler flag to prevent dynamic linking.
18086 link_static_flag=$lt_lt_prog_compiler_static
18087
18088 # Does compiler simultaneously support -c and -o options?
18089 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18090
18091 # Whether or not to add -lc for building shared libraries.
18092 build_libtool_need_lc=$archive_cmds_need_lc
18093
18094 # Whether or not to disallow shared libs when runtime libs are static.
18095 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18096
18097 # Compiler flag to allow reflexive dlopens.
18098 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18099
18100 # Compiler flag to generate shared objects directly from archives.
18101 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18102
18103 # Whether the compiler copes with passing no objects directly.
18104 compiler_needs_object=$lt_compiler_needs_object
18105
18106 # Create an old-style archive from a shared archive.
18107 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18108
18109 # Create a temporary old-style archive to link instead of a shared archive.
18110 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18111
18112 # Commands used to build a shared archive.
18113 archive_cmds=$lt_archive_cmds
18114 archive_expsym_cmds=$lt_archive_expsym_cmds
18115
18116 # Commands used to build a loadable module if different from building
18117 # a shared archive.
18118 module_cmds=$lt_module_cmds
18119 module_expsym_cmds=$lt_module_expsym_cmds
18120
18121 # Whether we are building with GNU ld or not.
18122 with_gnu_ld=$lt_with_gnu_ld
18123
18124 # Flag that allows shared libraries with undefined symbols to be built.
18125 allow_undefined_flag=$lt_allow_undefined_flag
18126
18127 # Flag that enforces no undefined symbols.
18128 no_undefined_flag=$lt_no_undefined_flag
18129
18130 # Flag to hardcode \$libdir into a binary during linking.
18131 # This must work even if \$libdir does not exist
18132 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18133
18134 # Whether we need a single "-rpath" flag with a separated argument.
18135 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18136
18137 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18138 # DIR into the resulting binary.
18139 hardcode_direct=$hardcode_direct
18140
18141 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18142 # DIR into the resulting binary and the resulting library dependency is
18143 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18144 # library is relocated.
18145 hardcode_direct_absolute=$hardcode_direct_absolute
18146
18147 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18148 # into the resulting binary.
18149 hardcode_minus_L=$hardcode_minus_L
18150
18151 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18152 # into the resulting binary.
18153 hardcode_shlibpath_var=$hardcode_shlibpath_var
18154
18155 # Set to "yes" if building a shared library automatically hardcodes DIR
18156 # into the library and all subsequent libraries and executables linked
18157 # against it.
18158 hardcode_automatic=$hardcode_automatic
18159
18160 # Set to yes if linker adds runtime paths of dependent libraries
18161 # to runtime path list.
18162 inherit_rpath=$inherit_rpath
18163
18164 # Whether libtool must link a program against all its dependency libraries.
18165 link_all_deplibs=$link_all_deplibs
18166
18167 # Set to "yes" if exported symbols are required.
18168 always_export_symbols=$always_export_symbols
18169
18170 # The commands to list exported symbols.
18171 export_symbols_cmds=$lt_export_symbols_cmds
18172
18173 # Symbols that should not be listed in the preloaded symbols.
18174 exclude_expsyms=$lt_exclude_expsyms
18175
18176 # Symbols that must always be exported.
18177 include_expsyms=$lt_include_expsyms
18178
18179 # Commands necessary for linking programs (against libraries) with templates.
18180 prelink_cmds=$lt_prelink_cmds
18181
18182 # Commands necessary for finishing linking programs.
18183 postlink_cmds=$lt_postlink_cmds
18184
18185 # Specify filename containing input files.
18186 file_list_spec=$lt_file_list_spec
18187
18188 # How to hardcode a shared library path into an executable.
18189 hardcode_action=$hardcode_action
18190
18191 # ### END LIBTOOL CONFIG
18192
18193 _LT_EOF
18194
18195 cat <<'_LT_EOF' >> "$cfgfile"
18196
18197 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18198
18199 # func_munge_path_list VARIABLE PATH
18200 # -----------------------------------
18201 # VARIABLE is name of variable containing _space_ separated list of
18202 # directories to be munged by the contents of PATH, which is string
18203 # having a format:
18204 # "DIR[:DIR]:"
18205 # string "DIR[ DIR]" will be prepended to VARIABLE
18206 # ":DIR[:DIR]"
18207 # string "DIR[ DIR]" will be appended to VARIABLE
18208 # "DIRP[:DIRP]::[DIRA:]DIRA"
18209 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18210 # "DIRA[ DIRA]" will be appended to VARIABLE
18211 # "DIR[:DIR]"
18212 # VARIABLE will be replaced by "DIR[ DIR]"
18213 func_munge_path_list ()
18214 {
18215 case x$2 in
18216 x)
18217 ;;
18218 *:)
18219 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18220 ;;
18221 x:*)
18222 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18223 ;;
18224 *::*)
18225 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18226 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18227 ;;
18228 *)
18229 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18230 ;;
18231 esac
18232 }
18233
18234
18235 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18236 func_cc_basename ()
18237 {
18238 for cc_temp in $*""; do
18239 case $cc_temp in
18240 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18241 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18242 \-*) ;;
18243 *) break;;
18244 esac
18245 done
18246 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18247 }
18248
18249
18250 # ### END FUNCTIONS SHARED WITH CONFIGURE
18251
18252 _LT_EOF
18253
18254 case $host_os in
18255 aix3*)
18256 cat <<\_LT_EOF >> "$cfgfile"
18257 # AIX sometimes has problems with the GCC collect2 program. For some
18258 # reason, if we set the COLLECT_NAMES environment variable, the problems
18259 # vanish in a puff of smoke.
18260 if test set != "${COLLECT_NAMES+set}"; then
18261 COLLECT_NAMES=
18262 export COLLECT_NAMES
18263 fi
18264 _LT_EOF
18265 ;;
18266 esac
18267
18268
18269 ltmain=$ac_aux_dir/ltmain.sh
18270
18271
18272 # We use sed instead of cat because bash on DJGPP gets confused if
18273 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18274 # text mode, it properly converts lines to CR/LF. This bash problem
18275 # is reportedly fixed, but why not run on old versions too?
18276 sed '$q' "$ltmain" >> "$cfgfile" \
18277 || (rm -f "$cfgfile"; exit 1)
18278
18279 mv -f "$cfgfile" "$ofile" ||
18280 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18281 chmod +x "$ofile"
18282
18283 ;;
18284
18285 esac
18286 done # for ac_tag
18287
18288
18289 as_fn_exit 0
18290 _ACEOF
18291 ac_clean_files=$ac_clean_files_save
18292
18293 test $ac_write_fail = 0 ||
18294 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18295
18296
18297 # configure is writing to config.log, and then calls config.status.
18298 # config.status does its own redirection, appending to config.log.
18299 # Unfortunately, on DOS this fails, as config.log is still kept open
18300 # by configure, so config.status won't be able to write to it; its
18301 # output is simply discarded. So we exec the FD to /dev/null,
18302 # effectively closing config.log, so it can be properly (re)opened and
18303 # appended to by config.status. When coming back to configure, we
18304 # need to make the FD available again.
18305 if test "$no_create" != yes; then
18306 ac_cs_success=:
18307 ac_config_status_args=
18308 test "$silent" = yes &&
18309 ac_config_status_args="$ac_config_status_args --quiet"
18310 exec 5>/dev/null
18311 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18312 exec 5>>config.log
18313 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18314 # would make configure fail if this is the last instruction.
18315 $ac_cs_success || as_fn_exit 1
18316 fi
18317 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18319 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18320 fi
18321
18322
18323