2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for MPFR 3.1.2.
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.
9 # This file is part of the GNU MPFR Library.
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.
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.
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.
28 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 :
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+"$@"}'='"$@"'
47 case `(set -o) 2>/dev/null` in #(
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
68 as_echo_n='print -rn --'
69 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
77 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
82 expr "X$arg" : "X\\(.*\\)$as_nl";
83 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
85 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
88 as_echo_n='sh -c $as_echo_n_body as_echo'
91 as_echo='sh -c $as_echo_body as_echo'
94 # The user is always right.
95 if test "${PATH_SEPARATOR+set}" != set; then
97 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
98 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
111 # Find who we are. Look in the path if we contain no directory separator.
114 *[\\/]* ) as_myself=$0 ;;
115 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119 test -z "$as_dir" && as_dir=.
120 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
131 if test ! -f "$as_myself"; then
132 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 || :
155 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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.
167 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
169 *v*x* | *x*v* ) as_opts=-vx ;;
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
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 :
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+\"\$@\"}'='\"\$@\"'
191 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
213 exitcode=1; echo positional parameters were not saved.
215 test x\$exitcode = x0 || 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
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 :
235 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
240 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 test -z "$as_dir" && as_dir=.
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 :
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
268 if test "x$CONFIG_SHELL" != x; then :
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.
276 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
278 *v*x* | *x*v* ) as_opts=-vx ;;
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
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."
297 $as_echo "$0: Please tell bug-autoconf@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."
306 SHELL=${CONFIG_SHELL-/bin/sh}
308 # Unset more variables known to interfere with behavior of common tools.
309 CLICOLOR_FORCE= GREP_OPTIONS=
310 unset CLICOLOR_FORCE GREP_OPTIONS
312 ## --------------------- ##
313 ## M4sh Shell Functions. ##
314 ## --------------------- ##
317 # Portably unset VAR.
320 { eval $1=; unset $1;}
324 # as_fn_set_status STATUS
325 # -----------------------
326 # Set $? to STATUS, without forking.
334 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
344 # Create "$as_dir" as a directory, including parents if necessary.
349 -*) as_dir=./$as_dir;;
351 test -d "$as_dir" || eval $as_mkdir_p || {
355 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
382 test -d "$as_dir" && break
384 test -z "$as_dirs" || eval "mkdir $as_dirs"
385 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
390 # as_fn_executable_p FILE
391 # -----------------------
392 # Test if FILE is an executable regular file.
393 as_fn_executable_p ()
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
403 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
404 eval 'as_fn_append ()
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 :
428 as_val=`expr "$@" || test $? -eq 1`
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.
440 as_status=$1; test $as_status -eq 0 && as_status=1
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
445 $as_echo "$as_me: error: $2" >&2
446 as_fn_exit $as_status
449 if expr a : '\(a\)' >/dev/null 2>&1 &&
450 test "X`expr 00001 : '.*\(...\)'`" = X001; then
456 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 as_me=`$as_basename -- "$0" ||
469 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
470 X"$0" : 'X\(//\)$' \| \
471 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 sed '/^.*\/\([^/][^/]*\)\/*$/{
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
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. :-)
511 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }
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).
526 # Exit status is that of the last command.
530 ECHO_C= ECHO_N= ECHO_T=
531 case `echo -n x` in #(((((
533 case `echo 'xy\c'` in
534 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
536 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
548 mkdir conf$$.dir 2>/dev/null
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
559 elif ln conf$$.file conf$$ 2>/dev/null; then
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
573 test -d ./-p && rmdir ./-p
578 as_executable_p=as_fn_executable_p
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'"
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'"
586 SHELL=${CONFIG_SHELL-/bin/sh}
589 test -n "$DJDIR" || exec 7<&0 </dev/null
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`
600 ac_default_prefix=/usr/local
602 ac_config_libobj_dir=.
609 # Identity of this package.
611 PACKAGE_TARNAME='mpfr'
612 PACKAGE_VERSION='3.1.2'
613 PACKAGE_STRING='MPFR 3.1.2'
617 # Factoring default headers for most tests.
618 ac_includes_default="\
620 #ifdef HAVE_SYS_TYPES_H
621 # include <sys/types.h>
623 #ifdef HAVE_SYS_STAT_H
624 # include <sys/stat.h>
630 # ifdef HAVE_STDLIB_H
635 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
640 #ifdef HAVE_STRINGS_H
641 # include <strings.h>
643 #ifdef HAVE_INTTYPES_H
644 # include <inttypes.h>
653 ac_subst_vars='am__EXEEXT_FALSE
712 MAINTAINER_MODE_FALSE
722 INSTALL_STRIP_PROGRAM
764 program_transform_name
777 enable_option_checking
778 enable_maintainer_mode
790 enable_dependency_tracking
800 ac_precious_vars='build_alias
811 # Initialize some variables set by options.
813 ac_init_version=false
814 ac_unrecognized_opts=
816 # The variables have the same names as the options, with
817 # dashes changed to underlines.
825 program_transform_name=s,x,x,
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'
855 libdir='${exec_prefix}/lib'
856 localedir='${datarootdir}/locale'
857 mandir='${datarootdir}/man'
863 # If the previous option needs an argument, assign it.
864 if test -n "$ac_prev"; then
865 eval $ac_prev=\$ac_option
871 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 # Accept the important Cygnus configure options, so we can diagnose typos.
878 case $ac_dashdash$ac_option in
882 -bindir | --bindir | --bindi | --bind | --bin | --bi)
884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887 -build | --build | --buil | --bui | --bu)
888 ac_prev=build_alias ;;
889 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
890 build_alias=$ac_optarg ;;
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 ;;
900 cache_file=config.cache ;;
902 -datadir | --datadir | --datadi | --datad)
904 -datadir=* | --datadir=* | --datadi=* | --datad=*)
905 datadir=$ac_optarg ;;
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 ;;
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
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
928 eval enable_$ac_useropt=no ;;
930 -docdir | --docdir | --docdi | --doc | --do)
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
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
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
954 eval enable_$ac_useropt=\$ac_optarg ;;
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 ;;
965 -gas | --gas | --ga | --g)
966 # Obsolete; use --with-gas.
969 -help | --help | --hel | --he | -h)
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 ;;
976 -host | --host | --hos | --ho)
977 ac_prev=host_alias ;;
978 -host=* | --host=* | --hos=* | --ho=*)
979 host_alias=$ac_optarg ;;
981 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985 htmldir=$ac_optarg ;;
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 ;;
994 -infodir | --infodir | --infodi | --infod | --info | --inf)
996 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
997 infodir=$ac_optarg ;;
999 -libdir | --libdir | --libdi | --libd)
1001 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1002 libdir=$ac_optarg ;;
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 ;;
1011 -localedir | --localedir | --localedi | --localed | --locale)
1012 ac_prev=localedir ;;
1013 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014 localedir=$ac_optarg ;;
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 ;;
1023 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1026 mandir=$ac_optarg ;;
1028 -nfp | --nfp | --nf)
1029 # Obsolete; use --without-fp.
1032 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033 | --no-cr | --no-c | -n)
1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
1049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1052 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
1085 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088 pdfdir=$ac_optarg ;;
1090 -psdir | --psdir | --psdi | --psd | --ps)
1092 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096 | -silent | --silent | --silen | --sile | --sil)
1099 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103 sbindir=$ac_optarg ;;
1105 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107 | --sharedst | --shareds | --shared | --share | --shar \
1109 ac_prev=sharedstatedir ;;
1110 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114 sharedstatedir=$ac_optarg ;;
1116 -site | --site | --sit)
1118 -site=* | --site=* | --sit=*)
1121 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1124 srcdir=$ac_optarg ;;
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 ;;
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 ;;
1138 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141 -version | --version | --versio | --versi | --vers | -V)
1142 ac_init_version=: ;;
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
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1158 eval with_$ac_useropt=\$ac_optarg ;;
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
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1174 eval with_$ac_useropt=no ;;
1177 # Obsolete; use --with-x.
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 ;;
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 ;;
1194 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1195 Try \`$0 --help' for more information"
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'" ;;
1205 eval $ac_envvar=\$ac_optarg
1206 export $ac_envvar ;;
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}"
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"
1224 if test -n "$ac_unrecognized_opts"; then
1225 case $enable_option_checking in
1227 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
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
1238 eval ac_val=\$$ac_var
1239 # Remove trailing slashes.
1242 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243 eval $ac_var=\$ac_val;;
1245 # Be sure to have absolute directory names.
1247 [\\/$]* | ?:[\\/]* ) continue;;
1248 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1250 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
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.
1258 target=$target_alias
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
1270 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272 test "$silent" = yes && exec 6>/dev/null
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"
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1315 ac_srcdir_defaulted=no
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"
1321 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1325 # When building in place, set srcdir=.
1326 if test "$ac_abs_confdir" = "$ac_pwd"; then
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.
1333 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
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}
1343 # Report the --help message.
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.
1349 \`configure' configures MPFR 3.1.2 to adapt to many kinds of systems.
1351 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
1356 Defaults for the options are specified in brackets.
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 \`..']
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
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'.
1380 For better control, use the options below.
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]
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
1412 --build=BUILD configure for building on BUILD [guessed]
1413 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1417 if test -n "$ac_init_help"; then
1418 case $ac_init_help in
1419 short | recursive ) echo "Configuration of MPFR 3.1.2:";;
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)
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
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)
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
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).
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>
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.
1477 Report bugs to the package provider.
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"; } ||
1491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
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/ ;;
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
1507 .) # We are building in place.
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 ;;
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 ;;
1520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for guested configure.
1524 if test -f "$ac_srcdir/configure.gnu"; then
1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527 elif test -f "$ac_srcdir/configure"; then
1529 $SHELL "$ac_srcdir/configure" --help=recursive
1531 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533 cd "$ac_pwd" || { ac_status=$?; break; }
1537 test -n "$ac_init_help" && exit $ac_status
1538 if $ac_init_version; then
1540 MPFR configure 3.1.2
1541 generated by GNU Autoconf 2.69
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.
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.
1551 This file is part of the GNU MPFR Library.
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.
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.
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.
1572 ## ------------------------ ##
1573 ## Autoconf initialization. ##
1574 ## ------------------------ ##
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 ()
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"
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
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
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
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 :
1604 $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 as_fn_set_status $ac_retval
1612 } # ac_fn_c_try_compile
1614 # ac_fn_c_try_cpp LINENO
1615 # ----------------------
1616 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 if { { ac_try="$ac_cpp conftest.$ac_ext"
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
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
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
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
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647 as_fn_set_status $ac_retval
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.
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { { ac_try="$ac_link"
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
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
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;;
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
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; }; }; then :
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
1685 ac_retval=$ac_status
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
1693 # ac_fn_c_try_link LINENO
1694 # -----------------------
1695 # Try to link conftest.$ac_ext, and return whether this succeeded.
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"
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
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
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
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
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
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
1737 } # ac_fn_c_try_link
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
1744 ac_fn_c_check_header_mongrel ()
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
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755 $as_echo "$ac_res" >&6; }
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. */
1765 if ac_fn_c_try_compile "$LINENO"; then :
1766 ac_header_compiler=yes
1768 ac_header_compiler=no
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; }
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. */
1781 if ac_fn_c_try_cpp "$LINENO"; then :
1782 ac_header_preproc=yes
1784 ac_header_preproc=no
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; }
1790 # So? What about this header?
1791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
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;}
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;}
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
1816 eval "$3=\$ac_header_compiler"
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 } # ac_fn_c_check_header_mongrel
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 ()
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
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1843 if ac_fn_c_try_compile "$LINENO"; then :
1848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
1855 } # ac_fn_c_check_header_compile
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 ()
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
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1882 if ac_fn_c_try_compile "$LINENO"; then :
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1895 if ac_fn_c_try_compile "$LINENO"; then :
1900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
1909 } # ac_fn_c_check_type
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 ()
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
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
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. */
1934 # include <limits.h>
1936 # include <assert.h>
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. */
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
1963 if ac_fn_c_try_link "$LINENO"; then :
1968 rm -f core conftest.err conftest.$ac_objext \
1969 conftest$ac_exeext conftest.$ac_ext
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
1976 } # ac_fn_c_check_func
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
1983 ac_fn_c_compute_int ()
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. */
1994 static int test_array [1 - 2 * !(($2) >= 0)];
1996 return test_array [0];
2002 if ac_fn_c_try_compile "$LINENO"; then :
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2011 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2013 return test_array [0];
2019 if ac_fn_c_try_compile "$LINENO"; then :
2020 ac_hi=$ac_mid; break
2022 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2023 if test $ac_lo -le $ac_mid; then
2027 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2038 static int test_array [1 - 2 * !(($2) < 0)];
2040 return test_array [0];
2046 if ac_fn_c_try_compile "$LINENO"; then :
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2055 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2057 return test_array [0];
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064 ac_lo=$ac_mid; break
2066 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2067 if test $ac_mid -le $ac_hi; then
2071 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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. */
2090 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2092 return test_array [0];
2098 if ac_fn_c_try_compile "$LINENO"; then :
2101 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2113 static long int longval () { return $2; }
2114 static unsigned long int ulongval () { return $2; }
2121 FILE *f = fopen ("conftest.val", "w");
2126 long int i = longval ();
2129 fprintf (f, "%ld", i);
2133 unsigned long int i = ulongval ();
2136 fprintf (f, "%lu", i);
2138 /* Do not output a trailing newline, as this causes \r\n confusion
2139 on some platforms. */
2140 return ferror (f) || fclose (f) != 0;
2146 if ac_fn_c_try_run "$LINENO"; then :
2147 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2152 conftest.$ac_objext conftest.beam conftest.$ac_ext
2156 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157 as_fn_set_status $ac_retval
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.
2164 It was created by MPFR $as_me 3.1.2, which was
2165 generated by GNU Autoconf 2.69. Invocation command line was
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`
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`
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`
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 test -z "$as_dir" && as_dir=.
2201 $as_echo "PATH: $as_dir"
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.
2225 ac_must_keep_next=false
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)
2236 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2239 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
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.
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 ;;
2254 -* ) ac_must_keep_next=true ;;
2257 as_fn_append ac_configure_args " '$ac_arg'"
2262 { ac_configure_args0=; unset ac_configure_args0;}
2263 { ac_configure_args1=; unset ac_configure_args1;}
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.
2275 $as_echo "## ---------------- ##
2276 ## Cache variables. ##
2277 ## ---------------- ##"
2279 # The following way of writing the cache mishandles newlines in values,
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
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;} ;;
2290 _ | IFS | as_nl) ;; #(
2291 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2292 *) { eval $ac_var=; unset $ac_var;} ;;
2297 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2298 *${as_nl}ac_space=\ *)
2300 "s/'\''/'\''\\\\'\'''\''/g;
2301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2304 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2311 $as_echo "## ----------------- ##
2312 ## Output variables. ##
2313 ## ----------------- ##"
2315 for ac_var in $ac_subst_vars
2317 eval ac_val=\$$ac_var
2319 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2321 $as_echo "$ac_var='\''$ac_val'\''"
2325 if test -n "$ac_subst_files"; then
2326 $as_echo "## ------------------- ##
2327 ## File substitutions. ##
2328 ## ------------------- ##"
2330 for ac_var in $ac_subst_files
2332 eval ac_val=\$$ac_var
2334 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2336 $as_echo "$ac_var='\''$ac_val'\''"
2341 if test -s confdefs.h; then
2342 $as_echo "## ----------- ##
2349 test "$ac_signal" != 0 &&
2350 $as_echo "$as_me: caught signal $ac_signal"
2351 $as_echo "$as_me: exit $exit_status"
2353 rm -f core *.core core.conftest.* &&
2354 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2357 for ac_signal in 1 2 13 15; do
2358 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2362 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2363 rm -f -r conftest* confdefs.h
2365 $as_echo "/* confdefs.h */" > confdefs.h
2367 # Predefined preprocessor variables.
2369 cat >>confdefs.h <<_ACEOF
2370 #define PACKAGE_NAME "$PACKAGE_NAME"
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_STRING "$PACKAGE_STRING"
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_URL "$PACKAGE_URL"
2394 # Let the site file select an alternate cache file if it wants to.
2395 # Prefer an explicitly selected file to automatically selected ones.
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;;
2405 elif test "x$prefix" != xNONE; then
2406 ac_site_file1=$prefix/share/config.site
2407 ac_site_file2=$prefix/etc/config.site
2409 ac_site_file1=$ac_default_prefix/share/config.site
2410 ac_site_file2=$ac_default_prefix/etc/config.site
2412 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
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
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; }
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;}
2434 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2435 *) . "./$cache_file";;
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2440 $as_echo "$as_me: creating cache $cache_file" >&6;}
2444 # Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
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
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;}
2482 # Pass precious variables to config.status.
2483 if test "$ac_new_set" = set; then
2485 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2486 *) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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
2501 ## -------------------- ##
2502 ## Main body of script. ##
2503 ## -------------------- ##
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
2513 am__api_version='1.11'
2516 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2517 if test -f "$ac_dir/install-sh"; then
2519 ac_install_sh="$ac_aux_dir/install-sh -c"
2521 elif test -f "$ac_dir/install.sh"; then
2523 ac_install_sh="$ac_aux_dir/install.sh -c"
2525 elif test -f "$ac_dir/shtool"; then
2527 ac_install_sh="$ac_aux_dir/shtool install -c"
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
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.
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
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
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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[\\/]* | \
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
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.
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.
2591 rm -rf conftest.one conftest.two conftest.dir
2592 echo one > conftest.one
2593 echo two > conftest.two
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
2600 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2613 rm -rf conftest.one conftest.two conftest.dir
2616 if test "${ac_cv_path_install+set}" = set; then
2617 INSTALL=$ac_cv_path_install
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
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2627 $as_echo "$INSTALL" >&6; }
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}'
2633 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2635 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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; }
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.
2647 *[\\\"\#\$\&\'\`$am_lf]*)
2648 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2651 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2652 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
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
2661 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2662 if test "$*" = "X"; then
2664 set X `ls -t "$srcdir/configure" conftest.file`
2667 if test "$*" != "X $srcdir/configure conftest.file" \
2668 && test "$*" != "X conftest.file $srcdir/configure"; then
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
2678 test "$2" = conftest.file
2684 as_fn_error $? "newly created file is older than distributed files!
2685 Check your system clock" "$LINENO" 5
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"`
2699 # expand $ac_aux_dir to an absolute path
2700 am_aux_dir=`cd $ac_aux_dir && pwd`
2702 if test x"${MISSING+set}" != xset; then
2705 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2707 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2710 # Use eval to expand $SHELL
2711 if eval "$MISSING --run true"; then
2712 am_missing_run="$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;}
2719 if test x"${install_sh}" != xset; then
2722 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2724 install_sh="\${SHELL} $am_aux_dir/install-sh"
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
2741 if test -n "$STRIP"; then
2742 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2772 if test -z "$ac_cv_prog_STRIP"; then
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
2781 if test -n "$ac_ct_STRIP"; then
2782 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807 $as_echo "no" >&6; }
2810 if test "x$ac_ct_STRIP" = x; then
2813 case $cross_compiling:$ac_tool_warned in
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 ;;
2822 STRIP="$ac_cv_prog_STRIP"
2826 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
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
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
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
2856 test -d ./--version && rmdir ./--version
2857 if test "${ac_cv_path_mkdir+set}" = set; then
2858 MKDIR_P="$ac_cv_path_mkdir -p"
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"
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2868 $as_echo "$MKDIR_P" >&6; }
2872 [\\/$]* | ?:[\\/]*) ;;
2873 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2876 for ac_prog in gawk mawk nawk awk
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
2885 if test -n "$AWK"; then
2886 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2906 if test -n "$AWK"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2908 $as_echo "$AWK" >&6; }
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 $as_echo "no" >&6; }
2915 test -n "$AWK" && break
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; }
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
2925 cat >conftest.make <<\_ACEOF
2928 @echo '@@@%%%=$(MAKE)=@@@%%%'
2930 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2931 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2933 eval ac_cv_prog_make_${ac_make}_set=yes;;
2935 eval ac_cv_prog_make_${ac_make}_set=no;;
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; }
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2946 SET_MAKE="MAKE=${MAKE-make}"
2949 rm -rf .tst 2>/dev/null
2950 mkdir .tst 2>/dev/null
2951 if test -d .tst; then
2956 rmdir .tst 2>/dev/null
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
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'
2978 # Define the identity of the package.
2983 # Some tools Automake needs.
2985 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2988 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2991 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2994 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2997 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2999 # We need awk for the "check" target. The system "awk" is bad on
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 ...
3005 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
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
3018 USE_MAINTAINER_MODE=yes
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='#'
3027 MAINTAINER_MODE_TRUE='#'
3028 MAINTAINER_MODE_FALSE=
3031 MAINT=$MAINTAINER_MODE_TRUE
3038 test_CFLAGS=${CFLAGS+set}
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
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
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
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
3062 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3065 ac_save_IFS=$IFS; IFS='-'
3071 # Remember, the first character of IFS is used to create $*,
3072 # except with old shells:
3075 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
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
3083 if test "x$host_alias" = x; then
3084 ac_cv_host=$ac_cv_build
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
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3092 $as_echo "$ac_cv_host" >&6; }
3095 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3098 ac_save_IFS=$IFS; IFS='-'
3104 # Remember, the first character of IFS is used to create $*,
3105 # except with old shells:
3108 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
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
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
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
3133 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3136 $as_echo_n 0123456789 >"conftest.in"
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
3151 # 10*(2^10) chars as input seems more than enough
3152 test $ac_count -gt 10 && break
3154 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3157 $ac_path_GREP_found && break 3
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
3166 ac_cv_path_GREP=$GREP
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"
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
3180 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3181 then ac_cv_path_EGREP="$GREP -E"
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
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
3199 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3202 $as_echo_n 0123456789 >"conftest.in"
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
3217 # 10*(2^10) chars as input seems more than enough
3218 test $ac_count -gt 10 && break
3220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3223 $ac_path_EGREP_found && break 3
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
3232 ac_cv_path_EGREP=$EGREP
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"
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
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"
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
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
3269 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3272 $as_echo_n 0123456789 >"conftest.in"
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
3287 # 10*(2^10) chars as input seems more than enough
3288 test $ac_count -gt 10 && break
3290 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3293 $ac_path_SED_found && break 3
3298 if test -z "$ac_cv_path_SED"; then
3299 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
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"
3313 unset gmp_lib_path GMP_CFLAGS GMP_CC
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"
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"
3330 # Check whether --with-gmp was given.
3331 if test "${with_gmp+set}" = set; then :
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"
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; }
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
3362 ?*) GMP_SOURCE="$withval/$GMP_SOURCE" ;;
3364 if test -d "$GMP_SOURCE" ; then
3365 CPPFLAGS="$CPPFLAGS -I$GMP_SOURCE -I$GMP_SOURCE/tune"
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; }
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
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
3394 $as_echo "#define WANT_GMP_INTERNALS 1" >>confdefs.h
3397 *) as_fn_error $? "bad value for --enable-gmp-internals: yes or no" "$LINENO" 5 ;;
3402 # Check whether --enable-assert was given.
3403 if test "${enable_assert+set}" = set; then :
3404 enableval=$enable_assert; case $enableval in
3406 $as_echo "#define WANT_ASSERT 1" >>confdefs.h
3410 $as_echo "#define WANT_ASSERT 2" >>confdefs.h
3412 *) as_fn_error $? "bad value for --enable-assert: yes, no or full" "$LINENO" 5 ;;
3416 # Check whether --enable-logging was given.
3417 if test "${enable_logging+set}" = set; then :
3418 enableval=$enable_logging; case $enableval in
3420 $as_echo "#define MPFR_USE_LOGGING 1" >>confdefs.h
3423 *) as_fn_error $? "bad value for --enable-logging: yes or no" "$LINENO" 5 ;;
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
3432 *) as_fn_error $? "bad value for --enable-thread-safe: yes or no" "$LINENO" 5 ;;
3436 # Check whether --enable-warnings was given.
3437 if test "${enable_warnings+set}" = set; then :
3438 enableval=$enable_warnings; case $enableval in
3440 $as_echo "#define MPFR_USE_WARNINGS 1" >>confdefs.h
3443 *) as_fn_error $? "bad value for --enable-warnings: yes or no" "$LINENO" 5 ;;
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
3453 $as_echo "#define MPFR_TESTS_TIMEOUT 0" >>confdefs.h
3455 [0-9]|[0-9][0-9]|[0-9][0-9][0-9]|[0-9][0-9][0-9][0-9])
3457 cat >>confdefs.h <<_ACEOF
3458 #define MPFR_TESTS_TIMEOUT $enableval
3461 *) as_fn_error $? "bad value for --enable-tests-timeout" "$LINENO" 5 ;;
3468 if test -n "$CFLAGS" || test -n "$CC" ; then
3469 user_redefine_cc=yes
3473 if test -z "$user_redefine_cc" && test "$cross_compiling" != yes ; then
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; }
3479 GMP_CFLAGS=__GMP_CFLAGS
3480 for cpp in /lib/cpp gcc cc c99
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
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'`
3490 echo "#include \"gmp.h\"" > conftest.c
3491 echo "MPFR_OPTION __GMP_CFLAGS" >> conftest.c
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'`
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; }
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; }
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; }
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
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
3542 if test -n "$CC"; then
3543 ac_cv_prog_CC="$CC" # Let the user override the test.
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3563 if test -n "$CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565 $as_echo "$CC" >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3573 if test -z "$ac_cv_prog_CC"; then
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
3582 if test -n "$ac_ct_CC"; then
3583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3611 if test "x$ac_ct_CC" = x; then
3614 case $cross_compiling:$ac_tool_warned in
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 ;;
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
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC="$CC" # Let the user override the test.
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3656 if test -n "$CC"; then
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3658 $as_echo "$CC" >&6; }
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
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
3675 if test -n "$CC"; then
3676 ac_cv_prog_CC="$CC" # Let the user override the test.
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
3707 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3713 if test -n "$CC"; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715 $as_echo "$CC" >&6; }
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3723 if test -z "$CC"; then
3724 if test -n "$ac_tool_prefix"; then
3725 for ac_prog in cl.exe
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
3734 if test -n "$CC"; then
3735 ac_cv_prog_CC="$CC" # Let the user override the test.
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3755 if test -n "$CC"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3757 $as_echo "$CC" >&6; }
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3764 test -n "$CC" && break
3767 if test -z "$CC"; then
3769 for ac_prog in cl.exe
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
3778 if test -n "$ac_ct_CC"; then
3779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804 $as_echo "no" >&6; }
3808 test -n "$ac_ct_CC" && break
3811 if test "x$ac_ct_CC" = x; then
3814 case $cross_compiling:$ac_tool_warned in
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 ;;
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; }
3832 # Provide some information about the compiler.
3833 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3836 for ac_option in --version -v -V -qversion; do
3837 { { ac_try="$ac_compiler $ac_option >&5"
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
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
3846 if test -s conftest.err; then
3848 ... rest of stderr output deleted ...
3849 10q' conftest.err >conftest.er1
3850 cat conftest.er1 >&5
3852 rm -f conftest.er1 conftest.err
3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
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
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[^ ]*//'`
3877 # The possible output files:
3878 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3881 for ac_file in $ac_files
3884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3885 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3890 if { { ac_try="$ac_link_default"
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
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
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
3906 for ac_file in $ac_files ''
3908 test -f "$ac_file" || continue
3910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3913 # We found the default executable, but exeext='' is most
3917 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3919 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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
3931 test "$ac_cv_exeext" = no && ac_cv_exeext=
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
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; }
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3948 $as_echo "yes" >&6; }
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
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"
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
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
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
3975 for ac_file in conftest.exe conftest conftest.*; do
3976 test -f "$ac_file" || continue
3978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3979 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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; }
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; }
3994 rm -f conftest.$ac_ext
3995 EXEEXT=$ac_cv_exeext
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
4003 FILE *f = fopen ("conftest.out", "w");
4004 return ferror (f) || fclose (f) != 0;
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"
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
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
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;;
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
4036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037 test $ac_status = 0; }; }; then
4040 if test "$cross_compiling" = maybe; then
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; }
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4052 $as_echo "$cross_compiling" >&6; }
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
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4072 rm -f conftest.o conftest.obj
4073 if { { ac_try="$ac_compile"
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
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
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;
4087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4088 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4093 $as_echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
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; }
4101 rm -f conftest.$ac_cv_objext conftest.$ac_ext
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
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
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4126 if ac_fn_c_try_compile "$LINENO"; then :
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 ac_cv_c_compiler_gnu=$ac_compiler_gnu
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
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
4149 ac_save_c_werror_flag=$ac_c_werror_flag
4150 ac_c_werror_flag=yes
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4164 if ac_fn_c_try_compile "$LINENO"; then :
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4179 if ac_fn_c_try_compile "$LINENO"; then :
4182 ac_c_werror_flag=$ac_save_c_werror_flag
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4195 if ac_fn_c_try_compile "$LINENO"; then :
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 ac_c_werror_flag=$ac_save_c_werror_flag
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
4216 if test "$GCC" = yes; then
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
4227 ac_cv_prog_cc_c89=no
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
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)
4243 static char *f (char * (*g) (char **, int), char **p, ...)
4248 s = g (p, va_arg (v,int));
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];
4262 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4263 inside strings and character constants. */
4265 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
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);
4276 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4281 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4282 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4284 CC="$ac_save_CC $ac_arg"
4285 if ac_fn_c_try_compile "$LINENO"; then :
4286 ac_cv_prog_cc_c89=$ac_arg
4288 rm -f core conftest.err conftest.$ac_objext
4289 test "x$ac_cv_prog_cc_c89" != "xno" && break
4291 rm -f conftest.$ac_ext
4296 case "x$ac_cv_prog_cc_c89" in
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4299 $as_echo "none needed" >&6; } ;;
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4302 $as_echo "unsupported" >&6; } ;;
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; } ;;
4308 if test "x$ac_cv_prog_cc_c89" != xno; then :
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"
4319 ac_config_commands="$ac_config_commands depfiles"
4322 am_make=${MAKE-make}
4323 cat > confinc << 'END'
4325 @echo this is the am__doit target
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; }
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*)
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
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4358 $as_echo "$_am_result" >&6; }
4359 rm -f confinc confmf
4361 # Check whether --enable-dependency-tracking was given.
4362 if test "${enable_dependency_tracking+set}" = set; then :
4363 enableval=$enable_dependency_tracking;
4366 if test "x$enable_dependency_tracking" != xno; then
4367 am_depcomp="$ac_aux_dir/depcomp"
4371 if test "x$enable_dependency_tracking" != xno; then
4381 depcc="$CC" am_compiler_list=
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
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
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
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
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`
4413 case " $depcc " in #(
4414 *\ -arch\ *\ -arch\ *) am__universal=true ;;
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.
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.
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
4432 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
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"
4442 # This depmode causes a compiler race in universal mode.
4443 test "$am__universal" = false || continue
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
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}
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
4490 am_cv_CC_dependencies_compiler_type=none
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
4499 test "x$enable_dependency_tracking" != xno \
4500 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4502 am__fastdepCC_FALSE='#'
4504 am__fastdepCC_TRUE='#'
4505 am__fastdepCC_FALSE=
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
4520 if test -z "$CPP"; then
4521 if ${ac_cv_prog_CPP+:} false; then :
4522 $as_echo_n "(cached) " >&6
4524 # Double quotes because CPP needs to be expanded
4525 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4528 for ac_c_preproc_warn_flag in '' yes
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. */
4539 # include <limits.h>
4541 # include <assert.h>
4545 if ac_fn_c_try_cpp "$LINENO"; then :
4548 # Broken: fails on valid input.
4551 rm -f conftest.err conftest.i conftest.$ac_ext
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>
4559 if ac_fn_c_try_cpp "$LINENO"; then :
4560 # Broken: success on invalid input.
4563 # Passes both tests.
4567 rm -f conftest.err conftest.i conftest.$ac_ext
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 :
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4585 $as_echo "$CPP" >&6; }
4587 for ac_c_preproc_warn_flag in '' yes
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. */
4598 # include <limits.h>
4600 # include <assert.h>
4604 if ac_fn_c_try_cpp "$LINENO"; then :
4607 # Broken: fails on valid input.
4610 rm -f conftest.err conftest.i conftest.$ac_ext
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>
4618 if ac_fn_c_try_cpp "$LINENO"; then :
4619 # Broken: success on invalid input.
4622 # Passes both tests.
4626 rm -f conftest.err conftest.i conftest.$ac_ext
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 :
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; }
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
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
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
4658 $as_echo "#define MPFR_WANT_DECIMAL_FLOATS 1" >>confdefs.h
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. */
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
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. */
4685 #include "gmp-impl.h"
4686 #ifndef _GMP_IEEE_FLOATS
4687 #error "_GMP_IEEE_FLOATS is not defined"
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; }
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
4698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 as_fn_error $? "Compiler doesn't know _Decimal64; try GCC >= 4.2, configured with --enable-decimal-float
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
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
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;
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
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; }
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: BID" >&5
4744 $as_echo "BID" >&6; }
4746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4747 conftest.$ac_objext conftest.beam conftest.$ac_ext
4752 *) as_fn_error $? "bad value for --enable-decimal-float: yes or no" "$LINENO" 5 ;;
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. */
4763 # error "ICC Not Found"
4775 if ac_fn_c_try_compile "$LINENO"; then :
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"
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787 if test "$test_CFLAGS" != set && test -n "$GCC"; then
4788 CFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith $CFLAGS"
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; }
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; }
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
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
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'
4819 if { { case "(($ac_try" in
4820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821 *) ac_try_echo=$ac_try;;
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
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;;
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
4837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4838 test $ac_status = 0; };
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;;
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
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'
4856 if { { case "(($ac_try" in
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
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
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;;
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
4874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4875 test $ac_status = 0; };
4880 # cc exists but doesn't like -o.
4881 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4886 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4888 rm -f core conftest*
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; }
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4898 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4902 # FIXME: we rely on the cache variable name because
4903 # there is no other way.
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"
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. */
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; }
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4943 LDFLAGS="$saved_LDFLAGS"
4945 rm -f core conftest.err conftest.$ac_objext \
4946 conftest$ac_exeext conftest.$ac_ext
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
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
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;
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
4978 const char *g = "string";
4979 pcpcc = &g + (g ? g-g : 0);
4980 /* HPUX 7.0 cc rejects these. */
4982 ppc = (char**) pcpcc;
4983 pcpcc = (char const *const *) ppc;
4984 { /* SCO 3.2v4 cc rejects this sort of thing. */
4987 char const *s = 0 ? (char *) 0 : (char const *) 0;
4992 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4994 const int *foo = &x[0];
4997 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4998 typedef const int *iptr;
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;
5007 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5011 return !cs[0] && !zero.x;
5018 if ac_fn_c_try_compile "$LINENO"; then :
5023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
5029 $as_echo "#define const /**/" >>confdefs.h
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
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5046 int * volatile y = (int *) 0;
5052 if ac_fn_c_try_compile "$LINENO"; then :
5053 ac_cv_c_volatile=yes
5057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
5063 $as_echo "#define volatile /**/" >>confdefs.h
5072 *-*-beos* | *-*-cygwin* | *-*-pw32*)
5073 # According to libtool AC CHECK LIBM, these systems don't have libm
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
5083 ac_check_lib_save_LIBS=$LIBS
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h. */
5097 if ac_fn_c_try_link "$LINENO"; then :
5098 ac_cv_lib_m9x_main=yes
5100 ac_cv_lib_m9x_main=no
5102 rm -f core conftest.err conftest.$ac_objext \
5103 conftest$ac_exeext conftest.$ac_ext
5104 LIBS=$ac_check_lib_save_LIBS
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 :
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
5117 ac_check_lib_save_LIBS=$LIBS
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5131 if ac_fn_c_try_link "$LINENO"; then :
5132 ac_cv_lib_m_main=yes
5136 rm -f core conftest.err conftest.$ac_objext \
5137 conftest$ac_exeext conftest.$ac_ext
5138 LIBS=$ac_check_lib_save_LIBS
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"
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
5154 ac_check_lib_save_LIBS=$LIBS
5156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157 /* end confdefs.h. */
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. */
5165 char _mwvalidcheckl ();
5169 return _mwvalidcheckl ();
5174 if ac_fn_c_try_link "$LINENO"; then :
5175 ac_cv_lib_mw__mwvalidcheckl=yes
5177 ac_cv_lib_mw__mwvalidcheckl=no
5179 rm -f core conftest.err conftest.$ac_objext \
5180 conftest$ac_exeext conftest.$ac_ext
5181 LIBS=$ac_check_lib_save_LIBS
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 :
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
5194 ac_check_lib_save_LIBS=$LIBS
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5208 if ac_fn_c_try_link "$LINENO"; then :
5209 ac_cv_lib_m_main=yes
5213 rm -f core conftest.err conftest.$ac_objext \
5214 conftest$ac_exeext conftest.$ac_ext
5215 LIBS=$ac_check_lib_save_LIBS
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"
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
5230 ac_check_lib_save_LIBS=$LIBS
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h. */
5244 if ac_fn_c_try_link "$LINENO"; then :
5245 ac_cv_lib_m_main=yes
5249 rm -f core conftest.err conftest.$ac_objext \
5250 conftest$ac_exeext conftest.$ac_ext
5251 LIBS=$ac_check_lib_save_LIBS
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 :
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
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5269 #include <sys/types.h>
5270 #include <sys/time.h>
5276 if ((struct tm *) 0)
5282 if ac_fn_c_try_compile "$LINENO"; then :
5283 ac_cv_header_time=yes
5285 ac_cv_header_time=no
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
5293 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
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
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5318 if ac_fn_c_try_compile "$LINENO"; then :
5319 ac_cv_header_stdc=yes
5321 ac_cv_header_stdc=no
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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. */
5332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5333 $EGREP "memchr" >/dev/null 2>&1; then :
5336 ac_cv_header_stdc=no
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. */
5349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5350 $EGREP "free" >/dev/null 2>&1; then :
5353 ac_cv_header_stdc=no
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 :
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5368 #if ((' ' & 0x0FF) == 0x020)
5369 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5370 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
5379 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5384 for (i = 0; i < 256; i++)
5385 if (XOR (islower (i), ISLOWER (i))
5386 || toupper (i) != TOUPPER (i))
5391 if ac_fn_c_try_run "$LINENO"; then :
5394 ac_cv_header_stdc=no
5396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5397 conftest.$ac_objext conftest.beam conftest.$ac_ext
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
5406 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
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
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
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
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 :
5432 cat >>confdefs.h <<_ACEOF
5433 #define size_t unsigned int
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 :
5448 as_fn_error $? "limits.h not found" "$LINENO" 5
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 :
5456 as_fn_error $? "float.h not found" "$LINENO" 5
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 :
5464 as_fn_error $? "string.h not found" "$LINENO" 5
5469 for ac_header in locale.h
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
5482 for ac_header in wchar.h
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
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 :
5498 $as_echo "#define HAVE_STDARG 1" >>confdefs.h
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 :
5505 as_fn_error $? "stdarg.h or varargs.h not found" "$LINENO" 5
5513 for ac_header in sys/time.h sys/fpu.h
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
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
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5540 char *p = (char *) alloca (2 * sizeof (int));
5546 if ac_fn_c_try_link "$LINENO"; then :
5547 ac_cv_working_alloca_h=yes
5549 ac_cv_working_alloca_h=no
5551 rm -f core conftest.err conftest.$ac_objext \
5552 conftest$ac_exeext conftest.$ac_ext
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
5558 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
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
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5570 # define alloca __builtin_alloca
5573 # include <malloc.h>
5574 # define alloca _alloca
5576 # ifdef HAVE_ALLOCA_H
5577 # include <alloca.h>
5582 # ifndef alloca /* predefined by HP cc +Olibcalls */
5583 void *alloca (size_t);
5593 char *p = (char *) alloca (1);
5599 if ac_fn_c_try_link "$LINENO"; then :
5600 ac_cv_func_alloca_works=yes
5602 ac_cv_func_alloca_works=no
5604 rm -f core conftest.err conftest.$ac_objext \
5605 conftest$ac_exeext conftest.$ac_ext
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5608 $as_echo "$ac_cv_func_alloca_works" >&6; }
5610 if test $ac_cv_func_alloca_works = yes; then
5612 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
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.
5620 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5622 $as_echo "#define C_ALLOCA 1" >>confdefs.h
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
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5632 #if defined CRAY && ! defined CRAY2
5639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5640 $EGREP "webecray" >/dev/null 2>&1; then :
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 :
5656 cat >>confdefs.h <<_ACEOF
5657 #define CRAY_STACKSEG_END $ac_func
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
5671 if test "$cross_compiling" = yes; then :
5672 ac_cv_c_stack_direction=0
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5676 $ac_includes_default
5678 find_stack_direction (int *addr, int depth)
5683 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5684 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5689 main (int argc, char **argv)
5691 return find_stack_direction (0, argc + !argv + 20) < 0;
5694 if ac_fn_c_try_run "$LINENO"; then :
5695 ac_cv_c_stack_direction=1
5697 ac_cv_c_stack_direction=-1
5699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5700 conftest.$ac_objext conftest.beam conftest.$ac_ext
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
5715 for ac_header in stdint.h
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
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
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5738 #ifdef HAVE_INTTYPES_H
5739 # include <inttypes.h>
5742 # include <stdint.h>
5749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5750 $EGREP "Found it" >/dev/null 2>&1; then :
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 :
5760 size_t_bits_minus_1=
5763 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
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. */
5775 extern unsigned long foo;
5785 if ac_fn_c_try_compile "$LINENO"; then :
5788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790 if test $fits_in_uint = 1; then
5791 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
5793 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
5796 gl_cv_size_max='((size_t)~(size_t)0)'
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
5806 cat >>confdefs.h <<_ACEOF
5807 #define SIZE_MAX $gl_cv_size_max
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. */
5831 if ac_fn_c_try_link "$LINENO"; then :
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
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5849 __va_copy(ap1, ap2);
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; }
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: memcpy" >&5
5861 $as_echo "memcpy" >&6; }
5863 rm -f core conftest.err conftest.$ac_objext \
5864 conftest$ac_exeext conftest.$ac_ext
5866 rm -f core conftest.err conftest.$ac_objext \
5867 conftest$ac_exeext conftest.$ac_ext
5869 for ac_func in memmove memset setlocale strtol gettimeofday
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
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
5891 if test -n "$GCC"; then
5892 mpfr_cv_ieee_switches="-mfp-rounding-mode=d -mieee-with-inexact"
5894 mpfr_cv_ieee_switches="-fprm d -ieee_with_inexact"
5896 CFLAGS="$CFLAGS $mpfr_cv_ieee_switches"
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5908 if ac_fn_c_try_compile "$LINENO"; then :
5911 mpfr_cv_ieee_switches="none"
5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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"
5921 CFLAGS="$saved_CFLAGS $mpfr_cv_ieee_switches"
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 :
5928 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
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 :
5936 cat >>confdefs.h <<_ACEOF
5937 #define HAVE_INTMAX_T 1
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
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"
5958 intmax_t x = INTMAX_MAX;
5963 if ac_fn_c_try_compile "$LINENO"; then :
5964 mpfr_cv_have_intmax_max=yes
5966 mpfr_cv_have_intmax_max=no
5968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5969 CPPFLAGS="$saved_CPPFLAGS"
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
5976 $as_echo "#define MPFR_HAVE_INTMAX_MAX 1" >>confdefs.h
5981 ac_fn_c_check_type "$LINENO" "union fpc_csr" "ac_cv_type_union_fpc_csr" "
5983 # include <sys/fpu.h>
5987 if test "x$ac_cv_type_union_fpc_csr" = xyes; then :
5989 $as_echo "#define HAVE_FPC_CSR 1" >>confdefs.h
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
6001 LIBS="$LIBS $MPFR_LIBM"
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6008 fesetround(FE_TONEAREST);
6013 if ac_fn_c_try_link "$LINENO"; then :
6014 mpfr_cv_have_fesetround=yes
6016 mpfr_cv_have_fesetround=no
6018 rm -f core conftest.err conftest.$ac_objext \
6019 conftest$ac_exeext conftest.$ac_ext
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
6027 $as_echo "#define MPFR_HAVE_FESETROUND 1" >>confdefs.h
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
6039 LIBS="$LIBS $MPFR_LIBM"
6040 if test "$cross_compiling" = yes; then :
6041 mpfr_cv_gcc_floatconv_bug="cannot test, use -ffloat-store"
6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6047 #ifdef MPFR_HAVE_FESETROUND
6050 static double get_max (void);
6055 for (i = 1; i <= 11; i++)
6059 #ifdef MPFR_HAVE_FESETROUND
6060 /* Useful test for the G4 PowerPC */
6061 fesetround(FE_TOWARDZERO);
6069 static double get_max (void) { static volatile double d = DBL_MAX; return d; }
6072 if ac_fn_c_try_run "$LINENO"; then :
6073 mpfr_cv_gcc_floatconv_bug="no"
6075 mpfr_cv_gcc_floatconv_bug="yes, use -ffloat-store"
6077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6078 conftest.$ac_objext conftest.beam conftest.$ac_ext
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"
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
6097 if test "$cross_compiling" = yes; then :
6098 mpfr_cv_have_denorms=no
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6106 double x = 2.22507385850720138309e-308;
6107 fprintf (stderr, "%e\n", x / 2.0);
6108 return 2.0 * (x / 2.0) != x;
6112 if ac_fn_c_try_run "$LINENO"; then :
6113 mpfr_cv_have_denorms=yes
6115 mpfr_cv_have_denorms=no
6117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6118 conftest.$ac_objext conftest.beam conftest.$ac_ext
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
6127 $as_echo "#define HAVE_DENORMS 1" >>confdefs.h
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
6137 if test "$cross_compiling" = yes; then :
6138 mpfr_cv_errdivzero="cannot test, assume no"
6140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141 /* end confdefs.h. */
6144 volatile double d = 0.0, x;
6151 if ac_fn_c_try_run "$LINENO"; then :
6152 mpfr_cv_errdivzero="no"
6154 mpfr_cv_errdivzero="yes"
6156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6157 conftest.$ac_objext conftest.beam conftest.$ac_ext
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
6166 $as_echo "#define MPFR_ERRDIVZERO 1" >>confdefs.h
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;}
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
6182 if test "$cross_compiling" = yes; then :
6183 mpfr_cv_nanisnan="cannot test, assume no"
6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6191 # define NAN (0.0/0.0)
6200 if ac_fn_c_try_run "$LINENO"; then :
6201 mpfr_cv_nanisnan="yes"
6203 mpfr_cv_nanisnan="no"
6205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6206 conftest.$ac_objext conftest.beam conftest.$ac_ext
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
6215 $as_echo "#define MPFR_NANISNAN 1" >>confdefs.h
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;}
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; }
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6248 char *number = "0123456789";
6249 char *lower = "abcdefghijklmnopqrstuvwxyz";
6250 char *upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
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;
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; }
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275 $as_echo "no" >&6; }
6277 $as_echo "#define MPFR_NO_CONSECUTIVE_CHARSET 1" >>confdefs.h
6281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6282 conftest.$ac_objext conftest.beam conftest.$ac_ext
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. */
6294 int f (double (*func)(double)) { return 0;}
6308 if ac_fn_c_try_link "$LINENO"; then :
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6311 $as_echo "yes" >&6; }
6313 $as_echo "#define HAVE_ROUND 1" >>confdefs.h
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6320 rm -f core conftest.err conftest.$ac_objext \
6321 conftest$ac_exeext conftest.$ac_ext
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. */
6329 int f (double (*func)(double)) { return 0;}
6343 if ac_fn_c_try_link "$LINENO"; then :
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6346 $as_echo "yes" >&6; }
6348 $as_echo "#define HAVE_TRUNC 1" >>confdefs.h
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 $as_echo "no" >&6; }
6355 rm -f core conftest.err conftest.$ac_objext \
6356 conftest$ac_exeext conftest.$ac_ext
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. */
6364 int f (double (*func)(double)) { return 0;}
6378 if ac_fn_c_try_link "$LINENO"; then :
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6381 $as_echo "yes" >&6; }
6383 $as_echo "#define HAVE_FLOOR 1" >>confdefs.h
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388 $as_echo "no" >&6; }
6390 rm -f core conftest.err conftest.$ac_objext \
6391 conftest$ac_exeext conftest.$ac_ext
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. */
6399 int f (double (*func)(double)) { return 0;}
6413 if ac_fn_c_try_link "$LINENO"; then :
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6416 $as_echo "yes" >&6; }
6418 $as_echo "#define HAVE_CEIL 1" >>confdefs.h
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423 $as_echo "no" >&6; }
6425 rm -f core conftest.err conftest.$ac_objext \
6426 conftest$ac_exeext conftest.$ac_ext
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. */
6434 int f (double (*func)(double)) { return 0;}
6448 if ac_fn_c_try_link "$LINENO"; then :
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6451 $as_echo "yes" >&6; }
6453 $as_echo "#define HAVE_NEARBYINT 1" >>confdefs.h
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458 $as_echo "no" >&6; }
6460 rm -f core conftest.err conftest.$ac_objext \
6461 conftest$ac_exeext conftest.$ac_ext
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 :
6471 cat >>confdefs.h <<_ACEOF
6472 #define HAVE_LONG_DOUBLE 1
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
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"
6487 cat >conftest.c <<\EOF
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. */
6497 { '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
6498 '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
6500 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' }
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
6508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6509 test $ac_status = 0; }; then
6510 cat >conftest.awk <<\EOF
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".
6521 for (f = 2; f <= NF; f++)
6523 # new byte, shift others up
6524 for (i = 31; i >= 0; i--)
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
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" && \
6548 saw = " (" got[15] \
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" && \
6566 print "IEEE double, big endian"
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" && \
6580 print "IEEE double, little endian"
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" && \
6596 saw = " (" got[19] \
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" && \
6620 print "IEEE extended, little endian"
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" && \
6638 # format found on m68k
6639 print "IEEE extended, big endian"
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" && \
6655 saw = " (" got[23] \
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" && \
6683 print "IEEE extended, little endian"
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" && \
6705 # format used on HP 9000/785 under HP-UX
6706 print "IEEE quad, big endian"
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" && \
6728 print "IEEE quad, little endian"
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" && \
6750 # format used on 32-bit PowerPC (Mac OS X and Debian GNU/Linux)
6751 print "possibly double-double, big endian"
6761 print "unknown", saw
6765 mpfr_cv_c_long_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
6766 case $mpfr_cv_c_long_double_format in
6768 echo "cannot match anything, conftest.$OBJEXT contains" >&5
6769 od -b conftest.$OBJEXT >&5
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;}
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; }
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
6790 "IEEE quad, big endian")
6791 $as_echo "#define HAVE_LDOUBLE_IEEE_QUAD_BIG 1" >>confdefs.h
6794 "IEEE quad, little endian")
6795 $as_echo "#define HAVE_LDOUBLE_IEEE_QUAD_LITTLE 1" >>confdefs.h
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.
6807 unknown* | "not available")
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;}
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
6820 enable_thread_safe=no
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; }
6834 $as_echo "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test, assume no" >&5
6838 $as_echo "cannot test, assume no" >&6; }
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6845 #define MPFR_USE_THREAD_SAFE 1
6846 #include "mpfr-thread.h"
6847 MPFR_THREAD_ATTR int x = 17;
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; }
6857 $as_echo "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h
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
6868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6869 conftest.$ac_objext conftest.beam conftest.$ac_ext
6872 CPPFLAGS="$saved_CPPFLAGS"
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.
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
6887 ac_func_search_save_LIBS=$LIBS
6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
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. */
6897 char clock_gettime ();
6901 return clock_gettime ();
6906 for ac_lib in '' rt; do
6907 if test -z "$ac_lib"; then
6908 ac_res="none required"
6911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6913 if ac_fn_c_try_link "$LINENO"; then :
6914 ac_cv_search_clock_gettime=$ac_res
6916 rm -f core conftest.err conftest.$ac_objext \
6918 if ${ac_cv_search_clock_gettime+:} false; then :
6922 if ${ac_cv_search_clock_gettime+:} false; then :
6925 ac_cv_search_clock_gettime=no
6928 LIBS=$ac_func_search_save_LIBS
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"
6937 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
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. */
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; }
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
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6968 enable_win32_dll=yes
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
6980 if test -n "$AS"; then
6981 ac_cv_prog_AS="$AS" # Let the user override the test.
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
7001 if test -n "$AS"; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7003 $as_echo "$AS" >&6; }
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006 $as_echo "no" >&6; }
7011 if test -z "$ac_cv_prog_AS"; then
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
7020 if test -n "$ac_ct_AS"; then
7021 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046 $as_echo "no" >&6; }
7049 if test "x$ac_ct_AS" = x; then
7052 case $cross_compiling:$ac_tool_warned in
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 ;;
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
7072 if test -n "$DLLTOOL"; then
7073 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098 $as_echo "no" >&6; }
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
7112 if test -n "$ac_ct_DLLTOOL"; then
7113 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138 $as_echo "no" >&6; }
7141 if test "x$ac_ct_DLLTOOL" = x; then
7144 case $cross_compiling:$ac_tool_warned in
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 ;;
7150 DLLTOOL=$ac_ct_DLLTOOL
7153 DLLTOOL="$ac_cv_prog_DLLTOOL"
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
7164 if test -n "$OBJDUMP"; then
7165 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
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
7204 if test -n "$ac_ct_OBJDUMP"; then
7205 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7233 if test "x$ac_ct_OBJDUMP" = x; then
7236 case $cross_compiling:$ac_tool_warned in
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 ;;
7242 OBJDUMP=$ac_ct_OBJDUMP
7245 OBJDUMP="$ac_cv_prog_OBJDUMP"
7251 test -z "$AS" && AS=as
7257 test -z "$DLLTOOL" && DLLTOOL=dlltool
7263 test -z "$OBJDUMP" && OBJDUMP=objdump
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. */
7283 #if !__GMP_LIBGMP_DLL
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; }
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
7305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7311 #if __GMP_LIBGMP_DLL
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; }
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
7333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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;} ;;
7345 macro_version='2.4.2'
7346 macro_revision='1.3337'
7360 ltmain="$ac_aux_dir/ltmain.sh"
7362 # Backslashify metacharacters that are still active within
7363 # double-quoted strings.
7364 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7366 # Same as above, but do not quote variable references.
7367 double_quote_subst='s/\(["`\\]\)/\\\1/g'
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'
7373 # Sed substitution to delay expansion of an escaped single quote.
7374 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7376 # Sed substitution to avoid accidental globbing in evaled expressions
7377 no_glob_subst='s/\*/\\\*/g'
7379 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7380 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7381 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
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
7389 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7392 # Use this function as a fallback that always works.
7393 func_fallback_echo ()
7395 eval 'cat <<_LTECHO_EOF
7399 ECHO='func_fallback_echo'
7402 # func_echo_all arg...
7403 # Invoke $ECHO with all args, space-separated.
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; } ;;
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
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"
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
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
7458 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7461 $as_echo_n 0123456789 >"conftest.in"
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
7476 # 10*(2^10) chars as input seems more than enough
7477 test $ac_count -gt 10 && break
7479 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7482 $ac_path_SED_found && break 3
7487 if test -z "$ac_cv_path_SED"; then
7488 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
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"
7500 test -z "$SED" && SED=sed
7501 Xsed="$SED -e 1s/^X//"
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
7518 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7519 then ac_cv_path_FGREP="$GREP -F"
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
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
7537 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7540 $as_echo_n 0123456789 >"conftest.in"
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
7555 # 10*(2^10) chars as input seems more than enough
7556 test $ac_count -gt 10 && break
7558 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7561 $ac_path_FGREP_found && break 3
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
7570 ac_cv_path_FGREP=$FGREP
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"
7580 test -z "$GREP" && GREP=grep
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
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; }
7614 # gcc leaves a trailing carriage return which upsets mingw
7615 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7617 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7620 # Accept absolute paths.
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%/%"`
7628 test -z "$LD" && LD="$ac_prog"
7631 # If it fails, then pretend we aren't using GCC.
7635 # If it is relative, then search for the first ld in PATH.
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; }
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7644 $as_echo_n "checking for non-GNU ld... " >&6; }
7646 if ${lt_cv_path_LD+:} false; then :
7647 $as_echo_n "(cached) " >&6
7649 if test -z "$LD"; then
7650 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7651 for ac_dir in $PATH; do
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
7664 test "$with_gnu_ld" != yes && break
7671 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7676 if test -n "$LD"; then
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7678 $as_echo "$LD" >&6; }
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681 $as_echo "no" >&6; }
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
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
7695 lt_cv_prog_gnu_ld=no
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
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
7716 if test -n "$NM"; then
7717 # Let the user override the test.
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"
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
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"
7741 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7743 lt_cv_path_NM="$tmp_nm -p"
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
7757 : ${lt_cv_path_NM=no}
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
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.
7769 if test -n "$ac_tool_prefix"; then
7770 for ac_prog in dumpbin "link -dump"
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
7779 if test -n "$DUMPBIN"; then
7780 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7809 test -n "$DUMPBIN" && break
7812 if test -z "$DUMPBIN"; then
7813 ac_ct_DUMPBIN=$DUMPBIN
7814 for ac_prog in dumpbin "link -dump"
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
7823 if test -n "$ac_ct_DUMPBIN"; then
7824 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 $as_echo "no" >&6; }
7853 test -n "$ac_ct_DUMPBIN" && break
7856 if test "x$ac_ct_DUMPBIN" = x; then
7859 case $cross_compiling:$ac_tool_warned in
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 ;;
7865 DUMPBIN=$ac_ct_DUMPBIN
7869 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7871 DUMPBIN="$DUMPBIN -symbols"
7879 if test "$DUMPBIN" != ":"; then
7883 test -z "$NM" && NM=nm
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
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"
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7911 $as_echo "$lt_cv_nm_interface" >&6; }
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7914 $as_echo_n "checking whether ln -s works... " >&6; }
7916 if test "$LN_S" = "ln -s"; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7918 $as_echo "yes" >&6; }
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7921 $as_echo "no, using $LN_S" >&6; }
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
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
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;
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;
7961 # On MiNT this can take a long time and run out of memory.
7962 lt_cv_sys_max_cmd_len=8192;
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;
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`
7978 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
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`
7986 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7987 lt_cv_sys_max_cmd_len=196608
7991 # The test takes a long time on OS/2.
7992 lt_cv_sys_max_cmd_len=8192
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
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 ;;
8009 lt_cv_sys_max_cmd_len=102400
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/.*[ ]//'`
8016 lt_cv_sys_max_cmd_len=32768
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`
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
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
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
8040 teststring=$teststring$teststring
8042 # Only check the string length outside the loop.
8043 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
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`
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; }
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8060 $as_echo "none" >&6; }
8062 max_cmd_len=$lt_cv_sys_max_cmd_len
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
8078 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8080 && eval 'test $(( 1 + 1 )) -eq 2 \
8081 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8084 $as_echo "$xsi_shell" >&6; }
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8088 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8090 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
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; }
8097 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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'
8114 *) # EBCDIC based system
8115 lt_SP2NL='tr \100 \n'
8116 lt_NL2SP='tr \r\n \100\100'
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
8136 *-*-mingw* ) # actually msys
8137 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8140 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8142 * ) # otherwise, assume *nix
8143 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8149 *-*-mingw* ) # actually msys
8150 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8153 lt_cv_to_host_file_cmd=func_convert_file_noop
8155 * ) # otherwise, assume *nix
8156 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8160 * ) # unhandled hosts (and "normal" native builds)
8161 lt_cv_to_host_file_cmd=func_convert_file_noop
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; }
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
8180 #assume ordinary cross tools, or native build.
8181 lt_cv_to_tool_file_cmd=func_convert_file_noop
8185 *-*-mingw* ) # actually msys
8186 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
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; }
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
8207 lt_cv_ld_reload_flag='-r'
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
8214 *) reload_flag=" $reload_flag" ;;
8216 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8218 cygwin* | mingw* | pw32* | cegcc*)
8219 if test "$GCC" != yes; then
8224 if test "$GCC" = yes; then
8225 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8227 reload_cmds='$LD$reload_flag -o $output$reload_objs'
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
8248 if test -n "$OBJDUMP"; then
8249 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
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
8288 if test -n "$ac_ct_OBJDUMP"; then
8289 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314 $as_echo "no" >&6; }
8317 if test "x$ac_ct_OBJDUMP" = x; then
8320 case $cross_compiling:$ac_tool_warned in
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 ;;
8326 OBJDUMP=$ac_ct_OBJDUMP
8329 OBJDUMP="$ac_cv_prog_OBJDUMP"
8332 test -z "$OBJDUMP" && OBJDUMP=objdump
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
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.
8360 lt_cv_deplibs_check_method=pass_all
8364 lt_cv_deplibs_check_method=pass_all
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
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'
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'
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'
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'
8400 darwin* | rhapsody*)
8401 lt_cv_deplibs_check_method=pass_all
8404 freebsd* | dragonfly*)
8405 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
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.*`
8416 lt_cv_deplibs_check_method=pass_all
8421 lt_cv_deplibs_check_method=pass_all
8424 hpux10.20* | hpux11*)
8425 lt_cv_file_magic_cmd=/usr/bin/file
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
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
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
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)$'
8447 irix5* | irix6* | nonstopux*)
8449 *-32|*"-32 ") libmagic=32-bit;;
8450 *-n32|*"-n32 ") libmagic=N32;;
8451 *-64|*"-64 ") libmagic=64-bit;;
8452 *) libmagic=never-match;;
8454 lt_cv_deplibs_check_method=pass_all
8457 # This must be glibc/ELF.
8458 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8459 lt_cv_deplibs_check_method=pass_all
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)$'
8466 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
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
8477 lt_cv_deplibs_check_method=pass_all
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)$'
8484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8488 osf3* | osf4* | osf5*)
8489 lt_cv_deplibs_check_method=pass_all
8493 lt_cv_deplibs_check_method=pass_all
8497 lt_cv_deplibs_check_method=pass_all
8500 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8501 lt_cv_deplibs_check_method=pass_all
8505 case $host_vendor in
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*`
8511 lt_cv_deplibs_check_method=pass_all
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 )'
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
8523 lt_cv_deplibs_check_method=pass_all
8526 lt_cv_deplibs_check_method=pass_all
8532 lt_cv_deplibs_check_method=pass_all
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8538 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8542 if test "$build" = "$host"; then
8545 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8548 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
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
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
8587 if test -n "$DLLTOOL"; then
8588 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
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
8627 if test -n "$ac_ct_DLLTOOL"; then
8628 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653 $as_echo "no" >&6; }
8656 if test "x$ac_ct_DLLTOOL" = x; then
8659 case $cross_compiling:$ac_tool_warned in
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 ;;
8665 DLLTOOL=$ac_ct_DLLTOOL
8668 DLLTOOL="$ac_cv_prog_DLLTOOL"
8671 test -z "$DLLTOOL" && DLLTOOL=dlltool
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
8684 lt_cv_sharedlib_from_linklib_cmd='unknown'
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
8695 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8700 # fallback: assume linklib IS sharedlib
8701 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
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
8717 if test -n "$ac_tool_prefix"; then
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
8727 if test -n "$AR"; then
8728 ac_cv_prog_AR="$AR" # Let the user override the test.
8730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
8748 if test -n "$AR"; then
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8750 $as_echo "$AR" >&6; }
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8753 $as_echo "no" >&6; }
8757 test -n "$AR" && break
8760 if test -z "$AR"; then
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
8771 if test -n "$ac_ct_AR"; then
8772 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797 $as_echo "no" >&6; }
8801 test -n "$ac_ct_AR" && break
8804 if test "x$ac_ct_AR" = x; then
8807 case $cross_compiling:$ac_tool_warned in
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 ;;
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
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
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
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
8861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8862 test $ac_status = 0; }
8863 if test "$ac_status" -ne 0; then
8867 rm -f conftest.* libconftest.a
8870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8874 $as_echo "$lt_cv_ar_at_file" >&6; }
8876 if test "x$lt_cv_ar_at_file" = xno; then
8879 archiver_list_spec=$lt_cv_ar_at_file
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
8896 if test -n "$STRIP"; then
8897 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8922 $as_echo "no" >&6; }
8927 if test -z "$ac_cv_prog_STRIP"; then
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
8936 if test -n "$ac_ct_STRIP"; then
8937 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8962 $as_echo "no" >&6; }
8965 if test "x$ac_ct_STRIP" = x; then
8968 case $cross_compiling:$ac_tool_warned in
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 ;;
8977 STRIP="$ac_cv_prog_STRIP"
8980 test -z "$STRIP" && STRIP=:
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
8995 if test -n "$RANLIB"; then
8996 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9021 $as_echo "no" >&6; }
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
9035 if test -n "$ac_ct_RANLIB"; then
9036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061 $as_echo "no" >&6; }
9064 if test "x$ac_ct_RANLIB" = x; then
9067 case $cross_compiling:$ac_tool_warned in
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 ;;
9073 RANLIB=$ac_ct_RANLIB
9076 RANLIB="$ac_cv_prog_RANLIB"
9079 test -z "$RANLIB" && RANLIB=:
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=
9091 if test -n "$RANLIB"; then
9094 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9097 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9100 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9105 lock_old_archive_extraction=yes ;;
9107 lock_old_archive_extraction=no ;;
9148 # If no C compiler was specified, use CC.
9151 # If no C compiler flags were specified, use CFLAGS.
9152 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9154 # Allow CC to be a program name with arguments.
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
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?!! ;)]
9168 # Character class describing NM global symbol codes.
9169 symcode='[BCDEGRST]'
9171 # Regexp to match symbols that can be accessed directly from C.
9172 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9174 # Define system-specific variables.
9179 cygwin* | mingw* | pw32* | cegcc*)
9180 symcode='[ABCDGISTW]'
9183 if test "$host_cpu" = ia64; then
9184 symcode='[ABCDEGRST]'
9188 symcode='[BCDEGRST]'
9191 symcode='[BCDEGQRST]'
9202 sysv5* | sco5v6* | unixware* | OpenUNIX*)
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]' ;;
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'"
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'"
9225 # Handle CRLF in mingw tool chain
9229 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9233 # Try without a prefix underscore, then with it.
9234 for ac_symprfx in "" "_"; do
9236 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9237 symxfrm="\\1 $ac_symprfx\\2 \\2"
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"
9258 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9260 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9262 # Check to see that the pipe works correctly.
9266 cat > conftest.$ac_ext <<_LT_EOF
9271 void nm_test_func(void);
9272 void nm_test_func(void){}
9276 int main(){nm_test_var='a';nm_test_func();return(0);}
9279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9280 (eval $ac_compile) 2>&5
9282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9283 test $ac_status = 0; }; then
9284 # Now try to grab the symbols.
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
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"
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
9311 # define LT_DLSYM_CONST const
9319 # Now generate the symbol file.
9320 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9322 cat <<_LT_EOF >> conftest.$ac_ext
9324 /* The mapping between symbol names and symbols. */
9325 LT_DLSYM_CONST struct {
9329 lt__PROGRAM__LTX_preloaded_symbols[] =
9331 { "@PROGRAM@", (void *) 0 },
9333 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9334 cat <<\_LT_EOF >> conftest.$ac_ext
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;
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
9358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9359 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9362 LIBS=$lt_globsym_save_LIBS
9363 CFLAGS=$lt_globsym_save_CFLAGS
9365 echo "cannot find nm_test_func in $nlist" >&5
9368 echo "cannot find nm_test_var in $nlist" >&5
9371 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9374 echo "$progname: failed program was:" >&5
9375 cat conftest.$ac_ext >&5
9377 rm -rf conftest* conftst*
9379 # Do not use the global_symbol_pipe unless it works.
9380 if test "$pipe_works" = yes; then
9383 lt_cv_sys_global_symbol_pipe=
9389 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9390 lt_cv_sys_global_symbol_to_cdecl=
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; }
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9397 $as_echo "ok" >&6; }
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='@'
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9434 $as_echo_n "checking for sysroot... " >&6; }
9436 # Check whether --with-sysroot was given.
9437 if test "${with_sysroot+set}" = set; then :
9438 withval=$with_sysroot;
9445 case ${with_sysroot} in #(
9447 if test "$GCC" = yes; then
9448 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9452 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
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
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9464 $as_echo "${lt_sysroot:-no}" >&6; }
9470 # Check whether --enable-libtool-lock was given.
9471 if test "${enable_libtool_lock+set}" = set; then :
9472 enableval=$enable_libtool_lock;
9475 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9477 # Some flags need to be propagated to the compiler or linker for good
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
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
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
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
9510 LD="${LD-ld} -melf32bsmip"
9513 LD="${LD-ld} -melf32bmipn32"
9516 LD="${LD-ld} -melf64bmip"
9520 case `/usr/bin/file conftest.$ac_objext` in
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
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
9548 x86_64-*kfreebsd*-gnu)
9549 LD="${LD-ld} -m elf_i386_fbsd"
9552 case `/usr/bin/file conftest.o` in
9554 LD="${LD-ld} -m elf32_x86_64"
9557 LD="${LD-ld} -m elf_i386"
9561 ppc64-*linux*|powerpc64-*linux*)
9562 LD="${LD-ld} -m elf32ppclinux"
9565 LD="${LD-ld} -m elf_s390"
9568 LD="${LD-ld} -m elf32_sparc"
9574 x86_64-*kfreebsd*-gnu)
9575 LD="${LD-ld} -m elf_x86_64_fbsd"
9578 LD="${LD-ld} -m elf_x86_64"
9580 ppc*-*linux*|powerpc*-*linux*)
9581 LD="${LD-ld} -m elf64ppc"
9583 s390*-*linux*|s390*-*tpf*)
9584 LD="${LD-ld} -m elf64_s390"
9587 LD="${LD-ld} -m elf64_sparc"
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
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
9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612 /* end confdefs.h. */
9622 if ac_fn_c_try_link "$LINENO"; then :
9623 lt_cv_cc_needs_belf=yes
9625 lt_cv_cc_needs_belf=no
9627 rm -f core conftest.err conftest.$ac_objext \
9628 conftest$ac_exeext conftest.$ac_ext
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
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"
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
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
9653 case $lt_cv_prog_gnu_ld in
9657 LD="${LD-ld} -m elf_x86_64"
9660 LD="${LD-ld} -m elf64_sparc"
9663 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9664 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9669 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9681 need_locks="$enable_libtool_lock"
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
9691 if test -n "$MANIFEST_TOOL"; then
9692 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9717 $as_echo "no" >&6; }
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
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.
9734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9757 $as_echo "no" >&6; }
9760 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9763 case $cross_compiling:$ac_tool_warned in
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 ;;
9769 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9772 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
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
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
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
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
9811 if test -n "$DSYMUTIL"; then
9812 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9837 $as_echo "no" >&6; }
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
9851 if test -n "$ac_ct_DSYMUTIL"; then
9852 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9877 $as_echo "no" >&6; }
9880 if test "x$ac_ct_DSYMUTIL" = x; then
9883 case $cross_compiling:$ac_tool_warned in
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 ;;
9889 DSYMUTIL=$ac_ct_DSYMUTIL
9892 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
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
9903 if test -n "$NMEDIT"; then
9904 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9929 $as_echo "no" >&6; }
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
9943 if test -n "$ac_ct_NMEDIT"; then
9944 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9969 $as_echo "no" >&6; }
9972 if test "x$ac_ct_NMEDIT" = x; then
9975 case $cross_compiling:$ac_tool_warned in
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 ;;
9981 NMEDIT=$ac_ct_NMEDIT
9984 NMEDIT="$ac_cv_prog_NMEDIT"
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
9995 if test -n "$LIPO"; then
9996 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021 $as_echo "no" >&6; }
10026 if test -z "$ac_cv_prog_LIPO"; then
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
10035 if test -n "$ac_ct_LIPO"; then
10036 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10039 for as_dir in $PATH
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
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; }
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10061 $as_echo "no" >&6; }
10064 if test "x$ac_ct_LIPO" = x; then
10067 case $cross_compiling:$ac_tool_warned in
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 ;;
10076 LIPO="$ac_cv_prog_LIPO"
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
10087 if test -n "$OTOOL"; then
10088 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091 for as_dir in $PATH
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
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; }
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10113 $as_echo "no" >&6; }
10118 if test -z "$ac_cv_prog_OTOOL"; then
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
10127 if test -n "$ac_ct_OTOOL"; then
10128 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10131 for as_dir in $PATH
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
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; }
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10153 $as_echo "no" >&6; }
10156 if test "x$ac_ct_OTOOL" = x; then
10159 case $cross_compiling:$ac_tool_warned in
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 ;;
10168 OTOOL="$ac_cv_prog_OTOOL"
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
10179 if test -n "$OTOOL64"; then
10180 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10183 for as_dir in $PATH
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
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; }
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10205 $as_echo "no" >&6; }
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
10219 if test -n "$ac_ct_OTOOL64"; then
10220 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10223 for as_dir in $PATH
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
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; }
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245 $as_echo "no" >&6; }
10248 if test "x$ac_ct_OTOOL64" = x; then
10251 case $cross_compiling:$ac_tool_warned in
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 ;;
10257 OTOOL64=$ac_ct_OTOOL64
10260 OTOOL64="$ac_cv_prog_OTOOL64"
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
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
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
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
10316 cat conftest.err >&5
10318 rm -rf libconftest.dylib*
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; }
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
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. */
10345 if ac_fn_c_try_link "$LINENO"; then :
10346 lt_cv_ld_exported_symbols_list=yes
10348 lt_cv_ld_exported_symbols_list=no
10350 rm -f core conftest.err conftest.$ac_objext \
10351 conftest$ac_exeext conftest.$ac_ext
10352 LDFLAGS="$save_LDFLAGS"
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; }
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
10363 lt_cv_ld_force_load=no
10364 cat > conftest.c << _LT_EOF
10365 int forced_loaded() { return 2;}
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;}
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
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
10384 cat conftest.err >&5
10386 rm -f conftest.err libconftest.a conftest conftest.c
10387 rm -rf conftest.dSYM
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10391 $as_echo "$lt_cv_ld_force_load" >&6; }
10393 rhapsody* | darwin1.[012])
10394 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
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' ;;
10405 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10407 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10411 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10412 _lt_dar_single_mod='$single_module'
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'
10417 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10419 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10420 _lt_dsymutil='~$DSYMUTIL $lib || :'
10427 for ac_header in dlfcn.h
10429 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10431 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10432 cat >>confdefs.h <<_ACEOF
10433 #define HAVE_DLFCN_H 1
10452 # Check whether --enable-shared was given.
10453 if test "${enable_shared+set}" = set; then :
10454 enableval=$enable_shared; p=${PACKAGE-default}
10456 yes) enable_shared=yes ;;
10457 no) 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
10464 if test "X$pkg" = "X$p"; then
10483 # Check whether --enable-static was given.
10484 if test "${enable_static+set}" = set; then :
10485 enableval=$enable_static; p=${PACKAGE-default}
10487 yes) enable_static=yes ;;
10488 no) 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
10495 if test "X$pkg" = "X$p"; then
10515 # Check whether --with-pic was given.
10516 if test "${with_pic+set}" = set; then :
10517 withval=$with_pic; lt_p=${PACKAGE-default}
10519 yes|no) pic_mode=$withval ;;
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
10526 if test "X$lt_pkg" = "X$lt_p"; then
10538 test -z "$pic_mode" && pic_mode=default
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}
10550 yes) enable_fast_install=yes ;;
10551 no) enable_fast_install=no ;;
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
10558 if test "X$pkg" = "X$p"; then
10559 enable_fast_install=yes
10566 enable_fast_install=yes
10579 # This can be used to rebuild libtool when needed
10580 LIBTOOL_DEPS="$ltmain"
10582 # Always use our own libtool.
10583 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10614 test -z "$LN_S" && LN_S="ln -s"
10629 if test -n "${ZSH_VERSION+set}" ; then
10630 setopt NO_GLOB_SUBST
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
10638 rm -f .libs 2>/dev/null
10639 mkdir .libs 2>/dev/null
10640 if test -d .libs; then
10643 # MS-DOS does not allow filenames that begin with a dot.
10646 rmdir .libs 2>/dev/null
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
10656 cat >>confdefs.h <<_ACEOF
10657 #define LT_OBJDIR "$lt_cv_objdir/"
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
10670 export COLLECT_NAMES
10675 # Global variables:
10677 can_build_shared=yes
10679 # All known linkers require a `.a' archive for static linking (except MSVC,
10680 # which needs '.lib').
10683 with_gnu_ld="$lt_cv_prog_gnu_ld"
10686 old_CFLAGS="$CFLAGS"
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
10695 for cc_temp in $compiler""; do
10697 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10698 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10703 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
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
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
10718 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
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
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
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
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
10757 MAGIC_CMD="$lt_save_MAGIC_CMD"
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; }
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10768 $as_echo "no" >&6; }
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
10784 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
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
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
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
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
10823 MAGIC_CMD="$lt_save_MAGIC_CMD"
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; }
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10834 $as_echo "no" >&6; }
10847 # Use C for the default configuration in the libtool script
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
10857 # Source file extension for C test sources.
10860 # Object file extension for compiled C test sources.
10864 # Code to be used in simple compile tests
10865 lt_simple_compile_test_code="int some_variable = 0;"
10867 # Code to be used in simple link tests
10868 lt_simple_link_test_code='int main(){return(0);}'
10876 # If no C compiler was specified, use CC.
10879 # If no C compiler flags were specified, use CFLAGS.
10880 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10882 # Allow CC to be a program name with arguments.
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
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`
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`
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
10909 lt_prog_compiler_no_builtin_flag=
10911 if test "$GCC" = yes; then
10912 case $cc_basename in
10914 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10916 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
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
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)
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
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; }
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"
10970 lt_prog_compiler_wl=
10971 lt_prog_compiler_pic=
10972 lt_prog_compiler_static=
10975 if test "$GCC" = yes; then
10976 lt_prog_compiler_wl='-Wl,'
10977 lt_prog_compiler_static='-static'
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'
10991 # see comment about AmigaOS4 .so support
10992 lt_prog_compiler_pic='-fPIC'
10995 # FIXME: we need at least 68020 code to build shared libraries, but
10996 # adding the `-m68020' flag to GCC prevents building anything better,
10998 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11003 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11004 # PIC is the default for these OSes.
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'
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'
11022 # PIC is the default for Haiku.
11023 # The "-static" flag exists, but is broken.
11024 lt_prog_compiler_static=
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.
11036 lt_prog_compiler_pic='-fPIC'
11042 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11043 # Instead, we relocate shared libraries at runtime.
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
11054 # QNX uses GNU C++, but need to define -shared option too, otherwise
11055 # it will coredump.
11056 lt_prog_compiler_pic='-fPIC -shared'
11060 if test -d /usr/nec; then
11061 lt_prog_compiler_pic=-Kconform_pic
11066 lt_prog_compiler_pic='-fPIC'
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"
11079 # PORTME Check for flag to pass linker flags through the system compiler.
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'
11087 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
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'
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.
11106 lt_prog_compiler_pic='+Z'
11109 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11110 lt_prog_compiler_static='${wl}-a ${wl}archive'
11113 irix5* | irix6* | nonstopux*)
11114 lt_prog_compiler_wl='-Wl,'
11115 # PIC (with -KPIC) is the default.
11116 lt_prog_compiler_static='-non_shared'
11119 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11120 case $cc_basename in
11121 # old Intel for x86_64 which still supported -KPIC.
11123 lt_prog_compiler_wl='-Wl,'
11124 lt_prog_compiler_pic='-KPIC'
11125 lt_prog_compiler_static='-static'
11127 # icc used to be incompatible with GCC.
11128 # ICC 10 doesn't accept -KPIC any more.
11130 lt_prog_compiler_wl='-Wl,'
11131 lt_prog_compiler_pic='-fPIC'
11132 lt_prog_compiler_static='-static'
11134 # Lahey Fortran 8.1.
11136 lt_prog_compiler_wl='-Wl,'
11137 lt_prog_compiler_pic='--shared'
11138 lt_prog_compiler_static='--static'
11141 # NAG Fortran compiler
11142 lt_prog_compiler_wl='-Wl,-Wl,,'
11143 lt_prog_compiler_pic='-PIC'
11144 lt_prog_compiler_static='-Bstatic'
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'
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'
11162 lt_prog_compiler_wl='-Wl,'
11163 # All Alpha code is PIC.
11164 lt_prog_compiler_static='-non_shared'
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'
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=''
11180 *Sun\ F* | *Sun*Fortran*)
11181 lt_prog_compiler_pic='-KPIC'
11182 lt_prog_compiler_static='-Bstatic'
11183 lt_prog_compiler_wl='-Qoption ld '
11187 lt_prog_compiler_pic='-KPIC'
11188 lt_prog_compiler_static='-Bstatic'
11189 lt_prog_compiler_wl='-Wl,'
11191 *Intel*\ [CF]*Compiler*)
11192 lt_prog_compiler_wl='-Wl,'
11193 lt_prog_compiler_pic='-fPIC'
11194 lt_prog_compiler_static='-static'
11197 lt_prog_compiler_wl='-Wl,'
11198 lt_prog_compiler_pic='-fpic'
11199 lt_prog_compiler_static='-Bstatic'
11207 lt_prog_compiler_pic='-KPIC'
11208 lt_prog_compiler_static='-Bstatic'
11212 # QNX uses GNU C++, but need to define -shared option too, otherwise
11213 # it will coredump.
11214 lt_prog_compiler_pic='-fPIC -shared'
11217 osf3* | osf4* | osf5*)
11218 lt_prog_compiler_wl='-Wl,'
11219 # All OSF/1 code is PIC.
11220 lt_prog_compiler_static='-non_shared'
11224 lt_prog_compiler_static='-non_shared'
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 ';;
11234 lt_prog_compiler_wl='-Wl,';;
11239 lt_prog_compiler_wl='-Qoption ld '
11240 lt_prog_compiler_pic='-PIC'
11241 lt_prog_compiler_static='-Bstatic'
11244 sysv4 | sysv4.2uw2* | sysv4.3*)
11245 lt_prog_compiler_wl='-Wl,'
11246 lt_prog_compiler_pic='-KPIC'
11247 lt_prog_compiler_static='-Bstatic'
11251 if test -d /usr/nec ;then
11252 lt_prog_compiler_pic='-Kconform_pic'
11253 lt_prog_compiler_static='-Bstatic'
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'
11264 lt_prog_compiler_wl='-Wl,'
11265 lt_prog_compiler_can_build_shared=no
11269 lt_prog_compiler_pic='-pic'
11270 lt_prog_compiler_static='-Bstatic'
11274 lt_prog_compiler_can_build_shared=no
11280 # For platforms which do not support PIC, -DPIC is meaningless:
11282 lt_prog_compiler_pic=
11285 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
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
11294 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
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
11301 # Check to make sure the PIC flag actually works.
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
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)
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
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; }
11342 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11343 case $lt_prog_compiler_pic in
11345 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11348 lt_prog_compiler_pic=
11349 lt_prog_compiler_can_build_shared=no
11365 # Check to make sure the static flag actually works.
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
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
11389 lt_cv_prog_compiler_static_works=yes
11393 LDFLAGS="$save_LDFLAGS"
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; }
11399 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11402 lt_prog_compiler_static=
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
11416 lt_cv_prog_compiler_c_o=no
11417 $RM -r conftest 2>/dev/null
11421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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)
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
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
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
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; }
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
11471 lt_cv_prog_compiler_c_o=no
11472 $RM -r conftest 2>/dev/null
11476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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)
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
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
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
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; }
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; }
11526 ln conftest.a conftest.b 2>/dev/null && hard_links=no
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;}
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; }
11550 allow_undefined_flag=
11551 always_export_symbols=no
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
11560 hardcode_direct_absolute=no
11561 hardcode_libdir_flag_spec=
11562 hardcode_libdir_separator=
11563 hardcode_minus_L=no
11564 hardcode_shlibpath_var=unsupported
11566 link_all_deplibs=unknown
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
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=
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
11599 # we just hope/assume this is gcc and not c89 (= MSVC++)
11605 linux* | k*bsd*-gnu | gnu*)
11606 link_all_deplibs=no
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
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]*) ;;
11627 lt_use_gnu_ld_interface=yes
11632 lt_use_gnu_ld_interface=yes
11637 if test "$lt_use_gnu_ld_interface" = yes; then
11638 # If archive_cmds runs LD, not CC, wlarc should be empty
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'
11651 whole_archive_flag_spec=
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 ;;
11663 # See if GNU ld supports shared libraries.
11666 # On AIX/PPC, the GNU linker is very broken
11667 if test "$host_cpu" != ia64; then
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.
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=''
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
11698 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11699 allow_undefined_flag=unsupported
11700 # Joseph Beckenbach <jrb3@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'
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'
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;
11726 echo EXPORTS > $output_objdir/$soname.def;
11727 cat $export_symbols >> $output_objdir/$soname.def;
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'
11736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11737 link_all_deplibs=yes
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'
11755 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
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)
11762 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11763 && test "$tmp_diet" = no
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'
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'
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
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' ;;
11801 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
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'
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'
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'
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'
11840 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
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.
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'
11860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11861 case `$LD -v 2>&1` in
11862 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
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.
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'
11892 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11894 hardcode_direct=yes
11895 hardcode_shlibpath_var=no
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'
11908 if test "$ld_shlibs" = no; then
11910 hardcode_libdir_flag_spec=
11911 export_dynamic_flag_spec=
11912 whole_archive_flag_spec=
11915 # PORTME fill in a description of your system's linker (not GNU ld)
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
11927 hardcode_direct=unsupported
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'
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'
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'
11948 aix_use_runtimelinking=no
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
11963 exp_sym_flag='-bexport'
11964 no_entry_flag='-bnoentry'
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.
11974 hardcode_direct=yes
11975 hardcode_direct_absolute=yes
11976 hardcode_libdir_separator=':'
11977 link_all_deplibs=yes
11978 file_list_spec='${wl}-f,'
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
11988 # We have reworked collect2
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=
12002 shared_flag='-shared'
12003 if test "$aix_use_runtimelinking" = yes; then
12004 shared_flag="$shared_flag "'${wl}-G'
12006 link_all_deplibs=no
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:
12014 if test "$aix_use_runtimelinking" = yes; then
12015 shared_flag='${wl}-G'
12017 shared_flag='${wl}-bM:SRE'
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
12035 if ${lt_cv_aix_libpath_+:} false; then :
12036 $as_echo_n "(cached) " >&6
12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12049 if ac_fn_c_try_link "$LINENO"; then :
12051 lt_aix_libpath_sed='
12052 /Import File Strings/,/^$/ {
12054 s/^0 *\([^ ]*\) *$/\1/
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"`
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"
12072 aix_libpath=$lt_cv_aix_libpath_
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"
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"
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
12088 if ${lt_cv_aix_libpath_+:} false; then :
12089 $as_echo_n "(cached) " >&6
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12102 if ac_fn_c_try_link "$LINENO"; then :
12104 lt_aix_libpath_sed='
12105 /Import File Strings/,/^$/ {
12107 s/^0 *\([^ ]*\) *$/\1/
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"`
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"
12125 aix_libpath=$lt_cv_aix_libpath_
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'
12137 # Exported symbols can be pulled into shared objects from archives
12138 whole_archive_flag_spec='$convenience'
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'
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=''
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
12163 export_dynamic_flag_spec=-rdynamic
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
12174 hardcode_libdir_flag_spec=' '
12175 allow_undefined_flag=unsupported
12176 always_export_symbols=yes
12178 # Tell ltmain to make .lib files, not .a files.
12180 # Tell ltmain to make .dll files, not .so files.
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;
12187 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
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"~
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'
12197 old_postinstall_cmds='chmod 644 $oldlib'
12198 postlink_cmds='lt_outputfile="@OUTPUT@"~
12199 lt_tool_outputfile="@TOOL_OUTPUT@"~
12200 case $lt_outputfile in
12203 lt_outputfile="$lt_outputfile.exe"
12204 lt_tool_outputfile="$lt_tool_outputfile.exe"
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";
12213 # Assume MSVC wrapper
12214 hardcode_libdir_flag_spec=' '
12215 allow_undefined_flag=unsupported
12216 # Tell ltmain to make .lib files, not .a files.
12218 # Tell ltmain to make .dll files, not .so files.
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
12231 darwin* | rhapsody*)
12234 archive_cmds_need_lc=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\"`'
12242 whole_archive_flag_spec=''
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 ;;
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}"
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
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
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
12280 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
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
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
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'
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'
12302 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12303 hardcode_libdir_separator=:
12304 hardcode_direct=yes
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'
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'
12316 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
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
12331 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12334 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12337 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12340 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12346 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12349 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
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
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
12376 lt_cv_prog_compiler__b=yes
12380 LDFLAGS="$save_LDFLAGS"
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12384 $as_echo "$lt_cv_prog_compiler__b" >&6; }
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'
12389 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12395 if test "$with_gnu_ld" = no; then
12396 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12397 hardcode_libdir_separator=:
12402 hardcode_shlibpath_var=no
12405 hardcode_direct=yes
12406 hardcode_direct_absolute=yes
12407 export_dynamic_flag_spec='${wl}-E'
12409 # hardcode_minus_L: Not really in the search PATH,
12410 # but as the default location of the library.
12411 hardcode_minus_L=yes
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
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; }
12435 if ac_fn_c_try_link "$LINENO"; then :
12436 lt_cv_irix_exported_symbol=yes
12438 lt_cv_irix_exported_symbol=no
12440 rm -f core conftest.err conftest.$ac_objext \
12441 conftest$ac_exeext conftest.$ac_ext
12442 LDFLAGS="$save_LDFLAGS"
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'
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'
12453 archive_cmds_need_lc='no'
12454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12455 hardcode_libdir_separator=:
12457 link_all_deplibs=yes
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
12464 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12466 hardcode_libdir_flag_spec='-R$libdir'
12467 hardcode_direct=yes
12468 hardcode_shlibpath_var=no
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
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'
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'
12499 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12500 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
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'
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'
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'
12525 archive_cmds_need_lc='no'
12526 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12527 hardcode_libdir_separator=:
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'
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'
12541 # Both c and cxx compiler support -rpath directly
12542 hardcode_libdir_flag_spec='-rpath $libdir'
12544 archive_cmds_need_lc='no'
12545 hardcode_libdir_separator=:
12549 no_undefined_flag=' -z defs'
12550 if test "$GCC" = yes; then
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'
12556 case `$CC -V 2>&1` in
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'
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'
12571 hardcode_libdir_flag_spec='-R$libdir'
12572 hardcode_shlibpath_var=no
12574 solaris2.[0-5] | solaris2.[0-5].*) ;;
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'
12583 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12587 link_all_deplibs=yes
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'
12596 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12598 hardcode_libdir_flag_spec='-L$libdir'
12599 hardcode_direct=yes
12600 hardcode_minus_L=yes
12601 hardcode_shlibpath_var=no
12605 case $host_vendor in
12607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12608 hardcode_direct=yes # is this really true???
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'
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
12622 runpath_var='LD_RUN_PATH'
12623 hardcode_shlibpath_var=no
12627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12628 hardcode_shlibpath_var=no
12629 export_dynamic_flag_spec='-Bexport'
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
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'
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'
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'
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
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'
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'
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'
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
12694 if test x$host_vendor = xsni; then
12696 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12697 export_dynamic_flag_spec='${wl}-Blargedynsym'
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
12707 with_gnu_ld=$with_gnu_ld
12724 # Do we need to explicitly link libc?
12726 case "x$archive_cmds_need_lc" in
12728 # Assume -lc should be added
12729 archive_cmds_need_lc=yes
12731 if test "$enable_shared" = yes && test "$GCC" = yes; then
12732 case $archive_cmds in
12734 # FIXME: we may have to deal with multi-command sequences.
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
12746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12749 (eval $ac_compile) 2>&5
12751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12752 test $ac_status = 0; } 2>conftest.err; then
12755 libobjs=conftest.$ac_objext
12757 wl=$lt_prog_compiler_wl
12758 pic_flag=$lt_prog_compiler_pic
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
12769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12770 test $ac_status = 0; }
12772 lt_cv_archive_cmds_need_lc=no
12774 lt_cv_archive_cmds_need_lc=yes
12776 allow_undefined_flag=$lt_save_allow_undefined_flag
12778 cat conftest.err 1>&5
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
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12944 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12946 if test "$GCC" = yes; then
12948 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12949 *) lt_awk_arg="/^libraries:/" ;;
12952 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12953 *) lt_sed_strip_eq="s,=/,/,g" ;;
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
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'`
12965 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
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"
12976 test -d "$lt_sys_path" && \
12977 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12980 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12981 BEGIN {RS=" "; FS="/|\n";} {
12984 for (lt_i = NF; lt_i > 0; lt_i--) {
12985 if ($lt_i != "" && $lt_i != ".") {
12986 if ($lt_i == "..") {
12989 if (lt_count == 0) {
12990 lt_foo="/" $lt_i lt_foo;
12997 if (lt_foo != "") { lt_freq[lt_foo]++; }
12998 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13000 # AWK program above erroneously prepends '/' to C:/dos/paths
13003 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13004 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13006 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13008 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13010 library_names_spec=
13011 libname_spec='lib$name'
13015 postuninstall_cmds=
13019 shlibpath_overrides_runpath=unknown
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
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
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
13036 # AIX 3 has no versioning support, so we append a major version to the name.
13037 soname_spec='${libname}${release}${shared_ext}$major'
13041 version_type=linux # correct to gnu/linux during the next big refactor
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
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.
13056 aix4 | aix4.[01] | aix4.[01].*)
13057 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13059 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13062 can_build_shared=no
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}'
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'
13080 shlibpath_var=LIBPATH
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}'
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'
13100 library_names_spec='${libname}${shared_ext}'
13101 dynamic_linker="$host_os ld.so"
13102 shlibpath_var=LIBRARY_PATH
13106 version_type=linux # correct to gnu/linux during the next big refactor
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
13119 cygwin* | mingw* | pw32* | cegcc*)
13120 version_type=windows
13125 case $GCC,$cc_basename in
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 \$?;
13139 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13140 dlpath=$dir/\$dldll~
13142 shlibpath_overrides_runpath=yes
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}'
13149 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13152 # MinGW DLLs use traditional 'lib' prefix
13153 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
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}'
13160 dynamic_linker='Win32 ld.exe'
13165 libname_spec='$name'
13166 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13167 library_names_spec='${libname}.dll.lib'
13171 sys_lib_search_path_spec=
13174 for lt_path in $LIB
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"
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|^ ||'`
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"`
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'`
13199 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13201 # FIXME: find the short name or the path components, as spaces are
13202 # common. (e.g. "Program Files" -> "PROGRA~1")
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~
13215 shlibpath_overrides_runpath=yes
13216 dynamic_linker='Win32 link.exe'
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'
13225 # FIXME: first we should search . and the directory the executable is in
13229 darwin* | rhapsody*)
13230 dynamic_linker="$host_os dyld"
13231 version_type=darwin
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`'
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'
13245 version_type=linux # correct to gnu/linux during the next big refactor
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
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`
13260 freebsd[23].*) objformat=aout ;;
13261 *) objformat=elf ;;
13264 version_type=freebsd-$objformat
13265 case $version_type in
13267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13272 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13276 shlibpath_var=LD_LIBRARY_PATH
13279 shlibpath_overrides_runpath=yes
13281 freebsd3.[01]* | freebsdelf3.[01]*)
13282 shlibpath_overrides_runpath=yes
13283 hardcode_into_libs=yes
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
13290 *) # from 4.6 on, and DragonFly
13291 shlibpath_overrides_runpath=yes
13292 hardcode_into_libs=yes
13298 version_type=linux # correct to gnu/linux during the next big refactor
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
13310 hpux9* | hpux10* | hpux11*)
13311 # Give a soname corresponding to the major version so that dld.sl refuses to
13312 # link against other versions.
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"
13328 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13330 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
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
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'
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
13359 version_type=linux # correct to gnu/linux during the next big refactor
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
13370 irix5* | irix6* | nonstopux*)
13372 nonstopux*) version_type=nonstopux ;;
13374 if test "$lt_cv_prog_gnu_ld" = yes; then
13375 version_type=linux # correct to gnu/linux during the next big refactor
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}'
13385 irix5* | nonstopux*)
13386 libsuff= shlibsuff=
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;;
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
13407 # No shared lib support for Linux oldld, aout, or coff.
13408 linux*oldld* | linux*aout* | linux*coff*)
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
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
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
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. */
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
13448 rm -f core conftest.err conftest.$ac_objext \
13449 conftest$ac_exeext conftest.$ac_ext
13450 LDFLAGS=$save_LDFLAGS
13451 libdir=$save_libdir
13455 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
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
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"
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'
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'
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'
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'
13502 shlibpath_var=LD_LIBRARY_PATH
13503 shlibpath_overrides_runpath=yes
13504 hardcode_into_libs=yes
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
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'
13528 sys_lib_dlsearch_path_spec="/usr/lib"
13530 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13532 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13533 *) need_version=no ;;
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
13540 openbsd2.[89] | openbsd2.[89].*)
13541 shlibpath_overrides_runpath=no
13544 shlibpath_overrides_runpath=yes
13548 shlibpath_overrides_runpath=yes
13553 libname_spec='$name'
13556 library_names_spec='$libname${shared_ext} $libname.a'
13557 dynamic_linker='OS/2 ld.exe'
13558 shlibpath_var=LIBPATH
13561 osf3* | osf4* | osf5*)
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"
13577 version_type=linux # correct to gnu/linux during the next big refactor
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'
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
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
13608 shlibpath_overrides_runpath=no
13610 runpath_var=LD_RUN_PATH
13618 shlibpath_overrides_runpath=no
13619 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
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
13633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13634 version_type=freebsd-elf
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'
13645 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13648 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13652 sys_lib_dlsearch_path_spec='/usr/lib'
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
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
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
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
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"
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"
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"
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; }
13787 if test -n "$hardcode_libdir_flag_spec" ||
13788 test -n "$runpath_var" ||
13789 test "X$hardcode_automatic" = "Xyes" ; then
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
13801 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13802 hardcode_action=immediate
13805 # We cannot hardcode anything, or else we can only hardcode existing
13807 hardcode_action=unsupported
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13810 $as_echo "$hardcode_action" >&6; }
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
13827 if test "x$enable_dlopen" != xyes; then
13828 enable_dlopen=unknown
13829 enable_dlopen_self=unknown
13830 enable_dlopen_self_static=unknown
13837 lt_cv_dlopen="load_add_on"
13839 lt_cv_dlopen_self=yes
13842 mingw* | pw32* | cegcc*)
13843 lt_cv_dlopen="LoadLibrary"
13848 lt_cv_dlopen="dlopen"
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
13859 ac_check_lib_save_LIBS=$LIBS
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h. */
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. */
13879 if ac_fn_c_try_link "$LINENO"; then :
13880 ac_cv_lib_dl_dlopen=yes
13882 ac_cv_lib_dl_dlopen=no
13884 rm -f core conftest.err conftest.$ac_objext \
13885 conftest$ac_exeext conftest.$ac_ext
13886 LIBS=$ac_check_lib_save_LIBS
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"
13894 lt_cv_dlopen="dyld"
13896 lt_cv_dlopen_self=yes
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"
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
13912 ac_check_lib_save_LIBS=$LIBS
13914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h. */
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. */
13927 return shl_load ();
13932 if ac_fn_c_try_link "$LINENO"; then :
13933 ac_cv_lib_dld_shl_load=yes
13935 ac_cv_lib_dld_shl_load=no
13937 rm -f core conftest.err conftest.$ac_objext \
13938 conftest$ac_exeext conftest.$ac_ext
13939 LIBS=$ac_check_lib_save_LIBS
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"
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"
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
13955 ac_check_lib_save_LIBS=$LIBS
13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
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. */
13975 if ac_fn_c_try_link "$LINENO"; then :
13976 ac_cv_lib_dl_dlopen=yes
13978 ac_cv_lib_dl_dlopen=no
13980 rm -f core conftest.err conftest.$ac_objext \
13981 conftest$ac_exeext conftest.$ac_ext
13982 LIBS=$ac_check_lib_save_LIBS
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"
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
13994 ac_check_lib_save_LIBS=$LIBS
13995 LIBS="-lsvld $LIBS"
13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
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. */
14014 if ac_fn_c_try_link "$LINENO"; then :
14015 ac_cv_lib_svld_dlopen=yes
14017 ac_cv_lib_svld_dlopen=no
14019 rm -f core conftest.err conftest.$ac_objext \
14020 conftest$ac_exeext conftest.$ac_ext
14021 LIBS=$ac_check_lib_save_LIBS
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"
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
14033 ac_check_lib_save_LIBS=$LIBS
14035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14036 /* end confdefs.h. */
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. */
14048 return dld_link ();
14053 if ac_fn_c_try_link "$LINENO"; then :
14054 ac_cv_lib_dld_dld_link=yes
14056 ac_cv_lib_dld_dld_link=no
14058 rm -f core conftest.err conftest.$ac_objext \
14059 conftest$ac_exeext conftest.$ac_ext
14060 LIBS=$ac_check_lib_save_LIBS
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"
14086 if test "x$lt_cv_dlopen" != xno; then
14092 case $lt_cv_dlopen in
14094 save_CPPFLAGS="$CPPFLAGS"
14095 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14097 save_LDFLAGS="$LDFLAGS"
14098 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14101 LIBS="$lt_cv_dlopen_libs $LIBS"
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
14108 if test "$cross_compiling" = yes; then :
14109 lt_cv_dlopen_self=cross
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"
14124 # define LT_DLGLOBAL RTLD_GLOBAL
14127 # define LT_DLGLOBAL DL_GLOBAL
14129 # define LT_DLGLOBAL 0
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
14137 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14140 # define LT_DLLAZY_OR_NOW DL_LAZY
14143 # define LT_DLLAZY_OR_NOW RTLD_NOW
14146 # define LT_DLLAZY_OR_NOW DL_NOW
14148 # define LT_DLLAZY_OR_NOW 0
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")));
14161 int fnord () { return 42; }
14164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14165 int status = $lt_dlunknown;
14169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14172 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14173 else puts (dlerror ());
14175 /* dlclose (self); */
14183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14184 (eval $ac_link) 2>&5
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
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 ;;
14196 # compilation failed
14197 lt_cv_dlopen_self=no
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14205 $as_echo "$lt_cv_dlopen_self" >&6; }
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
14214 if test "$cross_compiling" = yes; then :
14215 lt_cv_dlopen_self_static=cross
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"
14230 # define LT_DLGLOBAL RTLD_GLOBAL
14233 # define LT_DLGLOBAL DL_GLOBAL
14235 # define LT_DLGLOBAL 0
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
14243 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14246 # define LT_DLLAZY_OR_NOW DL_LAZY
14249 # define LT_DLLAZY_OR_NOW RTLD_NOW
14252 # define LT_DLLAZY_OR_NOW DL_NOW
14254 # define LT_DLLAZY_OR_NOW 0
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")));
14267 int fnord () { return 42; }
14270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14271 int status = $lt_dlunknown;
14275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14278 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14279 else puts (dlerror ());
14281 /* dlclose (self); */
14289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14290 (eval $ac_link) 2>&5
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
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 ;;
14302 # compilation failed
14303 lt_cv_dlopen_self_static=no
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14311 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14314 CPPFLAGS="$save_CPPFLAGS"
14315 LDFLAGS="$save_LDFLAGS"
14320 case $lt_cv_dlopen_self in
14321 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14322 *) enable_dlopen_self=unknown ;;
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 ;;
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; }
14357 # FIXME - insert some real tests, host_os isn't really good enough
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; }
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14367 $as_echo "no" >&6; }
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14372 $as_echo "no" >&6; }
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; }
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
14398 # On AIX, shared libraries and static libraries use the same namespace, and
14399 # are all built from PIC.
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'
14410 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14411 test "$enable_shared" = yes && enable_static=no
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14416 $as_echo "$enable_shared" >&6; }
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; }
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
14451 ac_config_commands="$ac_config_commands libtool"
14456 # Only expand once:
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
14467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14468 /* end confdefs.h. */
14469 typedef int SItype __attribute__ ((mode (SI)));
14478 if ac_fn_c_try_compile "$LINENO"; then :
14479 gmp_cv_c_attribute_mode=yes
14481 gmp_cv_c_attribute_mode=no
14483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
14490 $as_echo "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h
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. */
14503 #if (__GNU_MP_VERSION*100+__GNU_MP_VERSION_MINOR*10 < 410)
14504 # error "min GMP version is 4.1.0"
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; }
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
14519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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. */
14528 #include "gmp-impl.h"
14529 #include "longlong.h"
14532 if ac_fn_c_try_compile "$LINENO"; then :
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14535 $as_echo "yes" >&6; }
14537 $as_echo "#define MPFR_HAVE_GMP_IMPL 1" >>confdefs.h
14542 as_fn_error $? "header files gmp-impl.h and longlong.h not found" "$LINENO" 5
14545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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; }
14555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14556 /* end confdefs.h. */
14558 #include <limits.h>
14560 #include "gmp-impl.h"
14566 return GMP_NUMB_BITS == BYTES_PER_MP_LIMB * CHAR_BIT
14567 && sizeof(mp_limb_t) == BYTES_PER_MP_LIMB ? 0 : 1;
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; }
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
14583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14584 conftest.$ac_objext conftest.beam conftest.$ac_ext
14590 if test "$dont_link_with_gmp" = yes ; then
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
14599 ac_check_lib_save_LIBS=$LIBS
14601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14602 /* end confdefs.h. */
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. */
14610 char __gmpz_init ();
14614 return __gmpz_init ();
14619 if ac_fn_c_try_link "$LINENO"; then :
14620 ac_cv_lib_gmp___gmpz_init=yes
14622 ac_cv_lib_gmp___gmpz_init=no
14624 rm -f core conftest.err conftest.$ac_objext \
14625 conftest$ac_exeext conftest.$ac_ext
14626 LIBS=$ac_check_lib_save_LIBS
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 :
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
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"
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; }
14648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649 /* end confdefs.h. */
14652 #include <string.h>
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)
14665 if (__GNU_MP_VERSION_PATCHLEVEL != 0)
14667 sprintf (buffer, "%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR);
14668 return (strcmp (buffer, gmp_version) != 0) ? 1 : 0;
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; }
14678 if test "$ac_cv_type_intmax_t" = yes; then
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; }
14688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689 /* end confdefs.h. */
14693 #ifdef HAVE_INTTYPES_H
14694 # include <inttypes.h>
14696 #ifdef HAVE_STDINT_H
14697 # include <stdint.h>
14709 if (gmp_sprintf (s, "(%0.0jd)(%d)", a, 42) == -1) return 1;
14710 return (strcmp (s, "(17)(42)") != 0);
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; }
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14722 $as_echo "no" >&6; }
14724 $as_echo "#define NPRINTF_J 1" >>confdefs.h
14727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14728 conftest.$ac_objext conftest.beam conftest.$ac_ext
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; }
14743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14744 /* end confdefs.h. */
14759 if (gmp_sprintf (s, "(%0.0hhd)(%d)", a, 42) == -1) return 1;
14760 return (strcmp (s, "(17)(42)") != 0);
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; }
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14772 $as_echo "no" >&6; }
14774 $as_echo "#define NPRINTF_HH 1" >>confdefs.h
14777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14778 conftest.$ac_objext conftest.beam conftest.$ac_ext
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; }
14792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793 /* end confdefs.h. */
14806 long long int a = 17;
14808 if (gmp_sprintf (s, "(%0.0lld)(%d)", a, 42) == -1) return 1;
14809 return (strcmp (s, "(17)(42)") != 0);
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; }
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14821 $as_echo "no" >&6; }
14823 $as_echo "#define NPRINTF_LL 1" >>confdefs.h
14826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14827 conftest.$ac_objext conftest.beam conftest.$ac_ext
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; }
14841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14842 /* end confdefs.h. */
14855 long double a = 17;
14857 if (gmp_sprintf (s, "(%0.0Lf)(%d)", a, 42) == -1) return 1;
14858 return (strcmp (s, "(17)(42)") != 0);
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; }
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14870 $as_echo "no" >&6; }
14872 $as_echo "#define NPRINTF_L 1" >>confdefs.h
14875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14876 conftest.$ac_objext conftest.beam conftest.$ac_ext
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; }
14890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14891 /* end confdefs.h. */
14895 #if defined (__cplusplus)
14898 #include <stddef.h>
14911 if (gmp_sprintf (s, "(%0.0td)(%d)", a, 42) == -1) return 1;
14912 return (strcmp (s, "(17)(42)") != 0);
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; }
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14924 $as_echo "no" >&6; }
14926 $as_echo "#define NPRINTF_T 1" >>confdefs.h
14929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14930 conftest.$ac_objext conftest.beam conftest.$ac_ext
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;}
14960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14961 conftest.$ac_objext conftest.beam conftest.$ac_ext
14964 LD_RUN_PATH="$saved_LD_RUN_PATH"
14966 for ac_func in __gmpn_rootrem __gmpn_sbpi1_divappr_q
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
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
14998 mv confdefs.tmp confdefs.h
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\``
15007 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile tests/Makefile tune/Makefile src/mparam.h:src/mparam_h.in"
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.
15016 # config.status only pays attention to the cache file if you give it
15017 # the --recheck option to rerun configure.
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.
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.
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
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;} ;;
15040 _ | IFS | as_nl) ;; #(
15041 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15042 *) { eval $ac_var=; unset $ac_var;} ;;
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 \.
15054 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15057 # `set' quotes correctly as required by POSIX, so do not add quotes.
15058 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15067 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15069 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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"
15079 case $cache_file in #(
15081 mv -f confcache "$cache_file"$$ &&
15082 mv -f "$cache_file"$$ "$cache_file" ;; #(
15084 mv -f confcache "$cache_file" ;;
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;}
15095 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15096 # Let make expand exec_prefix.
15097 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15099 # Transform confdefs.h into DEFS.
15100 # Protect against shell expansion while executing Makefile rules.
15101 # Protect against Makefile macro expansion.
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.
15115 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15117 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15121 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15134 DEFS=`sed -n "$ac_script" confdefs.h`
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'
15149 LIBOBJS=$ac_libobjs
15151 LTLIBOBJS=$ac_ltlibobjs
15154 if test -n "$EXEEXT"; then
15156 am__EXEEXT_FALSE='#'
15158 am__EXEEXT_TRUE='#'
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
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
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
15175 : "${CONFIG_STATUS=./config.status}"
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;}
15182 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
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.
15190 ac_cs_recheck=false
15193 SHELL=\${CONFIG_SHELL-$SHELL}
15196 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15197 ## -------------------- ##
15198 ## M4sh Initialization. ##
15199 ## -------------------- ##
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 :
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
15211 case `(set -o) 2>/dev/null` in #(
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'
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'
15241 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15242 as_echo_n_body='eval
15246 expr "X$arg" : "X\\(.*\\)$as_nl";
15247 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15249 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15251 export as_echo_n_body
15252 as_echo_n='sh -c $as_echo_n_body as_echo'
15254 export as_echo_body
15255 as_echo='sh -c $as_echo_body as_echo'
15258 # The user is always right.
15259 if test "${PATH_SEPARATOR+set}" != set; then
15261 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15262 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
15275 # Find who we are. Look in the path if we contain no directory separator.
15278 *[\\/]* ) as_myself=$0 ;;
15279 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15280 for as_dir in $PATH
15283 test -z "$as_dir" && as_dir=.
15284 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
15295 if test ! -f "$as_myself"; then
15296 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 || :
15319 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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.
15329 as_status=$1; test $as_status -eq 0 && as_status=1
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
15334 $as_echo "$as_me: error: $2" >&2
15335 as_fn_exit $as_status
15339 # as_fn_set_status STATUS
15340 # -----------------------
15341 # Set $? to STATUS, without forking.
15342 as_fn_set_status ()
15345 } # as_fn_set_status
15347 # as_fn_exit STATUS
15348 # -----------------
15349 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15353 as_fn_set_status $1
15359 # Portably unset VAR.
15362 { eval $1=; unset $1;}
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
15371 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15372 eval 'as_fn_append ()
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 ()
15396 as_val=`expr "$@" || test $? -eq 1`
15401 if expr a : '\(a\)' >/dev/null 2>&1 &&
15402 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15408 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15409 as_basename=basename
15414 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15420 as_me=`$as_basename -- "$0" ||
15421 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15422 X"$0" : 'X\(//\)$' \| \
15423 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15425 sed '/^.*\/\([^/][^/]*\)\/*$/{
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
15446 ECHO_C= ECHO_N= ECHO_T=
15447 case `echo -n x` in #(((((
15449 case `echo 'xy\c'` in
15450 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15452 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15459 rm -f conf$$ conf$$.exe conf$$.file
15460 if test -d conf$$.dir; then
15461 rm -f conf$$.dir/conf$$.file
15464 mkdir conf$$.dir 2>/dev/null
15466 if (echo >conf$$.file) 2>/dev/null; then
15467 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
15475 elif ln conf$$.file conf$$ 2>/dev/null; then
15483 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15484 rmdir conf$$.dir 2>/dev/null
15489 # Create "$as_dir" as a directory, including parents if necessary.
15494 -*) as_dir=./$as_dir;;
15496 test -d "$as_dir" || eval $as_mkdir_p || {
15500 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15501 *) as_qdir=$as_dir;;
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15514 /^X\(\/\/\)[^/].*/{
15527 test -d "$as_dir" && break
15529 test -z "$as_dirs" || eval "mkdir $as_dirs"
15530 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15534 if mkdir -p . 2>/dev/null; then
15535 as_mkdir_p='mkdir -p "$as_dir"'
15537 test -d ./-p && rmdir ./-p
15542 # as_fn_executable_p FILE
15543 # -----------------------
15544 # Test if FILE is an executable regular file.
15545 as_fn_executable_p ()
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
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'"
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'"
15560 ## ----------------------------------- ##
15561 ## Main body of $CONFIG_STATUS script. ##
15562 ## ----------------------------------- ##
15564 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
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.
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
15574 CONFIG_FILES = $CONFIG_FILES
15575 CONFIG_HEADERS = $CONFIG_HEADERS
15576 CONFIG_LINKS = $CONFIG_LINKS
15577 CONFIG_COMMANDS = $CONFIG_COMMANDS
15580 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15585 case $ac_config_files in *"
15586 "*) set x $ac_config_files; shift; ac_config_files=$*;;
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"
15598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
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.
15604 Usage: $0 [OPTION]... [TAG]...
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
15616 Configuration files:
15619 Configuration commands:
15622 Report bugs to the package provider."
15625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15626 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15628 MPFR config.status 3.1.2
15629 configured by $0, generated by GNU Autoconf 2.69,
15630 with options \\"\$ac_cs_config\\"
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."
15641 test -n "\$AWK" || AWK=awk
15644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15645 # The default lists apply if the user does not specify any file.
15651 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15652 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15656 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15668 # Handling of the options.
15669 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
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 )
15677 --file | --fil | --fi | --f )
15680 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15681 '') as_fn_error $? "missing file argument" ;;
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)
15691 # This is an error.
15692 -*) as_fn_error $? "unrecognized option: \`$1'
15693 Try \`$0 --help' for more information." ;;
15695 *) as_fn_append ac_config_targets " $1"
15696 ac_need_defaults=false ;;
15702 ac_configure_extra_args=
15704 if $ac_cs_silent; then
15706 ac_configure_extra_args="$ac_configure_extra_args --silent"
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
15714 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15715 CONFIG_SHELL='$SHELL'
15716 export CONFIG_SHELL
15721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15725 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15726 ## Running $as_me. ##
15732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15736 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
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
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"`'
15879 LTCFLAGS='$LTCFLAGS'
15880 compiler='$compiler_DEFAULT'
15882 # A function that is used when there is no print builtin or printf.
15883 func_fallback_echo ()
15885 eval 'cat <<_LTECHO_EOF
15890 # Quote evaled strings.
15907 deplibs_check_method \
15911 sharedlib_from_linklib_cmd \
15914 archiver_list_spec \
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 \
15938 export_dynamic_flag_spec \
15939 whole_archive_flag_spec \
15940 compiler_needs_object \
15942 allow_undefined_flag \
15943 no_undefined_flag \
15944 hardcode_libdir_flag_spec \
15945 hardcode_libdir_separator \
15949 variables_saved_for_relink \
15951 library_names_spec \
15953 install_override_mode \
15957 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15958 *[\\\\\\\`\\"\\\$]*)
15959 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15962 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15967 # Double-quote double-evaled strings.
15968 for var in reload_cmds \
15969 old_postinstall_cmds \
15970 old_postuninstall_cmds \
15972 extract_expsyms_cmds \
15973 old_archive_from_new_cmds \
15974 old_archive_from_expsyms_cmds \
15976 archive_expsym_cmds \
15978 module_expsym_cmds \
15979 export_symbols_cmds \
15983 postuninstall_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\\"\\\`\\\\\\""
15992 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15997 ac_aux_dir='$ac_aux_dir'
15998 xsi_shell='$xsi_shell'
15999 lt_shell_append='$lt_shell_append'
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
16010 TIMESTAMP='$TIMESTAMP'
16019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16021 # Handling of arguments.
16022 for ac_config_target in $ac_config_targets
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" ;;
16034 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
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
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'.
16057 trap 'exit_status=$?
16058 : "${ac_tmp:=$tmp}"
16059 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16061 trap 'as_fn_exit 1' 1 2 13 15
16063 # Create a (secure) tmp directory for tmp files.
16066 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16070 tmp=./conf$$-$RANDOM
16071 (umask 077 && mkdir "$tmp")
16072 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
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
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\'
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
16092 ac_cs_awk_cr=$ac_cr
16095 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16100 echo "cat >conf$$subs.awk <<_ACEOF" &&
16101 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
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 '^'`
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
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
16114 elif $ac_last_try; then
16115 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16117 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16120 rm -f conf$$subs.sh
16122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16123 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16127 s/^/S["/; s/!.*/"]=/
16137 s/\(.\{148\}\)..*/\1/
16139 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16144 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16151 s/\(.\{148\}\)..*/\1/
16153 s/["\\]/\\&/g; s/^/"/; s/$/"/
16157 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16162 ' <conf$$subs.awk | sed '
16167 ' >>$CONFIG_STATUS || ac_write_fail=1
16168 rm -f conf$$subs.awk
16169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16171 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16172 for (key in S) S_is_set[key] = 1
16178 nfields = split(line, field, "@")
16180 len = length(field[1])
16181 for (i = 2; i < nfields; i++) {
16183 keylen = length(key)
16184 if (S_is_set[key]) {
16186 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16187 len += length(value) + length(field[++i])
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"
16203 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16204 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
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[ ]*=[ ]*/{
16230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16231 fi # test -n "$CONFIG_FILES"
16234 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16239 :[FHLC]) ac_mode=$ac_tag; continue;;
16241 case $ac_mode$ac_tag in
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;;
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 `:'.
16269 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16271 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16273 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16274 as_fn_append ac_file_inputs " '$ac_f'"
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'
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;}
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;;
16297 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16298 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16313 /^X\(\/\/\)[^/].*/{
16326 as_dir="$ac_dir"; as_fn_mkdir_p
16330 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
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/ ;;
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
16346 .) # We are building in place.
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 ;;
16359 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16369 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16370 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16372 ac_MKDIR_P=$MKDIR_P
16374 [\\/$]* | ?:[\\/]* ) ;;
16375 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
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=
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;}
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' ;;
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
16417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
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
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
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;}
16446 rm -f "$ac_tmp/stdin"
16448 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16449 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16451 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16455 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16456 $as_echo "$as_me: executing $ac_file commands" >&6;}
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 ;;
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 ||
16489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16493 /^X\(\/\/\)[^/].*/{
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
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16537 /^X\(\/\/\)[^/].*/{
16550 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16551 # echo "creating $dirpart/$file"
16552 echo '# dummy' > "$dirpart/$file"
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
16565 cfgfile="${ofile}T"
16566 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16569 cat <<_LT_EOF >> "$cfgfile"
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.
16577 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16578 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16580 # Written by Gordon Matzigkeit, 1996
16582 # This file is part of GNU Libtool.
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.
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.
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.
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.
16606 # The names of the tagged configurations supported by this script.
16609 # ### BEGIN LIBTOOL CONFIG
16611 # Assembler program.
16614 # DLL creation program.
16615 DLLTOOL=$lt_DLLTOOL
16617 # Object dumper program.
16618 OBJDUMP=$lt_OBJDUMP
16620 # Which release of libtool.m4 was used?
16621 macro_version=$macro_version
16622 macro_revision=$macro_revision
16624 # Whether or not to build shared libraries.
16625 build_libtool_libs=$enable_shared
16627 # Whether or not to build static libraries.
16628 build_old_libs=$enable_static
16630 # What type of objects to build.
16633 # Whether or not to optimize for fast installation.
16634 fast_install=$enable_fast_install
16636 # Shell to use when invoking shell scripts.
16639 # An echo program that protects backslashes.
16642 # The PATH separator for the build system.
16643 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16646 host_alias=$host_alias
16650 # The build system.
16651 build_alias=$build_alias
16655 # A sed program that does not truncate output.
16658 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16659 Xsed="\$SED -e 1s/^X//"
16661 # A grep program that handles long lines.
16667 # A literal string matcher.
16670 # A BSD- or MS-compatible name lister.
16673 # Whether we need soft or hard links.
16676 # What is the maximum length of a command?
16677 max_cmd_len=$max_cmd_len
16679 # Object file suffix (normally "o").
16682 # Executable file suffix (normally "").
16685 # whether the shell understands "unset".
16688 # turn spaces into newlines.
16691 # turn newlines into spaces.
16694 # convert \$build file names to \$host format.
16695 to_host_file_cmd=$lt_cv_to_host_file_cmd
16697 # convert \$build files to toolchain format.
16698 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16700 # Method to check whether dependent libraries are shared objects.
16701 deplibs_check_method=$lt_deplibs_check_method
16703 # Command to use when deplibs_check_method = "file_magic".
16704 file_magic_cmd=$lt_file_magic_cmd
16706 # How to find potential files when deplibs_check_method = "file_magic".
16707 file_magic_glob=$lt_file_magic_glob
16709 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16710 want_nocaseglob=$lt_want_nocaseglob
16712 # Command to associate shared and link libraries.
16713 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16718 # Flags to create an archive.
16719 AR_FLAGS=$lt_AR_FLAGS
16721 # How to feed a file listing to the archiver.
16722 archiver_list_spec=$lt_archiver_list_spec
16724 # A symbol stripping program.
16727 # Commands used to install an old-style archive.
16729 old_postinstall_cmds=$lt_old_postinstall_cmds
16730 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16732 # Whether to use a lock for old archive extraction.
16733 lock_old_archive_extraction=$lock_old_archive_extraction
16738 # LTCC compiler flags.
16739 LTCFLAGS=$lt_CFLAGS
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
16744 # Transform the output of nm in a proper C declaration.
16745 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
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
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
16753 # Specify filename containing input files for \$NM.
16754 nm_file_list_spec=$lt_nm_file_list_spec
16756 # The root where to search for dependent libraries,and in which our libraries should be installed.
16757 lt_sysroot=$lt_sysroot
16759 # The name of the directory that contains temporary libtool files.
16762 # Used to examine libraries when file_magic_cmd begins with "file".
16763 MAGIC_CMD=$MAGIC_CMD
16765 # Must we lock files when doing compilation?
16766 need_locks=$lt_need_locks
16769 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16771 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16772 DSYMUTIL=$lt_DSYMUTIL
16774 # Tool to change global to local symbols on Mac OS X.
16777 # Tool to manipulate fat objects and archives on Mac OS X.
16780 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16783 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16784 OTOOL64=$lt_OTOOL64
16786 # Old archive suffix (normally "a").
16789 # Shared library suffix (normally ".so").
16790 shrext_cmds=$lt_shrext_cmds
16792 # The commands to extract the exported symbol list from a shared archive.
16793 extract_expsyms_cmds=$lt_extract_expsyms_cmds
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
16799 # Do we need the "lib" prefix for modules?
16800 need_lib_prefix=$need_lib_prefix
16802 # Do we need a version for libraries?
16803 need_version=$need_version
16805 # Library versioning type.
16806 version_type=$version_type
16808 # Shared library runtime path variable.
16809 runpath_var=$runpath_var
16811 # Shared library path variable.
16812 shlibpath_var=$shlibpath_var
16814 # Is shlibpath searched before the hard-coded library search path?
16815 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16817 # Format of library name prefix.
16818 libname_spec=$lt_libname_spec
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
16824 # The coded name of the library, if different from the real name.
16825 soname_spec=$lt_soname_spec
16827 # Permission mode override for installation of shared libraries.
16828 install_override_mode=$lt_install_override_mode
16830 # Command to use after installation of a shared archive.
16831 postinstall_cmds=$lt_postinstall_cmds
16833 # Command to use after uninstallation of a shared archive.
16834 postuninstall_cmds=$lt_postuninstall_cmds
16836 # Commands used to finish a libtool library installation in a directory.
16837 finish_cmds=$lt_finish_cmds
16839 # As "finish_cmds", except a single script fragment to be evaled but
16841 finish_eval=$lt_finish_eval
16843 # Whether we should hardcode library paths into libraries.
16844 hardcode_into_libs=$hardcode_into_libs
16846 # Compile-time system search path for libraries.
16847 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16849 # Run-time system search path for libraries.
16850 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16852 # Whether dlopen is supported.
16853 dlopen_support=$enable_dlopen
16855 # Whether dlopen of programs is supported.
16856 dlopen_self=$enable_dlopen_self
16858 # Whether dlopen of statically linked programs is supported.
16859 dlopen_self_static=$enable_dlopen_self_static
16861 # Commands to strip libraries.
16862 old_striplib=$lt_old_striplib
16863 striplib=$lt_striplib
16866 # The linker used to build libraries.
16869 # How to create reloadable object files.
16870 reload_flag=$lt_reload_flag
16871 reload_cmds=$lt_reload_cmds
16873 # Commands used to build an old-style archive.
16874 old_archive_cmds=$lt_old_archive_cmds
16876 # A language specific compiler.
16879 # Is the compiler the GNU compiler?
16882 # Compiler flag to turn off builtin functions.
16883 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16885 # Additional compiler flags for building library objects.
16886 pic_flag=$lt_lt_prog_compiler_pic
16888 # How to pass a linker flag through the compiler.
16889 wl=$lt_lt_prog_compiler_wl
16891 # Compiler flag to prevent dynamic linking.
16892 link_static_flag=$lt_lt_prog_compiler_static
16894 # Does compiler simultaneously support -c and -o options?
16895 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16897 # Whether or not to add -lc for building shared libraries.
16898 build_libtool_need_lc=$archive_cmds_need_lc
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
16903 # Compiler flag to allow reflexive dlopens.
16904 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16906 # Compiler flag to generate shared objects directly from archives.
16907 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16909 # Whether the compiler copes with passing no objects directly.
16910 compiler_needs_object=$lt_compiler_needs_object
16912 # Create an old-style archive from a shared archive.
16913 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
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
16918 # Commands used to build a shared archive.
16919 archive_cmds=$lt_archive_cmds
16920 archive_expsym_cmds=$lt_archive_expsym_cmds
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
16927 # Whether we are building with GNU ld or not.
16928 with_gnu_ld=$lt_with_gnu_ld
16930 # Flag that allows shared libraries with undefined symbols to be built.
16931 allow_undefined_flag=$lt_allow_undefined_flag
16933 # Flag that enforces no undefined symbols.
16934 no_undefined_flag=$lt_no_undefined_flag
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
16940 # Whether we need a single "-rpath" flag with a separated argument.
16941 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16943 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16944 # DIR into the resulting binary.
16945 hardcode_direct=$hardcode_direct
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
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
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
16961 # Set to "yes" if building a shared library automatically hardcodes DIR
16962 # into the library and all subsequent libraries and executables linked
16964 hardcode_automatic=$hardcode_automatic
16966 # Set to yes if linker adds runtime paths of dependent libraries
16967 # to runtime path list.
16968 inherit_rpath=$inherit_rpath
16970 # Whether libtool must link a program against all its dependency libraries.
16971 link_all_deplibs=$link_all_deplibs
16973 # Set to "yes" if exported symbols are required.
16974 always_export_symbols=$always_export_symbols
16976 # The commands to list exported symbols.
16977 export_symbols_cmds=$lt_export_symbols_cmds
16979 # Symbols that should not be listed in the preloaded symbols.
16980 exclude_expsyms=$lt_exclude_expsyms
16982 # Symbols that must always be exported.
16983 include_expsyms=$lt_include_expsyms
16985 # Commands necessary for linking programs (against libraries) with templates.
16986 prelink_cmds=$lt_prelink_cmds
16988 # Commands necessary for finishing linking programs.
16989 postlink_cmds=$lt_postlink_cmds
16991 # Specify filename containing input files.
16992 file_list_spec=$lt_file_list_spec
16994 # How to hardcode a shared library path into an executable.
16995 hardcode_action=$hardcode_action
16997 # ### END LIBTOOL CONFIG
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
17009 export COLLECT_NAMES
17016 ltmain="$ac_aux_dir/ltmain.sh"
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)
17026 if test x"$xsi_shell" = xyes; then
17027 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17031 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17032 \ * ) func_dirname_result="${3}" ;;\
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=:
17040 sed -e '/^func_basename ()$/,/^} # func_basename /c\
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=:
17050 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17051 func_dirname_and_basename ()\
17054 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17055 \ * ) func_dirname_result="${3}" ;;\
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=:
17064 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
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=:
17078 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17079 func_split_long_opt ()\
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=:
17089 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17090 func_split_short_opt ()\
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=:
17100 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17104 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17105 \ *) func_lo2o_result=${1} ;;\
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=:
17113 sed -e '/^func_xform ()$/,/^} # func_xform /c\
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=:
17123 sed -e '/^func_arith ()$/,/^} # func_arith /c\
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=:
17133 sed -e '/^func_len ()$/,/^} # func_len /c\
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=:
17144 if test x"$lt_shell_append" = xyes; then
17145 sed -e '/^func_append ()$/,/^} # func_append /c\
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=:
17155 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17156 func_append_quoted ()\
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=:
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=:
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=:
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;}
17185 mv -f "$cfgfile" "$ofile" ||
17186 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17197 ac_clean_files=$ac_clean_files_save
17199 test $ac_write_fail = 0 ||
17200 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
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
17213 ac_config_status_args=
17214 test "$silent" = yes &&
17215 ac_config_status_args="$ac_config_status_args --quiet"
17217 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
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
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;}