configure revision 1.1.1.1.8.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for MPFR 3.1.2.
4 #
5 #
6 # Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
7 # Contributed by the AriC and Caramel 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.2'
613 PACKAGE_STRING='MPFR 3.1.2'
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 OTOOL64
659 OTOOL
660 LIPO
661 NMEDIT
662 DSYMUTIL
663 MANIFEST_TOOL
664 RANLIB
665 ac_ct_AR
666 AR
667 LN_S
668 NM
669 ac_ct_DUMPBIN
670 DUMPBIN
671 LD
672 FGREP
673 LIBTOOL
674 OBJDUMP
675 DLLTOOL
676 AS
677 LIBMPFR_LDFLAGS
678 MPFR_LDFLAGS
679 TUNE_LIBS
680 ALLOCA
681 MPFR_LIBM
682 CPP
683 am__fastdepCC_FALSE
684 am__fastdepCC_TRUE
685 CCDEPMODE
686 am__nodep
687 AMDEPBACKSLASH
688 AMDEP_FALSE
689 AMDEP_TRUE
690 am__quote
691 am__include
692 DEPDIR
693 OBJEXT
694 EXEEXT
695 ac_ct_CC
696 CPPFLAGS
697 LDFLAGS
698 CFLAGS
699 CC
700 SED
701 EGREP
702 GREP
703 host_os
704 host_vendor
705 host_cpu
706 host
707 build_os
708 build_vendor
709 build_cpu
710 build
711 MAINT
712 MAINTAINER_MODE_FALSE
713 MAINTAINER_MODE_TRUE
714 am__untar
715 am__tar
716 AMTAR
717 am__leading_dot
718 SET_MAKE
719 AWK
720 mkdir_p
721 MKDIR_P
722 INSTALL_STRIP_PROGRAM
723 STRIP
724 install_sh
725 MAKEINFO
726 AUTOHEADER
727 AUTOMAKE
728 AUTOCONF
729 ACLOCAL
730 VERSION
731 PACKAGE
732 CYGPATH_W
733 am__isrc
734 INSTALL_DATA
735 INSTALL_SCRIPT
736 INSTALL_PROGRAM
737 target_alias
738 host_alias
739 build_alias
740 LIBS
741 ECHO_T
742 ECHO_N
743 ECHO_C
744 DEFS
745 mandir
746 localedir
747 libdir
748 psdir
749 pdfdir
750 dvidir
751 htmldir
752 infodir
753 docdir
754 oldincludedir
755 includedir
756 localstatedir
757 sharedstatedir
758 sysconfdir
759 datadir
760 datarootdir
761 libexecdir
762 sbindir
763 bindir
764 program_transform_name
765 prefix
766 exec_prefix
767 PACKAGE_URL
768 PACKAGE_BUGREPORT
769 PACKAGE_STRING
770 PACKAGE_VERSION
771 PACKAGE_TARNAME
772 PACKAGE_NAME
773 PATH_SEPARATOR
774 SHELL'
775 ac_subst_files=''
776 ac_user_opts='
777 enable_option_checking
778 enable_maintainer_mode
779 with_gmp_include
780 with_gmp_lib
781 with_gmp
782 with_gmp_build
783 with_mulhigh_size
784 enable_gmp_internals
785 enable_assert
786 enable_logging
787 enable_thread_safe
788 enable_warnings
789 enable_tests_timeout
790 enable_dependency_tracking
791 enable_decimal_float
792 enable_shared
793 enable_static
794 with_pic
795 enable_fast_install
796 with_gnu_ld
797 with_sysroot
798 enable_libtool_lock
799 '
800 ac_precious_vars='build_alias
801 host_alias
802 target_alias
803 CC
804 CFLAGS
805 LDFLAGS
806 LIBS
807 CPPFLAGS
808 CPP'
809
810
811 # Initialize some variables set by options.
812 ac_init_help=
813 ac_init_version=false
814 ac_unrecognized_opts=
815 ac_unrecognized_sep=
816 # The variables have the same names as the options, with
817 # dashes changed to underlines.
818 cache_file=/dev/null
819 exec_prefix=NONE
820 no_create=
821 no_recursion=
822 prefix=NONE
823 program_prefix=NONE
824 program_suffix=NONE
825 program_transform_name=s,x,x,
826 silent=
827 site=
828 srcdir=
829 verbose=
830 x_includes=NONE
831 x_libraries=NONE
832
833 # Installation directory options.
834 # These are left unexpanded so users can "make install exec_prefix=/foo"
835 # and all the variables that are supposed to be based on exec_prefix
836 # by default will actually change.
837 # Use braces instead of parens because sh, perl, etc. also accept them.
838 # (The list follows the same order as the GNU Coding Standards.)
839 bindir='${exec_prefix}/bin'
840 sbindir='${exec_prefix}/sbin'
841 libexecdir='${exec_prefix}/libexec'
842 datarootdir='${prefix}/share'
843 datadir='${datarootdir}'
844 sysconfdir='${prefix}/etc'
845 sharedstatedir='${prefix}/com'
846 localstatedir='${prefix}/var'
847 includedir='${prefix}/include'
848 oldincludedir='/usr/include'
849 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
850 infodir='${datarootdir}/info'
851 htmldir='${docdir}'
852 dvidir='${docdir}'
853 pdfdir='${docdir}'
854 psdir='${docdir}'
855 libdir='${exec_prefix}/lib'
856 localedir='${datarootdir}/locale'
857 mandir='${datarootdir}/man'
858
859 ac_prev=
860 ac_dashdash=
861 for ac_option
862 do
863 # If the previous option needs an argument, assign it.
864 if test -n "$ac_prev"; then
865 eval $ac_prev=\$ac_option
866 ac_prev=
867 continue
868 fi
869
870 case $ac_option in
871 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872 *=) ac_optarg= ;;
873 *) ac_optarg=yes ;;
874 esac
875
876 # Accept the important Cygnus configure options, so we can diagnose typos.
877
878 case $ac_dashdash$ac_option in
879 --)
880 ac_dashdash=yes ;;
881
882 -bindir | --bindir | --bindi | --bind | --bin | --bi)
883 ac_prev=bindir ;;
884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885 bindir=$ac_optarg ;;
886
887 -build | --build | --buil | --bui | --bu)
888 ac_prev=build_alias ;;
889 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
890 build_alias=$ac_optarg ;;
891
892 -cache-file | --cache-file | --cache-fil | --cache-fi \
893 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894 ac_prev=cache_file ;;
895 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
897 cache_file=$ac_optarg ;;
898
899 --config-cache | -C)
900 cache_file=config.cache ;;
901
902 -datadir | --datadir | --datadi | --datad)
903 ac_prev=datadir ;;
904 -datadir=* | --datadir=* | --datadi=* | --datad=*)
905 datadir=$ac_optarg ;;
906
907 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908 | --dataroo | --dataro | --datar)
909 ac_prev=datarootdir ;;
910 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912 datarootdir=$ac_optarg ;;
913
914 -disable-* | --disable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error $? "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923 "enable_$ac_useropt"
924 "*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=no ;;
929
930 -docdir | --docdir | --docdi | --doc | --do)
931 ac_prev=docdir ;;
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 docdir=$ac_optarg ;;
934
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 ac_prev=dvidir ;;
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 dvidir=$ac_optarg ;;
939
940 -enable-* | --enable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error $? "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949 "enable_$ac_useropt"
950 "*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=\$ac_optarg ;;
955
956 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958 | --exec | --exe | --ex)
959 ac_prev=exec_prefix ;;
960 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962 | --exec=* | --exe=* | --ex=*)
963 exec_prefix=$ac_optarg ;;
964
965 -gas | --gas | --ga | --g)
966 # Obsolete; use --with-gas.
967 with_gas=yes ;;
968
969 -help | --help | --hel | --he | -h)
970 ac_init_help=long ;;
971 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972 ac_init_help=recursive ;;
973 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974 ac_init_help=short ;;
975
976 -host | --host | --hos | --ho)
977 ac_prev=host_alias ;;
978 -host=* | --host=* | --hos=* | --ho=*)
979 host_alias=$ac_optarg ;;
980
981 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982 ac_prev=htmldir ;;
983 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984 | --ht=*)
985 htmldir=$ac_optarg ;;
986
987 -includedir | --includedir | --includedi | --included | --include \
988 | --includ | --inclu | --incl | --inc)
989 ac_prev=includedir ;;
990 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991 | --includ=* | --inclu=* | --incl=* | --inc=*)
992 includedir=$ac_optarg ;;
993
994 -infodir | --infodir | --infodi | --infod | --info | --inf)
995 ac_prev=infodir ;;
996 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
997 infodir=$ac_optarg ;;
998
999 -libdir | --libdir | --libdi | --libd)
1000 ac_prev=libdir ;;
1001 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1002 libdir=$ac_optarg ;;
1003
1004 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005 | --libexe | --libex | --libe)
1006 ac_prev=libexecdir ;;
1007 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008 | --libexe=* | --libex=* | --libe=*)
1009 libexecdir=$ac_optarg ;;
1010
1011 -localedir | --localedir | --localedi | --localed | --locale)
1012 ac_prev=localedir ;;
1013 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014 localedir=$ac_optarg ;;
1015
1016 -localstatedir | --localstatedir | --localstatedi | --localstated \
1017 | --localstate | --localstat | --localsta | --localst | --locals)
1018 ac_prev=localstatedir ;;
1019 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1020 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1021 localstatedir=$ac_optarg ;;
1022
1023 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024 ac_prev=mandir ;;
1025 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1026 mandir=$ac_optarg ;;
1027
1028 -nfp | --nfp | --nf)
1029 # Obsolete; use --without-fp.
1030 with_fp=no ;;
1031
1032 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033 | --no-cr | --no-c | -n)
1034 no_create=yes ;;
1035
1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038 no_recursion=yes ;;
1039
1040 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042 | --oldin | --oldi | --old | --ol | --o)
1043 ac_prev=oldincludedir ;;
1044 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1047 oldincludedir=$ac_optarg ;;
1048
1049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050 ac_prev=prefix ;;
1051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1052 prefix=$ac_optarg ;;
1053
1054 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055 | --program-pre | --program-pr | --program-p)
1056 ac_prev=program_prefix ;;
1057 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1059 program_prefix=$ac_optarg ;;
1060
1061 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062 | --program-suf | --program-su | --program-s)
1063 ac_prev=program_suffix ;;
1064 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1066 program_suffix=$ac_optarg ;;
1067
1068 -program-transform-name | --program-transform-name \
1069 | --program-transform-nam | --program-transform-na \
1070 | --program-transform-n | --program-transform- \
1071 | --program-transform | --program-transfor \
1072 | --program-transfo | --program-transf \
1073 | --program-trans | --program-tran \
1074 | --progr-tra | --program-tr | --program-t)
1075 ac_prev=program_transform_name ;;
1076 -program-transform-name=* | --program-transform-name=* \
1077 | --program-transform-nam=* | --program-transform-na=* \
1078 | --program-transform-n=* | --program-transform-=* \
1079 | --program-transform=* | --program-transfor=* \
1080 | --program-transfo=* | --program-transf=* \
1081 | --program-trans=* | --program-tran=* \
1082 | --progr-tra=* | --program-tr=* | --program-t=*)
1083 program_transform_name=$ac_optarg ;;
1084
1085 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086 ac_prev=pdfdir ;;
1087 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088 pdfdir=$ac_optarg ;;
1089
1090 -psdir | --psdir | --psdi | --psd | --ps)
1091 ac_prev=psdir ;;
1092 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093 psdir=$ac_optarg ;;
1094
1095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096 | -silent | --silent | --silen | --sile | --sil)
1097 silent=yes ;;
1098
1099 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100 ac_prev=sbindir ;;
1101 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102 | --sbi=* | --sb=*)
1103 sbindir=$ac_optarg ;;
1104
1105 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107 | --sharedst | --shareds | --shared | --share | --shar \
1108 | --sha | --sh)
1109 ac_prev=sharedstatedir ;;
1110 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113 | --sha=* | --sh=*)
1114 sharedstatedir=$ac_optarg ;;
1115
1116 -site | --site | --sit)
1117 ac_prev=site ;;
1118 -site=* | --site=* | --sit=*)
1119 site=$ac_optarg ;;
1120
1121 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122 ac_prev=srcdir ;;
1123 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1124 srcdir=$ac_optarg ;;
1125
1126 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127 | --syscon | --sysco | --sysc | --sys | --sy)
1128 ac_prev=sysconfdir ;;
1129 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1131 sysconfdir=$ac_optarg ;;
1132
1133 -target | --target | --targe | --targ | --tar | --ta | --t)
1134 ac_prev=target_alias ;;
1135 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1136 target_alias=$ac_optarg ;;
1137
1138 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139 verbose=yes ;;
1140
1141 -version | --version | --versio | --versi | --vers | -V)
1142 ac_init_version=: ;;
1143
1144 -with-* | --with-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error $? "invalid package name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1152 *"
1153 "with_$ac_useropt"
1154 "*) ;;
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1157 esac
1158 eval with_$ac_useropt=\$ac_optarg ;;
1159
1160 -without-* | --without-*)
1161 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164 as_fn_error $? "invalid package name: $ac_useropt"
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1168 *"
1169 "with_$ac_useropt"
1170 "*) ;;
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1173 esac
1174 eval with_$ac_useropt=no ;;
1175
1176 --x)
1177 # Obsolete; use --with-x.
1178 with_x=yes ;;
1179
1180 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1181 | --x-incl | --x-inc | --x-in | --x-i)
1182 ac_prev=x_includes ;;
1183 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1184 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1185 x_includes=$ac_optarg ;;
1186
1187 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1188 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1189 ac_prev=x_libraries ;;
1190 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1191 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1192 x_libraries=$ac_optarg ;;
1193
1194 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1195 Try \`$0 --help' for more information"
1196 ;;
1197
1198 *=*)
1199 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1200 # Reject names that are not valid shell variable names.
1201 case $ac_envvar in #(
1202 '' | [0-9]* | *[!_$as_cr_alnum]* )
1203 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1204 esac
1205 eval $ac_envvar=\$ac_optarg
1206 export $ac_envvar ;;
1207
1208 *)
1209 # FIXME: should be removed in autoconf 3.0.
1210 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1211 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1213 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1214 ;;
1215
1216 esac
1217 done
1218
1219 if test -n "$ac_prev"; then
1220 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1221 as_fn_error $? "missing argument to $ac_option"
1222 fi
1223
1224 if test -n "$ac_unrecognized_opts"; then
1225 case $enable_option_checking in
1226 no) ;;
1227 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1229 esac
1230 fi
1231
1232 # Check all directory arguments for consistency.
1233 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234 datadir sysconfdir sharedstatedir localstatedir includedir \
1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236 libdir localedir mandir
1237 do
1238 eval ac_val=\$$ac_var
1239 # Remove trailing slashes.
1240 case $ac_val in
1241 */ )
1242 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243 eval $ac_var=\$ac_val;;
1244 esac
1245 # Be sure to have absolute directory names.
1246 case $ac_val in
1247 [\\/$]* | ?:[\\/]* ) continue;;
1248 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249 esac
1250 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1251 done
1252
1253 # There might be people who depend on the old broken behavior: `$host'
1254 # used to hold the argument of --host etc.
1255 # FIXME: To remove some day.
1256 build=$build_alias
1257 host=$host_alias
1258 target=$target_alias
1259
1260 # FIXME: To remove some day.
1261 if test "x$host_alias" != x; then
1262 if test "x$build_alias" = x; then
1263 cross_compiling=maybe
1264 elif test "x$build_alias" != "x$host_alias"; then
1265 cross_compiling=yes
1266 fi
1267 fi
1268
1269 ac_tool_prefix=
1270 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271
1272 test "$silent" = yes && exec 6>/dev/null
1273
1274
1275 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276 ac_ls_di=`ls -di .` &&
1277 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1278 as_fn_error $? "working directory cannot be determined"
1279 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1280 as_fn_error $? "pwd does not report name of working directory"
1281
1282
1283 # Find the source files, if location was not specified.
1284 if test -z "$srcdir"; then
1285 ac_srcdir_defaulted=yes
1286 # Try the directory containing this script, then the parent directory.
1287 ac_confdir=`$as_dirname -- "$as_myself" ||
1288 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289 X"$as_myself" : 'X\(//\)[^/]' \| \
1290 X"$as_myself" : 'X\(//\)$' \| \
1291 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292 $as_echo X"$as_myself" |
1293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\/\)[^/].*/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\).*/{
1306 s//\1/
1307 q
1308 }
1309 s/.*/./; q'`
1310 srcdir=$ac_confdir
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 srcdir=..
1313 fi
1314 else
1315 ac_srcdir_defaulted=no
1316 fi
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1318 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1320 fi
1321 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322 ac_abs_confdir=`(
1323 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1324 pwd)`
1325 # When building in place, set srcdir=.
1326 if test "$ac_abs_confdir" = "$ac_pwd"; then
1327 srcdir=.
1328 fi
1329 # Remove unnecessary trailing slashes from srcdir.
1330 # Double slashes in file names in object file debugging info
1331 # mess up M-x gdb in Emacs.
1332 case $srcdir in
1333 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334 esac
1335 for ac_var in $ac_precious_vars; do
1336 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_env_${ac_var}_value=\$${ac_var}
1338 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340 done
1341
1342 #
1343 # Report the --help message.
1344 #
1345 if test "$ac_init_help" = "long"; then
1346 # Omit some internal or obsolete options to make the list less imposing.
1347 # This message is too long to be a string in the A/UX 3.1 sh.
1348 cat <<_ACEOF
1349 \`configure' configures MPFR 3.1.2 to adapt to many kinds of systems.
1350
1351 Usage: $0 [OPTION]... [VAR=VALUE]...
1352
1353 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354 VAR=VALUE. See below for descriptions of some of the useful variables.
1355
1356 Defaults for the options are specified in brackets.
1357
1358 Configuration:
1359 -h, --help display this help and exit
1360 --help=short display options specific to this package
1361 --help=recursive display the short help of all the included packages
1362 -V, --version display version information and exit
1363 -q, --quiet, --silent do not print \`checking ...' messages
1364 --cache-file=FILE cache test results in FILE [disabled]
1365 -C, --config-cache alias for \`--cache-file=config.cache'
1366 -n, --no-create do not create output files
1367 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368
1369 Installation directories:
1370 --prefix=PREFIX install architecture-independent files in PREFIX
1371 [$ac_default_prefix]
1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1373 [PREFIX]
1374
1375 By default, \`make install' will install all the files in
1376 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1377 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378 for instance \`--prefix=\$HOME'.
1379
1380 For better control, use the options below.
1381
1382 Fine tuning of the installation directories:
1383 --bindir=DIR user executables [EPREFIX/bin]
1384 --sbindir=DIR system admin executables [EPREFIX/sbin]
1385 --libexecdir=DIR program executables [EPREFIX/libexec]
1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root [DATAROOTDIR/doc/mpfr]
1398 --htmldir=DIR html documentation [DOCDIR]
1399 --dvidir=DIR dvi documentation [DOCDIR]
1400 --pdfdir=DIR pdf documentation [DOCDIR]
1401 --psdir=DIR ps documentation [DOCDIR]
1402 _ACEOF
1403
1404 cat <<\_ACEOF
1405
1406 Program names:
1407 --program-prefix=PREFIX prepend PREFIX to installed program names
1408 --program-suffix=SUFFIX append SUFFIX to installed program names
1409 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1410
1411 System types:
1412 --build=BUILD configure for building on BUILD [guessed]
1413 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 _ACEOF
1415 fi
1416
1417 if test -n "$ac_init_help"; then
1418 case $ac_init_help in
1419 short | recursive ) echo "Configuration of MPFR 3.1.2:";;
1420 esac
1421 cat <<\_ACEOF
1422
1423 Optional Features:
1424 --disable-option-checking ignore unrecognized --enable/--with options
1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1427 --disable-maintainer-mode disable make rules and dependencies not useful
1428 (and sometimes confusing) to the casual installer
1429 --enable-gmp-internals enable use of GMP undocumented functions [default=no]
1430 --enable-assert enable ASSERT checking [default=no]
1431 --enable-logging enable MPFR logging (the system must support it)
1432 [default=no]
1433 --disable-thread-safe explicitly disable TLS support
1434 --enable-thread-safe build MPFR as thread safe, i.e. with TLS support
1435 (the system must support it) [default=autodetect]
1436 --enable-warnings allow MPFR to output warnings to stderr [default=no]
1437 --enable-tests-timeout=NUM enable timeout (NUM seconds) for test programs
1438 (NUM <= 9999) [default=no]; if enabled, env variable
1439 $MPFR_TESTS_TIMEOUT overrides NUM (0: no timeout).
1440 --disable-dependency-tracking speeds up one-time build
1441 --enable-dependency-tracking do not reject slow dependency extractors
1442 --enable-decimal-float build conversion functions from/to decimal floats
1443 [default=no]
1444 --enable-shared[=PKGS] build shared libraries [default=yes]
1445 --enable-static[=PKGS] build static libraries [default=yes]
1446 --enable-fast-install[=PKGS]
1447 optimize for fast installation [default=yes]
1448 --disable-libtool-lock avoid locking (might break parallel builds)
1449
1450 Optional Packages:
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-gmp-include=DIR GMP include directory
1454 --with-gmp-lib=DIR GMP lib directory
1455 --with-gmp=DIR GMP install directory
1456 --with-gmp-build=DIR GMP build directory (please read INSTALL file)
1457 --with-mulhigh-size=NUM internal threshold table for mulhigh
1458 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1459 both]
1460 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1461 --with-sysroot=DIR Search for dependent libraries within DIR
1462 (or the compiler's sysroot if not specified).
1463
1464 Some influential environment variables:
1465 CC C compiler command
1466 CFLAGS C compiler flags
1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1468 nonstandard directory <lib dir>
1469 LIBS libraries to pass to the linker, e.g. -l<library>
1470 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1471 you have headers in a nonstandard directory <include dir>
1472 CPP C preprocessor
1473
1474 Use these variables to override the choices made by `configure' or to help
1475 it to find libraries and programs with nonstandard names/locations.
1476
1477 Report bugs to the package provider.
1478 _ACEOF
1479 ac_status=$?
1480 fi
1481
1482 if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485 test -d "$ac_dir" ||
1486 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487 continue
1488 ac_builddir=.
1489
1490 case "$ac_dir" in
1491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *)
1493 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 esac ;;
1500 esac
1501 ac_abs_top_builddir=$ac_pwd
1502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503 # for backward compatibility:
1504 ac_top_builddir=$ac_top_build_prefix
1505
1506 case $srcdir in
1507 .) # We are building in place.
1508 ac_srcdir=.
1509 ac_top_srcdir=$ac_top_builddir_sub
1510 ac_abs_top_srcdir=$ac_pwd ;;
1511 [\\/]* | ?:[\\/]* ) # Absolute name.
1512 ac_srcdir=$srcdir$ac_dir_suffix;
1513 ac_top_srcdir=$srcdir
1514 ac_abs_top_srcdir=$srcdir ;;
1515 *) # Relative name.
1516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519 esac
1520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521
1522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for guested configure.
1524 if test -f "$ac_srcdir/configure.gnu"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527 elif test -f "$ac_srcdir/configure"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure" --help=recursive
1530 else
1531 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532 fi || ac_status=$?
1533 cd "$ac_pwd" || { ac_status=$?; break; }
1534 done
1535 fi
1536
1537 test -n "$ac_init_help" && exit $ac_status
1538 if $ac_init_version; then
1539 cat <<\_ACEOF
1540 MPFR configure 3.1.2
1541 generated by GNU Autoconf 2.69
1542
1543 Copyright (C) 2012 Free Software Foundation, Inc.
1544 This configure script is free software; the Free Software Foundation
1545 gives unlimited permission to copy, distribute and modify it.
1546
1547
1548 Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
1549 Contributed by the AriC and Caramel projects, INRIA.
1550
1551 This file is part of the GNU MPFR Library.
1552
1553 The GNU MPFR Library is free software; you can redistribute it and/or modify
1554 it under the terms of the GNU Lesser General Public License as published
1555 by the Free Software Foundation; either version 3 of the License, or (at
1556 your option) any later version.
1557
1558 The GNU MPFR Library is distributed in the hope that it will be useful, but
1559 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1560 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
1561 License for more details.
1562
1563 You should have received a copy of the GNU Lesser General Public License
1564 along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see
1565 http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
1566 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
1567
1568 _ACEOF
1569 exit
1570 fi
1571
1572 ## ------------------------ ##
1573 ## Autoconf initialization. ##
1574 ## ------------------------ ##
1575
1576 # ac_fn_c_try_compile LINENO
1577 # --------------------------
1578 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_c_try_compile ()
1580 {
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 rm -f conftest.$ac_objext
1583 if { { ac_try="$ac_compile"
1584 case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587 esac
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_compile") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1596 fi
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && {
1599 test -z "$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 } && test -s conftest.$ac_objext; then :
1602 ac_retval=0
1603 else
1604 $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1606
1607 ac_retval=1
1608 fi
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 as_fn_set_status $ac_retval
1611
1612 } # ac_fn_c_try_compile
1613
1614 # ac_fn_c_try_cpp LINENO
1615 # ----------------------
1616 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1617 ac_fn_c_try_cpp ()
1618 {
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 if { { ac_try="$ac_cpp conftest.$ac_ext"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1633 fi
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } > conftest.i && {
1636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 }; then :
1639 ac_retval=0
1640 else
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1643
1644 ac_retval=1
1645 fi
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647 as_fn_set_status $ac_retval
1648
1649 } # ac_fn_c_try_cpp
1650
1651 # ac_fn_c_try_run LINENO
1652 # ----------------------
1653 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1654 # that executables *can* be run.
1655 ac_fn_c_try_run ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { { ac_try="$ac_link"
1659 case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_link") 2>&5
1666 ac_status=$?
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1669 { { case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_try") 2>&5
1676 ac_status=$?
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; }; }; then :
1679 ac_retval=0
1680 else
1681 $as_echo "$as_me: program exited with status $ac_status" >&5
1682 $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1684
1685 ac_retval=$ac_status
1686 fi
1687 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
1690
1691 } # ac_fn_c_try_run
1692
1693 # ac_fn_c_try_link LINENO
1694 # -----------------------
1695 # Try to link conftest.$ac_ext, and return whether this succeeded.
1696 ac_fn_c_try_link ()
1697 {
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext conftest$ac_exeext
1700 if { { ac_try="$ac_link"
1701 case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_link") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1713 fi
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest$ac_exeext && {
1719 test "$cross_compiling" = yes ||
1720 test -x conftest$ac_exeext
1721 }; then :
1722 ac_retval=0
1723 else
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1726
1727 ac_retval=1
1728 fi
1729 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1730 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1731 # interfere with the next link command; also delete a directory that is
1732 # left behind by Apple's compiler. We do this before executing the actions.
1733 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735 as_fn_set_status $ac_retval
1736
1737 } # ac_fn_c_try_link
1738
1739 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1740 # -------------------------------------------------------
1741 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1742 # the include files in INCLUDES and setting the cache variable VAR
1743 # accordingly.
1744 ac_fn_c_check_header_mongrel ()
1745 {
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 if eval \${$3+:} false; then :
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749 $as_echo_n "checking for $2... " >&6; }
1750 if eval \${$3+:} false; then :
1751 $as_echo_n "(cached) " >&6
1752 fi
1753 eval ac_res=\$$3
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755 $as_echo "$ac_res" >&6; }
1756 else
1757 # Is the header compilable?
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1759 $as_echo_n "checking $2 usability... " >&6; }
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1762 $4
1763 #include <$2>
1764 _ACEOF
1765 if ac_fn_c_try_compile "$LINENO"; then :
1766 ac_header_compiler=yes
1767 else
1768 ac_header_compiler=no
1769 fi
1770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1772 $as_echo "$ac_header_compiler" >&6; }
1773
1774 # Is the header present?
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1776 $as_echo_n "checking $2 presence... " >&6; }
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1779 #include <$2>
1780 _ACEOF
1781 if ac_fn_c_try_cpp "$LINENO"; then :
1782 ac_header_preproc=yes
1783 else
1784 ac_header_preproc=no
1785 fi
1786 rm -f conftest.err conftest.i conftest.$ac_ext
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1788 $as_echo "$ac_header_preproc" >&6; }
1789
1790 # So? What about this header?
1791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1792 yes:no: )
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1794 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1796 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1797 ;;
1798 no:yes:* )
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1800 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1802 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1804 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1806 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1808 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1809 ;;
1810 esac
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval \${$3+:} false; then :
1814 $as_echo_n "(cached) " >&6
1815 else
1816 eval "$3=\$ac_header_compiler"
1817 fi
1818 eval ac_res=\$$3
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821 fi
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823
1824 } # ac_fn_c_check_header_mongrel
1825
1826 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1827 # -------------------------------------------------------
1828 # Tests whether HEADER exists and can be compiled using the include files in
1829 # INCLUDES, setting the cache variable VAR accordingly.
1830 ac_fn_c_check_header_compile ()
1831 {
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if eval \${$3+:} false; then :
1836 $as_echo_n "(cached) " >&6
1837 else
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1840 $4
1841 #include <$2>
1842 _ACEOF
1843 if ac_fn_c_try_compile "$LINENO"; then :
1844 eval "$3=yes"
1845 else
1846 eval "$3=no"
1847 fi
1848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849 fi
1850 eval ac_res=\$$3
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852 $as_echo "$ac_res" >&6; }
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854
1855 } # ac_fn_c_check_header_compile
1856
1857 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1858 # -------------------------------------------
1859 # Tests whether TYPE exists after having included INCLUDES, setting cache
1860 # variable VAR accordingly.
1861 ac_fn_c_check_type ()
1862 {
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 $as_echo_n "checking for $2... " >&6; }
1866 if eval \${$3+:} false; then :
1867 $as_echo_n "(cached) " >&6
1868 else
1869 eval "$3=no"
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1872 $4
1873 int
1874 main ()
1875 {
1876 if (sizeof ($2))
1877 return 0;
1878 ;
1879 return 0;
1880 }
1881 _ACEOF
1882 if ac_fn_c_try_compile "$LINENO"; then :
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1885 $4
1886 int
1887 main ()
1888 {
1889 if (sizeof (($2)))
1890 return 0;
1891 ;
1892 return 0;
1893 }
1894 _ACEOF
1895 if ac_fn_c_try_compile "$LINENO"; then :
1896
1897 else
1898 eval "$3=yes"
1899 fi
1900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1901 fi
1902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903 fi
1904 eval ac_res=\$$3
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908
1909 } # ac_fn_c_check_type
1910
1911 # ac_fn_c_check_func LINENO FUNC VAR
1912 # ----------------------------------
1913 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1914 ac_fn_c_check_func ()
1915 {
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if eval \${$3+:} false; then :
1920 $as_echo_n "(cached) " >&6
1921 else
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1924 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1926 #define $2 innocuous_$2
1927
1928 /* System header to define __stub macros and hopefully few prototypes,
1929 which can conflict with char $2 (); below.
1930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1931 <limits.h> exists even on freestanding compilers. */
1932
1933 #ifdef __STDC__
1934 # include <limits.h>
1935 #else
1936 # include <assert.h>
1937 #endif
1938
1939 #undef $2
1940
1941 /* Override any GCC internal prototype to avoid an error.
1942 Use char because int might match the return type of a GCC
1943 builtin and then its argument prototype would still apply. */
1944 #ifdef __cplusplus
1945 extern "C"
1946 #endif
1947 char $2 ();
1948 /* The GNU C library defines this for functions which it implements
1949 to always fail with ENOSYS. Some functions are actually named
1950 something starting with __ and the normal name is an alias. */
1951 #if defined __stub_$2 || defined __stub___$2
1952 choke me
1953 #endif
1954
1955 int
1956 main ()
1957 {
1958 return $2 ();
1959 ;
1960 return 0;
1961 }
1962 _ACEOF
1963 if ac_fn_c_try_link "$LINENO"; then :
1964 eval "$3=yes"
1965 else
1966 eval "$3=no"
1967 fi
1968 rm -f core conftest.err conftest.$ac_objext \
1969 conftest$ac_exeext conftest.$ac_ext
1970 fi
1971 eval ac_res=\$$3
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975
1976 } # ac_fn_c_check_func
1977
1978 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1979 # --------------------------------------------
1980 # Tries to find the compile-time value of EXPR in a program that includes
1981 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1982 # computed
1983 ac_fn_c_compute_int ()
1984 {
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 if test "$cross_compiling" = yes; then
1987 # Depending upon the size, compute the lo and hi bounds.
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1990 $4
1991 int
1992 main ()
1993 {
1994 static int test_array [1 - 2 * !(($2) >= 0)];
1995 test_array [0] = 0;
1996 return test_array [0];
1997
1998 ;
1999 return 0;
2000 }
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003 ac_lo=0 ac_mid=0
2004 while :; do
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2007 $4
2008 int
2009 main ()
2010 {
2011 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2012 test_array [0] = 0;
2013 return test_array [0];
2014
2015 ;
2016 return 0;
2017 }
2018 _ACEOF
2019 if ac_fn_c_try_compile "$LINENO"; then :
2020 ac_hi=$ac_mid; break
2021 else
2022 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2023 if test $ac_lo -le $ac_mid; then
2024 ac_lo= ac_hi=
2025 break
2026 fi
2027 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2028 fi
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030 done
2031 else
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2034 $4
2035 int
2036 main ()
2037 {
2038 static int test_array [1 - 2 * !(($2) < 0)];
2039 test_array [0] = 0;
2040 return test_array [0];
2041
2042 ;
2043 return 0;
2044 }
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"; then :
2047 ac_hi=-1 ac_mid=-1
2048 while :; do
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2051 $4
2052 int
2053 main ()
2054 {
2055 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2056 test_array [0] = 0;
2057 return test_array [0];
2058
2059 ;
2060 return 0;
2061 }
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064 ac_lo=$ac_mid; break
2065 else
2066 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2067 if test $ac_mid -le $ac_hi; then
2068 ac_lo= ac_hi=
2069 break
2070 fi
2071 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2072 fi
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 done
2075 else
2076 ac_lo= ac_hi=
2077 fi
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 fi
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 # Binary search between lo and hi bounds.
2082 while test "x$ac_lo" != "x$ac_hi"; do
2083 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2086 $4
2087 int
2088 main ()
2089 {
2090 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2091 test_array [0] = 0;
2092 return test_array [0];
2093
2094 ;
2095 return 0;
2096 }
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099 ac_hi=$ac_mid
2100 else
2101 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2102 fi
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 done
2105 case $ac_lo in #((
2106 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2107 '') ac_retval=1 ;;
2108 esac
2109 else
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2112 $4
2113 static long int longval () { return $2; }
2114 static unsigned long int ulongval () { return $2; }
2115 #include <stdio.h>
2116 #include <stdlib.h>
2117 int
2118 main ()
2119 {
2120
2121 FILE *f = fopen ("conftest.val", "w");
2122 if (! f)
2123 return 1;
2124 if (($2) < 0)
2125 {
2126 long int i = longval ();
2127 if (i != ($2))
2128 return 1;
2129 fprintf (f, "%ld", i);
2130 }
2131 else
2132 {
2133 unsigned long int i = ulongval ();
2134 if (i != ($2))
2135 return 1;
2136 fprintf (f, "%lu", i);
2137 }
2138 /* Do not output a trailing newline, as this causes \r\n confusion
2139 on some platforms. */
2140 return ferror (f) || fclose (f) != 0;
2141
2142 ;
2143 return 0;
2144 }
2145 _ACEOF
2146 if ac_fn_c_try_run "$LINENO"; then :
2147 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2148 else
2149 ac_retval=1
2150 fi
2151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2152 conftest.$ac_objext conftest.beam conftest.$ac_ext
2153 rm -f conftest.val
2154
2155 fi
2156 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157 as_fn_set_status $ac_retval
2158
2159 } # ac_fn_c_compute_int
2160 cat >config.log <<_ACEOF
2161 This file contains any messages produced by compilers while
2162 running configure, to aid debugging if configure makes a mistake.
2163
2164 It was created by MPFR $as_me 3.1.2, which was
2165 generated by GNU Autoconf 2.69. Invocation command line was
2166
2167 $ $0 $@
2168
2169 _ACEOF
2170 exec 5>>config.log
2171 {
2172 cat <<_ASUNAME
2173 ## --------- ##
2174 ## Platform. ##
2175 ## --------- ##
2176
2177 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2178 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2179 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2180 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2181 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2182
2183 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2184 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2185
2186 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2187 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2188 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2189 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2190 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2191 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2192 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2193
2194 _ASUNAME
2195
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2198 do
2199 IFS=$as_save_IFS
2200 test -z "$as_dir" && as_dir=.
2201 $as_echo "PATH: $as_dir"
2202 done
2203 IFS=$as_save_IFS
2204
2205 } >&5
2206
2207 cat >&5 <<_ACEOF
2208
2209
2210 ## ----------- ##
2211 ## Core tests. ##
2212 ## ----------- ##
2213
2214 _ACEOF
2215
2216
2217 # Keep a trace of the command line.
2218 # Strip out --no-create and --no-recursion so they do not pile up.
2219 # Strip out --silent because we don't want to record it for future runs.
2220 # Also quote any args containing shell meta-characters.
2221 # Make two passes to allow for proper duplicate-argument suppression.
2222 ac_configure_args=
2223 ac_configure_args0=
2224 ac_configure_args1=
2225 ac_must_keep_next=false
2226 for ac_pass in 1 2
2227 do
2228 for ac_arg
2229 do
2230 case $ac_arg in
2231 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2233 | -silent | --silent | --silen | --sile | --sil)
2234 continue ;;
2235 *\'*)
2236 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2237 esac
2238 case $ac_pass in
2239 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2240 2)
2241 as_fn_append ac_configure_args1 " '$ac_arg'"
2242 if test $ac_must_keep_next = true; then
2243 ac_must_keep_next=false # Got value, back to normal.
2244 else
2245 case $ac_arg in
2246 *=* | --config-cache | -C | -disable-* | --disable-* \
2247 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2248 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2249 | -with-* | --with-* | -without-* | --without-* | --x)
2250 case "$ac_configure_args0 " in
2251 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2252 esac
2253 ;;
2254 -* ) ac_must_keep_next=true ;;
2255 esac
2256 fi
2257 as_fn_append ac_configure_args " '$ac_arg'"
2258 ;;
2259 esac
2260 done
2261 done
2262 { ac_configure_args0=; unset ac_configure_args0;}
2263 { ac_configure_args1=; unset ac_configure_args1;}
2264
2265 # When interrupted or exit'd, cleanup temporary files, and complete
2266 # config.log. We remove comments because anyway the quotes in there
2267 # would cause problems or look ugly.
2268 # WARNING: Use '\'' to represent an apostrophe within the trap.
2269 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2270 trap 'exit_status=$?
2271 # Save into config.log some information that might help in debugging.
2272 {
2273 echo
2274
2275 $as_echo "## ---------------- ##
2276 ## Cache variables. ##
2277 ## ---------------- ##"
2278 echo
2279 # The following way of writing the cache mishandles newlines in values,
2280 (
2281 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2282 eval ac_val=\$$ac_var
2283 case $ac_val in #(
2284 *${as_nl}*)
2285 case $ac_var in #(
2286 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2287 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2288 esac
2289 case $ac_var in #(
2290 _ | IFS | as_nl) ;; #(
2291 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2292 *) { eval $ac_var=; unset $ac_var;} ;;
2293 esac ;;
2294 esac
2295 done
2296 (set) 2>&1 |
2297 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2298 *${as_nl}ac_space=\ *)
2299 sed -n \
2300 "s/'\''/'\''\\\\'\'''\''/g;
2301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2302 ;; #(
2303 *)
2304 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2305 ;;
2306 esac |
2307 sort
2308 )
2309 echo
2310
2311 $as_echo "## ----------------- ##
2312 ## Output variables. ##
2313 ## ----------------- ##"
2314 echo
2315 for ac_var in $ac_subst_vars
2316 do
2317 eval ac_val=\$$ac_var
2318 case $ac_val in
2319 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2320 esac
2321 $as_echo "$ac_var='\''$ac_val'\''"
2322 done | sort
2323 echo
2324
2325 if test -n "$ac_subst_files"; then
2326 $as_echo "## ------------------- ##
2327 ## File substitutions. ##
2328 ## ------------------- ##"
2329 echo
2330 for ac_var in $ac_subst_files
2331 do
2332 eval ac_val=\$$ac_var
2333 case $ac_val in
2334 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2335 esac
2336 $as_echo "$ac_var='\''$ac_val'\''"
2337 done | sort
2338 echo
2339 fi
2340
2341 if test -s confdefs.h; then
2342 $as_echo "## ----------- ##
2343 ## confdefs.h. ##
2344 ## ----------- ##"
2345 echo
2346 cat confdefs.h
2347 echo
2348 fi
2349 test "$ac_signal" != 0 &&
2350 $as_echo "$as_me: caught signal $ac_signal"
2351 $as_echo "$as_me: exit $exit_status"
2352 } >&5
2353 rm -f core *.core core.conftest.* &&
2354 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2355 exit $exit_status
2356 ' 0
2357 for ac_signal in 1 2 13 15; do
2358 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2359 done
2360 ac_signal=0
2361
2362 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2363 rm -f -r conftest* confdefs.h
2364
2365 $as_echo "/* confdefs.h */" > confdefs.h
2366
2367 # Predefined preprocessor variables.
2368
2369 cat >>confdefs.h <<_ACEOF
2370 #define PACKAGE_NAME "$PACKAGE_NAME"
2371 _ACEOF
2372
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2375 _ACEOF
2376
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2379 _ACEOF
2380
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_STRING "$PACKAGE_STRING"
2383 _ACEOF
2384
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2387 _ACEOF
2388
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_URL "$PACKAGE_URL"
2391 _ACEOF
2392
2393
2394 # Let the site file select an alternate cache file if it wants to.
2395 # Prefer an explicitly selected file to automatically selected ones.
2396 ac_site_file1=NONE
2397 ac_site_file2=NONE
2398 if test -n "$CONFIG_SITE"; then
2399 # We do not want a PATH search for config.site.
2400 case $CONFIG_SITE in #((
2401 -*) ac_site_file1=./$CONFIG_SITE;;
2402 */*) ac_site_file1=$CONFIG_SITE;;
2403 *) ac_site_file1=./$CONFIG_SITE;;
2404 esac
2405 elif test "x$prefix" != xNONE; then
2406 ac_site_file1=$prefix/share/config.site
2407 ac_site_file2=$prefix/etc/config.site
2408 else
2409 ac_site_file1=$ac_default_prefix/share/config.site
2410 ac_site_file2=$ac_default_prefix/etc/config.site
2411 fi
2412 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2413 do
2414 test "x$ac_site_file" = xNONE && continue
2415 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2417 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2418 sed 's/^/| /' "$ac_site_file" >&5
2419 . "$ac_site_file" \
2420 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2422 as_fn_error $? "failed to load site script $ac_site_file
2423 See \`config.log' for more details" "$LINENO" 5; }
2424 fi
2425 done
2426
2427 if test -r "$cache_file"; then
2428 # Some versions of bash will fail to source /dev/null (special files
2429 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2430 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2432 $as_echo "$as_me: loading cache $cache_file" >&6;}
2433 case $cache_file in
2434 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2435 *) . "./$cache_file";;
2436 esac
2437 fi
2438 else
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2440 $as_echo "$as_me: creating cache $cache_file" >&6;}
2441 >$cache_file
2442 fi
2443
2444 # Check that the precious variables saved in the cache have kept the same
2445 # value.
2446 ac_cache_corrupted=false
2447 for ac_var in $ac_precious_vars; do
2448 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2449 eval ac_new_set=\$ac_env_${ac_var}_set
2450 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2451 eval ac_new_val=\$ac_env_${ac_var}_value
2452 case $ac_old_set,$ac_new_set in
2453 set,)
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2455 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2456 ac_cache_corrupted=: ;;
2457 ,set)
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2459 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2460 ac_cache_corrupted=: ;;
2461 ,);;
2462 *)
2463 if test "x$ac_old_val" != "x$ac_new_val"; then
2464 # differences in whitespace do not lead to failure.
2465 ac_old_val_w=`echo x $ac_old_val`
2466 ac_new_val_w=`echo x $ac_new_val`
2467 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2469 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2470 ac_cache_corrupted=:
2471 else
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2473 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2474 eval $ac_var=\$ac_old_val
2475 fi
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2477 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2479 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2480 fi;;
2481 esac
2482 # Pass precious variables to config.status.
2483 if test "$ac_new_set" = set; then
2484 case $ac_new_val in
2485 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2486 *) ac_arg=$ac_var=$ac_new_val ;;
2487 esac
2488 case " $ac_configure_args " in
2489 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2490 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2491 esac
2492 fi
2493 done
2494 if $ac_cache_corrupted; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2498 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2499 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2500 fi
2501 ## -------------------- ##
2502 ## Main body of script. ##
2503 ## -------------------- ##
2504
2505 ac_ext=c
2506 ac_cpp='$CPP $CPPFLAGS'
2507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510
2511
2512
2513 am__api_version='1.11'
2514
2515 ac_aux_dir=
2516 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2517 if test -f "$ac_dir/install-sh"; then
2518 ac_aux_dir=$ac_dir
2519 ac_install_sh="$ac_aux_dir/install-sh -c"
2520 break
2521 elif test -f "$ac_dir/install.sh"; then
2522 ac_aux_dir=$ac_dir
2523 ac_install_sh="$ac_aux_dir/install.sh -c"
2524 break
2525 elif test -f "$ac_dir/shtool"; then
2526 ac_aux_dir=$ac_dir
2527 ac_install_sh="$ac_aux_dir/shtool install -c"
2528 break
2529 fi
2530 done
2531 if test -z "$ac_aux_dir"; then
2532 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2533 fi
2534
2535 # These three variables are undocumented and unsupported,
2536 # and are intended to be withdrawn in a future Autoconf release.
2537 # They can cause serious problems if a builder's source tree is in a directory
2538 # whose full name contains unusual characters.
2539 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2540 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2541 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2542
2543
2544 # Find a good install program. We prefer a C program (faster),
2545 # so one script is as good as another. But avoid the broken or
2546 # incompatible versions:
2547 # SysV /etc/install, /usr/sbin/install
2548 # SunOS /usr/etc/install
2549 # IRIX /sbin/install
2550 # AIX /bin/install
2551 # AmigaOS /C/install, which installs bootblocks on floppy discs
2552 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2553 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2554 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2555 # OS/2's system install, which has a completely different semantic
2556 # ./install, which can be erroneously created by make from ./install.sh.
2557 # Reject install programs that cannot install multiple files.
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2559 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2560 if test -z "$INSTALL"; then
2561 if ${ac_cv_path_install+:} false; then :
2562 $as_echo_n "(cached) " >&6
2563 else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2566 do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
2569 # Account for people who put trailing slashes in PATH elements.
2570 case $as_dir/ in #((
2571 ./ | .// | /[cC]/* | \
2572 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2573 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2574 /usr/ucb/* ) ;;
2575 *)
2576 # OSF1 and SCO ODT 3.0 have their own names for install.
2577 # Don't use installbsd from OSF since it installs stuff as root
2578 # by default.
2579 for ac_prog in ginstall scoinst install; do
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2582 if test $ac_prog = install &&
2583 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2584 # AIX install. It has an incompatible calling convention.
2585 :
2586 elif test $ac_prog = install &&
2587 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2588 # program-specific install script used by HP pwplus--don't use.
2589 :
2590 else
2591 rm -rf conftest.one conftest.two conftest.dir
2592 echo one > conftest.one
2593 echo two > conftest.two
2594 mkdir conftest.dir
2595 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2596 test -s conftest.one && test -s conftest.two &&
2597 test -s conftest.dir/conftest.one &&
2598 test -s conftest.dir/conftest.two
2599 then
2600 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2601 break 3
2602 fi
2603 fi
2604 fi
2605 done
2606 done
2607 ;;
2608 esac
2609
2610 done
2611 IFS=$as_save_IFS
2612
2613 rm -rf conftest.one conftest.two conftest.dir
2614
2615 fi
2616 if test "${ac_cv_path_install+set}" = set; then
2617 INSTALL=$ac_cv_path_install
2618 else
2619 # As a last resort, use the slow shell script. Don't cache a
2620 # value for INSTALL within a source directory, because that will
2621 # break other packages using the cache if that directory is
2622 # removed, or if the value is a relative name.
2623 INSTALL=$ac_install_sh
2624 fi
2625 fi
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2627 $as_echo "$INSTALL" >&6; }
2628
2629 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2630 # It thinks the first close brace ends the variable substitution.
2631 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2632
2633 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2634
2635 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2636
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2638 $as_echo_n "checking whether build environment is sane... " >&6; }
2639 # Just in case
2640 sleep 1
2641 echo timestamp > conftest.file
2642 # Reject unsafe characters in $srcdir or the absolute working directory
2643 # name. Accept space and tab only in the latter.
2644 am_lf='
2645 '
2646 case `pwd` in
2647 *[\\\"\#\$\&\'\`$am_lf]*)
2648 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2649 esac
2650 case $srcdir in
2651 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2652 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2653 esac
2654
2655 # Do `set' in a subshell so we don't clobber the current shell's
2656 # arguments. Must try -L first in case configure is actually a
2657 # symlink; some systems play weird games with the mod time of symlinks
2658 # (eg FreeBSD returns the mod time of the symlink's containing
2659 # directory).
2660 if (
2661 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2662 if test "$*" = "X"; then
2663 # -L didn't work.
2664 set X `ls -t "$srcdir/configure" conftest.file`
2665 fi
2666 rm -f conftest.file
2667 if test "$*" != "X $srcdir/configure conftest.file" \
2668 && test "$*" != "X conftest.file $srcdir/configure"; then
2669
2670 # If neither matched, then we have a broken ls. This can happen
2671 # if, for instance, CONFIG_SHELL is bash and it inherits a
2672 # broken ls alias from the environment. This has actually
2673 # happened. Such a system could not be considered "sane".
2674 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2675 alias in your environment" "$LINENO" 5
2676 fi
2677
2678 test "$2" = conftest.file
2679 )
2680 then
2681 # Ok.
2682 :
2683 else
2684 as_fn_error $? "newly created file is older than distributed files!
2685 Check your system clock" "$LINENO" 5
2686 fi
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2688 $as_echo "yes" >&6; }
2689 test "$program_prefix" != NONE &&
2690 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2691 # Use a double $ so make ignores it.
2692 test "$program_suffix" != NONE &&
2693 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2694 # Double any \ or $.
2695 # By default was `s,x,x', remove it if useless.
2696 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2697 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2698
2699 # expand $ac_aux_dir to an absolute path
2700 am_aux_dir=`cd $ac_aux_dir && pwd`
2701
2702 if test x"${MISSING+set}" != xset; then
2703 case $am_aux_dir in
2704 *\ * | *\ *)
2705 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2706 *)
2707 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2708 esac
2709 fi
2710 # Use eval to expand $SHELL
2711 if eval "$MISSING --run true"; then
2712 am_missing_run="$MISSING --run "
2713 else
2714 am_missing_run=
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2716 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2717 fi
2718
2719 if test x"${install_sh}" != xset; then
2720 case $am_aux_dir in
2721 *\ * | *\ *)
2722 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2723 *)
2724 install_sh="\${SHELL} $am_aux_dir/install-sh"
2725 esac
2726 fi
2727
2728 # Installed binaries are usually stripped using `strip' when the user
2729 # run `make install-strip'. However `strip' might not be the right
2730 # tool to use in cross-compilation environments, therefore Automake
2731 # will honor the `STRIP' environment variable to overrule this program.
2732 if test "$cross_compiling" != no; then
2733 if test -n "$ac_tool_prefix"; then
2734 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2735 set dummy ${ac_tool_prefix}strip; ac_word=$2
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737 $as_echo_n "checking for $ac_word... " >&6; }
2738 if ${ac_cv_prog_STRIP+:} false; then :
2739 $as_echo_n "(cached) " >&6
2740 else
2741 if test -n "$STRIP"; then
2742 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2743 else
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH
2746 do
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2754 fi
2755 done
2756 done
2757 IFS=$as_save_IFS
2758
2759 fi
2760 fi
2761 STRIP=$ac_cv_prog_STRIP
2762 if test -n "$STRIP"; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2764 $as_echo "$STRIP" >&6; }
2765 else
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2768 fi
2769
2770
2771 fi
2772 if test -z "$ac_cv_prog_STRIP"; then
2773 ac_ct_STRIP=$STRIP
2774 # Extract the first word of "strip", so it can be a program name with args.
2775 set dummy strip; ac_word=$2
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777 $as_echo_n "checking for $ac_word... " >&6; }
2778 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2779 $as_echo_n "(cached) " >&6
2780 else
2781 if test -n "$ac_ct_STRIP"; then
2782 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2783 else
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2786 do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_prog_ac_ct_STRIP="strip"
2792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2794 fi
2795 done
2796 done
2797 IFS=$as_save_IFS
2798
2799 fi
2800 fi
2801 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2802 if test -n "$ac_ct_STRIP"; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2804 $as_echo "$ac_ct_STRIP" >&6; }
2805 else
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807 $as_echo "no" >&6; }
2808 fi
2809
2810 if test "x$ac_ct_STRIP" = x; then
2811 STRIP=":"
2812 else
2813 case $cross_compiling:$ac_tool_warned in
2814 yes:)
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2817 ac_tool_warned=yes ;;
2818 esac
2819 STRIP=$ac_ct_STRIP
2820 fi
2821 else
2822 STRIP="$ac_cv_prog_STRIP"
2823 fi
2824
2825 fi
2826 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2827
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2829 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2830 if test -z "$MKDIR_P"; then
2831 if ${ac_cv_path_mkdir+:} false; then :
2832 $as_echo_n "(cached) " >&6
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2836 do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_prog in mkdir gmkdir; do
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2842 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2843 'mkdir (GNU coreutils) '* | \
2844 'mkdir (coreutils) '* | \
2845 'mkdir (fileutils) '4.1*)
2846 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2847 break 3;;
2848 esac
2849 done
2850 done
2851 done
2852 IFS=$as_save_IFS
2853
2854 fi
2855
2856 test -d ./--version && rmdir ./--version
2857 if test "${ac_cv_path_mkdir+set}" = set; then
2858 MKDIR_P="$ac_cv_path_mkdir -p"
2859 else
2860 # As a last resort, use the slow shell script. Don't cache a
2861 # value for MKDIR_P within a source directory, because that will
2862 # break other packages using the cache if that directory is
2863 # removed, or if the value is a relative name.
2864 MKDIR_P="$ac_install_sh -d"
2865 fi
2866 fi
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2868 $as_echo "$MKDIR_P" >&6; }
2869
2870 mkdir_p="$MKDIR_P"
2871 case $mkdir_p in
2872 [\\/$]* | ?:[\\/]*) ;;
2873 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2874 esac
2875
2876 for ac_prog in gawk mawk nawk awk
2877 do
2878 # Extract the first word of "$ac_prog", so it can be a program name with args.
2879 set dummy $ac_prog; ac_word=$2
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881 $as_echo_n "checking for $ac_word... " >&6; }
2882 if ${ac_cv_prog_AWK+:} false; then :
2883 $as_echo_n "(cached) " >&6
2884 else
2885 if test -n "$AWK"; then
2886 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2890 do
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 ac_cv_prog_AWK="$ac_prog"
2896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 break 2
2898 fi
2899 done
2900 done
2901 IFS=$as_save_IFS
2902
2903 fi
2904 fi
2905 AWK=$ac_cv_prog_AWK
2906 if test -n "$AWK"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2908 $as_echo "$AWK" >&6; }
2909 else
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 $as_echo "no" >&6; }
2912 fi
2913
2914
2915 test -n "$AWK" && break
2916 done
2917
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2919 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2920 set x ${MAKE-make}
2921 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2922 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 cat >conftest.make <<\_ACEOF
2926 SHELL = /bin/sh
2927 all:
2928 @echo '@@@%%%=$(MAKE)=@@@%%%'
2929 _ACEOF
2930 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2931 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2932 *@@@%%%=?*=@@@%%%*)
2933 eval ac_cv_prog_make_${ac_make}_set=yes;;
2934 *)
2935 eval ac_cv_prog_make_${ac_make}_set=no;;
2936 esac
2937 rm -f conftest.make
2938 fi
2939 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2941 $as_echo "yes" >&6; }
2942 SET_MAKE=
2943 else
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2946 SET_MAKE="MAKE=${MAKE-make}"
2947 fi
2948
2949 rm -rf .tst 2>/dev/null
2950 mkdir .tst 2>/dev/null
2951 if test -d .tst; then
2952 am__leading_dot=.
2953 else
2954 am__leading_dot=_
2955 fi
2956 rmdir .tst 2>/dev/null
2957
2958 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2959 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2960 # is not polluted with repeated "-I."
2961 am__isrc=' -I$(srcdir)'
2962 # test to see if srcdir already configured
2963 if test -f $srcdir/config.status; then
2964 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2965 fi
2966 fi
2967
2968 # test whether we have cygpath
2969 if test -z "$CYGPATH_W"; then
2970 if (cygpath --version) >/dev/null 2>/dev/null; then
2971 CYGPATH_W='cygpath -w'
2972 else
2973 CYGPATH_W=echo
2974 fi
2975 fi
2976
2977
2978 # Define the identity of the package.
2979 PACKAGE='mpfr'
2980 VERSION='3.1.2'
2981
2982
2983 # Some tools Automake needs.
2984
2985 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2986
2987
2988 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2989
2990
2991 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2992
2993
2994 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2995
2996
2997 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2998
2999 # We need awk for the "check" target. The system "awk" is bad on
3000 # some platforms.
3001 # Always define AMTAR for backward compatibility. Yes, it's still used
3002 # in the wild :-( We should find a proper way to deprecate it ...
3003 AMTAR='$${TAR-tar}'
3004
3005 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3006
3007
3008
3009
3010
3011
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3013 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3014 # Check whether --enable-maintainer-mode was given.
3015 if test "${enable_maintainer_mode+set}" = set; then :
3016 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3017 else
3018 USE_MAINTAINER_MODE=yes
3019 fi
3020
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3022 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3023 if test $USE_MAINTAINER_MODE = yes; then
3024 MAINTAINER_MODE_TRUE=
3025 MAINTAINER_MODE_FALSE='#'
3026 else
3027 MAINTAINER_MODE_TRUE='#'
3028 MAINTAINER_MODE_FALSE=
3029 fi
3030
3031 MAINT=$MAINTAINER_MODE_TRUE
3032
3033
3034
3035
3036
3037
3038 test_CFLAGS=${CFLAGS+set}
3039
3040 # Make sure we can run config.sub.
3041 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3042 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3043
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3045 $as_echo_n "checking build system type... " >&6; }
3046 if ${ac_cv_build+:} false; then :
3047 $as_echo_n "(cached) " >&6
3048 else
3049 ac_build_alias=$build_alias
3050 test "x$ac_build_alias" = x &&
3051 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3052 test "x$ac_build_alias" = x &&
3053 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3054 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3055 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3056
3057 fi
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3059 $as_echo "$ac_cv_build" >&6; }
3060 case $ac_cv_build in
3061 *-*-*) ;;
3062 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3063 esac
3064 build=$ac_cv_build
3065 ac_save_IFS=$IFS; IFS='-'
3066 set x $ac_cv_build
3067 shift
3068 build_cpu=$1
3069 build_vendor=$2
3070 shift; shift
3071 # Remember, the first character of IFS is used to create $*,
3072 # except with old shells:
3073 build_os=$*
3074 IFS=$ac_save_IFS
3075 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3076
3077
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3079 $as_echo_n "checking host system type... " >&6; }
3080 if ${ac_cv_host+:} false; then :
3081 $as_echo_n "(cached) " >&6
3082 else
3083 if test "x$host_alias" = x; then
3084 ac_cv_host=$ac_cv_build
3085 else
3086 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3087 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3088 fi
3089
3090 fi
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3092 $as_echo "$ac_cv_host" >&6; }
3093 case $ac_cv_host in
3094 *-*-*) ;;
3095 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3096 esac
3097 host=$ac_cv_host
3098 ac_save_IFS=$IFS; IFS='-'
3099 set x $ac_cv_host
3100 shift
3101 host_cpu=$1
3102 host_vendor=$2
3103 shift; shift
3104 # Remember, the first character of IFS is used to create $*,
3105 # except with old shells:
3106 host_os=$*
3107 IFS=$ac_save_IFS
3108 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3109
3110
3111
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3113 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3114 if ${ac_cv_path_GREP+:} false; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 if test -z "$GREP"; then
3118 ac_path_GREP_found=false
3119 # Loop through the user's path and test for each of PROGNAME-LIST
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3122 do
3123 IFS=$as_save_IFS
3124 test -z "$as_dir" && as_dir=.
3125 for ac_prog in grep ggrep; do
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3128 as_fn_executable_p "$ac_path_GREP" || continue
3129 # Check for GNU ac_path_GREP and select it if it is found.
3130 # Check for GNU $ac_path_GREP
3131 case `"$ac_path_GREP" --version 2>&1` in
3132 *GNU*)
3133 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3134 *)
3135 ac_count=0
3136 $as_echo_n 0123456789 >"conftest.in"
3137 while :
3138 do
3139 cat "conftest.in" "conftest.in" >"conftest.tmp"
3140 mv "conftest.tmp" "conftest.in"
3141 cp "conftest.in" "conftest.nl"
3142 $as_echo 'GREP' >> "conftest.nl"
3143 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3144 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3145 as_fn_arith $ac_count + 1 && ac_count=$as_val
3146 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3147 # Best one so far, save it but keep looking for a better one
3148 ac_cv_path_GREP="$ac_path_GREP"
3149 ac_path_GREP_max=$ac_count
3150 fi
3151 # 10*(2^10) chars as input seems more than enough
3152 test $ac_count -gt 10 && break
3153 done
3154 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3155 esac
3156
3157 $ac_path_GREP_found && break 3
3158 done
3159 done
3160 done
3161 IFS=$as_save_IFS
3162 if test -z "$ac_cv_path_GREP"; then
3163 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3164 fi
3165 else
3166 ac_cv_path_GREP=$GREP
3167 fi
3168
3169 fi
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3171 $as_echo "$ac_cv_path_GREP" >&6; }
3172 GREP="$ac_cv_path_GREP"
3173
3174
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3176 $as_echo_n "checking for egrep... " >&6; }
3177 if ${ac_cv_path_EGREP+:} false; then :
3178 $as_echo_n "(cached) " >&6
3179 else
3180 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3181 then ac_cv_path_EGREP="$GREP -E"
3182 else
3183 if test -z "$EGREP"; then
3184 ac_path_EGREP_found=false
3185 # Loop through the user's path and test for each of PROGNAME-LIST
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3188 do
3189 IFS=$as_save_IFS
3190 test -z "$as_dir" && as_dir=.
3191 for ac_prog in egrep; do
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3194 as_fn_executable_p "$ac_path_EGREP" || continue
3195 # Check for GNU ac_path_EGREP and select it if it is found.
3196 # Check for GNU $ac_path_EGREP
3197 case `"$ac_path_EGREP" --version 2>&1` in
3198 *GNU*)
3199 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3200 *)
3201 ac_count=0
3202 $as_echo_n 0123456789 >"conftest.in"
3203 while :
3204 do
3205 cat "conftest.in" "conftest.in" >"conftest.tmp"
3206 mv "conftest.tmp" "conftest.in"
3207 cp "conftest.in" "conftest.nl"
3208 $as_echo 'EGREP' >> "conftest.nl"
3209 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3211 as_fn_arith $ac_count + 1 && ac_count=$as_val
3212 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3213 # Best one so far, save it but keep looking for a better one
3214 ac_cv_path_EGREP="$ac_path_EGREP"
3215 ac_path_EGREP_max=$ac_count
3216 fi
3217 # 10*(2^10) chars as input seems more than enough
3218 test $ac_count -gt 10 && break
3219 done
3220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3221 esac
3222
3223 $ac_path_EGREP_found && break 3
3224 done
3225 done
3226 done
3227 IFS=$as_save_IFS
3228 if test -z "$ac_cv_path_EGREP"; then
3229 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3230 fi
3231 else
3232 ac_cv_path_EGREP=$EGREP
3233 fi
3234
3235 fi
3236 fi
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3238 $as_echo "$ac_cv_path_EGREP" >&6; }
3239 EGREP="$ac_cv_path_EGREP"
3240
3241
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3243 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3244 if ${ac_cv_path_SED+:} false; then :
3245 $as_echo_n "(cached) " >&6
3246 else
3247 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3248 for ac_i in 1 2 3 4 5 6 7; do
3249 ac_script="$ac_script$as_nl$ac_script"
3250 done
3251 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3252 { ac_script=; unset ac_script;}
3253 if test -z "$SED"; then
3254 ac_path_SED_found=false
3255 # Loop through the user's path and test for each of PROGNAME-LIST
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH
3258 do
3259 IFS=$as_save_IFS
3260 test -z "$as_dir" && as_dir=.
3261 for ac_prog in sed gsed; do
3262 for ac_exec_ext in '' $ac_executable_extensions; do
3263 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3264 as_fn_executable_p "$ac_path_SED" || continue
3265 # Check for GNU ac_path_SED and select it if it is found.
3266 # Check for GNU $ac_path_SED
3267 case `"$ac_path_SED" --version 2>&1` in
3268 *GNU*)
3269 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3270 *)
3271 ac_count=0
3272 $as_echo_n 0123456789 >"conftest.in"
3273 while :
3274 do
3275 cat "conftest.in" "conftest.in" >"conftest.tmp"
3276 mv "conftest.tmp" "conftest.in"
3277 cp "conftest.in" "conftest.nl"
3278 $as_echo '' >> "conftest.nl"
3279 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3280 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3281 as_fn_arith $ac_count + 1 && ac_count=$as_val
3282 if test $ac_count -gt ${ac_path_SED_max-0}; then
3283 # Best one so far, save it but keep looking for a better one
3284 ac_cv_path_SED="$ac_path_SED"
3285 ac_path_SED_max=$ac_count
3286 fi
3287 # 10*(2^10) chars as input seems more than enough
3288 test $ac_count -gt 10 && break
3289 done
3290 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3291 esac
3292
3293 $ac_path_SED_found && break 3
3294 done
3295 done
3296 done
3297 IFS=$as_save_IFS
3298 if test -z "$ac_cv_path_SED"; then
3299 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3300 fi
3301 else
3302 ac_cv_path_SED=$SED
3303 fi
3304
3305 fi
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3307 $as_echo "$ac_cv_path_SED" >&6; }
3308 SED="$ac_cv_path_SED"
3309 rm -f conftest.sed
3310
3311
3312
3313 unset gmp_lib_path GMP_CFLAGS GMP_CC
3314
3315 # Check whether --with-gmp_include was given.
3316 if test "${with_gmp_include+set}" = set; then :
3317 withval=$with_gmp_include; CPPFLAGS="$CPPFLAGS -I$withval"
3318 fi
3319
3320
3321 # Check whether --with-gmp_lib was given.
3322 if test "${with_gmp_lib+set}" = set; then :
3323 withval=$with_gmp_lib;
3324 LDFLAGS="$LDFLAGS -L$withval"
3325 gmp_lib_path="$withval"
3326
3327 fi
3328
3329
3330 # Check whether --with-gmp was given.
3331 if test "${with_gmp+set}" = set; then :
3332 withval=$with_gmp;
3333 if test -z "$with_gmp_lib" && test -z "$with_gmp_include" ; then
3334 CPPFLAGS="$CPPFLAGS -I$withval/include"
3335 LDFLAGS="$LDFLAGS -L$withval/lib"
3336 gmp_lib_path="$withval/lib"
3337 else
3338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3340 as_fn_error $? "Do not use --with-gmp and --with-gmp-include/--with-gmp-lib options simultaneously.
3341 See \`config.log' for more details" "$LINENO" 5; }
3342 fi
3343
3344 fi
3345
3346
3347
3348 # Check whether --with-gmp_build was given.
3349 if test "${with_gmp_build+set}" = set; then :
3350 withval=$with_gmp_build;
3351 if test -z "$gmp_lib_path" && test -z "$with_gmp_include" ; then
3352 CPPFLAGS="$CPPFLAGS -I$withval -I$withval/tune"
3353 LDFLAGS="$LDFLAGS -L$withval -L$withval/.libs -L$withval/tune"
3354 gmp_lib_path="$withval$PATH_SEPARATOR$withval/.libs$PATH_SEPARATOR$withval/tune"
3355 if test -r $withval/Makefile ; then
3356 GMP_CFLAGS=`$SED -n 's/^CFLAGS = //p' $withval/Makefile`
3357 GMP_CC=`$SED -n 's/^CC = //p' $withval/Makefile`
3358 GMP_SOURCE=`$SED -n 's/^srcdir = *//p' $withval/Makefile`
3359 case "$GMP_SOURCE" in
3360 .) GMP_SOURCE="" ;;
3361 /*) ;;
3362 ?*) GMP_SOURCE="$withval/$GMP_SOURCE" ;;
3363 esac
3364 if test -d "$GMP_SOURCE" ; then
3365 CPPFLAGS="$CPPFLAGS -I$GMP_SOURCE -I$GMP_SOURCE/tune"
3366 fi
3367 fi
3368 use_gmp_build=yes
3369 else
3370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372 as_fn_error $? "Do not use --with-gmp-build and other --with-gmp options simultaneously.
3373 See \`config.log' for more details" "$LINENO" 5; }
3374 fi
3375
3376 fi
3377
3378
3379
3380 # Check whether --with-mulhigh_size was given.
3381 if test "${with_mulhigh_size+set}" = set; then :
3382 withval=$with_mulhigh_size;
3383 cat >>confdefs.h <<_ACEOF
3384 #define MPFR_MULHIGH_SIZE $withval
3385 _ACEOF
3386
3387 fi
3388
3389
3390 # Check whether --enable-gmp-internals was given.
3391 if test "${enable_gmp_internals+set}" = set; then :
3392 enableval=$enable_gmp_internals; case $enableval in
3393 yes)
3394 $as_echo "#define WANT_GMP_INTERNALS 1" >>confdefs.h
3395 ;;
3396 no) ;;
3397 *) as_fn_error $? "bad value for --enable-gmp-internals: yes or no" "$LINENO" 5 ;;
3398 esac
3399 fi
3400
3401
3402 # Check whether --enable-assert was given.
3403 if test "${enable_assert+set}" = set; then :
3404 enableval=$enable_assert; case $enableval in
3405 yes)
3406 $as_echo "#define WANT_ASSERT 1" >>confdefs.h
3407 ;;
3408 no) ;;
3409 full)
3410 $as_echo "#define WANT_ASSERT 2" >>confdefs.h
3411 ;;
3412 *) as_fn_error $? "bad value for --enable-assert: yes, no or full" "$LINENO" 5 ;;
3413 esac
3414 fi
3415
3416 # Check whether --enable-logging was given.
3417 if test "${enable_logging+set}" = set; then :
3418 enableval=$enable_logging; case $enableval in
3419 yes)
3420 $as_echo "#define MPFR_USE_LOGGING 1" >>confdefs.h
3421 ;;
3422 no) ;;
3423 *) as_fn_error $? "bad value for --enable-logging: yes or no" "$LINENO" 5 ;;
3424 esac
3425 fi
3426
3427 # Check whether --enable-thread-safe was given.
3428 if test "${enable_thread_safe+set}" = set; then :
3429 enableval=$enable_thread_safe; case $enableval in
3430 yes) ;;
3431 no) ;;
3432 *) as_fn_error $? "bad value for --enable-thread-safe: yes or no" "$LINENO" 5 ;;
3433 esac
3434 fi
3435
3436 # Check whether --enable-warnings was given.
3437 if test "${enable_warnings+set}" = set; then :
3438 enableval=$enable_warnings; case $enableval in
3439 yes)
3440 $as_echo "#define MPFR_USE_WARNINGS 1" >>confdefs.h
3441 ;;
3442 no) ;;
3443 *) as_fn_error $? "bad value for --enable-warnings: yes or no" "$LINENO" 5 ;;
3444 esac
3445 fi
3446
3447
3448 # Check whether --enable-tests-timeout was given.
3449 if test "${enable_tests_timeout+set}" = set; then :
3450 enableval=$enable_tests_timeout; case $enableval in
3451 no) ;;
3452 yes)
3453 $as_echo "#define MPFR_TESTS_TIMEOUT 0" >>confdefs.h
3454 ;;
3455 [0-9]|[0-9][0-9]|[0-9][0-9][0-9]|[0-9][0-9][0-9][0-9])
3456
3457 cat >>confdefs.h <<_ACEOF
3458 #define MPFR_TESTS_TIMEOUT $enableval
3459 _ACEOF
3460 ;;
3461 *) as_fn_error $? "bad value for --enable-tests-timeout" "$LINENO" 5 ;;
3462 esac
3463 fi
3464
3465
3466
3467
3468 if test -n "$CFLAGS" || test -n "$CC" ; then
3469 user_redefine_cc=yes
3470 fi
3471
3472
3473 if test -z "$user_redefine_cc" && test "$cross_compiling" != yes ; then
3474
3475 if test -z "$GMP_CC$GMP_CFLAGS" ; then
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC and CFLAGS in gmp.h" >&5
3477 $as_echo_n "checking for CC and CFLAGS in gmp.h... " >&6; }
3478 GMP_CC=__GMP_CC
3479 GMP_CFLAGS=__GMP_CFLAGS
3480 for cpp in /lib/cpp gcc cc c99
3481 do
3482 test $cpp = /lib/cpp || cpp="$cpp -E"
3483 echo foo > conftest.c
3484 if $cpp $CPPFLAGS conftest.c > /dev/null 2> /dev/null ; then
3485 # Get CC
3486 echo "#include \"gmp.h\"" > conftest.c
3487 echo "MPFR_OPTION __GMP_CC" >> conftest.c
3488 GMP_CC=`$cpp $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e 's/MPFR_OPTION //g;s/ *" *//g'`
3489 # Get CFLAGS
3490 echo "#include \"gmp.h\"" > conftest.c
3491 echo "MPFR_OPTION __GMP_CFLAGS" >> conftest.c
3492 unset rmpedantic
3493 test "$enable_logging" = yes && rmpedantic='s/[ "]-pedantic[ "]/ /g;'
3494 GMP_CFLAGS=`$cpp $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e "$rmpedantic"'s/MPFR_OPTION //g;s/ *" *//g'`
3495 break
3496 fi
3497 done
3498 rm -f conftest*
3499 if test "x$GMP_CC" = "x__GMP_CC" || test "x$GMP_CFLAGS" = "x__GMP_CFLAGS" ; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 $as_echo "no" >&6; }
3502 GMP_CFLAGS=
3503 GMP_CC=
3504 else
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&5
3506 $as_echo "yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&6; }
3507 fi
3508 fi
3509
3510 if test -n "$GMP_CC$GMP_CFLAGS" ; then
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS" >&5
3512 $as_echo_n "checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS... " >&6; }
3513 echo "int main (void) { return 0; }" > conftest.c
3514 if $GMP_CC $GMP_CFLAGS -o conftest conftest.c 2> /dev/null ; then
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3516 $as_echo "yes" >&6; }
3517 CFLAGS=$GMP_CFLAGS
3518 CC=$GMP_CC
3519 else
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3522 fi
3523 rm -f conftest*
3524 fi
3525
3526 fi
3527
3528
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534 if test -n "$ac_tool_prefix"; then
3535 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3536 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if ${ac_cv_prog_CC+:} false; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 if test -n "$CC"; then
3543 ac_cv_prog_CC="$CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3555 fi
3556 done
3557 done
3558 IFS=$as_save_IFS
3559
3560 fi
3561 fi
3562 CC=$ac_cv_prog_CC
3563 if test -n "$CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565 $as_echo "$CC" >&6; }
3566 else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3569 fi
3570
3571
3572 fi
3573 if test -z "$ac_cv_prog_CC"; then
3574 ac_ct_CC=$CC
3575 # Extract the first word of "gcc", so it can be a program name with args.
3576 set dummy gcc; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 if test -n "$ac_ct_CC"; then
3583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3584 else
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3587 do
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_ac_ct_CC="gcc"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596 done
3597 done
3598 IFS=$as_save_IFS
3599
3600 fi
3601 fi
3602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3603 if test -n "$ac_ct_CC"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3605 $as_echo "$ac_ct_CC" >&6; }
3606 else
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3609 fi
3610
3611 if test "x$ac_ct_CC" = x; then
3612 CC=""
3613 else
3614 case $cross_compiling:$ac_tool_warned in
3615 yes:)
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3618 ac_tool_warned=yes ;;
3619 esac
3620 CC=$ac_ct_CC
3621 fi
3622 else
3623 CC="$ac_cv_prog_CC"
3624 fi
3625
3626 if test -z "$CC"; then
3627 if test -n "$ac_tool_prefix"; then
3628 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3629 set dummy ${ac_tool_prefix}cc; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if ${ac_cv_prog_CC+:} false; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC="$CC" # Let the user override the test.
3637 else
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3640 do
3641 IFS=$as_save_IFS
3642 test -z "$as_dir" && as_dir=.
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3645 ac_cv_prog_CC="${ac_tool_prefix}cc"
3646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3647 break 2
3648 fi
3649 done
3650 done
3651 IFS=$as_save_IFS
3652
3653 fi
3654 fi
3655 CC=$ac_cv_prog_CC
3656 if test -n "$CC"; then
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3658 $as_echo "$CC" >&6; }
3659 else
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3662 fi
3663
3664
3665 fi
3666 fi
3667 if test -z "$CC"; then
3668 # Extract the first word of "cc", so it can be a program name with args.
3669 set dummy cc; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if ${ac_cv_prog_CC+:} false; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 if test -n "$CC"; then
3676 ac_cv_prog_CC="$CC" # Let the user override the test.
3677 else
3678 ac_prog_rejected=no
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 for as_dir in $PATH
3681 do
3682 IFS=$as_save_IFS
3683 test -z "$as_dir" && as_dir=.
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3686 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3687 ac_prog_rejected=yes
3688 continue
3689 fi
3690 ac_cv_prog_CC="cc"
3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 break 2
3693 fi
3694 done
3695 done
3696 IFS=$as_save_IFS
3697
3698 if test $ac_prog_rejected = yes; then
3699 # We found a bogon in the path, so make sure we never use it.
3700 set dummy $ac_cv_prog_CC
3701 shift
3702 if test $# != 0; then
3703 # We chose a different compiler from the bogus one.
3704 # However, it has the same basename, so the bogon will be chosen
3705 # first if we set CC to just the basename; use the full file name.
3706 shift
3707 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3708 fi
3709 fi
3710 fi
3711 fi
3712 CC=$ac_cv_prog_CC
3713 if test -n "$CC"; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715 $as_echo "$CC" >&6; }
3716 else
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3719 fi
3720
3721
3722 fi
3723 if test -z "$CC"; then
3724 if test -n "$ac_tool_prefix"; then
3725 for ac_prog in cl.exe
3726 do
3727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3728 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730 $as_echo_n "checking for $ac_word... " >&6; }
3731 if ${ac_cv_prog_CC+:} false; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 if test -n "$CC"; then
3735 ac_cv_prog_CC="$CC" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3739 do
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 break 2
3747 fi
3748 done
3749 done
3750 IFS=$as_save_IFS
3751
3752 fi
3753 fi
3754 CC=$ac_cv_prog_CC
3755 if test -n "$CC"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3757 $as_echo "$CC" >&6; }
3758 else
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3761 fi
3762
3763
3764 test -n "$CC" && break
3765 done
3766 fi
3767 if test -z "$CC"; then
3768 ac_ct_CC=$CC
3769 for ac_prog in cl.exe
3770 do
3771 # Extract the first word of "$ac_prog", so it can be a program name with args.
3772 set dummy $ac_prog; ac_word=$2
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3774 $as_echo_n "checking for $ac_word... " >&6; }
3775 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3776 $as_echo_n "(cached) " >&6
3777 else
3778 if test -n "$ac_ct_CC"; then
3779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3780 else
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3783 do
3784 IFS=$as_save_IFS
3785 test -z "$as_dir" && as_dir=.
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3788 ac_cv_prog_ac_ct_CC="$ac_prog"
3789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3790 break 2
3791 fi
3792 done
3793 done
3794 IFS=$as_save_IFS
3795
3796 fi
3797 fi
3798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3799 if test -n "$ac_ct_CC"; then
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3801 $as_echo "$ac_ct_CC" >&6; }
3802 else
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804 $as_echo "no" >&6; }
3805 fi
3806
3807
3808 test -n "$ac_ct_CC" && break
3809 done
3810
3811 if test "x$ac_ct_CC" = x; then
3812 CC=""
3813 else
3814 case $cross_compiling:$ac_tool_warned in
3815 yes:)
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3818 ac_tool_warned=yes ;;
3819 esac
3820 CC=$ac_ct_CC
3821 fi
3822 fi
3823
3824 fi
3825
3826
3827 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829 as_fn_error $? "no acceptable C compiler found in \$PATH
3830 See \`config.log' for more details" "$LINENO" 5; }
3831
3832 # Provide some information about the compiler.
3833 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3834 set X $ac_compile
3835 ac_compiler=$2
3836 for ac_option in --version -v -V -qversion; do
3837 { { ac_try="$ac_compiler $ac_option >&5"
3838 case "(($ac_try" in
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3841 esac
3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 $as_echo "$ac_try_echo"; } >&5
3844 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3845 ac_status=$?
3846 if test -s conftest.err; then
3847 sed '10a\
3848 ... rest of stderr output deleted ...
3849 10q' conftest.err >conftest.er1
3850 cat conftest.er1 >&5
3851 fi
3852 rm -f conftest.er1 conftest.err
3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }
3855 done
3856
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3859
3860 int
3861 main ()
3862 {
3863
3864 ;
3865 return 0;
3866 }
3867 _ACEOF
3868 ac_clean_files_save=$ac_clean_files
3869 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3870 # Try to create an executable without -o first, disregard a.out.
3871 # It will help us diagnose broken compilers, and finding out an intuition
3872 # of exeext.
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3874 $as_echo_n "checking whether the C compiler works... " >&6; }
3875 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3876
3877 # The possible output files:
3878 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3879
3880 ac_rmfiles=
3881 for ac_file in $ac_files
3882 do
3883 case $ac_file in
3884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3885 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3886 esac
3887 done
3888 rm -f $ac_rmfiles
3889
3890 if { { ac_try="$ac_link_default"
3891 case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894 esac
3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896 $as_echo "$ac_try_echo"; } >&5
3897 (eval "$ac_link_default") 2>&5
3898 ac_status=$?
3899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900 test $ac_status = 0; }; then :
3901 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3902 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3903 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3904 # so that the user can short-circuit this test for compilers unknown to
3905 # Autoconf.
3906 for ac_file in $ac_files ''
3907 do
3908 test -f "$ac_file" || continue
3909 case $ac_file in
3910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3911 ;;
3912 [ab].out )
3913 # We found the default executable, but exeext='' is most
3914 # certainly right.
3915 break;;
3916 *.* )
3917 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3918 then :; else
3919 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3920 fi
3921 # We set ac_cv_exeext here because the later test for it is not
3922 # safe: cross compilers may not add the suffix if given an `-o'
3923 # argument, so we may need to know it at that point already.
3924 # Even if this section looks crufty: it has the advantage of
3925 # actually working.
3926 break;;
3927 * )
3928 break;;
3929 esac
3930 done
3931 test "$ac_cv_exeext" = no && ac_cv_exeext=
3932
3933 else
3934 ac_file=''
3935 fi
3936 if test -z "$ac_file"; then :
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 $as_echo "no" >&6; }
3939 $as_echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3941
3942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944 as_fn_error 77 "C compiler cannot create executables
3945 See \`config.log' for more details" "$LINENO" 5; }
3946 else
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3948 $as_echo "yes" >&6; }
3949 fi
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3951 $as_echo_n "checking for C compiler default output file name... " >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3953 $as_echo "$ac_file" >&6; }
3954 ac_exeext=$ac_cv_exeext
3955
3956 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3957 ac_clean_files=$ac_clean_files_save
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3959 $as_echo_n "checking for suffix of executables... " >&6; }
3960 if { { ac_try="$ac_link"
3961 case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964 esac
3965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3966 $as_echo "$ac_try_echo"; } >&5
3967 (eval "$ac_link") 2>&5
3968 ac_status=$?
3969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970 test $ac_status = 0; }; then :
3971 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3972 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3973 # work properly (i.e., refer to `conftest.exe'), while it won't with
3974 # `rm'.
3975 for ac_file in conftest.exe conftest conftest.*; do
3976 test -f "$ac_file" || continue
3977 case $ac_file in
3978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3979 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3980 break;;
3981 * ) break;;
3982 esac
3983 done
3984 else
3985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3987 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3988 See \`config.log' for more details" "$LINENO" 5; }
3989 fi
3990 rm -f conftest conftest$ac_cv_exeext
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3992 $as_echo "$ac_cv_exeext" >&6; }
3993
3994 rm -f conftest.$ac_ext
3995 EXEEXT=$ac_cv_exeext
3996 ac_exeext=$EXEEXT
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
3999 #include <stdio.h>
4000 int
4001 main ()
4002 {
4003 FILE *f = fopen ("conftest.out", "w");
4004 return ferror (f) || fclose (f) != 0;
4005
4006 ;
4007 return 0;
4008 }
4009 _ACEOF
4010 ac_clean_files="$ac_clean_files conftest.out"
4011 # Check that the compiler produces executables we can run. If not, either
4012 # the compiler is broken, or we cross compile.
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4014 $as_echo_n "checking whether we are cross compiling... " >&6; }
4015 if test "$cross_compiling" != yes; then
4016 { { ac_try="$ac_link"
4017 case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020 esac
4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 $as_echo "$ac_try_echo"; } >&5
4023 (eval "$ac_link") 2>&5
4024 ac_status=$?
4025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026 test $ac_status = 0; }
4027 if { ac_try='./conftest$ac_cv_exeext'
4028 { { case "(($ac_try" in
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4031 esac
4032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4033 $as_echo "$ac_try_echo"; } >&5
4034 (eval "$ac_try") 2>&5
4035 ac_status=$?
4036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037 test $ac_status = 0; }; }; then
4038 cross_compiling=no
4039 else
4040 if test "$cross_compiling" = maybe; then
4041 cross_compiling=yes
4042 else
4043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4045 as_fn_error $? "cannot run C compiled programs.
4046 If you meant to cross compile, use \`--host'.
4047 See \`config.log' for more details" "$LINENO" 5; }
4048 fi
4049 fi
4050 fi
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4052 $as_echo "$cross_compiling" >&6; }
4053
4054 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4055 ac_clean_files=$ac_clean_files_save
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4057 $as_echo_n "checking for suffix of object files... " >&6; }
4058 if ${ac_cv_objext+:} false; then :
4059 $as_echo_n "(cached) " >&6
4060 else
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4063
4064 int
4065 main ()
4066 {
4067
4068 ;
4069 return 0;
4070 }
4071 _ACEOF
4072 rm -f conftest.o conftest.obj
4073 if { { ac_try="$ac_compile"
4074 case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077 esac
4078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4079 $as_echo "$ac_try_echo"; } >&5
4080 (eval "$ac_compile") 2>&5
4081 ac_status=$?
4082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4083 test $ac_status = 0; }; then :
4084 for ac_file in conftest.o conftest.obj conftest.*; do
4085 test -f "$ac_file" || continue;
4086 case $ac_file in
4087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4088 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4089 break;;
4090 esac
4091 done
4092 else
4093 $as_echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4095
4096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4098 as_fn_error $? "cannot compute suffix of object files: cannot compile
4099 See \`config.log' for more details" "$LINENO" 5; }
4100 fi
4101 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4102 fi
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4104 $as_echo "$ac_cv_objext" >&6; }
4105 OBJEXT=$ac_cv_objext
4106 ac_objext=$OBJEXT
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4108 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4109 if ${ac_cv_c_compiler_gnu+:} false; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4114
4115 int
4116 main ()
4117 {
4118 #ifndef __GNUC__
4119 choke me
4120 #endif
4121
4122 ;
4123 return 0;
4124 }
4125 _ACEOF
4126 if ac_fn_c_try_compile "$LINENO"; then :
4127 ac_compiler_gnu=yes
4128 else
4129 ac_compiler_gnu=no
4130 fi
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4133
4134 fi
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4136 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4137 if test $ac_compiler_gnu = yes; then
4138 GCC=yes
4139 else
4140 GCC=
4141 fi
4142 ac_test_CFLAGS=${CFLAGS+set}
4143 ac_save_CFLAGS=$CFLAGS
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4145 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4146 if ${ac_cv_prog_cc_g+:} false; then :
4147 $as_echo_n "(cached) " >&6
4148 else
4149 ac_save_c_werror_flag=$ac_c_werror_flag
4150 ac_c_werror_flag=yes
4151 ac_cv_prog_cc_g=no
4152 CFLAGS="-g"
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155
4156 int
4157 main ()
4158 {
4159
4160 ;
4161 return 0;
4162 }
4163 _ACEOF
4164 if ac_fn_c_try_compile "$LINENO"; then :
4165 ac_cv_prog_cc_g=yes
4166 else
4167 CFLAGS=""
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4170
4171 int
4172 main ()
4173 {
4174
4175 ;
4176 return 0;
4177 }
4178 _ACEOF
4179 if ac_fn_c_try_compile "$LINENO"; then :
4180
4181 else
4182 ac_c_werror_flag=$ac_save_c_werror_flag
4183 CFLAGS="-g"
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186
4187 int
4188 main ()
4189 {
4190
4191 ;
4192 return 0;
4193 }
4194 _ACEOF
4195 if ac_fn_c_try_compile "$LINENO"; then :
4196 ac_cv_prog_cc_g=yes
4197 fi
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 fi
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 fi
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 ac_c_werror_flag=$ac_save_c_werror_flag
4204 fi
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4206 $as_echo "$ac_cv_prog_cc_g" >&6; }
4207 if test "$ac_test_CFLAGS" = set; then
4208 CFLAGS=$ac_save_CFLAGS
4209 elif test $ac_cv_prog_cc_g = yes; then
4210 if test "$GCC" = yes; then
4211 CFLAGS="-g -O2"
4212 else
4213 CFLAGS="-g"
4214 fi
4215 else
4216 if test "$GCC" = yes; then
4217 CFLAGS="-O2"
4218 else
4219 CFLAGS=
4220 fi
4221 fi
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4223 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4224 if ${ac_cv_prog_cc_c89+:} false; then :
4225 $as_echo_n "(cached) " >&6
4226 else
4227 ac_cv_prog_cc_c89=no
4228 ac_save_CC=$CC
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4231 #include <stdarg.h>
4232 #include <stdio.h>
4233 struct stat;
4234 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4235 struct buf { int x; };
4236 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4237 static char *e (p, i)
4238 char **p;
4239 int i;
4240 {
4241 return p[i];
4242 }
4243 static char *f (char * (*g) (char **, int), char **p, ...)
4244 {
4245 char *s;
4246 va_list v;
4247 va_start (v,p);
4248 s = g (p, va_arg (v,int));
4249 va_end (v);
4250 return s;
4251 }
4252
4253 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4254 function prototypes and stuff, but not '\xHH' hex character constants.
4255 These don't provoke an error unfortunately, instead are silently treated
4256 as 'x'. The following induces an error, until -std is added to get
4257 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4258 array size at least. It's necessary to write '\x00'==0 to get something
4259 that's true only with -std. */
4260 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4261
4262 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4263 inside strings and character constants. */
4264 #define FOO(x) 'x'
4265 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4266
4267 int test (int i, double x);
4268 struct s1 {int (*f) (int a);};
4269 struct s2 {int (*f) (double a);};
4270 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4271 int argc;
4272 char **argv;
4273 int
4274 main ()
4275 {
4276 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4277 ;
4278 return 0;
4279 }
4280 _ACEOF
4281 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4282 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4283 do
4284 CC="$ac_save_CC $ac_arg"
4285 if ac_fn_c_try_compile "$LINENO"; then :
4286 ac_cv_prog_cc_c89=$ac_arg
4287 fi
4288 rm -f core conftest.err conftest.$ac_objext
4289 test "x$ac_cv_prog_cc_c89" != "xno" && break
4290 done
4291 rm -f conftest.$ac_ext
4292 CC=$ac_save_CC
4293
4294 fi
4295 # AC_CACHE_VAL
4296 case "x$ac_cv_prog_cc_c89" in
4297 x)
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4299 $as_echo "none needed" >&6; } ;;
4300 xno)
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4302 $as_echo "unsupported" >&6; } ;;
4303 *)
4304 CC="$CC $ac_cv_prog_cc_c89"
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4306 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4307 esac
4308 if test "x$ac_cv_prog_cc_c89" != xno; then :
4309
4310 fi
4311
4312 ac_ext=c
4313 ac_cpp='$CPP $CPPFLAGS'
4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317 DEPDIR="${am__leading_dot}deps"
4318
4319 ac_config_commands="$ac_config_commands depfiles"
4320
4321
4322 am_make=${MAKE-make}
4323 cat > confinc << 'END'
4324 am__doit:
4325 @echo this is the am__doit target
4326 .PHONY: am__doit
4327 END
4328 # If we don't find an include directive, just comment out the code.
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4330 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4331 am__include="#"
4332 am__quote=
4333 _am_result=none
4334 # First try GNU make style include.
4335 echo "include confinc" > confmf
4336 # Ignore all kinds of additional output from `make'.
4337 case `$am_make -s -f confmf 2> /dev/null` in #(
4338 *the\ am__doit\ target*)
4339 am__include=include
4340 am__quote=
4341 _am_result=GNU
4342 ;;
4343 esac
4344 # Now try BSD make style include.
4345 if test "$am__include" = "#"; then
4346 echo '.include "confinc"' > confmf
4347 case `$am_make -s -f confmf 2> /dev/null` in #(
4348 *the\ am__doit\ target*)
4349 am__include=.include
4350 am__quote="\""
4351 _am_result=BSD
4352 ;;
4353 esac
4354 fi
4355
4356
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4358 $as_echo "$_am_result" >&6; }
4359 rm -f confinc confmf
4360
4361 # Check whether --enable-dependency-tracking was given.
4362 if test "${enable_dependency_tracking+set}" = set; then :
4363 enableval=$enable_dependency_tracking;
4364 fi
4365
4366 if test "x$enable_dependency_tracking" != xno; then
4367 am_depcomp="$ac_aux_dir/depcomp"
4368 AMDEPBACKSLASH='\'
4369 am__nodep='_no'
4370 fi
4371 if test "x$enable_dependency_tracking" != xno; then
4372 AMDEP_TRUE=
4373 AMDEP_FALSE='#'
4374 else
4375 AMDEP_TRUE='#'
4376 AMDEP_FALSE=
4377 fi
4378
4379
4380
4381 depcc="$CC" am_compiler_list=
4382
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4384 $as_echo_n "checking dependency style of $depcc... " >&6; }
4385 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4386 $as_echo_n "(cached) " >&6
4387 else
4388 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4389 # We make a subdir and do the tests there. Otherwise we can end up
4390 # making bogus files that we don't know about and never remove. For
4391 # instance it was reported that on HP-UX the gcc test will end up
4392 # making a dummy file named `D' -- because `-MD' means `put the output
4393 # in D'.
4394 rm -rf conftest.dir
4395 mkdir conftest.dir
4396 # Copy depcomp to subdir because otherwise we won't find it if we're
4397 # using a relative directory.
4398 cp "$am_depcomp" conftest.dir
4399 cd conftest.dir
4400 # We will build objects and dependencies in a subdirectory because
4401 # it helps to detect inapplicable dependency modes. For instance
4402 # both Tru64's cc and ICC support -MD to output dependencies as a
4403 # side effect of compilation, but ICC will put the dependencies in
4404 # the current directory while Tru64 will put them in the object
4405 # directory.
4406 mkdir sub
4407
4408 am_cv_CC_dependencies_compiler_type=none
4409 if test "$am_compiler_list" = ""; then
4410 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4411 fi
4412 am__universal=false
4413 case " $depcc " in #(
4414 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4415 esac
4416
4417 for depmode in $am_compiler_list; do
4418 # Setup a source with many dependencies, because some compilers
4419 # like to wrap large dependency lists on column 80 (with \), and
4420 # we should not choose a depcomp mode which is confused by this.
4421 #
4422 # We need to recreate these files for each test, as the compiler may
4423 # overwrite some of them when testing with obscure command lines.
4424 # This happens at least with the AIX C compiler.
4425 : > sub/conftest.c
4426 for i in 1 2 3 4 5 6; do
4427 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4428 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4429 # Solaris 8's {/usr,}/bin/sh.
4430 touch sub/conftst$i.h
4431 done
4432 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4433
4434 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4435 # mode. It turns out that the SunPro C++ compiler does not properly
4436 # handle `-M -o', and we need to detect this. Also, some Intel
4437 # versions had trouble with output in subdirs
4438 am__obj=sub/conftest.${OBJEXT-o}
4439 am__minus_obj="-o $am__obj"
4440 case $depmode in
4441 gcc)
4442 # This depmode causes a compiler race in universal mode.
4443 test "$am__universal" = false || continue
4444 ;;
4445 nosideeffect)
4446 # after this tag, mechanisms are not by side-effect, so they'll
4447 # only be used when explicitly requested
4448 if test "x$enable_dependency_tracking" = xyes; then
4449 continue
4450 else
4451 break
4452 fi
4453 ;;
4454 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4455 # This compiler won't grok `-c -o', but also, the minuso test has
4456 # not run yet. These depmodes are late enough in the game, and
4457 # so weak that their functioning should not be impacted.
4458 am__obj=conftest.${OBJEXT-o}
4459 am__minus_obj=
4460 ;;
4461 none) break ;;
4462 esac
4463 if depmode=$depmode \
4464 source=sub/conftest.c object=$am__obj \
4465 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4466 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4467 >/dev/null 2>conftest.err &&
4468 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4469 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4470 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4471 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4472 # icc doesn't choke on unknown options, it will just issue warnings
4473 # or remarks (even with -Werror). So we grep stderr for any message
4474 # that says an option was ignored or not supported.
4475 # When given -MP, icc 7.0 and 7.1 complain thusly:
4476 # icc: Command line warning: ignoring option '-M'; no argument required
4477 # The diagnosis changed in icc 8.0:
4478 # icc: Command line remark: option '-MP' not supported
4479 if (grep 'ignoring option' conftest.err ||
4480 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4481 am_cv_CC_dependencies_compiler_type=$depmode
4482 break
4483 fi
4484 fi
4485 done
4486
4487 cd ..
4488 rm -rf conftest.dir
4489 else
4490 am_cv_CC_dependencies_compiler_type=none
4491 fi
4492
4493 fi
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4495 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4496 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4497
4498 if
4499 test "x$enable_dependency_tracking" != xno \
4500 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4501 am__fastdepCC_TRUE=
4502 am__fastdepCC_FALSE='#'
4503 else
4504 am__fastdepCC_TRUE='#'
4505 am__fastdepCC_FALSE=
4506 fi
4507
4508
4509 ac_ext=c
4510 ac_cpp='$CPP $CPPFLAGS'
4511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4515 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4516 # On Suns, sometimes $CPP names a directory.
4517 if test -n "$CPP" && test -d "$CPP"; then
4518 CPP=
4519 fi
4520 if test -z "$CPP"; then
4521 if ${ac_cv_prog_CPP+:} false; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 # Double quotes because CPP needs to be expanded
4525 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4526 do
4527 ac_preproc_ok=false
4528 for ac_c_preproc_warn_flag in '' yes
4529 do
4530 # Use a header file that comes with gcc, so configuring glibc
4531 # with a fresh cross-compiler works.
4532 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4533 # <limits.h> exists even on freestanding compilers.
4534 # On the NeXT, cc -E runs the code through the compiler's parser,
4535 # not just through cpp. "Syntax error" is here to catch this case.
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4538 #ifdef __STDC__
4539 # include <limits.h>
4540 #else
4541 # include <assert.h>
4542 #endif
4543 Syntax error
4544 _ACEOF
4545 if ac_fn_c_try_cpp "$LINENO"; then :
4546
4547 else
4548 # Broken: fails on valid input.
4549 continue
4550 fi
4551 rm -f conftest.err conftest.i conftest.$ac_ext
4552
4553 # OK, works on sane cases. Now check whether nonexistent headers
4554 # can be detected and how.
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4557 #include <ac_nonexistent.h>
4558 _ACEOF
4559 if ac_fn_c_try_cpp "$LINENO"; then :
4560 # Broken: success on invalid input.
4561 continue
4562 else
4563 # Passes both tests.
4564 ac_preproc_ok=:
4565 break
4566 fi
4567 rm -f conftest.err conftest.i conftest.$ac_ext
4568
4569 done
4570 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4571 rm -f conftest.i conftest.err conftest.$ac_ext
4572 if $ac_preproc_ok; then :
4573 break
4574 fi
4575
4576 done
4577 ac_cv_prog_CPP=$CPP
4578
4579 fi
4580 CPP=$ac_cv_prog_CPP
4581 else
4582 ac_cv_prog_CPP=$CPP
4583 fi
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4585 $as_echo "$CPP" >&6; }
4586 ac_preproc_ok=false
4587 for ac_c_preproc_warn_flag in '' yes
4588 do
4589 # Use a header file that comes with gcc, so configuring glibc
4590 # with a fresh cross-compiler works.
4591 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4592 # <limits.h> exists even on freestanding compilers.
4593 # On the NeXT, cc -E runs the code through the compiler's parser,
4594 # not just through cpp. "Syntax error" is here to catch this case.
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4597 #ifdef __STDC__
4598 # include <limits.h>
4599 #else
4600 # include <assert.h>
4601 #endif
4602 Syntax error
4603 _ACEOF
4604 if ac_fn_c_try_cpp "$LINENO"; then :
4605
4606 else
4607 # Broken: fails on valid input.
4608 continue
4609 fi
4610 rm -f conftest.err conftest.i conftest.$ac_ext
4611
4612 # OK, works on sane cases. Now check whether nonexistent headers
4613 # can be detected and how.
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4616 #include <ac_nonexistent.h>
4617 _ACEOF
4618 if ac_fn_c_try_cpp "$LINENO"; then :
4619 # Broken: success on invalid input.
4620 continue
4621 else
4622 # Passes both tests.
4623 ac_preproc_ok=:
4624 break
4625 fi
4626 rm -f conftest.err conftest.i conftest.$ac_ext
4627
4628 done
4629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4630 rm -f conftest.i conftest.err conftest.$ac_ext
4631 if $ac_preproc_ok; then :
4632
4633 else
4634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4636 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4637 See \`config.log' for more details" "$LINENO" 5; }
4638 fi
4639
4640 ac_ext=c
4641 ac_cpp='$CPP $CPPFLAGS'
4642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4645
4646 ac_ext=c
4647 ac_cpp='$CPP $CPPFLAGS'
4648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4651
4652
4653
4654 # Check whether --enable-decimal-float was given.
4655 if test "${enable_decimal_float+set}" = set; then :
4656 enableval=$enable_decimal_float; case $enableval in
4657 yes)
4658 $as_echo "#define MPFR_WANT_DECIMAL_FLOATS 1" >>confdefs.h
4659
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler knows _Decimal64" >&5
4661 $as_echo_n "checking if compiler knows _Decimal64... " >&6; }
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4664 _Decimal64 x;
4665 int
4666 main ()
4667 {
4668
4669 ;
4670 return 0;
4671 }
4672 _ACEOF
4673 if ac_fn_c_try_compile "$LINENO"; then :
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4675 $as_echo "yes" >&6; }
4676 if test "$use_gmp_build" != yes ; then
4677 as_fn_error $? "decimal float support requires --with-gmp-build" "$LINENO" 5
4678 fi
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _GMP_IEEE_FLOATS is defined" >&5
4680 $as_echo_n "checking if _GMP_IEEE_FLOATS is defined... " >&6; }
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4683
4684 #include "gmp.h"
4685 #include "gmp-impl.h"
4686 #ifndef _GMP_IEEE_FLOATS
4687 #error "_GMP_IEEE_FLOATS is not defined"
4688 #endif
4689 _ACEOF
4690 if ac_fn_c_try_compile "$LINENO"; then :
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4692 $as_echo "yes" >&6; }
4693 else
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 $as_echo "no" >&6; }
4696 as_fn_error $? "decimal float support requires _GMP_IEEE_FLOATS" "$LINENO" 5
4697 fi
4698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4699
4700 else
4701 as_fn_error $? "Compiler doesn't know _Decimal64; try GCC >= 4.2, configured with --enable-decimal-float
4702 " "$LINENO" 5
4703 fi
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking decimal float format" >&5
4706 $as_echo_n "checking decimal float format... " >&6; }
4707 if test "$cross_compiling" = yes; then :
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming DPD" >&5
4709 $as_echo "assuming DPD" >&6; }
4710 $as_echo "#define DPD_FORMAT 1" >>confdefs.h
4711
4712 else
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4715
4716 #include <stdlib.h>
4717
4718 int
4719 main ()
4720 {
4721
4722 union { double d; _Decimal64 d64; } y;
4723 y.d64 = 1234567890123456.0dd;
4724 return y.d == 0.14894469406741037E-123 ? 0 :
4725 y.d == 0.59075095508629822E-68 ? 1 : 2;
4726
4727 ;
4728 return 0;
4729 }
4730 _ACEOF
4731 if ac_fn_c_try_run "$LINENO"; then :
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DPD" >&5
4733 $as_echo "DPD" >&6; }
4734 $as_echo "#define DPD_FORMAT 1" >>confdefs.h
4735
4736 else
4737 if test "$?" != 1 ; then
4738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4740 as_fn_error $? "neither DPD nor BID
4741 See \`config.log' for more details" "$LINENO" 5; }
4742 fi
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: BID" >&5
4744 $as_echo "BID" >&6; }
4745 fi
4746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4747 conftest.$ac_objext conftest.beam conftest.$ac_ext
4748 fi
4749
4750 ;;
4751 no) ;;
4752 *) as_fn_error $? "bad value for --enable-decimal-float: yes or no" "$LINENO" 5 ;;
4753 esac
4754 fi
4755
4756
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICC" >&5
4758 $as_echo_n "checking for ICC... " >&6; }
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761
4762 #if !defined(__ICC)
4763 # error "ICC Not Found"
4764 error
4765 #endif
4766
4767 int
4768 main ()
4769 {
4770
4771 ;
4772 return 0;
4773 }
4774 _ACEOF
4775 if ac_fn_c_try_compile "$LINENO"; then :
4776
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4778 $as_echo "yes" >&6; }
4779 CFLAGS="-fp_port -mp -wd1572 -wd265 -wd186 -wd239 $CFLAGS"
4780
4781 else
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4784 fi
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786
4787 if test "$test_CFLAGS" != set && test -n "$GCC"; then
4788 CFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith $CFLAGS"
4789 fi
4790
4791 if test "x$CC" != xcc; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4793 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4794 else
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4796 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4797 fi
4798 set dummy $CC; ac_cc=`$as_echo "$2" |
4799 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4800 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4805
4806 int
4807 main ()
4808 {
4809
4810 ;
4811 return 0;
4812 }
4813 _ACEOF
4814 # Make sure it works both with $CC and with simple cc.
4815 # We do the test twice because some compilers refuse to overwrite an
4816 # existing .o file with -o, though they will create one.
4817 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4818 rm -f conftest2.*
4819 if { { case "(($ac_try" in
4820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821 *) ac_try_echo=$ac_try;;
4822 esac
4823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4824 $as_echo "$ac_try_echo"; } >&5
4825 (eval "$ac_try") 2>&5
4826 ac_status=$?
4827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4828 test $ac_status = 0; } &&
4829 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831 *) ac_try_echo=$ac_try;;
4832 esac
4833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4834 $as_echo "$ac_try_echo"; } >&5
4835 (eval "$ac_try") 2>&5
4836 ac_status=$?
4837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4838 test $ac_status = 0; };
4839 then
4840 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4841 if test "x$CC" != xcc; then
4842 # Test first that cc exists at all.
4843 if { ac_try='cc -c conftest.$ac_ext >&5'
4844 { { case "(($ac_try" in
4845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4846 *) ac_try_echo=$ac_try;;
4847 esac
4848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4849 $as_echo "$ac_try_echo"; } >&5
4850 (eval "$ac_try") 2>&5
4851 ac_status=$?
4852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4853 test $ac_status = 0; }; }; then
4854 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4855 rm -f conftest2.*
4856 if { { case "(($ac_try" in
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4859 esac
4860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4861 $as_echo "$ac_try_echo"; } >&5
4862 (eval "$ac_try") 2>&5
4863 ac_status=$?
4864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4865 test $ac_status = 0; } &&
4866 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4869 esac
4870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4871 $as_echo "$ac_try_echo"; } >&5
4872 (eval "$ac_try") 2>&5
4873 ac_status=$?
4874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4875 test $ac_status = 0; };
4876 then
4877 # cc works too.
4878 :
4879 else
4880 # cc exists but doesn't like -o.
4881 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4882 fi
4883 fi
4884 fi
4885 else
4886 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4887 fi
4888 rm -f core conftest*
4889
4890 fi
4891 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4893 $as_echo "yes" >&6; }
4894 else
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4897
4898 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4899
4900 fi
4901
4902 # FIXME: we rely on the cache variable name because
4903 # there is no other way.
4904 set dummy $CC
4905 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4906 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4907 if test "$am_t" != yes; then
4908 # Losing compiler, so override with the script.
4909 # FIXME: It is wrong to rewrite CC.
4910 # But if we don't then we get into trouble of one sort or another.
4911 # A longer-term fix would be to have automake use am__CC in this case,
4912 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4913 CC="$am_aux_dir/compile $CC"
4914 fi
4915
4916
4917
4918 case $host in
4919 *-apple-darwin*)
4920 case "$LD $LDFLAGS" in
4921 *-Wl,-search_paths_first*) ;;
4922 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -Wl,-search_paths_first" >&5
4923 $as_echo_n "checking if the compiler understands -Wl,-search_paths_first... " >&6; }
4924 saved_LDFLAGS="$LDFLAGS"
4925 LDFLAGS="-Wl,-search_paths_first $LDFLAGS"
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4928
4929 int
4930 main ()
4931 {
4932
4933 ;
4934 return 0;
4935 }
4936 _ACEOF
4937 if ac_fn_c_try_link "$LINENO"; then :
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4939 $as_echo "yes" >&6; }
4940 else
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4943 LDFLAGS="$saved_LDFLAGS"
4944 fi
4945 rm -f core conftest.err conftest.$ac_objext \
4946 conftest$ac_exeext conftest.$ac_ext
4947 ;;
4948 esac
4949 ;;
4950 esac
4951
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4953 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4954 if ${ac_cv_c_const+:} false; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4959
4960 int
4961 main ()
4962 {
4963
4964 #ifndef __cplusplus
4965 /* Ultrix mips cc rejects this sort of thing. */
4966 typedef int charset[2];
4967 const charset cs = { 0, 0 };
4968 /* SunOS 4.1.1 cc rejects this. */
4969 char const *const *pcpcc;
4970 char **ppc;
4971 /* NEC SVR4.0.2 mips cc rejects this. */
4972 struct point {int x, y;};
4973 static struct point const zero = {0,0};
4974 /* AIX XL C 1.02.0.0 rejects this.
4975 It does not let you subtract one const X* pointer from another in
4976 an arm of an if-expression whose if-part is not a constant
4977 expression */
4978 const char *g = "string";
4979 pcpcc = &g + (g ? g-g : 0);
4980 /* HPUX 7.0 cc rejects these. */
4981 ++pcpcc;
4982 ppc = (char**) pcpcc;
4983 pcpcc = (char const *const *) ppc;
4984 { /* SCO 3.2v4 cc rejects this sort of thing. */
4985 char tx;
4986 char *t = &tx;
4987 char const *s = 0 ? (char *) 0 : (char const *) 0;
4988
4989 *t++ = 0;
4990 if (s) return 0;
4991 }
4992 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4993 int x[] = {25, 17};
4994 const int *foo = &x[0];
4995 ++foo;
4996 }
4997 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4998 typedef const int *iptr;
4999 iptr p = 0;
5000 ++p;
5001 }
5002 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5003 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5004 struct s { int j; const int *ap[3]; } bx;
5005 struct s *b = &bx; b->j = 5;
5006 }
5007 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5008 const int foo = 10;
5009 if (!foo) return 0;
5010 }
5011 return !cs[0] && !zero.x;
5012 #endif
5013
5014 ;
5015 return 0;
5016 }
5017 _ACEOF
5018 if ac_fn_c_try_compile "$LINENO"; then :
5019 ac_cv_c_const=yes
5020 else
5021 ac_cv_c_const=no
5022 fi
5023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5024 fi
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5026 $as_echo "$ac_cv_c_const" >&6; }
5027 if test $ac_cv_c_const = no; then
5028
5029 $as_echo "#define const /**/" >>confdefs.h
5030
5031 fi
5032
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
5034 $as_echo_n "checking for working volatile... " >&6; }
5035 if ${ac_cv_c_volatile+:} false; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5040
5041 int
5042 main ()
5043 {
5044
5045 volatile int x;
5046 int * volatile y = (int *) 0;
5047 return !x && !y;
5048 ;
5049 return 0;
5050 }
5051 _ACEOF
5052 if ac_fn_c_try_compile "$LINENO"; then :
5053 ac_cv_c_volatile=yes
5054 else
5055 ac_cv_c_volatile=no
5056 fi
5057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058 fi
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
5060 $as_echo "$ac_cv_c_volatile" >&6; }
5061 if test $ac_cv_c_volatile = no; then
5062
5063 $as_echo "#define volatile /**/" >>confdefs.h
5064
5065 fi
5066
5067
5068
5069 MPFR_LIBM=''
5070
5071 case $host in
5072 *-*-beos* | *-*-cygwin* | *-*-pw32*)
5073 # According to libtool AC CHECK LIBM, these systems don't have libm
5074 ;;
5075 *-*-solaris*)
5076 # On Solaris the math functions new in C99 are in -lm9x.
5077 # FIXME: Do we need -lm9x as well as -lm, or just instead of?
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm9x" >&5
5079 $as_echo_n "checking for main in -lm9x... " >&6; }
5080 if ${ac_cv_lib_m9x_main+:} false; then :
5081 $as_echo_n "(cached) " >&6
5082 else
5083 ac_check_lib_save_LIBS=$LIBS
5084 LIBS="-lm9x $LIBS"
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h. */
5087
5088
5089 int
5090 main ()
5091 {
5092 return main ();
5093 ;
5094 return 0;
5095 }
5096 _ACEOF
5097 if ac_fn_c_try_link "$LINENO"; then :
5098 ac_cv_lib_m9x_main=yes
5099 else
5100 ac_cv_lib_m9x_main=no
5101 fi
5102 rm -f core conftest.err conftest.$ac_objext \
5103 conftest$ac_exeext conftest.$ac_ext
5104 LIBS=$ac_check_lib_save_LIBS
5105 fi
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m9x_main" >&5
5107 $as_echo "$ac_cv_lib_m9x_main" >&6; }
5108 if test "x$ac_cv_lib_m9x_main" = xyes; then :
5109 MPFR_LIBM="-lm9x"
5110 fi
5111
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5113 $as_echo_n "checking for main in -lm... " >&6; }
5114 if ${ac_cv_lib_m_main+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 ac_check_lib_save_LIBS=$LIBS
5118 LIBS="-lm $LIBS"
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5121
5122
5123 int
5124 main ()
5125 {
5126 return main ();
5127 ;
5128 return 0;
5129 }
5130 _ACEOF
5131 if ac_fn_c_try_link "$LINENO"; then :
5132 ac_cv_lib_m_main=yes
5133 else
5134 ac_cv_lib_m_main=no
5135 fi
5136 rm -f core conftest.err conftest.$ac_objext \
5137 conftest$ac_exeext conftest.$ac_ext
5138 LIBS=$ac_check_lib_save_LIBS
5139 fi
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5141 $as_echo "$ac_cv_lib_m_main" >&6; }
5142 if test "x$ac_cv_lib_m_main" = xyes; then :
5143 MPFR_LIBM="$MPFR_LIBM -lm"
5144 fi
5145
5146 ;;
5147 *-ncr-sysv4.3*)
5148 # FIXME: What does -lmw mean? Libtool AC CHECK LIBM does it this way.
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
5150 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
5151 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 ac_check_lib_save_LIBS=$LIBS
5155 LIBS="-lmw $LIBS"
5156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157 /* end confdefs.h. */
5158
5159 /* Override any GCC internal prototype to avoid an error.
5160 Use char because int might match the return type of a GCC
5161 builtin and then its argument prototype would still apply. */
5162 #ifdef __cplusplus
5163 extern "C"
5164 #endif
5165 char _mwvalidcheckl ();
5166 int
5167 main ()
5168 {
5169 return _mwvalidcheckl ();
5170 ;
5171 return 0;
5172 }
5173 _ACEOF
5174 if ac_fn_c_try_link "$LINENO"; then :
5175 ac_cv_lib_mw__mwvalidcheckl=yes
5176 else
5177 ac_cv_lib_mw__mwvalidcheckl=no
5178 fi
5179 rm -f core conftest.err conftest.$ac_objext \
5180 conftest$ac_exeext conftest.$ac_ext
5181 LIBS=$ac_check_lib_save_LIBS
5182 fi
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
5184 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
5185 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
5186 MPFR_LIBM="-lmw"
5187 fi
5188
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5190 $as_echo_n "checking for main in -lm... " >&6; }
5191 if ${ac_cv_lib_m_main+:} false; then :
5192 $as_echo_n "(cached) " >&6
5193 else
5194 ac_check_lib_save_LIBS=$LIBS
5195 LIBS="-lm $LIBS"
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198
5199
5200 int
5201 main ()
5202 {
5203 return main ();
5204 ;
5205 return 0;
5206 }
5207 _ACEOF
5208 if ac_fn_c_try_link "$LINENO"; then :
5209 ac_cv_lib_m_main=yes
5210 else
5211 ac_cv_lib_m_main=no
5212 fi
5213 rm -f core conftest.err conftest.$ac_objext \
5214 conftest$ac_exeext conftest.$ac_ext
5215 LIBS=$ac_check_lib_save_LIBS
5216 fi
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5218 $as_echo "$ac_cv_lib_m_main" >&6; }
5219 if test "x$ac_cv_lib_m_main" = xyes; then :
5220 MPFR_LIBM="$MPFR_LIBM -lm"
5221 fi
5222
5223 ;;
5224 *)
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5226 $as_echo_n "checking for main in -lm... " >&6; }
5227 if ${ac_cv_lib_m_main+:} false; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 ac_check_lib_save_LIBS=$LIBS
5231 LIBS="-lm $LIBS"
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h. */
5234
5235
5236 int
5237 main ()
5238 {
5239 return main ();
5240 ;
5241 return 0;
5242 }
5243 _ACEOF
5244 if ac_fn_c_try_link "$LINENO"; then :
5245 ac_cv_lib_m_main=yes
5246 else
5247 ac_cv_lib_m_main=no
5248 fi
5249 rm -f core conftest.err conftest.$ac_objext \
5250 conftest$ac_exeext conftest.$ac_ext
5251 LIBS=$ac_check_lib_save_LIBS
5252 fi
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5254 $as_echo "$ac_cv_lib_m_main" >&6; }
5255 if test "x$ac_cv_lib_m_main" = xyes; then :
5256 MPFR_LIBM="-lm"
5257 fi
5258
5259 ;;
5260 esac
5261
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5263 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5264 if ${ac_cv_header_time+:} false; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5269 #include <sys/types.h>
5270 #include <sys/time.h>
5271 #include <time.h>
5272
5273 int
5274 main ()
5275 {
5276 if ((struct tm *) 0)
5277 return 0;
5278 ;
5279 return 0;
5280 }
5281 _ACEOF
5282 if ac_fn_c_try_compile "$LINENO"; then :
5283 ac_cv_header_time=yes
5284 else
5285 ac_cv_header_time=no
5286 fi
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 fi
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5290 $as_echo "$ac_cv_header_time" >&6; }
5291 if test $ac_cv_header_time = yes; then
5292
5293 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5294
5295 fi
5296
5297
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5299 $as_echo_n "checking for ANSI C header files... " >&6; }
5300 if ${ac_cv_header_stdc+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5305 #include <stdlib.h>
5306 #include <stdarg.h>
5307 #include <string.h>
5308 #include <float.h>
5309
5310 int
5311 main ()
5312 {
5313
5314 ;
5315 return 0;
5316 }
5317 _ACEOF
5318 if ac_fn_c_try_compile "$LINENO"; then :
5319 ac_cv_header_stdc=yes
5320 else
5321 ac_cv_header_stdc=no
5322 fi
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324
5325 if test $ac_cv_header_stdc = yes; then
5326 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5329 #include <string.h>
5330
5331 _ACEOF
5332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5333 $EGREP "memchr" >/dev/null 2>&1; then :
5334
5335 else
5336 ac_cv_header_stdc=no
5337 fi
5338 rm -f conftest*
5339
5340 fi
5341
5342 if test $ac_cv_header_stdc = yes; then
5343 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5346 #include <stdlib.h>
5347
5348 _ACEOF
5349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5350 $EGREP "free" >/dev/null 2>&1; then :
5351
5352 else
5353 ac_cv_header_stdc=no
5354 fi
5355 rm -f conftest*
5356
5357 fi
5358
5359 if test $ac_cv_header_stdc = yes; then
5360 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5361 if test "$cross_compiling" = yes; then :
5362 :
5363 else
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5366 #include <ctype.h>
5367 #include <stdlib.h>
5368 #if ((' ' & 0x0FF) == 0x020)
5369 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5370 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5371 #else
5372 # define ISLOWER(c) \
5373 (('a' <= (c) && (c) <= 'i') \
5374 || ('j' <= (c) && (c) <= 'r') \
5375 || ('s' <= (c) && (c) <= 'z'))
5376 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5377 #endif
5378
5379 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5380 int
5381 main ()
5382 {
5383 int i;
5384 for (i = 0; i < 256; i++)
5385 if (XOR (islower (i), ISLOWER (i))
5386 || toupper (i) != TOUPPER (i))
5387 return 2;
5388 return 0;
5389 }
5390 _ACEOF
5391 if ac_fn_c_try_run "$LINENO"; then :
5392
5393 else
5394 ac_cv_header_stdc=no
5395 fi
5396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5397 conftest.$ac_objext conftest.beam conftest.$ac_ext
5398 fi
5399
5400 fi
5401 fi
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5403 $as_echo "$ac_cv_header_stdc" >&6; }
5404 if test $ac_cv_header_stdc = yes; then
5405
5406 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5407
5408 fi
5409
5410 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5411 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5412 inttypes.h stdint.h unistd.h
5413 do :
5414 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5415 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5416 "
5417 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5418 cat >>confdefs.h <<_ACEOF
5419 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5420 _ACEOF
5421
5422 fi
5423
5424 done
5425
5426
5427 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5428 if test "x$ac_cv_type_size_t" = xyes; then :
5429
5430 else
5431
5432 cat >>confdefs.h <<_ACEOF
5433 #define size_t unsigned int
5434 _ACEOF
5435
5436 fi
5437
5438
5439
5440
5441
5442
5443
5444 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
5445 if test "x$ac_cv_header_limits_h" = xyes; then :
5446
5447 else
5448 as_fn_error $? "limits.h not found" "$LINENO" 5
5449 fi
5450
5451
5452 ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
5453 if test "x$ac_cv_header_float_h" = xyes; then :
5454
5455 else
5456 as_fn_error $? "float.h not found" "$LINENO" 5
5457 fi
5458
5459
5460 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5461 if test "x$ac_cv_header_string_h" = xyes; then :
5462
5463 else
5464 as_fn_error $? "string.h not found" "$LINENO" 5
5465 fi
5466
5467
5468
5469 for ac_header in locale.h
5470 do :
5471 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
5472 if test "x$ac_cv_header_locale_h" = xyes; then :
5473 cat >>confdefs.h <<_ACEOF
5474 #define HAVE_LOCALE_H 1
5475 _ACEOF
5476
5477 fi
5478
5479 done
5480
5481
5482 for ac_header in wchar.h
5483 do :
5484 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
5485 if test "x$ac_cv_header_wchar_h" = xyes; then :
5486 cat >>confdefs.h <<_ACEOF
5487 #define HAVE_WCHAR_H 1
5488 _ACEOF
5489
5490 fi
5491
5492 done
5493
5494
5495 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
5496 if test "x$ac_cv_header_stdarg_h" = xyes; then :
5497
5498 $as_echo "#define HAVE_STDARG 1" >>confdefs.h
5499
5500 else
5501 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
5502 if test "x$ac_cv_header_varargs_h" = xyes; then :
5503
5504 else
5505 as_fn_error $? "stdarg.h or varargs.h not found" "$LINENO" 5
5506 fi
5507
5508
5509 fi
5510
5511
5512
5513 for ac_header in sys/time.h sys/fpu.h
5514 do :
5515 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5516 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5517 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5518 cat >>confdefs.h <<_ACEOF
5519 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5520 _ACEOF
5521
5522 fi
5523
5524 done
5525
5526
5527 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5528 # for constant arguments. Useless!
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5530 $as_echo_n "checking for working alloca.h... " >&6; }
5531 if ${ac_cv_working_alloca_h+:} false; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5536 #include <alloca.h>
5537 int
5538 main ()
5539 {
5540 char *p = (char *) alloca (2 * sizeof (int));
5541 if (p) return 0;
5542 ;
5543 return 0;
5544 }
5545 _ACEOF
5546 if ac_fn_c_try_link "$LINENO"; then :
5547 ac_cv_working_alloca_h=yes
5548 else
5549 ac_cv_working_alloca_h=no
5550 fi
5551 rm -f core conftest.err conftest.$ac_objext \
5552 conftest$ac_exeext conftest.$ac_ext
5553 fi
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5555 $as_echo "$ac_cv_working_alloca_h" >&6; }
5556 if test $ac_cv_working_alloca_h = yes; then
5557
5558 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5559
5560 fi
5561
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5563 $as_echo_n "checking for alloca... " >&6; }
5564 if ${ac_cv_func_alloca_works+:} false; then :
5565 $as_echo_n "(cached) " >&6
5566 else
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 #ifdef __GNUC__
5570 # define alloca __builtin_alloca
5571 #else
5572 # ifdef _MSC_VER
5573 # include <malloc.h>
5574 # define alloca _alloca
5575 # else
5576 # ifdef HAVE_ALLOCA_H
5577 # include <alloca.h>
5578 # else
5579 # ifdef _AIX
5580 #pragma alloca
5581 # else
5582 # ifndef alloca /* predefined by HP cc +Olibcalls */
5583 void *alloca (size_t);
5584 # endif
5585 # endif
5586 # endif
5587 # endif
5588 #endif
5589
5590 int
5591 main ()
5592 {
5593 char *p = (char *) alloca (1);
5594 if (p) return 0;
5595 ;
5596 return 0;
5597 }
5598 _ACEOF
5599 if ac_fn_c_try_link "$LINENO"; then :
5600 ac_cv_func_alloca_works=yes
5601 else
5602 ac_cv_func_alloca_works=no
5603 fi
5604 rm -f core conftest.err conftest.$ac_objext \
5605 conftest$ac_exeext conftest.$ac_ext
5606 fi
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5608 $as_echo "$ac_cv_func_alloca_works" >&6; }
5609
5610 if test $ac_cv_func_alloca_works = yes; then
5611
5612 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5613
5614 else
5615 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5616 # that cause trouble. Some versions do not even contain alloca or
5617 # contain a buggy version. If you still want to use their alloca,
5618 # use ar to extract alloca.o from them instead of compiling alloca.c.
5619
5620 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5621
5622 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5623
5624
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5626 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5627 if ${ac_cv_os_cray+:} false; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5632 #if defined CRAY && ! defined CRAY2
5633 webecray
5634 #else
5635 wenotbecray
5636 #endif
5637
5638 _ACEOF
5639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5640 $EGREP "webecray" >/dev/null 2>&1; then :
5641 ac_cv_os_cray=yes
5642 else
5643 ac_cv_os_cray=no
5644 fi
5645 rm -f conftest*
5646
5647 fi
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5649 $as_echo "$ac_cv_os_cray" >&6; }
5650 if test $ac_cv_os_cray = yes; then
5651 for ac_func in _getb67 GETB67 getb67; do
5652 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5653 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5654 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5655
5656 cat >>confdefs.h <<_ACEOF
5657 #define CRAY_STACKSEG_END $ac_func
5658 _ACEOF
5659
5660 break
5661 fi
5662
5663 done
5664 fi
5665
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5667 $as_echo_n "checking stack direction for C alloca... " >&6; }
5668 if ${ac_cv_c_stack_direction+:} false; then :
5669 $as_echo_n "(cached) " >&6
5670 else
5671 if test "$cross_compiling" = yes; then :
5672 ac_cv_c_stack_direction=0
5673 else
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5676 $ac_includes_default
5677 int
5678 find_stack_direction (int *addr, int depth)
5679 {
5680 int dir, dummy = 0;
5681 if (! addr)
5682 addr = &dummy;
5683 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5684 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5685 return dir + dummy;
5686 }
5687
5688 int
5689 main (int argc, char **argv)
5690 {
5691 return find_stack_direction (0, argc + !argv + 20) < 0;
5692 }
5693 _ACEOF
5694 if ac_fn_c_try_run "$LINENO"; then :
5695 ac_cv_c_stack_direction=1
5696 else
5697 ac_cv_c_stack_direction=-1
5698 fi
5699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5700 conftest.$ac_objext conftest.beam conftest.$ac_ext
5701 fi
5702
5703 fi
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5705 $as_echo "$ac_cv_c_stack_direction" >&6; }
5706 cat >>confdefs.h <<_ACEOF
5707 #define STACK_DIRECTION $ac_cv_c_stack_direction
5708 _ACEOF
5709
5710
5711 fi
5712
5713
5714
5715 for ac_header in stdint.h
5716 do :
5717 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5718 if test "x$ac_cv_header_stdint_h" = xyes; then :
5719 cat >>confdefs.h <<_ACEOF
5720 #define HAVE_STDINT_H 1
5721 _ACEOF
5722
5723 fi
5724
5725 done
5726
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
5728 $as_echo_n "checking for SIZE_MAX... " >&6; }
5729 if ${gl_cv_size_max+:} false; then :
5730 $as_echo_n "(cached) " >&6
5731 else
5732
5733 gl_cv_size_max=
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5736
5737 #include <limits.h>
5738 #ifdef HAVE_INTTYPES_H
5739 # include <inttypes.h>
5740 #endif
5741 #if HAVE_STDINT_H
5742 # include <stdint.h>
5743 #endif
5744 #ifdef SIZE_MAX
5745 Found it
5746 #endif
5747
5748 _ACEOF
5749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5750 $EGREP "Found it" >/dev/null 2>&1; then :
5751 gl_cv_size_max=yes
5752 fi
5753 rm -f conftest*
5754
5755 if test -z "$gl_cv_size_max"; then
5756 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
5757 #include <limits.h>"; then :
5758
5759 else
5760 size_t_bits_minus_1=
5761 fi
5762
5763 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
5764
5765 else
5766 fits_in_uint=
5767 fi
5768
5769 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
5770 if test $fits_in_uint = 1; then
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773 #include <stddef.h>
5774 extern size_t foo;
5775 extern unsigned long foo;
5776
5777 int
5778 main ()
5779 {
5780
5781 ;
5782 return 0;
5783 }
5784 _ACEOF
5785 if ac_fn_c_try_compile "$LINENO"; then :
5786 fits_in_uint=0
5787 fi
5788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789 fi
5790 if test $fits_in_uint = 1; then
5791 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
5792 else
5793 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
5794 fi
5795 else
5796 gl_cv_size_max='((size_t)~(size_t)0)'
5797 fi
5798 fi
5799
5800 fi
5801
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
5803 $as_echo "$gl_cv_size_max" >&6; }
5804 if test "$gl_cv_size_max" != yes; then
5805
5806 cat >>confdefs.h <<_ACEOF
5807 #define SIZE_MAX $gl_cv_size_max
5808 _ACEOF
5809
5810 fi
5811
5812
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to copy va_list" >&5
5814 $as_echo_n "checking how to copy va_list... " >&6; }
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h. */
5817
5818 #include <stdarg.h>
5819
5820 int
5821 main ()
5822 {
5823
5824 va_list ap1, ap2;
5825 va_copy(ap1, ap2);
5826
5827 ;
5828 return 0;
5829 }
5830 _ACEOF
5831 if ac_fn_c_try_link "$LINENO"; then :
5832
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: va_copy" >&5
5834 $as_echo "va_copy" >&6; }
5835 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
5836
5837
5838 else
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5841
5842 #include <stdarg.h>
5843
5844 int
5845 main ()
5846 {
5847
5848 va_list ap1, ap2;
5849 __va_copy(ap1, ap2);
5850
5851 ;
5852 return 0;
5853 }
5854 _ACEOF
5855 if ac_fn_c_try_link "$LINENO"; then :
5856 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __va_copy" >&5
5858 $as_echo "__va_copy" >&6; }
5859 else
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: memcpy" >&5
5861 $as_echo "memcpy" >&6; }
5862 fi
5863 rm -f core conftest.err conftest.$ac_objext \
5864 conftest$ac_exeext conftest.$ac_ext
5865 fi
5866 rm -f core conftest.err conftest.$ac_objext \
5867 conftest$ac_exeext conftest.$ac_ext
5868
5869 for ac_func in memmove memset setlocale strtol gettimeofday
5870 do :
5871 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5872 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5873 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5874 cat >>confdefs.h <<_ACEOF
5875 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5876 _ACEOF
5877
5878 fi
5879 done
5880
5881
5882 case $host in
5883 alpha*-*-*)
5884 saved_CFLAGS="$CFLAGS"
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IEEE-754 switches" >&5
5886 $as_echo_n "checking for IEEE-754 switches... " >&6; }
5887 if ${mpfr_cv_ieee_switches+:} false; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890
5891 if test -n "$GCC"; then
5892 mpfr_cv_ieee_switches="-mfp-rounding-mode=d -mieee-with-inexact"
5893 else
5894 mpfr_cv_ieee_switches="-fprm d -ieee_with_inexact"
5895 fi
5896 CFLAGS="$CFLAGS $mpfr_cv_ieee_switches"
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5899
5900 int
5901 main ()
5902 {
5903
5904 ;
5905 return 0;
5906 }
5907 _ACEOF
5908 if ac_fn_c_try_compile "$LINENO"; then :
5909
5910 else
5911 mpfr_cv_ieee_switches="none"
5912 fi
5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914
5915 fi
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_ieee_switches" >&5
5917 $as_echo "$mpfr_cv_ieee_switches" >&6; }
5918 if test "$mpfr_cv_ieee_switches" = "none"; then
5919 CFLAGS="$saved_CFLAGS"
5920 else
5921 CFLAGS="$saved_CFLAGS $mpfr_cv_ieee_switches"
5922 fi
5923 esac
5924
5925 ac_fn_c_check_type "$LINENO" "long long int" "ac_cv_type_long_long_int" "$ac_includes_default"
5926 if test "x$ac_cv_type_long_long_int" = xyes; then :
5927
5928 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
5929
5930 fi
5931
5932
5933 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5934 if test "x$ac_cv_type_intmax_t" = xyes; then :
5935
5936 cat >>confdefs.h <<_ACEOF
5937 #define HAVE_INTMAX_T 1
5938 _ACEOF
5939
5940
5941 fi
5942
5943 if test "$ac_cv_type_intmax_t" = yes; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working INTMAX_MAX" >&5
5945 $as_echo_n "checking for working INTMAX_MAX... " >&6; }
5946 if ${mpfr_cv_have_intmax_max+:} false; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949
5950 saved_CPPFLAGS="$CPPFLAGS"
5951 CPPFLAGS="$CPPFLAGS -I$srcdir/src"
5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5954 #include "mpfr-intmax.h"
5955 int
5956 main ()
5957 {
5958 intmax_t x = INTMAX_MAX;
5959 ;
5960 return 0;
5961 }
5962 _ACEOF
5963 if ac_fn_c_try_compile "$LINENO"; then :
5964 mpfr_cv_have_intmax_max=yes
5965 else
5966 mpfr_cv_have_intmax_max=no
5967 fi
5968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5969 CPPFLAGS="$saved_CPPFLAGS"
5970
5971 fi
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_intmax_max" >&5
5973 $as_echo "$mpfr_cv_have_intmax_max" >&6; }
5974 if test "$mpfr_cv_have_intmax_max" = "yes"; then
5975
5976 $as_echo "#define MPFR_HAVE_INTMAX_MAX 1" >>confdefs.h
5977
5978 fi
5979 fi
5980
5981 ac_fn_c_check_type "$LINENO" "union fpc_csr" "ac_cv_type_union_fpc_csr" "
5982 #if HAVE_SYS_FPU_H
5983 # include <sys/fpu.h>
5984 #endif
5985
5986 "
5987 if test "x$ac_cv_type_union_fpc_csr" = xyes; then :
5988
5989 $as_echo "#define HAVE_FPC_CSR 1" >>confdefs.h
5990
5991 fi
5992
5993
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround" >&5
5995 $as_echo_n "checking for fesetround... " >&6; }
5996 if ${mpfr_cv_have_fesetround+:} false; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999
6000 saved_LIBS="$LIBS"
6001 LIBS="$LIBS $MPFR_LIBM"
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6004 #include <fenv.h>
6005 int
6006 main ()
6007 {
6008 fesetround(FE_TONEAREST);
6009 ;
6010 return 0;
6011 }
6012 _ACEOF
6013 if ac_fn_c_try_link "$LINENO"; then :
6014 mpfr_cv_have_fesetround=yes
6015 else
6016 mpfr_cv_have_fesetround=no
6017 fi
6018 rm -f core conftest.err conftest.$ac_objext \
6019 conftest$ac_exeext conftest.$ac_ext
6020 LIBS="$saved_LIBS"
6021
6022 fi
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_fesetround" >&5
6024 $as_echo "$mpfr_cv_have_fesetround" >&6; }
6025 if test "$mpfr_cv_have_fesetround" = "yes"; then
6026
6027 $as_echo "#define MPFR_HAVE_FESETROUND 1" >>confdefs.h
6028
6029 fi
6030
6031 if test -n "$GCC"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc float-conversion bug" >&5
6033 $as_echo_n "checking for gcc float-conversion bug... " >&6; }
6034 if ${mpfr_cv_gcc_floatconv_bug+:} false; then :
6035 $as_echo_n "(cached) " >&6
6036 else
6037
6038 saved_LIBS="$LIBS"
6039 LIBS="$LIBS $MPFR_LIBM"
6040 if test "$cross_compiling" = yes; then :
6041 mpfr_cv_gcc_floatconv_bug="cannot test, use -ffloat-store"
6042 else
6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6045
6046 #include <float.h>
6047 #ifdef MPFR_HAVE_FESETROUND
6048 #include <fenv.h>
6049 #endif
6050 static double get_max (void);
6051 int main() {
6052 double x = 0.5;
6053 double y;
6054 int i;
6055 for (i = 1; i <= 11; i++)
6056 x *= x;
6057 if (x != 0)
6058 return 1;
6059 #ifdef MPFR_HAVE_FESETROUND
6060 /* Useful test for the G4 PowerPC */
6061 fesetround(FE_TOWARDZERO);
6062 x = y = get_max ();
6063 x *= 2.0;
6064 if (x != y)
6065 return 1;
6066 #endif
6067 return 0;
6068 }
6069 static double get_max (void) { static volatile double d = DBL_MAX; return d; }
6070
6071 _ACEOF
6072 if ac_fn_c_try_run "$LINENO"; then :
6073 mpfr_cv_gcc_floatconv_bug="no"
6074 else
6075 mpfr_cv_gcc_floatconv_bug="yes, use -ffloat-store"
6076 fi
6077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6078 conftest.$ac_objext conftest.beam conftest.$ac_ext
6079 fi
6080
6081 LIBS="$saved_LIBS"
6082
6083 fi
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_gcc_floatconv_bug" >&5
6085 $as_echo "$mpfr_cv_gcc_floatconv_bug" >&6; }
6086 if test "$mpfr_cv_gcc_floatconv_bug" != "no"; then
6087 CFLAGS="$CFLAGS -ffloat-store"
6088 fi
6089 fi
6090
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for denormalized numbers" >&5
6092 $as_echo_n "checking for denormalized numbers... " >&6; }
6093 if ${mpfr_cv_have_denorms+:} false; then :
6094 $as_echo_n "(cached) " >&6
6095 else
6096
6097 if test "$cross_compiling" = yes; then :
6098 mpfr_cv_have_denorms=no
6099 else
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6102
6103 #include <math.h>
6104 #include <stdio.h>
6105 int main() {
6106 double x = 2.22507385850720138309e-308;
6107 fprintf (stderr, "%e\n", x / 2.0);
6108 return 2.0 * (x / 2.0) != x;
6109 }
6110
6111 _ACEOF
6112 if ac_fn_c_try_run "$LINENO"; then :
6113 mpfr_cv_have_denorms=yes
6114 else
6115 mpfr_cv_have_denorms=no
6116 fi
6117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6118 conftest.$ac_objext conftest.beam conftest.$ac_ext
6119 fi
6120
6121
6122 fi
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_denorms" >&5
6124 $as_echo "$mpfr_cv_have_denorms" >&6; }
6125 if test "$mpfr_cv_have_denorms" = "yes"; then
6126
6127 $as_echo "#define HAVE_DENORMS 1" >>confdefs.h
6128
6129 fi
6130
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the FP division by 0 fails" >&5
6132 $as_echo_n "checking if the FP division by 0 fails... " >&6; }
6133 if ${mpfr_cv_errdivzero+:} false; then :
6134 $as_echo_n "(cached) " >&6
6135 else
6136
6137 if test "$cross_compiling" = yes; then :
6138 mpfr_cv_errdivzero="cannot test, assume no"
6139 else
6140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141 /* end confdefs.h. */
6142
6143 int main() {
6144 volatile double d = 0.0, x;
6145 x = 0.0 / d;
6146 x = 1.0 / d;
6147 return 0;
6148 }
6149
6150 _ACEOF
6151 if ac_fn_c_try_run "$LINENO"; then :
6152 mpfr_cv_errdivzero="no"
6153 else
6154 mpfr_cv_errdivzero="yes"
6155 fi
6156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6157 conftest.$ac_objext conftest.beam conftest.$ac_ext
6158 fi
6159
6160
6161 fi
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_errdivzero" >&5
6163 $as_echo "$mpfr_cv_errdivzero" >&6; }
6164 if test "$mpfr_cv_errdivzero" = "yes"; then
6165
6166 $as_echo "#define MPFR_ERRDIVZERO 1" >>confdefs.h
6167
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The floating-point division by 0 fails instead of" >&5
6169 $as_echo "$as_me: WARNING: The floating-point division by 0 fails instead of" >&2;}
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: returning a special value: NaN or infinity. Tests" >&5
6171 $as_echo "$as_me: WARNING: returning a special value: NaN or infinity. Tests" >&2;}
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: involving a FP division by 0 will be disabled." >&5
6173 $as_echo "$as_me: WARNING: involving a FP division by 0 will be disabled." >&2;}
6174 fi
6175
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if NAN == NAN" >&5
6177 $as_echo_n "checking if NAN == NAN... " >&6; }
6178 if ${mpfr_cv_nanisnan+:} false; then :
6179 $as_echo_n "(cached) " >&6
6180 else
6181
6182 if test "$cross_compiling" = yes; then :
6183 mpfr_cv_nanisnan="cannot test, assume no"
6184 else
6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6187
6188 #include <stdio.h>
6189 #include <math.h>
6190 #ifndef NAN
6191 # define NAN (0.0/0.0)
6192 #endif
6193 int main() {
6194 double d;
6195 d = NAN;
6196 return d != d;
6197 }
6198
6199 _ACEOF
6200 if ac_fn_c_try_run "$LINENO"; then :
6201 mpfr_cv_nanisnan="yes"
6202 else
6203 mpfr_cv_nanisnan="no"
6204 fi
6205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6206 conftest.$ac_objext conftest.beam conftest.$ac_ext
6207 fi
6208
6209
6210 fi
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_nanisnan" >&5
6212 $as_echo "$mpfr_cv_nanisnan" >&6; }
6213 if test "$mpfr_cv_nanisnan" = "yes"; then
6214
6215 $as_echo "#define MPFR_NANISNAN 1" >>confdefs.h
6216
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The test NAN != NAN is false. The probable reason is that" >&5
6218 $as_echo "$as_me: WARNING: The test NAN != NAN is false. The probable reason is that" >&2;}
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler optimizes floating-point expressions in an" >&5
6220 $as_echo "$as_me: WARNING: your compiler optimizes floating-point expressions in an" >&2;}
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsafe way because some option, such as -ffast-math or" >&5
6222 $as_echo "$as_me: WARNING: unsafe way because some option, such as -ffast-math or" >&2;}
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -fast (depending on the compiler), has been used. You" >&5
6224 $as_echo "$as_me: WARNING: -fast (depending on the compiler), has been used. You" >&2;}
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: should NOT use such an option, otherwise MPFR functions" >&5
6226 $as_echo "$as_me: WARNING: should NOT use such an option, otherwise MPFR functions" >&2;}
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&5
6228 $as_echo "$as_me: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&2;}
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&5
6230 $as_echo "$as_me: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&2;}
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you did not use such an option, please send us a bug" >&5
6232 $as_echo "$as_me: WARNING: If you did not use such an option, please send us a bug" >&2;}
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: report so that we can try to find a workaround for your" >&5
6234 $as_echo "$as_me: WARNING: report so that we can try to find a workaround for your" >&2;}
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: platform and/or document the behavior." >&5
6236 $as_echo "$as_me: WARNING: platform and/or document the behavior." >&2;}
6237 fi
6238
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if charset has consecutive values" >&5
6240 $as_echo_n "checking if charset has consecutive values... " >&6; }
6241 if test "$cross_compiling" = yes; then :
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5
6243 $as_echo "cannot test" >&6; }
6244 else
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6247
6248 char *number = "0123456789";
6249 char *lower = "abcdefghijklmnopqrstuvwxyz";
6250 char *upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
6251
6252 int
6253 main ()
6254 {
6255
6256 int i;
6257 unsigned char *p;
6258 for (p = (unsigned char*) number, i = 0; i < 9; i++)
6259 if ( (*p)+1 != *(p+1) ) return 1;
6260 for (p = (unsigned char*) lower, i = 0; i < 25; i++)
6261 if ( (*p)+1 != *(p+1) ) return 1;
6262 for (p = (unsigned char*) upper, i = 0; i < 25; i++)
6263 if ( (*p)+1 != *(p+1) ) return 1;
6264
6265 ;
6266 return 0;
6267 }
6268 _ACEOF
6269 if ac_fn_c_try_run "$LINENO"; then :
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6271 $as_echo "yes" >&6; }
6272 else
6273
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275 $as_echo "no" >&6; }
6276
6277 $as_echo "#define MPFR_NO_CONSECUTIVE_CHARSET 1" >>confdefs.h
6278
6279
6280 fi
6281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6282 conftest.$ac_objext conftest.beam conftest.$ac_ext
6283 fi
6284
6285
6286 saved_LIBS="$LIBS"
6287 LIBS="$LIBS $MPFR_LIBM"
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/round" >&5
6289 $as_echo_n "checking for math/round... " >&6; }
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6292
6293 #include <math.h>
6294 int f (double (*func)(double)) { return 0;}
6295
6296 int
6297 main ()
6298 {
6299
6300 double a = 17.42;
6301 a = f (round);
6302 return 0;
6303
6304 ;
6305 return 0;
6306 }
6307 _ACEOF
6308 if ac_fn_c_try_link "$LINENO"; then :
6309
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6311 $as_echo "yes" >&6; }
6312
6313 $as_echo "#define HAVE_ROUND 1" >>confdefs.h
6314
6315
6316 else
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6319 fi
6320 rm -f core conftest.err conftest.$ac_objext \
6321 conftest$ac_exeext conftest.$ac_ext
6322
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/trunc" >&5
6324 $as_echo_n "checking for math/trunc... " >&6; }
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h. */
6327
6328 #include <math.h>
6329 int f (double (*func)(double)) { return 0;}
6330
6331 int
6332 main ()
6333 {
6334
6335 double a = 17.42;
6336 a = f(trunc);
6337 return 0;
6338
6339 ;
6340 return 0;
6341 }
6342 _ACEOF
6343 if ac_fn_c_try_link "$LINENO"; then :
6344
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6346 $as_echo "yes" >&6; }
6347
6348 $as_echo "#define HAVE_TRUNC 1" >>confdefs.h
6349
6350
6351 else
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 $as_echo "no" >&6; }
6354 fi
6355 rm -f core conftest.err conftest.$ac_objext \
6356 conftest$ac_exeext conftest.$ac_ext
6357
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/floor" >&5
6359 $as_echo_n "checking for math/floor... " >&6; }
6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6362
6363 #include <math.h>
6364 int f (double (*func)(double)) { return 0;}
6365
6366 int
6367 main ()
6368 {
6369
6370 double a = 17.42;
6371 a = f(floor);
6372 return 0;
6373
6374 ;
6375 return 0;
6376 }
6377 _ACEOF
6378 if ac_fn_c_try_link "$LINENO"; then :
6379
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6381 $as_echo "yes" >&6; }
6382
6383 $as_echo "#define HAVE_FLOOR 1" >>confdefs.h
6384
6385
6386 else
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388 $as_echo "no" >&6; }
6389 fi
6390 rm -f core conftest.err conftest.$ac_objext \
6391 conftest$ac_exeext conftest.$ac_ext
6392
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/ceil" >&5
6394 $as_echo_n "checking for math/ceil... " >&6; }
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6397
6398 #include <math.h>
6399 int f (double (*func)(double)) { return 0;}
6400
6401 int
6402 main ()
6403 {
6404
6405 double a = 17.42;
6406 a = f(ceil);
6407 return 0;
6408
6409 ;
6410 return 0;
6411 }
6412 _ACEOF
6413 if ac_fn_c_try_link "$LINENO"; then :
6414
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6416 $as_echo "yes" >&6; }
6417
6418 $as_echo "#define HAVE_CEIL 1" >>confdefs.h
6419
6420
6421 else
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423 $as_echo "no" >&6; }
6424 fi
6425 rm -f core conftest.err conftest.$ac_objext \
6426 conftest$ac_exeext conftest.$ac_ext
6427
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/rint" >&5
6429 $as_echo_n "checking for math/rint... " >&6; }
6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6432
6433 #include <math.h>
6434 int f (double (*func)(double)) { return 0;}
6435
6436 int
6437 main ()
6438 {
6439
6440 double a = 17.42;
6441 a = f(nearbyint);
6442 return 0;
6443
6444 ;
6445 return 0;
6446 }
6447 _ACEOF
6448 if ac_fn_c_try_link "$LINENO"; then :
6449
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6451 $as_echo "yes" >&6; }
6452
6453 $as_echo "#define HAVE_NEARBYINT 1" >>confdefs.h
6454
6455
6456 else
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458 $as_echo "no" >&6; }
6459 fi
6460 rm -f core conftest.err conftest.$ac_objext \
6461 conftest$ac_exeext conftest.$ac_ext
6462
6463 LIBS="$saved_LIBS"
6464
6465
6466
6467
6468 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
6469 if test "x$ac_cv_type_long_double" = xyes; then :
6470
6471 cat >>confdefs.h <<_ACEOF
6472 #define HAVE_LONG_DOUBLE 1
6473 _ACEOF
6474
6475
6476 fi
6477
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking format of \`long double' floating point" >&5
6479 $as_echo_n "checking format of \`long double' floating point... " >&6; }
6480 if ${mpfr_cv_c_long_double_format+:} false; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 mpfr_cv_c_long_double_format=unknown
6484 if test "$ac_cv_type_long_double" != yes; then
6485 mpfr_cv_c_long_double_format="not available"
6486 else
6487 cat >conftest.c <<\EOF
6488
6489 /* "before" is 16 bytes to ensure there's no padding between it and "x".
6490 We're not expecting any "long double" bigger than 16 bytes or with
6491 alignment requirements stricter than 16 bytes. */
6492 struct {
6493 char before[16];
6494 long double x;
6495 char after[8];
6496 } foo = {
6497 { '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
6498 '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
6499 -123456789.0,
6500 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' }
6501 };
6502
6503 EOF
6504 mpfr_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
6505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mpfr_compile\""; } >&5
6506 (eval $mpfr_compile) 2>&5
6507 ac_status=$?
6508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6509 test $ac_status = 0; }; then
6510 cat >conftest.awk <<\EOF
6511
6512 BEGIN {
6513 found = 0
6514 }
6515
6516 # got[] holds a sliding window of bytes read the input. got[0] is the most
6517 # recent byte read, and got[31] the oldest byte read, so when looking to
6518 # match some data the indices are "reversed".
6519 #
6520 {
6521 for (f = 2; f <= NF; f++)
6522 {
6523 # new byte, shift others up
6524 for (i = 31; i >= 0; i--)
6525 got[i+1] = got[i];
6526 got[0] = $f;
6527
6528 # end sequence
6529 if (got[7] != "376") continue
6530 if (got[6] != "334") continue
6531 if (got[5] != "272") continue
6532 if (got[4] != "230") continue
6533 if (got[3] != "166") continue
6534 if (got[2] != "124") continue
6535 if (got[1] != "062") continue
6536 if (got[0] != "020") continue
6537
6538 # start sequence, with 8-byte body
6539 if (got[23] == "001" && \
6540 got[22] == "043" && \
6541 got[21] == "105" && \
6542 got[20] == "147" && \
6543 got[19] == "211" && \
6544 got[18] == "253" && \
6545 got[17] == "315" && \
6546 got[16] == "357")
6547 {
6548 saw = " (" got[15] \
6549 " " got[14] \
6550 " " got[13] \
6551 " " got[12] \
6552 " " got[11] \
6553 " " got[10] \
6554 " " got[9] \
6555 " " got[8] ")"
6556
6557 if (got[15] == "301" && \
6558 got[14] == "235" && \
6559 got[13] == "157" && \
6560 got[12] == "064" && \
6561 got[11] == "124" && \
6562 got[10] == "000" && \
6563 got[9] == "000" && \
6564 got[8] == "000")
6565 {
6566 print "IEEE double, big endian"
6567 found = 1
6568 exit
6569 }
6570
6571 if (got[15] == "000" && \
6572 got[14] == "000" && \
6573 got[13] == "000" && \
6574 got[12] == "124" && \
6575 got[11] == "064" && \
6576 got[10] == "157" && \
6577 got[9] == "235" && \
6578 got[8] == "301")
6579 {
6580 print "IEEE double, little endian"
6581 found = 1
6582 exit
6583 }
6584 }
6585
6586 # start sequence, with 12-byte body
6587 if (got[27] == "001" && \
6588 got[26] == "043" && \
6589 got[25] == "105" && \
6590 got[24] == "147" && \
6591 got[23] == "211" && \
6592 got[22] == "253" && \
6593 got[21] == "315" && \
6594 got[20] == "357")
6595 {
6596 saw = " (" got[19] \
6597 " " got[18] \
6598 " " got[17] \
6599 " " got[16] \
6600 " " got[15] \
6601 " " got[14] \
6602 " " got[13] \
6603 " " got[12] \
6604 " " got[11] \
6605 " " got[10] \
6606 " " got[9] \
6607 " " got[8] ")"
6608
6609 if (got[19] == "000" && \
6610 got[18] == "000" && \
6611 got[17] == "000" && \
6612 got[16] == "000" && \
6613 got[15] == "240" && \
6614 got[14] == "242" && \
6615 got[13] == "171" && \
6616 got[12] == "353" && \
6617 got[11] == "031" && \
6618 got[10] == "300")
6619 {
6620 print "IEEE extended, little endian"
6621 found = 1
6622 exit
6623 }
6624
6625 if (got[19] == "300" && \
6626 got[18] == "031" && \
6627 got[17] == "000" && \
6628 got[16] == "000" && \
6629 got[15] == "353" && \
6630 got[14] == "171" && \
6631 got[13] == "242" && \
6632 got[12] == "240" && \
6633 got[11] == "000" && \
6634 got[10] == "000" && \
6635 got[09] == "000" && \
6636 got[08] == "000")
6637 {
6638 # format found on m68k
6639 print "IEEE extended, big endian"
6640 found = 1
6641 exit
6642 }
6643 }
6644
6645 # start sequence, with 16-byte body
6646 if (got[31] == "001" && \
6647 got[30] == "043" && \
6648 got[29] == "105" && \
6649 got[28] == "147" && \
6650 got[27] == "211" && \
6651 got[26] == "253" && \
6652 got[25] == "315" && \
6653 got[24] == "357")
6654 {
6655 saw = " (" got[23] \
6656 " " got[22] \
6657 " " got[21] \
6658 " " got[20] \
6659 " " got[19] \
6660 " " got[18] \
6661 " " got[17] \
6662 " " got[16] \
6663 " " got[15] \
6664 " " got[14] \
6665 " " got[13] \
6666 " " got[12] \
6667 " " got[11] \
6668 " " got[10] \
6669 " " got[9] \
6670 " " got[8] ")"
6671
6672 if (got[23] == "000" && \
6673 got[22] == "000" && \
6674 got[21] == "000" && \
6675 got[20] == "000" && \
6676 got[19] == "240" && \
6677 got[18] == "242" && \
6678 got[17] == "171" && \
6679 got[16] == "353" && \
6680 got[15] == "031" && \
6681 got[14] == "300")
6682 {
6683 print "IEEE extended, little endian"
6684 found = 1
6685 exit
6686 }
6687
6688 if (got[23] == "300" && \
6689 got[22] == "031" && \
6690 got[21] == "326" && \
6691 got[20] == "363" && \
6692 got[19] == "105" && \
6693 got[18] == "100" && \
6694 got[17] == "000" && \
6695 got[16] == "000" && \
6696 got[15] == "000" && \
6697 got[14] == "000" && \
6698 got[13] == "000" && \
6699 got[12] == "000" && \
6700 got[11] == "000" && \
6701 got[10] == "000" && \
6702 got[9] == "000" && \
6703 got[8] == "000")
6704 {
6705 # format used on HP 9000/785 under HP-UX
6706 print "IEEE quad, big endian"
6707 found = 1
6708 exit
6709 }
6710
6711 if (got[23] == "000" && \
6712 got[22] == "000" && \
6713 got[21] == "000" && \
6714 got[20] == "000" && \
6715 got[19] == "000" && \
6716 got[18] == "000" && \
6717 got[17] == "000" && \
6718 got[16] == "000" && \
6719 got[15] == "000" && \
6720 got[14] == "000" && \
6721 got[13] == "100" && \
6722 got[12] == "105" && \
6723 got[11] == "363" && \
6724 got[10] == "326" && \
6725 got[9] == "031" && \
6726 got[8] == "300")
6727 {
6728 print "IEEE quad, little endian"
6729 found = 1
6730 exit
6731 }
6732
6733 if (got[23] == "301" && \
6734 got[22] == "235" && \
6735 got[21] == "157" && \
6736 got[20] == "064" && \
6737 got[19] == "124" && \
6738 got[18] == "000" && \
6739 got[17] == "000" && \
6740 got[16] == "000" && \
6741 got[15] == "000" && \
6742 got[14] == "000" && \
6743 got[13] == "000" && \
6744 got[12] == "000" && \
6745 got[11] == "000" && \
6746 got[10] == "000" && \
6747 got[9] == "000" && \
6748 got[8] == "000")
6749 {
6750 # format used on 32-bit PowerPC (Mac OS X and Debian GNU/Linux)
6751 print "possibly double-double, big endian"
6752 found = 1
6753 exit
6754 }
6755 }
6756 }
6757 }
6758
6759 END {
6760 if (! found)
6761 print "unknown", saw
6762 }
6763
6764 EOF
6765 mpfr_cv_c_long_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
6766 case $mpfr_cv_c_long_double_format in
6767 unknown*)
6768 echo "cannot match anything, conftest.$OBJEXT contains" >&5
6769 od -b conftest.$OBJEXT >&5
6770 ;;
6771 esac
6772 else
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
6774 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
6775 fi
6776 fi
6777 rm -f conftest*
6778
6779 fi
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_c_long_double_format" >&5
6781 $as_echo "$mpfr_cv_c_long_double_format" >&6; }
6782
6783
6784
6785 case $mpfr_cv_c_long_double_format in
6786 "IEEE extended, little endian")
6787 $as_echo "#define HAVE_LDOUBLE_IEEE_EXT_LITTLE 1" >>confdefs.h
6788
6789 ;;
6790 "IEEE quad, big endian")
6791 $as_echo "#define HAVE_LDOUBLE_IEEE_QUAD_BIG 1" >>confdefs.h
6792
6793 ;;
6794 "IEEE quad, little endian")
6795 $as_echo "#define HAVE_LDOUBLE_IEEE_QUAD_LITTLE 1" >>confdefs.h
6796
6797 ;;
6798 "possibly double-double, big endian")
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This format is known on GCC/PowerPC platforms," >&5
6800 $as_echo "$as_me: WARNING: This format is known on GCC/PowerPC platforms," >&2;}
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but due to GCC PR26374, we can't test further." >&5
6802 $as_echo "$as_me: WARNING: but due to GCC PR26374, we can't test further." >&2;}
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You can safely ignore this warning, though." >&5
6804 $as_echo "$as_me: WARNING: You can safely ignore this warning, though." >&2;}
6805 # Since we are not sure, we do not want to define a macro.
6806 ;;
6807 unknown* | "not available")
6808 ;;
6809 *)
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, unrecognised float format: $mpfr_cv_c_long_double_format" >&5
6811 $as_echo "$as_me: WARNING: oops, unrecognised float format: $mpfr_cv_c_long_double_format" >&2;}
6812 ;;
6813 esac
6814
6815
6816 if test "$enable_logging" = yes; then
6817 if test "$enable_thread_safe" = yes; then
6818 as_fn_error $? "Enable either \`Logging' or \`thread-safe', not both" "$LINENO" 5
6819 else
6820 enable_thread_safe=no
6821 fi
6822 fi
6823
6824 if test "$enable_thread_safe" != no; then
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
6826 $as_echo_n "checking for TLS support... " >&6; }
6827 saved_CPPFLAGS="$CPPFLAGS"
6828 CPPFLAGS="$CPPFLAGS -I$srcdir/src"
6829 if test "$cross_compiling" = yes; then :
6830 if test "$enable_thread_safe" = yes; then
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test, assume yes" >&5
6832 $as_echo "cannot test, assume yes" >&6; }
6833
6834 $as_echo "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h
6835
6836 else
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test, assume no" >&5
6838 $as_echo "cannot test, assume no" >&6; }
6839 fi
6840
6841 else
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6844
6845 #define MPFR_USE_THREAD_SAFE 1
6846 #include "mpfr-thread.h"
6847 MPFR_THREAD_ATTR int x = 17;
6848 int main() {
6849 return x != 17;
6850 }
6851
6852 _ACEOF
6853 if ac_fn_c_try_run "$LINENO"; then :
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6855 $as_echo "yes" >&6; }
6856
6857 $as_echo "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h
6858
6859
6860 else
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862 $as_echo "no" >&6; }
6863 if test "$enable_thread_safe" = yes; then
6864 as_fn_error $? "please configure with --disable-thread-safe" "$LINENO" 5
6865 fi
6866
6867 fi
6868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6869 conftest.$ac_objext conftest.beam conftest.$ac_ext
6870 fi
6871
6872 CPPFLAGS="$saved_CPPFLAGS"
6873 fi
6874
6875
6876 # (Based on GMP 5.1)
6877 # clock_gettime is in librt on *-*-osf5.1 and on glibc < 2.17, so add -lrt to
6878 # TUNE_LIBS if needed (e.g. if clock_gettime is not already in the C library).
6879 # On linux (tested on x86_32, 2.6.26), clock_getres reports ns accuracy,
6880 # while in a quick test on osf, clock_getres said only 1 millisecond.
6881 old_LIBS="$LIBS"
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
6883 $as_echo_n "checking for library containing clock_gettime... " >&6; }
6884 if ${ac_cv_search_clock_gettime+:} false; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 ac_func_search_save_LIBS=$LIBS
6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6890
6891 /* Override any GCC internal prototype to avoid an error.
6892 Use char because int might match the return type of a GCC
6893 builtin and then its argument prototype would still apply. */
6894 #ifdef __cplusplus
6895 extern "C"
6896 #endif
6897 char clock_gettime ();
6898 int
6899 main ()
6900 {
6901 return clock_gettime ();
6902 ;
6903 return 0;
6904 }
6905 _ACEOF
6906 for ac_lib in '' rt; do
6907 if test -z "$ac_lib"; then
6908 ac_res="none required"
6909 else
6910 ac_res=-l$ac_lib
6911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6912 fi
6913 if ac_fn_c_try_link "$LINENO"; then :
6914 ac_cv_search_clock_gettime=$ac_res
6915 fi
6916 rm -f core conftest.err conftest.$ac_objext \
6917 conftest$ac_exeext
6918 if ${ac_cv_search_clock_gettime+:} false; then :
6919 break
6920 fi
6921 done
6922 if ${ac_cv_search_clock_gettime+:} false; then :
6923
6924 else
6925 ac_cv_search_clock_gettime=no
6926 fi
6927 rm conftest.$ac_ext
6928 LIBS=$ac_func_search_save_LIBS
6929 fi
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
6931 $as_echo "$ac_cv_search_clock_gettime" >&6; }
6932 ac_res=$ac_cv_search_clock_gettime
6933 if test "$ac_res" != no; then :
6934 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6935
6936
6937 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
6938
6939 fi
6940
6941 TUNE_LIBS="$LIBS"
6942 LIBS="$old_LIBS"
6943
6944
6945
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp.h" >&5
6947 $as_echo_n "checking for gmp.h... " >&6; }
6948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h. */
6950
6951 #include "gmp.h"
6952
6953 _ACEOF
6954 if ac_fn_c_try_compile "$LINENO"; then :
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6956 $as_echo "yes" >&6; }
6957 else
6958
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960 $as_echo "no" >&6; }
6961 as_fn_error $? "gmp.h can't be found, or is unusable." "$LINENO" 5
6962
6963 fi
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6965
6966
6967
6968 enable_win32_dll=yes
6969
6970 case $host in
6971 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
6972 if test -n "$ac_tool_prefix"; then
6973 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6974 set dummy ${ac_tool_prefix}as; ac_word=$2
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976 $as_echo_n "checking for $ac_word... " >&6; }
6977 if ${ac_cv_prog_AS+:} false; then :
6978 $as_echo_n "(cached) " >&6
6979 else
6980 if test -n "$AS"; then
6981 ac_cv_prog_AS="$AS" # Let the user override the test.
6982 else
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6985 do
6986 IFS=$as_save_IFS
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6990 ac_cv_prog_AS="${ac_tool_prefix}as"
6991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 break 2
6993 fi
6994 done
6995 done
6996 IFS=$as_save_IFS
6997
6998 fi
6999 fi
7000 AS=$ac_cv_prog_AS
7001 if test -n "$AS"; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7003 $as_echo "$AS" >&6; }
7004 else
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006 $as_echo "no" >&6; }
7007 fi
7008
7009
7010 fi
7011 if test -z "$ac_cv_prog_AS"; then
7012 ac_ct_AS=$AS
7013 # Extract the first word of "as", so it can be a program name with args.
7014 set dummy as; ac_word=$2
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016 $as_echo_n "checking for $ac_word... " >&6; }
7017 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7018 $as_echo_n "(cached) " >&6
7019 else
7020 if test -n "$ac_ct_AS"; then
7021 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7022 else
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 for as_dir in $PATH
7025 do
7026 IFS=$as_save_IFS
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7030 ac_cv_prog_ac_ct_AS="as"
7031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 break 2
7033 fi
7034 done
7035 done
7036 IFS=$as_save_IFS
7037
7038 fi
7039 fi
7040 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7041 if test -n "$ac_ct_AS"; then
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7043 $as_echo "$ac_ct_AS" >&6; }
7044 else
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046 $as_echo "no" >&6; }
7047 fi
7048
7049 if test "x$ac_ct_AS" = x; then
7050 AS="false"
7051 else
7052 case $cross_compiling:$ac_tool_warned in
7053 yes:)
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7056 ac_tool_warned=yes ;;
7057 esac
7058 AS=$ac_ct_AS
7059 fi
7060 else
7061 AS="$ac_cv_prog_AS"
7062 fi
7063
7064 if test -n "$ac_tool_prefix"; then
7065 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7066 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7068 $as_echo_n "checking for $ac_word... " >&6; }
7069 if ${ac_cv_prog_DLLTOOL+:} false; then :
7070 $as_echo_n "(cached) " >&6
7071 else
7072 if test -n "$DLLTOOL"; then
7073 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7074 else
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 for as_dir in $PATH
7077 do
7078 IFS=$as_save_IFS
7079 test -z "$as_dir" && as_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7084 break 2
7085 fi
7086 done
7087 done
7088 IFS=$as_save_IFS
7089
7090 fi
7091 fi
7092 DLLTOOL=$ac_cv_prog_DLLTOOL
7093 if test -n "$DLLTOOL"; then
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7095 $as_echo "$DLLTOOL" >&6; }
7096 else
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098 $as_echo "no" >&6; }
7099 fi
7100
7101
7102 fi
7103 if test -z "$ac_cv_prog_DLLTOOL"; then
7104 ac_ct_DLLTOOL=$DLLTOOL
7105 # Extract the first word of "dlltool", so it can be a program name with args.
7106 set dummy dlltool; ac_word=$2
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108 $as_echo_n "checking for $ac_word... " >&6; }
7109 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7110 $as_echo_n "(cached) " >&6
7111 else
7112 if test -n "$ac_ct_DLLTOOL"; then
7113 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7114 else
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 for as_dir in $PATH
7117 do
7118 IFS=$as_save_IFS
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7122 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 break 2
7125 fi
7126 done
7127 done
7128 IFS=$as_save_IFS
7129
7130 fi
7131 fi
7132 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7133 if test -n "$ac_ct_DLLTOOL"; then
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7135 $as_echo "$ac_ct_DLLTOOL" >&6; }
7136 else
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138 $as_echo "no" >&6; }
7139 fi
7140
7141 if test "x$ac_ct_DLLTOOL" = x; then
7142 DLLTOOL="false"
7143 else
7144 case $cross_compiling:$ac_tool_warned in
7145 yes:)
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7148 ac_tool_warned=yes ;;
7149 esac
7150 DLLTOOL=$ac_ct_DLLTOOL
7151 fi
7152 else
7153 DLLTOOL="$ac_cv_prog_DLLTOOL"
7154 fi
7155
7156 if test -n "$ac_tool_prefix"; then
7157 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7158 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if ${ac_cv_prog_OBJDUMP+:} false; then :
7162 $as_echo_n "(cached) " >&6
7163 else
7164 if test -n "$OBJDUMP"; then
7165 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7169 do
7170 IFS=$as_save_IFS
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7174 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7176 break 2
7177 fi
7178 done
7179 done
7180 IFS=$as_save_IFS
7181
7182 fi
7183 fi
7184 OBJDUMP=$ac_cv_prog_OBJDUMP
7185 if test -n "$OBJDUMP"; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7187 $as_echo "$OBJDUMP" >&6; }
7188 else
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7191 fi
7192
7193
7194 fi
7195 if test -z "$ac_cv_prog_OBJDUMP"; then
7196 ac_ct_OBJDUMP=$OBJDUMP
7197 # Extract the first word of "objdump", so it can be a program name with args.
7198 set dummy objdump; ac_word=$2
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200 $as_echo_n "checking for $ac_word... " >&6; }
7201 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204 if test -n "$ac_ct_OBJDUMP"; then
7205 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7206 else
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH
7209 do
7210 IFS=$as_save_IFS
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 break 2
7217 fi
7218 done
7219 done
7220 IFS=$as_save_IFS
7221
7222 fi
7223 fi
7224 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7225 if test -n "$ac_ct_OBJDUMP"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7227 $as_echo "$ac_ct_OBJDUMP" >&6; }
7228 else
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7231 fi
7232
7233 if test "x$ac_ct_OBJDUMP" = x; then
7234 OBJDUMP="false"
7235 else
7236 case $cross_compiling:$ac_tool_warned in
7237 yes:)
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7240 ac_tool_warned=yes ;;
7241 esac
7242 OBJDUMP=$ac_ct_OBJDUMP
7243 fi
7244 else
7245 OBJDUMP="$ac_cv_prog_OBJDUMP"
7246 fi
7247
7248 ;;
7249 esac
7250
7251 test -z "$AS" && AS=as
7252
7253
7254
7255
7256
7257 test -z "$DLLTOOL" && DLLTOOL=dlltool
7258
7259
7260
7261
7262
7263 test -z "$OBJDUMP" && OBJDUMP=objdump
7264
7265
7266
7267
7268
7269
7270
7271 case $host in
7272 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLL/static GMP" >&5
7274 $as_echo_n "checking for DLL/static GMP... " >&6; }
7275 if test "$enable_shared" = yes; then
7276 MPFR_LDFLAGS="$MPFR_LDFLAGS -no-undefined"
7277 LIBMPFR_LDFLAGS="$LIBMPFR_LDFLAGS -Wl,--output-def,.libs/libmpfr-4.dll.def"
7278 dont_link_with_gmp="yes"
7279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h. */
7281
7282 #include "gmp.h"
7283 #if !__GMP_LIBGMP_DLL
7284 # error "Dead man"
7285 error
7286 #endif
7287
7288 int
7289 main ()
7290 {
7291
7292 ;
7293 return 0;
7294 }
7295 _ACEOF
7296 if ac_fn_c_try_compile "$LINENO"; then :
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
7298 $as_echo "DLL" >&6; }
7299 else
7300
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
7302 $as_echo "static" >&6; }
7303 as_fn_error $? "gmp.h isn't a DLL: use --enable-static --disable-shared" "$LINENO" 5
7304 fi
7305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7306 else
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7309
7310 #include "gmp.h"
7311 #if __GMP_LIBGMP_DLL
7312 # error "Dead man"
7313 error
7314 #endif
7315
7316 int
7317 main ()
7318 {
7319
7320 ;
7321 return 0;
7322 }
7323 _ACEOF
7324 if ac_fn_c_try_compile "$LINENO"; then :
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
7326 $as_echo "static" >&6; }
7327 else
7328
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
7330 $as_echo "DLL" >&6; }
7331 as_fn_error $? "gmp.h is a DLL: use --disable-static --enable-shared" "$LINENO" 5
7332 fi
7333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7334 fi
7335 ;;
7336 esac
7337 case `pwd` in
7338 *\ * | *\ *)
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7340 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7341 esac
7342
7343
7344
7345 macro_version='2.4.2'
7346 macro_revision='1.3337'
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360 ltmain="$ac_aux_dir/ltmain.sh"
7361
7362 # Backslashify metacharacters that are still active within
7363 # double-quoted strings.
7364 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7365
7366 # Same as above, but do not quote variable references.
7367 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7368
7369 # Sed substitution to delay expansion of an escaped shell variable in a
7370 # double_quote_subst'ed string.
7371 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7372
7373 # Sed substitution to delay expansion of an escaped single quote.
7374 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7375
7376 # Sed substitution to avoid accidental globbing in evaled expressions
7377 no_glob_subst='s/\*/\\\*/g'
7378
7379 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7380 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7381 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7382
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7384 $as_echo_n "checking how to print strings... " >&6; }
7385 # Test print first, because it will be a builtin if present.
7386 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7387 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7388 ECHO='print -r --'
7389 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7390 ECHO='printf %s\n'
7391 else
7392 # Use this function as a fallback that always works.
7393 func_fallback_echo ()
7394 {
7395 eval 'cat <<_LTECHO_EOF
7396 $1
7397 _LTECHO_EOF'
7398 }
7399 ECHO='func_fallback_echo'
7400 fi
7401
7402 # func_echo_all arg...
7403 # Invoke $ECHO with all args, space-separated.
7404 func_echo_all ()
7405 {
7406 $ECHO ""
7407 }
7408
7409 case "$ECHO" in
7410 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7411 $as_echo "printf" >&6; } ;;
7412 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7413 $as_echo "print -r" >&6; } ;;
7414 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7415 $as_echo "cat" >&6; } ;;
7416 esac
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7432 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7433 if ${ac_cv_path_SED+:} false; then :
7434 $as_echo_n "(cached) " >&6
7435 else
7436 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7437 for ac_i in 1 2 3 4 5 6 7; do
7438 ac_script="$ac_script$as_nl$ac_script"
7439 done
7440 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7441 { ac_script=; unset ac_script;}
7442 if test -z "$SED"; then
7443 ac_path_SED_found=false
7444 # Loop through the user's path and test for each of PROGNAME-LIST
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 for as_dir in $PATH
7447 do
7448 IFS=$as_save_IFS
7449 test -z "$as_dir" && as_dir=.
7450 for ac_prog in sed gsed; do
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7453 as_fn_executable_p "$ac_path_SED" || continue
7454 # Check for GNU ac_path_SED and select it if it is found.
7455 # Check for GNU $ac_path_SED
7456 case `"$ac_path_SED" --version 2>&1` in
7457 *GNU*)
7458 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7459 *)
7460 ac_count=0
7461 $as_echo_n 0123456789 >"conftest.in"
7462 while :
7463 do
7464 cat "conftest.in" "conftest.in" >"conftest.tmp"
7465 mv "conftest.tmp" "conftest.in"
7466 cp "conftest.in" "conftest.nl"
7467 $as_echo '' >> "conftest.nl"
7468 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7469 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7470 as_fn_arith $ac_count + 1 && ac_count=$as_val
7471 if test $ac_count -gt ${ac_path_SED_max-0}; then
7472 # Best one so far, save it but keep looking for a better one
7473 ac_cv_path_SED="$ac_path_SED"
7474 ac_path_SED_max=$ac_count
7475 fi
7476 # 10*(2^10) chars as input seems more than enough
7477 test $ac_count -gt 10 && break
7478 done
7479 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7480 esac
7481
7482 $ac_path_SED_found && break 3
7483 done
7484 done
7485 done
7486 IFS=$as_save_IFS
7487 if test -z "$ac_cv_path_SED"; then
7488 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7489 fi
7490 else
7491 ac_cv_path_SED=$SED
7492 fi
7493
7494 fi
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7496 $as_echo "$ac_cv_path_SED" >&6; }
7497 SED="$ac_cv_path_SED"
7498 rm -f conftest.sed
7499
7500 test -z "$SED" && SED=sed
7501 Xsed="$SED -e 1s/^X//"
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7514 $as_echo_n "checking for fgrep... " >&6; }
7515 if ${ac_cv_path_FGREP+:} false; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7519 then ac_cv_path_FGREP="$GREP -F"
7520 else
7521 if test -z "$FGREP"; then
7522 ac_path_FGREP_found=false
7523 # Loop through the user's path and test for each of PROGNAME-LIST
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7526 do
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
7529 for ac_prog in fgrep; do
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7532 as_fn_executable_p "$ac_path_FGREP" || continue
7533 # Check for GNU ac_path_FGREP and select it if it is found.
7534 # Check for GNU $ac_path_FGREP
7535 case `"$ac_path_FGREP" --version 2>&1` in
7536 *GNU*)
7537 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7538 *)
7539 ac_count=0
7540 $as_echo_n 0123456789 >"conftest.in"
7541 while :
7542 do
7543 cat "conftest.in" "conftest.in" >"conftest.tmp"
7544 mv "conftest.tmp" "conftest.in"
7545 cp "conftest.in" "conftest.nl"
7546 $as_echo 'FGREP' >> "conftest.nl"
7547 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7548 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7549 as_fn_arith $ac_count + 1 && ac_count=$as_val
7550 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7551 # Best one so far, save it but keep looking for a better one
7552 ac_cv_path_FGREP="$ac_path_FGREP"
7553 ac_path_FGREP_max=$ac_count
7554 fi
7555 # 10*(2^10) chars as input seems more than enough
7556 test $ac_count -gt 10 && break
7557 done
7558 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7559 esac
7560
7561 $ac_path_FGREP_found && break 3
7562 done
7563 done
7564 done
7565 IFS=$as_save_IFS
7566 if test -z "$ac_cv_path_FGREP"; then
7567 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7568 fi
7569 else
7570 ac_cv_path_FGREP=$FGREP
7571 fi
7572
7573 fi
7574 fi
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7576 $as_echo "$ac_cv_path_FGREP" >&6; }
7577 FGREP="$ac_cv_path_FGREP"
7578
7579
7580 test -z "$GREP" && GREP=grep
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600 # Check whether --with-gnu-ld was given.
7601 if test "${with_gnu_ld+set}" = set; then :
7602 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7603 else
7604 with_gnu_ld=no
7605 fi
7606
7607 ac_prog=ld
7608 if test "$GCC" = yes; then
7609 # Check if gcc -print-prog-name=ld gives a path.
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7611 $as_echo_n "checking for ld used by $CC... " >&6; }
7612 case $host in
7613 *-*-mingw*)
7614 # gcc leaves a trailing carriage return which upsets mingw
7615 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7616 *)
7617 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7618 esac
7619 case $ac_prog in
7620 # Accept absolute paths.
7621 [\\/]* | ?:[\\/]*)
7622 re_direlt='/[^/][^/]*/\.\./'
7623 # Canonicalize the pathname of ld
7624 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7625 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7626 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7627 done
7628 test -z "$LD" && LD="$ac_prog"
7629 ;;
7630 "")
7631 # If it fails, then pretend we aren't using GCC.
7632 ac_prog=ld
7633 ;;
7634 *)
7635 # If it is relative, then search for the first ld in PATH.
7636 with_gnu_ld=unknown
7637 ;;
7638 esac
7639 elif test "$with_gnu_ld" = yes; then
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7641 $as_echo_n "checking for GNU ld... " >&6; }
7642 else
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7644 $as_echo_n "checking for non-GNU ld... " >&6; }
7645 fi
7646 if ${lt_cv_path_LD+:} false; then :
7647 $as_echo_n "(cached) " >&6
7648 else
7649 if test -z "$LD"; then
7650 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7651 for ac_dir in $PATH; do
7652 IFS="$lt_save_ifs"
7653 test -z "$ac_dir" && ac_dir=.
7654 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7655 lt_cv_path_LD="$ac_dir/$ac_prog"
7656 # Check to see if the program is GNU ld. I'd rather use --version,
7657 # but apparently some variants of GNU ld only accept -v.
7658 # Break only if it was the GNU/non-GNU ld that we prefer.
7659 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7660 *GNU* | *'with BFD'*)
7661 test "$with_gnu_ld" != no && break
7662 ;;
7663 *)
7664 test "$with_gnu_ld" != yes && break
7665 ;;
7666 esac
7667 fi
7668 done
7669 IFS="$lt_save_ifs"
7670 else
7671 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7672 fi
7673 fi
7674
7675 LD="$lt_cv_path_LD"
7676 if test -n "$LD"; then
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7678 $as_echo "$LD" >&6; }
7679 else
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681 $as_echo "no" >&6; }
7682 fi
7683 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7685 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7686 if ${lt_cv_prog_gnu_ld+:} false; then :
7687 $as_echo_n "(cached) " >&6
7688 else
7689 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7690 case `$LD -v 2>&1 </dev/null` in
7691 *GNU* | *'with BFD'*)
7692 lt_cv_prog_gnu_ld=yes
7693 ;;
7694 *)
7695 lt_cv_prog_gnu_ld=no
7696 ;;
7697 esac
7698 fi
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7700 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7701 with_gnu_ld=$lt_cv_prog_gnu_ld
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7712 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7713 if ${lt_cv_path_NM+:} false; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 if test -n "$NM"; then
7717 # Let the user override the test.
7718 lt_cv_path_NM="$NM"
7719 else
7720 lt_nm_to_check="${ac_tool_prefix}nm"
7721 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7722 lt_nm_to_check="$lt_nm_to_check nm"
7723 fi
7724 for lt_tmp_nm in $lt_nm_to_check; do
7725 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7726 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7727 IFS="$lt_save_ifs"
7728 test -z "$ac_dir" && ac_dir=.
7729 tmp_nm="$ac_dir/$lt_tmp_nm"
7730 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7731 # Check to see if the nm accepts a BSD-compat flag.
7732 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7733 # nm: unknown option "B" ignored
7734 # Tru64's nm complains that /dev/null is an invalid object file
7735 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7736 */dev/null* | *'Invalid file or object type'*)
7737 lt_cv_path_NM="$tmp_nm -B"
7738 break
7739 ;;
7740 *)
7741 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7742 */dev/null*)
7743 lt_cv_path_NM="$tmp_nm -p"
7744 break
7745 ;;
7746 *)
7747 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7748 continue # so that we can try to find one that supports BSD flags
7749 ;;
7750 esac
7751 ;;
7752 esac
7753 fi
7754 done
7755 IFS="$lt_save_ifs"
7756 done
7757 : ${lt_cv_path_NM=no}
7758 fi
7759 fi
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7761 $as_echo "$lt_cv_path_NM" >&6; }
7762 if test "$lt_cv_path_NM" != "no"; then
7763 NM="$lt_cv_path_NM"
7764 else
7765 # Didn't find any BSD compatible name lister, look for dumpbin.
7766 if test -n "$DUMPBIN"; then :
7767 # Let the user override the test.
7768 else
7769 if test -n "$ac_tool_prefix"; then
7770 for ac_prog in dumpbin "link -dump"
7771 do
7772 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7773 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775 $as_echo_n "checking for $ac_word... " >&6; }
7776 if ${ac_cv_prog_DUMPBIN+:} false; then :
7777 $as_echo_n "(cached) " >&6
7778 else
7779 if test -n "$DUMPBIN"; then
7780 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7781 else
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 for as_dir in $PATH
7784 do
7785 IFS=$as_save_IFS
7786 test -z "$as_dir" && as_dir=.
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7789 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 break 2
7792 fi
7793 done
7794 done
7795 IFS=$as_save_IFS
7796
7797 fi
7798 fi
7799 DUMPBIN=$ac_cv_prog_DUMPBIN
7800 if test -n "$DUMPBIN"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7802 $as_echo "$DUMPBIN" >&6; }
7803 else
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7806 fi
7807
7808
7809 test -n "$DUMPBIN" && break
7810 done
7811 fi
7812 if test -z "$DUMPBIN"; then
7813 ac_ct_DUMPBIN=$DUMPBIN
7814 for ac_prog in dumpbin "link -dump"
7815 do
7816 # Extract the first word of "$ac_prog", so it can be a program name with args.
7817 set dummy $ac_prog; ac_word=$2
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819 $as_echo_n "checking for $ac_word... " >&6; }
7820 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7821 $as_echo_n "(cached) " >&6
7822 else
7823 if test -n "$ac_ct_DUMPBIN"; then
7824 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7825 else
7826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 for as_dir in $PATH
7828 do
7829 IFS=$as_save_IFS
7830 test -z "$as_dir" && as_dir=.
7831 for ac_exec_ext in '' $ac_executable_extensions; do
7832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7833 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7835 break 2
7836 fi
7837 done
7838 done
7839 IFS=$as_save_IFS
7840
7841 fi
7842 fi
7843 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7844 if test -n "$ac_ct_DUMPBIN"; then
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7846 $as_echo "$ac_ct_DUMPBIN" >&6; }
7847 else
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 $as_echo "no" >&6; }
7850 fi
7851
7852
7853 test -n "$ac_ct_DUMPBIN" && break
7854 done
7855
7856 if test "x$ac_ct_DUMPBIN" = x; then
7857 DUMPBIN=":"
7858 else
7859 case $cross_compiling:$ac_tool_warned in
7860 yes:)
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7863 ac_tool_warned=yes ;;
7864 esac
7865 DUMPBIN=$ac_ct_DUMPBIN
7866 fi
7867 fi
7868
7869 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7870 *COFF*)
7871 DUMPBIN="$DUMPBIN -symbols"
7872 ;;
7873 *)
7874 DUMPBIN=:
7875 ;;
7876 esac
7877 fi
7878
7879 if test "$DUMPBIN" != ":"; then
7880 NM="$DUMPBIN"
7881 fi
7882 fi
7883 test -z "$NM" && NM=nm
7884
7885
7886
7887
7888
7889
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7891 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7892 if ${lt_cv_nm_interface+:} false; then :
7893 $as_echo_n "(cached) " >&6
7894 else
7895 lt_cv_nm_interface="BSD nm"
7896 echo "int some_variable = 0;" > conftest.$ac_ext
7897 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7898 (eval "$ac_compile" 2>conftest.err)
7899 cat conftest.err >&5
7900 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7901 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7902 cat conftest.err >&5
7903 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7904 cat conftest.out >&5
7905 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7906 lt_cv_nm_interface="MS dumpbin"
7907 fi
7908 rm -f conftest*
7909 fi
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7911 $as_echo "$lt_cv_nm_interface" >&6; }
7912
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7914 $as_echo_n "checking whether ln -s works... " >&6; }
7915 LN_S=$as_ln_s
7916 if test "$LN_S" = "ln -s"; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7918 $as_echo "yes" >&6; }
7919 else
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7921 $as_echo "no, using $LN_S" >&6; }
7922 fi
7923
7924 # find the maximum length of command line arguments
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7926 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7927 if ${lt_cv_sys_max_cmd_len+:} false; then :
7928 $as_echo_n "(cached) " >&6
7929 else
7930 i=0
7931 teststring="ABCD"
7932
7933 case $build_os in
7934 msdosdjgpp*)
7935 # On DJGPP, this test can blow up pretty badly due to problems in libc
7936 # (any single argument exceeding 2000 bytes causes a buffer overrun
7937 # during glob expansion). Even if it were fixed, the result of this
7938 # check would be larger than it should be.
7939 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7940 ;;
7941
7942 gnu*)
7943 # Under GNU Hurd, this test is not required because there is
7944 # no limit to the length of command line arguments.
7945 # Libtool will interpret -1 as no limit whatsoever
7946 lt_cv_sys_max_cmd_len=-1;
7947 ;;
7948
7949 cygwin* | mingw* | cegcc*)
7950 # On Win9x/ME, this test blows up -- it succeeds, but takes
7951 # about 5 minutes as the teststring grows exponentially.
7952 # Worse, since 9x/ME are not pre-emptively multitasking,
7953 # you end up with a "frozen" computer, even though with patience
7954 # the test eventually succeeds (with a max line length of 256k).
7955 # Instead, let's just punt: use the minimum linelength reported by
7956 # all of the supported platforms: 8192 (on NT/2K/XP).
7957 lt_cv_sys_max_cmd_len=8192;
7958 ;;
7959
7960 mint*)
7961 # On MiNT this can take a long time and run out of memory.
7962 lt_cv_sys_max_cmd_len=8192;
7963 ;;
7964
7965 amigaos*)
7966 # On AmigaOS with pdksh, this test takes hours, literally.
7967 # So we just punt and use a minimum line length of 8192.
7968 lt_cv_sys_max_cmd_len=8192;
7969 ;;
7970
7971 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7972 # This has been around since 386BSD, at least. Likely further.
7973 if test -x /sbin/sysctl; then
7974 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7975 elif test -x /usr/sbin/sysctl; then
7976 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7977 else
7978 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7979 fi
7980 # And add a safety zone
7981 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7982 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7983 ;;
7984
7985 interix*)
7986 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7987 lt_cv_sys_max_cmd_len=196608
7988 ;;
7989
7990 os2*)
7991 # The test takes a long time on OS/2.
7992 lt_cv_sys_max_cmd_len=8192
7993 ;;
7994
7995 osf*)
7996 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7997 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7998 # nice to cause kernel panics so lets avoid the loop below.
7999 # First set a reasonable default.
8000 lt_cv_sys_max_cmd_len=16384
8001 #
8002 if test -x /sbin/sysconfig; then
8003 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8004 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8005 esac
8006 fi
8007 ;;
8008 sco3.2v5*)
8009 lt_cv_sys_max_cmd_len=102400
8010 ;;
8011 sysv5* | sco5v6* | sysv4.2uw2*)
8012 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8013 if test -n "$kargmax"; then
8014 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8015 else
8016 lt_cv_sys_max_cmd_len=32768
8017 fi
8018 ;;
8019 *)
8020 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8021 if test -n "$lt_cv_sys_max_cmd_len" && \
8022 test undefined != "$lt_cv_sys_max_cmd_len"; then
8023 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8024 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8025 else
8026 # Make teststring a little bigger before we do anything with it.
8027 # a 1K string should be a reasonable start.
8028 for i in 1 2 3 4 5 6 7 8 ; do
8029 teststring=$teststring$teststring
8030 done
8031 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8032 # If test is not a shell built-in, we'll probably end up computing a
8033 # maximum length that is only half of the actual maximum length, but
8034 # we can't tell.
8035 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
8036 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8037 test $i != 17 # 1/2 MB should be enough
8038 do
8039 i=`expr $i + 1`
8040 teststring=$teststring$teststring
8041 done
8042 # Only check the string length outside the loop.
8043 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8044 teststring=
8045 # Add a significant safety factor because C++ compilers can tack on
8046 # massive amounts of additional arguments before passing them to the
8047 # linker. It appears as though 1/2 is a usable value.
8048 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8049 fi
8050 ;;
8051 esac
8052
8053 fi
8054
8055 if test -n $lt_cv_sys_max_cmd_len ; then
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8057 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8058 else
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8060 $as_echo "none" >&6; }
8061 fi
8062 max_cmd_len=$lt_cv_sys_max_cmd_len
8063
8064
8065
8066
8067
8068
8069 : ${CP="cp -f"}
8070 : ${MV="mv -f"}
8071 : ${RM="rm -f"}
8072
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8074 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8075 # Try some XSI features
8076 xsi_shell=no
8077 ( _lt_dummy="a/b/c"
8078 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8079 = c,a/b,b/c, \
8080 && eval 'test $(( 1 + 1 )) -eq 2 \
8081 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8082 && xsi_shell=yes
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8084 $as_echo "$xsi_shell" >&6; }
8085
8086
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8088 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8089 lt_shell_append=no
8090 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8091 >/dev/null 2>&1 \
8092 && lt_shell_append=yes
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8094 $as_echo "$lt_shell_append" >&6; }
8095
8096
8097 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8098 lt_unset=unset
8099 else
8100 lt_unset=false
8101 fi
8102
8103
8104
8105
8106
8107 # test EBCDIC or ASCII
8108 case `echo X|tr X '\101'` in
8109 A) # ASCII based system
8110 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8111 lt_SP2NL='tr \040 \012'
8112 lt_NL2SP='tr \015\012 \040\040'
8113 ;;
8114 *) # EBCDIC based system
8115 lt_SP2NL='tr \100 \n'
8116 lt_NL2SP='tr \r\n \100\100'
8117 ;;
8118 esac
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8129 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8130 if ${lt_cv_to_host_file_cmd+:} false; then :
8131 $as_echo_n "(cached) " >&6
8132 else
8133 case $host in
8134 *-*-mingw* )
8135 case $build in
8136 *-*-mingw* ) # actually msys
8137 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8138 ;;
8139 *-*-cygwin* )
8140 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8141 ;;
8142 * ) # otherwise, assume *nix
8143 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8144 ;;
8145 esac
8146 ;;
8147 *-*-cygwin* )
8148 case $build in
8149 *-*-mingw* ) # actually msys
8150 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8151 ;;
8152 *-*-cygwin* )
8153 lt_cv_to_host_file_cmd=func_convert_file_noop
8154 ;;
8155 * ) # otherwise, assume *nix
8156 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8157 ;;
8158 esac
8159 ;;
8160 * ) # unhandled hosts (and "normal" native builds)
8161 lt_cv_to_host_file_cmd=func_convert_file_noop
8162 ;;
8163 esac
8164
8165 fi
8166
8167 to_host_file_cmd=$lt_cv_to_host_file_cmd
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8169 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8170
8171
8172
8173
8174
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8176 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8177 if ${lt_cv_to_tool_file_cmd+:} false; then :
8178 $as_echo_n "(cached) " >&6
8179 else
8180 #assume ordinary cross tools, or native build.
8181 lt_cv_to_tool_file_cmd=func_convert_file_noop
8182 case $host in
8183 *-*-mingw* )
8184 case $build in
8185 *-*-mingw* ) # actually msys
8186 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8187 ;;
8188 esac
8189 ;;
8190 esac
8191
8192 fi
8193
8194 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8196 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8197
8198
8199
8200
8201
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8203 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8204 if ${lt_cv_ld_reload_flag+:} false; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 lt_cv_ld_reload_flag='-r'
8208 fi
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8210 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8211 reload_flag=$lt_cv_ld_reload_flag
8212 case $reload_flag in
8213 "" | " "*) ;;
8214 *) reload_flag=" $reload_flag" ;;
8215 esac
8216 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8217 case $host_os in
8218 cygwin* | mingw* | pw32* | cegcc*)
8219 if test "$GCC" != yes; then
8220 reload_cmds=false
8221 fi
8222 ;;
8223 darwin*)
8224 if test "$GCC" = yes; then
8225 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8226 else
8227 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8228 fi
8229 ;;
8230 esac
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240 if test -n "$ac_tool_prefix"; then
8241 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8242 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244 $as_echo_n "checking for $ac_word... " >&6; }
8245 if ${ac_cv_prog_OBJDUMP+:} false; then :
8246 $as_echo_n "(cached) " >&6
8247 else
8248 if test -n "$OBJDUMP"; then
8249 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8250 else
8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252 for as_dir in $PATH
8253 do
8254 IFS=$as_save_IFS
8255 test -z "$as_dir" && as_dir=.
8256 for ac_exec_ext in '' $ac_executable_extensions; do
8257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8258 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8260 break 2
8261 fi
8262 done
8263 done
8264 IFS=$as_save_IFS
8265
8266 fi
8267 fi
8268 OBJDUMP=$ac_cv_prog_OBJDUMP
8269 if test -n "$OBJDUMP"; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8271 $as_echo "$OBJDUMP" >&6; }
8272 else
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8275 fi
8276
8277
8278 fi
8279 if test -z "$ac_cv_prog_OBJDUMP"; then
8280 ac_ct_OBJDUMP=$OBJDUMP
8281 # Extract the first word of "objdump", so it can be a program name with args.
8282 set dummy objdump; ac_word=$2
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8284 $as_echo_n "checking for $ac_word... " >&6; }
8285 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8286 $as_echo_n "(cached) " >&6
8287 else
8288 if test -n "$ac_ct_OBJDUMP"; then
8289 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8290 else
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292 for as_dir in $PATH
8293 do
8294 IFS=$as_save_IFS
8295 test -z "$as_dir" && as_dir=.
8296 for ac_exec_ext in '' $ac_executable_extensions; do
8297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8298 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8300 break 2
8301 fi
8302 done
8303 done
8304 IFS=$as_save_IFS
8305
8306 fi
8307 fi
8308 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8309 if test -n "$ac_ct_OBJDUMP"; then
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8311 $as_echo "$ac_ct_OBJDUMP" >&6; }
8312 else
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314 $as_echo "no" >&6; }
8315 fi
8316
8317 if test "x$ac_ct_OBJDUMP" = x; then
8318 OBJDUMP="false"
8319 else
8320 case $cross_compiling:$ac_tool_warned in
8321 yes:)
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8324 ac_tool_warned=yes ;;
8325 esac
8326 OBJDUMP=$ac_ct_OBJDUMP
8327 fi
8328 else
8329 OBJDUMP="$ac_cv_prog_OBJDUMP"
8330 fi
8331
8332 test -z "$OBJDUMP" && OBJDUMP=objdump
8333
8334
8335
8336
8337
8338
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8340 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8341 if ${lt_cv_deplibs_check_method+:} false; then :
8342 $as_echo_n "(cached) " >&6
8343 else
8344 lt_cv_file_magic_cmd='$MAGIC_CMD'
8345 lt_cv_file_magic_test_file=
8346 lt_cv_deplibs_check_method='unknown'
8347 # Need to set the preceding variable on all platforms that support
8348 # interlibrary dependencies.
8349 # 'none' -- dependencies not supported.
8350 # `unknown' -- same as none, but documents that we really don't know.
8351 # 'pass_all' -- all dependencies passed with no checks.
8352 # 'test_compile' -- check by making test program.
8353 # 'file_magic [[regex]]' -- check by looking for files in library path
8354 # which responds to the $file_magic_cmd with a given extended regex.
8355 # If you have `file' or equivalent on your system and you're not sure
8356 # whether `pass_all' will *always* work, you probably want this one.
8357
8358 case $host_os in
8359 aix[4-9]*)
8360 lt_cv_deplibs_check_method=pass_all
8361 ;;
8362
8363 beos*)
8364 lt_cv_deplibs_check_method=pass_all
8365 ;;
8366
8367 bsdi[45]*)
8368 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8369 lt_cv_file_magic_cmd='/usr/bin/file -L'
8370 lt_cv_file_magic_test_file=/shlib/libc.so
8371 ;;
8372
8373 cygwin*)
8374 # func_win32_libid is a shell function defined in ltmain.sh
8375 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8376 lt_cv_file_magic_cmd='func_win32_libid'
8377 ;;
8378
8379 mingw* | pw32*)
8380 # Base MSYS/MinGW do not provide the 'file' command needed by
8381 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8382 # unless we find 'file', for example because we are cross-compiling.
8383 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8384 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8385 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8386 lt_cv_file_magic_cmd='func_win32_libid'
8387 else
8388 # Keep this pattern in sync with the one in func_win32_libid.
8389 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8390 lt_cv_file_magic_cmd='$OBJDUMP -f'
8391 fi
8392 ;;
8393
8394 cegcc*)
8395 # use the weaker test based on 'objdump'. See mingw*.
8396 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8397 lt_cv_file_magic_cmd='$OBJDUMP -f'
8398 ;;
8399
8400 darwin* | rhapsody*)
8401 lt_cv_deplibs_check_method=pass_all
8402 ;;
8403
8404 freebsd* | dragonfly*)
8405 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8406 case $host_cpu in
8407 i*86 )
8408 # Not sure whether the presence of OpenBSD here was a mistake.
8409 # Let's accept both of them until this is cleared up.
8410 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8411 lt_cv_file_magic_cmd=/usr/bin/file
8412 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8413 ;;
8414 esac
8415 else
8416 lt_cv_deplibs_check_method=pass_all
8417 fi
8418 ;;
8419
8420 haiku*)
8421 lt_cv_deplibs_check_method=pass_all
8422 ;;
8423
8424 hpux10.20* | hpux11*)
8425 lt_cv_file_magic_cmd=/usr/bin/file
8426 case $host_cpu in
8427 ia64*)
8428 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8429 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8430 ;;
8431 hppa*64*)
8432 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]'
8433 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8434 ;;
8435 *)
8436 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8437 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8438 ;;
8439 esac
8440 ;;
8441
8442 interix[3-9]*)
8443 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8444 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8445 ;;
8446
8447 irix5* | irix6* | nonstopux*)
8448 case $LD in
8449 *-32|*"-32 ") libmagic=32-bit;;
8450 *-n32|*"-n32 ") libmagic=N32;;
8451 *-64|*"-64 ") libmagic=64-bit;;
8452 *) libmagic=never-match;;
8453 esac
8454 lt_cv_deplibs_check_method=pass_all
8455 ;;
8456
8457 # This must be glibc/ELF.
8458 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8459 lt_cv_deplibs_check_method=pass_all
8460 ;;
8461
8462 netbsd* | netbsdelf*-gnu)
8463 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8464 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8465 else
8466 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8467 fi
8468 ;;
8469
8470 newos6*)
8471 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8472 lt_cv_file_magic_cmd=/usr/bin/file
8473 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8474 ;;
8475
8476 *nto* | *qnx*)
8477 lt_cv_deplibs_check_method=pass_all
8478 ;;
8479
8480 openbsd*)
8481 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8482 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8483 else
8484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8485 fi
8486 ;;
8487
8488 osf3* | osf4* | osf5*)
8489 lt_cv_deplibs_check_method=pass_all
8490 ;;
8491
8492 rdos*)
8493 lt_cv_deplibs_check_method=pass_all
8494 ;;
8495
8496 solaris*)
8497 lt_cv_deplibs_check_method=pass_all
8498 ;;
8499
8500 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8501 lt_cv_deplibs_check_method=pass_all
8502 ;;
8503
8504 sysv4 | sysv4.3*)
8505 case $host_vendor in
8506 motorola)
8507 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]'
8508 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8509 ;;
8510 ncr)
8511 lt_cv_deplibs_check_method=pass_all
8512 ;;
8513 sequent)
8514 lt_cv_file_magic_cmd='/bin/file'
8515 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8516 ;;
8517 sni)
8518 lt_cv_file_magic_cmd='/bin/file'
8519 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8520 lt_cv_file_magic_test_file=/lib/libc.so
8521 ;;
8522 siemens)
8523 lt_cv_deplibs_check_method=pass_all
8524 ;;
8525 pc)
8526 lt_cv_deplibs_check_method=pass_all
8527 ;;
8528 esac
8529 ;;
8530
8531 tpf*)
8532 lt_cv_deplibs_check_method=pass_all
8533 ;;
8534 esac
8535
8536 fi
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8538 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8539
8540 file_magic_glob=
8541 want_nocaseglob=no
8542 if test "$build" = "$host"; then
8543 case $host_os in
8544 mingw* | pw32*)
8545 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8546 want_nocaseglob=yes
8547 else
8548 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8549 fi
8550 ;;
8551 esac
8552 fi
8553
8554 file_magic_cmd=$lt_cv_file_magic_cmd
8555 deplibs_check_method=$lt_cv_deplibs_check_method
8556 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579 if test -n "$ac_tool_prefix"; then
8580 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8581 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if ${ac_cv_prog_DLLTOOL+:} false; then :
8585 $as_echo_n "(cached) " >&6
8586 else
8587 if test -n "$DLLTOOL"; then
8588 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8589 else
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 for as_dir in $PATH
8592 do
8593 IFS=$as_save_IFS
8594 test -z "$as_dir" && as_dir=.
8595 for ac_exec_ext in '' $ac_executable_extensions; do
8596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8597 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8599 break 2
8600 fi
8601 done
8602 done
8603 IFS=$as_save_IFS
8604
8605 fi
8606 fi
8607 DLLTOOL=$ac_cv_prog_DLLTOOL
8608 if test -n "$DLLTOOL"; then
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8610 $as_echo "$DLLTOOL" >&6; }
8611 else
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
8614 fi
8615
8616
8617 fi
8618 if test -z "$ac_cv_prog_DLLTOOL"; then
8619 ac_ct_DLLTOOL=$DLLTOOL
8620 # Extract the first word of "dlltool", so it can be a program name with args.
8621 set dummy dlltool; ac_word=$2
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8623 $as_echo_n "checking for $ac_word... " >&6; }
8624 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8625 $as_echo_n "(cached) " >&6
8626 else
8627 if test -n "$ac_ct_DLLTOOL"; then
8628 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8629 else
8630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631 for as_dir in $PATH
8632 do
8633 IFS=$as_save_IFS
8634 test -z "$as_dir" && as_dir=.
8635 for ac_exec_ext in '' $ac_executable_extensions; do
8636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8637 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8639 break 2
8640 fi
8641 done
8642 done
8643 IFS=$as_save_IFS
8644
8645 fi
8646 fi
8647 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8648 if test -n "$ac_ct_DLLTOOL"; then
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8650 $as_echo "$ac_ct_DLLTOOL" >&6; }
8651 else
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653 $as_echo "no" >&6; }
8654 fi
8655
8656 if test "x$ac_ct_DLLTOOL" = x; then
8657 DLLTOOL="false"
8658 else
8659 case $cross_compiling:$ac_tool_warned in
8660 yes:)
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8663 ac_tool_warned=yes ;;
8664 esac
8665 DLLTOOL=$ac_ct_DLLTOOL
8666 fi
8667 else
8668 DLLTOOL="$ac_cv_prog_DLLTOOL"
8669 fi
8670
8671 test -z "$DLLTOOL" && DLLTOOL=dlltool
8672
8673
8674
8675
8676
8677
8678
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8680 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8681 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8682 $as_echo_n "(cached) " >&6
8683 else
8684 lt_cv_sharedlib_from_linklib_cmd='unknown'
8685
8686 case $host_os in
8687 cygwin* | mingw* | pw32* | cegcc*)
8688 # two different shell functions defined in ltmain.sh
8689 # decide which to use based on capabilities of $DLLTOOL
8690 case `$DLLTOOL --help 2>&1` in
8691 *--identify-strict*)
8692 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8693 ;;
8694 *)
8695 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8696 ;;
8697 esac
8698 ;;
8699 *)
8700 # fallback: assume linklib IS sharedlib
8701 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8702 ;;
8703 esac
8704
8705 fi
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8707 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8708 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8709 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8710
8711
8712
8713
8714
8715
8716
8717 if test -n "$ac_tool_prefix"; then
8718 for ac_prog in ar
8719 do
8720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8721 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8723 $as_echo_n "checking for $ac_word... " >&6; }
8724 if ${ac_cv_prog_AR+:} false; then :
8725 $as_echo_n "(cached) " >&6
8726 else
8727 if test -n "$AR"; then
8728 ac_cv_prog_AR="$AR" # Let the user override the test.
8729 else
8730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8731 for as_dir in $PATH
8732 do
8733 IFS=$as_save_IFS
8734 test -z "$as_dir" && as_dir=.
8735 for ac_exec_ext in '' $ac_executable_extensions; do
8736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8737 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8739 break 2
8740 fi
8741 done
8742 done
8743 IFS=$as_save_IFS
8744
8745 fi
8746 fi
8747 AR=$ac_cv_prog_AR
8748 if test -n "$AR"; then
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8750 $as_echo "$AR" >&6; }
8751 else
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8753 $as_echo "no" >&6; }
8754 fi
8755
8756
8757 test -n "$AR" && break
8758 done
8759 fi
8760 if test -z "$AR"; then
8761 ac_ct_AR=$AR
8762 for ac_prog in ar
8763 do
8764 # Extract the first word of "$ac_prog", so it can be a program name with args.
8765 set dummy $ac_prog; ac_word=$2
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8767 $as_echo_n "checking for $ac_word... " >&6; }
8768 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8769 $as_echo_n "(cached) " >&6
8770 else
8771 if test -n "$ac_ct_AR"; then
8772 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8773 else
8774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775 for as_dir in $PATH
8776 do
8777 IFS=$as_save_IFS
8778 test -z "$as_dir" && as_dir=.
8779 for ac_exec_ext in '' $ac_executable_extensions; do
8780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8781 ac_cv_prog_ac_ct_AR="$ac_prog"
8782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8783 break 2
8784 fi
8785 done
8786 done
8787 IFS=$as_save_IFS
8788
8789 fi
8790 fi
8791 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8792 if test -n "$ac_ct_AR"; then
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8794 $as_echo "$ac_ct_AR" >&6; }
8795 else
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797 $as_echo "no" >&6; }
8798 fi
8799
8800
8801 test -n "$ac_ct_AR" && break
8802 done
8803
8804 if test "x$ac_ct_AR" = x; then
8805 AR="false"
8806 else
8807 case $cross_compiling:$ac_tool_warned in
8808 yes:)
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8811 ac_tool_warned=yes ;;
8812 esac
8813 AR=$ac_ct_AR
8814 fi
8815 fi
8816
8817 : ${AR=ar}
8818 : ${AR_FLAGS=cru}
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8831 $as_echo_n "checking for archiver @FILE support... " >&6; }
8832 if ${lt_cv_ar_at_file+:} false; then :
8833 $as_echo_n "(cached) " >&6
8834 else
8835 lt_cv_ar_at_file=no
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8838
8839 int
8840 main ()
8841 {
8842
8843 ;
8844 return 0;
8845 }
8846 _ACEOF
8847 if ac_fn_c_try_compile "$LINENO"; then :
8848 echo conftest.$ac_objext > conftest.lst
8849 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8851 (eval $lt_ar_try) 2>&5
8852 ac_status=$?
8853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8854 test $ac_status = 0; }
8855 if test "$ac_status" -eq 0; then
8856 # Ensure the archiver fails upon bogus file names.
8857 rm -f conftest.$ac_objext libconftest.a
8858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8859 (eval $lt_ar_try) 2>&5
8860 ac_status=$?
8861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8862 test $ac_status = 0; }
8863 if test "$ac_status" -ne 0; then
8864 lt_cv_ar_at_file=@
8865 fi
8866 fi
8867 rm -f conftest.* libconftest.a
8868
8869 fi
8870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8871
8872 fi
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8874 $as_echo "$lt_cv_ar_at_file" >&6; }
8875
8876 if test "x$lt_cv_ar_at_file" = xno; then
8877 archiver_list_spec=
8878 else
8879 archiver_list_spec=$lt_cv_ar_at_file
8880 fi
8881
8882
8883
8884
8885
8886
8887
8888 if test -n "$ac_tool_prefix"; then
8889 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8890 set dummy ${ac_tool_prefix}strip; ac_word=$2
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8892 $as_echo_n "checking for $ac_word... " >&6; }
8893 if ${ac_cv_prog_STRIP+:} false; then :
8894 $as_echo_n "(cached) " >&6
8895 else
8896 if test -n "$STRIP"; then
8897 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8898 else
8899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8900 for as_dir in $PATH
8901 do
8902 IFS=$as_save_IFS
8903 test -z "$as_dir" && as_dir=.
8904 for ac_exec_ext in '' $ac_executable_extensions; do
8905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8906 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8908 break 2
8909 fi
8910 done
8911 done
8912 IFS=$as_save_IFS
8913
8914 fi
8915 fi
8916 STRIP=$ac_cv_prog_STRIP
8917 if test -n "$STRIP"; then
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8919 $as_echo "$STRIP" >&6; }
8920 else
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8922 $as_echo "no" >&6; }
8923 fi
8924
8925
8926 fi
8927 if test -z "$ac_cv_prog_STRIP"; then
8928 ac_ct_STRIP=$STRIP
8929 # Extract the first word of "strip", so it can be a program name with args.
8930 set dummy strip; ac_word=$2
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8932 $as_echo_n "checking for $ac_word... " >&6; }
8933 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8934 $as_echo_n "(cached) " >&6
8935 else
8936 if test -n "$ac_ct_STRIP"; then
8937 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8938 else
8939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8940 for as_dir in $PATH
8941 do
8942 IFS=$as_save_IFS
8943 test -z "$as_dir" && as_dir=.
8944 for ac_exec_ext in '' $ac_executable_extensions; do
8945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8946 ac_cv_prog_ac_ct_STRIP="strip"
8947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8948 break 2
8949 fi
8950 done
8951 done
8952 IFS=$as_save_IFS
8953
8954 fi
8955 fi
8956 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8957 if test -n "$ac_ct_STRIP"; then
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8959 $as_echo "$ac_ct_STRIP" >&6; }
8960 else
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8962 $as_echo "no" >&6; }
8963 fi
8964
8965 if test "x$ac_ct_STRIP" = x; then
8966 STRIP=":"
8967 else
8968 case $cross_compiling:$ac_tool_warned in
8969 yes:)
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8972 ac_tool_warned=yes ;;
8973 esac
8974 STRIP=$ac_ct_STRIP
8975 fi
8976 else
8977 STRIP="$ac_cv_prog_STRIP"
8978 fi
8979
8980 test -z "$STRIP" && STRIP=:
8981
8982
8983
8984
8985
8986
8987 if test -n "$ac_tool_prefix"; then
8988 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8989 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8991 $as_echo_n "checking for $ac_word... " >&6; }
8992 if ${ac_cv_prog_RANLIB+:} false; then :
8993 $as_echo_n "(cached) " >&6
8994 else
8995 if test -n "$RANLIB"; then
8996 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8997 else
8998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8999 for as_dir in $PATH
9000 do
9001 IFS=$as_save_IFS
9002 test -z "$as_dir" && as_dir=.
9003 for ac_exec_ext in '' $ac_executable_extensions; do
9004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9005 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9007 break 2
9008 fi
9009 done
9010 done
9011 IFS=$as_save_IFS
9012
9013 fi
9014 fi
9015 RANLIB=$ac_cv_prog_RANLIB
9016 if test -n "$RANLIB"; then
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9018 $as_echo "$RANLIB" >&6; }
9019 else
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9021 $as_echo "no" >&6; }
9022 fi
9023
9024
9025 fi
9026 if test -z "$ac_cv_prog_RANLIB"; then
9027 ac_ct_RANLIB=$RANLIB
9028 # Extract the first word of "ranlib", so it can be a program name with args.
9029 set dummy ranlib; ac_word=$2
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9031 $as_echo_n "checking for $ac_word... " >&6; }
9032 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9033 $as_echo_n "(cached) " >&6
9034 else
9035 if test -n "$ac_ct_RANLIB"; then
9036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9037 else
9038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039 for as_dir in $PATH
9040 do
9041 IFS=$as_save_IFS
9042 test -z "$as_dir" && as_dir=.
9043 for ac_exec_ext in '' $ac_executable_extensions; do
9044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9045 ac_cv_prog_ac_ct_RANLIB="ranlib"
9046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9047 break 2
9048 fi
9049 done
9050 done
9051 IFS=$as_save_IFS
9052
9053 fi
9054 fi
9055 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9056 if test -n "$ac_ct_RANLIB"; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9058 $as_echo "$ac_ct_RANLIB" >&6; }
9059 else
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061 $as_echo "no" >&6; }
9062 fi
9063
9064 if test "x$ac_ct_RANLIB" = x; then
9065 RANLIB=":"
9066 else
9067 case $cross_compiling:$ac_tool_warned in
9068 yes:)
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9071 ac_tool_warned=yes ;;
9072 esac
9073 RANLIB=$ac_ct_RANLIB
9074 fi
9075 else
9076 RANLIB="$ac_cv_prog_RANLIB"
9077 fi
9078
9079 test -z "$RANLIB" && RANLIB=:
9080
9081
9082
9083
9084
9085
9086 # Determine commands to create old-style static archives.
9087 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9088 old_postinstall_cmds='chmod 644 $oldlib'
9089 old_postuninstall_cmds=
9090
9091 if test -n "$RANLIB"; then
9092 case $host_os in
9093 openbsd*)
9094 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9095 ;;
9096 *)
9097 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9098 ;;
9099 esac
9100 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9101 fi
9102
9103 case $host_os in
9104 darwin*)
9105 lock_old_archive_extraction=yes ;;
9106 *)
9107 lock_old_archive_extraction=no ;;
9108 esac
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148 # If no C compiler was specified, use CC.
9149 LTCC=${LTCC-"$CC"}
9150
9151 # If no C compiler flags were specified, use CFLAGS.
9152 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9153
9154 # Allow CC to be a program name with arguments.
9155 compiler=$CC
9156
9157
9158 # Check for command to grab the raw symbol name followed by C symbol from nm.
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9160 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9161 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9162 $as_echo_n "(cached) " >&6
9163 else
9164
9165 # These are sane defaults that work on at least a few old systems.
9166 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9167
9168 # Character class describing NM global symbol codes.
9169 symcode='[BCDEGRST]'
9170
9171 # Regexp to match symbols that can be accessed directly from C.
9172 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9173
9174 # Define system-specific variables.
9175 case $host_os in
9176 aix*)
9177 symcode='[BCDT]'
9178 ;;
9179 cygwin* | mingw* | pw32* | cegcc*)
9180 symcode='[ABCDGISTW]'
9181 ;;
9182 hpux*)
9183 if test "$host_cpu" = ia64; then
9184 symcode='[ABCDEGRST]'
9185 fi
9186 ;;
9187 irix* | nonstopux*)
9188 symcode='[BCDEGRST]'
9189 ;;
9190 osf*)
9191 symcode='[BCDEGQRST]'
9192 ;;
9193 solaris*)
9194 symcode='[BDRT]'
9195 ;;
9196 sco3.2v5*)
9197 symcode='[DT]'
9198 ;;
9199 sysv4.2uw2*)
9200 symcode='[DT]'
9201 ;;
9202 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9203 symcode='[ABDT]'
9204 ;;
9205 sysv4)
9206 symcode='[DFNSTU]'
9207 ;;
9208 esac
9209
9210 # If we're using GNU nm, then use its standard symbol codes.
9211 case `$NM -V 2>&1` in
9212 *GNU* | *'with BFD'*)
9213 symcode='[ABCDGIRSTW]' ;;
9214 esac
9215
9216 # Transform an extracted symbol line into a proper C declaration.
9217 # Some systems (esp. on ia64) link data and code symbols differently,
9218 # so use this general approach.
9219 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9220
9221 # Transform an extracted symbol line into symbol name and symbol address
9222 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9223 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
9224
9225 # Handle CRLF in mingw tool chain
9226 opt_cr=
9227 case $build_os in
9228 mingw*)
9229 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9230 ;;
9231 esac
9232
9233 # Try without a prefix underscore, then with it.
9234 for ac_symprfx in "" "_"; do
9235
9236 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9237 symxfrm="\\1 $ac_symprfx\\2 \\2"
9238
9239 # Write the raw and C identifiers.
9240 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9241 # Fake it for dumpbin and say T for any non-static function
9242 # and D for any global variable.
9243 # Also find C++ and __fastcall symbols from MSVC++,
9244 # which start with @ or ?.
9245 lt_cv_sys_global_symbol_pipe="$AWK '"\
9246 " {last_section=section; section=\$ 3};"\
9247 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9248 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9249 " \$ 0!~/External *\|/{next};"\
9250 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9251 " {if(hide[section]) next};"\
9252 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9253 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9254 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9255 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9256 " ' prfx=^$ac_symprfx"
9257 else
9258 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9259 fi
9260 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9261
9262 # Check to see that the pipe works correctly.
9263 pipe_works=no
9264
9265 rm -f conftest*
9266 cat > conftest.$ac_ext <<_LT_EOF
9267 #ifdef __cplusplus
9268 extern "C" {
9269 #endif
9270 char nm_test_var;
9271 void nm_test_func(void);
9272 void nm_test_func(void){}
9273 #ifdef __cplusplus
9274 }
9275 #endif
9276 int main(){nm_test_var='a';nm_test_func();return(0);}
9277 _LT_EOF
9278
9279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9280 (eval $ac_compile) 2>&5
9281 ac_status=$?
9282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9283 test $ac_status = 0; }; then
9284 # Now try to grab the symbols.
9285 nlist=conftest.nm
9286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9287 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9288 ac_status=$?
9289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9290 test $ac_status = 0; } && test -s "$nlist"; then
9291 # Try sorting and uniquifying the output.
9292 if sort "$nlist" | uniq > "$nlist"T; then
9293 mv -f "$nlist"T "$nlist"
9294 else
9295 rm -f "$nlist"T
9296 fi
9297
9298 # Make sure that we snagged all the symbols we need.
9299 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9300 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9301 cat <<_LT_EOF > conftest.$ac_ext
9302 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9303 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9304 /* DATA imports from DLLs on WIN32 con't be const, because runtime
9305 relocations are performed -- see ld's documentation on pseudo-relocs. */
9306 # define LT_DLSYM_CONST
9307 #elif defined(__osf__)
9308 /* This system does not cope well with relocations in const data. */
9309 # define LT_DLSYM_CONST
9310 #else
9311 # define LT_DLSYM_CONST const
9312 #endif
9313
9314 #ifdef __cplusplus
9315 extern "C" {
9316 #endif
9317
9318 _LT_EOF
9319 # Now generate the symbol file.
9320 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9321
9322 cat <<_LT_EOF >> conftest.$ac_ext
9323
9324 /* The mapping between symbol names and symbols. */
9325 LT_DLSYM_CONST struct {
9326 const char *name;
9327 void *address;
9328 }
9329 lt__PROGRAM__LTX_preloaded_symbols[] =
9330 {
9331 { "@PROGRAM@", (void *) 0 },
9332 _LT_EOF
9333 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9334 cat <<\_LT_EOF >> conftest.$ac_ext
9335 {0, (void *) 0}
9336 };
9337
9338 /* This works around a problem in FreeBSD linker */
9339 #ifdef FREEBSD_WORKAROUND
9340 static const void *lt_preloaded_setup() {
9341 return lt__PROGRAM__LTX_preloaded_symbols;
9342 }
9343 #endif
9344
9345 #ifdef __cplusplus
9346 }
9347 #endif
9348 _LT_EOF
9349 # Now try linking the two files.
9350 mv conftest.$ac_objext conftstm.$ac_objext
9351 lt_globsym_save_LIBS=$LIBS
9352 lt_globsym_save_CFLAGS=$CFLAGS
9353 LIBS="conftstm.$ac_objext"
9354 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9356 (eval $ac_link) 2>&5
9357 ac_status=$?
9358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9359 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9360 pipe_works=yes
9361 fi
9362 LIBS=$lt_globsym_save_LIBS
9363 CFLAGS=$lt_globsym_save_CFLAGS
9364 else
9365 echo "cannot find nm_test_func in $nlist" >&5
9366 fi
9367 else
9368 echo "cannot find nm_test_var in $nlist" >&5
9369 fi
9370 else
9371 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9372 fi
9373 else
9374 echo "$progname: failed program was:" >&5
9375 cat conftest.$ac_ext >&5
9376 fi
9377 rm -rf conftest* conftst*
9378
9379 # Do not use the global_symbol_pipe unless it works.
9380 if test "$pipe_works" = yes; then
9381 break
9382 else
9383 lt_cv_sys_global_symbol_pipe=
9384 fi
9385 done
9386
9387 fi
9388
9389 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9390 lt_cv_sys_global_symbol_to_cdecl=
9391 fi
9392 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9394 $as_echo "failed" >&6; }
9395 else
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9397 $as_echo "ok" >&6; }
9398 fi
9399
9400 # Response file support.
9401 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9402 nm_file_list_spec='@'
9403 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9404 nm_file_list_spec='@'
9405 fi
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9434 $as_echo_n "checking for sysroot... " >&6; }
9435
9436 # Check whether --with-sysroot was given.
9437 if test "${with_sysroot+set}" = set; then :
9438 withval=$with_sysroot;
9439 else
9440 with_sysroot=no
9441 fi
9442
9443
9444 lt_sysroot=
9445 case ${with_sysroot} in #(
9446 yes)
9447 if test "$GCC" = yes; then
9448 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9449 fi
9450 ;; #(
9451 /*)
9452 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9453 ;; #(
9454 no|'')
9455 ;; #(
9456 *)
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9458 $as_echo "${with_sysroot}" >&6; }
9459 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9460 ;;
9461 esac
9462
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9464 $as_echo "${lt_sysroot:-no}" >&6; }
9465
9466
9467
9468
9469
9470 # Check whether --enable-libtool-lock was given.
9471 if test "${enable_libtool_lock+set}" = set; then :
9472 enableval=$enable_libtool_lock;
9473 fi
9474
9475 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9476
9477 # Some flags need to be propagated to the compiler or linker for good
9478 # libtool support.
9479 case $host in
9480 ia64-*-hpux*)
9481 # Find out which ABI we are using.
9482 echo 'int i;' > conftest.$ac_ext
9483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9484 (eval $ac_compile) 2>&5
9485 ac_status=$?
9486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9487 test $ac_status = 0; }; then
9488 case `/usr/bin/file conftest.$ac_objext` in
9489 *ELF-32*)
9490 HPUX_IA64_MODE="32"
9491 ;;
9492 *ELF-64*)
9493 HPUX_IA64_MODE="64"
9494 ;;
9495 esac
9496 fi
9497 rm -rf conftest*
9498 ;;
9499 *-*-irix6*)
9500 # Find out which ABI we are using.
9501 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9503 (eval $ac_compile) 2>&5
9504 ac_status=$?
9505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9506 test $ac_status = 0; }; then
9507 if test "$lt_cv_prog_gnu_ld" = yes; then
9508 case `/usr/bin/file conftest.$ac_objext` in
9509 *32-bit*)
9510 LD="${LD-ld} -melf32bsmip"
9511 ;;
9512 *N32*)
9513 LD="${LD-ld} -melf32bmipn32"
9514 ;;
9515 *64-bit*)
9516 LD="${LD-ld} -melf64bmip"
9517 ;;
9518 esac
9519 else
9520 case `/usr/bin/file conftest.$ac_objext` in
9521 *32-bit*)
9522 LD="${LD-ld} -32"
9523 ;;
9524 *N32*)
9525 LD="${LD-ld} -n32"
9526 ;;
9527 *64-bit*)
9528 LD="${LD-ld} -64"
9529 ;;
9530 esac
9531 fi
9532 fi
9533 rm -rf conftest*
9534 ;;
9535
9536 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9537 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9538 # Find out which ABI we are using.
9539 echo 'int i;' > conftest.$ac_ext
9540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9541 (eval $ac_compile) 2>&5
9542 ac_status=$?
9543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9544 test $ac_status = 0; }; then
9545 case `/usr/bin/file conftest.o` in
9546 *32-bit*)
9547 case $host in
9548 x86_64-*kfreebsd*-gnu)
9549 LD="${LD-ld} -m elf_i386_fbsd"
9550 ;;
9551 x86_64-*linux*)
9552 case `/usr/bin/file conftest.o` in
9553 *x86-64*)
9554 LD="${LD-ld} -m elf32_x86_64"
9555 ;;
9556 *)
9557 LD="${LD-ld} -m elf_i386"
9558 ;;
9559 esac
9560 ;;
9561 ppc64-*linux*|powerpc64-*linux*)
9562 LD="${LD-ld} -m elf32ppclinux"
9563 ;;
9564 s390x-*linux*)
9565 LD="${LD-ld} -m elf_s390"
9566 ;;
9567 sparc64-*linux*)
9568 LD="${LD-ld} -m elf32_sparc"
9569 ;;
9570 esac
9571 ;;
9572 *64-bit*)
9573 case $host in
9574 x86_64-*kfreebsd*-gnu)
9575 LD="${LD-ld} -m elf_x86_64_fbsd"
9576 ;;
9577 x86_64-*linux*)
9578 LD="${LD-ld} -m elf_x86_64"
9579 ;;
9580 ppc*-*linux*|powerpc*-*linux*)
9581 LD="${LD-ld} -m elf64ppc"
9582 ;;
9583 s390*-*linux*|s390*-*tpf*)
9584 LD="${LD-ld} -m elf64_s390"
9585 ;;
9586 sparc*-*linux*)
9587 LD="${LD-ld} -m elf64_sparc"
9588 ;;
9589 esac
9590 ;;
9591 esac
9592 fi
9593 rm -rf conftest*
9594 ;;
9595
9596 *-*-sco3.2v5*)
9597 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9598 SAVE_CFLAGS="$CFLAGS"
9599 CFLAGS="$CFLAGS -belf"
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9601 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9602 if ${lt_cv_cc_needs_belf+:} false; then :
9603 $as_echo_n "(cached) " >&6
9604 else
9605 ac_ext=c
9606 ac_cpp='$CPP $CPPFLAGS'
9607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9610
9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612 /* end confdefs.h. */
9613
9614 int
9615 main ()
9616 {
9617
9618 ;
9619 return 0;
9620 }
9621 _ACEOF
9622 if ac_fn_c_try_link "$LINENO"; then :
9623 lt_cv_cc_needs_belf=yes
9624 else
9625 lt_cv_cc_needs_belf=no
9626 fi
9627 rm -f core conftest.err conftest.$ac_objext \
9628 conftest$ac_exeext conftest.$ac_ext
9629 ac_ext=c
9630 ac_cpp='$CPP $CPPFLAGS'
9631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9634
9635 fi
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9637 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9638 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9639 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9640 CFLAGS="$SAVE_CFLAGS"
9641 fi
9642 ;;
9643 *-*solaris*)
9644 # Find out which ABI we are using.
9645 echo 'int i;' > conftest.$ac_ext
9646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9647 (eval $ac_compile) 2>&5
9648 ac_status=$?
9649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9650 test $ac_status = 0; }; then
9651 case `/usr/bin/file conftest.o` in
9652 *64-bit*)
9653 case $lt_cv_prog_gnu_ld in
9654 yes*)
9655 case $host in
9656 i?86-*-solaris*)
9657 LD="${LD-ld} -m elf_x86_64"
9658 ;;
9659 sparc*-*-solaris*)
9660 LD="${LD-ld} -m elf64_sparc"
9661 ;;
9662 esac
9663 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9664 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9665 LD="${LD-ld}_sol2"
9666 fi
9667 ;;
9668 *)
9669 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9670 LD="${LD-ld} -64"
9671 fi
9672 ;;
9673 esac
9674 ;;
9675 esac
9676 fi
9677 rm -rf conftest*
9678 ;;
9679 esac
9680
9681 need_locks="$enable_libtool_lock"
9682
9683 if test -n "$ac_tool_prefix"; then
9684 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9685 set dummy ${ac_tool_prefix}mt; ac_word=$2
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9687 $as_echo_n "checking for $ac_word... " >&6; }
9688 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9689 $as_echo_n "(cached) " >&6
9690 else
9691 if test -n "$MANIFEST_TOOL"; then
9692 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9693 else
9694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695 for as_dir in $PATH
9696 do
9697 IFS=$as_save_IFS
9698 test -z "$as_dir" && as_dir=.
9699 for ac_exec_ext in '' $ac_executable_extensions; do
9700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9701 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9703 break 2
9704 fi
9705 done
9706 done
9707 IFS=$as_save_IFS
9708
9709 fi
9710 fi
9711 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9712 if test -n "$MANIFEST_TOOL"; then
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9714 $as_echo "$MANIFEST_TOOL" >&6; }
9715 else
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9717 $as_echo "no" >&6; }
9718 fi
9719
9720
9721 fi
9722 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9723 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9724 # Extract the first word of "mt", so it can be a program name with args.
9725 set dummy mt; ac_word=$2
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9727 $as_echo_n "checking for $ac_word... " >&6; }
9728 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9729 $as_echo_n "(cached) " >&6
9730 else
9731 if test -n "$ac_ct_MANIFEST_TOOL"; then
9732 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9733 else
9734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9735 for as_dir in $PATH
9736 do
9737 IFS=$as_save_IFS
9738 test -z "$as_dir" && as_dir=.
9739 for ac_exec_ext in '' $ac_executable_extensions; do
9740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9741 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9743 break 2
9744 fi
9745 done
9746 done
9747 IFS=$as_save_IFS
9748
9749 fi
9750 fi
9751 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9752 if test -n "$ac_ct_MANIFEST_TOOL"; then
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9754 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9755 else
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9757 $as_echo "no" >&6; }
9758 fi
9759
9760 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9761 MANIFEST_TOOL=":"
9762 else
9763 case $cross_compiling:$ac_tool_warned in
9764 yes:)
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9767 ac_tool_warned=yes ;;
9768 esac
9769 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9770 fi
9771 else
9772 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9773 fi
9774
9775 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9777 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9778 if ${lt_cv_path_mainfest_tool+:} false; then :
9779 $as_echo_n "(cached) " >&6
9780 else
9781 lt_cv_path_mainfest_tool=no
9782 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9783 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9784 cat conftest.err >&5
9785 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9786 lt_cv_path_mainfest_tool=yes
9787 fi
9788 rm -f conftest*
9789 fi
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9791 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9792 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9793 MANIFEST_TOOL=:
9794 fi
9795
9796
9797
9798
9799
9800
9801 case $host_os in
9802 rhapsody* | darwin*)
9803 if test -n "$ac_tool_prefix"; then
9804 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9805 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9807 $as_echo_n "checking for $ac_word... " >&6; }
9808 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9809 $as_echo_n "(cached) " >&6
9810 else
9811 if test -n "$DSYMUTIL"; then
9812 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9813 else
9814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815 for as_dir in $PATH
9816 do
9817 IFS=$as_save_IFS
9818 test -z "$as_dir" && as_dir=.
9819 for ac_exec_ext in '' $ac_executable_extensions; do
9820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9821 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9823 break 2
9824 fi
9825 done
9826 done
9827 IFS=$as_save_IFS
9828
9829 fi
9830 fi
9831 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9832 if test -n "$DSYMUTIL"; then
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9834 $as_echo "$DSYMUTIL" >&6; }
9835 else
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9837 $as_echo "no" >&6; }
9838 fi
9839
9840
9841 fi
9842 if test -z "$ac_cv_prog_DSYMUTIL"; then
9843 ac_ct_DSYMUTIL=$DSYMUTIL
9844 # Extract the first word of "dsymutil", so it can be a program name with args.
9845 set dummy dsymutil; ac_word=$2
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9847 $as_echo_n "checking for $ac_word... " >&6; }
9848 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9849 $as_echo_n "(cached) " >&6
9850 else
9851 if test -n "$ac_ct_DSYMUTIL"; then
9852 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9853 else
9854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9855 for as_dir in $PATH
9856 do
9857 IFS=$as_save_IFS
9858 test -z "$as_dir" && as_dir=.
9859 for ac_exec_ext in '' $ac_executable_extensions; do
9860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9861 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9863 break 2
9864 fi
9865 done
9866 done
9867 IFS=$as_save_IFS
9868
9869 fi
9870 fi
9871 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9872 if test -n "$ac_ct_DSYMUTIL"; then
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9874 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9875 else
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9877 $as_echo "no" >&6; }
9878 fi
9879
9880 if test "x$ac_ct_DSYMUTIL" = x; then
9881 DSYMUTIL=":"
9882 else
9883 case $cross_compiling:$ac_tool_warned in
9884 yes:)
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9887 ac_tool_warned=yes ;;
9888 esac
9889 DSYMUTIL=$ac_ct_DSYMUTIL
9890 fi
9891 else
9892 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9893 fi
9894
9895 if test -n "$ac_tool_prefix"; then
9896 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9897 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9899 $as_echo_n "checking for $ac_word... " >&6; }
9900 if ${ac_cv_prog_NMEDIT+:} false; then :
9901 $as_echo_n "(cached) " >&6
9902 else
9903 if test -n "$NMEDIT"; then
9904 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9905 else
9906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9907 for as_dir in $PATH
9908 do
9909 IFS=$as_save_IFS
9910 test -z "$as_dir" && as_dir=.
9911 for ac_exec_ext in '' $ac_executable_extensions; do
9912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9913 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9915 break 2
9916 fi
9917 done
9918 done
9919 IFS=$as_save_IFS
9920
9921 fi
9922 fi
9923 NMEDIT=$ac_cv_prog_NMEDIT
9924 if test -n "$NMEDIT"; then
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9926 $as_echo "$NMEDIT" >&6; }
9927 else
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9929 $as_echo "no" >&6; }
9930 fi
9931
9932
9933 fi
9934 if test -z "$ac_cv_prog_NMEDIT"; then
9935 ac_ct_NMEDIT=$NMEDIT
9936 # Extract the first word of "nmedit", so it can be a program name with args.
9937 set dummy nmedit; ac_word=$2
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9939 $as_echo_n "checking for $ac_word... " >&6; }
9940 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9941 $as_echo_n "(cached) " >&6
9942 else
9943 if test -n "$ac_ct_NMEDIT"; then
9944 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9945 else
9946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9947 for as_dir in $PATH
9948 do
9949 IFS=$as_save_IFS
9950 test -z "$as_dir" && as_dir=.
9951 for ac_exec_ext in '' $ac_executable_extensions; do
9952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9953 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9955 break 2
9956 fi
9957 done
9958 done
9959 IFS=$as_save_IFS
9960
9961 fi
9962 fi
9963 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9964 if test -n "$ac_ct_NMEDIT"; then
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9966 $as_echo "$ac_ct_NMEDIT" >&6; }
9967 else
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9969 $as_echo "no" >&6; }
9970 fi
9971
9972 if test "x$ac_ct_NMEDIT" = x; then
9973 NMEDIT=":"
9974 else
9975 case $cross_compiling:$ac_tool_warned in
9976 yes:)
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9979 ac_tool_warned=yes ;;
9980 esac
9981 NMEDIT=$ac_ct_NMEDIT
9982 fi
9983 else
9984 NMEDIT="$ac_cv_prog_NMEDIT"
9985 fi
9986
9987 if test -n "$ac_tool_prefix"; then
9988 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9989 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9991 $as_echo_n "checking for $ac_word... " >&6; }
9992 if ${ac_cv_prog_LIPO+:} false; then :
9993 $as_echo_n "(cached) " >&6
9994 else
9995 if test -n "$LIPO"; then
9996 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9997 else
9998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9999 for as_dir in $PATH
10000 do
10001 IFS=$as_save_IFS
10002 test -z "$as_dir" && as_dir=.
10003 for ac_exec_ext in '' $ac_executable_extensions; do
10004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10005 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10007 break 2
10008 fi
10009 done
10010 done
10011 IFS=$as_save_IFS
10012
10013 fi
10014 fi
10015 LIPO=$ac_cv_prog_LIPO
10016 if test -n "$LIPO"; then
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10018 $as_echo "$LIPO" >&6; }
10019 else
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021 $as_echo "no" >&6; }
10022 fi
10023
10024
10025 fi
10026 if test -z "$ac_cv_prog_LIPO"; then
10027 ac_ct_LIPO=$LIPO
10028 # Extract the first word of "lipo", so it can be a program name with args.
10029 set dummy lipo; ac_word=$2
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10031 $as_echo_n "checking for $ac_word... " >&6; }
10032 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10033 $as_echo_n "(cached) " >&6
10034 else
10035 if test -n "$ac_ct_LIPO"; then
10036 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10037 else
10038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10039 for as_dir in $PATH
10040 do
10041 IFS=$as_save_IFS
10042 test -z "$as_dir" && as_dir=.
10043 for ac_exec_ext in '' $ac_executable_extensions; do
10044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10045 ac_cv_prog_ac_ct_LIPO="lipo"
10046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10047 break 2
10048 fi
10049 done
10050 done
10051 IFS=$as_save_IFS
10052
10053 fi
10054 fi
10055 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10056 if test -n "$ac_ct_LIPO"; then
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10058 $as_echo "$ac_ct_LIPO" >&6; }
10059 else
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10061 $as_echo "no" >&6; }
10062 fi
10063
10064 if test "x$ac_ct_LIPO" = x; then
10065 LIPO=":"
10066 else
10067 case $cross_compiling:$ac_tool_warned in
10068 yes:)
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10071 ac_tool_warned=yes ;;
10072 esac
10073 LIPO=$ac_ct_LIPO
10074 fi
10075 else
10076 LIPO="$ac_cv_prog_LIPO"
10077 fi
10078
10079 if test -n "$ac_tool_prefix"; then
10080 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10081 set dummy ${ac_tool_prefix}otool; ac_word=$2
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10083 $as_echo_n "checking for $ac_word... " >&6; }
10084 if ${ac_cv_prog_OTOOL+:} false; then :
10085 $as_echo_n "(cached) " >&6
10086 else
10087 if test -n "$OTOOL"; then
10088 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10089 else
10090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091 for as_dir in $PATH
10092 do
10093 IFS=$as_save_IFS
10094 test -z "$as_dir" && as_dir=.
10095 for ac_exec_ext in '' $ac_executable_extensions; do
10096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10097 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10099 break 2
10100 fi
10101 done
10102 done
10103 IFS=$as_save_IFS
10104
10105 fi
10106 fi
10107 OTOOL=$ac_cv_prog_OTOOL
10108 if test -n "$OTOOL"; then
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10110 $as_echo "$OTOOL" >&6; }
10111 else
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10113 $as_echo "no" >&6; }
10114 fi
10115
10116
10117 fi
10118 if test -z "$ac_cv_prog_OTOOL"; then
10119 ac_ct_OTOOL=$OTOOL
10120 # Extract the first word of "otool", so it can be a program name with args.
10121 set dummy otool; ac_word=$2
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10123 $as_echo_n "checking for $ac_word... " >&6; }
10124 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10125 $as_echo_n "(cached) " >&6
10126 else
10127 if test -n "$ac_ct_OTOOL"; then
10128 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10129 else
10130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10131 for as_dir in $PATH
10132 do
10133 IFS=$as_save_IFS
10134 test -z "$as_dir" && as_dir=.
10135 for ac_exec_ext in '' $ac_executable_extensions; do
10136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10137 ac_cv_prog_ac_ct_OTOOL="otool"
10138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10139 break 2
10140 fi
10141 done
10142 done
10143 IFS=$as_save_IFS
10144
10145 fi
10146 fi
10147 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10148 if test -n "$ac_ct_OTOOL"; then
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10150 $as_echo "$ac_ct_OTOOL" >&6; }
10151 else
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10153 $as_echo "no" >&6; }
10154 fi
10155
10156 if test "x$ac_ct_OTOOL" = x; then
10157 OTOOL=":"
10158 else
10159 case $cross_compiling:$ac_tool_warned in
10160 yes:)
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10163 ac_tool_warned=yes ;;
10164 esac
10165 OTOOL=$ac_ct_OTOOL
10166 fi
10167 else
10168 OTOOL="$ac_cv_prog_OTOOL"
10169 fi
10170
10171 if test -n "$ac_tool_prefix"; then
10172 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10173 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10175 $as_echo_n "checking for $ac_word... " >&6; }
10176 if ${ac_cv_prog_OTOOL64+:} false; then :
10177 $as_echo_n "(cached) " >&6
10178 else
10179 if test -n "$OTOOL64"; then
10180 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10181 else
10182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10183 for as_dir in $PATH
10184 do
10185 IFS=$as_save_IFS
10186 test -z "$as_dir" && as_dir=.
10187 for ac_exec_ext in '' $ac_executable_extensions; do
10188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10189 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10191 break 2
10192 fi
10193 done
10194 done
10195 IFS=$as_save_IFS
10196
10197 fi
10198 fi
10199 OTOOL64=$ac_cv_prog_OTOOL64
10200 if test -n "$OTOOL64"; then
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10202 $as_echo "$OTOOL64" >&6; }
10203 else
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10205 $as_echo "no" >&6; }
10206 fi
10207
10208
10209 fi
10210 if test -z "$ac_cv_prog_OTOOL64"; then
10211 ac_ct_OTOOL64=$OTOOL64
10212 # Extract the first word of "otool64", so it can be a program name with args.
10213 set dummy otool64; ac_word=$2
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10215 $as_echo_n "checking for $ac_word... " >&6; }
10216 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10217 $as_echo_n "(cached) " >&6
10218 else
10219 if test -n "$ac_ct_OTOOL64"; then
10220 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10221 else
10222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10223 for as_dir in $PATH
10224 do
10225 IFS=$as_save_IFS
10226 test -z "$as_dir" && as_dir=.
10227 for ac_exec_ext in '' $ac_executable_extensions; do
10228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10229 ac_cv_prog_ac_ct_OTOOL64="otool64"
10230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10231 break 2
10232 fi
10233 done
10234 done
10235 IFS=$as_save_IFS
10236
10237 fi
10238 fi
10239 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10240 if test -n "$ac_ct_OTOOL64"; then
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10242 $as_echo "$ac_ct_OTOOL64" >&6; }
10243 else
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245 $as_echo "no" >&6; }
10246 fi
10247
10248 if test "x$ac_ct_OTOOL64" = x; then
10249 OTOOL64=":"
10250 else
10251 case $cross_compiling:$ac_tool_warned in
10252 yes:)
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10255 ac_tool_warned=yes ;;
10256 esac
10257 OTOOL64=$ac_ct_OTOOL64
10258 fi
10259 else
10260 OTOOL64="$ac_cv_prog_OTOOL64"
10261 fi
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10290 $as_echo_n "checking for -single_module linker flag... " >&6; }
10291 if ${lt_cv_apple_cc_single_mod+:} false; then :
10292 $as_echo_n "(cached) " >&6
10293 else
10294 lt_cv_apple_cc_single_mod=no
10295 if test -z "${LT_MULTI_MODULE}"; then
10296 # By default we will add the -single_module flag. You can override
10297 # by either setting the environment variable LT_MULTI_MODULE
10298 # non-empty at configure time, or by adding -multi_module to the
10299 # link flags.
10300 rm -rf libconftest.dylib*
10301 echo "int foo(void){return 1;}" > conftest.c
10302 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10303 -dynamiclib -Wl,-single_module conftest.c" >&5
10304 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10305 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10306 _lt_result=$?
10307 # If there is a non-empty error log, and "single_module"
10308 # appears in it, assume the flag caused a linker warning
10309 if test -s conftest.err && $GREP single_module conftest.err; then
10310 cat conftest.err >&5
10311 # Otherwise, if the output was created with a 0 exit code from
10312 # the compiler, it worked.
10313 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
10314 lt_cv_apple_cc_single_mod=yes
10315 else
10316 cat conftest.err >&5
10317 fi
10318 rm -rf libconftest.dylib*
10319 rm -f conftest.*
10320 fi
10321 fi
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10323 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10324
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10326 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10327 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10328 $as_echo_n "(cached) " >&6
10329 else
10330 lt_cv_ld_exported_symbols_list=no
10331 save_LDFLAGS=$LDFLAGS
10332 echo "_main" > conftest.sym
10333 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10335 /* end confdefs.h. */
10336
10337 int
10338 main ()
10339 {
10340
10341 ;
10342 return 0;
10343 }
10344 _ACEOF
10345 if ac_fn_c_try_link "$LINENO"; then :
10346 lt_cv_ld_exported_symbols_list=yes
10347 else
10348 lt_cv_ld_exported_symbols_list=no
10349 fi
10350 rm -f core conftest.err conftest.$ac_objext \
10351 conftest$ac_exeext conftest.$ac_ext
10352 LDFLAGS="$save_LDFLAGS"
10353
10354 fi
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10356 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10357
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10359 $as_echo_n "checking for -force_load linker flag... " >&6; }
10360 if ${lt_cv_ld_force_load+:} false; then :
10361 $as_echo_n "(cached) " >&6
10362 else
10363 lt_cv_ld_force_load=no
10364 cat > conftest.c << _LT_EOF
10365 int forced_loaded() { return 2;}
10366 _LT_EOF
10367 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10368 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10369 echo "$AR cru libconftest.a conftest.o" >&5
10370 $AR cru libconftest.a conftest.o 2>&5
10371 echo "$RANLIB libconftest.a" >&5
10372 $RANLIB libconftest.a 2>&5
10373 cat > conftest.c << _LT_EOF
10374 int main() { return 0;}
10375 _LT_EOF
10376 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10377 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10378 _lt_result=$?
10379 if test -s conftest.err && $GREP force_load conftest.err; then
10380 cat conftest.err >&5
10381 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
10382 lt_cv_ld_force_load=yes
10383 else
10384 cat conftest.err >&5
10385 fi
10386 rm -f conftest.err libconftest.a conftest conftest.c
10387 rm -rf conftest.dSYM
10388
10389 fi
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10391 $as_echo "$lt_cv_ld_force_load" >&6; }
10392 case $host_os in
10393 rhapsody* | darwin1.[012])
10394 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10395 darwin1.*)
10396 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10397 darwin*) # darwin 5.x on
10398 # if running on 10.5 or later, the deployment target defaults
10399 # to the OS version, if on x86, and 10.4, the deployment
10400 # target defaults to 10.4. Don't you love it?
10401 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10402 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10403 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10404 10.[012]*)
10405 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10406 10.*)
10407 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10408 esac
10409 ;;
10410 esac
10411 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10412 _lt_dar_single_mod='$single_module'
10413 fi
10414 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10415 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10416 else
10417 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10418 fi
10419 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10420 _lt_dsymutil='~$DSYMUTIL $lib || :'
10421 else
10422 _lt_dsymutil=
10423 fi
10424 ;;
10425 esac
10426
10427 for ac_header in dlfcn.h
10428 do :
10429 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10430 "
10431 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10432 cat >>confdefs.h <<_ACEOF
10433 #define HAVE_DLFCN_H 1
10434 _ACEOF
10435
10436 fi
10437
10438 done
10439
10440
10441
10442
10443
10444 # Set options
10445
10446
10447
10448 enable_dlopen=no
10449
10450
10451
10452 # Check whether --enable-shared was given.
10453 if test "${enable_shared+set}" = set; then :
10454 enableval=$enable_shared; p=${PACKAGE-default}
10455 case $enableval in
10456 yes) enable_shared=yes ;;
10457 no) enable_shared=no ;;
10458 *)
10459 enable_shared=no
10460 # Look at the argument we got. We use all the common list separators.
10461 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10462 for pkg in $enableval; do
10463 IFS="$lt_save_ifs"
10464 if test "X$pkg" = "X$p"; then
10465 enable_shared=yes
10466 fi
10467 done
10468 IFS="$lt_save_ifs"
10469 ;;
10470 esac
10471 else
10472 enable_shared=yes
10473 fi
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483 # Check whether --enable-static was given.
10484 if test "${enable_static+set}" = set; then :
10485 enableval=$enable_static; p=${PACKAGE-default}
10486 case $enableval in
10487 yes) enable_static=yes ;;
10488 no) enable_static=no ;;
10489 *)
10490 enable_static=no
10491 # Look at the argument we got. We use all the common list separators.
10492 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10493 for pkg in $enableval; do
10494 IFS="$lt_save_ifs"
10495 if test "X$pkg" = "X$p"; then
10496 enable_static=yes
10497 fi
10498 done
10499 IFS="$lt_save_ifs"
10500 ;;
10501 esac
10502 else
10503 enable_static=yes
10504 fi
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515 # Check whether --with-pic was given.
10516 if test "${with_pic+set}" = set; then :
10517 withval=$with_pic; lt_p=${PACKAGE-default}
10518 case $withval in
10519 yes|no) pic_mode=$withval ;;
10520 *)
10521 pic_mode=default
10522 # Look at the argument we got. We use all the common list separators.
10523 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10524 for lt_pkg in $withval; do
10525 IFS="$lt_save_ifs"
10526 if test "X$lt_pkg" = "X$lt_p"; then
10527 pic_mode=yes
10528 fi
10529 done
10530 IFS="$lt_save_ifs"
10531 ;;
10532 esac
10533 else
10534 pic_mode=default
10535 fi
10536
10537
10538 test -z "$pic_mode" && pic_mode=default
10539
10540
10541
10542
10543
10544
10545
10546 # Check whether --enable-fast-install was given.
10547 if test "${enable_fast_install+set}" = set; then :
10548 enableval=$enable_fast_install; p=${PACKAGE-default}
10549 case $enableval in
10550 yes) enable_fast_install=yes ;;
10551 no) enable_fast_install=no ;;
10552 *)
10553 enable_fast_install=no
10554 # Look at the argument we got. We use all the common list separators.
10555 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10556 for pkg in $enableval; do
10557 IFS="$lt_save_ifs"
10558 if test "X$pkg" = "X$p"; then
10559 enable_fast_install=yes
10560 fi
10561 done
10562 IFS="$lt_save_ifs"
10563 ;;
10564 esac
10565 else
10566 enable_fast_install=yes
10567 fi
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579 # This can be used to rebuild libtool when needed
10580 LIBTOOL_DEPS="$ltmain"
10581
10582 # Always use our own libtool.
10583 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614 test -z "$LN_S" && LN_S="ln -s"
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629 if test -n "${ZSH_VERSION+set}" ; then
10630 setopt NO_GLOB_SUBST
10631 fi
10632
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10634 $as_echo_n "checking for objdir... " >&6; }
10635 if ${lt_cv_objdir+:} false; then :
10636 $as_echo_n "(cached) " >&6
10637 else
10638 rm -f .libs 2>/dev/null
10639 mkdir .libs 2>/dev/null
10640 if test -d .libs; then
10641 lt_cv_objdir=.libs
10642 else
10643 # MS-DOS does not allow filenames that begin with a dot.
10644 lt_cv_objdir=_libs
10645 fi
10646 rmdir .libs 2>/dev/null
10647 fi
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10649 $as_echo "$lt_cv_objdir" >&6; }
10650 objdir=$lt_cv_objdir
10651
10652
10653
10654
10655
10656 cat >>confdefs.h <<_ACEOF
10657 #define LT_OBJDIR "$lt_cv_objdir/"
10658 _ACEOF
10659
10660
10661
10662
10663 case $host_os in
10664 aix3*)
10665 # AIX sometimes has problems with the GCC collect2 program. For some
10666 # reason, if we set the COLLECT_NAMES environment variable, the problems
10667 # vanish in a puff of smoke.
10668 if test "X${COLLECT_NAMES+set}" != Xset; then
10669 COLLECT_NAMES=
10670 export COLLECT_NAMES
10671 fi
10672 ;;
10673 esac
10674
10675 # Global variables:
10676 ofile=libtool
10677 can_build_shared=yes
10678
10679 # All known linkers require a `.a' archive for static linking (except MSVC,
10680 # which needs '.lib').
10681 libext=a
10682
10683 with_gnu_ld="$lt_cv_prog_gnu_ld"
10684
10685 old_CC="$CC"
10686 old_CFLAGS="$CFLAGS"
10687
10688 # Set sane defaults for various variables
10689 test -z "$CC" && CC=cc
10690 test -z "$LTCC" && LTCC=$CC
10691 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10692 test -z "$LD" && LD=ld
10693 test -z "$ac_objext" && ac_objext=o
10694
10695 for cc_temp in $compiler""; do
10696 case $cc_temp in
10697 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10698 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10699 \-*) ;;
10700 *) break;;
10701 esac
10702 done
10703 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10704
10705
10706 # Only perform the check for file, if the check method requires it
10707 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10708 case $deplibs_check_method in
10709 file_magic*)
10710 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10712 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10713 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 case $MAGIC_CMD in
10717 [\\/*] | ?:[\\/]*)
10718 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10719 ;;
10720 *)
10721 lt_save_MAGIC_CMD="$MAGIC_CMD"
10722 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10723 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10724 for ac_dir in $ac_dummy; do
10725 IFS="$lt_save_ifs"
10726 test -z "$ac_dir" && ac_dir=.
10727 if test -f $ac_dir/${ac_tool_prefix}file; then
10728 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10729 if test -n "$file_magic_test_file"; then
10730 case $deplibs_check_method in
10731 "file_magic "*)
10732 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10733 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10734 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10735 $EGREP "$file_magic_regex" > /dev/null; then
10736 :
10737 else
10738 cat <<_LT_EOF 1>&2
10739
10740 *** Warning: the command libtool uses to detect shared libraries,
10741 *** $file_magic_cmd, produces output that libtool cannot recognize.
10742 *** The result is that libtool may fail to recognize shared libraries
10743 *** as such. This will affect the creation of libtool libraries that
10744 *** depend on shared libraries, but programs linked with such libtool
10745 *** libraries will work regardless of this problem. Nevertheless, you
10746 *** may want to report the problem to your system manager and/or to
10747 *** bug-libtool@gnu.org
10748
10749 _LT_EOF
10750 fi ;;
10751 esac
10752 fi
10753 break
10754 fi
10755 done
10756 IFS="$lt_save_ifs"
10757 MAGIC_CMD="$lt_save_MAGIC_CMD"
10758 ;;
10759 esac
10760 fi
10761
10762 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10763 if test -n "$MAGIC_CMD"; then
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10765 $as_echo "$MAGIC_CMD" >&6; }
10766 else
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10768 $as_echo "no" >&6; }
10769 fi
10770
10771
10772
10773
10774
10775 if test -z "$lt_cv_path_MAGIC_CMD"; then
10776 if test -n "$ac_tool_prefix"; then
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10778 $as_echo_n "checking for file... " >&6; }
10779 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10780 $as_echo_n "(cached) " >&6
10781 else
10782 case $MAGIC_CMD in
10783 [\\/*] | ?:[\\/]*)
10784 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10785 ;;
10786 *)
10787 lt_save_MAGIC_CMD="$MAGIC_CMD"
10788 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10789 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10790 for ac_dir in $ac_dummy; do
10791 IFS="$lt_save_ifs"
10792 test -z "$ac_dir" && ac_dir=.
10793 if test -f $ac_dir/file; then
10794 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10795 if test -n "$file_magic_test_file"; then
10796 case $deplibs_check_method in
10797 "file_magic "*)
10798 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10799 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10800 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10801 $EGREP "$file_magic_regex" > /dev/null; then
10802 :
10803 else
10804 cat <<_LT_EOF 1>&2
10805
10806 *** Warning: the command libtool uses to detect shared libraries,
10807 *** $file_magic_cmd, produces output that libtool cannot recognize.
10808 *** The result is that libtool may fail to recognize shared libraries
10809 *** as such. This will affect the creation of libtool libraries that
10810 *** depend on shared libraries, but programs linked with such libtool
10811 *** libraries will work regardless of this problem. Nevertheless, you
10812 *** may want to report the problem to your system manager and/or to
10813 *** bug-libtool@gnu.org
10814
10815 _LT_EOF
10816 fi ;;
10817 esac
10818 fi
10819 break
10820 fi
10821 done
10822 IFS="$lt_save_ifs"
10823 MAGIC_CMD="$lt_save_MAGIC_CMD"
10824 ;;
10825 esac
10826 fi
10827
10828 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10829 if test -n "$MAGIC_CMD"; then
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10831 $as_echo "$MAGIC_CMD" >&6; }
10832 else
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10834 $as_echo "no" >&6; }
10835 fi
10836
10837
10838 else
10839 MAGIC_CMD=:
10840 fi
10841 fi
10842
10843 fi
10844 ;;
10845 esac
10846
10847 # Use C for the default configuration in the libtool script
10848
10849 lt_save_CC="$CC"
10850 ac_ext=c
10851 ac_cpp='$CPP $CPPFLAGS'
10852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10855
10856
10857 # Source file extension for C test sources.
10858 ac_ext=c
10859
10860 # Object file extension for compiled C test sources.
10861 objext=o
10862 objext=$objext
10863
10864 # Code to be used in simple compile tests
10865 lt_simple_compile_test_code="int some_variable = 0;"
10866
10867 # Code to be used in simple link tests
10868 lt_simple_link_test_code='int main(){return(0);}'
10869
10870
10871
10872
10873
10874
10875
10876 # If no C compiler was specified, use CC.
10877 LTCC=${LTCC-"$CC"}
10878
10879 # If no C compiler flags were specified, use CFLAGS.
10880 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10881
10882 # Allow CC to be a program name with arguments.
10883 compiler=$CC
10884
10885 # Save the default compiler, since it gets overwritten when the other
10886 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10887 compiler_DEFAULT=$CC
10888
10889 # save warnings/boilerplate of simple test code
10890 ac_outfile=conftest.$ac_objext
10891 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10892 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10893 _lt_compiler_boilerplate=`cat conftest.err`
10894 $RM conftest*
10895
10896 ac_outfile=conftest.$ac_objext
10897 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10898 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10899 _lt_linker_boilerplate=`cat conftest.err`
10900 $RM -r conftest*
10901
10902
10903 ## CAVEAT EMPTOR:
10904 ## There is no encapsulation within the following macros, do not change
10905 ## the running order or otherwise move them around unless you know exactly
10906 ## what you are doing...
10907 if test -n "$compiler"; then
10908
10909 lt_prog_compiler_no_builtin_flag=
10910
10911 if test "$GCC" = yes; then
10912 case $cc_basename in
10913 nvcc*)
10914 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10915 *)
10916 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10917 esac
10918
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10920 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10921 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10922 $as_echo_n "(cached) " >&6
10923 else
10924 lt_cv_prog_compiler_rtti_exceptions=no
10925 ac_outfile=conftest.$ac_objext
10926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10927 lt_compiler_flag="-fno-rtti -fno-exceptions"
10928 # Insert the option either (1) after the last *FLAGS variable, or
10929 # (2) before a word containing "conftest.", or (3) at the end.
10930 # Note that $ac_compile itself does not contain backslashes and begins
10931 # with a dollar sign (not a hyphen), so the echo should work correctly.
10932 # The option is referenced via a variable to avoid confusing sed.
10933 lt_compile=`echo "$ac_compile" | $SED \
10934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10936 -e 's:$: $lt_compiler_flag:'`
10937 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10938 (eval "$lt_compile" 2>conftest.err)
10939 ac_status=$?
10940 cat conftest.err >&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 if (exit $ac_status) && test -s "$ac_outfile"; then
10943 # The compiler can only warn and ignore the option if not recognized
10944 # So say no if there are warnings other than the usual output.
10945 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10946 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10947 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10948 lt_cv_prog_compiler_rtti_exceptions=yes
10949 fi
10950 fi
10951 $RM conftest*
10952
10953 fi
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10955 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10956
10957 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10958 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10959 else
10960 :
10961 fi
10962
10963 fi
10964
10965
10966
10967
10968
10969
10970 lt_prog_compiler_wl=
10971 lt_prog_compiler_pic=
10972 lt_prog_compiler_static=
10973
10974
10975 if test "$GCC" = yes; then
10976 lt_prog_compiler_wl='-Wl,'
10977 lt_prog_compiler_static='-static'
10978
10979 case $host_os in
10980 aix*)
10981 # All AIX code is PIC.
10982 if test "$host_cpu" = ia64; then
10983 # AIX 5 now supports IA64 processor
10984 lt_prog_compiler_static='-Bstatic'
10985 fi
10986 ;;
10987
10988 amigaos*)
10989 case $host_cpu in
10990 powerpc)
10991 # see comment about AmigaOS4 .so support
10992 lt_prog_compiler_pic='-fPIC'
10993 ;;
10994 m68k)
10995 # FIXME: we need at least 68020 code to build shared libraries, but
10996 # adding the `-m68020' flag to GCC prevents building anything better,
10997 # like `-m68040'.
10998 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10999 ;;
11000 esac
11001 ;;
11002
11003 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11004 # PIC is the default for these OSes.
11005 ;;
11006
11007 mingw* | cygwin* | pw32* | os2* | cegcc*)
11008 # This hack is so that the source file can tell whether it is being
11009 # built for inclusion in a dll (and should export symbols for example).
11010 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11011 # (--disable-auto-import) libraries
11012 lt_prog_compiler_pic='-DDLL_EXPORT'
11013 ;;
11014
11015 darwin* | rhapsody*)
11016 # PIC is the default on this platform
11017 # Common symbols not allowed in MH_DYLIB files
11018 lt_prog_compiler_pic='-fno-common'
11019 ;;
11020
11021 haiku*)
11022 # PIC is the default for Haiku.
11023 # The "-static" flag exists, but is broken.
11024 lt_prog_compiler_static=
11025 ;;
11026
11027 hpux*)
11028 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11029 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11030 # sets the default TLS model and affects inlining.
11031 case $host_cpu in
11032 hppa*64*)
11033 # +Z the default
11034 ;;
11035 *)
11036 lt_prog_compiler_pic='-fPIC'
11037 ;;
11038 esac
11039 ;;
11040
11041 interix[3-9]*)
11042 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11043 # Instead, we relocate shared libraries at runtime.
11044 ;;
11045
11046 msdosdjgpp*)
11047 # Just because we use GCC doesn't mean we suddenly get shared libraries
11048 # on systems that don't support them.
11049 lt_prog_compiler_can_build_shared=no
11050 enable_shared=no
11051 ;;
11052
11053 *nto* | *qnx*)
11054 # QNX uses GNU C++, but need to define -shared option too, otherwise
11055 # it will coredump.
11056 lt_prog_compiler_pic='-fPIC -shared'
11057 ;;
11058
11059 sysv4*MP*)
11060 if test -d /usr/nec; then
11061 lt_prog_compiler_pic=-Kconform_pic
11062 fi
11063 ;;
11064
11065 *)
11066 lt_prog_compiler_pic='-fPIC'
11067 ;;
11068 esac
11069
11070 case $cc_basename in
11071 nvcc*) # Cuda Compiler Driver 2.2
11072 lt_prog_compiler_wl='-Xlinker '
11073 if test -n "$lt_prog_compiler_pic"; then
11074 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11075 fi
11076 ;;
11077 esac
11078 else
11079 # PORTME Check for flag to pass linker flags through the system compiler.
11080 case $host_os in
11081 aix*)
11082 lt_prog_compiler_wl='-Wl,'
11083 if test "$host_cpu" = ia64; then
11084 # AIX 5 now supports IA64 processor
11085 lt_prog_compiler_static='-Bstatic'
11086 else
11087 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11088 fi
11089 ;;
11090
11091 mingw* | cygwin* | pw32* | os2* | cegcc*)
11092 # This hack is so that the source file can tell whether it is being
11093 # built for inclusion in a dll (and should export symbols for example).
11094 lt_prog_compiler_pic='-DDLL_EXPORT'
11095 ;;
11096
11097 hpux9* | hpux10* | hpux11*)
11098 lt_prog_compiler_wl='-Wl,'
11099 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11100 # not for PA HP-UX.
11101 case $host_cpu in
11102 hppa*64*|ia64*)
11103 # +Z the default
11104 ;;
11105 *)
11106 lt_prog_compiler_pic='+Z'
11107 ;;
11108 esac
11109 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11110 lt_prog_compiler_static='${wl}-a ${wl}archive'
11111 ;;
11112
11113 irix5* | irix6* | nonstopux*)
11114 lt_prog_compiler_wl='-Wl,'
11115 # PIC (with -KPIC) is the default.
11116 lt_prog_compiler_static='-non_shared'
11117 ;;
11118
11119 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11120 case $cc_basename in
11121 # old Intel for x86_64 which still supported -KPIC.
11122 ecc*)
11123 lt_prog_compiler_wl='-Wl,'
11124 lt_prog_compiler_pic='-KPIC'
11125 lt_prog_compiler_static='-static'
11126 ;;
11127 # icc used to be incompatible with GCC.
11128 # ICC 10 doesn't accept -KPIC any more.
11129 icc* | ifort*)
11130 lt_prog_compiler_wl='-Wl,'
11131 lt_prog_compiler_pic='-fPIC'
11132 lt_prog_compiler_static='-static'
11133 ;;
11134 # Lahey Fortran 8.1.
11135 lf95*)
11136 lt_prog_compiler_wl='-Wl,'
11137 lt_prog_compiler_pic='--shared'
11138 lt_prog_compiler_static='--static'
11139 ;;
11140 nagfor*)
11141 # NAG Fortran compiler
11142 lt_prog_compiler_wl='-Wl,-Wl,,'
11143 lt_prog_compiler_pic='-PIC'
11144 lt_prog_compiler_static='-Bstatic'
11145 ;;
11146 tcc*)
11147 # Fabrice Bellard et al's Tiny C Compiler
11148 # When it learns to make shared objects, it will
11149 # presumably use -fPIC.
11150 lt_prog_compiler_wl='-Wl,'
11151 lt_prog_compiler_pic='-fPIC'
11152 lt_prog_compiler_static='-static'
11153 ;;
11154 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11155 # Portland Group compilers (*not* the Pentium gcc compiler,
11156 # which looks to be a dead project)
11157 lt_prog_compiler_wl='-Wl,'
11158 lt_prog_compiler_pic='-fpic'
11159 lt_prog_compiler_static='-Bstatic'
11160 ;;
11161 ccc*)
11162 lt_prog_compiler_wl='-Wl,'
11163 # All Alpha code is PIC.
11164 lt_prog_compiler_static='-non_shared'
11165 ;;
11166 xl* | bgxl* | bgf* | mpixl*)
11167 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11168 lt_prog_compiler_wl='-Wl,'
11169 lt_prog_compiler_pic='-qpic'
11170 lt_prog_compiler_static='-qstaticlink'
11171 ;;
11172 *)
11173 case `$CC -V 2>&1 | sed 5q` in
11174 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11175 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11176 lt_prog_compiler_pic='-KPIC'
11177 lt_prog_compiler_static='-Bstatic'
11178 lt_prog_compiler_wl=''
11179 ;;
11180 *Sun\ F* | *Sun*Fortran*)
11181 lt_prog_compiler_pic='-KPIC'
11182 lt_prog_compiler_static='-Bstatic'
11183 lt_prog_compiler_wl='-Qoption ld '
11184 ;;
11185 *Sun\ C*)
11186 # Sun C 5.9
11187 lt_prog_compiler_pic='-KPIC'
11188 lt_prog_compiler_static='-Bstatic'
11189 lt_prog_compiler_wl='-Wl,'
11190 ;;
11191 *Intel*\ [CF]*Compiler*)
11192 lt_prog_compiler_wl='-Wl,'
11193 lt_prog_compiler_pic='-fPIC'
11194 lt_prog_compiler_static='-static'
11195 ;;
11196 *Portland\ Group*)
11197 lt_prog_compiler_wl='-Wl,'
11198 lt_prog_compiler_pic='-fpic'
11199 lt_prog_compiler_static='-Bstatic'
11200 ;;
11201 esac
11202 ;;
11203 esac
11204 ;;
11205
11206 newsos6)
11207 lt_prog_compiler_pic='-KPIC'
11208 lt_prog_compiler_static='-Bstatic'
11209 ;;
11210
11211 *nto* | *qnx*)
11212 # QNX uses GNU C++, but need to define -shared option too, otherwise
11213 # it will coredump.
11214 lt_prog_compiler_pic='-fPIC -shared'
11215 ;;
11216
11217 osf3* | osf4* | osf5*)
11218 lt_prog_compiler_wl='-Wl,'
11219 # All OSF/1 code is PIC.
11220 lt_prog_compiler_static='-non_shared'
11221 ;;
11222
11223 rdos*)
11224 lt_prog_compiler_static='-non_shared'
11225 ;;
11226
11227 solaris*)
11228 lt_prog_compiler_pic='-KPIC'
11229 lt_prog_compiler_static='-Bstatic'
11230 case $cc_basename in
11231 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11232 lt_prog_compiler_wl='-Qoption ld ';;
11233 *)
11234 lt_prog_compiler_wl='-Wl,';;
11235 esac
11236 ;;
11237
11238 sunos4*)
11239 lt_prog_compiler_wl='-Qoption ld '
11240 lt_prog_compiler_pic='-PIC'
11241 lt_prog_compiler_static='-Bstatic'
11242 ;;
11243
11244 sysv4 | sysv4.2uw2* | sysv4.3*)
11245 lt_prog_compiler_wl='-Wl,'
11246 lt_prog_compiler_pic='-KPIC'
11247 lt_prog_compiler_static='-Bstatic'
11248 ;;
11249
11250 sysv4*MP*)
11251 if test -d /usr/nec ;then
11252 lt_prog_compiler_pic='-Kconform_pic'
11253 lt_prog_compiler_static='-Bstatic'
11254 fi
11255 ;;
11256
11257 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11258 lt_prog_compiler_wl='-Wl,'
11259 lt_prog_compiler_pic='-KPIC'
11260 lt_prog_compiler_static='-Bstatic'
11261 ;;
11262
11263 unicos*)
11264 lt_prog_compiler_wl='-Wl,'
11265 lt_prog_compiler_can_build_shared=no
11266 ;;
11267
11268 uts4*)
11269 lt_prog_compiler_pic='-pic'
11270 lt_prog_compiler_static='-Bstatic'
11271 ;;
11272
11273 *)
11274 lt_prog_compiler_can_build_shared=no
11275 ;;
11276 esac
11277 fi
11278
11279 case $host_os in
11280 # For platforms which do not support PIC, -DPIC is meaningless:
11281 *djgpp*)
11282 lt_prog_compiler_pic=
11283 ;;
11284 *)
11285 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11286 ;;
11287 esac
11288
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11290 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11291 if ${lt_cv_prog_compiler_pic+:} false; then :
11292 $as_echo_n "(cached) " >&6
11293 else
11294 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11295 fi
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11297 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11298 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11299
11300 #
11301 # Check to make sure the PIC flag actually works.
11302 #
11303 if test -n "$lt_prog_compiler_pic"; then
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11305 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11306 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11307 $as_echo_n "(cached) " >&6
11308 else
11309 lt_cv_prog_compiler_pic_works=no
11310 ac_outfile=conftest.$ac_objext
11311 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11312 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11313 # Insert the option either (1) after the last *FLAGS variable, or
11314 # (2) before a word containing "conftest.", or (3) at the end.
11315 # Note that $ac_compile itself does not contain backslashes and begins
11316 # with a dollar sign (not a hyphen), so the echo should work correctly.
11317 # The option is referenced via a variable to avoid confusing sed.
11318 lt_compile=`echo "$ac_compile" | $SED \
11319 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11320 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11321 -e 's:$: $lt_compiler_flag:'`
11322 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11323 (eval "$lt_compile" 2>conftest.err)
11324 ac_status=$?
11325 cat conftest.err >&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 if (exit $ac_status) && test -s "$ac_outfile"; then
11328 # The compiler can only warn and ignore the option if not recognized
11329 # So say no if there are warnings other than the usual output.
11330 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11331 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11332 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11333 lt_cv_prog_compiler_pic_works=yes
11334 fi
11335 fi
11336 $RM conftest*
11337
11338 fi
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11340 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11341
11342 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11343 case $lt_prog_compiler_pic in
11344 "" | " "*) ;;
11345 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11346 esac
11347 else
11348 lt_prog_compiler_pic=
11349 lt_prog_compiler_can_build_shared=no
11350 fi
11351
11352 fi
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364 #
11365 # Check to make sure the static flag actually works.
11366 #
11367 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11369 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11370 if ${lt_cv_prog_compiler_static_works+:} false; then :
11371 $as_echo_n "(cached) " >&6
11372 else
11373 lt_cv_prog_compiler_static_works=no
11374 save_LDFLAGS="$LDFLAGS"
11375 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11376 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11377 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11378 # The linker can only warn and ignore the option if not recognized
11379 # So say no if there are warnings
11380 if test -s conftest.err; then
11381 # Append any errors to the config.log.
11382 cat conftest.err 1>&5
11383 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11385 if diff conftest.exp conftest.er2 >/dev/null; then
11386 lt_cv_prog_compiler_static_works=yes
11387 fi
11388 else
11389 lt_cv_prog_compiler_static_works=yes
11390 fi
11391 fi
11392 $RM -r conftest*
11393 LDFLAGS="$save_LDFLAGS"
11394
11395 fi
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11397 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11398
11399 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11400 :
11401 else
11402 lt_prog_compiler_static=
11403 fi
11404
11405
11406
11407
11408
11409
11410
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11412 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11413 if ${lt_cv_prog_compiler_c_o+:} false; then :
11414 $as_echo_n "(cached) " >&6
11415 else
11416 lt_cv_prog_compiler_c_o=no
11417 $RM -r conftest 2>/dev/null
11418 mkdir conftest
11419 cd conftest
11420 mkdir out
11421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11422
11423 lt_compiler_flag="-o out/conftest2.$ac_objext"
11424 # Insert the option either (1) after the last *FLAGS variable, or
11425 # (2) before a word containing "conftest.", or (3) at the end.
11426 # Note that $ac_compile itself does not contain backslashes and begins
11427 # with a dollar sign (not a hyphen), so the echo should work correctly.
11428 lt_compile=`echo "$ac_compile" | $SED \
11429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11431 -e 's:$: $lt_compiler_flag:'`
11432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11433 (eval "$lt_compile" 2>out/conftest.err)
11434 ac_status=$?
11435 cat out/conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11438 then
11439 # The compiler can only warn and ignore the option if not recognized
11440 # So say no if there are warnings
11441 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11442 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11443 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11444 lt_cv_prog_compiler_c_o=yes
11445 fi
11446 fi
11447 chmod u+w . 2>&5
11448 $RM conftest*
11449 # SGI C++ compiler will create directory out/ii_files/ for
11450 # template instantiation
11451 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11452 $RM out/* && rmdir out
11453 cd ..
11454 $RM -r conftest
11455 $RM conftest*
11456
11457 fi
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11459 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11460
11461
11462
11463
11464
11465
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11467 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11468 if ${lt_cv_prog_compiler_c_o+:} false; then :
11469 $as_echo_n "(cached) " >&6
11470 else
11471 lt_cv_prog_compiler_c_o=no
11472 $RM -r conftest 2>/dev/null
11473 mkdir conftest
11474 cd conftest
11475 mkdir out
11476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11477
11478 lt_compiler_flag="-o out/conftest2.$ac_objext"
11479 # Insert the option either (1) after the last *FLAGS variable, or
11480 # (2) before a word containing "conftest.", or (3) at the end.
11481 # Note that $ac_compile itself does not contain backslashes and begins
11482 # with a dollar sign (not a hyphen), so the echo should work correctly.
11483 lt_compile=`echo "$ac_compile" | $SED \
11484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11486 -e 's:$: $lt_compiler_flag:'`
11487 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11488 (eval "$lt_compile" 2>out/conftest.err)
11489 ac_status=$?
11490 cat out/conftest.err >&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11493 then
11494 # The compiler can only warn and ignore the option if not recognized
11495 # So say no if there are warnings
11496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11497 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11498 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11499 lt_cv_prog_compiler_c_o=yes
11500 fi
11501 fi
11502 chmod u+w . 2>&5
11503 $RM conftest*
11504 # SGI C++ compiler will create directory out/ii_files/ for
11505 # template instantiation
11506 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11507 $RM out/* && rmdir out
11508 cd ..
11509 $RM -r conftest
11510 $RM conftest*
11511
11512 fi
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11514 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11515
11516
11517
11518
11519 hard_links="nottested"
11520 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11521 # do not overwrite the value of need_locks provided by the user
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11523 $as_echo_n "checking if we can lock with hard links... " >&6; }
11524 hard_links=yes
11525 $RM conftest*
11526 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11527 touch conftest.a
11528 ln conftest.a conftest.b 2>&5 || hard_links=no
11529 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11531 $as_echo "$hard_links" >&6; }
11532 if test "$hard_links" = no; then
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11534 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11535 need_locks=warn
11536 fi
11537 else
11538 need_locks=no
11539 fi
11540
11541
11542
11543
11544
11545
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11547 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11548
11549 runpath_var=
11550 allow_undefined_flag=
11551 always_export_symbols=no
11552 archive_cmds=
11553 archive_expsym_cmds=
11554 compiler_needs_object=no
11555 enable_shared_with_static_runtimes=no
11556 export_dynamic_flag_spec=
11557 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11558 hardcode_automatic=no
11559 hardcode_direct=no
11560 hardcode_direct_absolute=no
11561 hardcode_libdir_flag_spec=
11562 hardcode_libdir_separator=
11563 hardcode_minus_L=no
11564 hardcode_shlibpath_var=unsupported
11565 inherit_rpath=no
11566 link_all_deplibs=unknown
11567 module_cmds=
11568 module_expsym_cmds=
11569 old_archive_from_new_cmds=
11570 old_archive_from_expsyms_cmds=
11571 thread_safe_flag_spec=
11572 whole_archive_flag_spec=
11573 # include_expsyms should be a list of space-separated symbols to be *always*
11574 # included in the symbol list
11575 include_expsyms=
11576 # exclude_expsyms can be an extended regexp of symbols to exclude
11577 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11578 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11579 # as well as any symbol that contains `d'.
11580 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11581 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11582 # platforms (ab)use it in PIC code, but their linkers get confused if
11583 # the symbol is explicitly referenced. Since portable code cannot
11584 # rely on this symbol name, it's probably fine to never include it in
11585 # preloaded symbol tables.
11586 # Exclude shared library initialization/finalization symbols.
11587 extract_expsyms_cmds=
11588
11589 case $host_os in
11590 cygwin* | mingw* | pw32* | cegcc*)
11591 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11592 # When not using gcc, we currently assume that we are using
11593 # Microsoft Visual C++.
11594 if test "$GCC" != yes; then
11595 with_gnu_ld=no
11596 fi
11597 ;;
11598 interix*)
11599 # we just hope/assume this is gcc and not c89 (= MSVC++)
11600 with_gnu_ld=yes
11601 ;;
11602 openbsd*)
11603 with_gnu_ld=no
11604 ;;
11605 linux* | k*bsd*-gnu | gnu*)
11606 link_all_deplibs=no
11607 ;;
11608 esac
11609
11610 ld_shlibs=yes
11611
11612 # On some targets, GNU ld is compatible enough with the native linker
11613 # that we're better off using the native interface for both.
11614 lt_use_gnu_ld_interface=no
11615 if test "$with_gnu_ld" = yes; then
11616 case $host_os in
11617 aix*)
11618 # The AIX port of GNU ld has always aspired to compatibility
11619 # with the native linker. However, as the warning in the GNU ld
11620 # block says, versions before 2.19.5* couldn't really create working
11621 # shared libraries, regardless of the interface used.
11622 case `$LD -v 2>&1` in
11623 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11624 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11625 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11626 *)
11627 lt_use_gnu_ld_interface=yes
11628 ;;
11629 esac
11630 ;;
11631 *)
11632 lt_use_gnu_ld_interface=yes
11633 ;;
11634 esac
11635 fi
11636
11637 if test "$lt_use_gnu_ld_interface" = yes; then
11638 # If archive_cmds runs LD, not CC, wlarc should be empty
11639 wlarc='${wl}'
11640
11641 # Set some defaults for GNU ld with shared library support. These
11642 # are reset later if shared libraries are not supported. Putting them
11643 # here allows them to be overridden if necessary.
11644 runpath_var=LD_RUN_PATH
11645 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11646 export_dynamic_flag_spec='${wl}--export-dynamic'
11647 # ancient GNU ld didn't support --whole-archive et. al.
11648 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11649 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11650 else
11651 whole_archive_flag_spec=
11652 fi
11653 supports_anon_versioning=no
11654 case `$LD -v 2>&1` in
11655 *GNU\ gold*) supports_anon_versioning=yes ;;
11656 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11657 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11658 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11659 *\ 2.11.*) ;; # other 2.11 versions
11660 *) supports_anon_versioning=yes ;;
11661 esac
11662
11663 # See if GNU ld supports shared libraries.
11664 case $host_os in
11665 aix[3-9]*)
11666 # On AIX/PPC, the GNU linker is very broken
11667 if test "$host_cpu" != ia64; then
11668 ld_shlibs=no
11669 cat <<_LT_EOF 1>&2
11670
11671 *** Warning: the GNU linker, at least up to release 2.19, is reported
11672 *** to be unable to reliably create shared libraries on AIX.
11673 *** Therefore, libtool is disabling shared libraries support. If you
11674 *** really care for shared libraries, you may want to install binutils
11675 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11676 *** You will then need to restart the configuration process.
11677
11678 _LT_EOF
11679 fi
11680 ;;
11681
11682 amigaos*)
11683 case $host_cpu in
11684 powerpc)
11685 # see comment about AmigaOS4 .so support
11686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11687 archive_expsym_cmds=''
11688 ;;
11689 m68k)
11690 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)'
11691 hardcode_libdir_flag_spec='-L$libdir'
11692 hardcode_minus_L=yes
11693 ;;
11694 esac
11695 ;;
11696
11697 beos*)
11698 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11699 allow_undefined_flag=unsupported
11700 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11701 # support --undefined. This deserves some investigation. FIXME
11702 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11703 else
11704 ld_shlibs=no
11705 fi
11706 ;;
11707
11708 cygwin* | mingw* | pw32* | cegcc*)
11709 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11710 # as there is no search path for DLLs.
11711 hardcode_libdir_flag_spec='-L$libdir'
11712 export_dynamic_flag_spec='${wl}--export-all-symbols'
11713 allow_undefined_flag=unsupported
11714 always_export_symbols=no
11715 enable_shared_with_static_runtimes=yes
11716 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'
11717 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11718
11719 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11721 # If the export-symbols file already is a .def file (1st line
11722 # is EXPORTS), use it as is; otherwise, prepend...
11723 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11724 cp $export_symbols $output_objdir/$soname.def;
11725 else
11726 echo EXPORTS > $output_objdir/$soname.def;
11727 cat $export_symbols >> $output_objdir/$soname.def;
11728 fi~
11729 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11730 else
11731 ld_shlibs=no
11732 fi
11733 ;;
11734
11735 haiku*)
11736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11737 link_all_deplibs=yes
11738 ;;
11739
11740 interix[3-9]*)
11741 hardcode_direct=no
11742 hardcode_shlibpath_var=no
11743 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11744 export_dynamic_flag_spec='${wl}-E'
11745 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11746 # Instead, shared libraries are loaded at an image base (0x10000000 by
11747 # default) and relocated if they conflict, which is a slow very memory
11748 # consuming and fragmenting process. To avoid this, we pick a random,
11749 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11750 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11751 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11752 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'
11753 ;;
11754
11755 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11756 tmp_diet=no
11757 if test "$host_os" = linux-dietlibc; then
11758 case $cc_basename in
11759 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11760 esac
11761 fi
11762 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11763 && test "$tmp_diet" = no
11764 then
11765 tmp_addflag=' $pic_flag'
11766 tmp_sharedflag='-shared'
11767 case $cc_basename,$host_cpu in
11768 pgcc*) # Portland Group C compiler
11769 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'
11770 tmp_addflag=' $pic_flag'
11771 ;;
11772 pgf77* | pgf90* | pgf95* | pgfortran*)
11773 # Portland Group f77 and f90 compilers
11774 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'
11775 tmp_addflag=' $pic_flag -Mnomain' ;;
11776 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11777 tmp_addflag=' -i_dynamic' ;;
11778 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11779 tmp_addflag=' -i_dynamic -nofor_main' ;;
11780 ifc* | ifort*) # Intel Fortran compiler
11781 tmp_addflag=' -nofor_main' ;;
11782 lf95*) # Lahey Fortran 8.1
11783 whole_archive_flag_spec=
11784 tmp_sharedflag='--shared' ;;
11785 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11786 tmp_sharedflag='-qmkshrobj'
11787 tmp_addflag= ;;
11788 nvcc*) # Cuda Compiler Driver 2.2
11789 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'
11790 compiler_needs_object=yes
11791 ;;
11792 esac
11793 case `$CC -V 2>&1 | sed 5q` in
11794 *Sun\ C*) # Sun C 5.9
11795 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'
11796 compiler_needs_object=yes
11797 tmp_sharedflag='-G' ;;
11798 *Sun\ F*) # Sun Fortran 8.3
11799 tmp_sharedflag='-G' ;;
11800 esac
11801 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11802
11803 if test "x$supports_anon_versioning" = xyes; then
11804 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11805 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11806 echo "local: *; };" >> $output_objdir/$libname.ver~
11807 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11808 fi
11809
11810 case $cc_basename in
11811 xlf* | bgf* | bgxlf* | mpixlf*)
11812 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11813 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11815 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11816 if test "x$supports_anon_versioning" = xyes; then
11817 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11818 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11819 echo "local: *; };" >> $output_objdir/$libname.ver~
11820 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11821 fi
11822 ;;
11823 esac
11824 else
11825 ld_shlibs=no
11826 fi
11827 ;;
11828
11829 netbsd* | netbsdelf*-gnu)
11830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11831 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11832 wlarc=
11833 else
11834 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11835 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11836 fi
11837 ;;
11838
11839 solaris*)
11840 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11841 ld_shlibs=no
11842 cat <<_LT_EOF 1>&2
11843
11844 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11845 *** create shared libraries on Solaris systems. Therefore, libtool
11846 *** is disabling shared libraries support. We urge you to upgrade GNU
11847 *** binutils to release 2.9.1 or newer. Another option is to modify
11848 *** your PATH or compiler configuration so that the native linker is
11849 *** used, and then restart.
11850
11851 _LT_EOF
11852 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11853 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11854 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11855 else
11856 ld_shlibs=no
11857 fi
11858 ;;
11859
11860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11861 case `$LD -v 2>&1` in
11862 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11863 ld_shlibs=no
11864 cat <<_LT_EOF 1>&2
11865
11866 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11867 *** reliably create shared libraries on SCO systems. Therefore, libtool
11868 *** is disabling shared libraries support. We urge you to upgrade GNU
11869 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11870 *** your PATH or compiler configuration so that the native linker is
11871 *** used, and then restart.
11872
11873 _LT_EOF
11874 ;;
11875 *)
11876 # For security reasons, it is highly recommended that you always
11877 # use absolute paths for naming shared libraries, and exclude the
11878 # DT_RUNPATH tag from executables and libraries. But doing so
11879 # requires that you compile everything twice, which is a pain.
11880 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11881 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11883 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11884 else
11885 ld_shlibs=no
11886 fi
11887 ;;
11888 esac
11889 ;;
11890
11891 sunos4*)
11892 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11893 wlarc=
11894 hardcode_direct=yes
11895 hardcode_shlibpath_var=no
11896 ;;
11897
11898 *)
11899 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11900 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11901 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11902 else
11903 ld_shlibs=no
11904 fi
11905 ;;
11906 esac
11907
11908 if test "$ld_shlibs" = no; then
11909 runpath_var=
11910 hardcode_libdir_flag_spec=
11911 export_dynamic_flag_spec=
11912 whole_archive_flag_spec=
11913 fi
11914 else
11915 # PORTME fill in a description of your system's linker (not GNU ld)
11916 case $host_os in
11917 aix3*)
11918 allow_undefined_flag=unsupported
11919 always_export_symbols=yes
11920 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'
11921 # Note: this linker hardcodes the directories in LIBPATH if there
11922 # are no directories specified by -L.
11923 hardcode_minus_L=yes
11924 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11925 # Neither direct hardcoding nor static linking is supported with a
11926 # broken collect2.
11927 hardcode_direct=unsupported
11928 fi
11929 ;;
11930
11931 aix[4-9]*)
11932 if test "$host_cpu" = ia64; then
11933 # On IA64, the linker does run time linking by default, so we don't
11934 # have to do anything special.
11935 aix_use_runtimelinking=no
11936 exp_sym_flag='-Bexport'
11937 no_entry_flag=""
11938 else
11939 # If we're using GNU nm, then we don't want the "-C" option.
11940 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11941 # Also, AIX nm treats weak defined symbols like other global
11942 # defined symbols, whereas GNU nm marks them as "W".
11943 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11944 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11945 else
11946 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11947 fi
11948 aix_use_runtimelinking=no
11949
11950 # Test if we are trying to use run time linking or normal
11951 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11952 # need to do runtime linking.
11953 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11954 for ld_flag in $LDFLAGS; do
11955 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11956 aix_use_runtimelinking=yes
11957 break
11958 fi
11959 done
11960 ;;
11961 esac
11962
11963 exp_sym_flag='-bexport'
11964 no_entry_flag='-bnoentry'
11965 fi
11966
11967 # When large executables or shared objects are built, AIX ld can
11968 # have problems creating the table of contents. If linking a library
11969 # or program results in "error TOC overflow" add -mminimal-toc to
11970 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11971 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11972
11973 archive_cmds=''
11974 hardcode_direct=yes
11975 hardcode_direct_absolute=yes
11976 hardcode_libdir_separator=':'
11977 link_all_deplibs=yes
11978 file_list_spec='${wl}-f,'
11979
11980 if test "$GCC" = yes; then
11981 case $host_os in aix4.[012]|aix4.[012].*)
11982 # We only want to do this on AIX 4.2 and lower, the check
11983 # below for broken collect2 doesn't work under 4.3+
11984 collect2name=`${CC} -print-prog-name=collect2`
11985 if test -f "$collect2name" &&
11986 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11987 then
11988 # We have reworked collect2
11989 :
11990 else
11991 # We have old collect2
11992 hardcode_direct=unsupported
11993 # It fails to find uninstalled libraries when the uninstalled
11994 # path is not listed in the libpath. Setting hardcode_minus_L
11995 # to unsupported forces relinking
11996 hardcode_minus_L=yes
11997 hardcode_libdir_flag_spec='-L$libdir'
11998 hardcode_libdir_separator=
11999 fi
12000 ;;
12001 esac
12002 shared_flag='-shared'
12003 if test "$aix_use_runtimelinking" = yes; then
12004 shared_flag="$shared_flag "'${wl}-G'
12005 fi
12006 link_all_deplibs=no
12007 else
12008 # not using gcc
12009 if test "$host_cpu" = ia64; then
12010 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12011 # chokes on -Wl,-G. The following line is correct:
12012 shared_flag='-G'
12013 else
12014 if test "$aix_use_runtimelinking" = yes; then
12015 shared_flag='${wl}-G'
12016 else
12017 shared_flag='${wl}-bM:SRE'
12018 fi
12019 fi
12020 fi
12021
12022 export_dynamic_flag_spec='${wl}-bexpall'
12023 # It seems that -bexpall does not export symbols beginning with
12024 # underscore (_), so it is better to generate a list of symbols to export.
12025 always_export_symbols=yes
12026 if test "$aix_use_runtimelinking" = yes; then
12027 # Warning - without using the other runtime loading flags (-brtl),
12028 # -berok will link without error, but may produce a broken library.
12029 allow_undefined_flag='-berok'
12030 # Determine the default libpath from the value encoded in an
12031 # empty executable.
12032 if test "${lt_cv_aix_libpath+set}" = set; then
12033 aix_libpath=$lt_cv_aix_libpath
12034 else
12035 if ${lt_cv_aix_libpath_+:} false; then :
12036 $as_echo_n "(cached) " >&6
12037 else
12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12040
12041 int
12042 main ()
12043 {
12044
12045 ;
12046 return 0;
12047 }
12048 _ACEOF
12049 if ac_fn_c_try_link "$LINENO"; then :
12050
12051 lt_aix_libpath_sed='
12052 /Import File Strings/,/^$/ {
12053 /^0/ {
12054 s/^0 *\([^ ]*\) *$/\1/
12055 p
12056 }
12057 }'
12058 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12059 # Check for a 64-bit object if we didn't find anything.
12060 if test -z "$lt_cv_aix_libpath_"; then
12061 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12062 fi
12063 fi
12064 rm -f core conftest.err conftest.$ac_objext \
12065 conftest$ac_exeext conftest.$ac_ext
12066 if test -z "$lt_cv_aix_libpath_"; then
12067 lt_cv_aix_libpath_="/usr/lib:/lib"
12068 fi
12069
12070 fi
12071
12072 aix_libpath=$lt_cv_aix_libpath_
12073 fi
12074
12075 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12076 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12077 else
12078 if test "$host_cpu" = ia64; then
12079 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12080 allow_undefined_flag="-z nodefs"
12081 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"
12082 else
12083 # Determine the default libpath from the value encoded in an
12084 # empty executable.
12085 if test "${lt_cv_aix_libpath+set}" = set; then
12086 aix_libpath=$lt_cv_aix_libpath
12087 else
12088 if ${lt_cv_aix_libpath_+:} false; then :
12089 $as_echo_n "(cached) " >&6
12090 else
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12093
12094 int
12095 main ()
12096 {
12097
12098 ;
12099 return 0;
12100 }
12101 _ACEOF
12102 if ac_fn_c_try_link "$LINENO"; then :
12103
12104 lt_aix_libpath_sed='
12105 /Import File Strings/,/^$/ {
12106 /^0/ {
12107 s/^0 *\([^ ]*\) *$/\1/
12108 p
12109 }
12110 }'
12111 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12112 # Check for a 64-bit object if we didn't find anything.
12113 if test -z "$lt_cv_aix_libpath_"; then
12114 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12115 fi
12116 fi
12117 rm -f core conftest.err conftest.$ac_objext \
12118 conftest$ac_exeext conftest.$ac_ext
12119 if test -z "$lt_cv_aix_libpath_"; then
12120 lt_cv_aix_libpath_="/usr/lib:/lib"
12121 fi
12122
12123 fi
12124
12125 aix_libpath=$lt_cv_aix_libpath_
12126 fi
12127
12128 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12129 # Warning - without using the other run time loading flags,
12130 # -berok will link without error, but may produce a broken library.
12131 no_undefined_flag=' ${wl}-bernotok'
12132 allow_undefined_flag=' ${wl}-berok'
12133 if test "$with_gnu_ld" = yes; then
12134 # We only use this code for GNU lds that support --whole-archive.
12135 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12136 else
12137 # Exported symbols can be pulled into shared objects from archives
12138 whole_archive_flag_spec='$convenience'
12139 fi
12140 archive_cmds_need_lc=yes
12141 # This is similar to how AIX traditionally builds its shared libraries.
12142 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12143 fi
12144 fi
12145 ;;
12146
12147 amigaos*)
12148 case $host_cpu in
12149 powerpc)
12150 # see comment about AmigaOS4 .so support
12151 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12152 archive_expsym_cmds=''
12153 ;;
12154 m68k)
12155 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)'
12156 hardcode_libdir_flag_spec='-L$libdir'
12157 hardcode_minus_L=yes
12158 ;;
12159 esac
12160 ;;
12161
12162 bsdi[45]*)
12163 export_dynamic_flag_spec=-rdynamic
12164 ;;
12165
12166 cygwin* | mingw* | pw32* | cegcc*)
12167 # When not using gcc, we currently assume that we are using
12168 # Microsoft Visual C++.
12169 # hardcode_libdir_flag_spec is actually meaningless, as there is
12170 # no search path for DLLs.
12171 case $cc_basename in
12172 cl*)
12173 # Native MSVC
12174 hardcode_libdir_flag_spec=' '
12175 allow_undefined_flag=unsupported
12176 always_export_symbols=yes
12177 file_list_spec='@'
12178 # Tell ltmain to make .lib files, not .a files.
12179 libext=lib
12180 # Tell ltmain to make .dll files, not .so files.
12181 shrext_cmds=".dll"
12182 # FIXME: Setting linknames here is a bad hack.
12183 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12184 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12185 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12186 else
12187 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12188 fi~
12189 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12190 linknames='
12191 # The linker will not automatically build a static lib if we build a DLL.
12192 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12193 enable_shared_with_static_runtimes=yes
12194 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12195 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12196 # Don't use ranlib
12197 old_postinstall_cmds='chmod 644 $oldlib'
12198 postlink_cmds='lt_outputfile="@OUTPUT@"~
12199 lt_tool_outputfile="@TOOL_OUTPUT@"~
12200 case $lt_outputfile in
12201 *.exe|*.EXE) ;;
12202 *)
12203 lt_outputfile="$lt_outputfile.exe"
12204 lt_tool_outputfile="$lt_tool_outputfile.exe"
12205 ;;
12206 esac~
12207 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12208 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12209 $RM "$lt_outputfile.manifest";
12210 fi'
12211 ;;
12212 *)
12213 # Assume MSVC wrapper
12214 hardcode_libdir_flag_spec=' '
12215 allow_undefined_flag=unsupported
12216 # Tell ltmain to make .lib files, not .a files.
12217 libext=lib
12218 # Tell ltmain to make .dll files, not .so files.
12219 shrext_cmds=".dll"
12220 # FIXME: Setting linknames here is a bad hack.
12221 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12222 # The linker will automatically build a .lib file if we build a DLL.
12223 old_archive_from_new_cmds='true'
12224 # FIXME: Should let the user specify the lib program.
12225 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12226 enable_shared_with_static_runtimes=yes
12227 ;;
12228 esac
12229 ;;
12230
12231 darwin* | rhapsody*)
12232
12233
12234 archive_cmds_need_lc=no
12235 hardcode_direct=no
12236 hardcode_automatic=yes
12237 hardcode_shlibpath_var=unsupported
12238 if test "$lt_cv_ld_force_load" = "yes"; then
12239 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\"`'
12240
12241 else
12242 whole_archive_flag_spec=''
12243 fi
12244 link_all_deplibs=yes
12245 allow_undefined_flag="$_lt_dar_allow_undefined"
12246 case $cc_basename in
12247 ifort*) _lt_dar_can_shared=yes ;;
12248 *) _lt_dar_can_shared=$GCC ;;
12249 esac
12250 if test "$_lt_dar_can_shared" = "yes"; then
12251 output_verbose_link_cmd=func_echo_all
12252 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12253 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12254 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}"
12255 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}"
12256
12257 else
12258 ld_shlibs=no
12259 fi
12260
12261 ;;
12262
12263 dgux*)
12264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12265 hardcode_libdir_flag_spec='-L$libdir'
12266 hardcode_shlibpath_var=no
12267 ;;
12268
12269 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12270 # support. Future versions do this automatically, but an explicit c++rt0.o
12271 # does not break anything, and helps significantly (at the cost of a little
12272 # extra space).
12273 freebsd2.2*)
12274 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12275 hardcode_libdir_flag_spec='-R$libdir'
12276 hardcode_direct=yes
12277 hardcode_shlibpath_var=no
12278 ;;
12279
12280 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12281 freebsd2.*)
12282 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12283 hardcode_direct=yes
12284 hardcode_minus_L=yes
12285 hardcode_shlibpath_var=no
12286 ;;
12287
12288 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12289 freebsd* | dragonfly*)
12290 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12291 hardcode_libdir_flag_spec='-R$libdir'
12292 hardcode_direct=yes
12293 hardcode_shlibpath_var=no
12294 ;;
12295
12296 hpux9*)
12297 if test "$GCC" = yes; then
12298 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12299 else
12300 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12301 fi
12302 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12303 hardcode_libdir_separator=:
12304 hardcode_direct=yes
12305
12306 # hardcode_minus_L: Not really in the search PATH,
12307 # but as the default location of the library.
12308 hardcode_minus_L=yes
12309 export_dynamic_flag_spec='${wl}-E'
12310 ;;
12311
12312 hpux10*)
12313 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12314 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12315 else
12316 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12317 fi
12318 if test "$with_gnu_ld" = no; then
12319 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12320 hardcode_libdir_separator=:
12321 hardcode_direct=yes
12322 hardcode_direct_absolute=yes
12323 export_dynamic_flag_spec='${wl}-E'
12324 # hardcode_minus_L: Not really in the search PATH,
12325 # but as the default location of the library.
12326 hardcode_minus_L=yes
12327 fi
12328 ;;
12329
12330 hpux11*)
12331 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12332 case $host_cpu in
12333 hppa*64*)
12334 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12335 ;;
12336 ia64*)
12337 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12338 ;;
12339 *)
12340 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12341 ;;
12342 esac
12343 else
12344 case $host_cpu in
12345 hppa*64*)
12346 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12347 ;;
12348 ia64*)
12349 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12350 ;;
12351 *)
12352
12353 # Older versions of the 11.00 compiler do not understand -b yet
12354 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12356 $as_echo_n "checking if $CC understands -b... " >&6; }
12357 if ${lt_cv_prog_compiler__b+:} false; then :
12358 $as_echo_n "(cached) " >&6
12359 else
12360 lt_cv_prog_compiler__b=no
12361 save_LDFLAGS="$LDFLAGS"
12362 LDFLAGS="$LDFLAGS -b"
12363 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12364 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12365 # The linker can only warn and ignore the option if not recognized
12366 # So say no if there are warnings
12367 if test -s conftest.err; then
12368 # Append any errors to the config.log.
12369 cat conftest.err 1>&5
12370 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12371 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12372 if diff conftest.exp conftest.er2 >/dev/null; then
12373 lt_cv_prog_compiler__b=yes
12374 fi
12375 else
12376 lt_cv_prog_compiler__b=yes
12377 fi
12378 fi
12379 $RM -r conftest*
12380 LDFLAGS="$save_LDFLAGS"
12381
12382 fi
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12384 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12385
12386 if test x"$lt_cv_prog_compiler__b" = xyes; then
12387 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12388 else
12389 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12390 fi
12391
12392 ;;
12393 esac
12394 fi
12395 if test "$with_gnu_ld" = no; then
12396 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12397 hardcode_libdir_separator=:
12398
12399 case $host_cpu in
12400 hppa*64*|ia64*)
12401 hardcode_direct=no
12402 hardcode_shlibpath_var=no
12403 ;;
12404 *)
12405 hardcode_direct=yes
12406 hardcode_direct_absolute=yes
12407 export_dynamic_flag_spec='${wl}-E'
12408
12409 # hardcode_minus_L: Not really in the search PATH,
12410 # but as the default location of the library.
12411 hardcode_minus_L=yes
12412 ;;
12413 esac
12414 fi
12415 ;;
12416
12417 irix5* | irix6* | nonstopux*)
12418 if test "$GCC" = yes; then
12419 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'
12420 # Try to use the -exported_symbol ld option, if it does not
12421 # work, assume that -exports_file does not work either and
12422 # implicitly export all symbols.
12423 # This should be the same for all languages, so no per-tag cache variable.
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12425 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12426 if ${lt_cv_irix_exported_symbol+:} false; then :
12427 $as_echo_n "(cached) " >&6
12428 else
12429 save_LDFLAGS="$LDFLAGS"
12430 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432 /* end confdefs.h. */
12433 int foo (void) { return 0; }
12434 _ACEOF
12435 if ac_fn_c_try_link "$LINENO"; then :
12436 lt_cv_irix_exported_symbol=yes
12437 else
12438 lt_cv_irix_exported_symbol=no
12439 fi
12440 rm -f core conftest.err conftest.$ac_objext \
12441 conftest$ac_exeext conftest.$ac_ext
12442 LDFLAGS="$save_LDFLAGS"
12443 fi
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12445 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12446 if test "$lt_cv_irix_exported_symbol" = yes; then
12447 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'
12448 fi
12449 else
12450 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'
12451 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'
12452 fi
12453 archive_cmds_need_lc='no'
12454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12455 hardcode_libdir_separator=:
12456 inherit_rpath=yes
12457 link_all_deplibs=yes
12458 ;;
12459
12460 netbsd* | netbsdelf*-gnu)
12461 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12462 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12463 else
12464 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12465 fi
12466 hardcode_libdir_flag_spec='-R$libdir'
12467 hardcode_direct=yes
12468 hardcode_shlibpath_var=no
12469 ;;
12470
12471 newsos6)
12472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12473 hardcode_direct=yes
12474 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12475 hardcode_libdir_separator=:
12476 hardcode_shlibpath_var=no
12477 ;;
12478
12479 *nto* | *qnx*)
12480 ;;
12481
12482 openbsd*)
12483 if test -f /usr/libexec/ld.so; then
12484 hardcode_direct=yes
12485 hardcode_shlibpath_var=no
12486 hardcode_direct_absolute=yes
12487 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12488 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12489 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12490 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12491 export_dynamic_flag_spec='${wl}-E'
12492 else
12493 case $host_os in
12494 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12495 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12496 hardcode_libdir_flag_spec='-R$libdir'
12497 ;;
12498 *)
12499 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12500 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12501 ;;
12502 esac
12503 fi
12504 else
12505 ld_shlibs=no
12506 fi
12507 ;;
12508
12509 os2*)
12510 hardcode_libdir_flag_spec='-L$libdir'
12511 hardcode_minus_L=yes
12512 allow_undefined_flag=unsupported
12513 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12514 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12515 ;;
12516
12517 osf3*)
12518 if test "$GCC" = yes; then
12519 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12520 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'
12521 else
12522 allow_undefined_flag=' -expect_unresolved \*'
12523 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'
12524 fi
12525 archive_cmds_need_lc='no'
12526 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12527 hardcode_libdir_separator=:
12528 ;;
12529
12530 osf4* | osf5*) # as osf3* with the addition of -msym flag
12531 if test "$GCC" = yes; then
12532 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12533 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'
12534 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12535 else
12536 allow_undefined_flag=' -expect_unresolved \*'
12537 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'
12538 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~
12539 $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'
12540
12541 # Both c and cxx compiler support -rpath directly
12542 hardcode_libdir_flag_spec='-rpath $libdir'
12543 fi
12544 archive_cmds_need_lc='no'
12545 hardcode_libdir_separator=:
12546 ;;
12547
12548 solaris*)
12549 no_undefined_flag=' -z defs'
12550 if test "$GCC" = yes; then
12551 wlarc='${wl}'
12552 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12553 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12554 $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'
12555 else
12556 case `$CC -V 2>&1` in
12557 *"Compilers 5.0"*)
12558 wlarc=''
12559 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12560 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12561 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12562 ;;
12563 *)
12564 wlarc='${wl}'
12565 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12566 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12567 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12568 ;;
12569 esac
12570 fi
12571 hardcode_libdir_flag_spec='-R$libdir'
12572 hardcode_shlibpath_var=no
12573 case $host_os in
12574 solaris2.[0-5] | solaris2.[0-5].*) ;;
12575 *)
12576 # The compiler driver will combine and reorder linker options,
12577 # but understands `-z linker_flag'. GCC discards it without `$wl',
12578 # but is careful enough not to reorder.
12579 # Supported since Solaris 2.6 (maybe 2.5.1?)
12580 if test "$GCC" = yes; then
12581 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12582 else
12583 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12584 fi
12585 ;;
12586 esac
12587 link_all_deplibs=yes
12588 ;;
12589
12590 sunos4*)
12591 if test "x$host_vendor" = xsequent; then
12592 # Use $CC to link under sequent, because it throws in some extra .o
12593 # files that make .init and .fini sections work.
12594 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12595 else
12596 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12597 fi
12598 hardcode_libdir_flag_spec='-L$libdir'
12599 hardcode_direct=yes
12600 hardcode_minus_L=yes
12601 hardcode_shlibpath_var=no
12602 ;;
12603
12604 sysv4)
12605 case $host_vendor in
12606 sni)
12607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12608 hardcode_direct=yes # is this really true???
12609 ;;
12610 siemens)
12611 ## LD is ld it makes a PLAMLIB
12612 ## CC just makes a GrossModule.
12613 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12614 reload_cmds='$CC -r -o $output$reload_objs'
12615 hardcode_direct=no
12616 ;;
12617 motorola)
12618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12619 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12620 ;;
12621 esac
12622 runpath_var='LD_RUN_PATH'
12623 hardcode_shlibpath_var=no
12624 ;;
12625
12626 sysv4.3*)
12627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12628 hardcode_shlibpath_var=no
12629 export_dynamic_flag_spec='-Bexport'
12630 ;;
12631
12632 sysv4*MP*)
12633 if test -d /usr/nec; then
12634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12635 hardcode_shlibpath_var=no
12636 runpath_var=LD_RUN_PATH
12637 hardcode_runpath_var=yes
12638 ld_shlibs=yes
12639 fi
12640 ;;
12641
12642 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12643 no_undefined_flag='${wl}-z,text'
12644 archive_cmds_need_lc=no
12645 hardcode_shlibpath_var=no
12646 runpath_var='LD_RUN_PATH'
12647
12648 if test "$GCC" = yes; then
12649 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12650 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12651 else
12652 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12653 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12654 fi
12655 ;;
12656
12657 sysv5* | sco3.2v5* | sco5v6*)
12658 # Note: We can NOT use -z defs as we might desire, because we do not
12659 # link with -lc, and that would cause any symbols used from libc to
12660 # always be unresolved, which means just about no library would
12661 # ever link correctly. If we're not using GNU ld we use -z text
12662 # though, which does catch some bad symbols but isn't as heavy-handed
12663 # as -z defs.
12664 no_undefined_flag='${wl}-z,text'
12665 allow_undefined_flag='${wl}-z,nodefs'
12666 archive_cmds_need_lc=no
12667 hardcode_shlibpath_var=no
12668 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12669 hardcode_libdir_separator=':'
12670 link_all_deplibs=yes
12671 export_dynamic_flag_spec='${wl}-Bexport'
12672 runpath_var='LD_RUN_PATH'
12673
12674 if test "$GCC" = yes; then
12675 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12676 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12677 else
12678 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12679 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12680 fi
12681 ;;
12682
12683 uts4*)
12684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12685 hardcode_libdir_flag_spec='-L$libdir'
12686 hardcode_shlibpath_var=no
12687 ;;
12688
12689 *)
12690 ld_shlibs=no
12691 ;;
12692 esac
12693
12694 if test x$host_vendor = xsni; then
12695 case $host in
12696 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12697 export_dynamic_flag_spec='${wl}-Blargedynsym'
12698 ;;
12699 esac
12700 fi
12701 fi
12702
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12704 $as_echo "$ld_shlibs" >&6; }
12705 test "$ld_shlibs" = no && can_build_shared=no
12706
12707 with_gnu_ld=$with_gnu_ld
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723 #
12724 # Do we need to explicitly link libc?
12725 #
12726 case "x$archive_cmds_need_lc" in
12727 x|xyes)
12728 # Assume -lc should be added
12729 archive_cmds_need_lc=yes
12730
12731 if test "$enable_shared" = yes && test "$GCC" = yes; then
12732 case $archive_cmds in
12733 *'~'*)
12734 # FIXME: we may have to deal with multi-command sequences.
12735 ;;
12736 '$CC '*)
12737 # Test whether the compiler implicitly links with -lc since on some
12738 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12739 # to ld, don't add -lc before -lgcc.
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12741 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12742 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12743 $as_echo_n "(cached) " >&6
12744 else
12745 $RM conftest*
12746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12747
12748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12749 (eval $ac_compile) 2>&5
12750 ac_status=$?
12751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12752 test $ac_status = 0; } 2>conftest.err; then
12753 soname=conftest
12754 lib=conftest
12755 libobjs=conftest.$ac_objext
12756 deplibs=
12757 wl=$lt_prog_compiler_wl
12758 pic_flag=$lt_prog_compiler_pic
12759 compiler_flags=-v
12760 linker_flags=-v
12761 verstring=
12762 output_objdir=.
12763 libname=conftest
12764 lt_save_allow_undefined_flag=$allow_undefined_flag
12765 allow_undefined_flag=
12766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12767 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12768 ac_status=$?
12769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12770 test $ac_status = 0; }
12771 then
12772 lt_cv_archive_cmds_need_lc=no
12773 else
12774 lt_cv_archive_cmds_need_lc=yes
12775 fi
12776 allow_undefined_flag=$lt_save_allow_undefined_flag
12777 else
12778 cat conftest.err 1>&5
12779 fi
12780 $RM conftest*
12781
12782 fi
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12784 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12785 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12786 ;;
12787 esac
12788 fi
12789 ;;
12790 esac
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12944 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12945
12946 if test "$GCC" = yes; then
12947 case $host_os in
12948 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12949 *) lt_awk_arg="/^libraries:/" ;;
12950 esac
12951 case $host_os in
12952 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12953 *) lt_sed_strip_eq="s,=/,/,g" ;;
12954 esac
12955 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12956 case $lt_search_path_spec in
12957 *\;*)
12958 # if the path contains ";" then we assume it to be the separator
12959 # otherwise default to the standard path separator (i.e. ":") - it is
12960 # assumed that no part of a normal pathname contains ";" but that should
12961 # okay in the real world where ";" in dirpaths is itself problematic.
12962 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12963 ;;
12964 *)
12965 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12966 ;;
12967 esac
12968 # Ok, now we have the path, separated by spaces, we can step through it
12969 # and add multilib dir if necessary.
12970 lt_tmp_lt_search_path_spec=
12971 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12972 for lt_sys_path in $lt_search_path_spec; do
12973 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12974 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12975 else
12976 test -d "$lt_sys_path" && \
12977 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12978 fi
12979 done
12980 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12981 BEGIN {RS=" "; FS="/|\n";} {
12982 lt_foo="";
12983 lt_count=0;
12984 for (lt_i = NF; lt_i > 0; lt_i--) {
12985 if ($lt_i != "" && $lt_i != ".") {
12986 if ($lt_i == "..") {
12987 lt_count++;
12988 } else {
12989 if (lt_count == 0) {
12990 lt_foo="/" $lt_i lt_foo;
12991 } else {
12992 lt_count--;
12993 }
12994 }
12995 }
12996 }
12997 if (lt_foo != "") { lt_freq[lt_foo]++; }
12998 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12999 }'`
13000 # AWK program above erroneously prepends '/' to C:/dos/paths
13001 # for these hosts.
13002 case $host_os in
13003 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13004 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13005 esac
13006 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13007 else
13008 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13009 fi
13010 library_names_spec=
13011 libname_spec='lib$name'
13012 soname_spec=
13013 shrext_cmds=".so"
13014 postinstall_cmds=
13015 postuninstall_cmds=
13016 finish_cmds=
13017 finish_eval=
13018 shlibpath_var=
13019 shlibpath_overrides_runpath=unknown
13020 version_type=none
13021 dynamic_linker="$host_os ld.so"
13022 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13023 need_lib_prefix=unknown
13024 hardcode_into_libs=no
13025
13026 # when you set need_version to no, make sure it does not cause -set_version
13027 # flags to be left without arguments
13028 need_version=unknown
13029
13030 case $host_os in
13031 aix3*)
13032 version_type=linux # correct to gnu/linux during the next big refactor
13033 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13034 shlibpath_var=LIBPATH
13035
13036 # AIX 3 has no versioning support, so we append a major version to the name.
13037 soname_spec='${libname}${release}${shared_ext}$major'
13038 ;;
13039
13040 aix[4-9]*)
13041 version_type=linux # correct to gnu/linux during the next big refactor
13042 need_lib_prefix=no
13043 need_version=no
13044 hardcode_into_libs=yes
13045 if test "$host_cpu" = ia64; then
13046 # AIX 5 supports IA64
13047 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13048 shlibpath_var=LD_LIBRARY_PATH
13049 else
13050 # With GCC up to 2.95.x, collect2 would create an import file
13051 # for dependence libraries. The import file would start with
13052 # the line `#! .'. This would cause the generated library to
13053 # depend on `.', always an invalid library. This was fixed in
13054 # development snapshots of GCC prior to 3.0.
13055 case $host_os in
13056 aix4 | aix4.[01] | aix4.[01].*)
13057 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13058 echo ' yes '
13059 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13060 :
13061 else
13062 can_build_shared=no
13063 fi
13064 ;;
13065 esac
13066 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13067 # soname into executable. Probably we can add versioning support to
13068 # collect2, so additional links can be useful in future.
13069 if test "$aix_use_runtimelinking" = yes; then
13070 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13071 # instead of lib<name>.a to let people know that these are not
13072 # typical AIX shared libraries.
13073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13074 else
13075 # We preserve .a as extension for shared libraries through AIX4.2
13076 # and later when we are not doing run time linking.
13077 library_names_spec='${libname}${release}.a $libname.a'
13078 soname_spec='${libname}${release}${shared_ext}$major'
13079 fi
13080 shlibpath_var=LIBPATH
13081 fi
13082 ;;
13083
13084 amigaos*)
13085 case $host_cpu in
13086 powerpc)
13087 # Since July 2007 AmigaOS4 officially supports .so libraries.
13088 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13090 ;;
13091 m68k)
13092 library_names_spec='$libname.ixlibrary $libname.a'
13093 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13094 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13095 ;;
13096 esac
13097 ;;
13098
13099 beos*)
13100 library_names_spec='${libname}${shared_ext}'
13101 dynamic_linker="$host_os ld.so"
13102 shlibpath_var=LIBRARY_PATH
13103 ;;
13104
13105 bsdi[45]*)
13106 version_type=linux # correct to gnu/linux during the next big refactor
13107 need_version=no
13108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13109 soname_spec='${libname}${release}${shared_ext}$major'
13110 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13111 shlibpath_var=LD_LIBRARY_PATH
13112 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13113 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13114 # the default ld.so.conf also contains /usr/contrib/lib and
13115 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13116 # libtool to hard-code these into programs
13117 ;;
13118
13119 cygwin* | mingw* | pw32* | cegcc*)
13120 version_type=windows
13121 shrext_cmds=".dll"
13122 need_version=no
13123 need_lib_prefix=no
13124
13125 case $GCC,$cc_basename in
13126 yes,*)
13127 # gcc
13128 library_names_spec='$libname.dll.a'
13129 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13130 postinstall_cmds='base_file=`basename \${file}`~
13131 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13132 dldir=$destdir/`dirname \$dlpath`~
13133 test -d \$dldir || mkdir -p \$dldir~
13134 $install_prog $dir/$dlname \$dldir/$dlname~
13135 chmod a+x \$dldir/$dlname~
13136 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13137 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13138 fi'
13139 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13140 dlpath=$dir/\$dldll~
13141 $RM \$dlpath'
13142 shlibpath_overrides_runpath=yes
13143
13144 case $host_os in
13145 cygwin*)
13146 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13147 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13148
13149 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13150 ;;
13151 mingw* | cegcc*)
13152 # MinGW DLLs use traditional 'lib' prefix
13153 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13154 ;;
13155 pw32*)
13156 # pw32 DLLs use 'pw' prefix rather than 'lib'
13157 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13158 ;;
13159 esac
13160 dynamic_linker='Win32 ld.exe'
13161 ;;
13162
13163 *,cl*)
13164 # Native MSVC
13165 libname_spec='$name'
13166 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13167 library_names_spec='${libname}.dll.lib'
13168
13169 case $build_os in
13170 mingw*)
13171 sys_lib_search_path_spec=
13172 lt_save_ifs=$IFS
13173 IFS=';'
13174 for lt_path in $LIB
13175 do
13176 IFS=$lt_save_ifs
13177 # Let DOS variable expansion print the short 8.3 style file name.
13178 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13179 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13180 done
13181 IFS=$lt_save_ifs
13182 # Convert to MSYS style.
13183 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13184 ;;
13185 cygwin*)
13186 # Convert to unix form, then to dos form, then back to unix form
13187 # but this time dos style (no spaces!) so that the unix form looks
13188 # like /cygdrive/c/PROGRA~1:/cygdr...
13189 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13190 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13191 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13192 ;;
13193 *)
13194 sys_lib_search_path_spec="$LIB"
13195 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13196 # It is most probably a Windows format PATH.
13197 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13198 else
13199 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13200 fi
13201 # FIXME: find the short name or the path components, as spaces are
13202 # common. (e.g. "Program Files" -> "PROGRA~1")
13203 ;;
13204 esac
13205
13206 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13207 postinstall_cmds='base_file=`basename \${file}`~
13208 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13209 dldir=$destdir/`dirname \$dlpath`~
13210 test -d \$dldir || mkdir -p \$dldir~
13211 $install_prog $dir/$dlname \$dldir/$dlname'
13212 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13213 dlpath=$dir/\$dldll~
13214 $RM \$dlpath'
13215 shlibpath_overrides_runpath=yes
13216 dynamic_linker='Win32 link.exe'
13217 ;;
13218
13219 *)
13220 # Assume MSVC wrapper
13221 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13222 dynamic_linker='Win32 ld.exe'
13223 ;;
13224 esac
13225 # FIXME: first we should search . and the directory the executable is in
13226 shlibpath_var=PATH
13227 ;;
13228
13229 darwin* | rhapsody*)
13230 dynamic_linker="$host_os dyld"
13231 version_type=darwin
13232 need_lib_prefix=no
13233 need_version=no
13234 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13235 soname_spec='${libname}${release}${major}$shared_ext'
13236 shlibpath_overrides_runpath=yes
13237 shlibpath_var=DYLD_LIBRARY_PATH
13238 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13239
13240 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13241 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13242 ;;
13243
13244 dgux*)
13245 version_type=linux # correct to gnu/linux during the next big refactor
13246 need_lib_prefix=no
13247 need_version=no
13248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13249 soname_spec='${libname}${release}${shared_ext}$major'
13250 shlibpath_var=LD_LIBRARY_PATH
13251 ;;
13252
13253 freebsd* | dragonfly*)
13254 # DragonFly does not have aout. When/if they implement a new
13255 # versioning mechanism, adjust this.
13256 if test -x /usr/bin/objformat; then
13257 objformat=`/usr/bin/objformat`
13258 else
13259 case $host_os in
13260 freebsd[23].*) objformat=aout ;;
13261 *) objformat=elf ;;
13262 esac
13263 fi
13264 version_type=freebsd-$objformat
13265 case $version_type in
13266 freebsd-elf*)
13267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13268 need_version=no
13269 need_lib_prefix=no
13270 ;;
13271 freebsd-*)
13272 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13273 need_version=yes
13274 ;;
13275 esac
13276 shlibpath_var=LD_LIBRARY_PATH
13277 case $host_os in
13278 freebsd2.*)
13279 shlibpath_overrides_runpath=yes
13280 ;;
13281 freebsd3.[01]* | freebsdelf3.[01]*)
13282 shlibpath_overrides_runpath=yes
13283 hardcode_into_libs=yes
13284 ;;
13285 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13286 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13287 shlibpath_overrides_runpath=no
13288 hardcode_into_libs=yes
13289 ;;
13290 *) # from 4.6 on, and DragonFly
13291 shlibpath_overrides_runpath=yes
13292 hardcode_into_libs=yes
13293 ;;
13294 esac
13295 ;;
13296
13297 haiku*)
13298 version_type=linux # correct to gnu/linux during the next big refactor
13299 need_lib_prefix=no
13300 need_version=no
13301 dynamic_linker="$host_os runtime_loader"
13302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13303 soname_spec='${libname}${release}${shared_ext}$major'
13304 shlibpath_var=LIBRARY_PATH
13305 shlibpath_overrides_runpath=yes
13306 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13307 hardcode_into_libs=yes
13308 ;;
13309
13310 hpux9* | hpux10* | hpux11*)
13311 # Give a soname corresponding to the major version so that dld.sl refuses to
13312 # link against other versions.
13313 version_type=sunos
13314 need_lib_prefix=no
13315 need_version=no
13316 case $host_cpu in
13317 ia64*)
13318 shrext_cmds='.so'
13319 hardcode_into_libs=yes
13320 dynamic_linker="$host_os dld.so"
13321 shlibpath_var=LD_LIBRARY_PATH
13322 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13324 soname_spec='${libname}${release}${shared_ext}$major'
13325 if test "X$HPUX_IA64_MODE" = X32; then
13326 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13327 else
13328 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13329 fi
13330 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13331 ;;
13332 hppa*64*)
13333 shrext_cmds='.sl'
13334 hardcode_into_libs=yes
13335 dynamic_linker="$host_os dld.sl"
13336 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13337 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13339 soname_spec='${libname}${release}${shared_ext}$major'
13340 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13341 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13342 ;;
13343 *)
13344 shrext_cmds='.sl'
13345 dynamic_linker="$host_os dld.sl"
13346 shlibpath_var=SHLIB_PATH
13347 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13349 soname_spec='${libname}${release}${shared_ext}$major'
13350 ;;
13351 esac
13352 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13353 postinstall_cmds='chmod 555 $lib'
13354 # or fails outright, so override atomically:
13355 install_override_mode=555
13356 ;;
13357
13358 interix[3-9]*)
13359 version_type=linux # correct to gnu/linux during the next big refactor
13360 need_lib_prefix=no
13361 need_version=no
13362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13363 soname_spec='${libname}${release}${shared_ext}$major'
13364 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13365 shlibpath_var=LD_LIBRARY_PATH
13366 shlibpath_overrides_runpath=no
13367 hardcode_into_libs=yes
13368 ;;
13369
13370 irix5* | irix6* | nonstopux*)
13371 case $host_os in
13372 nonstopux*) version_type=nonstopux ;;
13373 *)
13374 if test "$lt_cv_prog_gnu_ld" = yes; then
13375 version_type=linux # correct to gnu/linux during the next big refactor
13376 else
13377 version_type=irix
13378 fi ;;
13379 esac
13380 need_lib_prefix=no
13381 need_version=no
13382 soname_spec='${libname}${release}${shared_ext}$major'
13383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13384 case $host_os in
13385 irix5* | nonstopux*)
13386 libsuff= shlibsuff=
13387 ;;
13388 *)
13389 case $LD in # libtool.m4 will add one of these switches to LD
13390 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13391 libsuff= shlibsuff= libmagic=32-bit;;
13392 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13393 libsuff=32 shlibsuff=N32 libmagic=N32;;
13394 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13395 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13396 *) libsuff= shlibsuff= libmagic=never-match;;
13397 esac
13398 ;;
13399 esac
13400 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13401 shlibpath_overrides_runpath=no
13402 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13403 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13404 hardcode_into_libs=yes
13405 ;;
13406
13407 # No shared lib support for Linux oldld, aout, or coff.
13408 linux*oldld* | linux*aout* | linux*coff*)
13409 dynamic_linker=no
13410 ;;
13411
13412 # This must be glibc/ELF.
13413 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13414 version_type=linux # correct to gnu/linux during the next big refactor
13415 need_lib_prefix=no
13416 need_version=no
13417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13418 soname_spec='${libname}${release}${shared_ext}$major'
13419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13420 shlibpath_var=LD_LIBRARY_PATH
13421 shlibpath_overrides_runpath=no
13422
13423 # Some binutils ld are patched to set DT_RUNPATH
13424 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13425 $as_echo_n "(cached) " >&6
13426 else
13427 lt_cv_shlibpath_overrides_runpath=no
13428 save_LDFLAGS=$LDFLAGS
13429 save_libdir=$libdir
13430 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13431 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h. */
13434
13435 int
13436 main ()
13437 {
13438
13439 ;
13440 return 0;
13441 }
13442 _ACEOF
13443 if ac_fn_c_try_link "$LINENO"; then :
13444 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13445 lt_cv_shlibpath_overrides_runpath=yes
13446 fi
13447 fi
13448 rm -f core conftest.err conftest.$ac_objext \
13449 conftest$ac_exeext conftest.$ac_ext
13450 LDFLAGS=$save_LDFLAGS
13451 libdir=$save_libdir
13452
13453 fi
13454
13455 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13456
13457 # This implies no fast_install, which is unacceptable.
13458 # Some rework will be needed to allow for fast_install
13459 # before this can be enabled.
13460 hardcode_into_libs=yes
13461
13462 # Append ld.so.conf contents to the search path
13463 if test -f /etc/ld.so.conf; then
13464 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' ' '`
13465 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13466 fi
13467
13468 # We used to test for /lib/ld.so.1 and disable shared libraries on
13469 # powerpc, because MkLinux only supported shared libraries with the
13470 # GNU dynamic linker. Since this was broken with cross compilers,
13471 # most powerpc-linux boxes support dynamic linking these days and
13472 # people can always --disable-shared, the test was removed, and we
13473 # assume the GNU/Linux dynamic linker is in use.
13474 dynamic_linker='GNU/Linux ld.so'
13475 ;;
13476
13477 netbsdelf*-gnu)
13478 version_type=linux
13479 need_lib_prefix=no
13480 need_version=no
13481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13482 soname_spec='${libname}${release}${shared_ext}$major'
13483 shlibpath_var=LD_LIBRARY_PATH
13484 shlibpath_overrides_runpath=no
13485 hardcode_into_libs=yes
13486 dynamic_linker='NetBSD ld.elf_so'
13487 ;;
13488
13489 netbsd*)
13490 version_type=sunos
13491 need_lib_prefix=no
13492 need_version=no
13493 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13496 dynamic_linker='NetBSD (a.out) ld.so'
13497 else
13498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13499 soname_spec='${libname}${release}${shared_ext}$major'
13500 dynamic_linker='NetBSD ld.elf_so'
13501 fi
13502 shlibpath_var=LD_LIBRARY_PATH
13503 shlibpath_overrides_runpath=yes
13504 hardcode_into_libs=yes
13505 ;;
13506
13507 newsos6)
13508 version_type=linux # correct to gnu/linux during the next big refactor
13509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13510 shlibpath_var=LD_LIBRARY_PATH
13511 shlibpath_overrides_runpath=yes
13512 ;;
13513
13514 *nto* | *qnx*)
13515 version_type=qnx
13516 need_lib_prefix=no
13517 need_version=no
13518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13519 soname_spec='${libname}${release}${shared_ext}$major'
13520 shlibpath_var=LD_LIBRARY_PATH
13521 shlibpath_overrides_runpath=no
13522 hardcode_into_libs=yes
13523 dynamic_linker='ldqnx.so'
13524 ;;
13525
13526 openbsd*)
13527 version_type=sunos
13528 sys_lib_dlsearch_path_spec="/usr/lib"
13529 need_lib_prefix=no
13530 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13531 case $host_os in
13532 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13533 *) need_version=no ;;
13534 esac
13535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13537 shlibpath_var=LD_LIBRARY_PATH
13538 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13539 case $host_os in
13540 openbsd2.[89] | openbsd2.[89].*)
13541 shlibpath_overrides_runpath=no
13542 ;;
13543 *)
13544 shlibpath_overrides_runpath=yes
13545 ;;
13546 esac
13547 else
13548 shlibpath_overrides_runpath=yes
13549 fi
13550 ;;
13551
13552 os2*)
13553 libname_spec='$name'
13554 shrext_cmds=".dll"
13555 need_lib_prefix=no
13556 library_names_spec='$libname${shared_ext} $libname.a'
13557 dynamic_linker='OS/2 ld.exe'
13558 shlibpath_var=LIBPATH
13559 ;;
13560
13561 osf3* | osf4* | osf5*)
13562 version_type=osf
13563 need_lib_prefix=no
13564 need_version=no
13565 soname_spec='${libname}${release}${shared_ext}$major'
13566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13567 shlibpath_var=LD_LIBRARY_PATH
13568 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13569 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13570 ;;
13571
13572 rdos*)
13573 dynamic_linker=no
13574 ;;
13575
13576 solaris*)
13577 version_type=linux # correct to gnu/linux during the next big refactor
13578 need_lib_prefix=no
13579 need_version=no
13580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13581 soname_spec='${libname}${release}${shared_ext}$major'
13582 shlibpath_var=LD_LIBRARY_PATH
13583 shlibpath_overrides_runpath=yes
13584 hardcode_into_libs=yes
13585 # ldd complains unless libraries are executable
13586 postinstall_cmds='chmod +x $lib'
13587 ;;
13588
13589 sunos4*)
13590 version_type=sunos
13591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13592 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13593 shlibpath_var=LD_LIBRARY_PATH
13594 shlibpath_overrides_runpath=yes
13595 if test "$with_gnu_ld" = yes; then
13596 need_lib_prefix=no
13597 fi
13598 need_version=yes
13599 ;;
13600
13601 sysv4 | sysv4.3*)
13602 version_type=linux # correct to gnu/linux during the next big refactor
13603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13604 soname_spec='${libname}${release}${shared_ext}$major'
13605 shlibpath_var=LD_LIBRARY_PATH
13606 case $host_vendor in
13607 sni)
13608 shlibpath_overrides_runpath=no
13609 need_lib_prefix=no
13610 runpath_var=LD_RUN_PATH
13611 ;;
13612 siemens)
13613 need_lib_prefix=no
13614 ;;
13615 motorola)
13616 need_lib_prefix=no
13617 need_version=no
13618 shlibpath_overrides_runpath=no
13619 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13620 ;;
13621 esac
13622 ;;
13623
13624 sysv4*MP*)
13625 if test -d /usr/nec ;then
13626 version_type=linux # correct to gnu/linux during the next big refactor
13627 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13628 soname_spec='$libname${shared_ext}.$major'
13629 shlibpath_var=LD_LIBRARY_PATH
13630 fi
13631 ;;
13632
13633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13634 version_type=freebsd-elf
13635 need_lib_prefix=no
13636 need_version=no
13637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13638 soname_spec='${libname}${release}${shared_ext}$major'
13639 shlibpath_var=LD_LIBRARY_PATH
13640 shlibpath_overrides_runpath=yes
13641 hardcode_into_libs=yes
13642 if test "$with_gnu_ld" = yes; then
13643 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13644 else
13645 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13646 case $host_os in
13647 sco3.2v5*)
13648 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13649 ;;
13650 esac
13651 fi
13652 sys_lib_dlsearch_path_spec='/usr/lib'
13653 ;;
13654
13655 tpf*)
13656 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13657 version_type=linux # correct to gnu/linux during the next big refactor
13658 need_lib_prefix=no
13659 need_version=no
13660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13661 shlibpath_var=LD_LIBRARY_PATH
13662 shlibpath_overrides_runpath=no
13663 hardcode_into_libs=yes
13664 ;;
13665
13666 uts4*)
13667 version_type=linux # correct to gnu/linux during the next big refactor
13668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13669 soname_spec='${libname}${release}${shared_ext}$major'
13670 shlibpath_var=LD_LIBRARY_PATH
13671 ;;
13672
13673 *)
13674 dynamic_linker=no
13675 ;;
13676 esac
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13678 $as_echo "$dynamic_linker" >&6; }
13679 test "$dynamic_linker" = no && can_build_shared=no
13680
13681 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13682 if test "$GCC" = yes; then
13683 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13684 fi
13685
13686 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13687 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13688 fi
13689 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13690 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13691 fi
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
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13785 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13786 hardcode_action=
13787 if test -n "$hardcode_libdir_flag_spec" ||
13788 test -n "$runpath_var" ||
13789 test "X$hardcode_automatic" = "Xyes" ; then
13790
13791 # We can hardcode non-existent directories.
13792 if test "$hardcode_direct" != no &&
13793 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13794 # have to relink, otherwise we might link with an installed library
13795 # when we should be linking with a yet-to-be-installed one
13796 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13797 test "$hardcode_minus_L" != no; then
13798 # Linking always hardcodes the temporary library directory.
13799 hardcode_action=relink
13800 else
13801 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13802 hardcode_action=immediate
13803 fi
13804 else
13805 # We cannot hardcode anything, or else we can only hardcode existing
13806 # directories.
13807 hardcode_action=unsupported
13808 fi
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13810 $as_echo "$hardcode_action" >&6; }
13811
13812 if test "$hardcode_action" = relink ||
13813 test "$inherit_rpath" = yes; then
13814 # Fast installation is not supported
13815 enable_fast_install=no
13816 elif test "$shlibpath_overrides_runpath" = yes ||
13817 test "$enable_shared" = no; then
13818 # Fast installation is not necessary
13819 enable_fast_install=needless
13820 fi
13821
13822
13823
13824
13825
13826
13827 if test "x$enable_dlopen" != xyes; then
13828 enable_dlopen=unknown
13829 enable_dlopen_self=unknown
13830 enable_dlopen_self_static=unknown
13831 else
13832 lt_cv_dlopen=no
13833 lt_cv_dlopen_libs=
13834
13835 case $host_os in
13836 beos*)
13837 lt_cv_dlopen="load_add_on"
13838 lt_cv_dlopen_libs=
13839 lt_cv_dlopen_self=yes
13840 ;;
13841
13842 mingw* | pw32* | cegcc*)
13843 lt_cv_dlopen="LoadLibrary"
13844 lt_cv_dlopen_libs=
13845 ;;
13846
13847 cygwin*)
13848 lt_cv_dlopen="dlopen"
13849 lt_cv_dlopen_libs=
13850 ;;
13851
13852 darwin*)
13853 # if libdl is installed we need to link against it
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13855 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13856 if ${ac_cv_lib_dl_dlopen+:} false; then :
13857 $as_echo_n "(cached) " >&6
13858 else
13859 ac_check_lib_save_LIBS=$LIBS
13860 LIBS="-ldl $LIBS"
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h. */
13863
13864 /* Override any GCC internal prototype to avoid an error.
13865 Use char because int might match the return type of a GCC
13866 builtin and then its argument prototype would still apply. */
13867 #ifdef __cplusplus
13868 extern "C"
13869 #endif
13870 char dlopen ();
13871 int
13872 main ()
13873 {
13874 return dlopen ();
13875 ;
13876 return 0;
13877 }
13878 _ACEOF
13879 if ac_fn_c_try_link "$LINENO"; then :
13880 ac_cv_lib_dl_dlopen=yes
13881 else
13882 ac_cv_lib_dl_dlopen=no
13883 fi
13884 rm -f core conftest.err conftest.$ac_objext \
13885 conftest$ac_exeext conftest.$ac_ext
13886 LIBS=$ac_check_lib_save_LIBS
13887 fi
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13889 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13890 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13891 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13892 else
13893
13894 lt_cv_dlopen="dyld"
13895 lt_cv_dlopen_libs=
13896 lt_cv_dlopen_self=yes
13897
13898 fi
13899
13900 ;;
13901
13902 *)
13903 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13904 if test "x$ac_cv_func_shl_load" = xyes; then :
13905 lt_cv_dlopen="shl_load"
13906 else
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13908 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13909 if ${ac_cv_lib_dld_shl_load+:} false; then :
13910 $as_echo_n "(cached) " >&6
13911 else
13912 ac_check_lib_save_LIBS=$LIBS
13913 LIBS="-ldld $LIBS"
13914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h. */
13916
13917 /* Override any GCC internal prototype to avoid an error.
13918 Use char because int might match the return type of a GCC
13919 builtin and then its argument prototype would still apply. */
13920 #ifdef __cplusplus
13921 extern "C"
13922 #endif
13923 char shl_load ();
13924 int
13925 main ()
13926 {
13927 return shl_load ();
13928 ;
13929 return 0;
13930 }
13931 _ACEOF
13932 if ac_fn_c_try_link "$LINENO"; then :
13933 ac_cv_lib_dld_shl_load=yes
13934 else
13935 ac_cv_lib_dld_shl_load=no
13936 fi
13937 rm -f core conftest.err conftest.$ac_objext \
13938 conftest$ac_exeext conftest.$ac_ext
13939 LIBS=$ac_check_lib_save_LIBS
13940 fi
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13942 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13943 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13944 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13945 else
13946 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13947 if test "x$ac_cv_func_dlopen" = xyes; then :
13948 lt_cv_dlopen="dlopen"
13949 else
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13951 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13952 if ${ac_cv_lib_dl_dlopen+:} false; then :
13953 $as_echo_n "(cached) " >&6
13954 else
13955 ac_check_lib_save_LIBS=$LIBS
13956 LIBS="-ldl $LIBS"
13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13959
13960 /* Override any GCC internal prototype to avoid an error.
13961 Use char because int might match the return type of a GCC
13962 builtin and then its argument prototype would still apply. */
13963 #ifdef __cplusplus
13964 extern "C"
13965 #endif
13966 char dlopen ();
13967 int
13968 main ()
13969 {
13970 return dlopen ();
13971 ;
13972 return 0;
13973 }
13974 _ACEOF
13975 if ac_fn_c_try_link "$LINENO"; then :
13976 ac_cv_lib_dl_dlopen=yes
13977 else
13978 ac_cv_lib_dl_dlopen=no
13979 fi
13980 rm -f core conftest.err conftest.$ac_objext \
13981 conftest$ac_exeext conftest.$ac_ext
13982 LIBS=$ac_check_lib_save_LIBS
13983 fi
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13985 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13986 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13987 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13988 else
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13990 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13991 if ${ac_cv_lib_svld_dlopen+:} false; then :
13992 $as_echo_n "(cached) " >&6
13993 else
13994 ac_check_lib_save_LIBS=$LIBS
13995 LIBS="-lsvld $LIBS"
13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
13998
13999 /* Override any GCC internal prototype to avoid an error.
14000 Use char because int might match the return type of a GCC
14001 builtin and then its argument prototype would still apply. */
14002 #ifdef __cplusplus
14003 extern "C"
14004 #endif
14005 char dlopen ();
14006 int
14007 main ()
14008 {
14009 return dlopen ();
14010 ;
14011 return 0;
14012 }
14013 _ACEOF
14014 if ac_fn_c_try_link "$LINENO"; then :
14015 ac_cv_lib_svld_dlopen=yes
14016 else
14017 ac_cv_lib_svld_dlopen=no
14018 fi
14019 rm -f core conftest.err conftest.$ac_objext \
14020 conftest$ac_exeext conftest.$ac_ext
14021 LIBS=$ac_check_lib_save_LIBS
14022 fi
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14024 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14025 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14027 else
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14029 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14030 if ${ac_cv_lib_dld_dld_link+:} false; then :
14031 $as_echo_n "(cached) " >&6
14032 else
14033 ac_check_lib_save_LIBS=$LIBS
14034 LIBS="-ldld $LIBS"
14035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14036 /* end confdefs.h. */
14037
14038 /* Override any GCC internal prototype to avoid an error.
14039 Use char because int might match the return type of a GCC
14040 builtin and then its argument prototype would still apply. */
14041 #ifdef __cplusplus
14042 extern "C"
14043 #endif
14044 char dld_link ();
14045 int
14046 main ()
14047 {
14048 return dld_link ();
14049 ;
14050 return 0;
14051 }
14052 _ACEOF
14053 if ac_fn_c_try_link "$LINENO"; then :
14054 ac_cv_lib_dld_dld_link=yes
14055 else
14056 ac_cv_lib_dld_dld_link=no
14057 fi
14058 rm -f core conftest.err conftest.$ac_objext \
14059 conftest$ac_exeext conftest.$ac_ext
14060 LIBS=$ac_check_lib_save_LIBS
14061 fi
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14063 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14064 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14065 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14066 fi
14067
14068
14069 fi
14070
14071
14072 fi
14073
14074
14075 fi
14076
14077
14078 fi
14079
14080
14081 fi
14082
14083 ;;
14084 esac
14085
14086 if test "x$lt_cv_dlopen" != xno; then
14087 enable_dlopen=yes
14088 else
14089 enable_dlopen=no
14090 fi
14091
14092 case $lt_cv_dlopen in
14093 dlopen)
14094 save_CPPFLAGS="$CPPFLAGS"
14095 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14096
14097 save_LDFLAGS="$LDFLAGS"
14098 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14099
14100 save_LIBS="$LIBS"
14101 LIBS="$lt_cv_dlopen_libs $LIBS"
14102
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14104 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14105 if ${lt_cv_dlopen_self+:} false; then :
14106 $as_echo_n "(cached) " >&6
14107 else
14108 if test "$cross_compiling" = yes; then :
14109 lt_cv_dlopen_self=cross
14110 else
14111 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14112 lt_status=$lt_dlunknown
14113 cat > conftest.$ac_ext <<_LT_EOF
14114 #line $LINENO "configure"
14115 #include "confdefs.h"
14116
14117 #if HAVE_DLFCN_H
14118 #include <dlfcn.h>
14119 #endif
14120
14121 #include <stdio.h>
14122
14123 #ifdef RTLD_GLOBAL
14124 # define LT_DLGLOBAL RTLD_GLOBAL
14125 #else
14126 # ifdef DL_GLOBAL
14127 # define LT_DLGLOBAL DL_GLOBAL
14128 # else
14129 # define LT_DLGLOBAL 0
14130 # endif
14131 #endif
14132
14133 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14134 find out it does not work in some platform. */
14135 #ifndef LT_DLLAZY_OR_NOW
14136 # ifdef RTLD_LAZY
14137 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14138 # else
14139 # ifdef DL_LAZY
14140 # define LT_DLLAZY_OR_NOW DL_LAZY
14141 # else
14142 # ifdef RTLD_NOW
14143 # define LT_DLLAZY_OR_NOW RTLD_NOW
14144 # else
14145 # ifdef DL_NOW
14146 # define LT_DLLAZY_OR_NOW DL_NOW
14147 # else
14148 # define LT_DLLAZY_OR_NOW 0
14149 # endif
14150 # endif
14151 # endif
14152 # endif
14153 #endif
14154
14155 /* When -fvisbility=hidden is used, assume the code has been annotated
14156 correspondingly for the symbols needed. */
14157 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14158 int fnord () __attribute__((visibility("default")));
14159 #endif
14160
14161 int fnord () { return 42; }
14162 int main ()
14163 {
14164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14165 int status = $lt_dlunknown;
14166
14167 if (self)
14168 {
14169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14170 else
14171 {
14172 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14173 else puts (dlerror ());
14174 }
14175 /* dlclose (self); */
14176 }
14177 else
14178 puts (dlerror ());
14179
14180 return status;
14181 }
14182 _LT_EOF
14183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14184 (eval $ac_link) 2>&5
14185 ac_status=$?
14186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14187 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14188 (./conftest; exit; ) >&5 2>/dev/null
14189 lt_status=$?
14190 case x$lt_status in
14191 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14192 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14193 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14194 esac
14195 else :
14196 # compilation failed
14197 lt_cv_dlopen_self=no
14198 fi
14199 fi
14200 rm -fr conftest*
14201
14202
14203 fi
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14205 $as_echo "$lt_cv_dlopen_self" >&6; }
14206
14207 if test "x$lt_cv_dlopen_self" = xyes; then
14208 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14210 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14211 if ${lt_cv_dlopen_self_static+:} false; then :
14212 $as_echo_n "(cached) " >&6
14213 else
14214 if test "$cross_compiling" = yes; then :
14215 lt_cv_dlopen_self_static=cross
14216 else
14217 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14218 lt_status=$lt_dlunknown
14219 cat > conftest.$ac_ext <<_LT_EOF
14220 #line $LINENO "configure"
14221 #include "confdefs.h"
14222
14223 #if HAVE_DLFCN_H
14224 #include <dlfcn.h>
14225 #endif
14226
14227 #include <stdio.h>
14228
14229 #ifdef RTLD_GLOBAL
14230 # define LT_DLGLOBAL RTLD_GLOBAL
14231 #else
14232 # ifdef DL_GLOBAL
14233 # define LT_DLGLOBAL DL_GLOBAL
14234 # else
14235 # define LT_DLGLOBAL 0
14236 # endif
14237 #endif
14238
14239 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14240 find out it does not work in some platform. */
14241 #ifndef LT_DLLAZY_OR_NOW
14242 # ifdef RTLD_LAZY
14243 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14244 # else
14245 # ifdef DL_LAZY
14246 # define LT_DLLAZY_OR_NOW DL_LAZY
14247 # else
14248 # ifdef RTLD_NOW
14249 # define LT_DLLAZY_OR_NOW RTLD_NOW
14250 # else
14251 # ifdef DL_NOW
14252 # define LT_DLLAZY_OR_NOW DL_NOW
14253 # else
14254 # define LT_DLLAZY_OR_NOW 0
14255 # endif
14256 # endif
14257 # endif
14258 # endif
14259 #endif
14260
14261 /* When -fvisbility=hidden is used, assume the code has been annotated
14262 correspondingly for the symbols needed. */
14263 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14264 int fnord () __attribute__((visibility("default")));
14265 #endif
14266
14267 int fnord () { return 42; }
14268 int main ()
14269 {
14270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14271 int status = $lt_dlunknown;
14272
14273 if (self)
14274 {
14275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14276 else
14277 {
14278 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14279 else puts (dlerror ());
14280 }
14281 /* dlclose (self); */
14282 }
14283 else
14284 puts (dlerror ());
14285
14286 return status;
14287 }
14288 _LT_EOF
14289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14290 (eval $ac_link) 2>&5
14291 ac_status=$?
14292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14293 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14294 (./conftest; exit; ) >&5 2>/dev/null
14295 lt_status=$?
14296 case x$lt_status in
14297 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14298 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14299 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14300 esac
14301 else :
14302 # compilation failed
14303 lt_cv_dlopen_self_static=no
14304 fi
14305 fi
14306 rm -fr conftest*
14307
14308
14309 fi
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14311 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14312 fi
14313
14314 CPPFLAGS="$save_CPPFLAGS"
14315 LDFLAGS="$save_LDFLAGS"
14316 LIBS="$save_LIBS"
14317 ;;
14318 esac
14319
14320 case $lt_cv_dlopen_self in
14321 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14322 *) enable_dlopen_self=unknown ;;
14323 esac
14324
14325 case $lt_cv_dlopen_self_static in
14326 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14327 *) enable_dlopen_self_static=unknown ;;
14328 esac
14329 fi
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347 striplib=
14348 old_striplib=
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14350 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14351 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14352 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14353 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14355 $as_echo "yes" >&6; }
14356 else
14357 # FIXME - insert some real tests, host_os isn't really good enough
14358 case $host_os in
14359 darwin*)
14360 if test -n "$STRIP" ; then
14361 striplib="$STRIP -x"
14362 old_striplib="$STRIP -S"
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14364 $as_echo "yes" >&6; }
14365 else
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14367 $as_echo "no" >&6; }
14368 fi
14369 ;;
14370 *)
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14372 $as_echo "no" >&6; }
14373 ;;
14374 esac
14375 fi
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388 # Report which library types will actually be built
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14390 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14392 $as_echo "$can_build_shared" >&6; }
14393
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14395 $as_echo_n "checking whether to build shared libraries... " >&6; }
14396 test "$can_build_shared" = "no" && enable_shared=no
14397
14398 # On AIX, shared libraries and static libraries use the same namespace, and
14399 # are all built from PIC.
14400 case $host_os in
14401 aix3*)
14402 test "$enable_shared" = yes && enable_static=no
14403 if test -n "$RANLIB"; then
14404 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14405 postinstall_cmds='$RANLIB $lib'
14406 fi
14407 ;;
14408
14409 aix[4-9]*)
14410 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14411 test "$enable_shared" = yes && enable_static=no
14412 fi
14413 ;;
14414 esac
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14416 $as_echo "$enable_shared" >&6; }
14417
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14419 $as_echo_n "checking whether to build static libraries... " >&6; }
14420 # Make sure either enable_shared or enable_static is yes.
14421 test "$enable_shared" = yes || enable_static=yes
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14423 $as_echo "$enable_static" >&6; }
14424
14425
14426
14427
14428 fi
14429 ac_ext=c
14430 ac_cpp='$CPP $CPPFLAGS'
14431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14434
14435 CC="$lt_save_CC"
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451 ac_config_commands="$ac_config_commands libtool"
14452
14453
14454
14455
14456 # Only expand once:
14457
14458
14459
14460
14461
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5
14463 $as_echo_n "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; }
14464 if ${gmp_cv_c_attribute_mode+:} false; then :
14465 $as_echo_n "(cached) " >&6
14466 else
14467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14468 /* end confdefs.h. */
14469 typedef int SItype __attribute__ ((mode (SI)));
14470 int
14471 main ()
14472 {
14473
14474 ;
14475 return 0;
14476 }
14477 _ACEOF
14478 if ac_fn_c_try_compile "$LINENO"; then :
14479 gmp_cv_c_attribute_mode=yes
14480 else
14481 gmp_cv_c_attribute_mode=no
14482 fi
14483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14484
14485 fi
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5
14487 $as_echo "$gmp_cv_c_attribute_mode" >&6; }
14488 if test $gmp_cv_c_attribute_mode = yes; then
14489
14490 $as_echo "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h
14491
14492 fi
14493
14494
14495
14496
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent GMP" >&5
14498 $as_echo_n "checking for recent GMP... " >&6; }
14499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14500 /* end confdefs.h. */
14501
14502 #include "gmp.h"
14503 #if (__GNU_MP_VERSION*100+__GNU_MP_VERSION_MINOR*10 < 410)
14504 # error "min GMP version is 4.1.0"
14505 error
14506 #endif
14507
14508 _ACEOF
14509 if ac_fn_c_try_compile "$LINENO"; then :
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14511 $as_echo "yes" >&6; }
14512 else
14513
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14515 $as_echo "no" >&6; }
14516 as_fn_error $? "GMP 4.1.0 min required" "$LINENO" 5
14517
14518 fi
14519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14520
14521 if test "$use_gmp_build" = yes ; then
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp internal files" >&5
14523 $as_echo_n "checking for gmp internal files... " >&6; }
14524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525 /* end confdefs.h. */
14526
14527 #include "gmp.h"
14528 #include "gmp-impl.h"
14529 #include "longlong.h"
14530
14531 _ACEOF
14532 if ac_fn_c_try_compile "$LINENO"; then :
14533
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14535 $as_echo "yes" >&6; }
14536
14537 $as_echo "#define MPFR_HAVE_GMP_IMPL 1" >>confdefs.h
14538
14539
14540 else
14541
14542 as_fn_error $? "header files gmp-impl.h and longlong.h not found" "$LINENO" 5
14543
14544 fi
14545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14546 fi
14547
14548 if test "$use_gmp_build" = yes ; then
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valid GMP_NUMB_BITS" >&5
14550 $as_echo_n "checking for valid GMP_NUMB_BITS... " >&6; }
14551 if test "$cross_compiling" = yes; then :
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't test" >&5
14553 $as_echo "can't test" >&6; }
14554 else
14555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14556 /* end confdefs.h. */
14557
14558 #include <limits.h>
14559 #include "gmp.h"
14560 #include "gmp-impl.h"
14561
14562 int
14563 main ()
14564 {
14565
14566 return GMP_NUMB_BITS == BYTES_PER_MP_LIMB * CHAR_BIT
14567 && sizeof(mp_limb_t) == BYTES_PER_MP_LIMB ? 0 : 1;
14568
14569 ;
14570 return 0;
14571 }
14572 _ACEOF
14573 if ac_fn_c_try_run "$LINENO"; then :
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14575 $as_echo "yes" >&6; }
14576 else
14577
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14579 $as_echo "no" >&6; }
14580 as_fn_error $? "GMP_NUMB_BITS is incorrect.
14581 You probably need to change some of the GMP or MPFR compile options." "$LINENO" 5
14582 fi
14583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14584 conftest.$ac_objext conftest.beam conftest.$ac_ext
14585 fi
14586
14587 fi
14588
14589
14590 if test "$dont_link_with_gmp" = yes ; then
14591 LIBS="-lgmp $LIBS"
14592 else
14593
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
14595 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
14596 if ${ac_cv_lib_gmp___gmpz_init+:} false; then :
14597 $as_echo_n "(cached) " >&6
14598 else
14599 ac_check_lib_save_LIBS=$LIBS
14600 LIBS="-lgmp $LIBS"
14601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14602 /* end confdefs.h. */
14603
14604 /* Override any GCC internal prototype to avoid an error.
14605 Use char because int might match the return type of a GCC
14606 builtin and then its argument prototype would still apply. */
14607 #ifdef __cplusplus
14608 extern "C"
14609 #endif
14610 char __gmpz_init ();
14611 int
14612 main ()
14613 {
14614 return __gmpz_init ();
14615 ;
14616 return 0;
14617 }
14618 _ACEOF
14619 if ac_fn_c_try_link "$LINENO"; then :
14620 ac_cv_lib_gmp___gmpz_init=yes
14621 else
14622 ac_cv_lib_gmp___gmpz_init=no
14623 fi
14624 rm -f core conftest.err conftest.$ac_objext \
14625 conftest$ac_exeext conftest.$ac_ext
14626 LIBS=$ac_check_lib_save_LIBS
14627 fi
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
14629 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
14630 if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then :
14631 LIBS="-lgmp $LIBS"
14632 else
14633 as_fn_error $? "libgmp not found or uses a different ABI (including static vs shared).
14634 Please read the INSTALL file -- see \"In case of problem\"." "$LINENO" 5
14635 fi
14636
14637
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp.h version and libgmp version are the same" >&5
14639 $as_echo_n "checking if gmp.h version and libgmp version are the same... " >&6; }
14640 saved_LD_RUN_PATH="$LD_RUN_PATH"
14641 LD_RUN_PATH="${LD_RUN_PATH:+$LD_RUN_PATH$PATH_SEPARATOR}$gmp_lib_path"
14642 export LD_RUN_PATH
14643 if test "$cross_compiling" = yes; then :
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can not test" >&5
14645 $as_echo "can not test" >&6; }
14646
14647 else
14648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649 /* end confdefs.h. */
14650
14651 #include <stdio.h>
14652 #include <string.h>
14653 #include "gmp.h"
14654
14655 int
14656 main ()
14657 {
14658
14659 char buffer[100];
14660 sprintf (buffer, "%d.%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR,
14661 __GNU_MP_VERSION_PATCHLEVEL);
14662 printf ("(%s/%s) ", buffer, gmp_version);
14663 if (strcmp (buffer, gmp_version) == 0)
14664 return 0;
14665 if (__GNU_MP_VERSION_PATCHLEVEL != 0)
14666 return 1;
14667 sprintf (buffer, "%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR);
14668 return (strcmp (buffer, gmp_version) != 0) ? 1 : 0;
14669
14670 ;
14671 return 0;
14672 }
14673 _ACEOF
14674 if ac_fn_c_try_run "$LINENO"; then :
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14676 $as_echo "yes" >&6; }
14677
14678 if test "$ac_cv_type_intmax_t" = yes; then
14679
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%jd\"" >&5
14681 $as_echo_n "checking if gmp_printf supports \"%jd\"... " >&6; }
14682 if test "$cross_compiling" = yes; then :
14683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14685 as_fn_error $? "cannot run test program while cross compiling
14686 See \`config.log' for more details" "$LINENO" 5; }
14687 else
14688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689 /* end confdefs.h. */
14690
14691 #include <stdio.h>
14692
14693 #ifdef HAVE_INTTYPES_H
14694 # include <inttypes.h>
14695 #endif
14696 #ifdef HAVE_STDINT_H
14697 # include <stdint.h>
14698 #endif
14699
14700 #include <gmp.h>
14701
14702 int
14703 main ()
14704 {
14705
14706 char s[256];
14707 intmax_t a = 17;
14708
14709 if (gmp_sprintf (s, "(%0.0jd)(%d)", a, 42) == -1) return 1;
14710 return (strcmp (s, "(17)(42)") != 0);
14711
14712 ;
14713 return 0;
14714 }
14715 _ACEOF
14716 if ac_fn_c_try_run "$LINENO"; then :
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14718 $as_echo "yes" >&6; }
14719
14720 else
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14722 $as_echo "no" >&6; }
14723
14724 $as_echo "#define NPRINTF_J 1" >>confdefs.h
14725
14726 fi
14727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14728 conftest.$ac_objext conftest.beam conftest.$ac_ext
14729 fi
14730
14731
14732 fi
14733
14734
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%hhd\"" >&5
14736 $as_echo_n "checking if gmp_printf supports \"%hhd\"... " >&6; }
14737 if test "$cross_compiling" = yes; then :
14738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14740 as_fn_error $? "cannot run test program while cross compiling
14741 See \`config.log' for more details" "$LINENO" 5; }
14742 else
14743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14744 /* end confdefs.h. */
14745
14746 #include <stdio.h>
14747
14748 #include <gmp.h>
14749
14750 #include <gmp.h>
14751
14752 int
14753 main ()
14754 {
14755
14756 char s[256];
14757 char a = 17;
14758
14759 if (gmp_sprintf (s, "(%0.0hhd)(%d)", a, 42) == -1) return 1;
14760 return (strcmp (s, "(17)(42)") != 0);
14761
14762 ;
14763 return 0;
14764 }
14765 _ACEOF
14766 if ac_fn_c_try_run "$LINENO"; then :
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14768 $as_echo "yes" >&6; }
14769
14770 else
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14772 $as_echo "no" >&6; }
14773
14774 $as_echo "#define NPRINTF_HH 1" >>confdefs.h
14775
14776 fi
14777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14778 conftest.$ac_objext conftest.beam conftest.$ac_ext
14779 fi
14780
14781
14782
14783
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%lld\"" >&5
14785 $as_echo_n "checking if gmp_printf supports \"%lld\"... " >&6; }
14786 if test "$cross_compiling" = yes; then :
14787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14789 as_fn_error $? "cannot run test program while cross compiling
14790 See \`config.log' for more details" "$LINENO" 5; }
14791 else
14792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793 /* end confdefs.h. */
14794
14795 #include <stdio.h>
14796
14797 #include <gmp.h>
14798
14799 #include <gmp.h>
14800
14801 int
14802 main ()
14803 {
14804
14805 char s[256];
14806 long long int a = 17;
14807
14808 if (gmp_sprintf (s, "(%0.0lld)(%d)", a, 42) == -1) return 1;
14809 return (strcmp (s, "(17)(42)") != 0);
14810
14811 ;
14812 return 0;
14813 }
14814 _ACEOF
14815 if ac_fn_c_try_run "$LINENO"; then :
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14817 $as_echo "yes" >&6; }
14818
14819 else
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14821 $as_echo "no" >&6; }
14822
14823 $as_echo "#define NPRINTF_LL 1" >>confdefs.h
14824
14825 fi
14826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14827 conftest.$ac_objext conftest.beam conftest.$ac_ext
14828 fi
14829
14830
14831
14832
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%Lf\"" >&5
14834 $as_echo_n "checking if gmp_printf supports \"%Lf\"... " >&6; }
14835 if test "$cross_compiling" = yes; then :
14836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14838 as_fn_error $? "cannot run test program while cross compiling
14839 See \`config.log' for more details" "$LINENO" 5; }
14840 else
14841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14842 /* end confdefs.h. */
14843
14844 #include <stdio.h>
14845
14846 #include <gmp.h>
14847
14848 #include <gmp.h>
14849
14850 int
14851 main ()
14852 {
14853
14854 char s[256];
14855 long double a = 17;
14856
14857 if (gmp_sprintf (s, "(%0.0Lf)(%d)", a, 42) == -1) return 1;
14858 return (strcmp (s, "(17)(42)") != 0);
14859
14860 ;
14861 return 0;
14862 }
14863 _ACEOF
14864 if ac_fn_c_try_run "$LINENO"; then :
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14866 $as_echo "yes" >&6; }
14867
14868 else
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14870 $as_echo "no" >&6; }
14871
14872 $as_echo "#define NPRINTF_L 1" >>confdefs.h
14873
14874 fi
14875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14876 conftest.$ac_objext conftest.beam conftest.$ac_ext
14877 fi
14878
14879
14880
14881
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%td\"" >&5
14883 $as_echo_n "checking if gmp_printf supports \"%td\"... " >&6; }
14884 if test "$cross_compiling" = yes; then :
14885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14887 as_fn_error $? "cannot run test program while cross compiling
14888 See \`config.log' for more details" "$LINENO" 5; }
14889 else
14890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14891 /* end confdefs.h. */
14892
14893 #include <stdio.h>
14894
14895 #if defined (__cplusplus)
14896 #include <cstddef>
14897 #else
14898 #include <stddef.h>
14899 #endif
14900 #include "gmp.h"
14901
14902 #include <gmp.h>
14903
14904 int
14905 main ()
14906 {
14907
14908 char s[256];
14909 ptrdiff_t a = 17;
14910
14911 if (gmp_sprintf (s, "(%0.0td)(%d)", a, 42) == -1) return 1;
14912 return (strcmp (s, "(17)(42)") != 0);
14913
14914 ;
14915 return 0;
14916 }
14917 _ACEOF
14918 if ac_fn_c_try_run "$LINENO"; then :
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14920 $as_echo "yes" >&6; }
14921
14922 else
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14924 $as_echo "no" >&6; }
14925
14926 $as_echo "#define NPRINTF_T 1" >>confdefs.h
14927
14928 fi
14929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14930 conftest.$ac_objext conftest.beam conftest.$ac_ext
14931 fi
14932
14933
14934
14935 else
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14937 $as_echo "no" >&6; }
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==========================================================" >&5
14939 $as_echo "$as_me: WARNING: ==========================================================" >&2;}
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'gmp.h' and 'libgmp' seem to have different versions or" >&5
14941 $as_echo "$as_me: WARNING: 'gmp.h' and 'libgmp' seem to have different versions or" >&2;}
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we cannot run a program linked with GMP (if you cannot" >&5
14943 $as_echo "$as_me: WARNING: we cannot run a program linked with GMP (if you cannot" >&2;}
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see the version numbers above). A cause may be different" >&5
14945 $as_echo "$as_me: WARNING: see the version numbers above). A cause may be different" >&2;}
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GMP versions with different ABI's or the use of --with-gmp" >&5
14947 $as_echo "$as_me: WARNING: GMP versions with different ABI's or the use of --with-gmp" >&2;}
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: or --with-gmp-include with a system include directory" >&5
14949 $as_echo "$as_me: WARNING: or --with-gmp-include with a system include directory" >&2;}
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (such as /usr/include or /usr/local/include)." >&5
14951 $as_echo "$as_me: WARNING: (such as /usr/include or /usr/local/include)." >&2;}
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: However since we can't use 'libtool' inside the configure," >&5
14953 $as_echo "$as_me: WARNING: However since we can't use 'libtool' inside the configure," >&2;}
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we can't be sure. See 'config.log' for details." >&5
14955 $as_echo "$as_me: WARNING: we can't be sure. See 'config.log' for details." >&2;}
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==========================================================" >&5
14957 $as_echo "$as_me: WARNING: ==========================================================" >&2;}
14958
14959 fi
14960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14961 conftest.$ac_objext conftest.beam conftest.$ac_ext
14962 fi
14963
14964 LD_RUN_PATH="$saved_LD_RUN_PATH"
14965
14966 for ac_func in __gmpn_rootrem __gmpn_sbpi1_divappr_q
14967 do :
14968 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14969 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14970 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14971 cat >>confdefs.h <<_ACEOF
14972 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14973 _ACEOF
14974
14975 fi
14976 done
14977
14978
14979 fi
14980
14981 if test -f confdefs.h; then
14982 $SED '/#define PACKAGE_/d' <confdefs.h >confdefs.tmp
14983 $SED '/#define HAVE_STRING/d' <confdefs.tmp >confdefs.h
14984 $SED '/#define HAVE_ALLOCA /d' <confdefs.h >confdefs.tmp
14985 $SED '/#define HAVE_DLFCN_H/d' <confdefs.tmp >confdefs.h
14986 $SED '/#define HAVE_MEM/d' <confdefs.h >confdefs.tmp
14987 $SED '/#define STDC_HEADERS/d' <confdefs.tmp >confdefs.h
14988 $SED '/#define HAVE_STRTOL/d' <confdefs.h >confdefs.tmp
14989 $SED '/#define HAVE_STDLIB_H/d' <confdefs.tmp >confdefs.h
14990 $SED '/#define HAVE_UNISTD_H/d' <confdefs.h >confdefs.tmp
14991 $SED '/#define HAVE_STDC_HEADERS/d' <confdefs.tmp >confdefs.h
14992 $SED '/#define HAVE_LONG_DOUBLE/d' <confdefs.h >confdefs.tmp
14993 $SED '/#define HAVE_SYS_STAT_H/d' <confdefs.tmp >confdefs.h
14994 $SED '/#define HAVE_SYS_TYPES_H/d' <confdefs.h >confdefs.tmp
14995 $SED '/#define PROTOTYPES/d' <confdefs.tmp >confdefs.h
14996 $SED '/#define __PROTOTYPES/d' <confdefs.h >confdefs.tmp
14997
14998 mv confdefs.tmp confdefs.h
14999 fi
15000
15001 if $EGREP -q -e '-dev$' $srcdir/VERSION; then
15002 DATAFILES=`echo \`$SED -n \
15003 's/^ *data_check *("\(data\/[^"]*\)".*/tests\/\1/p' \
15004 $srcdir/tests/*.c\``
15005 fi
15006
15007 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile tests/Makefile tune/Makefile src/mparam.h:src/mparam_h.in"
15008
15009 cat >confcache <<\_ACEOF
15010 # This file is a shell script that caches the results of configure
15011 # tests run on this system so they can be shared between configure
15012 # scripts and configure runs, see configure's option --config-cache.
15013 # It is not useful on other systems. If it contains results you don't
15014 # want to keep, you may remove or edit it.
15015 #
15016 # config.status only pays attention to the cache file if you give it
15017 # the --recheck option to rerun configure.
15018 #
15019 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15020 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15021 # following values.
15022
15023 _ACEOF
15024
15025 # The following way of writing the cache mishandles newlines in values,
15026 # but we know of no workaround that is simple, portable, and efficient.
15027 # So, we kill variables containing newlines.
15028 # Ultrix sh set writes to stderr and can't be redirected directly,
15029 # and sets the high bit in the cache file unless we assign to the vars.
15030 (
15031 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15032 eval ac_val=\$$ac_var
15033 case $ac_val in #(
15034 *${as_nl}*)
15035 case $ac_var in #(
15036 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15037 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15038 esac
15039 case $ac_var in #(
15040 _ | IFS | as_nl) ;; #(
15041 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15042 *) { eval $ac_var=; unset $ac_var;} ;;
15043 esac ;;
15044 esac
15045 done
15046
15047 (set) 2>&1 |
15048 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15049 *${as_nl}ac_space=\ *)
15050 # `set' does not quote correctly, so add quotes: double-quote
15051 # substitution turns \\\\ into \\, and sed turns \\ into \.
15052 sed -n \
15053 "s/'/'\\\\''/g;
15054 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15055 ;; #(
15056 *)
15057 # `set' quotes correctly as required by POSIX, so do not add quotes.
15058 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15059 ;;
15060 esac |
15061 sort
15062 ) |
15063 sed '
15064 /^ac_cv_env_/b end
15065 t clear
15066 :clear
15067 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15068 t end
15069 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15070 :end' >>confcache
15071 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15072 if test -w "$cache_file"; then
15073 if test "x$cache_file" != "x/dev/null"; then
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15075 $as_echo "$as_me: updating cache $cache_file" >&6;}
15076 if test ! -f "$cache_file" || test -h "$cache_file"; then
15077 cat confcache >"$cache_file"
15078 else
15079 case $cache_file in #(
15080 */* | ?:*)
15081 mv -f confcache "$cache_file"$$ &&
15082 mv -f "$cache_file"$$ "$cache_file" ;; #(
15083 *)
15084 mv -f confcache "$cache_file" ;;
15085 esac
15086 fi
15087 fi
15088 else
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15090 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15091 fi
15092 fi
15093 rm -f confcache
15094
15095 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15096 # Let make expand exec_prefix.
15097 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15098
15099 # Transform confdefs.h into DEFS.
15100 # Protect against shell expansion while executing Makefile rules.
15101 # Protect against Makefile macro expansion.
15102 #
15103 # If the first sed substitution is executed (which looks for macros that
15104 # take arguments), then branch to the quote section. Otherwise,
15105 # look for a macro that doesn't take arguments.
15106 ac_script='
15107 :mline
15108 /\\$/{
15109 N
15110 s,\\\n,,
15111 b mline
15112 }
15113 t clear
15114 :clear
15115 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15116 t quote
15117 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15118 t quote
15119 b any
15120 :quote
15121 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15122 s/\[/\\&/g
15123 s/\]/\\&/g
15124 s/\$/$$/g
15125 H
15126 :any
15127 ${
15128 g
15129 s/^\n//
15130 s/\n/ /g
15131 p
15132 }
15133 '
15134 DEFS=`sed -n "$ac_script" confdefs.h`
15135
15136
15137 ac_libobjs=
15138 ac_ltlibobjs=
15139 U=
15140 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15141 # 1. Remove the extension, and $U if already installed.
15142 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15143 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15144 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15145 # will be set to the directory where LIBOBJS objects are built.
15146 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15147 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15148 done
15149 LIBOBJS=$ac_libobjs
15150
15151 LTLIBOBJS=$ac_ltlibobjs
15152
15153
15154 if test -n "$EXEEXT"; then
15155 am__EXEEXT_TRUE=
15156 am__EXEEXT_FALSE='#'
15157 else
15158 am__EXEEXT_TRUE='#'
15159 am__EXEEXT_FALSE=
15160 fi
15161
15162 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15163 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15165 fi
15166 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15167 as_fn_error $? "conditional \"AMDEP\" was never defined.
15168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15169 fi
15170 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15171 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15173 fi
15174
15175 : "${CONFIG_STATUS=./config.status}"
15176 ac_write_fail=0
15177 ac_clean_files_save=$ac_clean_files
15178 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15180 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15181 as_write_fail=0
15182 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15183 #! $SHELL
15184 # Generated by $as_me.
15185 # Run this file to recreate the current configuration.
15186 # Compiler output produced by configure, useful for debugging
15187 # configure, is in config.log if it exists.
15188
15189 debug=false
15190 ac_cs_recheck=false
15191 ac_cs_silent=false
15192
15193 SHELL=\${CONFIG_SHELL-$SHELL}
15194 export SHELL
15195 _ASEOF
15196 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15197 ## -------------------- ##
15198 ## M4sh Initialization. ##
15199 ## -------------------- ##
15200
15201 # Be more Bourne compatible
15202 DUALCASE=1; export DUALCASE # for MKS sh
15203 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15204 emulate sh
15205 NULLCMD=:
15206 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15207 # is contrary to our usage. Disable this feature.
15208 alias -g '${1+"$@"}'='"$@"'
15209 setopt NO_GLOB_SUBST
15210 else
15211 case `(set -o) 2>/dev/null` in #(
15212 *posix*) :
15213 set -o posix ;; #(
15214 *) :
15215 ;;
15216 esac
15217 fi
15218
15219
15220 as_nl='
15221 '
15222 export as_nl
15223 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15224 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15225 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15226 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15227 # Prefer a ksh shell builtin over an external printf program on Solaris,
15228 # but without wasting forks for bash or zsh.
15229 if test -z "$BASH_VERSION$ZSH_VERSION" \
15230 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15231 as_echo='print -r --'
15232 as_echo_n='print -rn --'
15233 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15234 as_echo='printf %s\n'
15235 as_echo_n='printf %s'
15236 else
15237 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15238 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15239 as_echo_n='/usr/ucb/echo -n'
15240 else
15241 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15242 as_echo_n_body='eval
15243 arg=$1;
15244 case $arg in #(
15245 *"$as_nl"*)
15246 expr "X$arg" : "X\\(.*\\)$as_nl";
15247 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15248 esac;
15249 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15250 '
15251 export as_echo_n_body
15252 as_echo_n='sh -c $as_echo_n_body as_echo'
15253 fi
15254 export as_echo_body
15255 as_echo='sh -c $as_echo_body as_echo'
15256 fi
15257
15258 # The user is always right.
15259 if test "${PATH_SEPARATOR+set}" != set; then
15260 PATH_SEPARATOR=:
15261 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15262 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15263 PATH_SEPARATOR=';'
15264 }
15265 fi
15266
15267
15268 # IFS
15269 # We need space, tab and new line, in precisely that order. Quoting is
15270 # there to prevent editors from complaining about space-tab.
15271 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15272 # splitting by setting IFS to empty value.)
15273 IFS=" "" $as_nl"
15274
15275 # Find who we are. Look in the path if we contain no directory separator.
15276 as_myself=
15277 case $0 in #((
15278 *[\\/]* ) as_myself=$0 ;;
15279 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15280 for as_dir in $PATH
15281 do
15282 IFS=$as_save_IFS
15283 test -z "$as_dir" && as_dir=.
15284 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15285 done
15286 IFS=$as_save_IFS
15287
15288 ;;
15289 esac
15290 # We did not find ourselves, most probably we were run as `sh COMMAND'
15291 # in which case we are not to be found in the path.
15292 if test "x$as_myself" = x; then
15293 as_myself=$0
15294 fi
15295 if test ! -f "$as_myself"; then
15296 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15297 exit 1
15298 fi
15299
15300 # Unset variables that we do not need and which cause bugs (e.g. in
15301 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15302 # suppresses any "Segmentation fault" message there. '((' could
15303 # trigger a bug in pdksh 5.2.14.
15304 for as_var in BASH_ENV ENV MAIL MAILPATH
15305 do eval test x\${$as_var+set} = xset \
15306 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15307 done
15308 PS1='$ '
15309 PS2='> '
15310 PS4='+ '
15311
15312 # NLS nuisances.
15313 LC_ALL=C
15314 export LC_ALL
15315 LANGUAGE=C
15316 export LANGUAGE
15317
15318 # CDPATH.
15319 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15320
15321
15322 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15323 # ----------------------------------------
15324 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15325 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15326 # script with STATUS, using 1 if that was 0.
15327 as_fn_error ()
15328 {
15329 as_status=$1; test $as_status -eq 0 && as_status=1
15330 if test "$4"; then
15331 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15332 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15333 fi
15334 $as_echo "$as_me: error: $2" >&2
15335 as_fn_exit $as_status
15336 } # as_fn_error
15337
15338
15339 # as_fn_set_status STATUS
15340 # -----------------------
15341 # Set $? to STATUS, without forking.
15342 as_fn_set_status ()
15343 {
15344 return $1
15345 } # as_fn_set_status
15346
15347 # as_fn_exit STATUS
15348 # -----------------
15349 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15350 as_fn_exit ()
15351 {
15352 set +e
15353 as_fn_set_status $1
15354 exit $1
15355 } # as_fn_exit
15356
15357 # as_fn_unset VAR
15358 # ---------------
15359 # Portably unset VAR.
15360 as_fn_unset ()
15361 {
15362 { eval $1=; unset $1;}
15363 }
15364 as_unset=as_fn_unset
15365 # as_fn_append VAR VALUE
15366 # ----------------------
15367 # Append the text in VALUE to the end of the definition contained in VAR. Take
15368 # advantage of any shell optimizations that allow amortized linear growth over
15369 # repeated appends, instead of the typical quadratic growth present in naive
15370 # implementations.
15371 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15372 eval 'as_fn_append ()
15373 {
15374 eval $1+=\$2
15375 }'
15376 else
15377 as_fn_append ()
15378 {
15379 eval $1=\$$1\$2
15380 }
15381 fi # as_fn_append
15382
15383 # as_fn_arith ARG...
15384 # ------------------
15385 # Perform arithmetic evaluation on the ARGs, and store the result in the
15386 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15387 # must be portable across $(()) and expr.
15388 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15389 eval 'as_fn_arith ()
15390 {
15391 as_val=$(( $* ))
15392 }'
15393 else
15394 as_fn_arith ()
15395 {
15396 as_val=`expr "$@" || test $? -eq 1`
15397 }
15398 fi # as_fn_arith
15399
15400
15401 if expr a : '\(a\)' >/dev/null 2>&1 &&
15402 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15403 as_expr=expr
15404 else
15405 as_expr=false
15406 fi
15407
15408 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15409 as_basename=basename
15410 else
15411 as_basename=false
15412 fi
15413
15414 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15415 as_dirname=dirname
15416 else
15417 as_dirname=false
15418 fi
15419
15420 as_me=`$as_basename -- "$0" ||
15421 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15422 X"$0" : 'X\(//\)$' \| \
15423 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15424 $as_echo X/"$0" |
15425 sed '/^.*\/\([^/][^/]*\)\/*$/{
15426 s//\1/
15427 q
15428 }
15429 /^X\/\(\/\/\)$/{
15430 s//\1/
15431 q
15432 }
15433 /^X\/\(\/\).*/{
15434 s//\1/
15435 q
15436 }
15437 s/.*/./; q'`
15438
15439 # Avoid depending upon Character Ranges.
15440 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15441 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15442 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15443 as_cr_digits='0123456789'
15444 as_cr_alnum=$as_cr_Letters$as_cr_digits
15445
15446 ECHO_C= ECHO_N= ECHO_T=
15447 case `echo -n x` in #(((((
15448 -n*)
15449 case `echo 'xy\c'` in
15450 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15451 xy) ECHO_C='\c';;
15452 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15453 ECHO_T=' ';;
15454 esac;;
15455 *)
15456 ECHO_N='-n';;
15457 esac
15458
15459 rm -f conf$$ conf$$.exe conf$$.file
15460 if test -d conf$$.dir; then
15461 rm -f conf$$.dir/conf$$.file
15462 else
15463 rm -f conf$$.dir
15464 mkdir conf$$.dir 2>/dev/null
15465 fi
15466 if (echo >conf$$.file) 2>/dev/null; then
15467 if ln -s conf$$.file conf$$ 2>/dev/null; then
15468 as_ln_s='ln -s'
15469 # ... but there are two gotchas:
15470 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15471 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15472 # In both cases, we have to default to `cp -pR'.
15473 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15474 as_ln_s='cp -pR'
15475 elif ln conf$$.file conf$$ 2>/dev/null; then
15476 as_ln_s=ln
15477 else
15478 as_ln_s='cp -pR'
15479 fi
15480 else
15481 as_ln_s='cp -pR'
15482 fi
15483 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15484 rmdir conf$$.dir 2>/dev/null
15485
15486
15487 # as_fn_mkdir_p
15488 # -------------
15489 # Create "$as_dir" as a directory, including parents if necessary.
15490 as_fn_mkdir_p ()
15491 {
15492
15493 case $as_dir in #(
15494 -*) as_dir=./$as_dir;;
15495 esac
15496 test -d "$as_dir" || eval $as_mkdir_p || {
15497 as_dirs=
15498 while :; do
15499 case $as_dir in #(
15500 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15501 *) as_qdir=$as_dir;;
15502 esac
15503 as_dirs="'$as_qdir' $as_dirs"
15504 as_dir=`$as_dirname -- "$as_dir" ||
15505 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15506 X"$as_dir" : 'X\(//\)[^/]' \| \
15507 X"$as_dir" : 'X\(//\)$' \| \
15508 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15509 $as_echo X"$as_dir" |
15510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15511 s//\1/
15512 q
15513 }
15514 /^X\(\/\/\)[^/].*/{
15515 s//\1/
15516 q
15517 }
15518 /^X\(\/\/\)$/{
15519 s//\1/
15520 q
15521 }
15522 /^X\(\/\).*/{
15523 s//\1/
15524 q
15525 }
15526 s/.*/./; q'`
15527 test -d "$as_dir" && break
15528 done
15529 test -z "$as_dirs" || eval "mkdir $as_dirs"
15530 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15531
15532
15533 } # as_fn_mkdir_p
15534 if mkdir -p . 2>/dev/null; then
15535 as_mkdir_p='mkdir -p "$as_dir"'
15536 else
15537 test -d ./-p && rmdir ./-p
15538 as_mkdir_p=false
15539 fi
15540
15541
15542 # as_fn_executable_p FILE
15543 # -----------------------
15544 # Test if FILE is an executable regular file.
15545 as_fn_executable_p ()
15546 {
15547 test -f "$1" && test -x "$1"
15548 } # as_fn_executable_p
15549 as_test_x='test -x'
15550 as_executable_p=as_fn_executable_p
15551
15552 # Sed expression to map a string onto a valid CPP name.
15553 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15554
15555 # Sed expression to map a string onto a valid variable name.
15556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15557
15558
15559 exec 6>&1
15560 ## ----------------------------------- ##
15561 ## Main body of $CONFIG_STATUS script. ##
15562 ## ----------------------------------- ##
15563 _ASEOF
15564 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15565
15566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15567 # Save the log message, to keep $0 and so on meaningful, and to
15568 # report actual input values of CONFIG_FILES etc. instead of their
15569 # values after options handling.
15570 ac_log="
15571 This file was extended by MPFR $as_me 3.1.2, which was
15572 generated by GNU Autoconf 2.69. Invocation command line was
15573
15574 CONFIG_FILES = $CONFIG_FILES
15575 CONFIG_HEADERS = $CONFIG_HEADERS
15576 CONFIG_LINKS = $CONFIG_LINKS
15577 CONFIG_COMMANDS = $CONFIG_COMMANDS
15578 $ $0 $@
15579
15580 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15581 "
15582
15583 _ACEOF
15584
15585 case $ac_config_files in *"
15586 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15587 esac
15588
15589
15590
15591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15592 # Files that config.status was made for.
15593 config_files="$ac_config_files"
15594 config_commands="$ac_config_commands"
15595
15596 _ACEOF
15597
15598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15599 ac_cs_usage="\
15600 \`$as_me' instantiates files and other configuration actions
15601 from templates according to the current configuration. Unless the files
15602 and actions are specified as TAGs, all are instantiated by default.
15603
15604 Usage: $0 [OPTION]... [TAG]...
15605
15606 -h, --help print this help, then exit
15607 -V, --version print version number and configuration settings, then exit
15608 --config print configuration, then exit
15609 -q, --quiet, --silent
15610 do not print progress messages
15611 -d, --debug don't remove temporary files
15612 --recheck update $as_me by reconfiguring in the same conditions
15613 --file=FILE[:TEMPLATE]
15614 instantiate the configuration file FILE
15615
15616 Configuration files:
15617 $config_files
15618
15619 Configuration commands:
15620 $config_commands
15621
15622 Report bugs to the package provider."
15623
15624 _ACEOF
15625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15626 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15627 ac_cs_version="\\
15628 MPFR config.status 3.1.2
15629 configured by $0, generated by GNU Autoconf 2.69,
15630 with options \\"\$ac_cs_config\\"
15631
15632 Copyright (C) 2012 Free Software Foundation, Inc.
15633 This config.status script is free software; the Free Software Foundation
15634 gives unlimited permission to copy, distribute and modify it."
15635
15636 ac_pwd='$ac_pwd'
15637 srcdir='$srcdir'
15638 INSTALL='$INSTALL'
15639 MKDIR_P='$MKDIR_P'
15640 AWK='$AWK'
15641 test -n "\$AWK" || AWK=awk
15642 _ACEOF
15643
15644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15645 # The default lists apply if the user does not specify any file.
15646 ac_need_defaults=:
15647 while test $# != 0
15648 do
15649 case $1 in
15650 --*=?*)
15651 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15652 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15653 ac_shift=:
15654 ;;
15655 --*=)
15656 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15657 ac_optarg=
15658 ac_shift=:
15659 ;;
15660 *)
15661 ac_option=$1
15662 ac_optarg=$2
15663 ac_shift=shift
15664 ;;
15665 esac
15666
15667 case $ac_option in
15668 # Handling of the options.
15669 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15670 ac_cs_recheck=: ;;
15671 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15672 $as_echo "$ac_cs_version"; exit ;;
15673 --config | --confi | --conf | --con | --co | --c )
15674 $as_echo "$ac_cs_config"; exit ;;
15675 --debug | --debu | --deb | --de | --d | -d )
15676 debug=: ;;
15677 --file | --fil | --fi | --f )
15678 $ac_shift
15679 case $ac_optarg in
15680 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15681 '') as_fn_error $? "missing file argument" ;;
15682 esac
15683 as_fn_append CONFIG_FILES " '$ac_optarg'"
15684 ac_need_defaults=false;;
15685 --he | --h | --help | --hel | -h )
15686 $as_echo "$ac_cs_usage"; exit ;;
15687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15688 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15689 ac_cs_silent=: ;;
15690
15691 # This is an error.
15692 -*) as_fn_error $? "unrecognized option: \`$1'
15693 Try \`$0 --help' for more information." ;;
15694
15695 *) as_fn_append ac_config_targets " $1"
15696 ac_need_defaults=false ;;
15697
15698 esac
15699 shift
15700 done
15701
15702 ac_configure_extra_args=
15703
15704 if $ac_cs_silent; then
15705 exec 6>/dev/null
15706 ac_configure_extra_args="$ac_configure_extra_args --silent"
15707 fi
15708
15709 _ACEOF
15710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15711 if \$ac_cs_recheck; then
15712 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15713 shift
15714 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15715 CONFIG_SHELL='$SHELL'
15716 export CONFIG_SHELL
15717 exec "\$@"
15718 fi
15719
15720 _ACEOF
15721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15722 exec 5>>config.log
15723 {
15724 echo
15725 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15726 ## Running $as_me. ##
15727 _ASBOX
15728 $as_echo "$ac_log"
15729 } >&5
15730
15731 _ACEOF
15732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15733 #
15734 # INIT-COMMANDS
15735 #
15736 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15737
15738
15739 # The HP-UX ksh and POSIX shell print the target directory to stdout
15740 # if CDPATH is set.
15741 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15742
15743 sed_quote_subst='$sed_quote_subst'
15744 double_quote_subst='$double_quote_subst'
15745 delay_variable_subst='$delay_variable_subst'
15746 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15747 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15748 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15749 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15750 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15751 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15752 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15753 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15754 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15755 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15756 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15757 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15758 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15759 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15760 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15761 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15762 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15763 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15764 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15765 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15766 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15767 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15768 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15769 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15770 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15771 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15772 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15773 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15774 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15775 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15776 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15777 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15778 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15779 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15780 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15781 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15782 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15783 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15784 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15785 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15786 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15787 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15788 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15789 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15790 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15791 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15792 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15793 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15794 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15795 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15796 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15797 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15798 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15799 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15800 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15801 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15802 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15803 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"`'
15804 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15805 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15806 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15807 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15808 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15809 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15810 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15811 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15812 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15813 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15814 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15815 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15816 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15817 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15818 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15819 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15820 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15821 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15822 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15823 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15824 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15825 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15826 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15827 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15828 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15829 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15830 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15831 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15832 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15833 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15834 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15835 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15836 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15837 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15838 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15839 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15840 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15841 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15842 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15843 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15844 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15845 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15846 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15847 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15848 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15849 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15850 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15851 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15852 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15853 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15854 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15855 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15856 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15857 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15858 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15859 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15860 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15861 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15862 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15863 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15864 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15865 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15866 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15867 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15868 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15869 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15870 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15871 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15872 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15873 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15874 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15875 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15876 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15877
15878 LTCC='$LTCC'
15879 LTCFLAGS='$LTCFLAGS'
15880 compiler='$compiler_DEFAULT'
15881
15882 # A function that is used when there is no print builtin or printf.
15883 func_fallback_echo ()
15884 {
15885 eval 'cat <<_LTECHO_EOF
15886 \$1
15887 _LTECHO_EOF'
15888 }
15889
15890 # Quote evaled strings.
15891 for var in AS \
15892 DLLTOOL \
15893 OBJDUMP \
15894 SHELL \
15895 ECHO \
15896 PATH_SEPARATOR \
15897 SED \
15898 GREP \
15899 EGREP \
15900 FGREP \
15901 LD \
15902 NM \
15903 LN_S \
15904 lt_SP2NL \
15905 lt_NL2SP \
15906 reload_flag \
15907 deplibs_check_method \
15908 file_magic_cmd \
15909 file_magic_glob \
15910 want_nocaseglob \
15911 sharedlib_from_linklib_cmd \
15912 AR \
15913 AR_FLAGS \
15914 archiver_list_spec \
15915 STRIP \
15916 RANLIB \
15917 CC \
15918 CFLAGS \
15919 compiler \
15920 lt_cv_sys_global_symbol_pipe \
15921 lt_cv_sys_global_symbol_to_cdecl \
15922 lt_cv_sys_global_symbol_to_c_name_address \
15923 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15924 nm_file_list_spec \
15925 lt_prog_compiler_no_builtin_flag \
15926 lt_prog_compiler_pic \
15927 lt_prog_compiler_wl \
15928 lt_prog_compiler_static \
15929 lt_cv_prog_compiler_c_o \
15930 need_locks \
15931 MANIFEST_TOOL \
15932 DSYMUTIL \
15933 NMEDIT \
15934 LIPO \
15935 OTOOL \
15936 OTOOL64 \
15937 shrext_cmds \
15938 export_dynamic_flag_spec \
15939 whole_archive_flag_spec \
15940 compiler_needs_object \
15941 with_gnu_ld \
15942 allow_undefined_flag \
15943 no_undefined_flag \
15944 hardcode_libdir_flag_spec \
15945 hardcode_libdir_separator \
15946 exclude_expsyms \
15947 include_expsyms \
15948 file_list_spec \
15949 variables_saved_for_relink \
15950 libname_spec \
15951 library_names_spec \
15952 soname_spec \
15953 install_override_mode \
15954 finish_eval \
15955 old_striplib \
15956 striplib; do
15957 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15958 *[\\\\\\\`\\"\\\$]*)
15959 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15960 ;;
15961 *)
15962 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15963 ;;
15964 esac
15965 done
15966
15967 # Double-quote double-evaled strings.
15968 for var in reload_cmds \
15969 old_postinstall_cmds \
15970 old_postuninstall_cmds \
15971 old_archive_cmds \
15972 extract_expsyms_cmds \
15973 old_archive_from_new_cmds \
15974 old_archive_from_expsyms_cmds \
15975 archive_cmds \
15976 archive_expsym_cmds \
15977 module_cmds \
15978 module_expsym_cmds \
15979 export_symbols_cmds \
15980 prelink_cmds \
15981 postlink_cmds \
15982 postinstall_cmds \
15983 postuninstall_cmds \
15984 finish_cmds \
15985 sys_lib_search_path_spec \
15986 sys_lib_dlsearch_path_spec; do
15987 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15988 *[\\\\\\\`\\"\\\$]*)
15989 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15990 ;;
15991 *)
15992 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15993 ;;
15994 esac
15995 done
15996
15997 ac_aux_dir='$ac_aux_dir'
15998 xsi_shell='$xsi_shell'
15999 lt_shell_append='$lt_shell_append'
16000
16001 # See if we are running on zsh, and set the options which allow our
16002 # commands through without removal of \ escapes INIT.
16003 if test -n "\${ZSH_VERSION+set}" ; then
16004 setopt NO_GLOB_SUBST
16005 fi
16006
16007
16008 PACKAGE='$PACKAGE'
16009 VERSION='$VERSION'
16010 TIMESTAMP='$TIMESTAMP'
16011 RM='$RM'
16012 ofile='$ofile'
16013
16014
16015
16016
16017 _ACEOF
16018
16019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16020
16021 # Handling of arguments.
16022 for ac_config_target in $ac_config_targets
16023 do
16024 case $ac_config_target in
16025 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16026 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16027 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16028 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16029 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16030 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16031 "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
16032 "src/mparam.h") CONFIG_FILES="$CONFIG_FILES src/mparam.h:src/mparam_h.in" ;;
16033
16034 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16035 esac
16036 done
16037
16038
16039 # If the user did not use the arguments to specify the items to instantiate,
16040 # then the envvar interface is used. Set only those that are not.
16041 # We use the long form for the default assignment because of an extremely
16042 # bizarre bug on SunOS 4.1.3.
16043 if $ac_need_defaults; then
16044 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16045 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16046 fi
16047
16048 # Have a temporary directory for convenience. Make it in the build tree
16049 # simply because there is no reason against having it here, and in addition,
16050 # creating and moving files from /tmp can sometimes cause problems.
16051 # Hook for its removal unless debugging.
16052 # Note that there is a small window in which the directory will not be cleaned:
16053 # after its creation but before its name has been assigned to `$tmp'.
16054 $debug ||
16055 {
16056 tmp= ac_tmp=
16057 trap 'exit_status=$?
16058 : "${ac_tmp:=$tmp}"
16059 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16060 ' 0
16061 trap 'as_fn_exit 1' 1 2 13 15
16062 }
16063 # Create a (secure) tmp directory for tmp files.
16064
16065 {
16066 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16067 test -d "$tmp"
16068 } ||
16069 {
16070 tmp=./conf$$-$RANDOM
16071 (umask 077 && mkdir "$tmp")
16072 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16073 ac_tmp=$tmp
16074
16075 # Set up the scripts for CONFIG_FILES section.
16076 # No need to generate them if there are no CONFIG_FILES.
16077 # This happens for instance with `./config.status config.h'.
16078 if test -n "$CONFIG_FILES"; then
16079
16080
16081 ac_cr=`echo X | tr X '\015'`
16082 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16083 # But we know of no other shell where ac_cr would be empty at this
16084 # point, so we can use a bashism as a fallback.
16085 if test "x$ac_cr" = x; then
16086 eval ac_cr=\$\'\\r\'
16087 fi
16088 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16089 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16090 ac_cs_awk_cr='\\r'
16091 else
16092 ac_cs_awk_cr=$ac_cr
16093 fi
16094
16095 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16096 _ACEOF
16097
16098
16099 {
16100 echo "cat >conf$$subs.awk <<_ACEOF" &&
16101 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16102 echo "_ACEOF"
16103 } >conf$$subs.sh ||
16104 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16105 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16106 ac_delim='%!_!# '
16107 for ac_last_try in false false false false false :; do
16108 . ./conf$$subs.sh ||
16109 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16110
16111 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16112 if test $ac_delim_n = $ac_delim_num; then
16113 break
16114 elif $ac_last_try; then
16115 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16116 else
16117 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16118 fi
16119 done
16120 rm -f conf$$subs.sh
16121
16122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16123 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16124 _ACEOF
16125 sed -n '
16126 h
16127 s/^/S["/; s/!.*/"]=/
16128 p
16129 g
16130 s/^[^!]*!//
16131 :repl
16132 t repl
16133 s/'"$ac_delim"'$//
16134 t delim
16135 :nl
16136 h
16137 s/\(.\{148\}\)..*/\1/
16138 t more1
16139 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16140 p
16141 n
16142 b repl
16143 :more1
16144 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16145 p
16146 g
16147 s/.\{148\}//
16148 t nl
16149 :delim
16150 h
16151 s/\(.\{148\}\)..*/\1/
16152 t more2
16153 s/["\\]/\\&/g; s/^/"/; s/$/"/
16154 p
16155 b
16156 :more2
16157 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16158 p
16159 g
16160 s/.\{148\}//
16161 t delim
16162 ' <conf$$subs.awk | sed '
16163 /^[^""]/{
16164 N
16165 s/\n//
16166 }
16167 ' >>$CONFIG_STATUS || ac_write_fail=1
16168 rm -f conf$$subs.awk
16169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16170 _ACAWK
16171 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16172 for (key in S) S_is_set[key] = 1
16173 FS = ""
16174
16175 }
16176 {
16177 line = $ 0
16178 nfields = split(line, field, "@")
16179 substed = 0
16180 len = length(field[1])
16181 for (i = 2; i < nfields; i++) {
16182 key = field[i]
16183 keylen = length(key)
16184 if (S_is_set[key]) {
16185 value = S[key]
16186 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16187 len += length(value) + length(field[++i])
16188 substed = 1
16189 } else
16190 len += 1 + keylen
16191 }
16192
16193 print line
16194 }
16195
16196 _ACAWK
16197 _ACEOF
16198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16199 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16200 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16201 else
16202 cat
16203 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16204 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16205 _ACEOF
16206
16207 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16208 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16209 # trailing colons and then remove the whole line if VPATH becomes empty
16210 # (actually we leave an empty line to preserve line numbers).
16211 if test "x$srcdir" = x.; then
16212 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16213 h
16214 s///
16215 s/^/:/
16216 s/[ ]*$/:/
16217 s/:\$(srcdir):/:/g
16218 s/:\${srcdir}:/:/g
16219 s/:@srcdir@:/:/g
16220 s/^:*//
16221 s/:*$//
16222 x
16223 s/\(=[ ]*\).*/\1/
16224 G
16225 s/\n//
16226 s/^[^=]*=[ ]*$//
16227 }'
16228 fi
16229
16230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16231 fi # test -n "$CONFIG_FILES"
16232
16233
16234 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16235 shift
16236 for ac_tag
16237 do
16238 case $ac_tag in
16239 :[FHLC]) ac_mode=$ac_tag; continue;;
16240 esac
16241 case $ac_mode$ac_tag in
16242 :[FHL]*:*);;
16243 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16244 :[FH]-) ac_tag=-:-;;
16245 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16246 esac
16247 ac_save_IFS=$IFS
16248 IFS=:
16249 set x $ac_tag
16250 IFS=$ac_save_IFS
16251 shift
16252 ac_file=$1
16253 shift
16254
16255 case $ac_mode in
16256 :L) ac_source=$1;;
16257 :[FH])
16258 ac_file_inputs=
16259 for ac_f
16260 do
16261 case $ac_f in
16262 -) ac_f="$ac_tmp/stdin";;
16263 *) # Look for the file first in the build tree, then in the source tree
16264 # (if the path is not absolute). The absolute path cannot be DOS-style,
16265 # because $ac_f cannot contain `:'.
16266 test -f "$ac_f" ||
16267 case $ac_f in
16268 [\\/$]*) false;;
16269 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16270 esac ||
16271 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16272 esac
16273 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16274 as_fn_append ac_file_inputs " '$ac_f'"
16275 done
16276
16277 # Let's still pretend it is `configure' which instantiates (i.e., don't
16278 # use $as_me), people would be surprised to read:
16279 # /* config.h. Generated by config.status. */
16280 configure_input='Generated from '`
16281 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16282 `' by configure.'
16283 if test x"$ac_file" != x-; then
16284 configure_input="$ac_file. $configure_input"
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16286 $as_echo "$as_me: creating $ac_file" >&6;}
16287 fi
16288 # Neutralize special characters interpreted by sed in replacement strings.
16289 case $configure_input in #(
16290 *\&* | *\|* | *\\* )
16291 ac_sed_conf_input=`$as_echo "$configure_input" |
16292 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16293 *) ac_sed_conf_input=$configure_input;;
16294 esac
16295
16296 case $ac_tag in
16297 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16298 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16299 esac
16300 ;;
16301 esac
16302
16303 ac_dir=`$as_dirname -- "$ac_file" ||
16304 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16305 X"$ac_file" : 'X\(//\)[^/]' \| \
16306 X"$ac_file" : 'X\(//\)$' \| \
16307 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16308 $as_echo X"$ac_file" |
16309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16310 s//\1/
16311 q
16312 }
16313 /^X\(\/\/\)[^/].*/{
16314 s//\1/
16315 q
16316 }
16317 /^X\(\/\/\)$/{
16318 s//\1/
16319 q
16320 }
16321 /^X\(\/\).*/{
16322 s//\1/
16323 q
16324 }
16325 s/.*/./; q'`
16326 as_dir="$ac_dir"; as_fn_mkdir_p
16327 ac_builddir=.
16328
16329 case "$ac_dir" in
16330 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16331 *)
16332 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16333 # A ".." for each directory in $ac_dir_suffix.
16334 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16335 case $ac_top_builddir_sub in
16336 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16337 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16338 esac ;;
16339 esac
16340 ac_abs_top_builddir=$ac_pwd
16341 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16342 # for backward compatibility:
16343 ac_top_builddir=$ac_top_build_prefix
16344
16345 case $srcdir in
16346 .) # We are building in place.
16347 ac_srcdir=.
16348 ac_top_srcdir=$ac_top_builddir_sub
16349 ac_abs_top_srcdir=$ac_pwd ;;
16350 [\\/]* | ?:[\\/]* ) # Absolute name.
16351 ac_srcdir=$srcdir$ac_dir_suffix;
16352 ac_top_srcdir=$srcdir
16353 ac_abs_top_srcdir=$srcdir ;;
16354 *) # Relative name.
16355 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16356 ac_top_srcdir=$ac_top_build_prefix$srcdir
16357 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16358 esac
16359 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16360
16361
16362 case $ac_mode in
16363 :F)
16364 #
16365 # CONFIG_FILE
16366 #
16367
16368 case $INSTALL in
16369 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16370 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16371 esac
16372 ac_MKDIR_P=$MKDIR_P
16373 case $MKDIR_P in
16374 [\\/$]* | ?:[\\/]* ) ;;
16375 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16376 esac
16377 _ACEOF
16378
16379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16380 # If the template does not know about datarootdir, expand it.
16381 # FIXME: This hack should be removed a few years after 2.60.
16382 ac_datarootdir_hack=; ac_datarootdir_seen=
16383 ac_sed_dataroot='
16384 /datarootdir/ {
16385 p
16386 q
16387 }
16388 /@datadir@/p
16389 /@docdir@/p
16390 /@infodir@/p
16391 /@localedir@/p
16392 /@mandir@/p'
16393 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16394 *datarootdir*) ac_datarootdir_seen=yes;;
16395 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16397 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16398 _ACEOF
16399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16400 ac_datarootdir_hack='
16401 s&@datadir@&$datadir&g
16402 s&@docdir@&$docdir&g
16403 s&@infodir@&$infodir&g
16404 s&@localedir@&$localedir&g
16405 s&@mandir@&$mandir&g
16406 s&\\\${datarootdir}&$datarootdir&g' ;;
16407 esac
16408 _ACEOF
16409
16410 # Neutralize VPATH when `$srcdir' = `.'.
16411 # Shell code in configure.ac might set extrasub.
16412 # FIXME: do we really want to maintain this feature?
16413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16414 ac_sed_extra="$ac_vpsub
16415 $extrasub
16416 _ACEOF
16417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16418 :t
16419 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16420 s|@configure_input@|$ac_sed_conf_input|;t t
16421 s&@top_builddir@&$ac_top_builddir_sub&;t t
16422 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16423 s&@srcdir@&$ac_srcdir&;t t
16424 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16425 s&@top_srcdir@&$ac_top_srcdir&;t t
16426 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16427 s&@builddir@&$ac_builddir&;t t
16428 s&@abs_builddir@&$ac_abs_builddir&;t t
16429 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16430 s&@INSTALL@&$ac_INSTALL&;t t
16431 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16432 $ac_datarootdir_hack
16433 "
16434 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16435 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16436
16437 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16438 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16439 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16440 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16442 which seems to be undefined. Please make sure it is defined" >&5
16443 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16444 which seems to be undefined. Please make sure it is defined" >&2;}
16445
16446 rm -f "$ac_tmp/stdin"
16447 case $ac_file in
16448 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16449 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16450 esac \
16451 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16452 ;;
16453
16454
16455 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16456 $as_echo "$as_me: executing $ac_file commands" >&6;}
16457 ;;
16458 esac
16459
16460
16461 case $ac_file$ac_mode in
16462 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16463 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16464 # are listed without --file. Let's play safe and only enable the eval
16465 # if we detect the quoting.
16466 case $CONFIG_FILES in
16467 *\'*) eval set x "$CONFIG_FILES" ;;
16468 *) set x $CONFIG_FILES ;;
16469 esac
16470 shift
16471 for mf
16472 do
16473 # Strip MF so we end up with the name of the file.
16474 mf=`echo "$mf" | sed -e 's/:.*$//'`
16475 # Check whether this is an Automake generated Makefile or not.
16476 # We used to match only the files named `Makefile.in', but
16477 # some people rename them; so instead we look at the file content.
16478 # Grep'ing the first line is not enough: some people post-process
16479 # each Makefile.in and add a new line on top of each file to say so.
16480 # Grep'ing the whole file is not good either: AIX grep has a line
16481 # limit of 2048, but all sed's we know have understand at least 4000.
16482 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16483 dirpart=`$as_dirname -- "$mf" ||
16484 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16485 X"$mf" : 'X\(//\)[^/]' \| \
16486 X"$mf" : 'X\(//\)$' \| \
16487 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16488 $as_echo X"$mf" |
16489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16490 s//\1/
16491 q
16492 }
16493 /^X\(\/\/\)[^/].*/{
16494 s//\1/
16495 q
16496 }
16497 /^X\(\/\/\)$/{
16498 s//\1/
16499 q
16500 }
16501 /^X\(\/\).*/{
16502 s//\1/
16503 q
16504 }
16505 s/.*/./; q'`
16506 else
16507 continue
16508 fi
16509 # Extract the definition of DEPDIR, am__include, and am__quote
16510 # from the Makefile without running `make'.
16511 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16512 test -z "$DEPDIR" && continue
16513 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16514 test -z "am__include" && continue
16515 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16516 # When using ansi2knr, U may be empty or an underscore; expand it
16517 U=`sed -n 's/^U = //p' < "$mf"`
16518 # Find all dependency output files, they are included files with
16519 # $(DEPDIR) in their names. We invoke sed twice because it is the
16520 # simplest approach to changing $(DEPDIR) to its actual value in the
16521 # expansion.
16522 for file in `sed -n "
16523 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16524 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16525 # Make sure the directory exists.
16526 test -f "$dirpart/$file" && continue
16527 fdir=`$as_dirname -- "$file" ||
16528 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16529 X"$file" : 'X\(//\)[^/]' \| \
16530 X"$file" : 'X\(//\)$' \| \
16531 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16532 $as_echo X"$file" |
16533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16534 s//\1/
16535 q
16536 }
16537 /^X\(\/\/\)[^/].*/{
16538 s//\1/
16539 q
16540 }
16541 /^X\(\/\/\)$/{
16542 s//\1/
16543 q
16544 }
16545 /^X\(\/\).*/{
16546 s//\1/
16547 q
16548 }
16549 s/.*/./; q'`
16550 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16551 # echo "creating $dirpart/$file"
16552 echo '# dummy' > "$dirpart/$file"
16553 done
16554 done
16555 }
16556 ;;
16557 "libtool":C)
16558
16559 # See if we are running on zsh, and set the options which allow our
16560 # commands through without removal of \ escapes.
16561 if test -n "${ZSH_VERSION+set}" ; then
16562 setopt NO_GLOB_SUBST
16563 fi
16564
16565 cfgfile="${ofile}T"
16566 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16567 $RM "$cfgfile"
16568
16569 cat <<_LT_EOF >> "$cfgfile"
16570 #! $SHELL
16571
16572 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16573 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16574 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16575 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16576 #
16577 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16578 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16579 # Foundation, Inc.
16580 # Written by Gordon Matzigkeit, 1996
16581 #
16582 # This file is part of GNU Libtool.
16583 #
16584 # GNU Libtool is free software; you can redistribute it and/or
16585 # modify it under the terms of the GNU General Public License as
16586 # published by the Free Software Foundation; either version 2 of
16587 # the License, or (at your option) any later version.
16588 #
16589 # As a special exception to the GNU General Public License,
16590 # if you distribute this file as part of a program or library that
16591 # is built using GNU Libtool, you may include this file under the
16592 # same distribution terms that you use for the rest of that program.
16593 #
16594 # GNU Libtool is distributed in the hope that it will be useful,
16595 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16596 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16597 # GNU General Public License for more details.
16598 #
16599 # You should have received a copy of the GNU General Public License
16600 # along with GNU Libtool; see the file COPYING. If not, a copy
16601 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16602 # obtained by writing to the Free Software Foundation, Inc.,
16603 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16604
16605
16606 # The names of the tagged configurations supported by this script.
16607 available_tags=""
16608
16609 # ### BEGIN LIBTOOL CONFIG
16610
16611 # Assembler program.
16612 AS=$lt_AS
16613
16614 # DLL creation program.
16615 DLLTOOL=$lt_DLLTOOL
16616
16617 # Object dumper program.
16618 OBJDUMP=$lt_OBJDUMP
16619
16620 # Which release of libtool.m4 was used?
16621 macro_version=$macro_version
16622 macro_revision=$macro_revision
16623
16624 # Whether or not to build shared libraries.
16625 build_libtool_libs=$enable_shared
16626
16627 # Whether or not to build static libraries.
16628 build_old_libs=$enable_static
16629
16630 # What type of objects to build.
16631 pic_mode=$pic_mode
16632
16633 # Whether or not to optimize for fast installation.
16634 fast_install=$enable_fast_install
16635
16636 # Shell to use when invoking shell scripts.
16637 SHELL=$lt_SHELL
16638
16639 # An echo program that protects backslashes.
16640 ECHO=$lt_ECHO
16641
16642 # The PATH separator for the build system.
16643 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16644
16645 # The host system.
16646 host_alias=$host_alias
16647 host=$host
16648 host_os=$host_os
16649
16650 # The build system.
16651 build_alias=$build_alias
16652 build=$build
16653 build_os=$build_os
16654
16655 # A sed program that does not truncate output.
16656 SED=$lt_SED
16657
16658 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16659 Xsed="\$SED -e 1s/^X//"
16660
16661 # A grep program that handles long lines.
16662 GREP=$lt_GREP
16663
16664 # An ERE matcher.
16665 EGREP=$lt_EGREP
16666
16667 # A literal string matcher.
16668 FGREP=$lt_FGREP
16669
16670 # A BSD- or MS-compatible name lister.
16671 NM=$lt_NM
16672
16673 # Whether we need soft or hard links.
16674 LN_S=$lt_LN_S
16675
16676 # What is the maximum length of a command?
16677 max_cmd_len=$max_cmd_len
16678
16679 # Object file suffix (normally "o").
16680 objext=$ac_objext
16681
16682 # Executable file suffix (normally "").
16683 exeext=$exeext
16684
16685 # whether the shell understands "unset".
16686 lt_unset=$lt_unset
16687
16688 # turn spaces into newlines.
16689 SP2NL=$lt_lt_SP2NL
16690
16691 # turn newlines into spaces.
16692 NL2SP=$lt_lt_NL2SP
16693
16694 # convert \$build file names to \$host format.
16695 to_host_file_cmd=$lt_cv_to_host_file_cmd
16696
16697 # convert \$build files to toolchain format.
16698 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16699
16700 # Method to check whether dependent libraries are shared objects.
16701 deplibs_check_method=$lt_deplibs_check_method
16702
16703 # Command to use when deplibs_check_method = "file_magic".
16704 file_magic_cmd=$lt_file_magic_cmd
16705
16706 # How to find potential files when deplibs_check_method = "file_magic".
16707 file_magic_glob=$lt_file_magic_glob
16708
16709 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16710 want_nocaseglob=$lt_want_nocaseglob
16711
16712 # Command to associate shared and link libraries.
16713 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16714
16715 # The archiver.
16716 AR=$lt_AR
16717
16718 # Flags to create an archive.
16719 AR_FLAGS=$lt_AR_FLAGS
16720
16721 # How to feed a file listing to the archiver.
16722 archiver_list_spec=$lt_archiver_list_spec
16723
16724 # A symbol stripping program.
16725 STRIP=$lt_STRIP
16726
16727 # Commands used to install an old-style archive.
16728 RANLIB=$lt_RANLIB
16729 old_postinstall_cmds=$lt_old_postinstall_cmds
16730 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16731
16732 # Whether to use a lock for old archive extraction.
16733 lock_old_archive_extraction=$lock_old_archive_extraction
16734
16735 # A C compiler.
16736 LTCC=$lt_CC
16737
16738 # LTCC compiler flags.
16739 LTCFLAGS=$lt_CFLAGS
16740
16741 # Take the output of nm and produce a listing of raw symbols and C names.
16742 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16743
16744 # Transform the output of nm in a proper C declaration.
16745 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16746
16747 # Transform the output of nm in a C name address pair.
16748 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16749
16750 # Transform the output of nm in a C name address pair when lib prefix is needed.
16751 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16752
16753 # Specify filename containing input files for \$NM.
16754 nm_file_list_spec=$lt_nm_file_list_spec
16755
16756 # The root where to search for dependent libraries,and in which our libraries should be installed.
16757 lt_sysroot=$lt_sysroot
16758
16759 # The name of the directory that contains temporary libtool files.
16760 objdir=$objdir
16761
16762 # Used to examine libraries when file_magic_cmd begins with "file".
16763 MAGIC_CMD=$MAGIC_CMD
16764
16765 # Must we lock files when doing compilation?
16766 need_locks=$lt_need_locks
16767
16768 # Manifest tool.
16769 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16770
16771 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16772 DSYMUTIL=$lt_DSYMUTIL
16773
16774 # Tool to change global to local symbols on Mac OS X.
16775 NMEDIT=$lt_NMEDIT
16776
16777 # Tool to manipulate fat objects and archives on Mac OS X.
16778 LIPO=$lt_LIPO
16779
16780 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16781 OTOOL=$lt_OTOOL
16782
16783 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16784 OTOOL64=$lt_OTOOL64
16785
16786 # Old archive suffix (normally "a").
16787 libext=$libext
16788
16789 # Shared library suffix (normally ".so").
16790 shrext_cmds=$lt_shrext_cmds
16791
16792 # The commands to extract the exported symbol list from a shared archive.
16793 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16794
16795 # Variables whose values should be saved in libtool wrapper scripts and
16796 # restored at link time.
16797 variables_saved_for_relink=$lt_variables_saved_for_relink
16798
16799 # Do we need the "lib" prefix for modules?
16800 need_lib_prefix=$need_lib_prefix
16801
16802 # Do we need a version for libraries?
16803 need_version=$need_version
16804
16805 # Library versioning type.
16806 version_type=$version_type
16807
16808 # Shared library runtime path variable.
16809 runpath_var=$runpath_var
16810
16811 # Shared library path variable.
16812 shlibpath_var=$shlibpath_var
16813
16814 # Is shlibpath searched before the hard-coded library search path?
16815 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16816
16817 # Format of library name prefix.
16818 libname_spec=$lt_libname_spec
16819
16820 # List of archive names. First name is the real one, the rest are links.
16821 # The last name is the one that the linker finds with -lNAME
16822 library_names_spec=$lt_library_names_spec
16823
16824 # The coded name of the library, if different from the real name.
16825 soname_spec=$lt_soname_spec
16826
16827 # Permission mode override for installation of shared libraries.
16828 install_override_mode=$lt_install_override_mode
16829
16830 # Command to use after installation of a shared archive.
16831 postinstall_cmds=$lt_postinstall_cmds
16832
16833 # Command to use after uninstallation of a shared archive.
16834 postuninstall_cmds=$lt_postuninstall_cmds
16835
16836 # Commands used to finish a libtool library installation in a directory.
16837 finish_cmds=$lt_finish_cmds
16838
16839 # As "finish_cmds", except a single script fragment to be evaled but
16840 # not shown.
16841 finish_eval=$lt_finish_eval
16842
16843 # Whether we should hardcode library paths into libraries.
16844 hardcode_into_libs=$hardcode_into_libs
16845
16846 # Compile-time system search path for libraries.
16847 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16848
16849 # Run-time system search path for libraries.
16850 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16851
16852 # Whether dlopen is supported.
16853 dlopen_support=$enable_dlopen
16854
16855 # Whether dlopen of programs is supported.
16856 dlopen_self=$enable_dlopen_self
16857
16858 # Whether dlopen of statically linked programs is supported.
16859 dlopen_self_static=$enable_dlopen_self_static
16860
16861 # Commands to strip libraries.
16862 old_striplib=$lt_old_striplib
16863 striplib=$lt_striplib
16864
16865
16866 # The linker used to build libraries.
16867 LD=$lt_LD
16868
16869 # How to create reloadable object files.
16870 reload_flag=$lt_reload_flag
16871 reload_cmds=$lt_reload_cmds
16872
16873 # Commands used to build an old-style archive.
16874 old_archive_cmds=$lt_old_archive_cmds
16875
16876 # A language specific compiler.
16877 CC=$lt_compiler
16878
16879 # Is the compiler the GNU compiler?
16880 with_gcc=$GCC
16881
16882 # Compiler flag to turn off builtin functions.
16883 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16884
16885 # Additional compiler flags for building library objects.
16886 pic_flag=$lt_lt_prog_compiler_pic
16887
16888 # How to pass a linker flag through the compiler.
16889 wl=$lt_lt_prog_compiler_wl
16890
16891 # Compiler flag to prevent dynamic linking.
16892 link_static_flag=$lt_lt_prog_compiler_static
16893
16894 # Does compiler simultaneously support -c and -o options?
16895 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16896
16897 # Whether or not to add -lc for building shared libraries.
16898 build_libtool_need_lc=$archive_cmds_need_lc
16899
16900 # Whether or not to disallow shared libs when runtime libs are static.
16901 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16902
16903 # Compiler flag to allow reflexive dlopens.
16904 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16905
16906 # Compiler flag to generate shared objects directly from archives.
16907 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16908
16909 # Whether the compiler copes with passing no objects directly.
16910 compiler_needs_object=$lt_compiler_needs_object
16911
16912 # Create an old-style archive from a shared archive.
16913 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16914
16915 # Create a temporary old-style archive to link instead of a shared archive.
16916 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16917
16918 # Commands used to build a shared archive.
16919 archive_cmds=$lt_archive_cmds
16920 archive_expsym_cmds=$lt_archive_expsym_cmds
16921
16922 # Commands used to build a loadable module if different from building
16923 # a shared archive.
16924 module_cmds=$lt_module_cmds
16925 module_expsym_cmds=$lt_module_expsym_cmds
16926
16927 # Whether we are building with GNU ld or not.
16928 with_gnu_ld=$lt_with_gnu_ld
16929
16930 # Flag that allows shared libraries with undefined symbols to be built.
16931 allow_undefined_flag=$lt_allow_undefined_flag
16932
16933 # Flag that enforces no undefined symbols.
16934 no_undefined_flag=$lt_no_undefined_flag
16935
16936 # Flag to hardcode \$libdir into a binary during linking.
16937 # This must work even if \$libdir does not exist
16938 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16939
16940 # Whether we need a single "-rpath" flag with a separated argument.
16941 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16942
16943 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16944 # DIR into the resulting binary.
16945 hardcode_direct=$hardcode_direct
16946
16947 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16948 # DIR into the resulting binary and the resulting library dependency is
16949 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16950 # library is relocated.
16951 hardcode_direct_absolute=$hardcode_direct_absolute
16952
16953 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16954 # into the resulting binary.
16955 hardcode_minus_L=$hardcode_minus_L
16956
16957 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16958 # into the resulting binary.
16959 hardcode_shlibpath_var=$hardcode_shlibpath_var
16960
16961 # Set to "yes" if building a shared library automatically hardcodes DIR
16962 # into the library and all subsequent libraries and executables linked
16963 # against it.
16964 hardcode_automatic=$hardcode_automatic
16965
16966 # Set to yes if linker adds runtime paths of dependent libraries
16967 # to runtime path list.
16968 inherit_rpath=$inherit_rpath
16969
16970 # Whether libtool must link a program against all its dependency libraries.
16971 link_all_deplibs=$link_all_deplibs
16972
16973 # Set to "yes" if exported symbols are required.
16974 always_export_symbols=$always_export_symbols
16975
16976 # The commands to list exported symbols.
16977 export_symbols_cmds=$lt_export_symbols_cmds
16978
16979 # Symbols that should not be listed in the preloaded symbols.
16980 exclude_expsyms=$lt_exclude_expsyms
16981
16982 # Symbols that must always be exported.
16983 include_expsyms=$lt_include_expsyms
16984
16985 # Commands necessary for linking programs (against libraries) with templates.
16986 prelink_cmds=$lt_prelink_cmds
16987
16988 # Commands necessary for finishing linking programs.
16989 postlink_cmds=$lt_postlink_cmds
16990
16991 # Specify filename containing input files.
16992 file_list_spec=$lt_file_list_spec
16993
16994 # How to hardcode a shared library path into an executable.
16995 hardcode_action=$hardcode_action
16996
16997 # ### END LIBTOOL CONFIG
16998
16999 _LT_EOF
17000
17001 case $host_os in
17002 aix3*)
17003 cat <<\_LT_EOF >> "$cfgfile"
17004 # AIX sometimes has problems with the GCC collect2 program. For some
17005 # reason, if we set the COLLECT_NAMES environment variable, the problems
17006 # vanish in a puff of smoke.
17007 if test "X${COLLECT_NAMES+set}" != Xset; then
17008 COLLECT_NAMES=
17009 export COLLECT_NAMES
17010 fi
17011 _LT_EOF
17012 ;;
17013 esac
17014
17015
17016 ltmain="$ac_aux_dir/ltmain.sh"
17017
17018
17019 # We use sed instead of cat because bash on DJGPP gets confused if
17020 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17021 # text mode, it properly converts lines to CR/LF. This bash problem
17022 # is reportedly fixed, but why not run on old versions too?
17023 sed '$q' "$ltmain" >> "$cfgfile" \
17024 || (rm -f "$cfgfile"; exit 1)
17025
17026 if test x"$xsi_shell" = xyes; then
17027 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17028 func_dirname ()\
17029 {\
17030 \ case ${1} in\
17031 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17032 \ * ) func_dirname_result="${3}" ;;\
17033 \ esac\
17034 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17035 && mv -f "$cfgfile.tmp" "$cfgfile" \
17036 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17037 test 0 -eq $? || _lt_function_replace_fail=:
17038
17039
17040 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17041 func_basename ()\
17042 {\
17043 \ func_basename_result="${1##*/}"\
17044 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17045 && mv -f "$cfgfile.tmp" "$cfgfile" \
17046 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17047 test 0 -eq $? || _lt_function_replace_fail=:
17048
17049
17050 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17051 func_dirname_and_basename ()\
17052 {\
17053 \ case ${1} in\
17054 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17055 \ * ) func_dirname_result="${3}" ;;\
17056 \ esac\
17057 \ func_basename_result="${1##*/}"\
17058 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17059 && mv -f "$cfgfile.tmp" "$cfgfile" \
17060 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17061 test 0 -eq $? || _lt_function_replace_fail=:
17062
17063
17064 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17065 func_stripname ()\
17066 {\
17067 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17068 \ # positional parameters, so assign one to ordinary parameter first.\
17069 \ func_stripname_result=${3}\
17070 \ func_stripname_result=${func_stripname_result#"${1}"}\
17071 \ func_stripname_result=${func_stripname_result%"${2}"}\
17072 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17073 && mv -f "$cfgfile.tmp" "$cfgfile" \
17074 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17075 test 0 -eq $? || _lt_function_replace_fail=:
17076
17077
17078 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17079 func_split_long_opt ()\
17080 {\
17081 \ func_split_long_opt_name=${1%%=*}\
17082 \ func_split_long_opt_arg=${1#*=}\
17083 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17084 && mv -f "$cfgfile.tmp" "$cfgfile" \
17085 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17086 test 0 -eq $? || _lt_function_replace_fail=:
17087
17088
17089 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17090 func_split_short_opt ()\
17091 {\
17092 \ func_split_short_opt_arg=${1#??}\
17093 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17094 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17095 && mv -f "$cfgfile.tmp" "$cfgfile" \
17096 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17097 test 0 -eq $? || _lt_function_replace_fail=:
17098
17099
17100 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17101 func_lo2o ()\
17102 {\
17103 \ case ${1} in\
17104 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17105 \ *) func_lo2o_result=${1} ;;\
17106 \ esac\
17107 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17108 && mv -f "$cfgfile.tmp" "$cfgfile" \
17109 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17110 test 0 -eq $? || _lt_function_replace_fail=:
17111
17112
17113 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17114 func_xform ()\
17115 {\
17116 func_xform_result=${1%.*}.lo\
17117 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17118 && mv -f "$cfgfile.tmp" "$cfgfile" \
17119 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17120 test 0 -eq $? || _lt_function_replace_fail=:
17121
17122
17123 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17124 func_arith ()\
17125 {\
17126 func_arith_result=$(( $* ))\
17127 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17128 && mv -f "$cfgfile.tmp" "$cfgfile" \
17129 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17130 test 0 -eq $? || _lt_function_replace_fail=:
17131
17132
17133 sed -e '/^func_len ()$/,/^} # func_len /c\
17134 func_len ()\
17135 {\
17136 func_len_result=${#1}\
17137 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17138 && mv -f "$cfgfile.tmp" "$cfgfile" \
17139 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17140 test 0 -eq $? || _lt_function_replace_fail=:
17141
17142 fi
17143
17144 if test x"$lt_shell_append" = xyes; then
17145 sed -e '/^func_append ()$/,/^} # func_append /c\
17146 func_append ()\
17147 {\
17148 eval "${1}+=\\${2}"\
17149 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17150 && mv -f "$cfgfile.tmp" "$cfgfile" \
17151 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17152 test 0 -eq $? || _lt_function_replace_fail=:
17153
17154
17155 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17156 func_append_quoted ()\
17157 {\
17158 \ func_quote_for_eval "${2}"\
17159 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17160 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17161 && mv -f "$cfgfile.tmp" "$cfgfile" \
17162 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17163 test 0 -eq $? || _lt_function_replace_fail=:
17164
17165
17166 # Save a `func_append' function call where possible by direct use of '+='
17167 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17168 && mv -f "$cfgfile.tmp" "$cfgfile" \
17169 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17170 test 0 -eq $? || _lt_function_replace_fail=:
17171 else
17172 # Save a `func_append' function call even when '+=' is not available
17173 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17174 && mv -f "$cfgfile.tmp" "$cfgfile" \
17175 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17176 test 0 -eq $? || _lt_function_replace_fail=:
17177 fi
17178
17179 if test x"$_lt_function_replace_fail" = x":"; then
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17181 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17182 fi
17183
17184
17185 mv -f "$cfgfile" "$ofile" ||
17186 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17187 chmod +x "$ofile"
17188
17189 ;;
17190
17191 esac
17192 done # for ac_tag
17193
17194
17195 as_fn_exit 0
17196 _ACEOF
17197 ac_clean_files=$ac_clean_files_save
17198
17199 test $ac_write_fail = 0 ||
17200 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17201
17202
17203 # configure is writing to config.log, and then calls config.status.
17204 # config.status does its own redirection, appending to config.log.
17205 # Unfortunately, on DOS this fails, as config.log is still kept open
17206 # by configure, so config.status won't be able to write to it; its
17207 # output is simply discarded. So we exec the FD to /dev/null,
17208 # effectively closing config.log, so it can be properly (re)opened and
17209 # appended to by config.status. When coming back to configure, we
17210 # need to make the FD available again.
17211 if test "$no_create" != yes; then
17212 ac_cs_success=:
17213 ac_config_status_args=
17214 test "$silent" = yes &&
17215 ac_config_status_args="$ac_config_status_args --quiet"
17216 exec 5>/dev/null
17217 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17218 exec 5>>config.log
17219 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17220 # would make configure fail if this is the last instruction.
17221 $ac_cs_success || as_fn_exit 1
17222 fi
17223 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17225 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17226 fi
17227
17228
17229