2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for GNU MP 5.1.3.
6 # Report bugs to <gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html>.
10 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
11 # 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
13 # This file is part of the GNU MP Library.
15 # The GNU MP Library is free software; you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License as published
17 # by the Free Software Foundation; either version 3 of the License, or (at
18 # your option) any later version.
20 # The GNU MP Library is distributed in the hope that it will be useful, but
21 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
22 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
23 # License for more details.
25 # You should have received a copy of the GNU Lesser General Public License
26 # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
30 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
33 # This configure script is free software; the Free Software Foundation
34 # gives unlimited permission to copy, distribute and modify it.
35 ## -------------------- ##
36 ## M4sh Initialization. ##
37 ## -------------------- ##
39 # Be more Bourne compatible
40 DUALCASE=1; export DUALCASE # for MKS sh
41 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
44 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
45 # is contrary to our usage. Disable this feature.
46 alias -g '${1+"$@"}'='"$@"'
49 case `(set -o) 2>/dev/null` in #(
61 # Printing a long string crashes Solaris 7 /usr/bin/printf.
62 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
63 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
64 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
65 # Prefer a ksh shell builtin over an external printf program on Solaris,
66 # but without wasting forks for bash or zsh.
67 if test -z "$BASH_VERSION$ZSH_VERSION" \
68 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
70 as_echo_n='print -rn --'
71 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
75 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
76 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
77 as_echo_n='/usr/ucb/echo -n'
79 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
84 expr "X$arg" : "X\\(.*\\)$as_nl";
85 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
87 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
90 as_echo_n='sh -c $as_echo_n_body as_echo'
93 as_echo='sh -c $as_echo_body as_echo'
96 # The user is always right.
97 if test "${PATH_SEPARATOR+set}" != set; then
99 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
100 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
107 # We need space, tab and new line, in precisely that order. Quoting is
108 # there to prevent editors from complaining about space-tab.
109 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
110 # splitting by setting IFS to empty value.)
113 # Find who we are. Look in the path if we contain no directory separator.
116 *[\\/]* ) as_myself=$0 ;;
117 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
121 test -z "$as_dir" && as_dir=.
122 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
128 # We did not find ourselves, most probably we were run as `sh COMMAND'
129 # in which case we are not to be found in the path.
130 if test "x$as_myself" = x; then
133 if test ! -f "$as_myself"; then
134 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
138 # Unset variables that we do not need and which cause bugs (e.g. in
139 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
140 # suppresses any "Segmentation fault" message there. '((' could
141 # trigger a bug in pdksh 5.2.14.
142 for as_var in BASH_ENV ENV MAIL MAILPATH
143 do eval test x\${$as_var+set} = xset \
144 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
157 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
159 # Use a proper internal environment variable to ensure we don't fall
160 # into an infinite loop, continuously re-executing ourselves.
161 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
162 _as_can_reexec=no; export _as_can_reexec;
163 # We cannot yet assume a decent shell, so we have to provide a
164 # neutralization value for shells without unset; and this also
165 # works around shells that cannot unset nonexistent variables.
166 # Preserve -v and -x to the replacement shell.
169 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
171 *v*x* | *x*v* ) as_opts=-vx ;;
176 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
177 # Admittedly, this is quite paranoid, since all the known shells bail
178 # out after a failed `exec'.
179 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
182 # We don't want this to propagate to other subprocesses.
183 { _as_can_reexec=; unset _as_can_reexec;}
184 if test "x$CONFIG_SHELL" = x; then
185 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
188 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
189 # is contrary to our usage. Disable this feature.
190 alias -g '\${1+\"\$@\"}'='\"\$@\"'
193 case \`(set -o) 2>/dev/null\` in #(
201 as_required="as_fn_return () { (exit \$1); }
202 as_fn_success () { as_fn_return 0; }
203 as_fn_failure () { as_fn_return 1; }
204 as_fn_ret_success () { return 0; }
205 as_fn_ret_failure () { return 1; }
208 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
209 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
210 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
211 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
212 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
215 exitcode=1; echo positional parameters were not saved.
217 test x\$exitcode = x0 || exit 1
219 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
220 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
221 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
222 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
223 test \$(( 1 + 1 )) = 2 || exit 1
225 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
226 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
227 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
228 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
229 PATH=/empty FPATH=/empty; export PATH FPATH
230 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
231 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
232 if (eval "$as_required") 2>/dev/null; then :
237 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
242 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 # Try only shells that exist, to save several forks.
251 as_shell=$as_dir/$as_base
252 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
253 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
254 CONFIG_SHELL=$as_shell as_have_required=yes
255 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
263 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
264 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
265 CONFIG_SHELL=$SHELL as_have_required=yes
270 if test "x$CONFIG_SHELL" != x; then :
272 # We cannot yet assume a decent shell, so we have to provide a
273 # neutralization value for shells without unset; and this also
274 # works around shells that cannot unset nonexistent variables.
275 # Preserve -v and -x to the replacement shell.
278 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
280 *v*x* | *x*v* ) as_opts=-vx ;;
285 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
286 # Admittedly, this is quite paranoid, since all the known shells bail
287 # out after a failed `exec'.
288 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
292 if test x$as_have_required = xno; then :
293 $as_echo "$0: This script requires a shell more modern than all"
294 $as_echo "$0: the shells that I found on your system."
295 if test x${ZSH_VERSION+set} = xset ; then
296 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
297 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
299 $as_echo "$0: Please tell bug-autoconf@gnu.org and
300 $0: gmp-bugs@gmplib.org, see
301 $0: http://gmplib.org/manual/Reporting-Bugs.html about your
302 $0: system, including any error possibly output before this
303 $0: message. Then install a modern shell, or manually run
304 $0: the script under such a shell if you do have one."
310 SHELL=${CONFIG_SHELL-/bin/sh}
312 # Unset more variables known to interfere with behavior of common tools.
313 CLICOLOR_FORCE= GREP_OPTIONS=
314 unset CLICOLOR_FORCE GREP_OPTIONS
316 ## --------------------- ##
317 ## M4sh Shell Functions. ##
318 ## --------------------- ##
321 # Portably unset VAR.
324 { eval $1=; unset $1;}
328 # as_fn_set_status STATUS
329 # -----------------------
330 # Set $? to STATUS, without forking.
338 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
348 # Create "$as_dir" as a directory, including parents if necessary.
353 -*) as_dir=./$as_dir;;
355 test -d "$as_dir" || eval $as_mkdir_p || {
359 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
362 as_dirs="'$as_qdir' $as_dirs"
363 as_dir=`$as_dirname -- "$as_dir" ||
364 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
365 X"$as_dir" : 'X\(//\)[^/]' \| \
366 X"$as_dir" : 'X\(//\)$' \| \
367 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
368 $as_echo X"$as_dir" |
369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
386 test -d "$as_dir" && break
388 test -z "$as_dirs" || eval "mkdir $as_dirs"
389 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
394 # as_fn_executable_p FILE
395 # -----------------------
396 # Test if FILE is an executable regular file.
397 as_fn_executable_p ()
399 test -f "$1" && test -x "$1"
400 } # as_fn_executable_p
401 # as_fn_append VAR VALUE
402 # ----------------------
403 # Append the text in VALUE to the end of the definition contained in VAR. Take
404 # advantage of any shell optimizations that allow amortized linear growth over
405 # repeated appends, instead of the typical quadratic growth present in naive
407 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
408 eval 'as_fn_append ()
421 # Perform arithmetic evaluation on the ARGs, and store the result in the
422 # global $as_val. Take advantage of shells that can avoid forks. The arguments
423 # must be portable across $(()) and expr.
424 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
432 as_val=`expr "$@" || test $? -eq 1`
437 # as_fn_error STATUS ERROR [LINENO LOG_FD]
438 # ----------------------------------------
439 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
440 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
441 # script with STATUS, using 1 if that was 0.
444 as_status=$1; test $as_status -eq 0 && as_status=1
446 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
447 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
449 $as_echo "$as_me: error: $2" >&2
450 as_fn_exit $as_status
453 if expr a : '\(a\)' >/dev/null 2>&1 &&
454 test "X`expr 00001 : '.*\(...\)'`" = X001; then
460 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 as_me=`$as_basename -- "$0" ||
473 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
474 X"$0" : 'X\(//\)$' \| \
475 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
477 sed '/^.*\/\([^/][^/]*\)\/*$/{
491 # Avoid depending upon Character Ranges.
492 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
493 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
494 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
495 as_cr_digits='0123456789'
496 as_cr_alnum=$as_cr_Letters$as_cr_digits
499 as_lineno_1=$LINENO as_lineno_1a=$LINENO
500 as_lineno_2=$LINENO as_lineno_2a=$LINENO
501 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
502 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
503 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
515 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
519 chmod +x "$as_me.lineno" ||
520 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
522 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
523 # already done that, so ensure we don't try to do so again and fall
524 # in an infinite loop. This has already happened in practice.
525 _as_can_reexec=no; export _as_can_reexec
526 # Don't try to exec as it changes $[0], causing all sort of problems
527 # (the dirname of $[0] is not the place where we might find the
528 # original and so on. Autoconf is especially sensitive to this).
530 # Exit status is that of the last command.
534 ECHO_C= ECHO_N= ECHO_T=
535 case `echo -n x` in #(((((
537 case `echo 'xy\c'` in
538 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
552 mkdir conf$$.dir 2>/dev/null
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
557 # ... but there are two gotchas:
558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560 # In both cases, we have to default to `cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563 elif ln conf$$.file conf$$ 2>/dev/null; then
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
577 test -d ./-p && rmdir ./-p
582 as_executable_p=as_fn_executable_p
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590 SHELL=${CONFIG_SHELL-/bin/sh}
593 test -n "$DJDIR" || exec 7<&0 </dev/null
597 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
598 # so uname gets run too.
599 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
604 ac_default_prefix=/usr/local
606 ac_config_libobj_dir=.
613 # Identity of this package.
614 PACKAGE_NAME='GNU MP'
615 PACKAGE_TARNAME='gmp'
616 PACKAGE_VERSION='5.1.3'
617 PACKAGE_STRING='GNU MP 5.1.3'
618 PACKAGE_BUGREPORT='gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html'
619 PACKAGE_URL='http://www.gnu.org/software/gmp/'
621 ac_unique_file="gmp-impl.h"
622 # Factoring default headers for most tests.
623 ac_includes_default="\
625 #ifdef HAVE_SYS_TYPES_H
626 # include <sys/types.h>
628 #ifdef HAVE_SYS_STAT_H
629 # include <sys/stat.h>
635 # ifdef HAVE_STDLIB_H
640 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
645 #ifdef HAVE_STRINGS_H
646 # include <strings.h>
648 #ifdef HAVE_INTTYPES_H
649 # include <inttypes.h>
658 ac_subst_vars='am__EXEEXT_FALSE
671 HAVE_SYS_RESOURCE_H_01
735 CALLING_CONVENTIONS_OBJS
736 SPEED_CYCLECOUNTER_OBJ
740 HAVE_HOST_CPU_FAMILY_powerpc
741 HAVE_HOST_CPU_FAMILY_power
745 MAINTAINER_MODE_FALSE
755 INSTALL_STRIP_PROGRAM
805 program_transform_name
818 enable_option_checking
819 enable_maintainer_mode
839 ac_precious_vars='build_alias
860 # Initialize some variables set by options.
862 ac_init_version=false
863 ac_unrecognized_opts=
865 # The variables have the same names as the options, with
866 # dashes changed to underlines.
874 program_transform_name=s,x,x,
882 # Installation directory options.
883 # These are left unexpanded so users can "make install exec_prefix=/foo"
884 # and all the variables that are supposed to be based on exec_prefix
885 # by default will actually change.
886 # Use braces instead of parens because sh, perl, etc. also accept them.
887 # (The list follows the same order as the GNU Coding Standards.)
888 bindir='${exec_prefix}/bin'
889 sbindir='${exec_prefix}/sbin'
890 libexecdir='${exec_prefix}/libexec'
891 datarootdir='${prefix}/share'
892 datadir='${datarootdir}'
893 sysconfdir='${prefix}/etc'
894 sharedstatedir='${prefix}/com'
895 localstatedir='${prefix}/var'
896 includedir='${prefix}/include'
897 oldincludedir='/usr/include'
898 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899 infodir='${datarootdir}/info'
904 libdir='${exec_prefix}/lib'
905 localedir='${datarootdir}/locale'
906 mandir='${datarootdir}/man'
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 # Accept the important Cygnus configure options, so we can diagnose typos.
927 case $ac_dashdash$ac_option in
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
949 cache_file=config.cache ;;
951 -datadir | --datadir | --datadi | --datad)
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
977 eval enable_$ac_useropt=no ;;
979 -docdir | --docdir | --docdi | --doc | --do)
981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989 -enable-* | --enable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034 htmldir=$ac_optarg ;;
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1048 -libdir | --libdir | --libdi | --libd)
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1139 -psdir | --psdir | --psdi | --psd | --ps)
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152 sbindir=$ac_optarg ;;
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163 sharedstatedir=$ac_optarg ;;
1165 -site | --site | --sit)
1167 -site=* | --site=* | --sit=*)
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1207 eval with_$ac_useropt=\$ac_optarg ;;
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1223 eval with_$ac_useropt=no ;;
1226 # Obsolete; use --with-x.
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1258 # FIXME: should be removed in autoconf 3.0.
1259 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281 # Check all directory arguments for consistency.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1294 # Be sure to have absolute directory names.
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1307 target=$target_alias
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 elif test "x$build_alias" != "x$host_alias"; then
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321 test "$silent" = yes && exec 6>/dev/null
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 as_fn_error $? "working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 as_fn_error $? "pwd does not report name of working directory"
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 $as_echo X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1364 ac_srcdir_defaulted=no
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392 # Report the --help message.
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1398 \`configure' configures GNU MP 5.1.3 to adapt to many kinds of systems.
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1405 Defaults for the options are specified in brackets.
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking ...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1429 For better control, use the options below.
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/gmp]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of GNU MP 5.1.3:";;
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --enable-maintainer-mode enable make rules and dependencies not useful
1477 (and sometimes confusing) to the casual installer
1478 --enable-assert enable ASSERT checking [[default=no]]
1479 --enable-alloca how to get temp memory [[default=reentrant]]
1480 --enable-cxx enable C++ support [[default=no]]
1481 --enable-assembly enable the use of assembly loops [[default=yes]]
1482 --enable-fft enable FFTs for multiplication [[default=yes]]
1483 --enable-old-fft-full enable old mpn_mul_fft_full for multiplication
1485 --enable-nails use nails on limbs [[default=no]]
1486 --enable-profiling build with profiler support [[default=no]]
1487 --enable-fat build a fat binary on systems that support it
1489 --enable-minithres choose minimal thresholds for testing [[default=no]]
1490 --enable-shared[=PKGS] build shared libraries [default=yes]
1491 --enable-static[=PKGS] build static libraries [default=yes]
1492 --enable-fast-install[=PKGS]
1493 optimize for fast installation [default=yes]
1494 --disable-libtool-lock avoid locking (might break parallel builds)
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --with-readline readline support in calc demo program
1501 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1504 --with-sysroot=DIR Search for dependent libraries within DIR
1505 (or the compiler's sysroot if not specified).
1507 Some influential environment variables:
1508 ABI desired ABI (for processors supporting more than one ABI)
1509 CC C compiler command
1510 CFLAGS C compiler flags
1511 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1512 nonstandard directory <lib dir>
1513 LIBS libraries to pass to the linker, e.g. -l<library>
1514 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1515 you have headers in a nonstandard directory <include dir>
1518 build system C compiler
1520 build system C preprocessor
1521 CXX C++ compiler command
1522 CXXFLAGS C++ compiler flags
1523 CXXCPP C++ preprocessor
1524 M4 m4 macro processor
1525 YACC The `Yet Another Compiler Compiler' implementation to use.
1526 Defaults to the first program found out of: `bison -y', `byacc',
1528 YFLAGS The list of arguments that will be passed by default to $YACC.
1529 This script will default YFLAGS to the empty string to avoid a
1530 default value of `-d' given by some make applications.
1532 Use these variables to override the choices made by `configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1535 Report bugs to <gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html>.
1536 GNU MP home page: <http://www.gnu.org/software/gmp/>.
1537 General help using GNU software: <http://www.gnu.org/gethelp/>.
1542 if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545 test -d "$ac_dir" ||
1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1567 .) # We are building in place.
1569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
1572 ac_srcdir=$srcdir$ac_dir_suffix;
1573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for guested configure.
1584 if test -f "$ac_srcdir/configure.gnu"; then
1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587 elif test -f "$ac_srcdir/configure"; then
1589 $SHELL "$ac_srcdir/configure" --help=recursive
1591 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593 cd "$ac_pwd" || { ac_status=$?; break; }
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1600 GNU MP configure 5.1.3
1601 generated by GNU Autoconf 2.69
1603 Copyright (C) 2012 Free Software Foundation, Inc.
1604 This configure script is free software; the Free Software Foundation
1605 gives unlimited permission to copy, distribute and modify it.
1609 Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
1610 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
1612 This file is part of the GNU MP Library.
1614 The GNU MP Library is free software; you can redistribute it and/or modify
1615 it under the terms of the GNU Lesser General Public License as published
1616 by the Free Software Foundation; either version 3 of the License, or (at
1617 your option) any later version.
1619 The GNU MP Library is distributed in the hope that it will be useful, but
1620 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1621 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
1622 License for more details.
1624 You should have received a copy of the GNU Lesser General Public License
1625 along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
1631 ## ------------------------ ##
1632 ## Autoconf initialization. ##
1633 ## ------------------------ ##
1635 # ac_fn_c_try_compile LINENO
1636 # --------------------------
1637 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1638 ac_fn_c_try_compile ()
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 rm -f conftest.$ac_objext
1642 if { { ac_try="$ac_compile"
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_compile") 2>conftest.err
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } && {
1658 test -z "$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 } && test -s conftest.$ac_objext; then :
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 as_fn_set_status $ac_retval
1671 } # ac_fn_c_try_compile
1673 # ac_fn_c_try_cpp LINENO
1674 # ----------------------
1675 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if { { ac_try="$ac_cpp conftest.$ac_ext"
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } > conftest.i && {
1695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1710 # ac_fn_cxx_try_compile LINENO
1711 # ----------------------------
1712 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_cxx_try_compile ()
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 rm -f conftest.$ac_objext
1717 if { { ac_try="$ac_compile"
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_compile") 2>conftest.err
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && {
1733 test -z "$ac_cxx_werror_flag" ||
1734 test ! -s conftest.err
1735 } && test -s conftest.$ac_objext; then :
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1746 } # ac_fn_cxx_try_compile
1748 # ac_fn_cxx_try_cpp LINENO
1749 # ------------------------
1750 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_cxx_try_cpp ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 if { { ac_try="$ac_cpp conftest.$ac_ext"
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } > conftest.i && {
1770 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1771 test ! -s conftest.err
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1783 } # ac_fn_cxx_try_cpp
1785 # ac_fn_c_try_link LINENO
1786 # -----------------------
1787 # Try to link conftest.$ac_ext, and return whether this succeeded.
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 rm -f conftest.$ac_objext conftest$ac_exeext
1792 if { { ac_try="$ac_link"
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_link") 2>conftest.err
1801 if test -s conftest.err; then
1802 grep -v '^ *+' conftest.err >conftest.er1
1803 cat conftest.er1 >&5
1804 mv -f conftest.er1 conftest.err
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && {
1808 test -z "$ac_c_werror_flag" ||
1809 test ! -s conftest.err
1810 } && test -s conftest$ac_exeext && {
1811 test "$cross_compiling" = yes ||
1812 test -x conftest$ac_exeext
1816 $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1821 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1822 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1823 # interfere with the next link command; also delete a directory that is
1824 # left behind by Apple's compiler. We do this before executing the actions.
1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
1829 } # ac_fn_c_try_link
1831 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1832 # -------------------------------------------------------
1833 # Tests whether HEADER exists and can be compiled using the include files in
1834 # INCLUDES, setting the cache variable VAR accordingly.
1835 ac_fn_c_check_header_compile ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if eval \${$3+:} false; then :
1841 $as_echo_n "(cached) " >&6
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1848 if ac_fn_c_try_compile "$LINENO"; then :
1853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 } # ac_fn_c_check_header_compile
1862 # ac_fn_c_try_run LINENO
1863 # ----------------------
1864 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1865 # that executables *can* be run.
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 if { { ac_try="$ac_link"
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_link") 2>&5
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1880 { { case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_try") 2>&5
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; }; }; then :
1892 $as_echo "$as_me: program exited with status $ac_status" >&5
1893 $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1896 ac_retval=$ac_status
1898 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 as_fn_set_status $ac_retval
1904 # ac_fn_c_check_func LINENO FUNC VAR
1905 # ----------------------------------
1906 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1907 ac_fn_c_check_func ()
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval \${$3+:} false; then :
1913 $as_echo_n "(cached) " >&6
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1917 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1919 #define $2 innocuous_$2
1921 /* System header to define __stub macros and hopefully few prototypes,
1922 which can conflict with char $2 (); below.
1923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1924 <limits.h> exists even on freestanding compilers. */
1927 # include <limits.h>
1929 # include <assert.h>
1934 /* Override any GCC internal prototype to avoid an error.
1935 Use char because int might match the return type of a GCC
1936 builtin and then its argument prototype would still apply. */
1941 /* The GNU C library defines this for functions which it implements
1942 to always fail with ENOSYS. Some functions are actually named
1943 something starting with __ and the normal name is an alias. */
1944 #if defined __stub_$2 || defined __stub___$2
1956 if ac_fn_c_try_link "$LINENO"; then :
1961 rm -f core conftest.err conftest.$ac_objext \
1962 conftest$ac_exeext conftest.$ac_ext
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969 } # ac_fn_c_check_func
1971 # ac_fn_cxx_try_link LINENO
1972 # -------------------------
1973 # Try to link conftest.$ac_ext, and return whether this succeeded.
1974 ac_fn_cxx_try_link ()
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977 rm -f conftest.$ac_objext conftest$ac_exeext
1978 if { { ac_try="$ac_link"
1980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1981 *) ac_try_echo=$ac_try;;
1983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984 $as_echo "$ac_try_echo"; } >&5
1985 (eval "$ac_link") 2>conftest.err
1987 if test -s conftest.err; then
1988 grep -v '^ *+' conftest.err >conftest.er1
1989 cat conftest.er1 >&5
1990 mv -f conftest.er1 conftest.err
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; } && {
1994 test -z "$ac_cxx_werror_flag" ||
1995 test ! -s conftest.err
1996 } && test -s conftest$ac_exeext && {
1997 test "$cross_compiling" = yes ||
1998 test -x conftest$ac_exeext
2002 $as_echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.$ac_ext >&5
2007 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2008 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2009 # interfere with the next link command; also delete a directory that is
2010 # left behind by Apple's compiler. We do this before executing the actions.
2011 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 as_fn_set_status $ac_retval
2015 } # ac_fn_cxx_try_link
2017 # ac_fn_f77_try_link LINENO
2018 # -------------------------
2019 # Try to link conftest.$ac_ext, and return whether this succeeded.
2020 ac_fn_f77_try_link ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 rm -f conftest.$ac_objext conftest$ac_exeext
2024 if { { ac_try="$ac_link"
2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_link") 2>conftest.err
2033 if test -s conftest.err; then
2034 grep -v '^ *+' conftest.err >conftest.er1
2035 cat conftest.er1 >&5
2036 mv -f conftest.er1 conftest.err
2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; } && {
2040 test -z "$ac_f77_werror_flag" ||
2041 test ! -s conftest.err
2042 } && test -s conftest$ac_exeext && {
2043 test "$cross_compiling" = yes ||
2044 test -x conftest$ac_exeext
2048 $as_echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2053 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2054 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2055 # interfere with the next link command; also delete a directory that is
2056 # left behind by Apple's compiler. We do this before executing the actions.
2057 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059 as_fn_set_status $ac_retval
2061 } # ac_fn_f77_try_link
2063 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2064 # -------------------------------------------------------
2065 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2066 # the include files in INCLUDES and setting the cache variable VAR
2068 ac_fn_c_check_header_mongrel ()
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 if eval \${$3+:} false; then :
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 $as_echo_n "checking for $2... " >&6; }
2074 if eval \${$3+:} false; then :
2075 $as_echo_n "(cached) " >&6
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2081 # Is the header compilable?
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2083 $as_echo_n "checking $2 usability... " >&6; }
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 ac_header_compiler=yes
2092 ac_header_compiler=no
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2096 $as_echo "$ac_header_compiler" >&6; }
2098 # Is the header present?
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2100 $as_echo_n "checking $2 presence... " >&6; }
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2105 if ac_fn_c_try_cpp "$LINENO"; then :
2106 ac_header_preproc=yes
2108 ac_header_preproc=no
2110 rm -f conftest.err conftest.i conftest.$ac_ext
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2112 $as_echo "$ac_header_preproc" >&6; }
2114 # So? What about this header?
2115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2118 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2120 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2124 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2126 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2128 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2130 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2132 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2133 ( $as_echo "## ssssssssssssssssssssssssssssssssss ##
2134 ## Report this to gmp-bugs@gmplib.org ##
2135 ## ssssssssssssssssssssssssssssssssss ##"
2136 ) | sed "s/^/$as_me: WARNING: /" >&2
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2140 $as_echo_n "checking for $2... " >&6; }
2141 if eval \${$3+:} false; then :
2142 $as_echo_n "(cached) " >&6
2144 eval "$3=\$ac_header_compiler"
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148 $as_echo "$ac_res" >&6; }
2150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152 } # ac_fn_c_check_header_mongrel
2154 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2155 # ---------------------------------------------
2156 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2158 ac_fn_c_check_decl ()
2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161 as_decl_name=`echo $2|sed 's/ *(.*//'`
2162 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2164 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2165 if eval \${$3+:} false; then :
2166 $as_echo_n "(cached) " >&6
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2174 #ifndef $as_decl_name
2176 (void) $as_decl_use;
2178 (void) $as_decl_name;
2186 if ac_fn_c_try_compile "$LINENO"; then :
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195 $as_echo "$ac_res" >&6; }
2196 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198 } # ac_fn_c_check_decl
2200 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2201 # -------------------------------------------
2202 # Tests whether TYPE exists after having included INCLUDES, setting cache
2203 # variable VAR accordingly.
2204 ac_fn_c_check_type ()
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2208 $as_echo_n "checking for $2... " >&6; }
2209 if eval \${$3+:} false; then :
2210 $as_echo_n "(cached) " >&6
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2238 if ac_fn_c_try_compile "$LINENO"; then :
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2249 $as_echo "$ac_res" >&6; }
2250 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2252 } # ac_fn_c_check_type
2254 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2255 # ----------------------------------------------------
2256 # Tries to find if the field MEMBER exists in type AGGR, after including
2257 # INCLUDES, setting cache variable VAR accordingly.
2258 ac_fn_c_check_member ()
2260 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2262 $as_echo_n "checking for $2.$3... " >&6; }
2263 if eval \${$4+:} false; then :
2264 $as_echo_n "(cached) " >&6
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2279 if ac_fn_c_try_compile "$LINENO"; then :
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2289 if (sizeof ac_aggr.$3)
2295 if ac_fn_c_try_compile "$LINENO"; then :
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2306 $as_echo "$ac_res" >&6; }
2307 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2309 } # ac_fn_c_check_member
2311 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2312 # ---------------------------------------------------------
2313 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2314 # the include files in INCLUDES and setting the cache variable VAR
2316 ac_fn_cxx_check_header_mongrel ()
2318 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2319 if eval \${$3+:} false; then :
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2321 $as_echo_n "checking for $2... " >&6; }
2322 if eval \${$3+:} false; then :
2323 $as_echo_n "(cached) " >&6
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2327 $as_echo "$ac_res" >&6; }
2329 # Is the header compilable?
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2331 $as_echo_n "checking $2 usability... " >&6; }
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2337 if ac_fn_cxx_try_compile "$LINENO"; then :
2338 ac_header_compiler=yes
2340 ac_header_compiler=no
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2344 $as_echo "$ac_header_compiler" >&6; }
2346 # Is the header present?
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2348 $as_echo_n "checking $2 presence... " >&6; }
2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2353 if ac_fn_cxx_try_cpp "$LINENO"; then :
2354 ac_header_preproc=yes
2356 ac_header_preproc=no
2358 rm -f conftest.err conftest.i conftest.$ac_ext
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2360 $as_echo "$ac_header_preproc" >&6; }
2362 # So? What about this header?
2363 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2366 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2368 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2372 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2374 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2376 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2378 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2380 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2381 ( $as_echo "## ssssssssssssssssssssssssssssssssss ##
2382 ## Report this to gmp-bugs@gmplib.org ##
2383 ## ssssssssssssssssssssssssssssssssss ##"
2384 ) | sed "s/^/$as_me: WARNING: /" >&2
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2388 $as_echo_n "checking for $2... " >&6; }
2389 if eval \${$3+:} false; then :
2390 $as_echo_n "(cached) " >&6
2392 eval "$3=\$ac_header_compiler"
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2396 $as_echo "$ac_res" >&6; }
2398 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2400 } # ac_fn_cxx_check_header_mongrel
2402 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2403 # ---------------------------------------------
2404 # Tests whether TYPE exists after having included INCLUDES, setting cache
2405 # variable VAR accordingly.
2406 ac_fn_cxx_check_type ()
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2410 $as_echo_n "checking for $2... " >&6; }
2411 if eval \${$3+:} false; then :
2412 $as_echo_n "(cached) " >&6
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h. */
2427 if ac_fn_cxx_try_compile "$LINENO"; then :
2428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h. */
2440 if ac_fn_cxx_try_compile "$LINENO"; then :
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2451 $as_echo "$ac_res" >&6; }
2452 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2454 } # ac_fn_cxx_check_type
2456 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2457 # --------------------------------------------
2458 # Tries to find the compile-time value of EXPR in a program that includes
2459 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2461 ac_fn_c_compute_int ()
2463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2464 if test "$cross_compiling" = yes; then
2465 # Depending upon the size, compute the lo and hi bounds.
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2472 static int test_array [1 - 2 * !(($2) >= 0)];
2474 return test_array [0];
2480 if ac_fn_c_try_compile "$LINENO"; then :
2483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484 /* end confdefs.h. */
2489 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2491 return test_array [0];
2497 if ac_fn_c_try_compile "$LINENO"; then :
2498 ac_hi=$ac_mid; break
2500 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2501 if test $ac_lo -le $ac_mid; then
2505 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2516 static int test_array [1 - 2 * !(($2) < 0)];
2518 return test_array [0];
2524 if ac_fn_c_try_compile "$LINENO"; then :
2527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528 /* end confdefs.h. */
2533 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2535 return test_array [0];
2541 if ac_fn_c_try_compile "$LINENO"; then :
2542 ac_lo=$ac_mid; break
2544 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2545 if test $ac_mid -le $ac_hi; then
2549 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559 # Binary search between lo and hi bounds.
2560 while test "x$ac_lo" != "x$ac_hi"; do
2561 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h. */
2568 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2570 return test_array [0];
2576 if ac_fn_c_try_compile "$LINENO"; then :
2579 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h. */
2591 static long int longval () { return $2; }
2592 static unsigned long int ulongval () { return $2; }
2599 FILE *f = fopen ("conftest.val", "w");
2604 long int i = longval ();
2607 fprintf (f, "%ld", i);
2611 unsigned long int i = ulongval ();
2614 fprintf (f, "%lu", i);
2616 /* Do not output a trailing newline, as this causes \r\n confusion
2617 on some platforms. */
2618 return ferror (f) || fclose (f) != 0;
2624 if ac_fn_c_try_run "$LINENO"; then :
2625 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2630 conftest.$ac_objext conftest.beam conftest.$ac_ext
2634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2635 as_fn_set_status $ac_retval
2637 } # ac_fn_c_compute_int
2638 cat >config.log <<_ACEOF
2639 This file contains any messages produced by compilers while
2640 running configure, to aid debugging if configure makes a mistake.
2642 It was created by GNU MP $as_me 5.1.3, which was
2643 generated by GNU Autoconf 2.69. Invocation command line was
2655 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2656 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2657 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2658 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2659 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2661 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2662 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2664 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2665 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2666 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2667 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2668 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2669 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2670 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 test -z "$as_dir" && as_dir=.
2679 $as_echo "PATH: $as_dir"
2695 # Keep a trace of the command line.
2696 # Strip out --no-create and --no-recursion so they do not pile up.
2697 # Strip out --silent because we don't want to record it for future runs.
2698 # Also quote any args containing shell meta-characters.
2699 # Make two passes to allow for proper duplicate-argument suppression.
2703 ac_must_keep_next=false
2709 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2710 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2711 | -silent | --silent | --silen | --sile | --sil)
2714 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2717 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2719 as_fn_append ac_configure_args1 " '$ac_arg'"
2720 if test $ac_must_keep_next = true; then
2721 ac_must_keep_next=false # Got value, back to normal.
2724 *=* | --config-cache | -C | -disable-* | --disable-* \
2725 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2726 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2727 | -with-* | --with-* | -without-* | --without-* | --x)
2728 case "$ac_configure_args0 " in
2729 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2732 -* ) ac_must_keep_next=true ;;
2735 as_fn_append ac_configure_args " '$ac_arg'"
2740 { ac_configure_args0=; unset ac_configure_args0;}
2741 { ac_configure_args1=; unset ac_configure_args1;}
2743 # When interrupted or exit'd, cleanup temporary files, and complete
2744 # config.log. We remove comments because anyway the quotes in there
2745 # would cause problems or look ugly.
2746 # WARNING: Use '\'' to represent an apostrophe within the trap.
2747 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2748 trap 'exit_status=$?
2749 # Save into config.log some information that might help in debugging.
2753 $as_echo "## ---------------- ##
2754 ## Cache variables. ##
2755 ## ---------------- ##"
2757 # The following way of writing the cache mishandles newlines in values,
2759 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2760 eval ac_val=\$$ac_var
2764 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2765 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2768 _ | IFS | as_nl) ;; #(
2769 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2770 *) { eval $ac_var=; unset $ac_var;} ;;
2775 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2776 *${as_nl}ac_space=\ *)
2778 "s/'\''/'\''\\\\'\'''\''/g;
2779 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2782 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2789 $as_echo "## ----------------- ##
2790 ## Output variables. ##
2791 ## ----------------- ##"
2793 for ac_var in $ac_subst_vars
2795 eval ac_val=\$$ac_var
2797 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2799 $as_echo "$ac_var='\''$ac_val'\''"
2803 if test -n "$ac_subst_files"; then
2804 $as_echo "## ------------------- ##
2805 ## File substitutions. ##
2806 ## ------------------- ##"
2808 for ac_var in $ac_subst_files
2810 eval ac_val=\$$ac_var
2812 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2814 $as_echo "$ac_var='\''$ac_val'\''"
2819 if test -s confdefs.h; then
2820 $as_echo "## ----------- ##
2827 test "$ac_signal" != 0 &&
2828 $as_echo "$as_me: caught signal $ac_signal"
2829 $as_echo "$as_me: exit $exit_status"
2831 rm -f core *.core core.conftest.* &&
2832 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2835 for ac_signal in 1 2 13 15; do
2836 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2840 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2841 rm -f -r conftest* confdefs.h
2843 $as_echo "/* confdefs.h */" > confdefs.h
2845 # Predefined preprocessor variables.
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_NAME "$PACKAGE_NAME"
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2855 cat >>confdefs.h <<_ACEOF
2856 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2859 cat >>confdefs.h <<_ACEOF
2860 #define PACKAGE_STRING "$PACKAGE_STRING"
2863 cat >>confdefs.h <<_ACEOF
2864 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2867 cat >>confdefs.h <<_ACEOF
2868 #define PACKAGE_URL "$PACKAGE_URL"
2872 # Let the site file select an alternate cache file if it wants to.
2873 # Prefer an explicitly selected file to automatically selected ones.
2876 if test -n "$CONFIG_SITE"; then
2877 # We do not want a PATH search for config.site.
2878 case $CONFIG_SITE in #((
2879 -*) ac_site_file1=./$CONFIG_SITE;;
2880 */*) ac_site_file1=$CONFIG_SITE;;
2881 *) ac_site_file1=./$CONFIG_SITE;;
2883 elif test "x$prefix" != xNONE; then
2884 ac_site_file1=$prefix/share/config.site
2885 ac_site_file2=$prefix/etc/config.site
2887 ac_site_file1=$ac_default_prefix/share/config.site
2888 ac_site_file2=$ac_default_prefix/etc/config.site
2890 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2892 test "x$ac_site_file" = xNONE && continue
2893 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2895 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2896 sed 's/^/| /' "$ac_site_file" >&5
2898 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2900 as_fn_error $? "failed to load site script $ac_site_file
2901 See \`config.log' for more details" "$LINENO" 5; }
2905 if test -r "$cache_file"; then
2906 # Some versions of bash will fail to source /dev/null (special files
2907 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2908 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2910 $as_echo "$as_me: loading cache $cache_file" >&6;}
2912 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2913 *) . "./$cache_file";;
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2918 $as_echo "$as_me: creating cache $cache_file" >&6;}
2922 # Check that the precious variables saved in the cache have kept the same
2924 ac_cache_corrupted=false
2925 for ac_var in $ac_precious_vars; do
2926 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2927 eval ac_new_set=\$ac_env_${ac_var}_set
2928 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2929 eval ac_new_val=\$ac_env_${ac_var}_value
2930 case $ac_old_set,$ac_new_set in
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2933 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2934 ac_cache_corrupted=: ;;
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2937 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2938 ac_cache_corrupted=: ;;
2941 if test "x$ac_old_val" != "x$ac_new_val"; then
2942 # differences in whitespace do not lead to failure.
2943 ac_old_val_w=`echo x $ac_old_val`
2944 ac_new_val_w=`echo x $ac_new_val`
2945 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2947 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2948 ac_cache_corrupted=:
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2951 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2952 eval $ac_var=\$ac_old_val
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2955 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2957 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2960 # Pass precious variables to config.status.
2961 if test "$ac_new_set" = set; then
2963 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2964 *) ac_arg=$ac_var=$ac_new_val ;;
2966 case " $ac_configure_args " in
2967 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2968 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2972 if $ac_cache_corrupted; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2976 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2977 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2979 ## -------------------- ##
2980 ## Main body of script. ##
2981 ## -------------------- ##
2984 ac_cpp='$CPP $CPPFLAGS'
2985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999 # If --target is not used then $target_alias is empty, but if say
3000 # "./configure athlon-pc-freebsd3.5" is used, then all three of
3001 # $build_alias, $host_alias and $target_alias are set to
3002 # "athlon-pc-freebsd3.5".
3004 if test -n "$target_alias" && test "$target_alias" != "$host_alias"; then
3005 as_fn_error $? "--target is not appropriate for GMP
3006 Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
3007 explicitly. Use --host if cross-compiling (see \"Installing GMP\" in the
3008 manual for more on this)." "$LINENO" 5
3011 gmp_configm4="config.m4"
3012 gmp_tmpconfigm4=cnfm4.tmp
3013 gmp_tmpconfigm4i=cnfm4i.tmp
3014 gmp_tmpconfigm4p=cnfm4p.tmp
3015 rm -f $gmp_tmpconfigm4 $gmp_tmpconfigm4i $gmp_tmpconfigm4p
3017 # CONFIG_TOP_SRCDIR is a path from the mpn builddir to the top srcdir.
3018 # The pattern here tests for an absolute path the same way as
3019 # _AC_OUTPUT_FILES in autoconf acgeneral.m4.
3021 [\\/]* | ?:[\\/]* ) tmp="$srcdir" ;;
3022 *) tmp="../$srcdir" ;;
3024 echo "define(<CONFIG_TOP_SRCDIR>,<\`$tmp'>)" >>$gmp_tmpconfigm4
3026 # All CPUs use asm-defs.m4
3027 echo "include(CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4')" >>$gmp_tmpconfigm4i
3031 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3032 if test -f "$ac_dir/install-sh"; then
3034 ac_install_sh="$ac_aux_dir/install-sh -c"
3036 elif test -f "$ac_dir/install.sh"; then
3038 ac_install_sh="$ac_aux_dir/install.sh -c"
3040 elif test -f "$ac_dir/shtool"; then
3042 ac_install_sh="$ac_aux_dir/shtool install -c"
3046 if test -z "$ac_aux_dir"; then
3047 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3050 # These three variables are undocumented and unsupported,
3051 # and are intended to be withdrawn in a future Autoconf release.
3052 # They can cause serious problems if a builder's source tree is in a directory
3053 # whose full name contains unusual characters.
3054 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3055 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3056 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3059 # Make sure we can run config.sub.
3060 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3061 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3064 $as_echo_n "checking build system type... " >&6; }
3065 if ${ac_cv_build+:} false; then :
3066 $as_echo_n "(cached) " >&6
3068 ac_build_alias=$build_alias
3069 test "x$ac_build_alias" = x &&
3070 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3071 test "x$ac_build_alias" = x &&
3072 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3073 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3074 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3078 $as_echo "$ac_cv_build" >&6; }
3079 case $ac_cv_build in
3081 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3084 ac_save_IFS=$IFS; IFS='-'
3090 # Remember, the first character of IFS is used to create $*,
3091 # except with old shells:
3094 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3098 $as_echo_n "checking host system type... " >&6; }
3099 if ${ac_cv_host+:} false; then :
3100 $as_echo_n "(cached) " >&6
3102 if test "x$host_alias" = x; then
3103 ac_cv_host=$ac_cv_build
3105 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3106 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3111 $as_echo "$ac_cv_host" >&6; }
3114 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3117 ac_save_IFS=$IFS; IFS='-'
3123 # Remember, the first character of IFS is used to create $*,
3124 # except with old shells:
3127 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3131 am__api_version='1.11'
3133 # Find a good install program. We prefer a C program (faster),
3134 # so one script is as good as another. But avoid the broken or
3135 # incompatible versions:
3136 # SysV /etc/install, /usr/sbin/install
3137 # SunOS /usr/etc/install
3138 # IRIX /sbin/install
3140 # AmigaOS /C/install, which installs bootblocks on floppy discs
3141 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3142 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3143 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3144 # OS/2's system install, which has a completely different semantic
3145 # ./install, which can be erroneously created by make from ./install.sh.
3146 # Reject install programs that cannot install multiple files.
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3148 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3149 if test -z "$INSTALL"; then
3150 if ${ac_cv_path_install+:} false; then :
3151 $as_echo_n "(cached) " >&6
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 test -z "$as_dir" && as_dir=.
3158 # Account for people who put trailing slashes in PATH elements.
3159 case $as_dir/ in #((
3160 ./ | .// | /[cC]/* | \
3161 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3162 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3165 # OSF1 and SCO ODT 3.0 have their own names for install.
3166 # Don't use installbsd from OSF since it installs stuff as root
3168 for ac_prog in ginstall scoinst install; do
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3171 if test $ac_prog = install &&
3172 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3173 # AIX install. It has an incompatible calling convention.
3175 elif test $ac_prog = install &&
3176 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3177 # program-specific install script used by HP pwplus--don't use.
3180 rm -rf conftest.one conftest.two conftest.dir
3181 echo one > conftest.one
3182 echo two > conftest.two
3184 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3185 test -s conftest.one && test -s conftest.two &&
3186 test -s conftest.dir/conftest.one &&
3187 test -s conftest.dir/conftest.two
3189 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3202 rm -rf conftest.one conftest.two conftest.dir
3205 if test "${ac_cv_path_install+set}" = set; then
3206 INSTALL=$ac_cv_path_install
3208 # As a last resort, use the slow shell script. Don't cache a
3209 # value for INSTALL within a source directory, because that will
3210 # break other packages using the cache if that directory is
3211 # removed, or if the value is a relative name.
3212 INSTALL=$ac_install_sh
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3216 $as_echo "$INSTALL" >&6; }
3218 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3219 # It thinks the first close brace ends the variable substitution.
3220 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3222 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3224 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3227 $as_echo_n "checking whether build environment is sane... " >&6; }
3230 echo timestamp > conftest.file
3231 # Reject unsafe characters in $srcdir or the absolute working directory
3232 # name. Accept space and tab only in the latter.
3236 *[\\\"\#\$\&\'\`$am_lf]*)
3237 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3240 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3241 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3244 # Do `set' in a subshell so we don't clobber the current shell's
3245 # arguments. Must try -L first in case configure is actually a
3246 # symlink; some systems play weird games with the mod time of symlinks
3247 # (eg FreeBSD returns the mod time of the symlink's containing
3250 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3251 if test "$*" = "X"; then
3253 set X `ls -t "$srcdir/configure" conftest.file`
3256 if test "$*" != "X $srcdir/configure conftest.file" \
3257 && test "$*" != "X conftest.file $srcdir/configure"; then
3259 # If neither matched, then we have a broken ls. This can happen
3260 # if, for instance, CONFIG_SHELL is bash and it inherits a
3261 # broken ls alias from the environment. This has actually
3262 # happened. Such a system could not be considered "sane".
3263 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3264 alias in your environment" "$LINENO" 5
3267 test "$2" = conftest.file
3273 as_fn_error $? "newly created file is older than distributed files!
3274 Check your system clock" "$LINENO" 5
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3277 $as_echo "yes" >&6; }
3278 test "$program_prefix" != NONE &&
3279 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3280 # Use a double $ so make ignores it.
3281 test "$program_suffix" != NONE &&
3282 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3283 # Double any \ or $.
3284 # By default was `s,x,x', remove it if useless.
3285 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3286 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3288 # expand $ac_aux_dir to an absolute path
3289 am_aux_dir=`cd $ac_aux_dir && pwd`
3291 if test x"${MISSING+set}" != xset; then
3294 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3296 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3299 # Use eval to expand $SHELL
3300 if eval "$MISSING --run true"; then
3301 am_missing_run="$MISSING --run "
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3305 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3308 if test x"${install_sh}" != xset; then
3311 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3313 install_sh="\${SHELL} $am_aux_dir/install-sh"
3317 # Installed binaries are usually stripped using `strip' when the user
3318 # run `make install-strip'. However `strip' might not be the right
3319 # tool to use in cross-compilation environments, therefore Automake
3320 # will honor the `STRIP' environment variable to overrule this program.
3321 if test "$cross_compiling" != no; then
3322 if test -n "$ac_tool_prefix"; then
3323 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3324 set dummy ${ac_tool_prefix}strip; ac_word=$2
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 $as_echo_n "checking for $ac_word... " >&6; }
3327 if ${ac_cv_prog_STRIP+:} false; then :
3328 $as_echo_n "(cached) " >&6
3330 if test -n "$STRIP"; then
3331 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 test -z "$as_dir" && as_dir=.
3338 for ac_exec_ext in '' $ac_executable_extensions; do
3339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3340 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 STRIP=$ac_cv_prog_STRIP
3351 if test -n "$STRIP"; then
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3353 $as_echo "$STRIP" >&6; }
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3361 if test -z "$ac_cv_prog_STRIP"; then
3363 # Extract the first word of "strip", so it can be a program name with args.
3364 set dummy strip; ac_word=$2
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366 $as_echo_n "checking for $ac_word... " >&6; }
3367 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3368 $as_echo_n "(cached) " >&6
3370 if test -n "$ac_ct_STRIP"; then
3371 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380 ac_cv_prog_ac_ct_STRIP="strip"
3381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3391 if test -n "$ac_ct_STRIP"; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3393 $as_echo "$ac_ct_STRIP" >&6; }
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 $as_echo "no" >&6; }
3399 if test "x$ac_ct_STRIP" = x; then
3402 case $cross_compiling:$ac_tool_warned in
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3406 ac_tool_warned=yes ;;
3411 STRIP="$ac_cv_prog_STRIP"
3415 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3418 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3419 if test -z "$MKDIR_P"; then
3420 if ${ac_cv_path_mkdir+:} false; then :
3421 $as_echo_n "(cached) " >&6
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3427 test -z "$as_dir" && as_dir=.
3428 for ac_prog in mkdir gmkdir; do
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3431 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3432 'mkdir (GNU coreutils) '* | \
3433 'mkdir (coreutils) '* | \
3434 'mkdir (fileutils) '4.1*)
3435 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3445 test -d ./--version && rmdir ./--version
3446 if test "${ac_cv_path_mkdir+set}" = set; then
3447 MKDIR_P="$ac_cv_path_mkdir -p"
3449 # As a last resort, use the slow shell script. Don't cache a
3450 # value for MKDIR_P within a source directory, because that will
3451 # break other packages using the cache if that directory is
3452 # removed, or if the value is a relative name.
3453 MKDIR_P="$ac_install_sh -d"
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3457 $as_echo "$MKDIR_P" >&6; }
3461 [\\/$]* | ?:[\\/]*) ;;
3462 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3465 for ac_prog in gawk mawk nawk awk
3467 # Extract the first word of "$ac_prog", so it can be a program name with args.
3468 set dummy $ac_prog; ac_word=$2
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470 $as_echo_n "checking for $ac_word... " >&6; }
3471 if ${ac_cv_prog_AWK+:} false; then :
3472 $as_echo_n "(cached) " >&6
3474 if test -n "$AWK"; then
3475 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 test -z "$as_dir" && as_dir=.
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3484 ac_cv_prog_AWK="$ac_prog"
3485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 if test -n "$AWK"; then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3497 $as_echo "$AWK" >&6; }
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 $as_echo "no" >&6; }
3504 test -n "$AWK" && break
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3508 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3510 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3511 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3512 $as_echo_n "(cached) " >&6
3514 cat >conftest.make <<\_ACEOF
3517 @echo '@@@%%%=$(MAKE)=@@@%%%'
3519 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3520 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3522 eval ac_cv_prog_make_${ac_make}_set=yes;;
3524 eval ac_cv_prog_make_${ac_make}_set=no;;
3528 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3530 $as_echo "yes" >&6; }
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3535 SET_MAKE="MAKE=${MAKE-make}"
3538 rm -rf .tst 2>/dev/null
3539 mkdir .tst 2>/dev/null
3540 if test -d .tst; then
3545 rmdir .tst 2>/dev/null
3547 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3548 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3549 # is not polluted with repeated "-I."
3550 am__isrc=' -I$(srcdir)'
3551 # test to see if srcdir already configured
3552 if test -f $srcdir/config.status; then
3553 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3557 # test whether we have cygpath
3558 if test -z "$CYGPATH_W"; then
3559 if (cygpath --version) >/dev/null 2>/dev/null; then
3560 CYGPATH_W='cygpath -w'
3567 # Define the identity of the package.
3572 cat >>confdefs.h <<_ACEOF
3573 #define PACKAGE "$PACKAGE"
3577 cat >>confdefs.h <<_ACEOF
3578 #define VERSION "$VERSION"
3581 # Some tools Automake needs.
3583 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3586 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3589 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3592 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3595 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3597 # We need awk for the "check" target. The system "awk" is bad on
3599 # Always define AMTAR for backward compatibility. Yes, it's still used
3600 # in the wild :-( We should find a proper way to deprecate it ...
3603 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3609 ac_config_headers="$ac_config_headers config.h:config.in"
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3613 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3614 # Check whether --enable-maintainer-mode was given.
3615 if test "${enable_maintainer_mode+set}" = set; then :
3616 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3618 USE_MAINTAINER_MODE=no
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3622 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3623 if test $USE_MAINTAINER_MODE = yes; then
3624 MAINTAINER_MODE_TRUE=
3625 MAINTAINER_MODE_FALSE='#'
3627 MAINTAINER_MODE_TRUE='#'
3628 MAINTAINER_MODE_FALSE=
3631 MAINT=$MAINTAINER_MODE_TRUE
3636 # Check whether --enable-assert was given.
3637 if test "${enable_assert+set}" = set; then :
3638 enableval=$enable_assert; case $enableval in
3640 *) as_fn_error $? "bad value $enableval for --enable-assert, need yes or no" "$LINENO" 5 ;;
3647 if test "$enable_assert" = "yes"; then
3649 $as_echo "#define WANT_ASSERT 1" >>confdefs.h
3656 echo "define(<WANT_ASSERT>,$want_assert_01)" >> $gmp_tmpconfigm4
3660 # Check whether --enable-alloca was given.
3661 if test "${enable_alloca+set}" = set; then :
3662 enableval=$enable_alloca; case $enableval in
3663 alloca|malloc-reentrant|malloc-notreentrant) ;;
3664 yes|no|reentrant|notreentrant) ;;
3667 as_fn_error $? "bad value $enableval for --enable-alloca, need one of:
3668 yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" "$LINENO" 5 ;;
3671 enable_alloca=reentrant
3676 # IMPROVE ME: The default for C++ is disabled. The tests currently
3677 # performed below for a working C++ compiler are not particularly strong,
3678 # and in general can't be expected to get the right setup on their own. The
3679 # most significant problem is getting the ABI the same. Defaulting CXXFLAGS
3680 # to CFLAGS takes only a small step towards this. It's also probably worth
3681 # worrying whether the C and C++ runtimes from say gcc and a vendor C++ can
3682 # work together. Some rather broken C++ installations were encountered
3683 # during testing, and though such things clearly aren't GMP's problem, if
3684 # --enable-cxx=detect were to be the default then some careful checks of
3685 # which, if any, C++ compiler on the system is up to scratch would be
3688 # Check whether --enable-cxx was given.
3689 if test "${enable_cxx+set}" = set; then :
3690 enableval=$enable_cxx; case $enableval in
3692 *) as_fn_error $? "bad value $enableval for --enable-cxx, need yes/no/detect" "$LINENO" 5 ;;
3700 # Check whether --enable-assembly was given.
3701 if test "${enable_assembly+set}" = set; then :
3702 enableval=$enable_assembly; case $enableval in
3704 *) as_fn_error $? "bad value $enableval for --enable-assembly, need yes or no" "$LINENO" 5 ;;
3711 if test "$enable_assembly" = "yes"; then
3713 $as_echo "#define WANT_ASSEMBLY 1" >>confdefs.h
3718 # Check whether --enable-fft was given.
3719 if test "${enable_fft+set}" = set; then :
3720 enableval=$enable_fft; case $enableval in
3722 *) as_fn_error $? "bad value $enableval for --enable-fft, need yes or no" "$LINENO" 5 ;;
3729 if test "$enable_fft" = "yes"; then
3731 $as_echo "#define WANT_FFT 1" >>confdefs.h
3736 # Check whether --enable-old-fft-full was given.
3737 if test "${enable_old_fft_full+set}" = set; then :
3738 enableval=$enable_old_fft_full; case $enableval in
3740 *) as_fn_error $? "bad value $enableval for --enable-old-fft-full, need yes or no" "$LINENO" 5 ;;
3743 enable_old_fft_full=no
3747 if test "$enable_old_fft_full" = "yes"; then
3749 $as_echo "#define WANT_OLD_FFT_FULL 1" >>confdefs.h
3754 # Check whether --enable-nails was given.
3755 if test "${enable_nails+set}" = set; then :
3756 enableval=$enable_nails; case $enableval in
3757 yes|no|[02468]|[0-9][02468]) ;;
3759 as_fn_error $? "bad value $enableval for --enable-nails, only even nail sizes supported" "$LINENO" 5 ;;
3761 as_fn_error $? "bad value $enableval for --enable-nails, need yes/no/number" "$LINENO" 5 ;;
3768 case $enable_nails in
3769 yes) GMP_NAIL_BITS=2 ;;
3770 no) GMP_NAIL_BITS=0 ;;
3771 *) GMP_NAIL_BITS=$enable_nails ;;
3776 # Check whether --enable-profiling was given.
3777 if test "${enable_profiling+set}" = set; then :
3778 enableval=$enable_profiling; case $enableval in
3779 no|prof|gprof|instrument) ;;
3780 *) as_fn_error $? "bad value $enableval for --enable-profiling, need no/prof/gprof/instrument" "$LINENO" 5 ;;
3787 case $enable_profiling in
3790 $as_echo "#define WANT_PROFILING_PROF 1" >>confdefs.h
3795 $as_echo "#define WANT_PROFILING_GPROF 1" >>confdefs.h
3800 $as_echo "#define WANT_PROFILING_INSTRUMENT 1" >>confdefs.h
3806 echo "define(<WANT_PROFILING>,<\`$enable_profiling'>)" >> $gmp_tmpconfigm4
3809 # -fomit-frame-pointer is incompatible with -pg on some chips
3810 if test "$enable_profiling" = gprof; then
3811 fomit_frame_pointer=
3813 fomit_frame_pointer="-fomit-frame-pointer"
3818 # Check whether --with-readline was given.
3819 if test "${with_readline+set}" = set; then :
3820 withval=$with_readline; case $withval in
3822 *) as_fn_error $? "bad value $withval for --with-readline, need yes/no/detect" "$LINENO" 5 ;;
3825 with_readline=detect
3830 # Check whether --enable-fat was given.
3831 if test "${enable_fat+set}" = set; then :
3832 enableval=$enable_fat; case $enableval in
3834 *) as_fn_error $? "bad value $enableval for --enable-fat, need yes or no" "$LINENO" 5 ;;
3842 # Check whether --enable-minithres was given.
3843 if test "${enable_minithres+set}" = set; then :
3844 enableval=$enable_minithres; case $enableval in
3846 *) as_fn_error $? "bad value $enableval for --enable-minithres, need yes or no" "$LINENO" 5 ;;
3854 if test $enable_fat = yes && test $enable_assembly = no ; then
3855 as_fn_error $? "when doing a fat build, disabling assembly will not work" "$LINENO" 5
3859 tmp_host=`echo $host_cpu | sed 's/\./_/'`
3860 cat >>confdefs.h <<_ACEOF
3861 #define HAVE_HOST_CPU_$tmp_host 1
3865 echo "define_not_for_expansion(\`HAVE_HOST_CPU_$tmp_host')" >> $gmp_tmpconfigm4p
3872 # Table of compilers, options, and mpn paths. This code has various related
3875 # - better default CC/CFLAGS selections than autoconf otherwise gives
3876 # - default CC/CFLAGS selections for extra CPU types specific to GMP
3877 # - a few tests for known bad compilers
3878 # - choice of ABIs on suitable systems
3879 # - selection of corresponding mpn search path
3881 # After GMP specific searches and tests, the standard autoconf AC_PROG_CC is
3882 # called. User selections of CC etc are respected.
3884 # Care is taken not to use macros like AC_TRY_COMPILE during the GMP
3885 # pre-testing, since they of course depend on AC_PROG_CC, and also some of
3886 # them cache their results, which is not wanted.
3888 # The ABI selection mechanism is unique to GMP. All that reaches autoconf
3889 # is a different selection of CC/CFLAGS according to the best ABI the system
3890 # supports, and/or what the user selects. Naturally the mpn assembler code
3891 # selected is very dependent on the ABI.
3893 # The closest the standard tools come to a notion of ABI is something like
3894 # "sparc64" which encodes a CPU and an ABI together. This doesn't seem to
3895 # scale well for GMP, where exact CPU types like "ultrasparc2" are wanted,
3896 # separate from the ABI used on them.
3899 # The variables set here are
3901 # cclist the compiler choices
3902 # xx_cflags flags for compiler xx
3903 # xx_cflags_maybe flags for compiler xx, if they work
3904 # xx_cppflags cpp flags for compiler xx
3905 # xx_cflags_optlist list of sets of optional flags
3906 # xx_cflags_yyy set yyy of optional flags for compiler xx
3907 # xx_ldflags -Wc,-foo flags for libtool linking with compiler xx
3908 # ar_flags extra flags for $AR
3909 # nm_flags extra flags for $NM
3910 # limb limb size, can be "longlong"
3911 # path mpn search path
3912 # extra_functions extra mpn functions
3913 # fat_path fat binary mpn search path [if fat binary desired]
3914 # fat_functions fat functions
3915 # fat_thresholds fat thresholds
3917 # Suppose xx_cflags_optlist="arch", then flags from $xx_cflags_arch are
3918 # tried, and the first flag that works will be used. An optlist like "arch
3919 # cpu optimize" can be used to get multiple independent sets of flags tried.
3920 # The first that works from each will be used. If no flag in a set works
3921 # then nothing from that set is added.
3923 # For multiple ABIs, the scheme extends as follows.
3925 # abilist set of ABI choices
3926 # cclist_aa compiler choices in ABI aa
3927 # xx_aa_cflags flags for xx in ABI aa
3928 # xx_aa_cflags_maybe flags for xx in ABI aa, if they work
3929 # xx_aa_cppflags cpp flags for xx in ABI aa
3930 # xx_aa_cflags_optlist list of sets of optional flags in ABI aa
3931 # xx_aa_cflags_yyy set yyy of optional flags for compiler xx in ABI aa
3932 # xx_aa_ldflags -Wc,-foo flags for libtool linking
3933 # ar_aa_flags extra flags for $AR in ABI aa
3934 # nm_aa_flags extra flags for $NM in ABI aa
3935 # limb_aa limb size in ABI aa, can be "longlong"
3936 # path_aa mpn search path in ABI aa
3937 # extra_functions_aa extra mpn functions in ABI aa
3939 # As a convenience, the unadorned xx_cflags (etc) are used for the last ABI
3940 # in ablist, if an xx_aa_cflags for that ABI isn't given. For example if
3941 # abilist="64 32" then $cc_64_cflags will be used for the 64-bit ABI, but
3942 # for the 32-bit either $cc_32_cflags or $cc_cflags is used, whichever is
3943 # defined. This makes it easy to add some 64-bit compilers and flags to an
3944 # unadorned 32-bit set.
3946 # limb=longlong (or limb_aa=longlong) applies to all compilers within that
3947 # ABI. It won't work to have some needing long long and some not, since a
3948 # single instantiated gmp.h will be used by both.
3950 # SPEED_CYCLECOUNTER, cyclecounter_size and CALLING_CONVENTIONS_OBJS are
3951 # also set here, with an ABI suffix.
3955 # A table-driven approach like this to mapping cpu type to good compiler
3956 # options is a bit of a maintenance burden, but there's not much uniformity
3957 # between options specifications on different compilers. Some sort of
3958 # separately updatable tool might be cute.
3960 # The use of lots of variables like this, direct and indirect, tends to
3961 # obscure when and how various things are done, but unfortunately it's
3962 # pretty much the only way. If shell subroutines were portable then actual
3963 # code like "if this .. do that" could be written, but attempting the same
3964 # with full copies of GMP_PROG_CC_WORKS etc expanded at every point would
3965 # hugely bloat the output.
3970 # abilist needs to be non-empty, "standard" is just a generic name here
3973 # FIXME: We'd like to prefer an ANSI compiler, perhaps by preferring
3974 # c89 over cc here. But note that on HP-UX c89 provides a castrated
3975 # environment, and would want to be excluded somehow. Maybe
3976 # AC_PROG_CC_STDC already does enough to stick cc into ANSI mode and
3977 # we don't need to worry.
3981 gcc_cflags="-O2 -pedantic"
3982 gcc_64_cflags="-O2 -pedantic"
3986 SPEED_CYCLECOUNTER_OBJ=
3989 HAVE_HOST_CPU_FAMILY_power=0
3991 HAVE_HOST_CPU_FAMILY_powerpc=0
4002 $as_echo "#define HAVE_HOST_CPU_FAMILY_alpha 1" >>confdefs.h
4005 alphaev5* | alphapca5*)
4006 path="alpha/ev5 alpha" ;;
4007 alphaev67 | alphaev68 | alphaev7*)
4008 path="alpha/ev67 alpha/ev6 alpha" ;;
4010 path="alpha/ev6 alpha" ;;
4014 extra_functions="cntlz"
4015 gcc_cflags_optlist="asm cpu oldas" # need asm ahead of cpu, see below
4016 gcc_cflags_oldas="-Wa,-oldas" # see GMP_GCC_WA_OLDAS.
4018 # gcc 2.7.2.3 doesn't know any -mcpu= for alpha, apparently.
4019 # gcc 2.95 knows -mcpu= ev4, ev5, ev56, pca56, ev6.
4020 # gcc 3.0 adds nothing.
4021 # gcc 3.1 adds ev45, ev67 (but ev45 is the same as ev4).
4022 # gcc 3.2 adds nothing.
4024 # gcc version "2.9-gnupro-99r1" under "-O2 -mcpu=ev6" strikes internal
4025 # compiler errors too easily and is rejected by GMP_PROG_CC_WORKS. Each
4026 # -mcpu=ev6 below has a fallback to -mcpu=ev56 for this reason.
4029 alpha) gcc_cflags_cpu="-mcpu=ev4" ;;
4030 alphaev5) gcc_cflags_cpu="-mcpu=ev5" ;;
4031 alphaev56) gcc_cflags_cpu="-mcpu=ev56" ;;
4032 alphapca56 | alphapca57)
4033 gcc_cflags_cpu="-mcpu=pca56" ;;
4034 alphaev6) gcc_cflags_cpu="-mcpu=ev6 -mcpu=ev56" ;;
4035 alphaev67 | alphaev68 | alphaev7*)
4036 gcc_cflags_cpu="-mcpu=ev67 -mcpu=ev6 -mcpu=ev56" ;;
4039 # gcc version "2.9-gnupro-99r1" on alphaev68-dec-osf5.1 has been seen
4040 # accepting -mcpu=ev6, but not putting the assembler in the right mode
4041 # for what it produces. We need to do this for it, and need to do it
4042 # before testing the -mcpu options.
4044 # On old versions of gcc, which don't know -mcpu=, we believe an
4045 # explicit -Wa,-mev5 etc will be necessary to put the assembler in
4046 # the right mode for our .asm files and longlong.h asm blocks.
4048 # On newer versions of gcc, when -mcpu= is known, we must give a -Wa
4049 # which is at least as high as the code gcc will generate. gcc
4050 # establishes what it needs with a ".arch" directive, our command line
4051 # option seems to override that.
4053 # gas prior to 2.14 doesn't accept -mev67, but -mev6 seems enough for
4054 # ctlz and cttz (in 2.10.0 at least).
4056 # OSF `as' accepts ev68 but stupidly treats it as ev4. -arch only seems
4057 # to affect insns like ldbu which are expanded as macros when necessary.
4058 # Insns like ctlz which were never available as macros are always
4059 # accepted and always generate their plain code.
4062 alpha) gcc_cflags_asm="-Wa,-arch,ev4 -Wa,-mev4" ;;
4063 alphaev5) gcc_cflags_asm="-Wa,-arch,ev5 -Wa,-mev5" ;;
4064 alphaev56) gcc_cflags_asm="-Wa,-arch,ev56 -Wa,-mev56" ;;
4065 alphapca56 | alphapca57)
4066 gcc_cflags_asm="-Wa,-arch,pca56 -Wa,-mpca56" ;;
4067 alphaev6) gcc_cflags_asm="-Wa,-arch,ev6 -Wa,-mev6" ;;
4068 alphaev67 | alphaev68 | alphaev7*)
4069 gcc_cflags_asm="-Wa,-arch,ev67 -Wa,-mev67 -Wa,-arch,ev6 -Wa,-mev6" ;;
4072 # It might be better to ask "cc" whether it's Cray C or DEC C,
4073 # instead of relying on the OS part of $host. But it's hard to
4074 # imagine either of those compilers anywhere except their native
4078 echo "include_mpn(\`alpha/alpha-defs.m4')" >> $gmp_tmpconfigm4i
4082 cc_cflags="-O" # no -g, it silently disables all optimizations
4084 echo "include_mpn(\`alpha/unicos.m4')" >> $gmp_tmpconfigm4i
4086 # Don't perform any assembly syntax tests on this beast.
4087 gmp_asm_syntax_testing=no
4091 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
4094 cc_cflags_optlist="opt cpu"
4096 # not sure if -fast works on old versions, so make it optional
4097 cc_cflags_opt="-fast -O2"
4099 # DEC C V5.9-005 knows ev4, ev5, ev56, pca56, ev6.
4100 # Compaq C V6.3-029 adds ev67.
4103 alpha) cc_cflags_cpu="-arch~ev4~-tune~ev4" ;;
4104 alphaev5) cc_cflags_cpu="-arch~ev5~-tune~ev5" ;;
4105 alphaev56) cc_cflags_cpu="-arch~ev56~-tune~ev56" ;;
4106 alphapca56 | alphapca57)
4107 cc_cflags_cpu="-arch~pca56~-tune~pca56" ;;
4108 alphaev6) cc_cflags_cpu="-arch~ev6~-tune~ev6" ;;
4109 alphaev67 | alphaev68 | alphaev7*)
4110 cc_cflags_cpu="-arch~ev67~-tune~ev67 -arch~ev6~-tune~ev6" ;;
4115 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
4122 # tune/alpha.asm assumes int==4bytes but unicos uses int==8bytes
4125 SPEED_CYCLECOUNTER_OBJ=alpha.lo
4126 cyclecounter_size=1 ;;
4131 # Cray vector machines.
4132 # This must come after alpha* so that we can recognize present and future
4133 # vector processors with a wildcard.
4135 gmp_asm_syntax_testing=no
4137 # We used to have -hscalar0 here as a workaround for miscompilation of
4138 # mpz/import.c, but let's hope Cray fixes their bugs instead, since
4139 # -hscalar0 causes disastrously poor code to be generated.
4140 cc_cflags="-O3 -hnofastmd -htask0 -Wa,-B"
4146 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4147 gcc_cflags_optlist="arch tune"
4148 gcc_cflags_maybe="-marm"
4149 gcc_testlist="gcc-arm-umodsi"
4151 echo "include_mpn(\`arm/arm-defs.m4')" >> $gmp_tmpconfigm4i
4153 CALLING_CONVENTIONS_OBJS='arm32call.lo arm32check.lo'
4158 gcc_cflags_arch="-march=armv4"
4160 armxscale | arm926 | arm946 | arm966 | arm1026 | armv5*)
4162 gcc_cflags_arch="-march=armv5"
4164 arm11mpcore | arm1136 | arm1176 | armv6*)
4165 path="arm/v6 arm/v5 arm"
4166 gcc_cflags_arch="-march=armv6"
4169 path="arm/v6t2 arm/v6 arm/v5 arm"
4170 gcc_cflags_arch="-march=armv6t2"
4173 path="arm/v7a/cora9 arm/v6t2 arm/v6 arm/v5 arm"
4174 gcc_cflags_arch="-march=armv7-a"
4175 gcc_cflags_tune="-mtune=cortex-a9"
4178 path="arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm"
4179 gcc_cflags_arch="-march=armv7-a"
4180 gcc_cflags_tune="-mtune=cortex-a15 -mtune=cortex-a9"
4182 armcortexa5 | armcortexa8 | armv7a*)
4183 path="arm/v6t2 arm/v6 arm/v5 arm"
4184 gcc_cflags_arch="-march=armv7-a"
4199 f30[01]-fujitsu-sysv*)
4201 # FIXME: flags for vcc?
4208 # HP cc (the one sold separately) is K&R by default, but AM_C_PROTOTYPES
4209 # will add "-Ae", or "-Aa -D_HPUX_SOURCE", to put it into ansi mode, if
4212 # gcc for hppa 2.0 can be built either for 2.0n (32-bit) or 2.0w
4213 # (64-bit), but not both, so there's no option to choose the desired
4214 # mode, we must instead detect which of the two it is. This is done by
4215 # checking sizeof(long), either 4 or 8 bytes respectively. Do this in
4216 # ABI=1.0 too, in case someone tries to build that with a 2.0w gcc.
4218 gcc_cflags_optlist="arch"
4219 gcc_testlist="sizeof-long-4"
4220 SPEED_CYCLECOUNTER_OBJ=hppa.lo
4223 # FIXME: For hppa2.0*, path should be "pa32/hppa2_0 pa32/hppa1_1 pa32".
4224 # (Can't remember why this isn't done already, have to check what .asm
4225 # files are available in each and how they run on a typical 2.0 cpu.)
4228 hppa1.0*) path="pa32" ;;
4229 hppa7000*) path="pa32/hppa1_1 pa32" ;;
4231 path="pa32/hppa2_0 pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
4232 *) # default to 7100
4233 path="pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
4236 # gcc 2.7.2.3 knows -mpa-risc-1-0 and -mpa-risc-1-1
4237 # gcc 2.95 adds -mpa-risc-2-0, plus synonyms -march=1.0, 1.1 and 2.0
4239 # We don't use -mpa-risc-2-0 in ABI=1.0 because 64-bit registers may not
4240 # be saved by the kernel on an old system. Actually gcc (as of 3.2)
4241 # only adds a few float instructions with -mpa-risc-2-0, so it would
4242 # probably be safe, but let's not take the chance. In any case, a
4243 # configuration like --host=hppa2.0 ABI=1.0 is far from optimal.
4246 hppa1.0*) gcc_cflags_arch="-mpa-risc-1-0" ;;
4247 *) # default to 7100
4248 gcc_cflags_arch="-mpa-risc-1-1" ;;
4252 hppa1.0*) cc_cflags="+O2" ;;
4253 *) # default to 7100
4254 cc_cflags="+DA1.1 +O2" ;;
4258 hppa2.0*-*-* | hppa64-*-*)
4263 any_20n_testlist="sizeof-long-4"
4264 SPEED_CYCLECOUNTER_OBJ_20n=hppa2.lo
4265 cyclecounter_size_20n=2
4267 # -mpa-risc-2-0 is only an optional flag, in case an old gcc is
4268 # used. Assembler support for 2.0 is essential though, for our asm
4270 gcc_20n_cflags="$gcc_cflags"
4271 gcc_20n_cflags_optlist="arch"
4272 gcc_20n_cflags_arch="-mpa-risc-2-0 -mpa-risc-1-1"
4273 gcc_20n_testlist="sizeof-long-4 hppa-level-2.0"
4275 cc_20n_cflags="+DA2.0 +e +O2 -Wl,+vnocompatwarnings"
4276 cc_20n_testlist="hpc-hppa-2-0"
4278 # ABI=2.0w is available for hppa2.0w and hppa2.0, but not for
4279 # hppa2.0n, on the assumption that that the latter indicates a
4280 # desire for ABI=2.0n.
4284 # HPUX 10 and earlier cannot run 2.0w. Not sure about other
4285 # systems (GNU/Linux for instance), but lets assume they're ok.
4287 *-*-hpux[1-9] | *-*-hpux[1-9].* | *-*-hpux10 | *-*-hpux10.*) ;;
4288 *-*-linux*) abilist="1.0" ;; # due to linux permanent kernel bug
4289 *) abilist="2.0w $abilist" ;;
4293 gcc_20w_cflags="$gcc_cflags -mpa-risc-2-0"
4294 cc_20w_cflags="+DD64 +O2"
4295 cc_20w_testlist="hpc-hppa-2-0"
4297 any_20w_testlist="sizeof-long-8"
4298 SPEED_CYCLECOUNTER_OBJ_20w=hppa2w.lo
4299 cyclecounter_size_20w=2
4312 ia64*-*-* | itanium-*-* | itanium2-*-*)
4315 echo "include_mpn(\`ia64/ia64-defs.m4')" >> $gmp_tmpconfigm4i
4317 SPEED_CYCLECOUNTER_OBJ=ia64.lo
4318 any_32_testlist="sizeof-long-4"
4321 itanium) path="ia64/itanium ia64" ;;
4322 itanium2) path="ia64/itanium2 ia64" ;;
4326 gcc_64_cflags_optlist="tune"
4327 gcc_32_cflags_optlist=$gcc_64_cflags_optlist
4329 # gcc pre-release 3.4 adds -mtune itanium and itanium2
4331 itanium) gcc_cflags_tune="-mtune=itanium" ;;
4332 itanium2) gcc_cflags_tune="-mtune=itanium2" ;;
4338 icc_cflags="-no-gcc"
4339 icc_cflags_optlist="opt"
4340 # Don't use -O3, it is for "large data sets" and also miscompiles GMP.
4341 # But icc miscompiles GMP at any optimization level, at higher levels
4342 # it miscompiles more files...
4343 icc_cflags_opt="-O2 -O1"
4347 # HP cc sometimes gets internal errors if the optimization level is
4348 # too high. GMP_PROG_CC_WORKS detects this, the "_opt" fallbacks
4349 # let us use whatever seems to work.
4352 any_64_testlist="sizeof-long-8"
4357 cc_32_cflags_optlist="opt"
4358 cc_32_cflags_opt="+O3 +O2 +O1"
4359 gcc_32_cflags="$gcc_cflags -milp32"
4361 SPEED_CYCLECOUNTER_OBJ_32=ia64.lo
4362 cyclecounter_size_32=2
4364 # Must have +DD64 in CPPFLAGS to get the right __LP64__ for headers,
4365 # but also need it in CFLAGS for linking programs, since automake
4366 # only uses CFLAGS when linking, not CPPFLAGS.
4367 # FIXME: Maybe should use cc_64_ldflags for this, but that would
4368 # need GMP_LDFLAGS used consistently by all the programs.
4370 cc_64_cflags="+DD64"
4371 cc_64_cppflags="+DD64"
4372 cc_64_cflags_optlist="opt"
4373 cc_64_cflags_opt="+O3 +O2 +O1"
4374 gcc_64_cflags="$gcc_cflags -mlp64"
4382 m68k-*-* | m68[0-9][0-9][0-9]-*-*)
4383 $as_echo "#define HAVE_HOST_CPU_FAMILY_m68k 1" >>confdefs.h
4386 echo "include_mpn(\`m68k/m68k-defs.m4')" >> $gmp_tmpconfigm4i
4388 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4389 gcc_cflags_optlist="arch"
4391 # gcc 2.7.2 knows -m68000, -m68020, -m68030, -m68040.
4392 # gcc 2.95 adds -mcpu32, -m68060.
4393 # FIXME: Maybe "-m68020 -mnobitfield" would suit cpu32 on 2.7.2.
4396 m68020) gcc_cflags_arch="-m68020" ;;
4397 m68030) gcc_cflags_arch="-m68030" ;;
4398 m68040) gcc_cflags_arch="-m68040" ;;
4399 m68060) gcc_cflags_arch="-m68060 -m68000" ;;
4400 m68360) gcc_cflags_arch="-mcpu32 -m68000" ;;
4401 *) gcc_cflags_arch="-m68000" ;;
4404 # FIXME: m68k/mc68020 looks like it's ok for cpu32, but this wants to be
4405 # tested. Will need to introduce an m68k/cpu32 if m68k/mc68020 ever uses
4406 # the bitfield instructions.
4408 m680[234]0 | m68360) path="m68k/mc68020 m68k" ;;
4419 gcc_cflags="$gcc_cflags -m88110"
4420 path="m88k/mc88110 m88k"
4424 # National Semiconductor 32k
4430 # IRIX 5 and earlier can only run 32-bit o32.
4432 # IRIX 6 and up always has a 64-bit mips CPU can run n32 or 64. n32 is
4433 # preferred over 64, but only because that's been the default in past
4434 # versions of GMP. The two are equally efficient.
4436 # Linux kernel 2.2.13 arch/mips/kernel/irixelf.c has a comment about not
4437 # supporting n32 or 64.
4439 # For reference, libtool (eg. 1.5.6) recognises the n32 ABI and knows the
4440 # right options to use when linking (both cc and gcc), so no need for
4441 # anything special from us.
4445 gcc_cflags_optlist="abi"
4446 gcc_cflags_abi="-mabi=32"
4447 gcc_testlist="gcc-mips-o32"
4449 cc_cflags="-O2 -o32" # no -g, it disables all optimizations
4450 # this suits both mips32 and mips64
4452 echo "include_mpn(\`mips32/mips-defs.m4')" >> $gmp_tmpconfigm4i
4456 mips64*-*-* | mips*-*-irix[6789]*)
4457 abilist="n32 64 o32"
4460 gcc_n32_cflags="$gcc_cflags -mabi=n32"
4461 cc_n32_cflags="-O2 -n32" # no -g, it disables all optimizations
4466 gcc_64_cflags="$gcc_cflags -mabi=64"
4467 gcc_64_ldflags="-Wc,-mabi=64"
4468 cc_64_cflags="-O2 -64" # no -g, it disables all optimizations
4469 cc_64_ldflags="-Wc,-64"
4476 # Darwin (powerpc-apple-darwin1.3) has it's hacked gcc installed as cc.
4477 # Our usual "gcc in disguise" detection means gcc_cflags etc here gets
4480 # The darwin pre-compiling preprocessor is disabled with -no-cpp-precomp
4481 # since it doesn't like "__attribute__ ((mode (SI)))" etc in gmp-impl.h,
4482 # and so always ends up running the plain preprocessor anyway. This could
4483 # be done in CPPFLAGS rather than CFLAGS, but there's not many places
4484 # preprocessing is done separately, and this is only a speedup, the normal
4485 # preprocessor gets run if there's any problems.
4487 # We used to use -Wa,-mppc with gcc, but can't remember exactly why.
4488 # Presumably it was for old versions of gcc where -mpowerpc doesn't put
4489 # the assembler in the right mode. In any case -Wa,-mppc is not good, for
4490 # instance -mcpu=604 makes recent gcc use -m604 to get access to the
4491 # "fsel" instruction, but a -Wa,-mppc overrides that, making code that
4492 # comes out with fsel fail.
4494 # (Note also that the darwin assembler doesn't accept "-mppc", so any
4495 # -Wa,-mppc was used only if it worked. The right flag on darwin would be
4496 # "-arch ppc" or some such, but that's already the default.)
4498 powerpc*-*-* | power[3-9]-*-*)
4499 $as_echo "#define HAVE_HOST_CPU_FAMILY_powerpc 1" >>confdefs.h
4501 HAVE_HOST_CPU_FAMILY_powerpc=1
4505 gcc_32_cflags="$gcc_cflags -mpowerpc"
4506 gcc_cflags_optlist="precomp subtype asm cpu"
4507 gcc_cflags_precomp="-no-cpp-precomp"
4508 gcc_cflags_subtype="-force_cpusubtype_ALL" # for vmx on darwin
4513 # grab this object, though it's not a true cycle counter routine
4514 SPEED_CYCLECOUNTER_OBJ=powerpc.lo
4518 powerpc740 | powerpc750)
4519 path="powerpc32/750 powerpc32" ;;
4520 powerpc7400 | powerpc7410)
4521 path="powerpc32/vmx powerpc32/750 powerpc32" ;;
4523 path="powerpc32/vmx powerpc32" ;;
4529 powerpc401) gcc_cflags_cpu="-mcpu=401" ;;
4530 powerpc403) gcc_cflags_cpu="-mcpu=403"
4531 xlc_cflags_arch="-qarch=403 -qarch=ppc" ;;
4532 powerpc405) gcc_cflags_cpu="-mcpu=405" ;;
4533 powerpc505) gcc_cflags_cpu="-mcpu=505" ;;
4534 powerpc601) gcc_cflags_cpu="-mcpu=601"
4535 xlc_cflags_arch="-qarch=601 -qarch=ppc" ;;
4536 powerpc602) gcc_cflags_cpu="-mcpu=602"
4537 xlc_cflags_arch="-qarch=602 -qarch=ppc" ;;
4538 powerpc603) gcc_cflags_cpu="-mcpu=603"
4539 xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
4540 powerpc603e) gcc_cflags_cpu="-mcpu=603e -mcpu=603"
4541 xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
4542 powerpc604) gcc_cflags_cpu="-mcpu=604"
4543 xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
4544 powerpc604e) gcc_cflags_cpu="-mcpu=604e -mcpu=604"
4545 xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
4546 powerpc620) gcc_cflags_cpu="-mcpu=620" ;;
4547 powerpc630) gcc_cflags_cpu="-mcpu=630"
4548 xlc_cflags_arch="-qarch=pwr3"
4549 cpu_path="p3 p3-p7" ;;
4550 powerpc740) gcc_cflags_cpu="-mcpu=740" ;;
4551 powerpc7400 | powerpc7410)
4552 gcc_cflags_asm="-Wa,-maltivec"
4553 gcc_cflags_cpu="-mcpu=7400 -mcpu=750" ;;
4555 gcc_cflags_asm="-Wa,-maltivec"
4556 gcc_cflags_cpu="-mcpu=7450" ;;
4557 powerpc750) gcc_cflags_cpu="-mcpu=750" ;;
4558 powerpc801) gcc_cflags_cpu="-mcpu=801" ;;
4559 powerpc821) gcc_cflags_cpu="-mcpu=821" ;;
4560 powerpc823) gcc_cflags_cpu="-mcpu=823" ;;
4561 powerpc860) gcc_cflags_cpu="-mcpu=860" ;;
4562 powerpc970) gcc_cflags_cpu="-mtune=970"
4563 xlc_cflags_arch="-qarch=970 -qarch=pwr3"
4564 vmx_path="powerpc64/vmx"
4565 cpu_path="p4 p3-p7" ;;
4566 power4) gcc_cflags_cpu="-mtune=power4"
4567 xlc_cflags_arch="-qarch=pwr4"
4568 cpu_path="p4 p3-p7" ;;
4569 power5) gcc_cflags_cpu="-mtune=power5 -mtune=power4"
4570 xlc_cflags_arch="-qarch=pwr5"
4571 cpu_path="p5 p4 p3-p7" ;;
4572 power6) gcc_cflags_cpu="-mtune=power6"
4573 xlc_cflags_arch="-qarch=pwr6"
4574 cpu_path="p6 p3-p7" ;;
4575 power7) gcc_cflags_cpu="-mtune=power7 -mtune=power5"
4576 xlc_cflags_arch="-qarch=pwr7 -qarch=pwr5"
4577 cpu_path="p7 p5 p4 p3-p7" ;;
4583 gcc_32_cflags_maybe="-maix32"
4584 xlc_cflags="-O2 -qmaxmem=20000"
4585 xlc_cflags_optlist="arch"
4586 xlc_32_cflags_maybe="-q32"
4592 powerpc64-*-* | powerpc64le-*-* | powerpc620-*-* | powerpc630-*-* | powerpc970-*-* | power[3-9]-*-*)
4595 # On AIX a true 64-bit ABI is available.
4596 # Need -Wc to pass object type flags through to the linker.
4597 abilist="mode64 $abilist"
4598 cclist_mode64="gcc xlc"
4599 gcc_mode64_cflags="$gcc_cflags -maix64 -mpowerpc64"
4600 gcc_mode64_cflags_optlist="cpu"
4601 gcc_mode64_ldflags="-Wc,-maix64"
4602 xlc_mode64_cflags="-O2 -q64 -qmaxmem=20000"
4603 xlc_mode64_cflags_optlist="arch"
4604 xlc_mode64_ldflags="-Wc,-q64"
4605 # Must indicate object type to ar and nm
4606 ar_mode64_flags="-X64"
4607 nm_mode64_flags="-X64"
4611 do path_mode64="${path_mode64}powerpc64/mode64/$i "
4612 path_mode64="${path_mode64}powerpc64/$i "
4613 p="${p} powerpc32/$i "
4615 path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64"
4617 # grab this object, though it's not a true cycle counter routine
4618 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
4619 cyclecounter_size_mode64=0
4622 # On Darwin we can use 64-bit instructions with a longlong limb,
4623 # but the chip still in 32-bit mode.
4624 # In theory this can be used on any OS which knows how to save
4625 # 64-bit registers in a context switch.
4627 # Note that we must use -mpowerpc64 with gcc, since the
4628 # longlong.h macros expect limb operands in a single 64-bit
4629 # register, not two 32-bit registers as would be given for a
4630 # long long without -mpowerpc64. In theory we could detect and
4631 # accommodate both styles, but the proper 64-bit registers will
4632 # be fastest and are what we really want to use.
4634 # One would think -mpowerpc64 would set the assembler in the right
4635 # mode to handle 64-bit instructions. But for that, also
4636 # -force_cpusubtype_ALL is needed.
4638 # Do not use -fast for Darwin, it actually adds options
4639 # incompatible with a shared library.
4641 abilist="mode64 mode32 $abilist"
4642 gcc_32_cflags_maybe="-m32"
4643 gcc_cflags_opt="-O3 -O2 -O1" # will this become used?
4645 gcc_mode32_cflags_maybe="-m32"
4646 gcc_mode32_cflags="-mpowerpc64"
4647 gcc_mode32_cflags_optlist="subtype cpu opt"
4648 gcc_mode32_cflags_subtype="-force_cpusubtype_ALL"
4649 gcc_mode32_cflags_opt="-O3 -O2 -O1"
4650 limb_mode32=longlong
4652 gcc_mode64_cflags="-m64"
4653 gcc_mode64_cflags_optlist="cpu opt"
4654 gcc_mode64_cflags_opt="-O3 -O2 -O1"
4659 do path_mode64="${path_mode64}powerpc64/mode64/$i "
4660 path_mode64="${path_mode64}powerpc64/$i "
4661 path_mode32="${path_mode32}powerpc64/mode32/$i "
4662 path_mode32="${path_mode32}powerpc64/$i "
4663 p="${p} powerpc32/$i "
4665 path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64"
4666 path_mode32="${path_mode32}powerpc64/mode32 $vmx_path powerpc64"
4668 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
4669 cyclecounter_size_mode64=0
4670 any_mode64_testlist="sizeof-long-8"
4672 *-*-linux* | *-*-*bsd*)
4673 # On GNU/Linux, assume the processor is in 64-bit mode. Some
4674 # environments have a gcc that is always in 64-bit mode, while
4675 # others require -m64, hence the use of cflags_maybe. The
4676 # sizeof-long-8 test checks the mode is right (for the no option
4679 # -mpowerpc64 is not used, since it should be the default in
4680 # 64-bit mode. (We need its effect for the various longlong.h
4681 # asm macros to be right of course.)
4683 # gcc64 was an early port of gcc to 64-bit mode, but should be
4684 # obsolete before too long. We prefer plain gcc when it knows
4687 abilist="mode64 mode32 $abilist"
4688 gcc_32_cflags_maybe="-m32"
4690 gcc_mode32_cflags_maybe="-m32"
4691 gcc_mode32_cflags="-mpowerpc64"
4692 gcc_mode32_cflags_optlist="cpu opt"
4693 gcc_mode32_cflags_opt="-O3 -O2 -O1"
4694 limb_mode32=longlong
4695 cclist_mode64="gcc gcc64"
4696 gcc_mode64_cflags_maybe="-m64"
4697 gcc_mode64_cflags_optlist="cpu opt"
4698 gcc_mode64_cflags_opt="-O3 -O2 -O1"
4703 do path_mode64="${path_mode64}powerpc64/mode64/$i "
4704 path_mode64="${path_mode64}powerpc64/$i "
4705 path_mode32="${path_mode32}powerpc64/mode32/$i "
4706 path_mode32="${path_mode32}powerpc64/$i "
4707 p="${p} powerpc32/$i "
4709 path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64"
4710 path_mode32="${path_mode32}powerpc64/mode32 $vmx_path powerpc64"
4712 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
4713 cyclecounter_size_mode64=0
4714 any_mode64_testlist="sizeof-long-8"
4723 power-*-* | power[12]-*-* | power2sc-*-*)
4724 $as_echo "#define HAVE_HOST_CPU_FAMILY_power 1" >>confdefs.h
4726 HAVE_HOST_CPU_FAMILY_power=1
4728 extra_functions="udiv_w_sdiv"
4731 # gcc 2.7.2 knows rios1, rios2, rsc
4733 # -mcpu=rios2 can tickle an AIX assembler bug (see GMP_PROG_CC_WORKS) so
4734 # there needs to be a fallback to just -mpower.
4736 gcc_cflags_optlist="cpu"
4738 power-*-*) gcc_cflags_cpu="-mcpu=power -mpower" ;;
4739 power1-*-*) gcc_cflags_cpu="-mcpu=rios1 -mpower" ;;
4740 power2-*-*) gcc_cflags_cpu="-mcpu=rios2 -mpower" ;;
4741 power2sc-*-*) gcc_cflags_cpu="-mcpu=rsc -mpower" ;;
4746 xlc_cflags="-O2 -qarch=pwr -qmaxmem=20000"
4757 # IBM System/390 and z/Architecture
4758 s390-*-* | z900esa-*-* | z990esa-*-* | z9esa-*-* | z10esa-*-* | z196esa-*-* | s390x-*-* | z900-*-* | z990-*-* | z9-*-* | z10-*-* | z196-*-*)
4760 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4761 gcc_cflags_optlist="arch"
4763 extra_functions="udiv_w_sdiv"
4764 gcc_32_cflags_maybe="-m31"
4772 path="s390_32/esame/$cpu s390_32/esame s390_32"
4773 gcc_cflags_arch="-march=$gccarch"
4774 cat >>confdefs.h <<_ACEOF
4775 #define HAVE_HOST_CPU_s390_$cpu 1
4778 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4785 path="s390_32/esame/$cpu s390_32/esame s390_32"
4786 gcc_cflags_arch="-march=$gccarch"
4787 cat >>confdefs.h <<_ACEOF
4788 #define HAVE_HOST_CPU_s390_$cpu 1
4791 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4798 path="s390_32/esame/$cpu s390_32/esame s390_32"
4799 gcc_cflags_arch="-march=$gccarch"
4800 cat >>confdefs.h <<_ACEOF
4801 #define HAVE_HOST_CPU_s390_$cpu 1
4804 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4811 path="s390_32/esame/$cpu s390_32/esame s390_32"
4812 gcc_cflags_arch="-march=$gccarch"
4813 cat >>confdefs.h <<_ACEOF
4814 #define HAVE_HOST_CPU_s390_$cpu 1
4817 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4824 path="s390_32/esame/$cpu s390_32/esame s390_32"
4825 gcc_cflags_arch="-march=$gccarch"
4826 cat >>confdefs.h <<_ACEOF
4827 #define HAVE_HOST_CPU_s390_$cpu 1
4830 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4837 s390x-*-* | z900-*-* | z990-*-* | z9-*-* | z10-*-* | z196-*-*)
4840 gcc_64_cflags_optlist="arch"
4841 gcc_64_cflags="$gcc_cflags -m64"
4842 path_64="s390_64/$host_cpu s390_64"
4849 sh-*-*) path="sh" ;;
4850 sh[2-4]-*-*) path="sh/sh2 sh" ;;
4854 # sizeof(long)==4 or 8 is tested, to ensure we get the right ABI. We've
4855 # had various bug reports where users have set CFLAGS for their desired
4856 # mode, but not set our ABI. For some reason it's sparc where this
4857 # keeps coming up, presumably users there are accustomed to driving the
4858 # compiler mode that way. The effect of our testlist setting is to
4859 # reject ABI=64 in favour of ABI=32 if the user has forced the flags to
4864 any_testlist="sizeof-long-4"
4866 echo "include_mpn(\`sparc32/sparc-defs.m4')" >> $gmp_tmpconfigm4i
4870 sparcv8 | microsparc | turbosparc)
4871 path="sparc32/v8 sparc32" ;;
4873 path="sparc32/v8/supersparc sparc32/v8 sparc32" ;;
4874 sparc64 | sparcv9* | ultrasparc | ultrasparc[234]*)
4875 path="sparc32/v9 sparc32/v8 sparc32" ;;
4877 path="sparc32/ultrasparct1 sparc32/v8 sparc32" ;;
4882 # gcc 2.7.2 doesn't know about v9 and doesn't pass -xarch=v8plus to the
4883 # assembler. Add it explicitly since the solaris assembler won't accept
4884 # our sparc32/v9 asm code without it. gas accepts -xarch=v8plus too, so
4885 # it can be in the cflags unconditionally (though gas doesn't need it).
4887 # gcc -m32 is needed to force 32-bit mode on a dual-ABI system, but past
4888 # gcc doesn't know that flag, hence cflags_maybe. Note that -m32 cannot
4889 # be done through the optlist since the plain cflags would be run first
4890 # and we don't want to require the default mode (whatever it is) works.
4892 # Note it's gcc_32_cflags_maybe and not gcc_cflags_maybe because the
4893 # latter would be used in the 64-bit ABI on systems like "*bsd" where
4894 # abilist="64" only.
4898 gcc_32_cflags="$gcc_cflags -Wa,-xarch=v8plusd" ;;
4899 sparc64 | sparcv9* | ultrasparc*)
4900 gcc_32_cflags="$gcc_cflags -Wa,-xarch=v8plus" ;;
4902 gcc_32_cflags_maybe="-m32"
4903 gcc_cflags_optlist="cpu"
4905 # gcc 2.7.2 knows -mcypress, -msupersparc, -mv8, -msparclite.
4906 # gcc 2.95 knows -mcpu= v7, hypersparc, sparclite86x, f930, f934,
4907 # sparclet, tsc701, v9, ultrasparc. A warning is given that the
4908 # plain -m forms will disappear.
4909 # gcc 3.0 adds nothing.
4910 # gcc 3.1 adds nothing.
4911 # gcc 3.2 adds nothing.
4912 # gcc 3.3 adds ultrasparc3.
4915 supersparc) gcc_cflags_cpu="-mcpu=supersparc -msupersparc" ;;
4916 sparcv8 | microsparc | turbosparc)
4917 gcc_cflags_cpu="-mcpu=v8 -mv8" ;;
4918 sparc64 | sparcv9*) gcc_cflags_cpu="-mcpu=v9 -mv8" ;;
4919 ultrasparc3) gcc_cflags_cpu="-mcpu=ultrasparc3 -mcpu=ultrasparc -mv8" ;;
4920 ultrasparc*) gcc_cflags_cpu="-mcpu=ultrasparc -mv8" ;;
4921 *) gcc_cflags_cpu="-mcpu=v7 -mcypress" ;;
4924 # SunPRO cc and acc, and SunOS bundled cc
4926 *-*-solaris* | *-*-sunos*)
4927 # Note no -g, it disables all optimizations.
4929 cc_cflags_optlist="opt arch cpu"
4931 # SunOS cc doesn't know -xO4, fallback to -O2.
4932 cc_cflags_opt="-xO4 -O2"
4934 # SunOS cc doesn't know -xarch, apparently always generating v7
4935 # code, so make this optional
4937 sparcv8 | microsparc | supersparc | turbosparc)
4938 cc_cflags_arch="-xarch=v8" ;;
4939 ultrasparct[345]) cc_cflags_arch="-xarch=v8plusd" ;;
4940 sparc64 | sparcv9* | ultrasparc*) cc_cflags_arch="-xarch=v8plus" ;;
4941 *) cc_cflags_arch="-xarch=v7" ;;
4944 # SunOS cc doesn't know -xchip and doesn't seem to have an equivalent.
4945 # SunPRO cc 5 recognises -xchip=generic, old, super, super2, micro,
4946 # micro2, hyper, hyper2, powerup, ultra, ultra2, ultra2i.
4947 # SunPRO cc 6 adds -xchip=ultra2e, ultra3cu.
4949 # FIXME: Which of ultra, ultra2 or ultra2i is the best fallback for
4953 supersparc) cc_cflags_cpu="-xchip=super" ;;
4954 microsparc) cc_cflags_cpu="-xchip=micro" ;;
4955 turbosparc) cc_cflags_cpu="-xchip=micro2" ;;
4956 ultrasparc) cc_cflags_cpu="-xchip=ultra" ;;
4957 ultrasparc2) cc_cflags_cpu="-xchip=ultra2" ;;
4958 ultrasparc2i) cc_cflags_cpu="-xchip=ultra2i" ;;
4959 ultrasparc3) cc_cflags_cpu="-xchip=ultra3 -xchip=ultra" ;;
4960 *) cc_cflags_cpu="-xchip=generic" ;;
4965 sparc64 | sparcv9* | ultrasparc*)
4967 # Solaris 6 and earlier cannot run ABI=64 since it doesn't save
4968 # registers properly, so ABI=32 is left as the only choice.
4970 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
4972 # BSD sparc64 ports are 64-bit-only systems, so ABI=64 is the only
4973 # choice. In fact they need no special compiler flags, gcc -m64
4974 # is the default, but it doesn't hurt to add it. v9 CPUs always
4975 # use the sparc64 port, since the plain 32-bit sparc ports don't
4978 *-*-*bsd*) abilist="64" ;;
4980 # For all other systems, we try both 64 and 32.
4982 # GNU/Linux sparc64 has only recently gained a 64-bit user mode.
4983 # In the past sparc64 meant a v9 cpu, but there were no 64-bit
4984 # operations in user mode. We assume that if "gcc -m64" works
4985 # then the system is suitable. Hopefully even if someone attempts
4986 # to put a new gcc and/or glibc on an old system it won't run.
4988 *) abilist="64 32" ;;
4992 ultrasparc | ultrasparc2 | ultrasparc2i)
4993 path_64="sparc64/ultrasparc1234 sparc64" ;;
4995 path_64="sparc64/ultrasparc34 sparc64/ultrasparc1234 sparc64" ;;
4997 path_64="sparc64/ultrasparct1 sparc64" ;;
5003 any_64_testlist="sizeof-long-8"
5005 # gcc -mptr64 is probably implied by -m64, but we're not sure if
5006 # this was always so. On Solaris in the past we always used both
5009 # gcc -Wa,-xarch=v9 is thought to be necessary in some cases on
5010 # solaris, but it would seem likely that if gcc is going to generate
5011 # 64-bit code it will have to add that option itself where needed.
5012 # An extra copy of this option should be harmless though, but leave
5013 # it until we're sure. (Might want -xarch=v9a or -xarch=v9b for the
5014 # higher cpu types instead.)
5016 gcc_64_cflags="$gcc_cflags -m64 -mptr64"
5017 gcc_64_ldflags="-Wc,-m64"
5018 gcc_64_cflags_optlist="cpu"
5024 # We used to have -fast and some fixup options here, but it
5025 # recurrently caused problems with miscompilation. Of course,
5026 # -fast is documented as miscompiling things for the sake of speed.
5028 cclist_64="$cclist_64 cc"
5029 cc_64_cflags="-xO3 -xarch=v9"
5030 cc_64_cflags_optlist="cpu"
5034 # using the v9 %tick register
5035 SPEED_CYCLECOUNTER_OBJ_32=sparcv9.lo
5036 SPEED_CYCLECOUNTER_OBJ_64=sparcv9.lo
5037 cyclecounter_size_32=2
5038 cyclecounter_size_64=2
5046 # Use elf conventions (i.e., '%' register prefix, no global prefix)
5049 echo "include_mpn(\`vax/elf.m4')" >> $gmp_tmpconfigm4i
5051 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
5053 extra_functions="udiv_w_sdiv"
5056 # Default to aout conventions (i.e., no register prefix, '_' global prefix)
5058 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
5060 extra_functions="udiv_w_sdiv"
5064 # AMD and Intel x86 configurations, including AMD64
5066 # Rumour has it gcc -O2 used to give worse register allocation than just
5067 # -O, but lets assume that's no longer true.
5069 # -m32 forces 32-bit mode on a bi-arch 32/64 amd64 build of gcc. -m64 is
5070 # the default in such a build (we think), so -m32 is essential for ABI=32.
5071 # This is, of course, done for any $host_cpu, not just x86_64, so we can
5072 # get such a gcc into the right mode to cross-compile to say i486-*-*.
5074 # -m32 is not available in gcc 2.95 and earlier, hence cflags_maybe to use
5075 # it when it works. We check sizeof(long)==4 to ensure we get the right
5076 # mode, in case -m32 has failed not because it's an old gcc, but because
5077 # it's a dual 32/64-bit gcc without a 32-bit libc, or whatever.
5079 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
5082 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
5083 gcc_32_cflags_maybe="-m32"
5084 icc_cflags="-no-gcc"
5085 icc_cflags_optlist="opt"
5086 icc_cflags_opt="-O3 -O2 -O1"
5087 any_32_testlist="sizeof-long-4"
5088 CALLING_CONVENTIONS_OBJS='x86call.lo x86check$U.lo'
5090 # Availability of rdtsc is checked at run-time.
5091 SPEED_CYCLECOUNTER_OBJ=pentium.lo
5093 # gcc 2.7.2 only knows i386 and i486, using -m386 or -m486. These
5094 # represent -mcpu= since -m486 doesn't generate 486 specific insns.
5095 # gcc 2.95 adds k6, pentium and pentiumpro, and takes -march= and -mcpu=.
5096 # gcc 3.0 adds athlon.
5097 # gcc 3.1 adds k6-2, k6-3, pentium-mmx, pentium2, pentium3, pentium4,
5098 # athlon-tbird, athlon-4, athlon-xp, athlon-mp.
5099 # gcc 3.2 adds winchip2.
5100 # gcc 3.3 adds winchip-c6.
5101 # gcc 3.3.1 from mandrake adds k8 and knows -mtune.
5102 # gcc 3.4 adds c3, c3-2, k8, and deprecates -mcpu in favour of -mtune.
5104 # In gcc 2.95.[0123], -march=pentiumpro provoked a stack slot bug in an
5105 # old version of mpz/powm.c. Seems to be fine with the current code, so
5106 # no need for any restrictions on that option.
5108 # -march=pentiumpro can fail if the assembler doesn't know "cmov"
5109 # (eg. solaris 2.8 native "as"), so always have -march=pentium after
5110 # that as a fallback.
5112 # -march=pentium4 and -march=k8 enable SSE2 instructions, which may or
5113 # may not be supported by the assembler and/or the OS, and is bad in gcc
5114 # prior to 3.3. The tests will reject these if no good, so fallbacks
5115 # like "-march=pentium4 -mno-sse2" are given to try also without SSE2.
5116 # Note the relevant -march types are listed in the optflags handling
5117 # below, be sure to update there if adding new types emitting SSE2.
5119 # -mtune is used at the start of each cpu option list to give something
5120 # gcc 3.4 will use, thereby avoiding warnings from -mcpu. -mcpu forms
5121 # are retained for use by prior gcc. For example pentium has
5122 # "-mtune=pentium -mcpu=pentium ...", the -mtune is for 3.4 and the
5123 # -mcpu for prior. If there's a brand new choice in 3.4 for a chip,
5124 # like k8 for x86_64, then it can be the -mtune at the start, no need to
5125 # duplicate anything.
5127 gcc_cflags_optlist="cpu arch"
5130 gcc_cflags_cpu="-mtune=i386 -mcpu=i386 -m386"
5131 gcc_cflags_arch="-march=i386"
5135 gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486"
5136 gcc_cflags_arch="-march=i486"
5140 gcc_cflags_cpu="-mtune=pentium -mcpu=pentium -m486"
5141 gcc_cflags_arch="-march=pentium"
5142 path="x86/pentium x86"
5145 gcc_cflags_cpu="-mtune=pentium-mmx -mcpu=pentium-mmx -mcpu=pentium -m486"
5146 gcc_cflags_arch="-march=pentium-mmx -march=pentium"
5147 path="x86/pentium/mmx x86/pentium x86"
5150 gcc_cflags_cpu="-mtune=pentiumpro -mcpu=pentiumpro -mcpu=i486 -m486"
5151 gcc_cflags_arch="-march=pentiumpro -march=pentium"
5155 gcc_cflags_cpu="-mtune=pentium2 -mcpu=pentium2 -mcpu=pentiumpro -mcpu=i486 -m486"
5156 gcc_cflags_arch="-march=pentium2 -march=pentiumpro -march=pentium"
5157 path="x86/p6/mmx x86/p6 x86"
5160 gcc_cflags_cpu="-mtune=pentium3 -mcpu=pentium3 -mcpu=pentiumpro -mcpu=i486 -m486"
5161 gcc_cflags_arch="-march=pentium3 -march=pentiumpro -march=pentium"
5162 path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86"
5165 gcc_cflags_cpu="-mtune=pentium3 -mcpu=pentium3 -mcpu=pentiumpro -mcpu=i486 -m486"
5166 gcc_cflags_arch="-march=pentium3 -march=pentiumpro -march=pentium"
5167 path="x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86"
5170 gcc_cflags_cpu="-mtune=k6 -mcpu=k6 -mcpu=i486 -m486"
5171 gcc_cflags_arch="-march=k6"
5172 path="x86/k6/mmx x86/k6 x86"
5175 gcc_cflags_cpu="-mtune=k6-2 -mcpu=k6-2 -mcpu=k6 -mcpu=i486 -m486"
5176 gcc_cflags_arch="-march=k6-2 -march=k6"
5177 path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86"
5180 gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486"
5181 gcc_cflags_arch="-march=k6-3 -march=k6"
5182 path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86"
5185 gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486"
5186 gcc_cflags_arch="-march=k6-3 -march=k6"
5187 path="x86/geode x86/k6/k62mmx x86/k6/mmx x86/k6 x86"
5190 # Athlon instruction costs are close to P6 (3 cycle load latency,
5191 # 4-6 cycle mul, 40 cycle div, pairable adc, etc) so if gcc doesn't
5192 # know athlon (eg. 2.95.2 doesn't) then fall back on pentiumpro.
5193 gcc_cflags_cpu="-mtune=athlon -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
5194 gcc_cflags_arch="-march=athlon -march=pentiumpro -march=pentium"
5195 path="x86/k7/mmx x86/k7 x86"
5198 # pentiumpro is the primary fallback when gcc doesn't know pentium4.
5199 # This gets us cmov to eliminate branches. Maybe "athlon" would be
5200 # a possibility on gcc 3.0.
5202 gcc_cflags_cpu="-mtune=pentium4 -mcpu=pentium4 -mcpu=pentiumpro -mcpu=i486 -m486"
5203 gcc_cflags_arch="-march=pentium4 -march=pentium4~-mno-sse2 -march=pentiumpro -march=pentium"
5204 gcc_64_cflags_cpu="-mtune=nocona"
5205 path="x86/pentium4/sse2 x86/pentium4/mmx x86/pentium4 x86"
5206 path_64="x86_64/pentium4 x86_64"
5209 # Not sure of the best fallbacks here for -mcpu.
5210 # c3-2 has sse and mmx, so pentium3 is good for -march.
5211 gcc_cflags_cpu="-mtune=c3-2 -mcpu=c3-2 -mcpu=i486 -m486"
5212 gcc_cflags_arch="-march=c3-2 -march=pentium3 -march=pentiumpro -march=pentium"
5213 path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86"
5216 # Not sure of the best fallbacks here.
5217 gcc_cflags_cpu="-mtune=c3 -mcpu=c3 -mcpu=i486 -m486"
5218 gcc_cflags_arch="-march=c3 -march=pentium-mmx -march=pentium"
5219 path="x86/pentium/mmx x86/pentium x86"
5221 athlon64 | k8 | x86_64)
5222 gcc_cflags_cpu="-mtune=k8 -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
5223 gcc_cflags_arch="-march=k8 -march=k8~-mno-sse2 -march=athlon -march=pentiumpro -march=pentium"
5224 path="x86/k8 x86/k7/mmx x86/k7 x86"
5225 path_64="x86_64/k8 x86_64"
5228 gcc_cflags_cpu="-mtune=amdfam10 -mtune=k8"
5229 gcc_cflags_arch="-march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5230 path="x86/k10 x86/k8 x86/k7/mmx x86/k7 x86"
5231 path_64="x86_64/k10 x86_64/k8 x86_64"
5234 gcc_cflags_cpu="-mtune=btver1 -mtune=amdfam10 -mtune=k8"
5235 gcc_cflags_arch="-march=btver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5236 path="x86/bobcat x86/k7/mmx x86/k7 x86"
5237 path_64="x86_64/bobcat x86_64/k10 x86_64/k8 x86_64"
5240 gcc_cflags_cpu="-mtune=bdver1 -mtune=amdfam10 -mtune=k8"
5241 gcc_cflags_arch="-march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5242 path="x86/bd1 x86/k7/mmx x86/k7 x86"
5243 path_64="x86_64/bd1 x86_64/k10 x86_64/k8 x86_64"
5246 gcc_cflags_cpu="-mtune=core2 -mtune=k8"
5247 gcc_cflags_arch="-march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
5248 path="x86/core2 x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86"
5249 path_64="x86_64/core2 x86_64"
5251 corei | coreinhm | coreiwsm)
5252 gcc_cflags_cpu="-mtune=corei7 -mtune=core2 -mtune=k8"
5253 gcc_cflags_arch="-march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
5254 path="x86/coreinhm x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86"
5255 path_64="x86_64/coreinhm x86_64/core2 x86_64"
5257 coreisbr | coreihwl | coreibwl)
5258 gcc_cflags_cpu="-mtune=corei7 -mtune=core2 -mtune=k8"
5259 gcc_cflags_arch="-march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
5260 path="x86/coreisbr x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86"
5261 path_64="x86_64/coreisbr x86_64/coreinhm x86_64/core2 x86_64"
5264 gcc_cflags_cpu="-mtune=atom -mtune=pentium3"
5265 gcc_cflags_arch="-march=atom -march=pentium3"
5266 path="x86/atom/sse2 x86/atom/mmx x86/atom x86"
5267 path_64="x86_64/atom x86_64"
5270 gcc_cflags_cpu="-mtune=nano"
5271 gcc_cflags_arch="-march=nano"
5273 path_64="x86_64/nano x86_64"
5276 gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486"
5277 gcc_cflags_arch="-march=i486"
5284 athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
5286 gcc_64_cflags="$gcc_cflags -m64"
5287 gcc_64_cflags_optlist="cpu arch"
5288 CALLING_CONVENTIONS_OBJS_64='amd64call.lo amd64check$U.lo'
5289 SPEED_CYCLECOUNTER_OBJ_64=x86_64.lo
5290 cyclecounter_size_64=2
5293 gcc_x32_cflags="$gcc_cflags -mx32"
5294 gcc_x32_cflags_optlist="$gcc_64_cflags_optlist"
5295 CALLING_CONVENTIONS_OBJS_x32="$CALLING_CONVENTIONS_OBJS_64"
5296 SPEED_CYCLECOUNTER_OBJ_x32="$SPEED_CYCLECOUNTER_OBJ_64"
5297 cyclecounter_size_x32="$cyclecounter_size_64"
5300 any_x32_testlist="sizeof-long-4"
5303 if test "$enable_assembly" = "yes" ; then
5304 extra_functions_64="invert_limb_table"
5305 extra_functions_x32=$extra_functions_64
5311 cclist_64="$cclist_64 cc"
5312 cc_64_cflags="-xO3 -m64"
5314 *-*-mingw* | *-*-cygwin)
5316 CALLING_CONVENTIONS_OBJS_64=""
5318 $as_echo "#define HOST_DOS64 1" >>confdefs.h
5320 GMP_NONSTD_ABI_64=DOS64
5328 # FIXME: z8kx won't get through config.sub. Could make 16 versus 32 bit
5329 # limb an ABI option perhaps.
5332 extra_functions="udiv_w_sdiv"
5336 extra_functions="udiv_w_sdiv"
5340 # Special CPU "none" used to select generic C, now this is obsolete.
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the \"none\" host is obsolete, use --disable-assembly" >&5
5344 $as_echo "$as_me: WARNING: the \"none\" host is obsolete, use --disable-assembly" >&2;}
5349 # mingw can be built by the cygwin gcc if -mno-cygwin is added. For
5350 # convenience add this automatically if it works. Actual mingw gcc accepts
5351 # -mno-cygwin too, but of course is the default. mingw only runs on the
5352 # x86s, but allow any CPU here so as to catch "none" too.
5356 gcc_cflags_optlist="$gcc_cflags_optlist nocygwin"
5357 gcc_cflags_nocygwin="-mno-cygwin"
5362 CFLAGS_or_unset=${CFLAGS-'(unset)'}
5363 CPPFLAGS_or_unset=${CPPFLAGS-'(unset)'}
5369 CFLAGS=$CFLAGS_or_unset
5370 CPPFLAGS=$CPPFLAGS_or_unset
5378 test_CFLAGS=${CFLAGS+set}
5379 test_CPPFLAGS=${CPPFLAGS+set}
5381 for abi in $abilist; do
5385 # If the user specifies an ABI then it must be in $abilist, after that
5386 # $abilist is restricted to just that choice.
5388 if test -n "$ABI"; then
5390 for abi in $abilist; do
5391 if test $abi = "$ABI"; then found=yes; break; fi
5393 if test $found = no; then
5394 as_fn_error $? "ABI=$ABI is not among the following valid choices: $abilist" "$LINENO" 5
5401 for abi in $abilist; do
5403 echo "checking ABI=$abi"
5405 # Suppose abilist="64 32", then for abi=64, will have abi1="_64" and
5406 # abi2="_64". For abi=32, will have abi1="_32" and abi2="". This is how
5407 # $gcc_cflags becomes a fallback for $gcc_32_cflags (the last in the
5408 # abilist), but there's no fallback for $gcc_64_cflags.
5410 abi1=`echo _$abi | sed 's/[.]//g'`
5411 if test $abi = $abi_last; then abi2=; else abi2="$abi1"; fi
5413 # Compiler choices under this ABI
5414 eval cclist_chosen=\"\$cclist$abi1\"
5415 test -n "$cclist_chosen" || eval cclist_chosen=\"\$cclist$abi2\"
5417 # If there's a user specified $CC then don't use a list for
5418 # $cclist_chosen, just a single value for $ccbase.
5420 if test -n "$CC"; then
5422 # The first word of $CC, stripped of any directory. For instance
5423 # CC="/usr/local/bin/gcc -pipe" will give "gcc".
5425 for ccbase in $CC; do break; done
5426 ccbase=`echo $ccbase | sed 's:.*/::'`
5428 # If this $ccbase is in $cclist_chosen then it's a compiler we know and
5429 # we can do flags defaulting with it. If not, then $cclist_chosen is
5430 # set to "unrecognised" so no default flags are used.
5432 # "unrecognised" is used to avoid bad effects with eval if $ccbase has
5433 # non-symbol characters. For instance ccbase=my+cc would end up with
5434 # something like cflags="$my+cc_cflags" which would give
5435 # cflags="+cc_cflags" rather than the intended empty string for an
5439 for i in $cclist_chosen; do
5440 if test "$ccbase" = $i; then
5445 cclist_chosen=$found
5448 for ccbase in $cclist_chosen; do
5450 # When cross compiling, look for a compiler with the $host_alias as a
5451 # prefix, the same way that AC_CHECK_TOOL does. But don't do this to a
5452 # user-selected $CC.
5454 # $cross_compiling will be yes/no/maybe at this point. Do the host
5455 # prefixing for "maybe" as well as "yes".
5457 if test "$cross_compiling" != no && test -z "$CC"; then
5458 cross_compiling_prefix="${host_alias}-"
5461 for ccprefix in $cross_compiling_prefix ""; do
5464 test -n "$cc" || cc="$ccprefix$ccbase"
5466 # If the compiler is gcc but installed under another name, then change
5467 # $ccbase so as to use the flags we know for gcc. This helps for
5468 # instance when specifying CC=gcc272 on Debian GNU/Linux, or the
5469 # native cc which is really gcc on NeXT or MacOS-X.
5471 # FIXME: There's a slight misfeature here. If cc is actually gcc but
5472 # gcc is not a known compiler under this $abi then we'll end up
5473 # testing it with no flags and it'll work, but chances are it won't be
5474 # in the right mode for the ABI we desire. Let's quietly hope this
5477 if test $ccbase != gcc; then
5478 cat >conftest.c <<EOF
5479 #if ! defined (__GNUC__) || defined (__INTEL_COMPILER)
5483 gmp_compile="$cc -c conftest.c >&5"
5484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5485 (eval $gmp_compile) 2>&5
5487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5488 test $ac_status = 0; }; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $cc is gcc" >&5
5491 $as_echo_n "checking whether $cc is gcc... " >&6; }
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5493 $as_echo "yes" >&6; }
5502 # Similarly if the compiler is IBM xlc but invoked as cc or whatever
5503 # then change $ccbase and make the default xlc flags available.
5504 if test $ccbase != xlc; then
5505 gmp_command="$cc 2>&1 | grep xlc >/dev/null"
5506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_command\""; } >&5
5507 (eval $gmp_command) 2>&5
5509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5510 test $ac_status = 0; }; then
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $cc is xlc" >&5
5512 $as_echo_n "checking whether $cc is xlc... " >&6; }
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5514 $as_echo "yes" >&6; }
5522 # acc was Sun's first unbundled compiler back in the SunOS days, or
5523 # something like that, but today its man page says it's not meant to
5524 # be used directly (instead via /usr/ucb/cc). The options are pretty
5525 # much the same as the main SunPRO cc, so share those configs.
5528 *sparc*-*-solaris* | *sparc*-*-sunos*)
5529 if test "$ccbase" = acc; then ccbase=cc; fi ;;
5532 for tmp_cflags_maybe in yes no; do
5533 eval cflags=\"\$${ccbase}${abi1}_cflags\"
5534 test -n "$cflags" || eval cflags=\"\$${ccbase}${abi2}_cflags\"
5536 if test "$tmp_cflags_maybe" = yes; then
5537 # don't try cflags_maybe when the user set CFLAGS
5538 if test "$test_CFLAGS" = set; then continue; fi
5539 eval cflags_maybe=\"\$${ccbase}${abi1}_cflags_maybe\"
5540 test -n "$cflags_maybe" || eval cflags_maybe=\"\$${ccbase}${abi2}_cflags_maybe\"
5541 # don't try cflags_maybe if there's nothing set
5542 if test -z "$cflags_maybe"; then continue; fi
5543 cflags="$cflags_maybe $cflags"
5546 # Any user CFLAGS, even an empty string, takes precedence
5547 if test "$test_CFLAGS" = set; then cflags=$CFLAGS; fi
5549 # Any user CPPFLAGS, even an empty string, takes precedence
5550 eval cppflags=\"\$${ccbase}${abi1}_cppflags\"
5551 test -n "$cppflags" || eval cppflags=\"\$${ccbase}${abi2}_cppflags\"
5552 if test "$test_CPPFLAGS" = set; then cppflags=$CPPFLAGS; fi
5554 # --enable-profiling adds -p/-pg even to user-specified CFLAGS.
5555 # This is convenient, but it's perhaps a bit naughty to modify user
5557 case "$enable_profiling" in
5558 prof) cflags="$cflags -p" ;;
5559 gprof) cflags="$cflags -pg" ;;
5560 instrument) cflags="$cflags -finstrument-functions" ;;
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags" >&5
5564 $as_echo_n "checking compiler $cc $cflags $cppflags... " >&6; }
5565 gmp_prog_cc_works=yes
5567 # first see a simple "main()" works, then go on to other checks
5568 if test "$gmp_prog_cc_works" = yes; then
5569 # remove anything that might look like compiler output to our "||" expression
5570 rm -f conftest* a.out b.out a.exe a_out.exe
5571 cat >conftest.c <<EOF
5573 int main () { return 0; }
5575 echo "Test compile: " >&5
5576 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5578 (eval $gmp_compile) 2>&5
5580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5581 test $ac_status = 0; }; then
5583 if test "$cross_compiling" = no; then
5584 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5589 test $ac_status = 0; }; }; then :;
5597 if test "$cc_works_part" != yes; then
5598 echo "failed program was:" >&5
5601 rm -f conftest* a.out b.out a.exe a_out.exe
5602 case $cc_works_part in
5607 gmp_prog_cc_works="no"
5610 gmp_prog_cc_works="no, program does not run"
5618 if test "$gmp_prog_cc_works" = yes; then
5619 # remove anything that might look like compiler output to our "||" expression
5620 rm -f conftest* a.out b.out a.exe a_out.exe
5621 cat >conftest.c <<EOF
5622 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
5623 (without -maix64), hence detecting an unusable compiler */
5624 void *g() { return (void *) 0; }
5625 void *f() { return g(); }
5627 int main () { return 0; }
5629 echo "Test compile: function pointer return" >&5
5630 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5632 (eval $gmp_compile) 2>&5
5634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5635 test $ac_status = 0; }; then
5637 if test "$cross_compiling" = no; then
5638 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5643 test $ac_status = 0; }; }; then :;
5651 if test "$cc_works_part" != yes; then
5652 echo "failed program was:" >&5
5655 rm -f conftest* a.out b.out a.exe a_out.exe
5656 case $cc_works_part in
5661 gmp_prog_cc_works="no, function pointer return"
5664 gmp_prog_cc_works="no, function pointer return, program does not run"
5672 if test "$gmp_prog_cc_works" = yes; then
5673 # remove anything that might look like compiler output to our "||" expression
5674 rm -f conftest* a.out b.out a.exe a_out.exe
5675 cat >conftest.c <<EOF
5676 /* The following provokes an invalid instruction syntax from i386 gcc
5677 -march=pentiumpro on Solaris 2.8. The native sun assembler
5678 requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
5679 least) doesn't know. */
5681 int cmov () { return (n >= 0 ? n : 0); }
5683 int main () { return 0; }
5685 echo "Test compile: cmov instruction" >&5
5686 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5688 (eval $gmp_compile) 2>&5
5690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5691 test $ac_status = 0; }; then
5693 if test "$cross_compiling" = no; then
5694 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5699 test $ac_status = 0; }; }; then :;
5707 if test "$cc_works_part" != yes; then
5708 echo "failed program was:" >&5
5711 rm -f conftest* a.out b.out a.exe a_out.exe
5712 case $cc_works_part in
5717 gmp_prog_cc_works="no, cmov instruction"
5720 gmp_prog_cc_works="no, cmov instruction, program does not run"
5728 if test "$gmp_prog_cc_works" = yes; then
5729 # remove anything that might look like compiler output to our "||" expression
5730 rm -f conftest* a.out b.out a.exe a_out.exe
5731 cat >conftest.c <<EOF
5732 /* The following provokes a linker invocation problem with gcc 3.0.3
5733 on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630
5734 option causes gcc to incorrectly select the 32-bit libgcc.a, not
5735 the 64-bit one, and consequently it misses out on the __fixunsdfdi
5736 helper (double -> uint64 conversion). */
5738 unsigned long gcc303 () { return (unsigned long) d; }
5740 int main () { return 0; }
5742 echo "Test compile: double -> ulong conversion" >&5
5743 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5745 (eval $gmp_compile) 2>&5
5747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5748 test $ac_status = 0; }; then
5750 if test "$cross_compiling" = no; then
5751 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5756 test $ac_status = 0; }; }; then :;
5764 if test "$cc_works_part" != yes; then
5765 echo "failed program was:" >&5
5768 rm -f conftest* a.out b.out a.exe a_out.exe
5769 case $cc_works_part in
5774 gmp_prog_cc_works="no, double -> ulong conversion"
5777 gmp_prog_cc_works="no, double -> ulong conversion, program does not run"
5785 if test "$gmp_prog_cc_works" = yes; then
5786 # remove anything that might look like compiler output to our "||" expression
5787 rm -f conftest* a.out b.out a.exe a_out.exe
5788 cat >conftest.c <<EOF
5789 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
5790 the assembler doesn't know hppa 2.0 instructions. fneg is a 2.0
5791 instruction, and a negation like this comes out using it. */
5793 unsigned long fneg () { return -fneg_data; }
5795 int main () { return 0; }
5797 echo "Test compile: double negation" >&5
5798 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5800 (eval $gmp_compile) 2>&5
5802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5803 test $ac_status = 0; }; then
5805 if test "$cross_compiling" = no; then
5806 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5811 test $ac_status = 0; }; }; then :;
5819 if test "$cc_works_part" != yes; then
5820 echo "failed program was:" >&5
5823 rm -f conftest* a.out b.out a.exe a_out.exe
5824 case $cc_works_part in
5829 gmp_prog_cc_works="no, double negation"
5832 gmp_prog_cc_works="no, double negation, program does not run"
5840 if test "$gmp_prog_cc_works" = yes; then
5841 # remove anything that might look like compiler output to our "||" expression
5842 rm -f conftest* a.out b.out a.exe a_out.exe
5843 cat >conftest.c <<EOF
5844 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
5845 (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
5846 those instructions. Not sure how much of the gmp code will come out
5847 wanting sse2, but it's easiest to reject an option we know is bad. */
5849 float ftod () { return (float) ftod_data; }
5851 int main () { return 0; }
5853 echo "Test compile: double -> float conversion" >&5
5854 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5856 (eval $gmp_compile) 2>&5
5858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5859 test $ac_status = 0; }; then
5861 if test "$cross_compiling" = no; then
5862 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5867 test $ac_status = 0; }; }; then :;
5875 if test "$cc_works_part" != yes; then
5876 echo "failed program was:" >&5
5879 rm -f conftest* a.out b.out a.exe a_out.exe
5880 case $cc_works_part in
5885 gmp_prog_cc_works="no, double -> float conversion"
5888 gmp_prog_cc_works="no, double -> float conversion, program does not run"
5896 if test "$gmp_prog_cc_works" = yes; then
5897 # remove anything that might look like compiler output to our "||" expression
5898 rm -f conftest* a.out b.out a.exe a_out.exe
5899 cat >conftest.c <<EOF
5900 /* The following provokes an internal compiler error from gcc version
5901 "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
5902 values being spilled into floating point registers. The problem doesn't
5903 show up all the time, but has occurred enough in GMP for us to reject
5904 this compiler+flags. */
5905 #include <string.h> /* for memcpy */
5910 long d0, d1, d2, d3, d4, d5, d6;
5913 struct try_t param[6];
5918 memcpy (p, ¶m[ 2 ], sizeof (*p));
5919 memcpy (p, ¶m[ 2 ], sizeof (*p));
5921 memcpy (p, ¶m[ 1 ], sizeof (*p));
5924 memcpy (p, ¶m[ 3 ], sizeof (*p));
5927 memcpy (p, ¶m[ 4 ], sizeof (*p));
5928 memcpy (p, ¶m[ 4 ], sizeof (*p));
5930 memcpy (p, ¶m[ 5 ], sizeof (*p));
5931 memcpy (p, ¶m[ 5 ], sizeof (*p));
5932 memcpy (p, ¶m[ 5 ], sizeof (*p));
5936 int main () { return 0; }
5938 echo "Test compile: gnupro alpha ev6 char spilling" >&5
5939 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5941 (eval $gmp_compile) 2>&5
5943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5944 test $ac_status = 0; }; then
5946 if test "$cross_compiling" = no; then
5947 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5952 test $ac_status = 0; }; }; then :;
5960 if test "$cc_works_part" != yes; then
5961 echo "failed program was:" >&5
5964 rm -f conftest* a.out b.out a.exe a_out.exe
5965 case $cc_works_part in
5970 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling"
5973 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run"
5981 # __builtin_alloca is not available everywhere, check it exists before
5982 # seeing that it works
5983 if test "$gmp_prog_cc_works" = yes; then
5984 # remove anything that might look like compiler output to our "||" expression
5985 rm -f conftest* a.out b.out a.exe a_out.exe
5986 cat >conftest.c <<EOF
5987 int k; int foo () { __builtin_alloca (k); }
5989 echo "Test compile: __builtin_alloca availability" >&5
5990 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5992 (eval $gmp_compile) 2>&5
5994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5995 test $ac_status = 0; }; then
5997 if test "$cross_compiling" = no; then
5998 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6003 test $ac_status = 0; }; }; then :;
6011 if test "$cc_works_part" != yes; then
6012 echo "failed program was:" >&5
6015 rm -f conftest* a.out b.out a.exe a_out.exe
6016 case $cc_works_part in
6018 if test "$gmp_prog_cc_works" = yes; then
6019 # remove anything that might look like compiler output to our "||" expression
6020 rm -f conftest* a.out b.out a.exe a_out.exe
6021 cat >conftest.c <<EOF
6022 /* The following provokes an internal compiler error from Itanium HP-UX cc
6023 under +O2 or higher. We use this sort of code in mpn/generic/mul_fft.c. */
6028 a = __builtin_alloca (k);
6029 for (i = 0; i <= k; i++)
6030 a[i] = __builtin_alloca (1 << i);
6033 int main () { return 0; }
6035 echo "Test compile: alloca array" >&5
6036 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6038 (eval $gmp_compile) 2>&5
6040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6041 test $ac_status = 0; }; then
6043 if test "$cross_compiling" = no; then
6044 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6049 test $ac_status = 0; }; }; then :;
6057 if test "$cc_works_part" != yes; then
6058 echo "failed program was:" >&5
6061 rm -f conftest* a.out b.out a.exe a_out.exe
6062 case $cc_works_part in
6067 gmp_prog_cc_works="no, alloca array"
6070 gmp_prog_cc_works="no, alloca array, program does not run"
6088 if test "$gmp_prog_cc_works" = yes; then
6089 # remove anything that might look like compiler output to our "||" expression
6090 rm -f conftest* a.out b.out a.exe a_out.exe
6091 cat >conftest.c <<EOF
6092 /* The following provokes an internal error from the assembler on
6093 power2-ibm-aix4.3.1.0. gcc -mrios2 compiles to nabs+fcirz, and this
6094 results in "Internal error related to the source program domain".
6096 For reference it seems to be the combination of nabs+fcirz which is bad,
6097 not either alone. This sort of thing occurs in mpz/get_str.c with the
6098 way double chars_per_bit_exactly is applied in MPN_SIZEINBASE. Perhaps
6099 if that code changes to a scaled-integer style then we won't need this
6107 a = (x >= 0 ? x : -x);
6111 int main () { return 0; }
6113 echo "Test compile: abs int -> double conversion" >&5
6114 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6116 (eval $gmp_compile) 2>&5
6118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6119 test $ac_status = 0; }; then
6121 if test "$cross_compiling" = no; then
6122 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6127 test $ac_status = 0; }; }; then :;
6135 if test "$cc_works_part" != yes; then
6136 echo "failed program was:" >&5
6139 rm -f conftest* a.out b.out a.exe a_out.exe
6140 case $cc_works_part in
6145 gmp_prog_cc_works="no, abs int -> double conversion"
6148 gmp_prog_cc_works="no, abs int -> double conversion, program does not run"
6156 if test "$gmp_prog_cc_works" = yes; then
6157 # remove anything that might look like compiler output to our "||" expression
6158 rm -f conftest* a.out b.out a.exe a_out.exe
6159 cat >conftest.c <<EOF
6160 /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
6161 Extracted from tests/mpn/t-iord_u.c. Causes Apple's gcc 3.3 build 1640 and
6162 1666 to segfault with e.g., -O2 -mpowerpc64. */
6164 #if defined (__GNUC__) && ! defined (__cplusplus)
6165 typedef unsigned long long t1;typedef t1*t2;
6166 static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
6167 {t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
6168 f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
6169 for(i=0;i<1;i++){if(e(got,got,9,d[i].n)==0)h();g(i,d[i].src,d[i].n,got,d[i].want,9);if(d[i].n)h();}}
6175 int main () { return 0; }
6177 echo "Test compile: long long reliability test 1" >&5
6178 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6180 (eval $gmp_compile) 2>&5
6182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6183 test $ac_status = 0; }; then
6185 if test "$cross_compiling" = no; then
6186 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6191 test $ac_status = 0; }; }; then :;
6199 if test "$cc_works_part" != yes; then
6200 echo "failed program was:" >&5
6203 rm -f conftest* a.out b.out a.exe a_out.exe
6204 case $cc_works_part in
6209 gmp_prog_cc_works="no, long long reliability test 1"
6212 gmp_prog_cc_works="no, long long reliability test 1, program does not run"
6220 if test "$gmp_prog_cc_works" = yes; then
6221 # remove anything that might look like compiler output to our "||" expression
6222 rm -f conftest* a.out b.out a.exe a_out.exe
6223 cat >conftest.c <<EOF
6224 /* The following provokes an internal compiler error on powerpc-apple-darwin.
6225 Extracted from mpz/cfdiv_q_2exp.c. Causes Apple's gcc 3.3 build 1640 and
6226 1666 to get an ICE with -O1 -mpowerpc64. */
6228 #if defined (__GNUC__) && ! defined (__cplusplus)
6229 f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();}
6235 int main () { return 0; }
6237 echo "Test compile: long long reliability test 2" >&5
6238 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6240 (eval $gmp_compile) 2>&5
6242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6243 test $ac_status = 0; }; then
6245 if test "$cross_compiling" = no; then
6246 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6251 test $ac_status = 0; }; }; then :;
6259 if test "$cc_works_part" != yes; then
6260 echo "failed program was:" >&5
6263 rm -f conftest* a.out b.out a.exe a_out.exe
6264 case $cc_works_part in
6269 gmp_prog_cc_works="no, long long reliability test 2"
6272 gmp_prog_cc_works="no, long long reliability test 2, program does not run"
6280 if test "$gmp_prog_cc_works" = yes; then
6281 # remove anything that might look like compiler output to our "||" expression
6282 rm -f conftest* a.out b.out a.exe a_out.exe
6283 cat >conftest.c <<EOF
6284 /* The following is mis-compiled by HP ia-64 cc version
6285 cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
6286 under "cc +O3", both in +DD32 and +DD64 modes. The mpn_lshift_com gets
6287 inlined and its return value somehow botched to be 0 instead of 1. This
6288 arises in the real mpn_lshift_com in mul_fft.c. A lower optimization
6289 level, like +O2 seems ok. This code needs to be run to show the problem,
6290 but that's fine, the offending cc is a native-only compiler so we don't
6291 have to worry about cross compiling. */
6293 #if ! defined (__cplusplus)
6295 lshift_com (rp, up, n, cnt)
6301 unsigned long retval, high_limb, low_limb;
6304 tnc = 8 * sizeof (unsigned long) - cnt;
6306 retval = low_limb >> tnc;
6307 high_limb = low_limb << cnt;
6308 for (i = n - 1; i != 0; i--)
6311 *rp++ = ~(high_limb | (low_limb >> tnc));
6312 high_limb = low_limb << cnt;
6319 unsigned long cy, rp[2], up[2];
6322 cy = lshift_com (rp, up, 2L, 1);
6336 echo "Test compile: mpn_lshift_com optimization" >&5
6337 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6339 (eval $gmp_compile) 2>&5
6341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6342 test $ac_status = 0; }; then
6344 if test "$cross_compiling" = no; then
6345 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6350 test $ac_status = 0; }; }; then :;
6358 if test "$cc_works_part" != yes; then
6359 echo "failed program was:" >&5
6362 rm -f conftest* a.out b.out a.exe a_out.exe
6363 case $cc_works_part in
6368 gmp_prog_cc_works="no, mpn_lshift_com optimization"
6371 gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run"
6378 if test "$gmp_prog_cc_works" = yes; then
6379 # remove anything that might look like compiler output to our "||" expression
6380 rm -f conftest* a.out b.out a.exe a_out.exe
6381 cat >conftest.c <<EOF
6382 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
6383 "icc -O3", After several calls, the function writes parial garbage to
6384 the result vector. Perhaps relates to the chk.a.nc insn. This code needs
6385 to be run to show the problem, but that's fine, the offending cc is a
6386 native-only compiler so we don't have to worry about cross compiling. */
6388 #if ! defined (__cplusplus)
6391 lshift_com (rp, up, n, cnt)
6397 unsigned long high_limb, low_limb;
6402 tnc = 8 * sizeof (unsigned long) - cnt;
6404 high_limb = low_limb << cnt;
6405 for (i = n - 1; i != 0; i--)
6408 *--rp = ~(high_limb | (low_limb >> tnc));
6409 high_limb = low_limb << cnt;
6416 unsigned long *r, *r2;
6417 unsigned long a[88 + 1];
6419 for (i = 0; i < 88 + 1; i++)
6421 r = malloc (10000 * sizeof (unsigned long));
6423 for (i = 0; i < 528; i += 22)
6426 i / (8 * sizeof (unsigned long)) + 1,
6427 i % (8 * sizeof (unsigned long)));
6430 if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
6431 r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
6444 echo "Test compile: mpn_lshift_com optimization 2" >&5
6445 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6447 (eval $gmp_compile) 2>&5
6449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6450 test $ac_status = 0; }; then
6452 if test "$cross_compiling" = no; then
6453 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6458 test $ac_status = 0; }; }; then :;
6466 if test "$cc_works_part" != yes; then
6467 echo "failed program was:" >&5
6470 rm -f conftest* a.out b.out a.exe a_out.exe
6471 case $cc_works_part in
6476 gmp_prog_cc_works="no, mpn_lshift_com optimization 2"
6479 gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run"
6487 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
6488 # by recent versions of gcc.
6490 if test "$gmp_prog_cc_works" = yes; then
6492 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*)
6493 # this problem only arises in PIC code, so don't need to test when
6494 # --disable-shared. We don't necessarily have $enable_shared set to
6495 # yes at this point, it will still be unset for the default (which is
6496 # yes); hence the use of "!= no".
6497 if test "$enable_shared" != no; then
6498 echo "Testing gcc GOT with eax emitted" >&5
6499 cat >conftest.c <<\EOF
6501 int bar () { return foo; }
6504 gmp_compile="$cc $cflags $cppflags -fPIC -S conftest.c >&5 2>&1"
6505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6506 (eval $gmp_compile) 2>&5
6508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6509 test $ac_status = 0; }; then
6510 if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
6515 echo "Result: $tmp_got_emitted" >&5
6516 if test "$tmp_got_emitted" = yes; then
6517 echo "Testing gas GOT with eax good" >&5
6518 cat >conftest.awk <<\EOF
6547 for (f = 2; f <= NF; f++)
6549 for (i = 0; i < 20; i++)
6554 for (i = 0; i < 21; i++)
6555 if (got[i] != want[i])
6571 cat >conftest.s <<\EOF
6573 .byte 1, 35, 69, 103, 137, 171, 205, 239
6574 addl $_GLOBAL_OFFSET_TABLE_, %eax
6575 .byte 254, 220, 186, 152, 118, 84, 50, 16
6578 gmp_compile="$cc $cflags $cppflags -fPIC -o conftest.o -c conftest.s >&5 2>&1"
6579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6580 (eval $gmp_compile) 2>&5
6582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6583 test $ac_status = 0; }; then
6584 tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
6587 echo "Result: $tmp_got_good" >&5
6588 if test "$tmp_got_good" = no; then
6589 gmp_prog_cc_works="no, bad gas GOT with eax"
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
6604 $as_echo "$gmp_prog_cc_works" >&6; }
6605 case $gmp_prog_cc_works in
6615 # If we're supposed to be using a "long long" for a limb, check that
6617 eval limb_chosen=\"\$limb$abi1\"
6618 test -n "$limb_chosen" || eval limb_chosen=\"\$limb$abi2\"
6619 if test "$limb_chosen" = longlong; then
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags has long long" >&5
6621 $as_echo_n "checking compiler $cc $cflags $cppflags has long long... " >&6; }
6622 cat >conftest.c <<EOF
6624 long long bar () { return foo; }
6625 int main () { return 0; }
6627 gmp_prog_cc_works=no
6628 gmp_compile="$cc $cflags $cppflags -c conftest.c >&5"
6629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6630 (eval $gmp_compile) 2>&5
6632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6633 test $ac_status = 0; }; then
6634 gmp_prog_cc_works=yes
6636 echo "failed program was:" >&5
6639 rm -f conftest* a.out b.out a.exe a_out.exe
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
6641 $as_echo "$gmp_prog_cc_works" >&6; }
6642 if test $gmp_prog_cc_works = yes; then
6650 # The tests to perform on this $cc, if any
6651 eval testlist=\"\$${ccbase}${abi1}_testlist\"
6652 test -n "$testlist" || eval testlist=\"\$${ccbase}${abi2}_testlist\"
6653 test -n "$testlist" || eval testlist=\"\$any${abi1}_testlist\"
6654 test -n "$testlist" || eval testlist=\"\$any${abi2}_testlist\"
6657 for tst in $testlist; do
6659 hpc-hppa-2-0) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HP compiler $cc is good for 64-bits" >&5
6660 $as_echo_n "checking whether HP compiler $cc is good for 64-bits... " >&6; }
6661 # Bad compiler output:
6662 # ccom: HP92453-01 G.10.32.05 HP C Compiler
6663 # Good compiler output:
6664 # ccom: HP92453-01 A.10.32.30 HP C Compiler
6665 # Let A.10.32.30 or higher be ok.
6667 gmp_tmp_vs=`$cc -V -c -o conftest.$OBJEXT conftest.c 2>&1 | grep "^ccom:"`
6668 echo "Version string: $gmp_tmp_vs" >&5
6670 gmp_tmp_v1=`echo $gmp_tmp_vs | sed 's/.* .\.\([0-9]*\).*/\1/'`
6671 gmp_tmp_v2=`echo $gmp_tmp_vs | sed 's/.* .\..*\.\(.*\)\..* HP C.*/\1/'`
6672 gmp_tmp_v3=`echo $gmp_tmp_vs | sed 's/.* .\..*\..*\.\(.*\) HP C.*/\1/'`
6673 echo "Version number: $gmp_tmp_v1.$gmp_tmp_v2.$gmp_tmp_v3" >&5
6674 if test -z "$gmp_tmp_v1"; then
6675 gmp_hpc_64bit=not-applicable
6678 if test -n "$gmp_tmp_v1"; then
6679 if test "$gmp_tmp_v1" -gt 10; then
6682 if test "$gmp_tmp_v1" -eq 10; then
6683 if test -n "$gmp_tmp_v2"; then
6684 if test "$gmp_tmp_v2" -gt 32; then
6687 if test "$gmp_tmp_v2" -eq 32; then
6688 if test -n "$gmp_tmp_v3" && test "$gmp_tmp_v3" -ge 30; then
6701 gmp_hpc_64bit=$gmp_compare_ge
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_hpc_64bit" >&5
6704 $as_echo "$gmp_hpc_64bit" >&6; }
6705 if test $gmp_hpc_64bit = yes; then
6711 gcc-arm-umodsi) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ARM gcc unsigned division works" >&5
6712 $as_echo_n "checking whether ARM gcc unsigned division works... " >&6; }
6713 tmp_version=`$cc --version`
6714 echo "$tmp_version" >&5
6715 case $tmp_version in
6718 gmp_gcc_arm_umodsi_result="no, gcc 2.95.[0123]" ;;
6721 gmp_gcc_arm_umodsi_result=yes ;;
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_gcc_arm_umodsi_result" >&5
6724 $as_echo "$gmp_gcc_arm_umodsi_result" >&6; }
6726 gcc-mips-o32) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports o32" >&5
6727 $as_echo_n "checking whether gcc supports o32... " >&6; }
6728 echo 'int x;' >conftest.c
6729 echo "$cc -mabi=32 -c conftest.c" >&5
6730 if $cc -mabi=32 -c conftest.c >conftest.out 2>&1; then
6733 cat conftest.out >&5
6734 if grep "cc1: Invalid option \`abi=32'" conftest.out >/dev/null; then
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6742 $as_echo "$result" >&6; }
6743 if test $result = yes; then
6749 hppa-level-2.0) { $as_echo "$as_me:${as_lineno-$LINENO}: checking $cc $cflags assembler knows hppa 2.0" >&5
6750 $as_echo_n "checking $cc $cflags assembler knows hppa 2.0... " >&6; }
6752 cat >conftest.s <<EOF
6755 gmp_compile="$cc $cflags -c conftest.s >&5 2>&1"
6756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6757 (eval $gmp_compile) 2>&5
6759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6760 test $ac_status = 0; }; then
6763 echo "failed program was" >&5
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6768 $as_echo "$result" >&6; }
6769 if test "$result" = yes; then
6775 sizeof*) echo "configure: testlist $tst" >&5
6776 gmp_sizeof_type=`echo "$tst" | sed 's/sizeof-\([a-z]*\).*/\1/'`
6777 gmp_sizeof_want=`echo "$tst" | sed 's/sizeof-[a-z]*-\([0-9]*\).*/\1/'`
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want" >&5
6779 $as_echo_n "checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want... " >&6; }
6780 cat >conftest.c <<EOF
6784 static int test_array [1 - 2 * (long) (sizeof ($gmp_sizeof_type) != $gmp_sizeof_want)];
6789 gmp_c_testlist_sizeof=no
6790 gmp_compile="$cc $cflags -c conftest.c >&5"
6791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6792 (eval $gmp_compile) 2>&5
6794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6795 test $ac_status = 0; }; then
6796 gmp_c_testlist_sizeof=yes
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_c_testlist_sizeof" >&5
6800 $as_echo "$gmp_c_testlist_sizeof" >&6; }
6801 if test $gmp_c_testlist_sizeof = yes; then
6808 if test $testlist_pass = no; then break; fi
6811 if test $testlist_pass = yes; then
6817 if test $found_compiler = yes; then break; fi
6820 if test $found_compiler = yes; then break; fi
6823 if test $found_compiler = yes; then break; fi
6827 # If we recognised the CPU, as indicated by $path being set, then insist
6828 # that we have a working compiler, either from our $cclist choices or from
6829 # $CC. We can't let AC_PROG_CC look around for a compiler because it might
6830 # find one that we've rejected (for not supporting the modes our asm code
6833 # If we didn't recognise the CPU (and this includes host_cpu=none), then
6834 # fall through and let AC_PROG_CC look around for a compiler too. This is
6835 # mostly in the interests of following a standard autoconf setup, after all
6836 # we've already tested cc and gcc adequately (hopefully). As of autoconf
6837 # 2.50 the only thing AC_PROG_CC really adds is a check for "cl" (Microsoft
6838 # C on MS-DOS systems).
6840 if test $found_compiler = no && test -n "$path"; then
6841 as_fn_error $? "could not find a working compiler, see config.log for details" "$LINENO" 5
6845 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
6846 # If the user asked for a fat build, override the path and flags set above
6847 if test $enable_fat = yes; then
6851 fat_functions="add_n addmul_1 bdiv_dbm1c com copyd copyi dive_1 divrem_1
6852 gcd_1 lshift lshiftc mod_1 mod_1_1 mod_1_1_cps mod_1_2
6853 mod_1_2_cps mod_1_4 mod_1_4_cps mod_34lsub1 mode1o mul_1
6854 mul_basecase mullo_basecase pre_divrem_1 pre_mod_1 redc_1
6855 redc_2 rshift sqr_basecase sub_n submul_1"
6857 if test "$abi" = 32; then
6858 extra_functions="$extra_functions fat fat_entry"
6860 fat_path="x86 x86/fat x86/i486
6861 x86/k6 x86/k6/mmx x86/k6/k62mmx
6863 x86/k8 x86/k10 x86/bobcat
6864 x86/pentium x86/pentium/mmx
6865 x86/p6 x86/p6/mmx x86/p6/p3mmx x86/p6/sse2
6866 x86/pentium4 x86/pentium4/mmx x86/pentium4/sse2
6867 x86/core2 x86/coreinhm x86/coreisbr
6868 x86/atom x86/atom/mmx x86/atom/sse2 x86/nano"
6871 if test "$abi" = 64; then
6873 extra_functions_64="$extra_functions_64 fat fat_entry"
6874 path_64="x86_64/fat x86_64"
6875 fat_path="x86_64 x86_64/fat
6876 x86_64/k8 x86_64/k10 x86_64/bd1 x86_64/bobcat
6877 x86_64/pentium4 x86_64/core2 x86_64/coreinhm x86_64/coreisbr
6878 x86_64/atom x86_64/nano"
6879 fat_functions="$fat_functions addmul_2 addlsh1_n addlsh2_n sublsh1_n"
6882 fat_thresholds="MUL_TOOM22_THRESHOLD MUL_TOOM33_THRESHOLD
6883 SQR_TOOM2_THRESHOLD SQR_TOOM3_THRESHOLD
6884 BMOD_1_TO_MOD_1_THRESHOLD"
6890 if test $found_compiler = yes; then
6892 # If we're creating CFLAGS, then look for optional additions. If the user
6893 # set CFLAGS then leave it alone.
6895 if test "$test_CFLAGS" != set; then
6896 eval optlist=\"\$${ccbase}${abi1}_cflags_optlist\"
6897 test -n "$optlist" || eval optlist=\"\$${ccbase}${abi2}_cflags_optlist\"
6899 for opt in $optlist; do
6900 eval optflags=\"\$${ccbase}${abi1}_cflags_${opt}\"
6901 test -n "$optflags" || eval optflags=\"\$${ccbase}${abi2}_cflags_${opt}\"
6902 test -n "$optflags" || eval optflags=\"\$${ccbase}_cflags_${opt}\"
6904 for flag in $optflags; do
6906 # ~ represents a space in an option spec
6907 flag=`echo "$flag" | tr '~' ' '`
6910 -march=pentium4 | -march=k8)
6911 # For -march settings which enable SSE2 we exclude certain bad
6912 # gcc versions and we need an OS knowing how to save xmm regs.
6914 # This is only for ABI=32, any 64-bit gcc is good and any OS
6915 # knowing x86_64 will know xmm.
6917 # -march=k8 was only introduced in gcc 3.3, so we shouldn't need
6918 # the GMP_GCC_PENTIUM4_SSE2 check (for gcc 3.2 and prior). But
6919 # it doesn't hurt to run it anyway, sharing code with the
6922 if test "$abi" = 32; then
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc is good for sse2" >&5
6924 $as_echo_n "checking whether gcc is good for sse2... " >&6; }
6925 case `$cc $cflags $cppflags -dumpversion` in
6926 3.[012] | 3.[012].*) result=no ;;
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6930 $as_echo "$result" >&6; }
6931 if test "$result" = yes; then
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the operating system supports XMM registers" >&5
6938 $as_echo_n "checking whether the operating system supports XMM registers... " >&6; }
6939 if ${gmp_cv_os_x86_xmm+:} false; then :
6940 $as_echo_n "(cached) " >&6
6942 if test "$build" = "$host"; then
6943 # remove anything that might look like compiler output to our "||" expression
6944 rm -f conftest* a.out b.out a.exe a_out.exe
6945 cat >conftest.s <<EOF
6951 .byte 0x0f, 0x57, 0xc0
6955 gmp_compile="$cc $cflags $cppflags conftest.s -o conftest >&5"
6956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6957 (eval $gmp_compile) 2>&5
6959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6960 test $ac_status = 0; }; then
6961 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6966 test $ac_status = 0; }; }; then
6967 gmp_cv_os_x86_xmm=yes
6969 gmp_cv_os_x86_xmm=no
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Oops, cannot compile test program" >&5
6973 $as_echo "$as_me: WARNING: Oops, cannot compile test program" >&2;}
6978 if test -z "$gmp_cv_os_x86_xmm"; then
6980 freebsd[123] | freebsd[123].*)
6981 gmp_cv_os_x86_xmm=no ;;
6983 gmp_cv_os_x86_xmm=yes ;;
6985 gmp_cv_os_x86_xmm=probably ;;
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_os_x86_xmm" >&5
6991 $as_echo "$gmp_cv_os_x86_xmm" >&6; }
6993 if test "$gmp_cv_os_x86_xmm" = probably; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not certain of OS support for xmm when cross compiling." >&5
6995 $as_echo "$as_me: WARNING: Not certain of OS support for xmm when cross compiling." >&2;}
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&5
6997 $as_echo "$as_me: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&2;}
7000 case $gmp_cv_os_x86_xmm in
7012 # special check, avoiding a warning
7013 if test "$ccbase" = gcc; then
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags -no-cpp-precomp" >&5
7015 $as_echo_n "checking compiler $cc $cflags -no-cpp-precomp... " >&6; }
7017 cat >conftest.c <<EOF
7018 int main () { return 0; }
7020 gmp_compile="$cc $cflags -no-cpp-precomp conftest.c >conftest.out 2>&1"
7021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7022 (eval $gmp_compile) 2>&5
7024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7025 test $ac_status = 0; }; then
7026 if grep "unrecognized option.*-no-cpp-precomp" conftest.out >/dev/null; then : ;
7031 cat conftest.out >&5
7032 rm -f conftest* a.out b.out a.exe a_out.exe
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7034 $as_echo "$result" >&6; }
7035 if test "$result" = yes; then
7036 cflags="$cflags $flag"
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler $cc $cflags $flag" >&5
7048 $as_echo_n "checking assembler $cc $cflags $flag... " >&6; }
7050 cat >conftest.c <<EOF
7053 gmp_compile="$cc $cflags $flag -c conftest.c >conftest.out 2>&1"
7054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7055 (eval $gmp_compile) 2>&5
7057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7058 test $ac_status = 0; }; then
7059 if grep "Unknown CPU identifier" conftest.out >/dev/null; then : ;
7064 cat conftest.out >&5
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7067 $as_echo "$result" >&6; }
7068 if test "$result" = yes; then
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cc $cflags $cppflags -Wa,-oldas" >&5
7079 $as_echo_n "checking for $cc $cflags $cppflags -Wa,-oldas... " >&6; }
7081 cat >conftest.c <<EOF
7083 echo "with empty conftest.c" >&5
7084 gmp_compile="$cc $cflags $cppflags -c conftest.c >&5 2>&1"
7085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7086 (eval $gmp_compile) 2>&5
7088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7089 test $ac_status = 0; }; then : ;
7092 gmp_compile="$cc $cflags $cppflags -Wa,-oldas -c conftest.c >&5 2>&1"
7093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7094 (eval $gmp_compile) 2>&5
7096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7097 test $ac_status = 0; }; then
7098 # but with -Wa,-oldas it works
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7104 $as_echo "$result" >&6; }
7105 if test "$result" = yes; then
7106 cflags="$cflags $flag"
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags $flag" >&5
7116 $as_echo_n "checking compiler $cc $cflags $cppflags $flag... " >&6; }
7117 gmp_prog_cc_works=yes
7119 # first see a simple "main()" works, then go on to other checks
7120 if test "$gmp_prog_cc_works" = yes; then
7121 # remove anything that might look like compiler output to our "||" expression
7122 rm -f conftest* a.out b.out a.exe a_out.exe
7123 cat >conftest.c <<EOF
7125 int main () { return 0; }
7127 echo "Test compile: " >&5
7128 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7130 (eval $gmp_compile) 2>&5
7132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7133 test $ac_status = 0; }; then
7135 if test "$cross_compiling" = no; then
7136 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7141 test $ac_status = 0; }; }; then :;
7149 if test "$cc_works_part" != yes; then
7150 echo "failed program was:" >&5
7153 rm -f conftest* a.out b.out a.exe a_out.exe
7154 case $cc_works_part in
7159 gmp_prog_cc_works="no"
7162 gmp_prog_cc_works="no, program does not run"
7170 if test "$gmp_prog_cc_works" = yes; then
7171 # remove anything that might look like compiler output to our "||" expression
7172 rm -f conftest* a.out b.out a.exe a_out.exe
7173 cat >conftest.c <<EOF
7174 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
7175 (without -maix64), hence detecting an unusable compiler */
7176 void *g() { return (void *) 0; }
7177 void *f() { return g(); }
7179 int main () { return 0; }
7181 echo "Test compile: function pointer return" >&5
7182 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7184 (eval $gmp_compile) 2>&5
7186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7187 test $ac_status = 0; }; then
7189 if test "$cross_compiling" = no; then
7190 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7195 test $ac_status = 0; }; }; then :;
7203 if test "$cc_works_part" != yes; then
7204 echo "failed program was:" >&5
7207 rm -f conftest* a.out b.out a.exe a_out.exe
7208 case $cc_works_part in
7213 gmp_prog_cc_works="no, function pointer return"
7216 gmp_prog_cc_works="no, function pointer return, program does not run"
7224 if test "$gmp_prog_cc_works" = yes; then
7225 # remove anything that might look like compiler output to our "||" expression
7226 rm -f conftest* a.out b.out a.exe a_out.exe
7227 cat >conftest.c <<EOF
7228 /* The following provokes an invalid instruction syntax from i386 gcc
7229 -march=pentiumpro on Solaris 2.8. The native sun assembler
7230 requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
7231 least) doesn't know. */
7233 int cmov () { return (n >= 0 ? n : 0); }
7235 int main () { return 0; }
7237 echo "Test compile: cmov instruction" >&5
7238 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7240 (eval $gmp_compile) 2>&5
7242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7243 test $ac_status = 0; }; then
7245 if test "$cross_compiling" = no; then
7246 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7251 test $ac_status = 0; }; }; then :;
7259 if test "$cc_works_part" != yes; then
7260 echo "failed program was:" >&5
7263 rm -f conftest* a.out b.out a.exe a_out.exe
7264 case $cc_works_part in
7269 gmp_prog_cc_works="no, cmov instruction"
7272 gmp_prog_cc_works="no, cmov instruction, program does not run"
7280 if test "$gmp_prog_cc_works" = yes; then
7281 # remove anything that might look like compiler output to our "||" expression
7282 rm -f conftest* a.out b.out a.exe a_out.exe
7283 cat >conftest.c <<EOF
7284 /* The following provokes a linker invocation problem with gcc 3.0.3
7285 on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630
7286 option causes gcc to incorrectly select the 32-bit libgcc.a, not
7287 the 64-bit one, and consequently it misses out on the __fixunsdfdi
7288 helper (double -> uint64 conversion). */
7290 unsigned long gcc303 () { return (unsigned long) d; }
7292 int main () { return 0; }
7294 echo "Test compile: double -> ulong conversion" >&5
7295 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7297 (eval $gmp_compile) 2>&5
7299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7300 test $ac_status = 0; }; then
7302 if test "$cross_compiling" = no; then
7303 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7308 test $ac_status = 0; }; }; then :;
7316 if test "$cc_works_part" != yes; then
7317 echo "failed program was:" >&5
7320 rm -f conftest* a.out b.out a.exe a_out.exe
7321 case $cc_works_part in
7326 gmp_prog_cc_works="no, double -> ulong conversion"
7329 gmp_prog_cc_works="no, double -> ulong conversion, program does not run"
7337 if test "$gmp_prog_cc_works" = yes; then
7338 # remove anything that might look like compiler output to our "||" expression
7339 rm -f conftest* a.out b.out a.exe a_out.exe
7340 cat >conftest.c <<EOF
7341 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
7342 the assembler doesn't know hppa 2.0 instructions. fneg is a 2.0
7343 instruction, and a negation like this comes out using it. */
7345 unsigned long fneg () { return -fneg_data; }
7347 int main () { return 0; }
7349 echo "Test compile: double negation" >&5
7350 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7352 (eval $gmp_compile) 2>&5
7354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7355 test $ac_status = 0; }; then
7357 if test "$cross_compiling" = no; then
7358 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7363 test $ac_status = 0; }; }; then :;
7371 if test "$cc_works_part" != yes; then
7372 echo "failed program was:" >&5
7375 rm -f conftest* a.out b.out a.exe a_out.exe
7376 case $cc_works_part in
7381 gmp_prog_cc_works="no, double negation"
7384 gmp_prog_cc_works="no, double negation, program does not run"
7392 if test "$gmp_prog_cc_works" = yes; then
7393 # remove anything that might look like compiler output to our "||" expression
7394 rm -f conftest* a.out b.out a.exe a_out.exe
7395 cat >conftest.c <<EOF
7396 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
7397 (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
7398 those instructions. Not sure how much of the gmp code will come out
7399 wanting sse2, but it's easiest to reject an option we know is bad. */
7401 float ftod () { return (float) ftod_data; }
7403 int main () { return 0; }
7405 echo "Test compile: double -> float conversion" >&5
7406 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7408 (eval $gmp_compile) 2>&5
7410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7411 test $ac_status = 0; }; then
7413 if test "$cross_compiling" = no; then
7414 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7419 test $ac_status = 0; }; }; then :;
7427 if test "$cc_works_part" != yes; then
7428 echo "failed program was:" >&5
7431 rm -f conftest* a.out b.out a.exe a_out.exe
7432 case $cc_works_part in
7437 gmp_prog_cc_works="no, double -> float conversion"
7440 gmp_prog_cc_works="no, double -> float conversion, program does not run"
7448 if test "$gmp_prog_cc_works" = yes; then
7449 # remove anything that might look like compiler output to our "||" expression
7450 rm -f conftest* a.out b.out a.exe a_out.exe
7451 cat >conftest.c <<EOF
7452 /* The following provokes an internal compiler error from gcc version
7453 "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
7454 values being spilled into floating point registers. The problem doesn't
7455 show up all the time, but has occurred enough in GMP for us to reject
7456 this compiler+flags. */
7457 #include <string.h> /* for memcpy */
7462 long d0, d1, d2, d3, d4, d5, d6;
7465 struct try_t param[6];
7470 memcpy (p, ¶m[ 2 ], sizeof (*p));
7471 memcpy (p, ¶m[ 2 ], sizeof (*p));
7473 memcpy (p, ¶m[ 1 ], sizeof (*p));
7476 memcpy (p, ¶m[ 3 ], sizeof (*p));
7479 memcpy (p, ¶m[ 4 ], sizeof (*p));
7480 memcpy (p, ¶m[ 4 ], sizeof (*p));
7482 memcpy (p, ¶m[ 5 ], sizeof (*p));
7483 memcpy (p, ¶m[ 5 ], sizeof (*p));
7484 memcpy (p, ¶m[ 5 ], sizeof (*p));
7488 int main () { return 0; }
7490 echo "Test compile: gnupro alpha ev6 char spilling" >&5
7491 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7493 (eval $gmp_compile) 2>&5
7495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7496 test $ac_status = 0; }; then
7498 if test "$cross_compiling" = no; then
7499 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7504 test $ac_status = 0; }; }; then :;
7512 if test "$cc_works_part" != yes; then
7513 echo "failed program was:" >&5
7516 rm -f conftest* a.out b.out a.exe a_out.exe
7517 case $cc_works_part in
7522 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling"
7525 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run"
7533 # __builtin_alloca is not available everywhere, check it exists before
7534 # seeing that it works
7535 if test "$gmp_prog_cc_works" = yes; then
7536 # remove anything that might look like compiler output to our "||" expression
7537 rm -f conftest* a.out b.out a.exe a_out.exe
7538 cat >conftest.c <<EOF
7539 int k; int foo () { __builtin_alloca (k); }
7541 echo "Test compile: __builtin_alloca availability" >&5
7542 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7544 (eval $gmp_compile) 2>&5
7546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7547 test $ac_status = 0; }; then
7549 if test "$cross_compiling" = no; then
7550 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7555 test $ac_status = 0; }; }; then :;
7563 if test "$cc_works_part" != yes; then
7564 echo "failed program was:" >&5
7567 rm -f conftest* a.out b.out a.exe a_out.exe
7568 case $cc_works_part in
7570 if test "$gmp_prog_cc_works" = yes; then
7571 # remove anything that might look like compiler output to our "||" expression
7572 rm -f conftest* a.out b.out a.exe a_out.exe
7573 cat >conftest.c <<EOF
7574 /* The following provokes an internal compiler error from Itanium HP-UX cc
7575 under +O2 or higher. We use this sort of code in mpn/generic/mul_fft.c. */
7580 a = __builtin_alloca (k);
7581 for (i = 0; i <= k; i++)
7582 a[i] = __builtin_alloca (1 << i);
7585 int main () { return 0; }
7587 echo "Test compile: alloca array" >&5
7588 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7590 (eval $gmp_compile) 2>&5
7592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7593 test $ac_status = 0; }; then
7595 if test "$cross_compiling" = no; then
7596 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7601 test $ac_status = 0; }; }; then :;
7609 if test "$cc_works_part" != yes; then
7610 echo "failed program was:" >&5
7613 rm -f conftest* a.out b.out a.exe a_out.exe
7614 case $cc_works_part in
7619 gmp_prog_cc_works="no, alloca array"
7622 gmp_prog_cc_works="no, alloca array, program does not run"
7640 if test "$gmp_prog_cc_works" = yes; then
7641 # remove anything that might look like compiler output to our "||" expression
7642 rm -f conftest* a.out b.out a.exe a_out.exe
7643 cat >conftest.c <<EOF
7644 /* The following provokes an internal error from the assembler on
7645 power2-ibm-aix4.3.1.0. gcc -mrios2 compiles to nabs+fcirz, and this
7646 results in "Internal error related to the source program domain".
7648 For reference it seems to be the combination of nabs+fcirz which is bad,
7649 not either alone. This sort of thing occurs in mpz/get_str.c with the
7650 way double chars_per_bit_exactly is applied in MPN_SIZEINBASE. Perhaps
7651 if that code changes to a scaled-integer style then we won't need this
7659 a = (x >= 0 ? x : -x);
7663 int main () { return 0; }
7665 echo "Test compile: abs int -> double conversion" >&5
7666 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7668 (eval $gmp_compile) 2>&5
7670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7671 test $ac_status = 0; }; then
7673 if test "$cross_compiling" = no; then
7674 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7679 test $ac_status = 0; }; }; then :;
7687 if test "$cc_works_part" != yes; then
7688 echo "failed program was:" >&5
7691 rm -f conftest* a.out b.out a.exe a_out.exe
7692 case $cc_works_part in
7697 gmp_prog_cc_works="no, abs int -> double conversion"
7700 gmp_prog_cc_works="no, abs int -> double conversion, program does not run"
7708 if test "$gmp_prog_cc_works" = yes; then
7709 # remove anything that might look like compiler output to our "||" expression
7710 rm -f conftest* a.out b.out a.exe a_out.exe
7711 cat >conftest.c <<EOF
7712 /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
7713 Extracted from tests/mpn/t-iord_u.c. Causes Apple's gcc 3.3 build 1640 and
7714 1666 to segfault with e.g., -O2 -mpowerpc64. */
7716 #if defined (__GNUC__) && ! defined (__cplusplus)
7717 typedef unsigned long long t1;typedef t1*t2;
7718 static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
7719 {t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
7720 f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
7721 for(i=0;i<1;i++){if(e(got,got,9,d[i].n)==0)h();g(i,d[i].src,d[i].n,got,d[i].want,9);if(d[i].n)h();}}
7727 int main () { return 0; }
7729 echo "Test compile: long long reliability test 1" >&5
7730 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7732 (eval $gmp_compile) 2>&5
7734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7735 test $ac_status = 0; }; then
7737 if test "$cross_compiling" = no; then
7738 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7743 test $ac_status = 0; }; }; then :;
7751 if test "$cc_works_part" != yes; then
7752 echo "failed program was:" >&5
7755 rm -f conftest* a.out b.out a.exe a_out.exe
7756 case $cc_works_part in
7761 gmp_prog_cc_works="no, long long reliability test 1"
7764 gmp_prog_cc_works="no, long long reliability test 1, program does not run"
7772 if test "$gmp_prog_cc_works" = yes; then
7773 # remove anything that might look like compiler output to our "||" expression
7774 rm -f conftest* a.out b.out a.exe a_out.exe
7775 cat >conftest.c <<EOF
7776 /* The following provokes an internal compiler error on powerpc-apple-darwin.
7777 Extracted from mpz/cfdiv_q_2exp.c. Causes Apple's gcc 3.3 build 1640 and
7778 1666 to get an ICE with -O1 -mpowerpc64. */
7780 #if defined (__GNUC__) && ! defined (__cplusplus)
7781 f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();}
7787 int main () { return 0; }
7789 echo "Test compile: long long reliability test 2" >&5
7790 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7792 (eval $gmp_compile) 2>&5
7794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7795 test $ac_status = 0; }; then
7797 if test "$cross_compiling" = no; then
7798 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7803 test $ac_status = 0; }; }; then :;
7811 if test "$cc_works_part" != yes; then
7812 echo "failed program was:" >&5
7815 rm -f conftest* a.out b.out a.exe a_out.exe
7816 case $cc_works_part in
7821 gmp_prog_cc_works="no, long long reliability test 2"
7824 gmp_prog_cc_works="no, long long reliability test 2, program does not run"
7832 if test "$gmp_prog_cc_works" = yes; then
7833 # remove anything that might look like compiler output to our "||" expression
7834 rm -f conftest* a.out b.out a.exe a_out.exe
7835 cat >conftest.c <<EOF
7836 /* The following is mis-compiled by HP ia-64 cc version
7837 cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
7838 under "cc +O3", both in +DD32 and +DD64 modes. The mpn_lshift_com gets
7839 inlined and its return value somehow botched to be 0 instead of 1. This
7840 arises in the real mpn_lshift_com in mul_fft.c. A lower optimization
7841 level, like +O2 seems ok. This code needs to be run to show the problem,
7842 but that's fine, the offending cc is a native-only compiler so we don't
7843 have to worry about cross compiling. */
7845 #if ! defined (__cplusplus)
7847 lshift_com (rp, up, n, cnt)
7853 unsigned long retval, high_limb, low_limb;
7856 tnc = 8 * sizeof (unsigned long) - cnt;
7858 retval = low_limb >> tnc;
7859 high_limb = low_limb << cnt;
7860 for (i = n - 1; i != 0; i--)
7863 *rp++ = ~(high_limb | (low_limb >> tnc));
7864 high_limb = low_limb << cnt;
7871 unsigned long cy, rp[2], up[2];
7874 cy = lshift_com (rp, up, 2L, 1);
7888 echo "Test compile: mpn_lshift_com optimization" >&5
7889 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7891 (eval $gmp_compile) 2>&5
7893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7894 test $ac_status = 0; }; then
7896 if test "$cross_compiling" = no; then
7897 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7902 test $ac_status = 0; }; }; then :;
7910 if test "$cc_works_part" != yes; then
7911 echo "failed program was:" >&5
7914 rm -f conftest* a.out b.out a.exe a_out.exe
7915 case $cc_works_part in
7920 gmp_prog_cc_works="no, mpn_lshift_com optimization"
7923 gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run"
7930 if test "$gmp_prog_cc_works" = yes; then
7931 # remove anything that might look like compiler output to our "||" expression
7932 rm -f conftest* a.out b.out a.exe a_out.exe
7933 cat >conftest.c <<EOF
7934 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
7935 "icc -O3", After several calls, the function writes parial garbage to
7936 the result vector. Perhaps relates to the chk.a.nc insn. This code needs
7937 to be run to show the problem, but that's fine, the offending cc is a
7938 native-only compiler so we don't have to worry about cross compiling. */
7940 #if ! defined (__cplusplus)
7943 lshift_com (rp, up, n, cnt)
7949 unsigned long high_limb, low_limb;
7954 tnc = 8 * sizeof (unsigned long) - cnt;
7956 high_limb = low_limb << cnt;
7957 for (i = n - 1; i != 0; i--)
7960 *--rp = ~(high_limb | (low_limb >> tnc));
7961 high_limb = low_limb << cnt;
7968 unsigned long *r, *r2;
7969 unsigned long a[88 + 1];
7971 for (i = 0; i < 88 + 1; i++)
7973 r = malloc (10000 * sizeof (unsigned long));
7975 for (i = 0; i < 528; i += 22)
7978 i / (8 * sizeof (unsigned long)) + 1,
7979 i % (8 * sizeof (unsigned long)));
7982 if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
7983 r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
7996 echo "Test compile: mpn_lshift_com optimization 2" >&5
7997 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7999 (eval $gmp_compile) 2>&5
8001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8002 test $ac_status = 0; }; then
8004 if test "$cross_compiling" = no; then
8005 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
8006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8010 test $ac_status = 0; }; }; then :;
8018 if test "$cc_works_part" != yes; then
8019 echo "failed program was:" >&5
8022 rm -f conftest* a.out b.out a.exe a_out.exe
8023 case $cc_works_part in
8028 gmp_prog_cc_works="no, mpn_lshift_com optimization 2"
8031 gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run"
8039 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
8040 # by recent versions of gcc.
8042 if test "$gmp_prog_cc_works" = yes; then
8044 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*)
8045 # this problem only arises in PIC code, so don't need to test when
8046 # --disable-shared. We don't necessarily have $enable_shared set to
8047 # yes at this point, it will still be unset for the default (which is
8048 # yes); hence the use of "!= no".
8049 if test "$enable_shared" != no; then
8050 echo "Testing gcc GOT with eax emitted" >&5
8051 cat >conftest.c <<\EOF
8053 int bar () { return foo; }
8056 gmp_compile="$cc $cflags $cppflags $flag -fPIC -S conftest.c >&5 2>&1"
8057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
8058 (eval $gmp_compile) 2>&5
8060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8061 test $ac_status = 0; }; then
8062 if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
8067 echo "Result: $tmp_got_emitted" >&5
8068 if test "$tmp_got_emitted" = yes; then
8069 echo "Testing gas GOT with eax good" >&5
8070 cat >conftest.awk <<\EOF
8099 for (f = 2; f <= NF; f++)
8101 for (i = 0; i < 20; i++)
8106 for (i = 0; i < 21; i++)
8107 if (got[i] != want[i])
8123 cat >conftest.s <<\EOF
8125 .byte 1, 35, 69, 103, 137, 171, 205, 239
8126 addl $_GLOBAL_OFFSET_TABLE_, %eax
8127 .byte 254, 220, 186, 152, 118, 84, 50, 16
8130 gmp_compile="$cc $cflags $cppflags $flag -fPIC -o conftest.o -c conftest.s >&5 2>&1"
8131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
8132 (eval $gmp_compile) 2>&5
8134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8135 test $ac_status = 0; }; then
8136 tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
8139 echo "Result: $tmp_got_good" >&5
8140 if test "$tmp_got_good" = no; then
8141 gmp_prog_cc_works="no, bad gas GOT with eax"
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
8156 $as_echo "$gmp_prog_cc_works" >&6; }
8157 case $gmp_prog_cc_works in
8159 cflags="$cflags $flag"
8174 CPPFLAGS="$cppflags"
8175 eval GMP_NONSTD_ABI=\"\$GMP_NONSTD_ABI_$ABI\"
8177 # Could easily have this in config.h too, if desired.
8178 ABI_nodots=`echo $ABI | sed 's/\./_/'`
8180 echo "define_not_for_expansion(\`HAVE_ABI_$ABI_nodots')" >> $gmp_tmpconfigm4p
8184 # GMP_LDFLAGS substitution, selected according to ABI.
8185 # These are needed on libgmp.la and libmp.la, but currently not on
8186 # convenience libraries like tune/libspeed.la or mpz/libmpz.la.
8188 eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
8189 test -n "$GMP_LDFLAGS" || eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
8194 # extra_functions, selected according to ABI
8195 eval tmp=\"\$extra_functions$abi1\"
8196 test -n "$tmp" || eval tmp=\"\$extra_functions$abi2\"
8197 extra_functions="$tmp"
8200 # Cycle counter, selected according to ABI.
8202 eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi1\"
8203 test -n "$tmp" || eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi2\"
8204 SPEED_CYCLECOUNTER_OBJ="$tmp"
8205 eval tmp=\"\$cyclecounter_size$abi1\"
8206 test -n "$tmp" || eval tmp=\"\$cyclecounter_size$abi2\"
8207 cyclecounter_size="$tmp"
8209 if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
8211 cat >>confdefs.h <<_ACEOF
8212 #define HAVE_SPEED_CYCLECOUNTER $cyclecounter_size
8219 # Calling conventions checking, selected according to ABI.
8221 eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi1\"
8222 test -n "$tmp" || eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi2\"
8223 if test "$enable_assembly" = "yes"; then
8224 CALLING_CONVENTIONS_OBJS="$tmp"
8226 CALLING_CONVENTIONS_OBJS=""
8229 if test -n "$CALLING_CONVENTIONS_OBJS"; then
8231 $as_echo "#define HAVE_CALLING_CONVENTIONS 1" >>confdefs.h
8239 # If the user gave an MPN_PATH, use that verbatim, otherwise choose
8240 # according to the ABI and add "generic".
8242 if test -n "$MPN_PATH"; then
8245 eval tmp=\"\$path$abi1\"
8246 test -n "$tmp" || eval tmp=\"\$path$abi2\"
8251 # Long long limb setup for gmp.h.
8252 case $limb_chosen in
8253 longlong) DEFN_LONG_LONG_LIMB="#define _LONG_LONG_LIMB 1" ;;
8254 *) DEFN_LONG_LONG_LIMB="/* #undef _LONG_LONG_LIMB */" ;;
8259 # The C compiler and preprocessor, put into ANSI mode if possible.
8261 ac_cpp='$CPP $CPPFLAGS'
8262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8265 if test -n "$ac_tool_prefix"; then
8266 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
8267 set dummy ${ac_tool_prefix}gcc; ac_word=$2
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8269 $as_echo_n "checking for $ac_word... " >&6; }
8270 if ${ac_cv_prog_CC+:} false; then :
8271 $as_echo_n "(cached) " >&6
8273 if test -n "$CC"; then
8274 ac_cv_prog_CC="$CC" # Let the user override the test.
8276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280 test -z "$as_dir" && as_dir=.
8281 for ac_exec_ext in '' $ac_executable_extensions; do
8282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8283 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8294 if test -n "$CC"; then
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8296 $as_echo "$CC" >&6; }
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8299 $as_echo "no" >&6; }
8304 if test -z "$ac_cv_prog_CC"; then
8306 # Extract the first word of "gcc", so it can be a program name with args.
8307 set dummy gcc; ac_word=$2
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8309 $as_echo_n "checking for $ac_word... " >&6; }
8310 if ${ac_cv_prog_ac_ct_CC+:} false; then :
8311 $as_echo_n "(cached) " >&6
8313 if test -n "$ac_ct_CC"; then
8314 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320 test -z "$as_dir" && as_dir=.
8321 for ac_exec_ext in '' $ac_executable_extensions; do
8322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8323 ac_cv_prog_ac_ct_CC="gcc"
8324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8334 if test -n "$ac_ct_CC"; then
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8336 $as_echo "$ac_ct_CC" >&6; }
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339 $as_echo "no" >&6; }
8342 if test "x$ac_ct_CC" = x; then
8345 case $cross_compiling:$ac_tool_warned in
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8349 ac_tool_warned=yes ;;
8357 if test -z "$CC"; then
8358 if test -n "$ac_tool_prefix"; then
8359 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
8360 set dummy ${ac_tool_prefix}cc; ac_word=$2
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8362 $as_echo_n "checking for $ac_word... " >&6; }
8363 if ${ac_cv_prog_CC+:} false; then :
8364 $as_echo_n "(cached) " >&6
8366 if test -n "$CC"; then
8367 ac_cv_prog_CC="$CC" # Let the user override the test.
8369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 test -z "$as_dir" && as_dir=.
8374 for ac_exec_ext in '' $ac_executable_extensions; do
8375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8376 ac_cv_prog_CC="${ac_tool_prefix}cc"
8377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8387 if test -n "$CC"; then
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8389 $as_echo "$CC" >&6; }
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8398 if test -z "$CC"; then
8399 # Extract the first word of "cc", so it can be a program name with args.
8400 set dummy cc; ac_word=$2
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8402 $as_echo_n "checking for $ac_word... " >&6; }
8403 if ${ac_cv_prog_CC+:} false; then :
8404 $as_echo_n "(cached) " >&6
8406 if test -n "$CC"; then
8407 ac_cv_prog_CC="$CC" # Let the user override the test.
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8417 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
8418 ac_prog_rejected=yes
8422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8429 if test $ac_prog_rejected = yes; then
8430 # We found a bogon in the path, so make sure we never use it.
8431 set dummy $ac_cv_prog_CC
8433 if test $# != 0; then
8434 # We chose a different compiler from the bogus one.
8435 # However, it has the same basename, so the bogon will be chosen
8436 # first if we set CC to just the basename; use the full file name.
8438 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8444 if test -n "$CC"; then
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8446 $as_echo "$CC" >&6; }
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 $as_echo "no" >&6; }
8454 if test -z "$CC"; then
8455 if test -n "$ac_tool_prefix"; then
8456 for ac_prog in cl.exe
8458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461 $as_echo_n "checking for $ac_word... " >&6; }
8462 if ${ac_cv_prog_CC+:} false; then :
8463 $as_echo_n "(cached) " >&6
8465 if test -n "$CC"; then
8466 ac_cv_prog_CC="$CC" # Let the user override the test.
8468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472 test -z "$as_dir" && as_dir=.
8473 for ac_exec_ext in '' $ac_executable_extensions; do
8474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8475 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8486 if test -n "$CC"; then
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8488 $as_echo "$CC" >&6; }
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8491 $as_echo "no" >&6; }
8495 test -n "$CC" && break
8498 if test -z "$CC"; then
8500 for ac_prog in cl.exe
8502 # Extract the first word of "$ac_prog", so it can be a program name with args.
8503 set dummy $ac_prog; ac_word=$2
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505 $as_echo_n "checking for $ac_word... " >&6; }
8506 if ${ac_cv_prog_ac_ct_CC+:} false; then :
8507 $as_echo_n "(cached) " >&6
8509 if test -n "$ac_ct_CC"; then
8510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8516 test -z "$as_dir" && as_dir=.
8517 for ac_exec_ext in '' $ac_executable_extensions; do
8518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8519 ac_cv_prog_ac_ct_CC="$ac_prog"
8520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8529 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8530 if test -n "$ac_ct_CC"; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8532 $as_echo "$ac_ct_CC" >&6; }
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535 $as_echo "no" >&6; }
8539 test -n "$ac_ct_CC" && break
8542 if test "x$ac_ct_CC" = x; then
8545 case $cross_compiling:$ac_tool_warned in
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8549 ac_tool_warned=yes ;;
8558 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8560 as_fn_error $? "no acceptable C compiler found in \$PATH
8561 See \`config.log' for more details" "$LINENO" 5; }
8563 # Provide some information about the compiler.
8564 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8567 for ac_option in --version -v -V -qversion; do
8568 { { ac_try="$ac_compiler $ac_option >&5"
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8574 $as_echo "$ac_try_echo"; } >&5
8575 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8577 if test -s conftest.err; then
8579 ... rest of stderr output deleted ...
8580 10q' conftest.err >conftest.er1
8581 cat conftest.er1 >&5
8583 rm -f conftest.er1 conftest.err
8584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8585 test $ac_status = 0; }
8588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8589 /* end confdefs.h. */
8599 ac_clean_files_save=$ac_clean_files
8600 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
8601 # Try to create an executable without -o first, disregard a.out.
8602 # It will help us diagnose broken compilers, and finding out an intuition
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
8605 $as_echo_n "checking whether the C compiler works... " >&6; }
8606 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
8608 # The possible output files:
8609 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
8612 for ac_file in $ac_files
8615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
8616 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
8621 if { { ac_try="$ac_link_default"
8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624 *) ac_try_echo=$ac_try;;
8626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8627 $as_echo "$ac_try_echo"; } >&5
8628 (eval "$ac_link_default") 2>&5
8630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8631 test $ac_status = 0; }; then :
8632 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
8633 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
8634 # in a Makefile. We should not override ac_cv_exeext if it was cached,
8635 # so that the user can short-circuit this test for compilers unknown to
8637 for ac_file in $ac_files ''
8639 test -f "$ac_file" || continue
8641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8644 # We found the default executable, but exeext='' is most
8648 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
8650 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8652 # We set ac_cv_exeext here because the later test for it is not
8653 # safe: cross compilers may not add the suffix if given an `-o'
8654 # argument, so we may need to know it at that point already.
8655 # Even if this section looks crufty: it has the advantage of
8662 test "$ac_cv_exeext" = no && ac_cv_exeext=
8667 if test -z "$ac_file"; then :
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8669 $as_echo "no" >&6; }
8670 $as_echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8675 as_fn_error 77 "C compiler cannot create executables
8676 See \`config.log' for more details" "$LINENO" 5; }
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8679 $as_echo "yes" >&6; }
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
8682 $as_echo_n "checking for C compiler default output file name... " >&6; }
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
8684 $as_echo "$ac_file" >&6; }
8685 ac_exeext=$ac_cv_exeext
8687 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
8688 ac_clean_files=$ac_clean_files_save
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
8690 $as_echo_n "checking for suffix of executables... " >&6; }
8691 if { { ac_try="$ac_link"
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8697 $as_echo "$ac_try_echo"; } >&5
8698 (eval "$ac_link") 2>&5
8700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8701 test $ac_status = 0; }; then :
8702 # If both `conftest.exe' and `conftest' are `present' (well, observable)
8703 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
8704 # work properly (i.e., refer to `conftest.exe'), while it won't with
8706 for ac_file in conftest.exe conftest conftest.*; do
8707 test -f "$ac_file" || continue
8709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
8710 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8718 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
8719 See \`config.log' for more details" "$LINENO" 5; }
8721 rm -f conftest conftest$ac_cv_exeext
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
8723 $as_echo "$ac_cv_exeext" >&6; }
8725 rm -f conftest.$ac_ext
8726 EXEEXT=$ac_cv_exeext
8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8734 FILE *f = fopen ("conftest.out", "w");
8735 return ferror (f) || fclose (f) != 0;
8741 ac_clean_files="$ac_clean_files conftest.out"
8742 # Check that the compiler produces executables we can run. If not, either
8743 # the compiler is broken, or we cross compile.
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
8745 $as_echo_n "checking whether we are cross compiling... " >&6; }
8746 if test "$cross_compiling" != yes; then
8747 { { ac_try="$ac_link"
8749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750 *) ac_try_echo=$ac_try;;
8752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8753 $as_echo "$ac_try_echo"; } >&5
8754 (eval "$ac_link") 2>&5
8756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8757 test $ac_status = 0; }
8758 if { ac_try='./conftest$ac_cv_exeext'
8759 { { case "(($ac_try" in
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8764 $as_echo "$ac_try_echo"; } >&5
8765 (eval "$ac_try") 2>&5
8767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8768 test $ac_status = 0; }; }; then
8771 if test "$cross_compiling" = maybe; then
8774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8776 as_fn_error $? "cannot run C compiled programs.
8777 If you meant to cross compile, use \`--host'.
8778 See \`config.log' for more details" "$LINENO" 5; }
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
8783 $as_echo "$cross_compiling" >&6; }
8785 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
8786 ac_clean_files=$ac_clean_files_save
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
8788 $as_echo_n "checking for suffix of object files... " >&6; }
8789 if ${ac_cv_objext+:} false; then :
8790 $as_echo_n "(cached) " >&6
8792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h. */
8803 rm -f conftest.o conftest.obj
8804 if { { ac_try="$ac_compile"
8806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8807 *) ac_try_echo=$ac_try;;
8809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8810 $as_echo "$ac_try_echo"; } >&5
8811 (eval "$ac_compile") 2>&5
8813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8814 test $ac_status = 0; }; then :
8815 for ac_file in conftest.o conftest.obj conftest.*; do
8816 test -f "$ac_file" || continue;
8818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
8819 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
8824 $as_echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8829 as_fn_error $? "cannot compute suffix of object files: cannot compile
8830 See \`config.log' for more details" "$LINENO" 5; }
8832 rm -f conftest.$ac_cv_objext conftest.$ac_ext
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
8835 $as_echo "$ac_cv_objext" >&6; }
8836 OBJEXT=$ac_cv_objext
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8839 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
8840 if ${ac_cv_c_compiler_gnu+:} false; then :
8841 $as_echo_n "(cached) " >&6
8843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8844 /* end confdefs.h. */
8857 if ac_fn_c_try_compile "$LINENO"; then :
8862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8863 ac_cv_c_compiler_gnu=$ac_compiler_gnu
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8867 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
8868 if test $ac_compiler_gnu = yes; then
8873 ac_test_CFLAGS=${CFLAGS+set}
8874 ac_save_CFLAGS=$CFLAGS
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8876 $as_echo_n "checking whether $CC accepts -g... " >&6; }
8877 if ${ac_cv_prog_cc_g+:} false; then :
8878 $as_echo_n "(cached) " >&6
8880 ac_save_c_werror_flag=$ac_c_werror_flag
8881 ac_c_werror_flag=yes
8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885 /* end confdefs.h. */
8895 if ac_fn_c_try_compile "$LINENO"; then :
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8910 if ac_fn_c_try_compile "$LINENO"; then :
8913 ac_c_werror_flag=$ac_save_c_werror_flag
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8926 if ac_fn_c_try_compile "$LINENO"; then :
8929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8934 ac_c_werror_flag=$ac_save_c_werror_flag
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8937 $as_echo "$ac_cv_prog_cc_g" >&6; }
8938 if test "$ac_test_CFLAGS" = set; then
8939 CFLAGS=$ac_save_CFLAGS
8940 elif test $ac_cv_prog_cc_g = yes; then
8941 if test "$GCC" = yes; then
8947 if test "$GCC" = yes; then
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8954 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
8955 if ${ac_cv_prog_cc_c89+:} false; then :
8956 $as_echo_n "(cached) " >&6
8958 ac_cv_prog_cc_c89=no
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8965 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8966 struct buf { int x; };
8967 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8968 static char *e (p, i)
8974 static char *f (char * (*g) (char **, int), char **p, ...)
8979 s = g (p, va_arg (v,int));
8984 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
8985 function prototypes and stuff, but not '\xHH' hex character constants.
8986 These don't provoke an error unfortunately, instead are silently treated
8987 as 'x'. The following induces an error, until -std is added to get
8988 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
8989 array size at least. It's necessary to write '\x00'==0 to get something
8990 that's true only with -std. */
8991 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
8993 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
8994 inside strings and character constants. */
8996 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
8998 int test (int i, double x);
8999 struct s1 {int (*f) (int a);};
9000 struct s2 {int (*f) (double a);};
9001 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9007 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
9012 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
9013 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9015 CC="$ac_save_CC $ac_arg"
9016 if ac_fn_c_try_compile "$LINENO"; then :
9017 ac_cv_prog_cc_c89=$ac_arg
9019 rm -f core conftest.err conftest.$ac_objext
9020 test "x$ac_cv_prog_cc_c89" != "xno" && break
9022 rm -f conftest.$ac_ext
9027 case "x$ac_cv_prog_cc_c89" in
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9030 $as_echo "none needed" >&6; } ;;
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9033 $as_echo "unsupported" >&6; } ;;
9035 CC="$CC $ac_cv_prog_cc_c89"
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
9037 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
9039 if test "x$ac_cv_prog_cc_c89" != xno; then :
9044 ac_cpp='$CPP $CPPFLAGS'
9045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9049 case $ac_cv_prog_cc_stdc in #(
9051 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
9054 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
9055 if ${ac_cv_prog_cc_c99+:} false; then :
9056 $as_echo_n "(cached) " >&6
9058 ac_cv_prog_cc_c99=no
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9063 #include <stdbool.h>
9068 // Check varargs macros. These examples are taken from C99 6.10.3.5.
9069 #define debug(...) fprintf (stderr, __VA_ARGS__)
9070 #define showlist(...) puts (#__VA_ARGS__)
9071 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
9073 test_varargs_macros (void)
9078 debug ("X = %d\n", x);
9079 showlist (The first, second, and third items.);
9080 report (x>y, "x is %d but y is %d", x, y);
9083 // Check long long types.
9084 #define BIG64 18446744073709551615ull
9085 #define BIG32 4294967295ul
9086 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
9088 your preprocessor is broken;
9092 your preprocessor is broken;
9094 static long long int bignum = -9223372036854775807LL;
9095 static unsigned long long int ubignum = BIG64;
9097 struct incomplete_array
9105 const wchar_t *name;
9109 typedef const char *ccp;
9112 test_restrict (ccp restrict text)
9114 // See if C++-style comments work.
9115 // Iterate through items via the restricted pointer.
9116 // Also check for declarations in for loops.
9117 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
9122 // Check varargs and va_copy.
9124 test_varargs (const char *format, ...)
9127 va_start (args, format);
9129 va_copy (args_copy, args);
9140 str = va_arg (args_copy, const char *);
9143 number = va_arg (args_copy, int);
9146 fnumber = va_arg (args_copy, double);
9161 _Bool success = false;
9164 if (test_restrict ("String literal") == 0)
9166 char *restrict newvar = "Another string";
9169 test_varargs ("s, d' f .", "string", 65, 34.234);
9170 test_varargs_macros ();
9172 // Check flexible array members.
9173 struct incomplete_array *ia =
9174 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
9176 for (int i = 0; i < ia->datasize; ++i)
9177 ia->data[i] = i * 1.234;
9179 // Check named initializers.
9180 struct named_init ni = {
9182 .name = L"Test wide string",
9183 .average = 543.34343,
9188 int dynamic_array[ni.number];
9189 dynamic_array[ni.number - 1] = 543;
9191 // work around unused variable warnings
9192 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
9193 || dynamic_array[ni.number - 1] != 543);
9199 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
9201 CC="$ac_save_CC $ac_arg"
9202 if ac_fn_c_try_compile "$LINENO"; then :
9203 ac_cv_prog_cc_c99=$ac_arg
9205 rm -f core conftest.err conftest.$ac_objext
9206 test "x$ac_cv_prog_cc_c99" != "xno" && break
9208 rm -f conftest.$ac_ext
9213 case "x$ac_cv_prog_cc_c99" in
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9216 $as_echo "none needed" >&6; } ;;
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9219 $as_echo "unsupported" >&6; } ;;
9221 CC="$CC $ac_cv_prog_cc_c99"
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
9223 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
9225 if test "x$ac_cv_prog_cc_c99" != xno; then :
9226 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
9229 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
9230 if ${ac_cv_prog_cc_c89+:} false; then :
9231 $as_echo_n "(cached) " >&6
9233 ac_cv_prog_cc_c89=no
9235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9236 /* end confdefs.h. */
9240 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
9241 struct buf { int x; };
9242 FILE * (*rcsopen) (struct buf *, struct stat *, int);
9243 static char *e (p, i)
9249 static char *f (char * (*g) (char **, int), char **p, ...)
9254 s = g (p, va_arg (v,int));
9259 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
9260 function prototypes and stuff, but not '\xHH' hex character constants.
9261 These don't provoke an error unfortunately, instead are silently treated
9262 as 'x'. The following induces an error, until -std is added to get
9263 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
9264 array size at least. It's necessary to write '\x00'==0 to get something
9265 that's true only with -std. */
9266 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
9268 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
9269 inside strings and character constants. */
9271 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
9273 int test (int i, double x);
9274 struct s1 {int (*f) (int a);};
9275 struct s2 {int (*f) (double a);};
9276 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9282 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
9287 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
9288 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9290 CC="$ac_save_CC $ac_arg"
9291 if ac_fn_c_try_compile "$LINENO"; then :
9292 ac_cv_prog_cc_c89=$ac_arg
9294 rm -f core conftest.err conftest.$ac_objext
9295 test "x$ac_cv_prog_cc_c89" != "xno" && break
9297 rm -f conftest.$ac_ext
9302 case "x$ac_cv_prog_cc_c89" in
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9305 $as_echo "none needed" >&6; } ;;
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9308 $as_echo "unsupported" >&6; } ;;
9310 CC="$CC $ac_cv_prog_cc_c89"
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
9312 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
9314 if test "x$ac_cv_prog_cc_c89" != xno; then :
9315 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
9317 ac_cv_prog_cc_stdc=no
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
9324 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
9325 if ${ac_cv_prog_cc_stdc+:} false; then :
9326 $as_echo_n "(cached) " >&6
9329 case $ac_cv_prog_cc_stdc in #(
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9332 $as_echo "unsupported" >&6; } ;; #(
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9335 $as_echo "none needed" >&6; } ;; #(
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
9338 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
9342 ac_cpp='$CPP $CPPFLAGS'
9343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9347 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9348 # On Suns, sometimes $CPP names a directory.
9349 if test -n "$CPP" && test -d "$CPP"; then
9352 if test -z "$CPP"; then
9353 if ${ac_cv_prog_CPP+:} false; then :
9354 $as_echo_n "(cached) " >&6
9356 # Double quotes because CPP needs to be expanded
9357 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9360 for ac_c_preproc_warn_flag in '' yes
9362 # Use a header file that comes with gcc, so configuring glibc
9363 # with a fresh cross-compiler works.
9364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9365 # <limits.h> exists even on freestanding compilers.
9366 # On the NeXT, cc -E runs the code through the compiler's parser,
9367 # not just through cpp. "Syntax error" is here to catch this case.
9368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369 /* end confdefs.h. */
9371 # include <limits.h>
9373 # include <assert.h>
9377 if ac_fn_c_try_cpp "$LINENO"; then :
9380 # Broken: fails on valid input.
9383 rm -f conftest.err conftest.i conftest.$ac_ext
9385 # OK, works on sane cases. Now check whether nonexistent headers
9386 # can be detected and how.
9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9389 #include <ac_nonexistent.h>
9391 if ac_fn_c_try_cpp "$LINENO"; then :
9392 # Broken: success on invalid input.
9395 # Passes both tests.
9399 rm -f conftest.err conftest.i conftest.$ac_ext
9402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9403 rm -f conftest.i conftest.err conftest.$ac_ext
9404 if $ac_preproc_ok; then :
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9417 $as_echo "$CPP" >&6; }
9419 for ac_c_preproc_warn_flag in '' yes
9421 # Use a header file that comes with gcc, so configuring glibc
9422 # with a fresh cross-compiler works.
9423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9424 # <limits.h> exists even on freestanding compilers.
9425 # On the NeXT, cc -E runs the code through the compiler's parser,
9426 # not just through cpp. "Syntax error" is here to catch this case.
9427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428 /* end confdefs.h. */
9430 # include <limits.h>
9432 # include <assert.h>
9436 if ac_fn_c_try_cpp "$LINENO"; then :
9439 # Broken: fails on valid input.
9442 rm -f conftest.err conftest.i conftest.$ac_ext
9444 # OK, works on sane cases. Now check whether nonexistent headers
9445 # can be detected and how.
9446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9447 /* end confdefs.h. */
9448 #include <ac_nonexistent.h>
9450 if ac_fn_c_try_cpp "$LINENO"; then :
9451 # Broken: success on invalid input.
9454 # Passes both tests.
9458 rm -f conftest.err conftest.i conftest.$ac_ext
9461 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9462 rm -f conftest.i conftest.err conftest.$ac_ext
9463 if $ac_preproc_ok; then :
9466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9468 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9469 See \`config.log' for more details" "$LINENO" 5; }
9473 ac_cpp='$CPP $CPPFLAGS'
9474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9480 # The C compiler on the build system, and associated tests.
9482 if test -n "$CC_FOR_BUILD"; then
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $CC_FOR_BUILD" >&5
9484 $as_echo_n "checking build system compiler $CC_FOR_BUILD... " >&6; }
9485 # remove anything that might look like compiler output to our "||" expression
9486 rm -f conftest* a.out b.out a.exe a_out.exe
9487 cat >conftest.c <<EOF
9494 gmp_compile="$CC_FOR_BUILD conftest.c"
9495 cc_for_build_works=no
9496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9497 (eval $gmp_compile) 2>&5
9499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9500 test $ac_status = 0; }; then
9501 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
9502 cc_for_build_works=yes
9505 rm -f conftest* a.out b.out a.exe a_out.exe
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
9507 $as_echo "$cc_for_build_works" >&6; }
9508 if test "$cc_for_build_works" = yes; then
9511 as_fn_error $? "Specified CC_FOR_BUILD doesn't seem to work" "$LINENO" 5
9514 elif test -n "$HOST_CC"; then
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $HOST_CC" >&5
9516 $as_echo_n "checking build system compiler $HOST_CC... " >&6; }
9517 # remove anything that might look like compiler output to our "||" expression
9518 rm -f conftest* a.out b.out a.exe a_out.exe
9519 cat >conftest.c <<EOF
9526 gmp_compile="$HOST_CC conftest.c"
9527 cc_for_build_works=no
9528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9529 (eval $gmp_compile) 2>&5
9531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9532 test $ac_status = 0; }; then
9533 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
9534 cc_for_build_works=yes
9537 rm -f conftest* a.out b.out a.exe a_out.exe
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
9539 $as_echo "$cc_for_build_works" >&6; }
9540 if test "$cc_for_build_works" = yes; then
9541 CC_FOR_BUILD=$HOST_CC
9543 as_fn_error $? "Specified HOST_CC doesn't seem to work" "$LINENO" 5
9547 for i in "$CC" "$CC $CFLAGS $CPPFLAGS" cc gcc c89 c99; do
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $i" >&5
9549 $as_echo_n "checking build system compiler $i... " >&6; }
9550 # remove anything that might look like compiler output to our "||" expression
9551 rm -f conftest* a.out b.out a.exe a_out.exe
9552 cat >conftest.c <<EOF
9559 gmp_compile="$i conftest.c"
9560 cc_for_build_works=no
9561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9562 (eval $gmp_compile) 2>&5
9564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9565 test $ac_status = 0; }; then
9566 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
9567 cc_for_build_works=yes
9570 rm -f conftest* a.out b.out a.exe a_out.exe
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
9572 $as_echo "$cc_for_build_works" >&6; }
9573 if test "$cc_for_build_works" = yes; then
9581 if test -z "$CC_FOR_BUILD"; then
9582 as_fn_error $? "Cannot find a build system compiler" "$LINENO" 5
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system preprocessor" >&5
9591 $as_echo_n "checking for build system preprocessor... " >&6; }
9592 if test -z "$CPP_FOR_BUILD"; then
9593 if ${gmp_cv_prog_cpp_for_build+:} false; then :
9594 $as_echo_n "(cached) " >&6
9596 cat >conftest.c <<EOF
9599 for i in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"; do
9600 gmp_compile="$i conftest.c"
9601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9602 (eval $gmp_compile) 2>&5
9604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9605 test $ac_status = 0; } >&5 2>&1; then
9606 gmp_cv_prog_cpp_for_build=$i
9610 rm -f conftest* a.out b.out a.exe a_out.exe
9611 if test -z "$gmp_cv_prog_cpp_for_build"; then
9612 as_fn_error $? "Cannot find build system C preprocessor." "$LINENO" 5
9617 CPP_FOR_BUILD=$gmp_cv_prog_cpp_for_build
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
9620 $as_echo "$CPP_FOR_BUILD" >&6; }
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
9627 $as_echo_n "checking for build system executable suffix... " >&6; }
9628 if ${gmp_cv_prog_exeext_for_build+:} false; then :
9629 $as_echo_n "(cached) " >&6
9631 cat >conftest.c <<EOF
9638 for i in .exe ,ff8 ""; do
9639 gmp_compile="$CC_FOR_BUILD conftest.c -o conftest$i"
9640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9641 (eval $gmp_compile) 2>&5
9643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9644 test $ac_status = 0; }; then
9645 if (./conftest) 2>&5; then
9646 gmp_cv_prog_exeext_for_build=$i
9652 if test "${gmp_cv_prog_exeext_for_build+set}" != set; then
9653 as_fn_error $? "Cannot determine executable suffix" "$LINENO" 5
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_exeext_for_build" >&5
9658 $as_echo "$gmp_cv_prog_exeext_for_build" >&6; }
9659 EXEEXT_FOR_BUILD=$gmp_cv_prog_exeext_for_build
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build system compiler is ANSI" >&5
9664 $as_echo_n "checking whether build system compiler is ANSI... " >&6; }
9665 if ${gmp_cv_c_for_build_ansi+:} false; then :
9666 $as_echo_n "(cached) " >&6
9668 cat >conftest.c <<EOF
9670 main (int argc, char **argv)
9675 gmp_compile="$CC_FOR_BUILD conftest.c"
9676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9677 (eval $gmp_compile) 2>&5
9679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9680 test $ac_status = 0; }; then
9681 gmp_cv_c_for_build_ansi=yes
9683 gmp_cv_c_for_build_ansi=no
9685 rm -f conftest* a.out b.out a.exe a_out.exe
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_for_build_ansi" >&5
9689 $as_echo "$gmp_cv_c_for_build_ansi" >&6; }
9690 if test "$gmp_cv_c_for_build_ansi" = yes; then
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system compiler math library" >&5
9699 $as_echo_n "checking for build system compiler math library... " >&6; }
9700 if ${gmp_cv_check_libm_for_build+:} false; then :
9701 $as_echo_n "(cached) " >&6
9703 cat >conftest.c <<EOF
9716 gmp_compile="$CC_FOR_BUILD conftest.c -lm"
9717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9718 (eval $gmp_compile) 2>&5
9720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9721 test $ac_status = 0; }; then
9722 gmp_cv_check_libm_for_build=-lm
9724 gmp_cv_check_libm_for_build=no
9726 rm -f conftest* a.out b.out a.exe a_out.exe
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_check_libm_for_build" >&5
9730 $as_echo "$gmp_cv_check_libm_for_build" >&6; }
9731 case $gmp_cv_check_libm_for_build in
9732 yes) LIBM_FOR_BUILD=-lm
9734 no) LIBM_FOR_BUILD= ;;
9735 *) LIBM_FOR_BUILD=$gmp_cv_check_libm_for_build ;;
9740 # How to assemble, used with CFLAGS etc, see mpn/Makeasm.am.
9741 # Using the compiler is a lot easier than figuring out how to invoke the
9742 # assembler directly.
9744 test -n "$CCAS" || CCAS="$CC -c"
9748 # The C++ compiler, if desired.
9750 if test $enable_cxx != no; then
9751 test_CXXFLAGS=${CXXFLAGS+set}
9753 ac_cpp='$CXXCPP $CPPFLAGS'
9754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9757 if test -z "$CXX"; then
9758 if test -n "$CCC"; then
9761 if test -n "$ac_tool_prefix"; then
9762 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9764 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9765 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9767 $as_echo_n "checking for $ac_word... " >&6; }
9768 if ${ac_cv_prog_CXX+:} false; then :
9769 $as_echo_n "(cached) " >&6
9771 if test -n "$CXX"; then
9772 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9778 test -z "$as_dir" && as_dir=.
9779 for ac_exec_ext in '' $ac_executable_extensions; do
9780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9781 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9792 if test -n "$CXX"; then
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
9794 $as_echo "$CXX" >&6; }
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9797 $as_echo "no" >&6; }
9801 test -n "$CXX" && break
9804 if test -z "$CXX"; then
9806 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9808 # Extract the first word of "$ac_prog", so it can be a program name with args.
9809 set dummy $ac_prog; ac_word=$2
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9811 $as_echo_n "checking for $ac_word... " >&6; }
9812 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
9813 $as_echo_n "(cached) " >&6
9815 if test -n "$ac_ct_CXX"; then
9816 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9822 test -z "$as_dir" && as_dir=.
9823 for ac_exec_ext in '' $ac_executable_extensions; do
9824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9825 ac_cv_prog_ac_ct_CXX="$ac_prog"
9826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9835 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9836 if test -n "$ac_ct_CXX"; then
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
9838 $as_echo "$ac_ct_CXX" >&6; }
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9841 $as_echo "no" >&6; }
9845 test -n "$ac_ct_CXX" && break
9848 if test "x$ac_ct_CXX" = x; then
9851 case $cross_compiling:$ac_tool_warned in
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9855 ac_tool_warned=yes ;;
9863 # Provide some information about the compiler.
9864 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
9867 for ac_option in --version -v -V -qversion; do
9868 { { ac_try="$ac_compiler $ac_option >&5"
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9874 $as_echo "$ac_try_echo"; } >&5
9875 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9877 if test -s conftest.err; then
9879 ... rest of stderr output deleted ...
9880 10q' conftest.err >conftest.er1
9881 cat conftest.er1 >&5
9883 rm -f conftest.er1 conftest.err
9884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9885 test $ac_status = 0; }
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
9889 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9890 if ${ac_cv_cxx_compiler_gnu+:} false; then :
9891 $as_echo_n "(cached) " >&6
9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h. */
9907 if ac_fn_cxx_try_compile "$LINENO"; then :
9912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9913 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
9917 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9918 if test $ac_compiler_gnu = yes; then
9923 ac_test_CXXFLAGS=${CXXFLAGS+set}
9924 ac_save_CXXFLAGS=$CXXFLAGS
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
9926 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
9927 if ${ac_cv_prog_cxx_g+:} false; then :
9928 $as_echo_n "(cached) " >&6
9930 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9931 ac_cxx_werror_flag=yes
9934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9935 /* end confdefs.h. */
9945 if ac_fn_cxx_try_compile "$LINENO"; then :
9946 ac_cv_prog_cxx_g=yes
9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h. */
9960 if ac_fn_cxx_try_compile "$LINENO"; then :
9963 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966 /* end confdefs.h. */
9976 if ac_fn_cxx_try_compile "$LINENO"; then :
9977 ac_cv_prog_cxx_g=yes
9979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9984 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
9987 $as_echo "$ac_cv_prog_cxx_g" >&6; }
9988 if test "$ac_test_CXXFLAGS" = set; then
9989 CXXFLAGS=$ac_save_CXXFLAGS
9990 elif test $ac_cv_prog_cxx_g = yes; then
9991 if test "$GXX" = yes; then
9997 if test "$GXX" = yes; then
10004 ac_cpp='$CPP $CPPFLAGS'
10005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10010 echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&5
10011 cxxflags_ac_prog_cxx=$CXXFLAGS
10012 cxxflags_list=ac_prog_cxx
10014 # If the user didn't specify $CXXFLAGS, then try $CFLAGS, with -g removed
10015 # if AC_PROG_CXX thinks that doesn't work. $CFLAGS stands a good chance
10016 # of working, eg. on a GNU system where CC=gcc and CXX=g++.
10018 if test "$test_CXXFLAGS" != set; then
10019 cxxflags_cflags=$CFLAGS
10020 cxxflags_list="cflags $cxxflags_list"
10021 if test "$ac_prog_cxx_g" = no; then
10022 cxxflags_cflags=`echo "$cxxflags_cflags" | sed -e 's/ -g //' -e 's/^-g //' -e 's/ -g$//'`
10026 # See if the C++ compiler works. If the user specified CXXFLAGS then all
10027 # we're doing is checking whether AC_PROG_CXX succeeded, since it doesn't
10028 # give a fatal error, just leaves CXX set to a default g++. If on the
10029 # other hand the user didn't specify CXXFLAGS then we get to try here our
10030 # $cxxflags_list alternatives.
10032 # Automake includes $CPPFLAGS in a C++ compile, so we do the same here.
10034 for cxxflags_choice in $cxxflags_list; do
10035 eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice\"
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS" >&5
10037 $as_echo_n "checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS... " >&6; }
10038 gmp_prog_cxx_works=yes
10040 # start with a plain "main()", then go on to further checks
10041 if test "$gmp_prog_cxx_works" = yes; then
10042 # remove anything that might look like compiler output to our "||" expression
10043 rm -f conftest* a.out b.out a.exe a_out.exe
10044 cat >conftest.cc <<EOF
10046 int main (void) { return 0; }
10048 echo "Test compile: " >&5
10049 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
10050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
10051 (eval $gmp_cxxcompile) 2>&5
10053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10054 test $ac_status = 0; }; then
10055 if test "$cross_compiling" = no; then
10056 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
10057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10058 (eval $ac_try) 2>&5
10060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10061 test $ac_status = 0; }; }; then :;
10063 gmp_prog_cxx_works="no, program does not run"
10067 gmp_prog_cxx_works="no"
10069 case $gmp_prog_cxx_works in
10071 echo "failed program was:" >&5
10072 cat conftest.cc >&5
10075 rm -f conftest* a.out b.out a.exe a_out.exe
10079 if test "$gmp_prog_cxx_works" = yes; then
10080 # remove anything that might look like compiler output to our "||" expression
10081 rm -f conftest* a.out b.out a.exe a_out.exe
10082 cat >conftest.cc <<EOF
10084 using namespace foo;
10086 int main (void) { return 0; }
10088 echo "Test compile: namespace" >&5
10089 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
10090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
10091 (eval $gmp_cxxcompile) 2>&5
10093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10094 test $ac_status = 0; }; then
10095 if test "$cross_compiling" = no; then
10096 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
10097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10098 (eval $ac_try) 2>&5
10100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10101 test $ac_status = 0; }; }; then :;
10103 gmp_prog_cxx_works="no, namespace, program does not run"
10107 gmp_prog_cxx_works="no, namespace"
10109 case $gmp_prog_cxx_works in
10111 echo "failed program was:" >&5
10112 cat conftest.cc >&5
10115 rm -f conftest* a.out b.out a.exe a_out.exe
10119 # GMP requires the standard C++ iostream classes
10120 if test "$gmp_prog_cxx_works" = yes; then
10121 # remove anything that might look like compiler output to our "||" expression
10122 rm -f conftest* a.out b.out a.exe a_out.exe
10123 cat >conftest.cc <<EOF
10124 /* This test rejects g++ 2.7.2 which doesn't have <iostream>, only a
10125 pre-standard iostream.h. */
10126 #include <iostream>
10128 /* This test rejects OSF 5.1 Compaq C++ in its default pre-standard iostream
10129 mode, since that mode puts cout in the global namespace, not "std". */
10130 void someoutput (void) { std::cout << 123; }
10132 int main (void) { return 0; }
10134 echo "Test compile: std iostream" >&5
10135 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
10136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
10137 (eval $gmp_cxxcompile) 2>&5
10139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10140 test $ac_status = 0; }; then
10141 if test "$cross_compiling" = no; then
10142 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
10143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10144 (eval $ac_try) 2>&5
10146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10147 test $ac_status = 0; }; }; then :;
10149 gmp_prog_cxx_works="no, std iostream, program does not run"
10153 gmp_prog_cxx_works="no, std iostream"
10155 case $gmp_prog_cxx_works in
10157 echo "failed program was:" >&5
10158 cat conftest.cc >&5
10161 rm -f conftest* a.out b.out a.exe a_out.exe
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cxx_works" >&5
10166 $as_echo "$gmp_prog_cxx_works" >&6; }
10167 case $gmp_prog_cxx_works in
10179 # If --enable-cxx=yes but a C++ compiler can't be found, then abort.
10180 if test $want_cxx = no && test $enable_cxx = yes; then
10181 as_fn_error $? "C++ compiler not available, see config.log for details" "$LINENO" 5
10185 if test $want_cxx = yes; then
10194 # FIXME: We're not interested in CXXCPP for ourselves, but if we don't do it
10195 # here then AC_PROG_LIBTOOL will AC_REQUIRE it (via _LT_AC_TAGCONFIG) and
10196 # hence execute it unconditionally, and that will fail if there's no C++
10197 # compiler (and no generic /lib/cpp).
10199 if test $want_cxx = yes; then
10201 ac_cpp='$CXXCPP $CPPFLAGS'
10202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10206 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10207 if test -z "$CXXCPP"; then
10208 if ${ac_cv_prog_CXXCPP+:} false; then :
10209 $as_echo_n "(cached) " >&6
10211 # Double quotes because CXXCPP needs to be expanded
10212 for CXXCPP in "$CXX -E" "/lib/cpp"
10214 ac_preproc_ok=false
10215 for ac_cxx_preproc_warn_flag in '' yes
10217 # Use a header file that comes with gcc, so configuring glibc
10218 # with a fresh cross-compiler works.
10219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10220 # <limits.h> exists even on freestanding compilers.
10221 # On the NeXT, cc -E runs the code through the compiler's parser,
10222 # not just through cpp. "Syntax error" is here to catch this case.
10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10226 # include <limits.h>
10228 # include <assert.h>
10232 if ac_fn_cxx_try_cpp "$LINENO"; then :
10235 # Broken: fails on valid input.
10238 rm -f conftest.err conftest.i conftest.$ac_ext
10240 # OK, works on sane cases. Now check whether nonexistent headers
10241 # can be detected and how.
10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h. */
10244 #include <ac_nonexistent.h>
10246 if ac_fn_cxx_try_cpp "$LINENO"; then :
10247 # Broken: success on invalid input.
10250 # Passes both tests.
10254 rm -f conftest.err conftest.i conftest.$ac_ext
10257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10258 rm -f conftest.i conftest.err conftest.$ac_ext
10259 if $ac_preproc_ok; then :
10264 ac_cv_prog_CXXCPP=$CXXCPP
10267 CXXCPP=$ac_cv_prog_CXXCPP
10269 ac_cv_prog_CXXCPP=$CXXCPP
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10272 $as_echo "$CXXCPP" >&6; }
10273 ac_preproc_ok=false
10274 for ac_cxx_preproc_warn_flag in '' yes
10276 # Use a header file that comes with gcc, so configuring glibc
10277 # with a fresh cross-compiler works.
10278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10279 # <limits.h> exists even on freestanding compilers.
10280 # On the NeXT, cc -E runs the code through the compiler's parser,
10281 # not just through cpp. "Syntax error" is here to catch this case.
10282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10283 /* end confdefs.h. */
10285 # include <limits.h>
10287 # include <assert.h>
10291 if ac_fn_cxx_try_cpp "$LINENO"; then :
10294 # Broken: fails on valid input.
10297 rm -f conftest.err conftest.i conftest.$ac_ext
10299 # OK, works on sane cases. Now check whether nonexistent headers
10300 # can be detected and how.
10301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10302 /* end confdefs.h. */
10303 #include <ac_nonexistent.h>
10305 if ac_fn_cxx_try_cpp "$LINENO"; then :
10306 # Broken: success on invalid input.
10309 # Passes both tests.
10313 rm -f conftest.err conftest.i conftest.$ac_ext
10316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10317 rm -f conftest.i conftest.err conftest.$ac_ext
10318 if $ac_preproc_ok; then :
10321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10323 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
10324 See \`config.log' for more details" "$LINENO" 5; }
10328 ac_cpp='$CPP $CPPFLAGS'
10329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10336 # Path setups for Cray, according to IEEE or CFP. These must come after
10337 # deciding the compiler.
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
10342 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
10343 if ${ac_cv_path_GREP+:} false; then :
10344 $as_echo_n "(cached) " >&6
10346 if test -z "$GREP"; then
10347 ac_path_GREP_found=false
10348 # Loop through the user's path and test for each of PROGNAME-LIST
10349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10353 test -z "$as_dir" && as_dir=.
10354 for ac_prog in grep ggrep; do
10355 for ac_exec_ext in '' $ac_executable_extensions; do
10356 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
10357 as_fn_executable_p "$ac_path_GREP" || continue
10358 # Check for GNU ac_path_GREP and select it if it is found.
10359 # Check for GNU $ac_path_GREP
10360 case `"$ac_path_GREP" --version 2>&1` in
10362 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
10365 $as_echo_n 0123456789 >"conftest.in"
10368 cat "conftest.in" "conftest.in" >"conftest.tmp"
10369 mv "conftest.tmp" "conftest.in"
10370 cp "conftest.in" "conftest.nl"
10371 $as_echo 'GREP' >> "conftest.nl"
10372 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10373 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10374 as_fn_arith $ac_count + 1 && ac_count=$as_val
10375 if test $ac_count -gt ${ac_path_GREP_max-0}; then
10376 # Best one so far, save it but keep looking for a better one
10377 ac_cv_path_GREP="$ac_path_GREP"
10378 ac_path_GREP_max=$ac_count
10380 # 10*(2^10) chars as input seems more than enough
10381 test $ac_count -gt 10 && break
10383 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10386 $ac_path_GREP_found && break 3
10391 if test -z "$ac_cv_path_GREP"; then
10392 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10395 ac_cv_path_GREP=$GREP
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
10400 $as_echo "$ac_cv_path_GREP" >&6; }
10401 GREP="$ac_cv_path_GREP"
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
10405 $as_echo_n "checking for egrep... " >&6; }
10406 if ${ac_cv_path_EGREP+:} false; then :
10407 $as_echo_n "(cached) " >&6
10409 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10410 then ac_cv_path_EGREP="$GREP -E"
10412 if test -z "$EGREP"; then
10413 ac_path_EGREP_found=false
10414 # Loop through the user's path and test for each of PROGNAME-LIST
10415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10416 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10419 test -z "$as_dir" && as_dir=.
10420 for ac_prog in egrep; do
10421 for ac_exec_ext in '' $ac_executable_extensions; do
10422 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10423 as_fn_executable_p "$ac_path_EGREP" || continue
10424 # Check for GNU ac_path_EGREP and select it if it is found.
10425 # Check for GNU $ac_path_EGREP
10426 case `"$ac_path_EGREP" --version 2>&1` in
10428 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10431 $as_echo_n 0123456789 >"conftest.in"
10434 cat "conftest.in" "conftest.in" >"conftest.tmp"
10435 mv "conftest.tmp" "conftest.in"
10436 cp "conftest.in" "conftest.nl"
10437 $as_echo 'EGREP' >> "conftest.nl"
10438 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10439 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10440 as_fn_arith $ac_count + 1 && ac_count=$as_val
10441 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10442 # Best one so far, save it but keep looking for a better one
10443 ac_cv_path_EGREP="$ac_path_EGREP"
10444 ac_path_EGREP_max=$ac_count
10446 # 10*(2^10) chars as input seems more than enough
10447 test $ac_count -gt 10 && break
10449 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10452 $ac_path_EGREP_found && break 3
10457 if test -z "$ac_cv_path_EGREP"; then
10458 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10461 ac_cv_path_EGREP=$EGREP
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
10467 $as_echo "$ac_cv_path_EGREP" >&6; }
10468 EGREP="$ac_cv_path_EGREP"
10473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474 /* end confdefs.h. */
10479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10480 $EGREP "yes" >/dev/null 2>&1; then :
10481 add_path="cray/ieee"
10483 add_path="cray/cfp"; extra_functions="mulwwc90"
10489 add_path="cray/cfp"; extra_functions="mulwwj90"
10495 if test -z "$MPN_PATH"; then
10496 path="$add_path $path"
10499 # For a nail build, also look in "nails" subdirectories.
10501 if test $GMP_NAIL_BITS != 0 && test -z "$MPN_PATH"; then
10505 generic) new_path="$new_path $i" ;;
10506 *) new_path="$new_path $i/nails $i" ;;
10513 # Put all directories into CPUVEC_list so as to get a full set of
10514 # CPUVEC_SETUP_$tmp_suffix defines into config.h, even if some of them are
10515 # empty because mmx and/or sse2 had to be dropped.
10517 for i in $fat_path; do
10518 tmp_suffix=`echo $i | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
10519 CPUVEC_list="$CPUVEC_list CPUVEC_SETUP_$tmp_suffix"
10523 # If there's any sse2 or mmx in the path, check whether the assembler
10524 # supports it, and remove if not.
10526 # We only need this in ABI=32, for ABI=64 on x86_64 we can assume a new
10527 # enough assembler.
10530 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
10531 if test "$ABI" = 32; then
10532 case "$path $fat_path" in
10533 *mmx*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about MMX instructions" >&5
10534 $as_echo_n "checking if the assembler knows about MMX instructions... " >&6; }
10535 if ${gmp_cv_asm_x86_mmx+:} false; then :
10536 $as_echo_n "(cached) " >&6
10538 cat >conftest.s <<EOF
10542 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
10543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
10544 (eval $gmp_assemble) 2>&5
10546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10547 test $ac_status = 0; }; then
10548 cat conftest.out >&5
10549 gmp_cv_asm_x86_mmx=yes
10552 if (dis conftest.$OBJEXT >conftest.out) 2>/dev/null; then
10553 if grep "0f 6f c1" conftest.out >/dev/null; then
10554 gmp_cv_asm_x86_mmx=movq-bug
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"dis\" not available to check for \"as\" movq bug" >&5
10558 $as_echo "$as_me: WARNING: \"dis\" not available to check for \"as\" movq bug" >&2;}
10562 cat conftest.out >&5
10563 echo "configure: failed program was:" >&5
10565 gmp_cv_asm_x86_mmx=no
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_mmx" >&5
10571 $as_echo "$gmp_cv_asm_x86_mmx" >&6; }
10573 case $gmp_cv_asm_x86_mmx in
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10576 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
10578 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has MMX code, but the assembler" >&5
10580 $as_echo "$as_me: WARNING: | Host CPU has MMX code, but the assembler" >&2;}
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
10582 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&5
10584 $as_echo "$as_me: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&2;}
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | movq operands are reversed." >&5
10586 $as_echo "$as_me: WARNING: | movq operands are reversed." >&2;}
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-MMX replacements will be used." >&5
10588 $as_echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
10590 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10592 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10596 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
10598 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&5
10600 $as_echo "$as_me: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&2;}
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
10602 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-MMX replacements will be used." >&5
10604 $as_echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
10606 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10608 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10611 if test "$gmp_cv_asm_x86_mmx" = yes; then
10618 *) tmp_path="$tmp_path $i" ;;
10624 for i in $fat_path; do
10627 *) tmp_path="$tmp_path $i" ;;
10630 fat_path="$tmp_path"
10636 case "$path $fat_path" in
10637 *sse2*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about SSE2 instructions" >&5
10638 $as_echo_n "checking if the assembler knows about SSE2 instructions... " >&6; }
10639 if ${gmp_cv_asm_x86_sse2+:} false; then :
10640 $as_echo_n "(cached) " >&6
10642 cat >conftest.s <<EOF
10646 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
10647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
10648 (eval $gmp_assemble) 2>&5
10650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10651 test $ac_status = 0; }; then
10652 cat conftest.out >&5
10653 gmp_cv_asm_x86_sse2=yes
10655 cat conftest.out >&5
10656 echo "configure: failed program was:" >&5
10658 gmp_cv_asm_x86_sse2=no
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_sse2" >&5
10665 $as_echo "$gmp_cv_asm_x86_sse2" >&6; }
10666 case $gmp_cv_asm_x86_sse2 in
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10672 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
10674 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&5
10676 $as_echo "$as_me: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&2;}
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
10678 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-SSE2 replacements will be used." >&5
10680 $as_echo "$as_me: WARNING: | Non-SSE2 replacements will be used." >&2;}
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
10682 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10684 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10689 *) tmp_path="$tmp_path $i" ;;
10695 for i in $fat_path; do
10698 *) tmp_path="$tmp_path $i" ;;
10701 fat_path="$tmp_path"
10713 if test "$enable_assembly" = "no"; then
10715 CFLAGS="$CFLAGS -DNO_ASM"
10716 # for abi in $abilist; do
10717 # eval unset "path_\$abi"
10718 # eval gcc_${abi}_cflags=\"\$gcc_${abi}_cflags -DNO_ASM\"
10729 GMP_LDFLAGS=$GMP_LDFLAGS
10734 echo "using ABI=\"$ABI\""
10736 echo " CFLAGS=\"$CFLAGS\""
10737 echo " CPPFLAGS=\"$CPPFLAGS\""
10738 if test $want_cxx = yes; then
10739 echo " CXX=\"$CXX\""
10740 echo " CXXFLAGS=\"$CXXFLAGS\""
10742 echo " MPN_PATH=\"$path\""
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports --noexecstack option" >&5
10747 $as_echo_n "checking whether assembler supports --noexecstack option... " >&6; }
10748 if ${cl_cv_as_noexecstack+:} false; then :
10749 $as_echo_n "(cached) " >&6
10751 cat > conftest.c <<EOF
10754 if { ac_try='${CC} $CFLAGS $CPPFLAGS
10755 -S -o conftest.s conftest.c >/dev/null'
10756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10757 (eval $ac_try) 2>&5
10759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10760 test $ac_status = 0; }; } \
10761 && grep .note.GNU-stack conftest.s >/dev/null \
10762 && { ac_try='${CC} $CFLAGS $CPPFLAGS -Wa,--noexecstack
10763 -c -o conftest.o conftest.s >/dev/null'
10764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10765 (eval $ac_try) 2>&5
10767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10768 test $ac_status = 0; }; }
10770 cl_cv_as_noexecstack=yes
10772 cl_cv_as_noexecstack=no
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_as_noexecstack" >&5
10777 $as_echo "$cl_cv_as_noexecstack" >&6; }
10778 if test "$cl_cv_as_noexecstack" = yes; then
10779 ASMFLAGS="$ASMFLAGS -Wa,--noexecstack"
10786 if test -n "$ac_tool_prefix"; then
10787 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10788 set dummy ${ac_tool_prefix}ar; ac_word=$2
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10790 $as_echo_n "checking for $ac_word... " >&6; }
10791 if ${ac_cv_prog_AR+:} false; then :
10792 $as_echo_n "(cached) " >&6
10794 if test -n "$AR"; then
10795 ac_cv_prog_AR="$AR" # Let the user override the test.
10797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10798 for as_dir in $PATH
10801 test -z "$as_dir" && as_dir=.
10802 for ac_exec_ext in '' $ac_executable_extensions; do
10803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10804 ac_cv_prog_AR="${ac_tool_prefix}ar"
10805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10815 if test -n "$AR"; then
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10817 $as_echo "$AR" >&6; }
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10820 $as_echo "no" >&6; }
10825 if test -z "$ac_cv_prog_AR"; then
10827 # Extract the first word of "ar", so it can be a program name with args.
10828 set dummy ar; ac_word=$2
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10830 $as_echo_n "checking for $ac_word... " >&6; }
10831 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10832 $as_echo_n "(cached) " >&6
10834 if test -n "$ac_ct_AR"; then
10835 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10838 for as_dir in $PATH
10841 test -z "$as_dir" && as_dir=.
10842 for ac_exec_ext in '' $ac_executable_extensions; do
10843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10844 ac_cv_prog_ac_ct_AR="ar"
10845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10854 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10855 if test -n "$ac_ct_AR"; then
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10857 $as_echo "$ac_ct_AR" >&6; }
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860 $as_echo "no" >&6; }
10863 if test "x$ac_ct_AR" = x; then
10866 case $cross_compiling:$ac_tool_warned in
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10870 ac_tool_warned=yes ;;
10875 AR="$ac_cv_prog_AR"
10878 if test -z "$gmp_user_AR"; then
10879 eval arflags=\"\$ar${abi1}_flags\"
10880 test -n "$arflags" || eval arflags=\"\$ar${abi2}_flags\"
10881 if test -n "$arflags"; then
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra ar flags" >&5
10883 $as_echo_n "checking for extra ar flags... " >&6; }
10885 ac_cv_prog_AR="$AR $arflags"
10886 ac_cv_prog_ac_ct_AR="$AR $arflags"
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arflags" >&5
10888 $as_echo "$arflags" >&6; }
10891 if test -z "$AR_FLAGS"; then
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10898 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10899 if ${lt_cv_path_NM+:} false; then :
10900 $as_echo_n "(cached) " >&6
10902 if test -n "$NM"; then
10903 # Let the user override the test.
10904 lt_cv_path_NM="$NM"
10906 lt_nm_to_check="${ac_tool_prefix}nm"
10907 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10908 lt_nm_to_check="$lt_nm_to_check nm"
10910 for lt_tmp_nm in $lt_nm_to_check; do
10911 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10912 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10914 test -z "$ac_dir" && ac_dir=.
10915 tmp_nm="$ac_dir/$lt_tmp_nm"
10916 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10917 # Check to see if the nm accepts a BSD-compat flag.
10918 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10919 # nm: unknown option "B" ignored
10920 # Tru64's nm complains that /dev/null is an invalid object file
10921 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10922 */dev/null* | *'Invalid file or object type'*)
10923 lt_cv_path_NM="$tmp_nm -B"
10927 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10929 lt_cv_path_NM="$tmp_nm -p"
10933 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10934 continue # so that we can try to find one that supports BSD flags
10943 : ${lt_cv_path_NM=no}
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10947 $as_echo "$lt_cv_path_NM" >&6; }
10948 if test "$lt_cv_path_NM" != "no"; then
10949 NM="$lt_cv_path_NM"
10951 # Didn't find any BSD compatible name lister, look for dumpbin.
10952 if test -n "$DUMPBIN"; then :
10953 # Let the user override the test.
10955 if test -n "$ac_tool_prefix"; then
10956 for ac_prog in dumpbin "link -dump"
10958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10959 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10961 $as_echo_n "checking for $ac_word... " >&6; }
10962 if ${ac_cv_prog_DUMPBIN+:} false; then :
10963 $as_echo_n "(cached) " >&6
10965 if test -n "$DUMPBIN"; then
10966 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969 for as_dir in $PATH
10972 test -z "$as_dir" && as_dir=.
10973 for ac_exec_ext in '' $ac_executable_extensions; do
10974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10975 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10985 DUMPBIN=$ac_cv_prog_DUMPBIN
10986 if test -n "$DUMPBIN"; then
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10988 $as_echo "$DUMPBIN" >&6; }
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991 $as_echo "no" >&6; }
10995 test -n "$DUMPBIN" && break
10998 if test -z "$DUMPBIN"; then
10999 ac_ct_DUMPBIN=$DUMPBIN
11000 for ac_prog in dumpbin "link -dump"
11002 # Extract the first word of "$ac_prog", so it can be a program name with args.
11003 set dummy $ac_prog; ac_word=$2
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11005 $as_echo_n "checking for $ac_word... " >&6; }
11006 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11007 $as_echo_n "(cached) " >&6
11009 if test -n "$ac_ct_DUMPBIN"; then
11010 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11013 for as_dir in $PATH
11016 test -z "$as_dir" && as_dir=.
11017 for ac_exec_ext in '' $ac_executable_extensions; do
11018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11019 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11029 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11030 if test -n "$ac_ct_DUMPBIN"; then
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11032 $as_echo "$ac_ct_DUMPBIN" >&6; }
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11035 $as_echo "no" >&6; }
11039 test -n "$ac_ct_DUMPBIN" && break
11042 if test "x$ac_ct_DUMPBIN" = x; then
11045 case $cross_compiling:$ac_tool_warned in
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11049 ac_tool_warned=yes ;;
11051 DUMPBIN=$ac_ct_DUMPBIN
11055 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11057 DUMPBIN="$DUMPBIN -symbols"
11065 if test "$DUMPBIN" != ":"; then
11069 test -z "$NM" && NM=nm
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11077 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11078 if ${lt_cv_nm_interface+:} false; then :
11079 $as_echo_n "(cached) " >&6
11081 lt_cv_nm_interface="BSD nm"
11082 echo "int some_variable = 0;" > conftest.$ac_ext
11083 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11084 (eval "$ac_compile" 2>conftest.err)
11085 cat conftest.err >&5
11086 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11087 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11088 cat conftest.err >&5
11089 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11090 cat conftest.out >&5
11091 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11092 lt_cv_nm_interface="MS dumpbin"
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11097 $as_echo "$lt_cv_nm_interface" >&6; }
11100 # FIXME: When cross compiling (ie. $ac_tool_prefix not empty), libtool
11101 # defaults to plain "nm" if a "${ac_tool_prefix}nm" is not found. In this
11102 # case run it again to try the native "nm", firstly so that likely locations
11103 # are searched, secondly so that -B or -p are added if necessary for BSD
11104 # format. This is necessary for instance on OSF with "./configure
11105 # --build=alphaev5-dec-osf --host=alphaev6-dec-osf".
11107 if test -z "$gmp_user_NM" && test -n "$ac_tool_prefix" && test "$NM" = nm; then
11108 $as_unset lt_cv_path_NM
11109 gmp_save_ac_tool_prefix=$ac_tool_prefix
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11113 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11114 if ${lt_cv_path_NM+:} false; then :
11115 $as_echo_n "(cached) " >&6
11117 if test -n "$NM"; then
11118 # Let the user override the test.
11119 lt_cv_path_NM="$NM"
11121 lt_nm_to_check="${ac_tool_prefix}nm"
11122 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11123 lt_nm_to_check="$lt_nm_to_check nm"
11125 for lt_tmp_nm in $lt_nm_to_check; do
11126 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11127 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11129 test -z "$ac_dir" && ac_dir=.
11130 tmp_nm="$ac_dir/$lt_tmp_nm"
11131 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11132 # Check to see if the nm accepts a BSD-compat flag.
11133 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11134 # nm: unknown option "B" ignored
11135 # Tru64's nm complains that /dev/null is an invalid object file
11136 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11137 */dev/null* | *'Invalid file or object type'*)
11138 lt_cv_path_NM="$tmp_nm -B"
11142 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11144 lt_cv_path_NM="$tmp_nm -p"
11148 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11149 continue # so that we can try to find one that supports BSD flags
11158 : ${lt_cv_path_NM=no}
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11162 $as_echo "$lt_cv_path_NM" >&6; }
11163 if test "$lt_cv_path_NM" != "no"; then
11164 NM="$lt_cv_path_NM"
11166 # Didn't find any BSD compatible name lister, look for dumpbin.
11167 if test -n "$DUMPBIN"; then :
11168 # Let the user override the test.
11170 if test -n "$ac_tool_prefix"; then
11171 for ac_prog in dumpbin "link -dump"
11173 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11174 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11176 $as_echo_n "checking for $ac_word... " >&6; }
11177 if ${ac_cv_prog_DUMPBIN+:} false; then :
11178 $as_echo_n "(cached) " >&6
11180 if test -n "$DUMPBIN"; then
11181 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11184 for as_dir in $PATH
11187 test -z "$as_dir" && as_dir=.
11188 for ac_exec_ext in '' $ac_executable_extensions; do
11189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11190 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11200 DUMPBIN=$ac_cv_prog_DUMPBIN
11201 if test -n "$DUMPBIN"; then
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11203 $as_echo "$DUMPBIN" >&6; }
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11206 $as_echo "no" >&6; }
11210 test -n "$DUMPBIN" && break
11213 if test -z "$DUMPBIN"; then
11214 ac_ct_DUMPBIN=$DUMPBIN
11215 for ac_prog in dumpbin "link -dump"
11217 # Extract the first word of "$ac_prog", so it can be a program name with args.
11218 set dummy $ac_prog; ac_word=$2
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11220 $as_echo_n "checking for $ac_word... " >&6; }
11221 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11222 $as_echo_n "(cached) " >&6
11224 if test -n "$ac_ct_DUMPBIN"; then
11225 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11228 for as_dir in $PATH
11231 test -z "$as_dir" && as_dir=.
11232 for ac_exec_ext in '' $ac_executable_extensions; do
11233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11234 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11244 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11245 if test -n "$ac_ct_DUMPBIN"; then
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11247 $as_echo "$ac_ct_DUMPBIN" >&6; }
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250 $as_echo "no" >&6; }
11254 test -n "$ac_ct_DUMPBIN" && break
11257 if test "x$ac_ct_DUMPBIN" = x; then
11260 case $cross_compiling:$ac_tool_warned in
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11264 ac_tool_warned=yes ;;
11266 DUMPBIN=$ac_ct_DUMPBIN
11270 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11272 DUMPBIN="$DUMPBIN -symbols"
11280 if test "$DUMPBIN" != ":"; then
11284 test -z "$NM" && NM=nm
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11289 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11290 if ${lt_cv_nm_interface+:} false; then :
11291 $as_echo_n "(cached) " >&6
11293 lt_cv_nm_interface="BSD nm"
11294 echo "int some_variable = 0;" > conftest.$ac_ext
11295 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11296 (eval "$ac_compile" 2>conftest.err)
11297 cat conftest.err >&5
11298 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11299 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11300 cat conftest.err >&5
11301 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11302 cat conftest.out >&5
11303 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11304 lt_cv_nm_interface="MS dumpbin"
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11309 $as_echo "$lt_cv_nm_interface" >&6; }
11311 ac_tool_prefix=$gmp_save_ac_tool_prefix
11314 if test -z "$gmp_user_NM"; then
11315 eval nmflags=\"\$nm${abi1}_flags\"
11316 test -n "$nmflags" || eval nmflags=\"\$nm${abi2}_flags\"
11317 if test -n "$nmflags"; then
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra nm flags" >&5
11319 $as_echo_n "checking for extra nm flags... " >&6; }
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nmflags" >&5
11322 $as_echo "$nmflags" >&6; }
11328 # FIXME: On AIX 3 and 4, $libname.a is included in libtool
11329 # $library_names_spec, so libgmp.a becomes a symlink to libgmp.so, making
11330 # it impossible to build shared and static libraries simultaneously.
11331 # Disable shared libraries by default, but let the user override with
11332 # --enable-shared --disable-static.
11334 # FIXME: This $libname.a problem looks like it might apply to *-*-amigaos*
11335 # and *-*-os2* too, but wait for someone to test this before worrying
11336 # about it. If there is a problem then of course libtool is the right
11340 if test -z "$enable_shared"; then enable_shared=no; fi ;;
11344 # Configs for Windows DLLs.
11346 enable_win32_dll=yes
11349 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11350 if test -n "$ac_tool_prefix"; then
11351 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11352 set dummy ${ac_tool_prefix}as; ac_word=$2
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11354 $as_echo_n "checking for $ac_word... " >&6; }
11355 if ${ac_cv_prog_AS+:} false; then :
11356 $as_echo_n "(cached) " >&6
11358 if test -n "$AS"; then
11359 ac_cv_prog_AS="$AS" # Let the user override the test.
11361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11362 for as_dir in $PATH
11365 test -z "$as_dir" && as_dir=.
11366 for ac_exec_ext in '' $ac_executable_extensions; do
11367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11368 ac_cv_prog_AS="${ac_tool_prefix}as"
11369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11379 if test -n "$AS"; then
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11381 $as_echo "$AS" >&6; }
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384 $as_echo "no" >&6; }
11389 if test -z "$ac_cv_prog_AS"; then
11391 # Extract the first word of "as", so it can be a program name with args.
11392 set dummy as; ac_word=$2
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11394 $as_echo_n "checking for $ac_word... " >&6; }
11395 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11396 $as_echo_n "(cached) " >&6
11398 if test -n "$ac_ct_AS"; then
11399 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11402 for as_dir in $PATH
11405 test -z "$as_dir" && as_dir=.
11406 for ac_exec_ext in '' $ac_executable_extensions; do
11407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11408 ac_cv_prog_ac_ct_AS="as"
11409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11418 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11419 if test -n "$ac_ct_AS"; then
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11421 $as_echo "$ac_ct_AS" >&6; }
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11424 $as_echo "no" >&6; }
11427 if test "x$ac_ct_AS" = x; then
11430 case $cross_compiling:$ac_tool_warned in
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11434 ac_tool_warned=yes ;;
11439 AS="$ac_cv_prog_AS"
11442 if test -n "$ac_tool_prefix"; then
11443 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11444 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11446 $as_echo_n "checking for $ac_word... " >&6; }
11447 if ${ac_cv_prog_DLLTOOL+:} false; then :
11448 $as_echo_n "(cached) " >&6
11450 if test -n "$DLLTOOL"; then
11451 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11454 for as_dir in $PATH
11457 test -z "$as_dir" && as_dir=.
11458 for ac_exec_ext in '' $ac_executable_extensions; do
11459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11460 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11470 DLLTOOL=$ac_cv_prog_DLLTOOL
11471 if test -n "$DLLTOOL"; then
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11473 $as_echo "$DLLTOOL" >&6; }
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11476 $as_echo "no" >&6; }
11481 if test -z "$ac_cv_prog_DLLTOOL"; then
11482 ac_ct_DLLTOOL=$DLLTOOL
11483 # Extract the first word of "dlltool", so it can be a program name with args.
11484 set dummy dlltool; ac_word=$2
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11486 $as_echo_n "checking for $ac_word... " >&6; }
11487 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11488 $as_echo_n "(cached) " >&6
11490 if test -n "$ac_ct_DLLTOOL"; then
11491 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11494 for as_dir in $PATH
11497 test -z "$as_dir" && as_dir=.
11498 for ac_exec_ext in '' $ac_executable_extensions; do
11499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11500 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11510 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11511 if test -n "$ac_ct_DLLTOOL"; then
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11513 $as_echo "$ac_ct_DLLTOOL" >&6; }
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11516 $as_echo "no" >&6; }
11519 if test "x$ac_ct_DLLTOOL" = x; then
11522 case $cross_compiling:$ac_tool_warned in
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11526 ac_tool_warned=yes ;;
11528 DLLTOOL=$ac_ct_DLLTOOL
11531 DLLTOOL="$ac_cv_prog_DLLTOOL"
11534 if test -n "$ac_tool_prefix"; then
11535 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11536 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11538 $as_echo_n "checking for $ac_word... " >&6; }
11539 if ${ac_cv_prog_OBJDUMP+:} false; then :
11540 $as_echo_n "(cached) " >&6
11542 if test -n "$OBJDUMP"; then
11543 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546 for as_dir in $PATH
11549 test -z "$as_dir" && as_dir=.
11550 for ac_exec_ext in '' $ac_executable_extensions; do
11551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11552 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11562 OBJDUMP=$ac_cv_prog_OBJDUMP
11563 if test -n "$OBJDUMP"; then
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11565 $as_echo "$OBJDUMP" >&6; }
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11568 $as_echo "no" >&6; }
11573 if test -z "$ac_cv_prog_OBJDUMP"; then
11574 ac_ct_OBJDUMP=$OBJDUMP
11575 # Extract the first word of "objdump", so it can be a program name with args.
11576 set dummy objdump; ac_word=$2
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11578 $as_echo_n "checking for $ac_word... " >&6; }
11579 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11580 $as_echo_n "(cached) " >&6
11582 if test -n "$ac_ct_OBJDUMP"; then
11583 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11586 for as_dir in $PATH
11589 test -z "$as_dir" && as_dir=.
11590 for ac_exec_ext in '' $ac_executable_extensions; do
11591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11592 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11602 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11603 if test -n "$ac_ct_OBJDUMP"; then
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11605 $as_echo "$ac_ct_OBJDUMP" >&6; }
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608 $as_echo "no" >&6; }
11611 if test "x$ac_ct_OBJDUMP" = x; then
11614 case $cross_compiling:$ac_tool_warned in
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11618 ac_tool_warned=yes ;;
11620 OBJDUMP=$ac_ct_OBJDUMP
11623 OBJDUMP="$ac_cv_prog_OBJDUMP"
11629 test -z "$AS" && AS=as
11635 test -z "$DLLTOOL" && DLLTOOL=dlltool
11641 test -z "$OBJDUMP" && OBJDUMP=objdump
11653 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
11654 # By default, build only static.
11655 if test -z "$enable_shared"; then
11658 # Don't allow both static and DLL.
11659 if test "$enable_shared" != no && test "$enable_static" != no; then
11660 as_fn_error $? "cannot build both static and DLL, since gmp.h is different for each.
11661 Use \"--disable-static --enable-shared\" to build just a DLL." "$LINENO" 5
11664 # "-no-undefined" is required when building a DLL, see documentation on
11665 # AC_LIBTOOL_WIN32_DLL.
11667 # "-Wl,--export-all-symbols" is a bit of a hack, it gets all libgmp and
11668 # libgmpxx functions and variables exported. This is what libtool did
11669 # in the past, and it's convenient for us in the test programs.
11671 # Maybe it'd be prudent to check for --export-all-symbols before using
11672 # it, but it seems to have been in ld since at least 2000, and there's
11673 # not really any alternative we want to take up at the moment.
11675 # "-Wl,output-def" is used to get a .def file for use by MS lib to make
11676 # a .lib import library, described in the manual. libgmp-3.dll.def
11677 # corresponds to the libmp-3.dll.def generated by libtool (as a result
11678 # of -export-symbols on that library).
11680 # Incidentally, libtool does generate an import library libgmp.dll.a,
11681 # but it's "ar" format and cannot be used by the MS linker. There
11682 # doesn't seem to be any GNU tool for generating or converting to .lib.
11684 # FIXME: The .def files produced by -Wl,output-def include isascii,
11685 # iscsym, iscsymf and toascii, apparently because mingw ctype.h doesn't
11686 # inline isascii (used in gmp). It gives an extern inline for
11687 # __isascii, but for some reason not the plain isascii.
11689 if test "$enable_shared" = yes; then
11690 GMP_LDFLAGS="$GMP_LDFLAGS -no-undefined -Wl,--export-all-symbols"
11691 LIBGMP_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmp-3.dll.def"
11692 LIBGMPXX_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmpxx-3.dll.def"
11699 # Ensure that $CONFIG_SHELL is available for AC_LIBTOOL_SYS_MAX_CMD_LEN.
11700 # It's often set already by _LT_AC_PROG_ECHO_BACKSLASH or
11701 # _AS_LINENO_PREPARE, but not always.
11703 # The symptom of CONFIG_SHELL unset is some "expr" errors during the test,
11704 # and an empty result. This only happens when invoked as "sh configure",
11705 # ie. no path, and can be seen for instance on ia64-*-hpux*.
11707 # FIXME: Newer libtool should have it's own fix for this.
11709 if test -z "$CONFIG_SHELL"; then
11710 CONFIG_SHELL=$SHELL
11713 # Enable CXX in libtool only if we want it, and never enable GCJ, nor RC on
11714 # mingw and cygwin. Under --disable-cxx this avoids some error messages
11715 # from libtool arising from the fact we didn't actually run AC_PROG_CXX.
11716 # Notice that any user-supplied --with-tags setting takes precedence.
11718 # FIXME: Is this the right way to get this effect? Very possibly not, but
11719 # the current _LT_AC_TAGCONFIG doesn't really suggest an alternative.
11721 if test "${with_tags+set}" != set; then
11722 if test $want_cxx = yes; then
11729 # The dead hand of AC_REQUIRE makes AC_PROG_LIBTOOL expand and execute
11730 # AC_PROG_F77, even when F77 is not in the selected with_tags. This is
11731 # probably harmless, but it's unsightly and bloats our configure, so pretend
11732 # AC_PROG_F77 has been expanded already.
11734 # FIXME: Rumour has it libtool will one day provide a way for a configure.in
11735 # to say what it wants from among supported languages etc.
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11742 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11747 macro_version='2.4.2'
11748 macro_revision='1.3337'
11762 ltmain="$ac_aux_dir/ltmain.sh"
11764 # Backslashify metacharacters that are still active within
11765 # double-quoted strings.
11766 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11768 # Same as above, but do not quote variable references.
11769 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11771 # Sed substitution to delay expansion of an escaped shell variable in a
11772 # double_quote_subst'ed string.
11773 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11775 # Sed substitution to delay expansion of an escaped single quote.
11776 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11778 # Sed substitution to avoid accidental globbing in evaled expressions
11779 no_glob_subst='s/\*/\\\*/g'
11781 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11782 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11783 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11786 $as_echo_n "checking how to print strings... " >&6; }
11787 # Test print first, because it will be a builtin if present.
11788 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11789 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11791 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11794 # Use this function as a fallback that always works.
11795 func_fallback_echo ()
11797 eval 'cat <<_LTECHO_EOF
11801 ECHO='func_fallback_echo'
11804 # func_echo_all arg...
11805 # Invoke $ECHO with all args, space-separated.
11812 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11813 $as_echo "printf" >&6; } ;;
11814 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11815 $as_echo "print -r" >&6; } ;;
11816 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11817 $as_echo "cat" >&6; } ;;
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11834 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11835 if ${ac_cv_path_SED+:} false; then :
11836 $as_echo_n "(cached) " >&6
11838 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11839 for ac_i in 1 2 3 4 5 6 7; do
11840 ac_script="$ac_script$as_nl$ac_script"
11842 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11843 { ac_script=; unset ac_script;}
11844 if test -z "$SED"; then
11845 ac_path_SED_found=false
11846 # Loop through the user's path and test for each of PROGNAME-LIST
11847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11848 for as_dir in $PATH
11851 test -z "$as_dir" && as_dir=.
11852 for ac_prog in sed gsed; do
11853 for ac_exec_ext in '' $ac_executable_extensions; do
11854 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11855 as_fn_executable_p "$ac_path_SED" || continue
11856 # Check for GNU ac_path_SED and select it if it is found.
11857 # Check for GNU $ac_path_SED
11858 case `"$ac_path_SED" --version 2>&1` in
11860 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11863 $as_echo_n 0123456789 >"conftest.in"
11866 cat "conftest.in" "conftest.in" >"conftest.tmp"
11867 mv "conftest.tmp" "conftest.in"
11868 cp "conftest.in" "conftest.nl"
11869 $as_echo '' >> "conftest.nl"
11870 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11871 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11872 as_fn_arith $ac_count + 1 && ac_count=$as_val
11873 if test $ac_count -gt ${ac_path_SED_max-0}; then
11874 # Best one so far, save it but keep looking for a better one
11875 ac_cv_path_SED="$ac_path_SED"
11876 ac_path_SED_max=$ac_count
11878 # 10*(2^10) chars as input seems more than enough
11879 test $ac_count -gt 10 && break
11881 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11884 $ac_path_SED_found && break 3
11889 if test -z "$ac_cv_path_SED"; then
11890 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11893 ac_cv_path_SED=$SED
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11898 $as_echo "$ac_cv_path_SED" >&6; }
11899 SED="$ac_cv_path_SED"
11902 test -z "$SED" && SED=sed
11903 Xsed="$SED -e 1s/^X//"
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11916 $as_echo_n "checking for fgrep... " >&6; }
11917 if ${ac_cv_path_FGREP+:} false; then :
11918 $as_echo_n "(cached) " >&6
11920 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11921 then ac_cv_path_FGREP="$GREP -F"
11923 if test -z "$FGREP"; then
11924 ac_path_FGREP_found=false
11925 # Loop through the user's path and test for each of PROGNAME-LIST
11926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11927 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11930 test -z "$as_dir" && as_dir=.
11931 for ac_prog in fgrep; do
11932 for ac_exec_ext in '' $ac_executable_extensions; do
11933 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11934 as_fn_executable_p "$ac_path_FGREP" || continue
11935 # Check for GNU ac_path_FGREP and select it if it is found.
11936 # Check for GNU $ac_path_FGREP
11937 case `"$ac_path_FGREP" --version 2>&1` in
11939 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11942 $as_echo_n 0123456789 >"conftest.in"
11945 cat "conftest.in" "conftest.in" >"conftest.tmp"
11946 mv "conftest.tmp" "conftest.in"
11947 cp "conftest.in" "conftest.nl"
11948 $as_echo 'FGREP' >> "conftest.nl"
11949 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11950 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11951 as_fn_arith $ac_count + 1 && ac_count=$as_val
11952 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11953 # Best one so far, save it but keep looking for a better one
11954 ac_cv_path_FGREP="$ac_path_FGREP"
11955 ac_path_FGREP_max=$ac_count
11957 # 10*(2^10) chars as input seems more than enough
11958 test $ac_count -gt 10 && break
11960 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11963 $ac_path_FGREP_found && break 3
11968 if test -z "$ac_cv_path_FGREP"; then
11969 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11972 ac_cv_path_FGREP=$FGREP
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11978 $as_echo "$ac_cv_path_FGREP" >&6; }
11979 FGREP="$ac_cv_path_FGREP"
11982 test -z "$GREP" && GREP=grep
12002 # Check whether --with-gnu-ld was given.
12003 if test "${with_gnu_ld+set}" = set; then :
12004 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12010 if test "$GCC" = yes; then
12011 # Check if gcc -print-prog-name=ld gives a path.
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12013 $as_echo_n "checking for ld used by $CC... " >&6; }
12016 # gcc leaves a trailing carriage return which upsets mingw
12017 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12019 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12022 # Accept absolute paths.
12024 re_direlt='/[^/][^/]*/\.\./'
12025 # Canonicalize the pathname of ld
12026 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12027 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12028 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12030 test -z "$LD" && LD="$ac_prog"
12033 # If it fails, then pretend we aren't using GCC.
12037 # If it is relative, then search for the first ld in PATH.
12038 with_gnu_ld=unknown
12041 elif test "$with_gnu_ld" = yes; then
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12043 $as_echo_n "checking for GNU ld... " >&6; }
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12046 $as_echo_n "checking for non-GNU ld... " >&6; }
12048 if ${lt_cv_path_LD+:} false; then :
12049 $as_echo_n "(cached) " >&6
12051 if test -z "$LD"; then
12052 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12053 for ac_dir in $PATH; do
12055 test -z "$ac_dir" && ac_dir=.
12056 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12057 lt_cv_path_LD="$ac_dir/$ac_prog"
12058 # Check to see if the program is GNU ld. I'd rather use --version,
12059 # but apparently some variants of GNU ld only accept -v.
12060 # Break only if it was the GNU/non-GNU ld that we prefer.
12061 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12062 *GNU* | *'with BFD'*)
12063 test "$with_gnu_ld" != no && break
12066 test "$with_gnu_ld" != yes && break
12073 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12077 LD="$lt_cv_path_LD"
12078 if test -n "$LD"; then
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12080 $as_echo "$LD" >&6; }
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12083 $as_echo "no" >&6; }
12085 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12087 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12088 if ${lt_cv_prog_gnu_ld+:} false; then :
12089 $as_echo_n "(cached) " >&6
12091 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12092 case `$LD -v 2>&1 </dev/null` in
12093 *GNU* | *'with BFD'*)
12094 lt_cv_prog_gnu_ld=yes
12097 lt_cv_prog_gnu_ld=no
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12102 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12103 with_gnu_ld=$lt_cv_prog_gnu_ld
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12114 $as_echo_n "checking whether ln -s works... " >&6; }
12116 if test "$LN_S" = "ln -s"; then
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12118 $as_echo "yes" >&6; }
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12121 $as_echo "no, using $LN_S" >&6; }
12124 # find the maximum length of command line arguments
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12126 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12127 if ${lt_cv_sys_max_cmd_len+:} false; then :
12128 $as_echo_n "(cached) " >&6
12135 # On DJGPP, this test can blow up pretty badly due to problems in libc
12136 # (any single argument exceeding 2000 bytes causes a buffer overrun
12137 # during glob expansion). Even if it were fixed, the result of this
12138 # check would be larger than it should be.
12139 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12143 # Under GNU Hurd, this test is not required because there is
12144 # no limit to the length of command line arguments.
12145 # Libtool will interpret -1 as no limit whatsoever
12146 lt_cv_sys_max_cmd_len=-1;
12149 cygwin* | mingw* | cegcc*)
12150 # On Win9x/ME, this test blows up -- it succeeds, but takes
12151 # about 5 minutes as the teststring grows exponentially.
12152 # Worse, since 9x/ME are not pre-emptively multitasking,
12153 # you end up with a "frozen" computer, even though with patience
12154 # the test eventually succeeds (with a max line length of 256k).
12155 # Instead, let's just punt: use the minimum linelength reported by
12156 # all of the supported platforms: 8192 (on NT/2K/XP).
12157 lt_cv_sys_max_cmd_len=8192;
12161 # On MiNT this can take a long time and run out of memory.
12162 lt_cv_sys_max_cmd_len=8192;
12166 # On AmigaOS with pdksh, this test takes hours, literally.
12167 # So we just punt and use a minimum line length of 8192.
12168 lt_cv_sys_max_cmd_len=8192;
12171 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12172 # This has been around since 386BSD, at least. Likely further.
12173 if test -x /sbin/sysctl; then
12174 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12175 elif test -x /usr/sbin/sysctl; then
12176 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12178 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12180 # And add a safety zone
12181 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12182 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12186 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12187 lt_cv_sys_max_cmd_len=196608
12191 # The test takes a long time on OS/2.
12192 lt_cv_sys_max_cmd_len=8192
12196 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12197 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12198 # nice to cause kernel panics so lets avoid the loop below.
12199 # First set a reasonable default.
12200 lt_cv_sys_max_cmd_len=16384
12202 if test -x /sbin/sysconfig; then
12203 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12204 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12209 lt_cv_sys_max_cmd_len=102400
12211 sysv5* | sco5v6* | sysv4.2uw2*)
12212 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12213 if test -n "$kargmax"; then
12214 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12216 lt_cv_sys_max_cmd_len=32768
12220 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12221 if test -n "$lt_cv_sys_max_cmd_len"; then
12222 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12223 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12225 # Make teststring a little bigger before we do anything with it.
12226 # a 1K string should be a reasonable start.
12227 for i in 1 2 3 4 5 6 7 8 ; do
12228 teststring=$teststring$teststring
12230 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12231 # If test is not a shell built-in, we'll probably end up computing a
12232 # maximum length that is only half of the actual maximum length, but
12234 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
12235 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12236 test $i != 17 # 1/2 MB should be enough
12239 teststring=$teststring$teststring
12241 # Only check the string length outside the loop.
12242 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12244 # Add a significant safety factor because C++ compilers can tack on
12245 # massive amounts of additional arguments before passing them to the
12246 # linker. It appears as though 1/2 is a usable value.
12247 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12254 if test -n $lt_cv_sys_max_cmd_len ; then
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12256 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12259 $as_echo "none" >&6; }
12261 max_cmd_len=$lt_cv_sys_max_cmd_len
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12273 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12274 # Try some XSI features
12276 ( _lt_dummy="a/b/c"
12277 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
12279 && eval 'test $(( 1 + 1 )) -eq 2 \
12280 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12283 $as_echo "$xsi_shell" >&6; }
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12287 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12289 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12291 && lt_shell_append=yes
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12293 $as_echo "$lt_shell_append" >&6; }
12296 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12306 # test EBCDIC or ASCII
12307 case `echo X|tr X '\101'` in
12308 A) # ASCII based system
12309 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12310 lt_SP2NL='tr \040 \012'
12311 lt_NL2SP='tr \015\012 \040\040'
12313 *) # EBCDIC based system
12314 lt_SP2NL='tr \100 \n'
12315 lt_NL2SP='tr \r\n \100\100'
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12328 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
12329 if ${lt_cv_to_host_file_cmd+:} false; then :
12330 $as_echo_n "(cached) " >&6
12335 *-*-mingw* ) # actually msys
12336 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12339 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12341 * ) # otherwise, assume *nix
12342 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12348 *-*-mingw* ) # actually msys
12349 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12352 lt_cv_to_host_file_cmd=func_convert_file_noop
12354 * ) # otherwise, assume *nix
12355 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12359 * ) # unhandled hosts (and "normal" native builds)
12360 lt_cv_to_host_file_cmd=func_convert_file_noop
12366 to_host_file_cmd=$lt_cv_to_host_file_cmd
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12368 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12375 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
12376 if ${lt_cv_to_tool_file_cmd+:} false; then :
12377 $as_echo_n "(cached) " >&6
12379 #assume ordinary cross tools, or native build.
12380 lt_cv_to_tool_file_cmd=func_convert_file_noop
12384 *-*-mingw* ) # actually msys
12385 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12393 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12395 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12402 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12403 if ${lt_cv_ld_reload_flag+:} false; then :
12404 $as_echo_n "(cached) " >&6
12406 lt_cv_ld_reload_flag='-r'
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12409 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12410 reload_flag=$lt_cv_ld_reload_flag
12411 case $reload_flag in
12413 *) reload_flag=" $reload_flag" ;;
12415 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12417 cygwin* | mingw* | pw32* | cegcc*)
12418 if test "$GCC" != yes; then
12423 if test "$GCC" = yes; then
12424 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12426 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12439 if test -n "$ac_tool_prefix"; then
12440 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12441 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12443 $as_echo_n "checking for $ac_word... " >&6; }
12444 if ${ac_cv_prog_OBJDUMP+:} false; then :
12445 $as_echo_n "(cached) " >&6
12447 if test -n "$OBJDUMP"; then
12448 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12451 for as_dir in $PATH
12454 test -z "$as_dir" && as_dir=.
12455 for ac_exec_ext in '' $ac_executable_extensions; do
12456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12457 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12467 OBJDUMP=$ac_cv_prog_OBJDUMP
12468 if test -n "$OBJDUMP"; then
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12470 $as_echo "$OBJDUMP" >&6; }
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473 $as_echo "no" >&6; }
12478 if test -z "$ac_cv_prog_OBJDUMP"; then
12479 ac_ct_OBJDUMP=$OBJDUMP
12480 # Extract the first word of "objdump", so it can be a program name with args.
12481 set dummy objdump; ac_word=$2
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12483 $as_echo_n "checking for $ac_word... " >&6; }
12484 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12485 $as_echo_n "(cached) " >&6
12487 if test -n "$ac_ct_OBJDUMP"; then
12488 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12491 for as_dir in $PATH
12494 test -z "$as_dir" && as_dir=.
12495 for ac_exec_ext in '' $ac_executable_extensions; do
12496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12497 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12507 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12508 if test -n "$ac_ct_OBJDUMP"; then
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12510 $as_echo "$ac_ct_OBJDUMP" >&6; }
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12513 $as_echo "no" >&6; }
12516 if test "x$ac_ct_OBJDUMP" = x; then
12519 case $cross_compiling:$ac_tool_warned in
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12523 ac_tool_warned=yes ;;
12525 OBJDUMP=$ac_ct_OBJDUMP
12528 OBJDUMP="$ac_cv_prog_OBJDUMP"
12531 test -z "$OBJDUMP" && OBJDUMP=objdump
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12539 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12540 if ${lt_cv_deplibs_check_method+:} false; then :
12541 $as_echo_n "(cached) " >&6
12543 lt_cv_file_magic_cmd='$MAGIC_CMD'
12544 lt_cv_file_magic_test_file=
12545 lt_cv_deplibs_check_method='unknown'
12546 # Need to set the preceding variable on all platforms that support
12547 # interlibrary dependencies.
12548 # 'none' -- dependencies not supported.
12549 # `unknown' -- same as none, but documents that we really don't know.
12550 # 'pass_all' -- all dependencies passed with no checks.
12551 # 'test_compile' -- check by making test program.
12552 # 'file_magic [[regex]]' -- check by looking for files in library path
12553 # which responds to the $file_magic_cmd with a given extended regex.
12554 # If you have `file' or equivalent on your system and you're not sure
12555 # whether `pass_all' will *always* work, you probably want this one.
12559 lt_cv_deplibs_check_method=pass_all
12563 lt_cv_deplibs_check_method=pass_all
12567 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12568 lt_cv_file_magic_cmd='/usr/bin/file -L'
12569 lt_cv_file_magic_test_file=/shlib/libc.so
12573 # func_win32_libid is a shell function defined in ltmain.sh
12574 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12575 lt_cv_file_magic_cmd='func_win32_libid'
12579 # Base MSYS/MinGW do not provide the 'file' command needed by
12580 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12581 # unless we find 'file', for example because we are cross-compiling.
12582 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12583 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12584 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12585 lt_cv_file_magic_cmd='func_win32_libid'
12587 # Keep this pattern in sync with the one in func_win32_libid.
12588 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12589 lt_cv_file_magic_cmd='$OBJDUMP -f'
12594 # use the weaker test based on 'objdump'. See mingw*.
12595 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12596 lt_cv_file_magic_cmd='$OBJDUMP -f'
12599 darwin* | rhapsody*)
12600 lt_cv_deplibs_check_method=pass_all
12603 freebsd* | dragonfly*)
12604 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12607 # Not sure whether the presence of OpenBSD here was a mistake.
12608 # Let's accept both of them until this is cleared up.
12609 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12610 lt_cv_file_magic_cmd=/usr/bin/file
12611 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12615 lt_cv_deplibs_check_method=pass_all
12620 lt_cv_deplibs_check_method=pass_all
12624 lt_cv_deplibs_check_method=pass_all
12627 hpux10.20* | hpux11*)
12628 lt_cv_file_magic_cmd=/usr/bin/file
12631 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12632 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12635 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]'
12636 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12639 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12640 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12646 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12647 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12650 irix5* | irix6* | nonstopux*)
12652 *-32|*"-32 ") libmagic=32-bit;;
12653 *-n32|*"-n32 ") libmagic=N32;;
12654 *-64|*"-64 ") libmagic=64-bit;;
12655 *) libmagic=never-match;;
12657 lt_cv_deplibs_check_method=pass_all
12660 # This must be glibc/ELF.
12661 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12662 lt_cv_deplibs_check_method=pass_all
12666 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12669 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12674 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12675 lt_cv_file_magic_cmd=/usr/bin/file
12676 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12680 lt_cv_deplibs_check_method=pass_all
12684 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12685 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12691 osf3* | osf4* | osf5*)
12692 lt_cv_deplibs_check_method=pass_all
12696 lt_cv_deplibs_check_method=pass_all
12700 lt_cv_deplibs_check_method=pass_all
12703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12704 lt_cv_deplibs_check_method=pass_all
12708 case $host_vendor in
12710 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]'
12711 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12714 lt_cv_deplibs_check_method=pass_all
12717 lt_cv_file_magic_cmd='/bin/file'
12718 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12721 lt_cv_file_magic_cmd='/bin/file'
12722 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12723 lt_cv_file_magic_test_file=/lib/libc.so
12726 lt_cv_deplibs_check_method=pass_all
12729 lt_cv_deplibs_check_method=pass_all
12735 lt_cv_deplibs_check_method=pass_all
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12741 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12745 if test "$build" = "$host"; then
12748 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12749 want_nocaseglob=yes
12751 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12757 file_magic_cmd=$lt_cv_file_magic_cmd
12758 deplibs_check_method=$lt_cv_deplibs_check_method
12759 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12782 if test -n "$ac_tool_prefix"; then
12783 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12784 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12786 $as_echo_n "checking for $ac_word... " >&6; }
12787 if ${ac_cv_prog_DLLTOOL+:} false; then :
12788 $as_echo_n "(cached) " >&6
12790 if test -n "$DLLTOOL"; then
12791 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12794 for as_dir in $PATH
12797 test -z "$as_dir" && as_dir=.
12798 for ac_exec_ext in '' $ac_executable_extensions; do
12799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12800 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12810 DLLTOOL=$ac_cv_prog_DLLTOOL
12811 if test -n "$DLLTOOL"; then
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12813 $as_echo "$DLLTOOL" >&6; }
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816 $as_echo "no" >&6; }
12821 if test -z "$ac_cv_prog_DLLTOOL"; then
12822 ac_ct_DLLTOOL=$DLLTOOL
12823 # Extract the first word of "dlltool", so it can be a program name with args.
12824 set dummy dlltool; ac_word=$2
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12826 $as_echo_n "checking for $ac_word... " >&6; }
12827 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12828 $as_echo_n "(cached) " >&6
12830 if test -n "$ac_ct_DLLTOOL"; then
12831 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12834 for as_dir in $PATH
12837 test -z "$as_dir" && as_dir=.
12838 for ac_exec_ext in '' $ac_executable_extensions; do
12839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12840 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12850 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12851 if test -n "$ac_ct_DLLTOOL"; then
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12853 $as_echo "$ac_ct_DLLTOOL" >&6; }
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12856 $as_echo "no" >&6; }
12859 if test "x$ac_ct_DLLTOOL" = x; then
12862 case $cross_compiling:$ac_tool_warned in
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12866 ac_tool_warned=yes ;;
12868 DLLTOOL=$ac_ct_DLLTOOL
12871 DLLTOOL="$ac_cv_prog_DLLTOOL"
12874 test -z "$DLLTOOL" && DLLTOOL=dlltool
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12883 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12884 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12885 $as_echo_n "(cached) " >&6
12887 lt_cv_sharedlib_from_linklib_cmd='unknown'
12890 cygwin* | mingw* | pw32* | cegcc*)
12891 # two different shell functions defined in ltmain.sh
12892 # decide which to use based on capabilities of $DLLTOOL
12893 case `$DLLTOOL --help 2>&1` in
12894 *--identify-strict*)
12895 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12898 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12903 # fallback: assume linklib IS sharedlib
12904 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12910 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12911 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12912 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12920 if test -n "$ac_tool_prefix"; then
12923 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12924 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12926 $as_echo_n "checking for $ac_word... " >&6; }
12927 if ${ac_cv_prog_AR+:} false; then :
12928 $as_echo_n "(cached) " >&6
12930 if test -n "$AR"; then
12931 ac_cv_prog_AR="$AR" # Let the user override the test.
12933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12934 for as_dir in $PATH
12937 test -z "$as_dir" && as_dir=.
12938 for ac_exec_ext in '' $ac_executable_extensions; do
12939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12940 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12951 if test -n "$AR"; then
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12953 $as_echo "$AR" >&6; }
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956 $as_echo "no" >&6; }
12960 test -n "$AR" && break
12963 if test -z "$AR"; then
12967 # Extract the first word of "$ac_prog", so it can be a program name with args.
12968 set dummy $ac_prog; ac_word=$2
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12970 $as_echo_n "checking for $ac_word... " >&6; }
12971 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12972 $as_echo_n "(cached) " >&6
12974 if test -n "$ac_ct_AR"; then
12975 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12978 for as_dir in $PATH
12981 test -z "$as_dir" && as_dir=.
12982 for ac_exec_ext in '' $ac_executable_extensions; do
12983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12984 ac_cv_prog_ac_ct_AR="$ac_prog"
12985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12994 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12995 if test -n "$ac_ct_AR"; then
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12997 $as_echo "$ac_ct_AR" >&6; }
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000 $as_echo "no" >&6; }
13004 test -n "$ac_ct_AR" && break
13007 if test "x$ac_ct_AR" = x; then
13010 case $cross_compiling:$ac_tool_warned in
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13014 ac_tool_warned=yes ;;
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13034 $as_echo_n "checking for archiver @FILE support... " >&6; }
13035 if ${lt_cv_ar_at_file+:} false; then :
13036 $as_echo_n "(cached) " >&6
13038 lt_cv_ar_at_file=no
13039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040 /* end confdefs.h. */
13050 if ac_fn_c_try_compile "$LINENO"; then :
13051 echo conftest.$ac_objext > conftest.lst
13052 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13054 (eval $lt_ar_try) 2>&5
13056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13057 test $ac_status = 0; }
13058 if test "$ac_status" -eq 0; then
13059 # Ensure the archiver fails upon bogus file names.
13060 rm -f conftest.$ac_objext libconftest.a
13061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13062 (eval $lt_ar_try) 2>&5
13064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13065 test $ac_status = 0; }
13066 if test "$ac_status" -ne 0; then
13070 rm -f conftest.* libconftest.a
13073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13077 $as_echo "$lt_cv_ar_at_file" >&6; }
13079 if test "x$lt_cv_ar_at_file" = xno; then
13080 archiver_list_spec=
13082 archiver_list_spec=$lt_cv_ar_at_file
13091 if test -n "$ac_tool_prefix"; then
13092 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13093 set dummy ${ac_tool_prefix}strip; ac_word=$2
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13095 $as_echo_n "checking for $ac_word... " >&6; }
13096 if ${ac_cv_prog_STRIP+:} false; then :
13097 $as_echo_n "(cached) " >&6
13099 if test -n "$STRIP"; then
13100 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13103 for as_dir in $PATH
13106 test -z "$as_dir" && as_dir=.
13107 for ac_exec_ext in '' $ac_executable_extensions; do
13108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13109 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13119 STRIP=$ac_cv_prog_STRIP
13120 if test -n "$STRIP"; then
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13122 $as_echo "$STRIP" >&6; }
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13125 $as_echo "no" >&6; }
13130 if test -z "$ac_cv_prog_STRIP"; then
13132 # Extract the first word of "strip", so it can be a program name with args.
13133 set dummy strip; ac_word=$2
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13135 $as_echo_n "checking for $ac_word... " >&6; }
13136 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13137 $as_echo_n "(cached) " >&6
13139 if test -n "$ac_ct_STRIP"; then
13140 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13143 for as_dir in $PATH
13146 test -z "$as_dir" && as_dir=.
13147 for ac_exec_ext in '' $ac_executable_extensions; do
13148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13149 ac_cv_prog_ac_ct_STRIP="strip"
13150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13159 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13160 if test -n "$ac_ct_STRIP"; then
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13162 $as_echo "$ac_ct_STRIP" >&6; }
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13165 $as_echo "no" >&6; }
13168 if test "x$ac_ct_STRIP" = x; then
13171 case $cross_compiling:$ac_tool_warned in
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13175 ac_tool_warned=yes ;;
13180 STRIP="$ac_cv_prog_STRIP"
13183 test -z "$STRIP" && STRIP=:
13190 if test -n "$ac_tool_prefix"; then
13191 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13192 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13194 $as_echo_n "checking for $ac_word... " >&6; }
13195 if ${ac_cv_prog_RANLIB+:} false; then :
13196 $as_echo_n "(cached) " >&6
13198 if test -n "$RANLIB"; then
13199 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13202 for as_dir in $PATH
13205 test -z "$as_dir" && as_dir=.
13206 for ac_exec_ext in '' $ac_executable_extensions; do
13207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13208 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13218 RANLIB=$ac_cv_prog_RANLIB
13219 if test -n "$RANLIB"; then
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13221 $as_echo "$RANLIB" >&6; }
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224 $as_echo "no" >&6; }
13229 if test -z "$ac_cv_prog_RANLIB"; then
13230 ac_ct_RANLIB=$RANLIB
13231 # Extract the first word of "ranlib", so it can be a program name with args.
13232 set dummy ranlib; ac_word=$2
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13234 $as_echo_n "checking for $ac_word... " >&6; }
13235 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13236 $as_echo_n "(cached) " >&6
13238 if test -n "$ac_ct_RANLIB"; then
13239 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242 for as_dir in $PATH
13245 test -z "$as_dir" && as_dir=.
13246 for ac_exec_ext in '' $ac_executable_extensions; do
13247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13248 ac_cv_prog_ac_ct_RANLIB="ranlib"
13249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13258 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13259 if test -n "$ac_ct_RANLIB"; then
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13261 $as_echo "$ac_ct_RANLIB" >&6; }
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264 $as_echo "no" >&6; }
13267 if test "x$ac_ct_RANLIB" = x; then
13270 case $cross_compiling:$ac_tool_warned in
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13274 ac_tool_warned=yes ;;
13276 RANLIB=$ac_ct_RANLIB
13279 RANLIB="$ac_cv_prog_RANLIB"
13282 test -z "$RANLIB" && RANLIB=:
13289 # Determine commands to create old-style static archives.
13290 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13291 old_postinstall_cmds='chmod 644 $oldlib'
13292 old_postuninstall_cmds=
13294 if test -n "$RANLIB"; then
13297 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13300 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13303 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13308 lock_old_archive_extraction=yes ;;
13310 lock_old_archive_extraction=no ;;
13351 # If no C compiler was specified, use CC.
13354 # If no C compiler flags were specified, use CFLAGS.
13355 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13357 # Allow CC to be a program name with arguments.
13361 # Check for command to grab the raw symbol name followed by C symbol from nm.
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13363 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13364 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
13365 $as_echo_n "(cached) " >&6
13368 # These are sane defaults that work on at least a few old systems.
13369 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13371 # Character class describing NM global symbol codes.
13372 symcode='[BCDEGRST]'
13374 # Regexp to match symbols that can be accessed directly from C.
13375 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13377 # Define system-specific variables.
13382 cygwin* | mingw* | pw32* | cegcc*)
13383 symcode='[ABCDGISTW]'
13386 if test "$host_cpu" = ia64; then
13387 symcode='[ABCDEGRST]'
13390 irix* | nonstopux*)
13391 symcode='[BCDEGRST]'
13394 symcode='[BCDEGQRST]'
13405 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13413 # If we're using GNU nm, then use its standard symbol codes.
13414 case `$NM -V 2>&1` in
13415 *GNU* | *'with BFD'*)
13416 symcode='[ABCDGIRSTW]' ;;
13419 # Transform an extracted symbol line into a proper C declaration.
13420 # Some systems (esp. on ia64) link data and code symbols differently,
13421 # so use this general approach.
13422 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13424 # Transform an extracted symbol line into symbol name and symbol address
13425 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13426 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'"
13428 # Handle CRLF in mingw tool chain
13432 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13436 # Try without a prefix underscore, then with it.
13437 for ac_symprfx in "" "_"; do
13439 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13440 symxfrm="\\1 $ac_symprfx\\2 \\2"
13442 # Write the raw and C identifiers.
13443 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13444 # Fake it for dumpbin and say T for any non-static function
13445 # and D for any global variable.
13446 # Also find C++ and __fastcall symbols from MSVC++,
13447 # which start with @ or ?.
13448 lt_cv_sys_global_symbol_pipe="$AWK '"\
13449 " {last_section=section; section=\$ 3};"\
13450 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13451 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13452 " \$ 0!~/External *\|/{next};"\
13453 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13454 " {if(hide[section]) next};"\
13455 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13456 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13457 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13458 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13459 " ' prfx=^$ac_symprfx"
13461 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13463 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
13465 # Check to see that the pipe works correctly.
13469 cat > conftest.$ac_ext <<_LT_EOF
13474 void nm_test_func(void);
13475 void nm_test_func(void){}
13479 int main(){nm_test_var='a';nm_test_func();return(0);}
13482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13483 (eval $ac_compile) 2>&5
13485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13486 test $ac_status = 0; }; then
13487 # Now try to grab the symbols.
13489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13490 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13493 test $ac_status = 0; } && test -s "$nlist"; then
13494 # Try sorting and uniquifying the output.
13495 if sort "$nlist" | uniq > "$nlist"T; then
13496 mv -f "$nlist"T "$nlist"
13501 # Make sure that we snagged all the symbols we need.
13502 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13503 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13504 cat <<_LT_EOF > conftest.$ac_ext
13505 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
13506 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
13507 /* DATA imports from DLLs on WIN32 con't be const, because runtime
13508 relocations are performed -- see ld's documentation on pseudo-relocs. */
13509 # define LT_DLSYM_CONST
13510 #elif defined(__osf__)
13511 /* This system does not cope well with relocations in const data. */
13512 # define LT_DLSYM_CONST
13514 # define LT_DLSYM_CONST const
13522 # Now generate the symbol file.
13523 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13525 cat <<_LT_EOF >> conftest.$ac_ext
13527 /* The mapping between symbol names and symbols. */
13528 LT_DLSYM_CONST struct {
13532 lt__PROGRAM__LTX_preloaded_symbols[] =
13534 { "@PROGRAM@", (void *) 0 },
13536 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13537 cat <<\_LT_EOF >> conftest.$ac_ext
13541 /* This works around a problem in FreeBSD linker */
13542 #ifdef FREEBSD_WORKAROUND
13543 static const void *lt_preloaded_setup() {
13544 return lt__PROGRAM__LTX_preloaded_symbols;
13552 # Now try linking the two files.
13553 mv conftest.$ac_objext conftstm.$ac_objext
13554 lt_globsym_save_LIBS=$LIBS
13555 lt_globsym_save_CFLAGS=$CFLAGS
13556 LIBS="conftstm.$ac_objext"
13557 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13559 (eval $ac_link) 2>&5
13561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13562 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13565 LIBS=$lt_globsym_save_LIBS
13566 CFLAGS=$lt_globsym_save_CFLAGS
13568 echo "cannot find nm_test_func in $nlist" >&5
13571 echo "cannot find nm_test_var in $nlist" >&5
13574 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13577 echo "$progname: failed program was:" >&5
13578 cat conftest.$ac_ext >&5
13580 rm -rf conftest* conftst*
13582 # Do not use the global_symbol_pipe unless it works.
13583 if test "$pipe_works" = yes; then
13586 lt_cv_sys_global_symbol_pipe=
13592 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13593 lt_cv_sys_global_symbol_to_cdecl=
13595 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13597 $as_echo "failed" >&6; }
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13600 $as_echo "ok" >&6; }
13603 # Response file support.
13604 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13605 nm_file_list_spec='@'
13606 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13607 nm_file_list_spec='@'
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13637 $as_echo_n "checking for sysroot... " >&6; }
13639 # Check whether --with-sysroot was given.
13640 if test "${with_sysroot+set}" = set; then :
13641 withval=$with_sysroot;
13648 case ${with_sysroot} in #(
13650 if test "$GCC" = yes; then
13651 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13655 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
13661 $as_echo "${with_sysroot}" >&6; }
13662 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13667 $as_echo "${lt_sysroot:-no}" >&6; }
13673 # Check whether --enable-libtool-lock was given.
13674 if test "${enable_libtool_lock+set}" = set; then :
13675 enableval=$enable_libtool_lock;
13678 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13680 # Some flags need to be propagated to the compiler or linker for good
13684 # Find out which ABI we are using.
13685 echo 'int i;' > conftest.$ac_ext
13686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13687 (eval $ac_compile) 2>&5
13689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13690 test $ac_status = 0; }; then
13691 case `/usr/bin/file conftest.$ac_objext` in
13693 HPUX_IA64_MODE="32"
13696 HPUX_IA64_MODE="64"
13703 # Find out which ABI we are using.
13704 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13706 (eval $ac_compile) 2>&5
13708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13709 test $ac_status = 0; }; then
13710 if test "$lt_cv_prog_gnu_ld" = yes; then
13711 case `/usr/bin/file conftest.$ac_objext` in
13713 LD="${LD-ld} -melf32bsmip"
13716 LD="${LD-ld} -melf32bmipn32"
13719 LD="${LD-ld} -melf64bmip"
13723 case `/usr/bin/file conftest.$ac_objext` in
13739 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13740 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13741 # Find out which ABI we are using.
13742 echo 'int i;' > conftest.$ac_ext
13743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13744 (eval $ac_compile) 2>&5
13746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13747 test $ac_status = 0; }; then
13748 case `/usr/bin/file conftest.o` in
13751 x86_64-*kfreebsd*-gnu)
13752 LD="${LD-ld} -m elf_i386_fbsd"
13755 LD="${LD-ld} -m elf_i386"
13757 ppc64-*linux*|powerpc64-*linux*)
13758 LD="${LD-ld} -m elf32ppclinux"
13761 LD="${LD-ld} -m elf_s390"
13764 LD="${LD-ld} -m elf32_sparc"
13770 x86_64-*kfreebsd*-gnu)
13771 LD="${LD-ld} -m elf_x86_64_fbsd"
13774 LD="${LD-ld} -m elf_x86_64"
13776 ppc*-*linux*|powerpc*-*linux*)
13777 LD="${LD-ld} -m elf64ppc"
13779 s390*-*linux*|s390*-*tpf*)
13780 LD="${LD-ld} -m elf64_s390"
13783 LD="${LD-ld} -m elf64_sparc"
13793 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13794 SAVE_CFLAGS="$CFLAGS"
13795 CFLAGS="$CFLAGS -belf"
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13797 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13798 if ${lt_cv_cc_needs_belf+:} false; then :
13799 $as_echo_n "(cached) " >&6
13802 ac_cpp='$CPP $CPPFLAGS'
13803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h. */
13818 if ac_fn_c_try_link "$LINENO"; then :
13819 lt_cv_cc_needs_belf=yes
13821 lt_cv_cc_needs_belf=no
13823 rm -f core conftest.err conftest.$ac_objext \
13824 conftest$ac_exeext conftest.$ac_ext
13826 ac_cpp='$CPP $CPPFLAGS'
13827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13833 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13834 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13835 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13836 CFLAGS="$SAVE_CFLAGS"
13840 # Find out which ABI we are using.
13841 echo 'int i;' > conftest.$ac_ext
13842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13843 (eval $ac_compile) 2>&5
13845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13846 test $ac_status = 0; }; then
13847 case `/usr/bin/file conftest.o` in
13849 case $lt_cv_prog_gnu_ld in
13853 LD="${LD-ld} -m elf_x86_64"
13856 LD="${LD-ld} -m elf64_sparc"
13859 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13860 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13865 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13877 need_locks="$enable_libtool_lock"
13879 if test -n "$ac_tool_prefix"; then
13880 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13881 set dummy ${ac_tool_prefix}mt; ac_word=$2
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13883 $as_echo_n "checking for $ac_word... " >&6; }
13884 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13885 $as_echo_n "(cached) " >&6
13887 if test -n "$MANIFEST_TOOL"; then
13888 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13891 for as_dir in $PATH
13894 test -z "$as_dir" && as_dir=.
13895 for ac_exec_ext in '' $ac_executable_extensions; do
13896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13897 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13907 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13908 if test -n "$MANIFEST_TOOL"; then
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13910 $as_echo "$MANIFEST_TOOL" >&6; }
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13913 $as_echo "no" >&6; }
13918 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13919 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13920 # Extract the first word of "mt", so it can be a program name with args.
13921 set dummy mt; ac_word=$2
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13923 $as_echo_n "checking for $ac_word... " >&6; }
13924 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13925 $as_echo_n "(cached) " >&6
13927 if test -n "$ac_ct_MANIFEST_TOOL"; then
13928 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13931 for as_dir in $PATH
13934 test -z "$as_dir" && as_dir=.
13935 for ac_exec_ext in '' $ac_executable_extensions; do
13936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13937 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13947 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13948 if test -n "$ac_ct_MANIFEST_TOOL"; then
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13950 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13953 $as_echo "no" >&6; }
13956 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13959 case $cross_compiling:$ac_tool_warned in
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13963 ac_tool_warned=yes ;;
13965 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13968 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13971 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13973 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13974 if ${lt_cv_path_mainfest_tool+:} false; then :
13975 $as_echo_n "(cached) " >&6
13977 lt_cv_path_mainfest_tool=no
13978 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13979 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13980 cat conftest.err >&5
13981 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13982 lt_cv_path_mainfest_tool=yes
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13987 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13988 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13998 rhapsody* | darwin*)
13999 if test -n "$ac_tool_prefix"; then
14000 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14001 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14003 $as_echo_n "checking for $ac_word... " >&6; }
14004 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14005 $as_echo_n "(cached) " >&6
14007 if test -n "$DSYMUTIL"; then
14008 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14011 for as_dir in $PATH
14014 test -z "$as_dir" && as_dir=.
14015 for ac_exec_ext in '' $ac_executable_extensions; do
14016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14017 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14027 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14028 if test -n "$DSYMUTIL"; then
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14030 $as_echo "$DSYMUTIL" >&6; }
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14033 $as_echo "no" >&6; }
14038 if test -z "$ac_cv_prog_DSYMUTIL"; then
14039 ac_ct_DSYMUTIL=$DSYMUTIL
14040 # Extract the first word of "dsymutil", so it can be a program name with args.
14041 set dummy dsymutil; ac_word=$2
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14043 $as_echo_n "checking for $ac_word... " >&6; }
14044 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14045 $as_echo_n "(cached) " >&6
14047 if test -n "$ac_ct_DSYMUTIL"; then
14048 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14051 for as_dir in $PATH
14054 test -z "$as_dir" && as_dir=.
14055 for ac_exec_ext in '' $ac_executable_extensions; do
14056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14057 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14067 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14068 if test -n "$ac_ct_DSYMUTIL"; then
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14070 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14073 $as_echo "no" >&6; }
14076 if test "x$ac_ct_DSYMUTIL" = x; then
14079 case $cross_compiling:$ac_tool_warned in
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14083 ac_tool_warned=yes ;;
14085 DSYMUTIL=$ac_ct_DSYMUTIL
14088 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14091 if test -n "$ac_tool_prefix"; then
14092 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14093 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14095 $as_echo_n "checking for $ac_word... " >&6; }
14096 if ${ac_cv_prog_NMEDIT+:} false; then :
14097 $as_echo_n "(cached) " >&6
14099 if test -n "$NMEDIT"; then
14100 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14103 for as_dir in $PATH
14106 test -z "$as_dir" && as_dir=.
14107 for ac_exec_ext in '' $ac_executable_extensions; do
14108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14109 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14119 NMEDIT=$ac_cv_prog_NMEDIT
14120 if test -n "$NMEDIT"; then
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14122 $as_echo "$NMEDIT" >&6; }
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14125 $as_echo "no" >&6; }
14130 if test -z "$ac_cv_prog_NMEDIT"; then
14131 ac_ct_NMEDIT=$NMEDIT
14132 # Extract the first word of "nmedit", so it can be a program name with args.
14133 set dummy nmedit; ac_word=$2
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14135 $as_echo_n "checking for $ac_word... " >&6; }
14136 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14137 $as_echo_n "(cached) " >&6
14139 if test -n "$ac_ct_NMEDIT"; then
14140 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14143 for as_dir in $PATH
14146 test -z "$as_dir" && as_dir=.
14147 for ac_exec_ext in '' $ac_executable_extensions; do
14148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14149 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14159 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14160 if test -n "$ac_ct_NMEDIT"; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14162 $as_echo "$ac_ct_NMEDIT" >&6; }
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14165 $as_echo "no" >&6; }
14168 if test "x$ac_ct_NMEDIT" = x; then
14171 case $cross_compiling:$ac_tool_warned in
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14175 ac_tool_warned=yes ;;
14177 NMEDIT=$ac_ct_NMEDIT
14180 NMEDIT="$ac_cv_prog_NMEDIT"
14183 if test -n "$ac_tool_prefix"; then
14184 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14185 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14187 $as_echo_n "checking for $ac_word... " >&6; }
14188 if ${ac_cv_prog_LIPO+:} false; then :
14189 $as_echo_n "(cached) " >&6
14191 if test -n "$LIPO"; then
14192 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14195 for as_dir in $PATH
14198 test -z "$as_dir" && as_dir=.
14199 for ac_exec_ext in '' $ac_executable_extensions; do
14200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14201 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14211 LIPO=$ac_cv_prog_LIPO
14212 if test -n "$LIPO"; then
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14214 $as_echo "$LIPO" >&6; }
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14217 $as_echo "no" >&6; }
14222 if test -z "$ac_cv_prog_LIPO"; then
14224 # Extract the first word of "lipo", so it can be a program name with args.
14225 set dummy lipo; ac_word=$2
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14227 $as_echo_n "checking for $ac_word... " >&6; }
14228 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14229 $as_echo_n "(cached) " >&6
14231 if test -n "$ac_ct_LIPO"; then
14232 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14235 for as_dir in $PATH
14238 test -z "$as_dir" && as_dir=.
14239 for ac_exec_ext in '' $ac_executable_extensions; do
14240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14241 ac_cv_prog_ac_ct_LIPO="lipo"
14242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14251 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14252 if test -n "$ac_ct_LIPO"; then
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14254 $as_echo "$ac_ct_LIPO" >&6; }
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257 $as_echo "no" >&6; }
14260 if test "x$ac_ct_LIPO" = x; then
14263 case $cross_compiling:$ac_tool_warned in
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14267 ac_tool_warned=yes ;;
14272 LIPO="$ac_cv_prog_LIPO"
14275 if test -n "$ac_tool_prefix"; then
14276 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14277 set dummy ${ac_tool_prefix}otool; ac_word=$2
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14279 $as_echo_n "checking for $ac_word... " >&6; }
14280 if ${ac_cv_prog_OTOOL+:} false; then :
14281 $as_echo_n "(cached) " >&6
14283 if test -n "$OTOOL"; then
14284 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14287 for as_dir in $PATH
14290 test -z "$as_dir" && as_dir=.
14291 for ac_exec_ext in '' $ac_executable_extensions; do
14292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14293 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14303 OTOOL=$ac_cv_prog_OTOOL
14304 if test -n "$OTOOL"; then
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14306 $as_echo "$OTOOL" >&6; }
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14309 $as_echo "no" >&6; }
14314 if test -z "$ac_cv_prog_OTOOL"; then
14316 # Extract the first word of "otool", so it can be a program name with args.
14317 set dummy otool; ac_word=$2
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14319 $as_echo_n "checking for $ac_word... " >&6; }
14320 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14321 $as_echo_n "(cached) " >&6
14323 if test -n "$ac_ct_OTOOL"; then
14324 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14327 for as_dir in $PATH
14330 test -z "$as_dir" && as_dir=.
14331 for ac_exec_ext in '' $ac_executable_extensions; do
14332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14333 ac_cv_prog_ac_ct_OTOOL="otool"
14334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14343 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14344 if test -n "$ac_ct_OTOOL"; then
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14346 $as_echo "$ac_ct_OTOOL" >&6; }
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14349 $as_echo "no" >&6; }
14352 if test "x$ac_ct_OTOOL" = x; then
14355 case $cross_compiling:$ac_tool_warned in
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14359 ac_tool_warned=yes ;;
14364 OTOOL="$ac_cv_prog_OTOOL"
14367 if test -n "$ac_tool_prefix"; then
14368 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14369 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14371 $as_echo_n "checking for $ac_word... " >&6; }
14372 if ${ac_cv_prog_OTOOL64+:} false; then :
14373 $as_echo_n "(cached) " >&6
14375 if test -n "$OTOOL64"; then
14376 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14379 for as_dir in $PATH
14382 test -z "$as_dir" && as_dir=.
14383 for ac_exec_ext in '' $ac_executable_extensions; do
14384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14385 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14395 OTOOL64=$ac_cv_prog_OTOOL64
14396 if test -n "$OTOOL64"; then
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14398 $as_echo "$OTOOL64" >&6; }
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14401 $as_echo "no" >&6; }
14406 if test -z "$ac_cv_prog_OTOOL64"; then
14407 ac_ct_OTOOL64=$OTOOL64
14408 # Extract the first word of "otool64", so it can be a program name with args.
14409 set dummy otool64; ac_word=$2
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14411 $as_echo_n "checking for $ac_word... " >&6; }
14412 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14413 $as_echo_n "(cached) " >&6
14415 if test -n "$ac_ct_OTOOL64"; then
14416 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14419 for as_dir in $PATH
14422 test -z "$as_dir" && as_dir=.
14423 for ac_exec_ext in '' $ac_executable_extensions; do
14424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14425 ac_cv_prog_ac_ct_OTOOL64="otool64"
14426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14435 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14436 if test -n "$ac_ct_OTOOL64"; then
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14438 $as_echo "$ac_ct_OTOOL64" >&6; }
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14441 $as_echo "no" >&6; }
14444 if test "x$ac_ct_OTOOL64" = x; then
14447 case $cross_compiling:$ac_tool_warned in
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14451 ac_tool_warned=yes ;;
14453 OTOOL64=$ac_ct_OTOOL64
14456 OTOOL64="$ac_cv_prog_OTOOL64"
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14486 $as_echo_n "checking for -single_module linker flag... " >&6; }
14487 if ${lt_cv_apple_cc_single_mod+:} false; then :
14488 $as_echo_n "(cached) " >&6
14490 lt_cv_apple_cc_single_mod=no
14491 if test -z "${LT_MULTI_MODULE}"; then
14492 # By default we will add the -single_module flag. You can override
14493 # by either setting the environment variable LT_MULTI_MODULE
14494 # non-empty at configure time, or by adding -multi_module to the
14496 rm -rf libconftest.dylib*
14497 echo "int foo(void){return 1;}" > conftest.c
14498 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14499 -dynamiclib -Wl,-single_module conftest.c" >&5
14500 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14501 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14503 # If there is a non-empty error log, and "single_module"
14504 # appears in it, assume the flag caused a linker warning
14505 if test -s conftest.err && $GREP single_module conftest.err; then
14506 cat conftest.err >&5
14507 # Otherwise, if the output was created with a 0 exit code from
14508 # the compiler, it worked.
14509 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
14510 lt_cv_apple_cc_single_mod=yes
14512 cat conftest.err >&5
14514 rm -rf libconftest.dylib*
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14519 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14522 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14523 if ${lt_cv_ld_exported_symbols_list+:} false; then :
14524 $as_echo_n "(cached) " >&6
14526 lt_cv_ld_exported_symbols_list=no
14527 save_LDFLAGS=$LDFLAGS
14528 echo "_main" > conftest.sym
14529 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14531 /* end confdefs.h. */
14541 if ac_fn_c_try_link "$LINENO"; then :
14542 lt_cv_ld_exported_symbols_list=yes
14544 lt_cv_ld_exported_symbols_list=no
14546 rm -f core conftest.err conftest.$ac_objext \
14547 conftest$ac_exeext conftest.$ac_ext
14548 LDFLAGS="$save_LDFLAGS"
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14552 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14555 $as_echo_n "checking for -force_load linker flag... " >&6; }
14556 if ${lt_cv_ld_force_load+:} false; then :
14557 $as_echo_n "(cached) " >&6
14559 lt_cv_ld_force_load=no
14560 cat > conftest.c << _LT_EOF
14561 int forced_loaded() { return 2;}
14563 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14564 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14565 echo "$AR cru libconftest.a conftest.o" >&5
14566 $AR cru libconftest.a conftest.o 2>&5
14567 echo "$RANLIB libconftest.a" >&5
14568 $RANLIB libconftest.a 2>&5
14569 cat > conftest.c << _LT_EOF
14570 int main() { return 0;}
14572 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14573 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14575 if test -s conftest.err && $GREP force_load conftest.err; then
14576 cat conftest.err >&5
14577 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
14578 lt_cv_ld_force_load=yes
14580 cat conftest.err >&5
14582 rm -f conftest.err libconftest.a conftest conftest.c
14583 rm -rf conftest.dSYM
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14587 $as_echo "$lt_cv_ld_force_load" >&6; }
14589 rhapsody* | darwin1.[012])
14590 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14592 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14593 darwin*) # darwin 5.x on
14594 # if running on 10.5 or later, the deployment target defaults
14595 # to the OS version, if on x86, and 10.4, the deployment
14596 # target defaults to 10.4. Don't you love it?
14597 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14598 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14599 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14601 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14603 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14607 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14608 _lt_dar_single_mod='$single_module'
14610 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14611 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14613 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14615 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14616 _lt_dsymutil='~$DSYMUTIL $lib || :'
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14624 $as_echo_n "checking for ANSI C header files... " >&6; }
14625 if ${ac_cv_header_stdc+:} false; then :
14626 $as_echo_n "(cached) " >&6
14628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14629 /* end confdefs.h. */
14630 #include <stdlib.h>
14631 #include <stdarg.h>
14632 #include <string.h>
14643 if ac_fn_c_try_compile "$LINENO"; then :
14644 ac_cv_header_stdc=yes
14646 ac_cv_header_stdc=no
14648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14650 if test $ac_cv_header_stdc = yes; then
14651 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14653 /* end confdefs.h. */
14654 #include <string.h>
14657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14658 $EGREP "memchr" >/dev/null 2>&1; then :
14661 ac_cv_header_stdc=no
14667 if test $ac_cv_header_stdc = yes; then
14668 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670 /* end confdefs.h. */
14671 #include <stdlib.h>
14674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14675 $EGREP "free" >/dev/null 2>&1; then :
14678 ac_cv_header_stdc=no
14684 if test $ac_cv_header_stdc = yes; then
14685 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14686 if test "$cross_compiling" = yes; then :
14689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14690 /* end confdefs.h. */
14692 #include <stdlib.h>
14693 #if ((' ' & 0x0FF) == 0x020)
14694 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14695 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14697 # define ISLOWER(c) \
14698 (('a' <= (c) && (c) <= 'i') \
14699 || ('j' <= (c) && (c) <= 'r') \
14700 || ('s' <= (c) && (c) <= 'z'))
14701 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14704 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14709 for (i = 0; i < 256; i++)
14710 if (XOR (islower (i), ISLOWER (i))
14711 || toupper (i) != TOUPPER (i))
14716 if ac_fn_c_try_run "$LINENO"; then :
14719 ac_cv_header_stdc=no
14721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14722 conftest.$ac_objext conftest.beam conftest.$ac_ext
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14728 $as_echo "$ac_cv_header_stdc" >&6; }
14729 if test $ac_cv_header_stdc = yes; then
14731 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14735 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
14736 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
14737 inttypes.h stdint.h unistd.h
14739 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14740 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14742 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14743 cat >>confdefs.h <<_ACEOF
14744 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14752 for ac_header in dlfcn.h
14754 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14756 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14757 cat >>confdefs.h <<_ACEOF
14758 #define HAVE_DLFCN_H 1
14768 func_stripname_cnf ()
14771 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14772 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14774 } # func_stripname_cnf
14789 # Check whether --enable-shared was given.
14790 if test "${enable_shared+set}" = set; then :
14791 enableval=$enable_shared; p=${PACKAGE-default}
14793 yes) enable_shared=yes ;;
14794 no) enable_shared=no ;;
14797 # Look at the argument we got. We use all the common list separators.
14798 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14799 for pkg in $enableval; do
14801 if test "X$pkg" = "X$p"; then
14820 # Check whether --enable-static was given.
14821 if test "${enable_static+set}" = set; then :
14822 enableval=$enable_static; p=${PACKAGE-default}
14824 yes) enable_static=yes ;;
14825 no) enable_static=no ;;
14828 # Look at the argument we got. We use all the common list separators.
14829 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14830 for pkg in $enableval; do
14832 if test "X$pkg" = "X$p"; then
14852 # Check whether --with-pic was given.
14853 if test "${with_pic+set}" = set; then :
14854 withval=$with_pic; lt_p=${PACKAGE-default}
14856 yes|no) pic_mode=$withval ;;
14859 # Look at the argument we got. We use all the common list separators.
14860 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14861 for lt_pkg in $withval; do
14863 if test "X$lt_pkg" = "X$lt_p"; then
14875 test -z "$pic_mode" && pic_mode=default
14883 # Check whether --enable-fast-install was given.
14884 if test "${enable_fast_install+set}" = set; then :
14885 enableval=$enable_fast_install; p=${PACKAGE-default}
14887 yes) enable_fast_install=yes ;;
14888 no) enable_fast_install=no ;;
14890 enable_fast_install=no
14891 # Look at the argument we got. We use all the common list separators.
14892 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14893 for pkg in $enableval; do
14895 if test "X$pkg" = "X$p"; then
14896 enable_fast_install=yes
14903 enable_fast_install=yes
14916 # This can be used to rebuild libtool when needed
14917 LIBTOOL_DEPS="$ltmain"
14919 # Always use our own libtool.
14920 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14951 test -z "$LN_S" && LN_S="ln -s"
14966 if test -n "${ZSH_VERSION+set}" ; then
14967 setopt NO_GLOB_SUBST
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14971 $as_echo_n "checking for objdir... " >&6; }
14972 if ${lt_cv_objdir+:} false; then :
14973 $as_echo_n "(cached) " >&6
14975 rm -f .libs 2>/dev/null
14976 mkdir .libs 2>/dev/null
14977 if test -d .libs; then
14980 # MS-DOS does not allow filenames that begin with a dot.
14983 rmdir .libs 2>/dev/null
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14986 $as_echo "$lt_cv_objdir" >&6; }
14987 objdir=$lt_cv_objdir
14993 cat >>confdefs.h <<_ACEOF
14994 #define LT_OBJDIR "$lt_cv_objdir/"
15002 # AIX sometimes has problems with the GCC collect2 program. For some
15003 # reason, if we set the COLLECT_NAMES environment variable, the problems
15004 # vanish in a puff of smoke.
15005 if test "X${COLLECT_NAMES+set}" != Xset; then
15007 export COLLECT_NAMES
15012 # Global variables:
15014 can_build_shared=yes
15016 # All known linkers require a `.a' archive for static linking (except MSVC,
15017 # which needs '.lib').
15020 with_gnu_ld="$lt_cv_prog_gnu_ld"
15023 old_CFLAGS="$CFLAGS"
15025 # Set sane defaults for various variables
15026 test -z "$CC" && CC=cc
15027 test -z "$LTCC" && LTCC=$CC
15028 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15029 test -z "$LD" && LD=ld
15030 test -z "$ac_objext" && ac_objext=o
15032 for cc_temp in $compiler""; do
15034 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15035 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15040 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15043 # Only perform the check for file, if the check method requires it
15044 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15045 case $deplibs_check_method in
15047 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15049 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15050 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15051 $as_echo_n "(cached) " >&6
15055 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15058 lt_save_MAGIC_CMD="$MAGIC_CMD"
15059 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15060 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15061 for ac_dir in $ac_dummy; do
15063 test -z "$ac_dir" && ac_dir=.
15064 if test -f $ac_dir/${ac_tool_prefix}file; then
15065 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15066 if test -n "$file_magic_test_file"; then
15067 case $deplibs_check_method in
15069 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15070 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15071 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15072 $EGREP "$file_magic_regex" > /dev/null; then
15077 *** Warning: the command libtool uses to detect shared libraries,
15078 *** $file_magic_cmd, produces output that libtool cannot recognize.
15079 *** The result is that libtool may fail to recognize shared libraries
15080 *** as such. This will affect the creation of libtool libraries that
15081 *** depend on shared libraries, but programs linked with such libtool
15082 *** libraries will work regardless of this problem. Nevertheless, you
15083 *** may want to report the problem to your system manager and/or to
15084 *** bug-libtool@gnu.org
15094 MAGIC_CMD="$lt_save_MAGIC_CMD"
15099 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15100 if test -n "$MAGIC_CMD"; then
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15102 $as_echo "$MAGIC_CMD" >&6; }
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15105 $as_echo "no" >&6; }
15112 if test -z "$lt_cv_path_MAGIC_CMD"; then
15113 if test -n "$ac_tool_prefix"; then
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15115 $as_echo_n "checking for file... " >&6; }
15116 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15117 $as_echo_n "(cached) " >&6
15121 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15124 lt_save_MAGIC_CMD="$MAGIC_CMD"
15125 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15126 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15127 for ac_dir in $ac_dummy; do
15129 test -z "$ac_dir" && ac_dir=.
15130 if test -f $ac_dir/file; then
15131 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15132 if test -n "$file_magic_test_file"; then
15133 case $deplibs_check_method in
15135 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15136 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15137 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15138 $EGREP "$file_magic_regex" > /dev/null; then
15143 *** Warning: the command libtool uses to detect shared libraries,
15144 *** $file_magic_cmd, produces output that libtool cannot recognize.
15145 *** The result is that libtool may fail to recognize shared libraries
15146 *** as such. This will affect the creation of libtool libraries that
15147 *** depend on shared libraries, but programs linked with such libtool
15148 *** libraries will work regardless of this problem. Nevertheless, you
15149 *** may want to report the problem to your system manager and/or to
15150 *** bug-libtool@gnu.org
15160 MAGIC_CMD="$lt_save_MAGIC_CMD"
15165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15166 if test -n "$MAGIC_CMD"; then
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15168 $as_echo "$MAGIC_CMD" >&6; }
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15171 $as_echo "no" >&6; }
15184 # Use C for the default configuration in the libtool script
15188 ac_cpp='$CPP $CPPFLAGS'
15189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15194 # Source file extension for C test sources.
15197 # Object file extension for compiled C test sources.
15201 # Code to be used in simple compile tests
15202 lt_simple_compile_test_code="int some_variable = 0;"
15204 # Code to be used in simple link tests
15205 lt_simple_link_test_code='int main(){return(0);}'
15213 # If no C compiler was specified, use CC.
15216 # If no C compiler flags were specified, use CFLAGS.
15217 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15219 # Allow CC to be a program name with arguments.
15222 # Save the default compiler, since it gets overwritten when the other
15223 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15224 compiler_DEFAULT=$CC
15226 # save warnings/boilerplate of simple test code
15227 ac_outfile=conftest.$ac_objext
15228 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15229 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15230 _lt_compiler_boilerplate=`cat conftest.err`
15233 ac_outfile=conftest.$ac_objext
15234 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15235 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15236 _lt_linker_boilerplate=`cat conftest.err`
15240 if test -n "$compiler"; then
15242 lt_prog_compiler_no_builtin_flag=
15244 if test "$GCC" = yes; then
15245 case $cc_basename in
15247 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15249 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15253 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15254 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15255 $as_echo_n "(cached) " >&6
15257 lt_cv_prog_compiler_rtti_exceptions=no
15258 ac_outfile=conftest.$ac_objext
15259 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15260 lt_compiler_flag="-fno-rtti -fno-exceptions"
15261 # Insert the option either (1) after the last *FLAGS variable, or
15262 # (2) before a word containing "conftest.", or (3) at the end.
15263 # Note that $ac_compile itself does not contain backslashes and begins
15264 # with a dollar sign (not a hyphen), so the echo should work correctly.
15265 # The option is referenced via a variable to avoid confusing sed.
15266 lt_compile=`echo "$ac_compile" | $SED \
15267 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15269 -e 's:$: $lt_compiler_flag:'`
15270 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15271 (eval "$lt_compile" 2>conftest.err)
15273 cat conftest.err >&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 if (exit $ac_status) && test -s "$ac_outfile"; then
15276 # The compiler can only warn and ignore the option if not recognized
15277 # So say no if there are warnings other than the usual output.
15278 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15279 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15280 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15281 lt_cv_prog_compiler_rtti_exceptions=yes
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15288 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15290 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15291 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15303 lt_prog_compiler_wl=
15304 lt_prog_compiler_pic=
15305 lt_prog_compiler_static=
15308 if test "$GCC" = yes; then
15309 lt_prog_compiler_wl='-Wl,'
15310 lt_prog_compiler_static='-static'
15314 # All AIX code is PIC.
15315 if test "$host_cpu" = ia64; then
15316 # AIX 5 now supports IA64 processor
15317 lt_prog_compiler_static='-Bstatic'
15324 # see comment about AmigaOS4 .so support
15325 lt_prog_compiler_pic='-fPIC'
15328 # FIXME: we need at least 68020 code to build shared libraries, but
15329 # adding the `-m68020' flag to GCC prevents building anything better,
15331 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15336 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15337 # PIC is the default for these OSes.
15340 mingw* | cygwin* | pw32* | os2* | cegcc*)
15341 # This hack is so that the source file can tell whether it is being
15342 # built for inclusion in a dll (and should export symbols for example).
15343 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15344 # (--disable-auto-import) libraries
15345 lt_prog_compiler_pic='-DDLL_EXPORT'
15348 darwin* | rhapsody*)
15349 # PIC is the default on this platform
15350 # Common symbols not allowed in MH_DYLIB files
15351 lt_prog_compiler_pic='-fno-common'
15355 # PIC is the default for Haiku.
15356 # The "-static" flag exists, but is broken.
15357 lt_prog_compiler_static=
15361 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15362 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15363 # sets the default TLS model and affects inlining.
15369 lt_prog_compiler_pic='-fPIC'
15375 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15376 # Instead, we relocate shared libraries at runtime.
15380 # Just because we use GCC doesn't mean we suddenly get shared libraries
15381 # on systems that don't support them.
15382 lt_prog_compiler_can_build_shared=no
15387 # QNX uses GNU C++, but need to define -shared option too, otherwise
15388 # it will coredump.
15389 lt_prog_compiler_pic='-fPIC -shared'
15393 if test -d /usr/nec; then
15394 lt_prog_compiler_pic=-Kconform_pic
15399 lt_prog_compiler_pic='-fPIC'
15403 case $cc_basename in
15404 nvcc*) # Cuda Compiler Driver 2.2
15405 lt_prog_compiler_wl='-Xlinker '
15406 if test -n "$lt_prog_compiler_pic"; then
15407 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15412 # PORTME Check for flag to pass linker flags through the system compiler.
15415 lt_prog_compiler_wl='-Wl,'
15416 if test "$host_cpu" = ia64; then
15417 # AIX 5 now supports IA64 processor
15418 lt_prog_compiler_static='-Bstatic'
15420 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15424 mingw* | cygwin* | pw32* | os2* | cegcc*)
15425 # This hack is so that the source file can tell whether it is being
15426 # built for inclusion in a dll (and should export symbols for example).
15427 lt_prog_compiler_pic='-DDLL_EXPORT'
15430 hpux9* | hpux10* | hpux11*)
15431 lt_prog_compiler_wl='-Wl,'
15432 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15433 # not for PA HP-UX.
15439 lt_prog_compiler_pic='+Z'
15442 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15443 lt_prog_compiler_static='${wl}-a ${wl}archive'
15446 irix5* | irix6* | nonstopux*)
15447 lt_prog_compiler_wl='-Wl,'
15448 # PIC (with -KPIC) is the default.
15449 lt_prog_compiler_static='-non_shared'
15452 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15453 case $cc_basename in
15454 # old Intel for x86_64 which still supported -KPIC.
15456 lt_prog_compiler_wl='-Wl,'
15457 lt_prog_compiler_pic='-KPIC'
15458 lt_prog_compiler_static='-static'
15460 # icc used to be incompatible with GCC.
15461 # ICC 10 doesn't accept -KPIC any more.
15463 lt_prog_compiler_wl='-Wl,'
15464 lt_prog_compiler_pic='-fPIC'
15465 lt_prog_compiler_static='-static'
15467 # Lahey Fortran 8.1.
15469 lt_prog_compiler_wl='-Wl,'
15470 lt_prog_compiler_pic='--shared'
15471 lt_prog_compiler_static='--static'
15474 # NAG Fortran compiler
15475 lt_prog_compiler_wl='-Wl,-Wl,,'
15476 lt_prog_compiler_pic='-PIC'
15477 lt_prog_compiler_static='-Bstatic'
15479 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15480 # Portland Group compilers (*not* the Pentium gcc compiler,
15481 # which looks to be a dead project)
15482 lt_prog_compiler_wl='-Wl,'
15483 lt_prog_compiler_pic='-fpic'
15484 lt_prog_compiler_static='-Bstatic'
15487 lt_prog_compiler_wl='-Wl,'
15488 # All Alpha code is PIC.
15489 lt_prog_compiler_static='-non_shared'
15491 xl* | bgxl* | bgf* | mpixl*)
15492 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15493 lt_prog_compiler_wl='-Wl,'
15494 lt_prog_compiler_pic='-qpic'
15495 lt_prog_compiler_static='-qstaticlink'
15498 case `$CC -V 2>&1 | sed 5q` in
15499 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15500 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15501 lt_prog_compiler_pic='-KPIC'
15502 lt_prog_compiler_static='-Bstatic'
15503 lt_prog_compiler_wl=''
15505 *Sun\ F* | *Sun*Fortran*)
15506 lt_prog_compiler_pic='-KPIC'
15507 lt_prog_compiler_static='-Bstatic'
15508 lt_prog_compiler_wl='-Qoption ld '
15512 lt_prog_compiler_pic='-KPIC'
15513 lt_prog_compiler_static='-Bstatic'
15514 lt_prog_compiler_wl='-Wl,'
15516 *Intel*\ [CF]*Compiler*)
15517 lt_prog_compiler_wl='-Wl,'
15518 lt_prog_compiler_pic='-fPIC'
15519 lt_prog_compiler_static='-static'
15522 lt_prog_compiler_wl='-Wl,'
15523 lt_prog_compiler_pic='-fpic'
15524 lt_prog_compiler_static='-Bstatic'
15532 lt_prog_compiler_pic='-KPIC'
15533 lt_prog_compiler_static='-Bstatic'
15537 # QNX uses GNU C++, but need to define -shared option too, otherwise
15538 # it will coredump.
15539 lt_prog_compiler_pic='-fPIC -shared'
15542 osf3* | osf4* | osf5*)
15543 lt_prog_compiler_wl='-Wl,'
15544 # All OSF/1 code is PIC.
15545 lt_prog_compiler_static='-non_shared'
15549 lt_prog_compiler_static='-non_shared'
15553 lt_prog_compiler_pic='-KPIC'
15554 lt_prog_compiler_static='-Bstatic'
15555 case $cc_basename in
15556 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15557 lt_prog_compiler_wl='-Qoption ld ';;
15559 lt_prog_compiler_wl='-Wl,';;
15564 lt_prog_compiler_wl='-Qoption ld '
15565 lt_prog_compiler_pic='-PIC'
15566 lt_prog_compiler_static='-Bstatic'
15569 sysv4 | sysv4.2uw2* | sysv4.3*)
15570 lt_prog_compiler_wl='-Wl,'
15571 lt_prog_compiler_pic='-KPIC'
15572 lt_prog_compiler_static='-Bstatic'
15576 if test -d /usr/nec ;then
15577 lt_prog_compiler_pic='-Kconform_pic'
15578 lt_prog_compiler_static='-Bstatic'
15582 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15583 lt_prog_compiler_wl='-Wl,'
15584 lt_prog_compiler_pic='-KPIC'
15585 lt_prog_compiler_static='-Bstatic'
15589 lt_prog_compiler_wl='-Wl,'
15590 lt_prog_compiler_can_build_shared=no
15594 lt_prog_compiler_pic='-pic'
15595 lt_prog_compiler_static='-Bstatic'
15599 lt_prog_compiler_can_build_shared=no
15605 # For platforms which do not support PIC, -DPIC is meaningless:
15607 lt_prog_compiler_pic=
15610 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15615 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15616 if ${lt_cv_prog_compiler_pic+:} false; then :
15617 $as_echo_n "(cached) " >&6
15619 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15622 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
15623 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15626 # Check to make sure the PIC flag actually works.
15628 if test -n "$lt_prog_compiler_pic"; then
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15630 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15631 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15632 $as_echo_n "(cached) " >&6
15634 lt_cv_prog_compiler_pic_works=no
15635 ac_outfile=conftest.$ac_objext
15636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15637 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15638 # Insert the option either (1) after the last *FLAGS variable, or
15639 # (2) before a word containing "conftest.", or (3) at the end.
15640 # Note that $ac_compile itself does not contain backslashes and begins
15641 # with a dollar sign (not a hyphen), so the echo should work correctly.
15642 # The option is referenced via a variable to avoid confusing sed.
15643 lt_compile=`echo "$ac_compile" | $SED \
15644 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15646 -e 's:$: $lt_compiler_flag:'`
15647 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15648 (eval "$lt_compile" 2>conftest.err)
15650 cat conftest.err >&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 if (exit $ac_status) && test -s "$ac_outfile"; then
15653 # The compiler can only warn and ignore the option if not recognized
15654 # So say no if there are warnings other than the usual output.
15655 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15657 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15658 lt_cv_prog_compiler_pic_works=yes
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15665 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15667 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15668 case $lt_prog_compiler_pic in
15670 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15673 lt_prog_compiler_pic=
15674 lt_prog_compiler_can_build_shared=no
15690 # Check to make sure the static flag actually works.
15692 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15694 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15695 if ${lt_cv_prog_compiler_static_works+:} false; then :
15696 $as_echo_n "(cached) " >&6
15698 lt_cv_prog_compiler_static_works=no
15699 save_LDFLAGS="$LDFLAGS"
15700 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15701 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15702 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15703 # The linker can only warn and ignore the option if not recognized
15704 # So say no if there are warnings
15705 if test -s conftest.err; then
15706 # Append any errors to the config.log.
15707 cat conftest.err 1>&5
15708 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15709 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15710 if diff conftest.exp conftest.er2 >/dev/null; then
15711 lt_cv_prog_compiler_static_works=yes
15714 lt_cv_prog_compiler_static_works=yes
15718 LDFLAGS="$save_LDFLAGS"
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15722 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15724 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15727 lt_prog_compiler_static=
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15737 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15738 if ${lt_cv_prog_compiler_c_o+:} false; then :
15739 $as_echo_n "(cached) " >&6
15741 lt_cv_prog_compiler_c_o=no
15742 $RM -r conftest 2>/dev/null
15746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15748 lt_compiler_flag="-o out/conftest2.$ac_objext"
15749 # Insert the option either (1) after the last *FLAGS variable, or
15750 # (2) before a word containing "conftest.", or (3) at the end.
15751 # Note that $ac_compile itself does not contain backslashes and begins
15752 # with a dollar sign (not a hyphen), so the echo should work correctly.
15753 lt_compile=`echo "$ac_compile" | $SED \
15754 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15755 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15756 -e 's:$: $lt_compiler_flag:'`
15757 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15758 (eval "$lt_compile" 2>out/conftest.err)
15760 cat out/conftest.err >&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15764 # The compiler can only warn and ignore the option if not recognized
15765 # So say no if there are warnings
15766 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15767 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15768 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15769 lt_cv_prog_compiler_c_o=yes
15774 # SGI C++ compiler will create directory out/ii_files/ for
15775 # template instantiation
15776 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15777 $RM out/* && rmdir out
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15784 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15792 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15793 if ${lt_cv_prog_compiler_c_o+:} false; then :
15794 $as_echo_n "(cached) " >&6
15796 lt_cv_prog_compiler_c_o=no
15797 $RM -r conftest 2>/dev/null
15801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15803 lt_compiler_flag="-o out/conftest2.$ac_objext"
15804 # Insert the option either (1) after the last *FLAGS variable, or
15805 # (2) before a word containing "conftest.", or (3) at the end.
15806 # Note that $ac_compile itself does not contain backslashes and begins
15807 # with a dollar sign (not a hyphen), so the echo should work correctly.
15808 lt_compile=`echo "$ac_compile" | $SED \
15809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15811 -e 's:$: $lt_compiler_flag:'`
15812 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15813 (eval "$lt_compile" 2>out/conftest.err)
15815 cat out/conftest.err >&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15819 # The compiler can only warn and ignore the option if not recognized
15820 # So say no if there are warnings
15821 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15822 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15823 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15824 lt_cv_prog_compiler_c_o=yes
15829 # SGI C++ compiler will create directory out/ii_files/ for
15830 # template instantiation
15831 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15832 $RM out/* && rmdir out
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15839 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15844 hard_links="nottested"
15845 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15846 # do not overwrite the value of need_locks provided by the user
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15848 $as_echo_n "checking if we can lock with hard links... " >&6; }
15851 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15853 ln conftest.a conftest.b 2>&5 || hard_links=no
15854 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15856 $as_echo "$hard_links" >&6; }
15857 if test "$hard_links" = no; then
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15859 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15872 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15875 allow_undefined_flag=
15876 always_export_symbols=no
15878 archive_expsym_cmds=
15879 compiler_needs_object=no
15880 enable_shared_with_static_runtimes=no
15881 export_dynamic_flag_spec=
15882 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15883 hardcode_automatic=no
15885 hardcode_direct_absolute=no
15886 hardcode_libdir_flag_spec=
15887 hardcode_libdir_separator=
15888 hardcode_minus_L=no
15889 hardcode_shlibpath_var=unsupported
15891 link_all_deplibs=unknown
15893 module_expsym_cmds=
15894 old_archive_from_new_cmds=
15895 old_archive_from_expsyms_cmds=
15896 thread_safe_flag_spec=
15897 whole_archive_flag_spec=
15898 # include_expsyms should be a list of space-separated symbols to be *always*
15899 # included in the symbol list
15901 # exclude_expsyms can be an extended regexp of symbols to exclude
15902 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15903 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15904 # as well as any symbol that contains `d'.
15905 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15906 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15907 # platforms (ab)use it in PIC code, but their linkers get confused if
15908 # the symbol is explicitly referenced. Since portable code cannot
15909 # rely on this symbol name, it's probably fine to never include it in
15910 # preloaded symbol tables.
15911 # Exclude shared library initialization/finalization symbols.
15912 extract_expsyms_cmds=
15915 cygwin* | mingw* | pw32* | cegcc*)
15916 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15917 # When not using gcc, we currently assume that we are using
15918 # Microsoft Visual C++.
15919 if test "$GCC" != yes; then
15924 # we just hope/assume this is gcc and not c89 (= MSVC++)
15934 # On some targets, GNU ld is compatible enough with the native linker
15935 # that we're better off using the native interface for both.
15936 lt_use_gnu_ld_interface=no
15937 if test "$with_gnu_ld" = yes; then
15940 # The AIX port of GNU ld has always aspired to compatibility
15941 # with the native linker. However, as the warning in the GNU ld
15942 # block says, versions before 2.19.5* couldn't really create working
15943 # shared libraries, regardless of the interface used.
15944 case `$LD -v 2>&1` in
15945 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15946 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15947 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15949 lt_use_gnu_ld_interface=yes
15954 lt_use_gnu_ld_interface=yes
15959 if test "$lt_use_gnu_ld_interface" = yes; then
15960 # If archive_cmds runs LD, not CC, wlarc should be empty
15963 # Set some defaults for GNU ld with shared library support. These
15964 # are reset later if shared libraries are not supported. Putting them
15965 # here allows them to be overridden if necessary.
15966 runpath_var=LD_RUN_PATH
15967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15968 export_dynamic_flag_spec='${wl}--export-dynamic'
15969 # ancient GNU ld didn't support --whole-archive et. al.
15970 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15971 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15973 whole_archive_flag_spec=
15975 supports_anon_versioning=no
15976 case `$LD -v 2>&1` in
15977 *GNU\ gold*) supports_anon_versioning=yes ;;
15978 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15979 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15980 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15981 *\ 2.11.*) ;; # other 2.11 versions
15982 *) supports_anon_versioning=yes ;;
15985 # See if GNU ld supports shared libraries.
15988 # On AIX/PPC, the GNU linker is very broken
15989 if test "$host_cpu" != ia64; then
15993 *** Warning: the GNU linker, at least up to release 2.19, is reported
15994 *** to be unable to reliably create shared libraries on AIX.
15995 *** Therefore, libtool is disabling shared libraries support. If you
15996 *** really care for shared libraries, you may want to install binutils
15997 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15998 *** You will then need to restart the configuration process.
16007 # see comment about AmigaOS4 .so support
16008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16009 archive_expsym_cmds=''
16012 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)'
16013 hardcode_libdir_flag_spec='-L$libdir'
16014 hardcode_minus_L=yes
16020 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16021 allow_undefined_flag=unsupported
16022 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16023 # support --undefined. This deserves some investigation. FIXME
16024 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16030 cygwin* | mingw* | pw32* | cegcc*)
16031 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16032 # as there is no search path for DLLs.
16033 hardcode_libdir_flag_spec='-L$libdir'
16034 export_dynamic_flag_spec='${wl}--export-all-symbols'
16035 allow_undefined_flag=unsupported
16036 always_export_symbols=no
16037 enable_shared_with_static_runtimes=yes
16038 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'
16039 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16041 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16043 # If the export-symbols file already is a .def file (1st line
16044 # is EXPORTS), use it as is; otherwise, prepend...
16045 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16046 cp $export_symbols $output_objdir/$soname.def;
16048 echo EXPORTS > $output_objdir/$soname.def;
16049 cat $export_symbols >> $output_objdir/$soname.def;
16051 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16059 link_all_deplibs=yes
16064 hardcode_shlibpath_var=no
16065 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16066 export_dynamic_flag_spec='${wl}-E'
16067 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16068 # Instead, shared libraries are loaded at an image base (0x10000000 by
16069 # default) and relocated if they conflict, which is a slow very memory
16070 # consuming and fragmenting process. To avoid this, we pick a random,
16071 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16072 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16073 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16074 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'
16077 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16079 if test "$host_os" = linux-dietlibc; then
16080 case $cc_basename in
16081 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16084 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16085 && test "$tmp_diet" = no
16087 tmp_addflag=' $pic_flag'
16088 tmp_sharedflag='-shared'
16089 case $cc_basename,$host_cpu in
16090 pgcc*) # Portland Group C compiler
16091 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'
16092 tmp_addflag=' $pic_flag'
16094 pgf77* | pgf90* | pgf95* | pgfortran*)
16095 # Portland Group f77 and f90 compilers
16096 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'
16097 tmp_addflag=' $pic_flag -Mnomain' ;;
16098 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16099 tmp_addflag=' -i_dynamic' ;;
16100 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16101 tmp_addflag=' -i_dynamic -nofor_main' ;;
16102 ifc* | ifort*) # Intel Fortran compiler
16103 tmp_addflag=' -nofor_main' ;;
16104 lf95*) # Lahey Fortran 8.1
16105 whole_archive_flag_spec=
16106 tmp_sharedflag='--shared' ;;
16107 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16108 tmp_sharedflag='-qmkshrobj'
16110 nvcc*) # Cuda Compiler Driver 2.2
16111 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'
16112 compiler_needs_object=yes
16115 case `$CC -V 2>&1 | sed 5q` in
16116 *Sun\ C*) # Sun C 5.9
16117 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'
16118 compiler_needs_object=yes
16119 tmp_sharedflag='-G' ;;
16120 *Sun\ F*) # Sun Fortran 8.3
16121 tmp_sharedflag='-G' ;;
16123 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16125 if test "x$supports_anon_versioning" = xyes; then
16126 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16127 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16128 echo "local: *; };" >> $output_objdir/$libname.ver~
16129 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16132 case $cc_basename in
16133 xlf* | bgf* | bgxlf* | mpixlf*)
16134 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16135 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16136 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16137 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16138 if test "x$supports_anon_versioning" = xyes; then
16139 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16140 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16141 echo "local: *; };" >> $output_objdir/$libname.ver~
16142 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16152 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16153 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16156 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16157 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16162 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16166 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16167 *** create shared libraries on Solaris systems. Therefore, libtool
16168 *** is disabling shared libraries support. We urge you to upgrade GNU
16169 *** binutils to release 2.9.1 or newer. Another option is to modify
16170 *** your PATH or compiler configuration so that the native linker is
16171 *** used, and then restart.
16174 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16175 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16176 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16182 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16183 case `$LD -v 2>&1` in
16184 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16188 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16189 *** reliably create shared libraries on SCO systems. Therefore, libtool
16190 *** is disabling shared libraries support. We urge you to upgrade GNU
16191 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16192 *** your PATH or compiler configuration so that the native linker is
16193 *** used, and then restart.
16198 # For security reasons, it is highly recommended that you always
16199 # use absolute paths for naming shared libraries, and exclude the
16200 # DT_RUNPATH tag from executables and libraries. But doing so
16201 # requires that you compile everything twice, which is a pain.
16202 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16203 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16205 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16214 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16216 hardcode_direct=yes
16217 hardcode_shlibpath_var=no
16221 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16222 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16223 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16230 if test "$ld_shlibs" = no; then
16232 hardcode_libdir_flag_spec=
16233 export_dynamic_flag_spec=
16234 whole_archive_flag_spec=
16237 # PORTME fill in a description of your system's linker (not GNU ld)
16240 allow_undefined_flag=unsupported
16241 always_export_symbols=yes
16242 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'
16243 # Note: this linker hardcodes the directories in LIBPATH if there
16244 # are no directories specified by -L.
16245 hardcode_minus_L=yes
16246 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16247 # Neither direct hardcoding nor static linking is supported with a
16249 hardcode_direct=unsupported
16254 if test "$host_cpu" = ia64; then
16255 # On IA64, the linker does run time linking by default, so we don't
16256 # have to do anything special.
16257 aix_use_runtimelinking=no
16258 exp_sym_flag='-Bexport'
16261 # If we're using GNU nm, then we don't want the "-C" option.
16262 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16263 # Also, AIX nm treats weak defined symbols like other global
16264 # defined symbols, whereas GNU nm marks them as "W".
16265 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16266 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'
16268 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'
16270 aix_use_runtimelinking=no
16272 # Test if we are trying to use run time linking or normal
16273 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16274 # need to do runtime linking.
16275 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16276 for ld_flag in $LDFLAGS; do
16277 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16278 aix_use_runtimelinking=yes
16285 exp_sym_flag='-bexport'
16286 no_entry_flag='-bnoentry'
16289 # When large executables or shared objects are built, AIX ld can
16290 # have problems creating the table of contents. If linking a library
16291 # or program results in "error TOC overflow" add -mminimal-toc to
16292 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16293 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16296 hardcode_direct=yes
16297 hardcode_direct_absolute=yes
16298 hardcode_libdir_separator=':'
16299 link_all_deplibs=yes
16300 file_list_spec='${wl}-f,'
16302 if test "$GCC" = yes; then
16303 case $host_os in aix4.[012]|aix4.[012].*)
16304 # We only want to do this on AIX 4.2 and lower, the check
16305 # below for broken collect2 doesn't work under 4.3+
16306 collect2name=`${CC} -print-prog-name=collect2`
16307 if test -f "$collect2name" &&
16308 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16310 # We have reworked collect2
16313 # We have old collect2
16314 hardcode_direct=unsupported
16315 # It fails to find uninstalled libraries when the uninstalled
16316 # path is not listed in the libpath. Setting hardcode_minus_L
16317 # to unsupported forces relinking
16318 hardcode_minus_L=yes
16319 hardcode_libdir_flag_spec='-L$libdir'
16320 hardcode_libdir_separator=
16324 shared_flag='-shared'
16325 if test "$aix_use_runtimelinking" = yes; then
16326 shared_flag="$shared_flag "'${wl}-G'
16330 if test "$host_cpu" = ia64; then
16331 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16332 # chokes on -Wl,-G. The following line is correct:
16335 if test "$aix_use_runtimelinking" = yes; then
16336 shared_flag='${wl}-G'
16338 shared_flag='${wl}-bM:SRE'
16343 export_dynamic_flag_spec='${wl}-bexpall'
16344 # It seems that -bexpall does not export symbols beginning with
16345 # underscore (_), so it is better to generate a list of symbols to export.
16346 always_export_symbols=yes
16347 if test "$aix_use_runtimelinking" = yes; then
16348 # Warning - without using the other runtime loading flags (-brtl),
16349 # -berok will link without error, but may produce a broken library.
16350 allow_undefined_flag='-berok'
16351 # Determine the default libpath from the value encoded in an
16352 # empty executable.
16353 if test "${lt_cv_aix_libpath+set}" = set; then
16354 aix_libpath=$lt_cv_aix_libpath
16356 if ${lt_cv_aix_libpath_+:} false; then :
16357 $as_echo_n "(cached) " >&6
16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360 /* end confdefs.h. */
16370 if ac_fn_c_try_link "$LINENO"; then :
16372 lt_aix_libpath_sed='
16373 /Import File Strings/,/^$/ {
16375 s/^0 *\([^ ]*\) *$/\1/
16379 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16380 # Check for a 64-bit object if we didn't find anything.
16381 if test -z "$lt_cv_aix_libpath_"; then
16382 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16385 rm -f core conftest.err conftest.$ac_objext \
16386 conftest$ac_exeext conftest.$ac_ext
16387 if test -z "$lt_cv_aix_libpath_"; then
16388 lt_cv_aix_libpath_="/usr/lib:/lib"
16393 aix_libpath=$lt_cv_aix_libpath_
16396 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16397 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"
16399 if test "$host_cpu" = ia64; then
16400 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16401 allow_undefined_flag="-z nodefs"
16402 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"
16404 # Determine the default libpath from the value encoded in an
16405 # empty executable.
16406 if test "${lt_cv_aix_libpath+set}" = set; then
16407 aix_libpath=$lt_cv_aix_libpath
16409 if ${lt_cv_aix_libpath_+:} false; then :
16410 $as_echo_n "(cached) " >&6
16412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16413 /* end confdefs.h. */
16423 if ac_fn_c_try_link "$LINENO"; then :
16425 lt_aix_libpath_sed='
16426 /Import File Strings/,/^$/ {
16428 s/^0 *\([^ ]*\) *$/\1/
16432 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16433 # Check for a 64-bit object if we didn't find anything.
16434 if test -z "$lt_cv_aix_libpath_"; then
16435 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16438 rm -f core conftest.err conftest.$ac_objext \
16439 conftest$ac_exeext conftest.$ac_ext
16440 if test -z "$lt_cv_aix_libpath_"; then
16441 lt_cv_aix_libpath_="/usr/lib:/lib"
16446 aix_libpath=$lt_cv_aix_libpath_
16449 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16450 # Warning - without using the other run time loading flags,
16451 # -berok will link without error, but may produce a broken library.
16452 no_undefined_flag=' ${wl}-bernotok'
16453 allow_undefined_flag=' ${wl}-berok'
16454 if test "$with_gnu_ld" = yes; then
16455 # We only use this code for GNU lds that support --whole-archive.
16456 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16458 # Exported symbols can be pulled into shared objects from archives
16459 whole_archive_flag_spec='$convenience'
16461 archive_cmds_need_lc=yes
16462 # This is similar to how AIX traditionally builds its shared libraries.
16463 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'
16471 # see comment about AmigaOS4 .so support
16472 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16473 archive_expsym_cmds=''
16476 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)'
16477 hardcode_libdir_flag_spec='-L$libdir'
16478 hardcode_minus_L=yes
16484 export_dynamic_flag_spec=-rdynamic
16487 cygwin* | mingw* | pw32* | cegcc*)
16488 # When not using gcc, we currently assume that we are using
16489 # Microsoft Visual C++.
16490 # hardcode_libdir_flag_spec is actually meaningless, as there is
16491 # no search path for DLLs.
16492 case $cc_basename in
16495 hardcode_libdir_flag_spec=' '
16496 allow_undefined_flag=unsupported
16497 always_export_symbols=yes
16499 # Tell ltmain to make .lib files, not .a files.
16501 # Tell ltmain to make .dll files, not .so files.
16503 # FIXME: Setting linknames here is a bad hack.
16504 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16505 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16506 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16508 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16510 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16512 # The linker will not automatically build a static lib if we build a DLL.
16513 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16514 enable_shared_with_static_runtimes=yes
16515 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16516 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16518 old_postinstall_cmds='chmod 644 $oldlib'
16519 postlink_cmds='lt_outputfile="@OUTPUT@"~
16520 lt_tool_outputfile="@TOOL_OUTPUT@"~
16521 case $lt_outputfile in
16524 lt_outputfile="$lt_outputfile.exe"
16525 lt_tool_outputfile="$lt_tool_outputfile.exe"
16528 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16529 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16530 $RM "$lt_outputfile.manifest";
16534 # Assume MSVC wrapper
16535 hardcode_libdir_flag_spec=' '
16536 allow_undefined_flag=unsupported
16537 # Tell ltmain to make .lib files, not .a files.
16539 # Tell ltmain to make .dll files, not .so files.
16541 # FIXME: Setting linknames here is a bad hack.
16542 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16543 # The linker will automatically build a .lib file if we build a DLL.
16544 old_archive_from_new_cmds='true'
16545 # FIXME: Should let the user specify the lib program.
16546 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16547 enable_shared_with_static_runtimes=yes
16552 darwin* | rhapsody*)
16555 archive_cmds_need_lc=no
16557 hardcode_automatic=yes
16558 hardcode_shlibpath_var=unsupported
16559 if test "$lt_cv_ld_force_load" = "yes"; then
16560 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\"`'
16563 whole_archive_flag_spec=''
16565 link_all_deplibs=yes
16566 allow_undefined_flag="$_lt_dar_allow_undefined"
16567 case $cc_basename in
16568 ifort*) _lt_dar_can_shared=yes ;;
16569 *) _lt_dar_can_shared=$GCC ;;
16571 if test "$_lt_dar_can_shared" = "yes"; then
16572 output_verbose_link_cmd=func_echo_all
16573 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16574 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16575 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}"
16576 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}"
16585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16586 hardcode_libdir_flag_spec='-L$libdir'
16587 hardcode_shlibpath_var=no
16590 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16591 # support. Future versions do this automatically, but an explicit c++rt0.o
16592 # does not break anything, and helps significantly (at the cost of a little
16595 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16596 hardcode_libdir_flag_spec='-R$libdir'
16597 hardcode_direct=yes
16598 hardcode_shlibpath_var=no
16601 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16603 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16604 hardcode_direct=yes
16605 hardcode_minus_L=yes
16606 hardcode_shlibpath_var=no
16609 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16610 freebsd* | dragonfly*)
16611 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16612 hardcode_libdir_flag_spec='-R$libdir'
16613 hardcode_direct=yes
16614 hardcode_shlibpath_var=no
16618 if test "$GCC" = yes; then
16619 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'
16621 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'
16623 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16624 hardcode_libdir_separator=:
16625 hardcode_direct=yes
16627 # hardcode_minus_L: Not really in the search PATH,
16628 # but as the default location of the library.
16629 hardcode_minus_L=yes
16630 export_dynamic_flag_spec='${wl}-E'
16634 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16635 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16637 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16639 if test "$with_gnu_ld" = no; then
16640 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16641 hardcode_libdir_separator=:
16642 hardcode_direct=yes
16643 hardcode_direct_absolute=yes
16644 export_dynamic_flag_spec='${wl}-E'
16645 # hardcode_minus_L: Not really in the search PATH,
16646 # but as the default location of the library.
16647 hardcode_minus_L=yes
16652 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16655 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16658 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16661 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16667 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16670 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16674 # Older versions of the 11.00 compiler do not understand -b yet
16675 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16677 $as_echo_n "checking if $CC understands -b... " >&6; }
16678 if ${lt_cv_prog_compiler__b+:} false; then :
16679 $as_echo_n "(cached) " >&6
16681 lt_cv_prog_compiler__b=no
16682 save_LDFLAGS="$LDFLAGS"
16683 LDFLAGS="$LDFLAGS -b"
16684 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16685 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16686 # The linker can only warn and ignore the option if not recognized
16687 # So say no if there are warnings
16688 if test -s conftest.err; then
16689 # Append any errors to the config.log.
16690 cat conftest.err 1>&5
16691 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16693 if diff conftest.exp conftest.er2 >/dev/null; then
16694 lt_cv_prog_compiler__b=yes
16697 lt_cv_prog_compiler__b=yes
16701 LDFLAGS="$save_LDFLAGS"
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16705 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16707 if test x"$lt_cv_prog_compiler__b" = xyes; then
16708 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16710 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16716 if test "$with_gnu_ld" = no; then
16717 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16718 hardcode_libdir_separator=:
16723 hardcode_shlibpath_var=no
16726 hardcode_direct=yes
16727 hardcode_direct_absolute=yes
16728 export_dynamic_flag_spec='${wl}-E'
16730 # hardcode_minus_L: Not really in the search PATH,
16731 # but as the default location of the library.
16732 hardcode_minus_L=yes
16738 irix5* | irix6* | nonstopux*)
16739 if test "$GCC" = yes; then
16740 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'
16741 # Try to use the -exported_symbol ld option, if it does not
16742 # work, assume that -exports_file does not work either and
16743 # implicitly export all symbols.
16744 # This should be the same for all languages, so no per-tag cache variable.
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16746 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16747 if ${lt_cv_irix_exported_symbol+:} false; then :
16748 $as_echo_n "(cached) " >&6
16750 save_LDFLAGS="$LDFLAGS"
16751 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16753 /* end confdefs.h. */
16754 int foo (void) { return 0; }
16756 if ac_fn_c_try_link "$LINENO"; then :
16757 lt_cv_irix_exported_symbol=yes
16759 lt_cv_irix_exported_symbol=no
16761 rm -f core conftest.err conftest.$ac_objext \
16762 conftest$ac_exeext conftest.$ac_ext
16763 LDFLAGS="$save_LDFLAGS"
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16766 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16767 if test "$lt_cv_irix_exported_symbol" = yes; then
16768 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'
16771 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'
16772 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'
16774 archive_cmds_need_lc='no'
16775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16776 hardcode_libdir_separator=:
16778 link_all_deplibs=yes
16782 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16785 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16787 hardcode_libdir_flag_spec='-R$libdir'
16788 hardcode_direct=yes
16789 hardcode_shlibpath_var=no
16793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16794 hardcode_direct=yes
16795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16796 hardcode_libdir_separator=:
16797 hardcode_shlibpath_var=no
16804 if test -f /usr/libexec/ld.so; then
16805 hardcode_direct=yes
16806 hardcode_shlibpath_var=no
16807 hardcode_direct_absolute=yes
16808 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16809 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16810 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16811 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16812 export_dynamic_flag_spec='${wl}-E'
16815 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16816 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16817 hardcode_libdir_flag_spec='-R$libdir'
16820 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16821 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16831 hardcode_libdir_flag_spec='-L$libdir'
16832 hardcode_minus_L=yes
16833 allow_undefined_flag=unsupported
16834 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'
16835 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16839 if test "$GCC" = yes; then
16840 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16841 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'
16843 allow_undefined_flag=' -expect_unresolved \*'
16844 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'
16846 archive_cmds_need_lc='no'
16847 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16848 hardcode_libdir_separator=:
16851 osf4* | osf5*) # as osf3* with the addition of -msym flag
16852 if test "$GCC" = yes; then
16853 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16854 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'
16855 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16857 allow_undefined_flag=' -expect_unresolved \*'
16858 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'
16859 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~
16860 $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'
16862 # Both c and cxx compiler support -rpath directly
16863 hardcode_libdir_flag_spec='-rpath $libdir'
16865 archive_cmds_need_lc='no'
16866 hardcode_libdir_separator=:
16870 no_undefined_flag=' -z defs'
16871 if test "$GCC" = yes; then
16873 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16874 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16875 $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'
16877 case `$CC -V 2>&1` in
16880 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16881 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16882 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16886 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16887 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16888 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16892 hardcode_libdir_flag_spec='-R$libdir'
16893 hardcode_shlibpath_var=no
16895 solaris2.[0-5] | solaris2.[0-5].*) ;;
16897 # The compiler driver will combine and reorder linker options,
16898 # but understands `-z linker_flag'. GCC discards it without `$wl',
16899 # but is careful enough not to reorder.
16900 # Supported since Solaris 2.6 (maybe 2.5.1?)
16901 if test "$GCC" = yes; then
16902 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16904 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16908 link_all_deplibs=yes
16912 if test "x$host_vendor" = xsequent; then
16913 # Use $CC to link under sequent, because it throws in some extra .o
16914 # files that make .init and .fini sections work.
16915 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16917 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16919 hardcode_libdir_flag_spec='-L$libdir'
16920 hardcode_direct=yes
16921 hardcode_minus_L=yes
16922 hardcode_shlibpath_var=no
16926 case $host_vendor in
16928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16929 hardcode_direct=yes # is this really true???
16932 ## LD is ld it makes a PLAMLIB
16933 ## CC just makes a GrossModule.
16934 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16935 reload_cmds='$CC -r -o $output$reload_objs'
16939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16940 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16943 runpath_var='LD_RUN_PATH'
16944 hardcode_shlibpath_var=no
16948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16949 hardcode_shlibpath_var=no
16950 export_dynamic_flag_spec='-Bexport'
16954 if test -d /usr/nec; then
16955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16956 hardcode_shlibpath_var=no
16957 runpath_var=LD_RUN_PATH
16958 hardcode_runpath_var=yes
16963 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16964 no_undefined_flag='${wl}-z,text'
16965 archive_cmds_need_lc=no
16966 hardcode_shlibpath_var=no
16967 runpath_var='LD_RUN_PATH'
16969 if test "$GCC" = yes; then
16970 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16971 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16973 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16974 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16978 sysv5* | sco3.2v5* | sco5v6*)
16979 # Note: We can NOT use -z defs as we might desire, because we do not
16980 # link with -lc, and that would cause any symbols used from libc to
16981 # always be unresolved, which means just about no library would
16982 # ever link correctly. If we're not using GNU ld we use -z text
16983 # though, which does catch some bad symbols but isn't as heavy-handed
16985 no_undefined_flag='${wl}-z,text'
16986 allow_undefined_flag='${wl}-z,nodefs'
16987 archive_cmds_need_lc=no
16988 hardcode_shlibpath_var=no
16989 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16990 hardcode_libdir_separator=':'
16991 link_all_deplibs=yes
16992 export_dynamic_flag_spec='${wl}-Bexport'
16993 runpath_var='LD_RUN_PATH'
16995 if test "$GCC" = yes; then
16996 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16997 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16999 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17000 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17006 hardcode_libdir_flag_spec='-L$libdir'
17007 hardcode_shlibpath_var=no
17015 if test x$host_vendor = xsni; then
17017 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17018 export_dynamic_flag_spec='${wl}-Blargedynsym'
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17025 $as_echo "$ld_shlibs" >&6; }
17026 test "$ld_shlibs" = no && can_build_shared=no
17028 with_gnu_ld=$with_gnu_ld
17045 # Do we need to explicitly link libc?
17047 case "x$archive_cmds_need_lc" in
17049 # Assume -lc should be added
17050 archive_cmds_need_lc=yes
17052 if test "$enable_shared" = yes && test "$GCC" = yes; then
17053 case $archive_cmds in
17055 # FIXME: we may have to deal with multi-command sequences.
17058 # Test whether the compiler implicitly links with -lc since on some
17059 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17060 # to ld, don't add -lc before -lgcc.
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17062 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17063 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17064 $as_echo_n "(cached) " >&6
17067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17070 (eval $ac_compile) 2>&5
17072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17073 test $ac_status = 0; } 2>conftest.err; then
17076 libobjs=conftest.$ac_objext
17078 wl=$lt_prog_compiler_wl
17079 pic_flag=$lt_prog_compiler_pic
17085 lt_save_allow_undefined_flag=$allow_undefined_flag
17086 allow_undefined_flag=
17087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17088 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17091 test $ac_status = 0; }
17093 lt_cv_archive_cmds_need_lc=no
17095 lt_cv_archive_cmds_need_lc=yes
17097 allow_undefined_flag=$lt_save_allow_undefined_flag
17099 cat conftest.err 1>&5
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17105 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17106 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17265 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17267 if test "$GCC" = yes; then
17269 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17270 *) lt_awk_arg="/^libraries:/" ;;
17273 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17274 *) lt_sed_strip_eq="s,=/,/,g" ;;
17276 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17277 case $lt_search_path_spec in
17279 # if the path contains ";" then we assume it to be the separator
17280 # otherwise default to the standard path separator (i.e. ":") - it is
17281 # assumed that no part of a normal pathname contains ";" but that should
17282 # okay in the real world where ";" in dirpaths is itself problematic.
17283 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17286 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17289 # Ok, now we have the path, separated by spaces, we can step through it
17290 # and add multilib dir if necessary.
17291 lt_tmp_lt_search_path_spec=
17292 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17293 for lt_sys_path in $lt_search_path_spec; do
17294 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17295 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17297 test -d "$lt_sys_path" && \
17298 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17301 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17302 BEGIN {RS=" "; FS="/|\n";} {
17305 for (lt_i = NF; lt_i > 0; lt_i--) {
17306 if ($lt_i != "" && $lt_i != ".") {
17307 if ($lt_i == "..") {
17310 if (lt_count == 0) {
17311 lt_foo="/" $lt_i lt_foo;
17318 if (lt_foo != "") { lt_freq[lt_foo]++; }
17319 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17321 # AWK program above erroneously prepends '/' to C:/dos/paths
17324 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17325 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17327 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17329 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17331 library_names_spec=
17332 libname_spec='lib$name'
17336 postuninstall_cmds=
17340 shlibpath_overrides_runpath=unknown
17342 dynamic_linker="$host_os ld.so"
17343 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17344 need_lib_prefix=unknown
17345 hardcode_into_libs=no
17347 # when you set need_version to no, make sure it does not cause -set_version
17348 # flags to be left without arguments
17349 need_version=unknown
17353 version_type=linux # correct to gnu/linux during the next big refactor
17354 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17355 shlibpath_var=LIBPATH
17357 # AIX 3 has no versioning support, so we append a major version to the name.
17358 soname_spec='${libname}${release}${shared_ext}$major'
17362 version_type=linux # correct to gnu/linux during the next big refactor
17365 hardcode_into_libs=yes
17366 if test "$host_cpu" = ia64; then
17367 # AIX 5 supports IA64
17368 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17369 shlibpath_var=LD_LIBRARY_PATH
17371 # With GCC up to 2.95.x, collect2 would create an import file
17372 # for dependence libraries. The import file would start with
17373 # the line `#! .'. This would cause the generated library to
17374 # depend on `.', always an invalid library. This was fixed in
17375 # development snapshots of GCC prior to 3.0.
17377 aix4 | aix4.[01] | aix4.[01].*)
17378 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17380 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17383 can_build_shared=no
17387 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17388 # soname into executable. Probably we can add versioning support to
17389 # collect2, so additional links can be useful in future.
17390 if test "$aix_use_runtimelinking" = yes; then
17391 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17392 # instead of lib<name>.a to let people know that these are not
17393 # typical AIX shared libraries.
17394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17396 # We preserve .a as extension for shared libraries through AIX4.2
17397 # and later when we are not doing run time linking.
17398 library_names_spec='${libname}${release}.a $libname.a'
17399 soname_spec='${libname}${release}${shared_ext}$major'
17401 shlibpath_var=LIBPATH
17408 # Since July 2007 AmigaOS4 officially supports .so libraries.
17409 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17413 library_names_spec='$libname.ixlibrary $libname.a'
17414 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17415 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'
17421 library_names_spec='${libname}${shared_ext}'
17422 dynamic_linker="$host_os ld.so"
17423 shlibpath_var=LIBRARY_PATH
17427 version_type=linux # correct to gnu/linux during the next big refactor
17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17430 soname_spec='${libname}${release}${shared_ext}$major'
17431 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17432 shlibpath_var=LD_LIBRARY_PATH
17433 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17434 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17435 # the default ld.so.conf also contains /usr/contrib/lib and
17436 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17437 # libtool to hard-code these into programs
17440 cygwin* | mingw* | pw32* | cegcc*)
17441 version_type=windows
17446 case $GCC,$cc_basename in
17449 library_names_spec='$libname.dll.a'
17450 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17451 postinstall_cmds='base_file=`basename \${file}`~
17452 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17453 dldir=$destdir/`dirname \$dlpath`~
17454 test -d \$dldir || mkdir -p \$dldir~
17455 $install_prog $dir/$dlname \$dldir/$dlname~
17456 chmod a+x \$dldir/$dlname~
17457 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17458 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17460 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17461 dlpath=$dir/\$dldll~
17463 shlibpath_overrides_runpath=yes
17467 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17468 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17470 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17473 # MinGW DLLs use traditional 'lib' prefix
17474 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17477 # pw32 DLLs use 'pw' prefix rather than 'lib'
17478 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17481 dynamic_linker='Win32 ld.exe'
17486 libname_spec='$name'
17487 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17488 library_names_spec='${libname}.dll.lib'
17492 sys_lib_search_path_spec=
17495 for lt_path in $LIB
17498 # Let DOS variable expansion print the short 8.3 style file name.
17499 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17500 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17503 # Convert to MSYS style.
17504 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17507 # Convert to unix form, then to dos form, then back to unix form
17508 # but this time dos style (no spaces!) so that the unix form looks
17509 # like /cygdrive/c/PROGRA~1:/cygdr...
17510 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17511 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17512 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17515 sys_lib_search_path_spec="$LIB"
17516 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17517 # It is most probably a Windows format PATH.
17518 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17520 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17522 # FIXME: find the short name or the path components, as spaces are
17523 # common. (e.g. "Program Files" -> "PROGRA~1")
17527 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17528 postinstall_cmds='base_file=`basename \${file}`~
17529 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17530 dldir=$destdir/`dirname \$dlpath`~
17531 test -d \$dldir || mkdir -p \$dldir~
17532 $install_prog $dir/$dlname \$dldir/$dlname'
17533 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17534 dlpath=$dir/\$dldll~
17536 shlibpath_overrides_runpath=yes
17537 dynamic_linker='Win32 link.exe'
17541 # Assume MSVC wrapper
17542 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17543 dynamic_linker='Win32 ld.exe'
17546 # FIXME: first we should search . and the directory the executable is in
17550 darwin* | rhapsody*)
17551 dynamic_linker="$host_os dyld"
17552 version_type=darwin
17555 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17556 soname_spec='${libname}${release}${major}$shared_ext'
17557 shlibpath_overrides_runpath=yes
17558 shlibpath_var=DYLD_LIBRARY_PATH
17559 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17561 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17562 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17566 version_type=linux # correct to gnu/linux during the next big refactor
17569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17570 soname_spec='${libname}${release}${shared_ext}$major'
17571 shlibpath_var=LD_LIBRARY_PATH
17574 freebsd* | dragonfly*)
17575 # DragonFly does not have aout. When/if they implement a new
17576 # versioning mechanism, adjust this.
17577 if test -x /usr/bin/objformat; then
17578 objformat=`/usr/bin/objformat`
17581 freebsd[23].*) objformat=aout ;;
17582 *) objformat=elf ;;
17585 version_type=freebsd-$objformat
17586 case $version_type in
17588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17593 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17597 shlibpath_var=LD_LIBRARY_PATH
17600 shlibpath_overrides_runpath=yes
17602 freebsd3.[01]* | freebsdelf3.[01]*)
17603 shlibpath_overrides_runpath=yes
17604 hardcode_into_libs=yes
17606 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17607 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17608 shlibpath_overrides_runpath=no
17609 hardcode_into_libs=yes
17611 *) # from 4.6 on, and DragonFly
17612 shlibpath_overrides_runpath=yes
17613 hardcode_into_libs=yes
17619 version_type=linux # correct to gnu/linux during the next big refactor
17622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17623 soname_spec='${libname}${release}${shared_ext}$major'
17624 shlibpath_var=LD_LIBRARY_PATH
17625 shlibpath_overrides_runpath=no
17626 hardcode_into_libs=yes
17630 version_type=linux # correct to gnu/linux during the next big refactor
17633 dynamic_linker="$host_os runtime_loader"
17634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17635 soname_spec='${libname}${release}${shared_ext}$major'
17636 shlibpath_var=LIBRARY_PATH
17637 shlibpath_overrides_runpath=yes
17638 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17639 hardcode_into_libs=yes
17642 hpux9* | hpux10* | hpux11*)
17643 # Give a soname corresponding to the major version so that dld.sl refuses to
17644 # link against other versions.
17651 hardcode_into_libs=yes
17652 dynamic_linker="$host_os dld.so"
17653 shlibpath_var=LD_LIBRARY_PATH
17654 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17656 soname_spec='${libname}${release}${shared_ext}$major'
17657 if test "X$HPUX_IA64_MODE" = X32; then
17658 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17660 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17662 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17666 hardcode_into_libs=yes
17667 dynamic_linker="$host_os dld.sl"
17668 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17669 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17671 soname_spec='${libname}${release}${shared_ext}$major'
17672 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17673 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17677 dynamic_linker="$host_os dld.sl"
17678 shlibpath_var=SHLIB_PATH
17679 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17681 soname_spec='${libname}${release}${shared_ext}$major'
17684 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17685 postinstall_cmds='chmod 555 $lib'
17686 # or fails outright, so override atomically:
17687 install_override_mode=555
17691 version_type=linux # correct to gnu/linux during the next big refactor
17694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17695 soname_spec='${libname}${release}${shared_ext}$major'
17696 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17697 shlibpath_var=LD_LIBRARY_PATH
17698 shlibpath_overrides_runpath=no
17699 hardcode_into_libs=yes
17702 irix5* | irix6* | nonstopux*)
17704 nonstopux*) version_type=nonstopux ;;
17706 if test "$lt_cv_prog_gnu_ld" = yes; then
17707 version_type=linux # correct to gnu/linux during the next big refactor
17714 soname_spec='${libname}${release}${shared_ext}$major'
17715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17717 irix5* | nonstopux*)
17718 libsuff= shlibsuff=
17721 case $LD in # libtool.m4 will add one of these switches to LD
17722 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17723 libsuff= shlibsuff= libmagic=32-bit;;
17724 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17725 libsuff=32 shlibsuff=N32 libmagic=N32;;
17726 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17727 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17728 *) libsuff= shlibsuff= libmagic=never-match;;
17732 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17733 shlibpath_overrides_runpath=no
17734 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17735 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17736 hardcode_into_libs=yes
17739 # No shared lib support for Linux oldld, aout, or coff.
17740 linux*oldld* | linux*aout* | linux*coff*)
17744 # This must be glibc/ELF.
17745 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17746 version_type=linux # correct to gnu/linux during the next big refactor
17749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17750 soname_spec='${libname}${release}${shared_ext}$major'
17751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17752 shlibpath_var=LD_LIBRARY_PATH
17753 shlibpath_overrides_runpath=no
17755 # Some binutils ld are patched to set DT_RUNPATH
17756 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17757 $as_echo_n "(cached) " >&6
17759 lt_cv_shlibpath_overrides_runpath=no
17760 save_LDFLAGS=$LDFLAGS
17761 save_libdir=$libdir
17762 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17763 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17765 /* end confdefs.h. */
17775 if ac_fn_c_try_link "$LINENO"; then :
17776 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17777 lt_cv_shlibpath_overrides_runpath=yes
17780 rm -f core conftest.err conftest.$ac_objext \
17781 conftest$ac_exeext conftest.$ac_ext
17782 LDFLAGS=$save_LDFLAGS
17783 libdir=$save_libdir
17787 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17789 # This implies no fast_install, which is unacceptable.
17790 # Some rework will be needed to allow for fast_install
17791 # before this can be enabled.
17792 hardcode_into_libs=yes
17794 # Append ld.so.conf contents to the search path
17795 if test -f /etc/ld.so.conf; then
17796 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' ' '`
17797 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17800 # We used to test for /lib/ld.so.1 and disable shared libraries on
17801 # powerpc, because MkLinux only supported shared libraries with the
17802 # GNU dynamic linker. Since this was broken with cross compilers,
17803 # most powerpc-linux boxes support dynamic linking these days and
17804 # people can always --disable-shared, the test was removed, and we
17805 # assume the GNU/Linux dynamic linker is in use.
17806 dynamic_linker='GNU/Linux ld.so'
17813 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17816 dynamic_linker='NetBSD (a.out) ld.so'
17818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17819 soname_spec='${libname}${release}${shared_ext}$major'
17820 dynamic_linker='NetBSD ld.elf_so'
17822 shlibpath_var=LD_LIBRARY_PATH
17823 shlibpath_overrides_runpath=yes
17824 hardcode_into_libs=yes
17828 version_type=linux # correct to gnu/linux during the next big refactor
17829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17830 shlibpath_var=LD_LIBRARY_PATH
17831 shlibpath_overrides_runpath=yes
17838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17839 soname_spec='${libname}${release}${shared_ext}$major'
17840 shlibpath_var=LD_LIBRARY_PATH
17841 shlibpath_overrides_runpath=no
17842 hardcode_into_libs=yes
17843 dynamic_linker='ldqnx.so'
17848 sys_lib_dlsearch_path_spec="/usr/lib"
17850 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17852 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17853 *) need_version=no ;;
17855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17857 shlibpath_var=LD_LIBRARY_PATH
17858 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17860 openbsd2.[89] | openbsd2.[89].*)
17861 shlibpath_overrides_runpath=no
17864 shlibpath_overrides_runpath=yes
17868 shlibpath_overrides_runpath=yes
17873 libname_spec='$name'
17876 library_names_spec='$libname${shared_ext} $libname.a'
17877 dynamic_linker='OS/2 ld.exe'
17878 shlibpath_var=LIBPATH
17881 osf3* | osf4* | osf5*)
17885 soname_spec='${libname}${release}${shared_ext}$major'
17886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17887 shlibpath_var=LD_LIBRARY_PATH
17888 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17889 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17897 version_type=linux # correct to gnu/linux during the next big refactor
17900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17901 soname_spec='${libname}${release}${shared_ext}$major'
17902 shlibpath_var=LD_LIBRARY_PATH
17903 shlibpath_overrides_runpath=yes
17904 hardcode_into_libs=yes
17905 # ldd complains unless libraries are executable
17906 postinstall_cmds='chmod +x $lib'
17911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17912 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17913 shlibpath_var=LD_LIBRARY_PATH
17914 shlibpath_overrides_runpath=yes
17915 if test "$with_gnu_ld" = yes; then
17922 version_type=linux # correct to gnu/linux during the next big refactor
17923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17924 soname_spec='${libname}${release}${shared_ext}$major'
17925 shlibpath_var=LD_LIBRARY_PATH
17926 case $host_vendor in
17928 shlibpath_overrides_runpath=no
17930 runpath_var=LD_RUN_PATH
17938 shlibpath_overrides_runpath=no
17939 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17945 if test -d /usr/nec ;then
17946 version_type=linux # correct to gnu/linux during the next big refactor
17947 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17948 soname_spec='$libname${shared_ext}.$major'
17949 shlibpath_var=LD_LIBRARY_PATH
17953 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17954 version_type=freebsd-elf
17957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17958 soname_spec='${libname}${release}${shared_ext}$major'
17959 shlibpath_var=LD_LIBRARY_PATH
17960 shlibpath_overrides_runpath=yes
17961 hardcode_into_libs=yes
17962 if test "$with_gnu_ld" = yes; then
17963 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17965 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17968 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17972 sys_lib_dlsearch_path_spec='/usr/lib'
17976 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17977 version_type=linux # correct to gnu/linux during the next big refactor
17980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17981 shlibpath_var=LD_LIBRARY_PATH
17982 shlibpath_overrides_runpath=no
17983 hardcode_into_libs=yes
17987 version_type=linux # correct to gnu/linux during the next big refactor
17988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17989 soname_spec='${libname}${release}${shared_ext}$major'
17990 shlibpath_var=LD_LIBRARY_PATH
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17998 $as_echo "$dynamic_linker" >&6; }
17999 test "$dynamic_linker" = no && can_build_shared=no
18001 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18002 if test "$GCC" = yes; then
18003 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18006 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18007 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18009 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18010 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18105 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18107 if test -n "$hardcode_libdir_flag_spec" ||
18108 test -n "$runpath_var" ||
18109 test "X$hardcode_automatic" = "Xyes" ; then
18111 # We can hardcode non-existent directories.
18112 if test "$hardcode_direct" != no &&
18113 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18114 # have to relink, otherwise we might link with an installed library
18115 # when we should be linking with a yet-to-be-installed one
18116 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18117 test "$hardcode_minus_L" != no; then
18118 # Linking always hardcodes the temporary library directory.
18119 hardcode_action=relink
18121 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18122 hardcode_action=immediate
18125 # We cannot hardcode anything, or else we can only hardcode existing
18127 hardcode_action=unsupported
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18130 $as_echo "$hardcode_action" >&6; }
18132 if test "$hardcode_action" = relink ||
18133 test "$inherit_rpath" = yes; then
18134 # Fast installation is not supported
18135 enable_fast_install=no
18136 elif test "$shlibpath_overrides_runpath" = yes ||
18137 test "$enable_shared" = no; then
18138 # Fast installation is not necessary
18139 enable_fast_install=needless
18147 if test "x$enable_dlopen" != xyes; then
18148 enable_dlopen=unknown
18149 enable_dlopen_self=unknown
18150 enable_dlopen_self_static=unknown
18157 lt_cv_dlopen="load_add_on"
18159 lt_cv_dlopen_self=yes
18162 mingw* | pw32* | cegcc*)
18163 lt_cv_dlopen="LoadLibrary"
18168 lt_cv_dlopen="dlopen"
18173 # if libdl is installed we need to link against it
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18175 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18176 if ${ac_cv_lib_dl_dlopen+:} false; then :
18177 $as_echo_n "(cached) " >&6
18179 ac_check_lib_save_LIBS=$LIBS
18181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18182 /* end confdefs.h. */
18184 /* Override any GCC internal prototype to avoid an error.
18185 Use char because int might match the return type of a GCC
18186 builtin and then its argument prototype would still apply. */
18199 if ac_fn_c_try_link "$LINENO"; then :
18200 ac_cv_lib_dl_dlopen=yes
18202 ac_cv_lib_dl_dlopen=no
18204 rm -f core conftest.err conftest.$ac_objext \
18205 conftest$ac_exeext conftest.$ac_ext
18206 LIBS=$ac_check_lib_save_LIBS
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18209 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18210 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18211 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18214 lt_cv_dlopen="dyld"
18216 lt_cv_dlopen_self=yes
18223 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18224 if test "x$ac_cv_func_shl_load" = xyes; then :
18225 lt_cv_dlopen="shl_load"
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18228 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18229 if ${ac_cv_lib_dld_shl_load+:} false; then :
18230 $as_echo_n "(cached) " >&6
18232 ac_check_lib_save_LIBS=$LIBS
18234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18235 /* end confdefs.h. */
18237 /* Override any GCC internal prototype to avoid an error.
18238 Use char because int might match the return type of a GCC
18239 builtin and then its argument prototype would still apply. */
18247 return shl_load ();
18252 if ac_fn_c_try_link "$LINENO"; then :
18253 ac_cv_lib_dld_shl_load=yes
18255 ac_cv_lib_dld_shl_load=no
18257 rm -f core conftest.err conftest.$ac_objext \
18258 conftest$ac_exeext conftest.$ac_ext
18259 LIBS=$ac_check_lib_save_LIBS
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18262 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18263 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18264 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18266 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18267 if test "x$ac_cv_func_dlopen" = xyes; then :
18268 lt_cv_dlopen="dlopen"
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18271 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18272 if ${ac_cv_lib_dl_dlopen+:} false; then :
18273 $as_echo_n "(cached) " >&6
18275 ac_check_lib_save_LIBS=$LIBS
18277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18278 /* end confdefs.h. */
18280 /* Override any GCC internal prototype to avoid an error.
18281 Use char because int might match the return type of a GCC
18282 builtin and then its argument prototype would still apply. */
18295 if ac_fn_c_try_link "$LINENO"; then :
18296 ac_cv_lib_dl_dlopen=yes
18298 ac_cv_lib_dl_dlopen=no
18300 rm -f core conftest.err conftest.$ac_objext \
18301 conftest$ac_exeext conftest.$ac_ext
18302 LIBS=$ac_check_lib_save_LIBS
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18305 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18306 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18307 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18310 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18311 if ${ac_cv_lib_svld_dlopen+:} false; then :
18312 $as_echo_n "(cached) " >&6
18314 ac_check_lib_save_LIBS=$LIBS
18315 LIBS="-lsvld $LIBS"
18316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18317 /* end confdefs.h. */
18319 /* Override any GCC internal prototype to avoid an error.
18320 Use char because int might match the return type of a GCC
18321 builtin and then its argument prototype would still apply. */
18334 if ac_fn_c_try_link "$LINENO"; then :
18335 ac_cv_lib_svld_dlopen=yes
18337 ac_cv_lib_svld_dlopen=no
18339 rm -f core conftest.err conftest.$ac_objext \
18340 conftest$ac_exeext conftest.$ac_ext
18341 LIBS=$ac_check_lib_save_LIBS
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18344 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18345 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18346 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18349 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18350 if ${ac_cv_lib_dld_dld_link+:} false; then :
18351 $as_echo_n "(cached) " >&6
18353 ac_check_lib_save_LIBS=$LIBS
18355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18356 /* end confdefs.h. */
18358 /* Override any GCC internal prototype to avoid an error.
18359 Use char because int might match the return type of a GCC
18360 builtin and then its argument prototype would still apply. */
18368 return dld_link ();
18373 if ac_fn_c_try_link "$LINENO"; then :
18374 ac_cv_lib_dld_dld_link=yes
18376 ac_cv_lib_dld_dld_link=no
18378 rm -f core conftest.err conftest.$ac_objext \
18379 conftest$ac_exeext conftest.$ac_ext
18380 LIBS=$ac_check_lib_save_LIBS
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18383 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18384 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18385 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18406 if test "x$lt_cv_dlopen" != xno; then
18412 case $lt_cv_dlopen in
18414 save_CPPFLAGS="$CPPFLAGS"
18415 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18417 save_LDFLAGS="$LDFLAGS"
18418 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18421 LIBS="$lt_cv_dlopen_libs $LIBS"
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18424 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18425 if ${lt_cv_dlopen_self+:} false; then :
18426 $as_echo_n "(cached) " >&6
18428 if test "$cross_compiling" = yes; then :
18429 lt_cv_dlopen_self=cross
18431 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18432 lt_status=$lt_dlunknown
18433 cat > conftest.$ac_ext <<_LT_EOF
18434 #line $LINENO "configure"
18435 #include "confdefs.h"
18444 # define LT_DLGLOBAL RTLD_GLOBAL
18447 # define LT_DLGLOBAL DL_GLOBAL
18449 # define LT_DLGLOBAL 0
18453 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18454 find out it does not work in some platform. */
18455 #ifndef LT_DLLAZY_OR_NOW
18457 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18460 # define LT_DLLAZY_OR_NOW DL_LAZY
18463 # define LT_DLLAZY_OR_NOW RTLD_NOW
18466 # define LT_DLLAZY_OR_NOW DL_NOW
18468 # define LT_DLLAZY_OR_NOW 0
18475 /* When -fvisbility=hidden is used, assume the code has been annotated
18476 correspondingly for the symbols needed. */
18477 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18478 int fnord () __attribute__((visibility("default")));
18481 int fnord () { return 42; }
18484 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18485 int status = $lt_dlunknown;
18489 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18492 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18493 else puts (dlerror ());
18495 /* dlclose (self); */
18503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18504 (eval $ac_link) 2>&5
18506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18507 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18508 (./conftest; exit; ) >&5 2>/dev/null
18510 case x$lt_status in
18511 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18512 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18513 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18516 # compilation failed
18517 lt_cv_dlopen_self=no
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18525 $as_echo "$lt_cv_dlopen_self" >&6; }
18527 if test "x$lt_cv_dlopen_self" = xyes; then
18528 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18530 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18531 if ${lt_cv_dlopen_self_static+:} false; then :
18532 $as_echo_n "(cached) " >&6
18534 if test "$cross_compiling" = yes; then :
18535 lt_cv_dlopen_self_static=cross
18537 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18538 lt_status=$lt_dlunknown
18539 cat > conftest.$ac_ext <<_LT_EOF
18540 #line $LINENO "configure"
18541 #include "confdefs.h"
18550 # define LT_DLGLOBAL RTLD_GLOBAL
18553 # define LT_DLGLOBAL DL_GLOBAL
18555 # define LT_DLGLOBAL 0
18559 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18560 find out it does not work in some platform. */
18561 #ifndef LT_DLLAZY_OR_NOW
18563 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18566 # define LT_DLLAZY_OR_NOW DL_LAZY
18569 # define LT_DLLAZY_OR_NOW RTLD_NOW
18572 # define LT_DLLAZY_OR_NOW DL_NOW
18574 # define LT_DLLAZY_OR_NOW 0
18581 /* When -fvisbility=hidden is used, assume the code has been annotated
18582 correspondingly for the symbols needed. */
18583 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18584 int fnord () __attribute__((visibility("default")));
18587 int fnord () { return 42; }
18590 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18591 int status = $lt_dlunknown;
18595 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18598 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18599 else puts (dlerror ());
18601 /* dlclose (self); */
18609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18610 (eval $ac_link) 2>&5
18612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18613 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18614 (./conftest; exit; ) >&5 2>/dev/null
18616 case x$lt_status in
18617 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18618 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18619 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18622 # compilation failed
18623 lt_cv_dlopen_self_static=no
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18631 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18634 CPPFLAGS="$save_CPPFLAGS"
18635 LDFLAGS="$save_LDFLAGS"
18640 case $lt_cv_dlopen_self in
18641 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18642 *) enable_dlopen_self=unknown ;;
18645 case $lt_cv_dlopen_self_static in
18646 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18647 *) enable_dlopen_self_static=unknown ;;
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18670 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18671 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18672 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18673 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18675 $as_echo "yes" >&6; }
18677 # FIXME - insert some real tests, host_os isn't really good enough
18680 if test -n "$STRIP" ; then
18681 striplib="$STRIP -x"
18682 old_striplib="$STRIP -S"
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18684 $as_echo "yes" >&6; }
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18687 $as_echo "no" >&6; }
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18692 $as_echo "no" >&6; }
18708 # Report which library types will actually be built
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18710 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18712 $as_echo "$can_build_shared" >&6; }
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18715 $as_echo_n "checking whether to build shared libraries... " >&6; }
18716 test "$can_build_shared" = "no" && enable_shared=no
18718 # On AIX, shared libraries and static libraries use the same namespace, and
18719 # are all built from PIC.
18722 test "$enable_shared" = yes && enable_static=no
18723 if test -n "$RANLIB"; then
18724 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18725 postinstall_cmds='$RANLIB $lib'
18730 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18731 test "$enable_shared" = yes && enable_static=no
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18736 $as_echo "$enable_shared" >&6; }
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18739 $as_echo_n "checking whether to build static libraries... " >&6; }
18740 # Make sure either enable_shared or enable_static is yes.
18741 test "$enable_shared" = yes || enable_static=yes
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18743 $as_echo "$enable_static" >&6; }
18750 ac_cpp='$CPP $CPPFLAGS'
18751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18757 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18758 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18759 (test "X$CXX" != "Xg++"))) ; then
18761 ac_cpp='$CXXCPP $CPPFLAGS'
18762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18766 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18767 if test -z "$CXXCPP"; then
18768 if ${ac_cv_prog_CXXCPP+:} false; then :
18769 $as_echo_n "(cached) " >&6
18771 # Double quotes because CXXCPP needs to be expanded
18772 for CXXCPP in "$CXX -E" "/lib/cpp"
18774 ac_preproc_ok=false
18775 for ac_cxx_preproc_warn_flag in '' yes
18777 # Use a header file that comes with gcc, so configuring glibc
18778 # with a fresh cross-compiler works.
18779 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18780 # <limits.h> exists even on freestanding compilers.
18781 # On the NeXT, cc -E runs the code through the compiler's parser,
18782 # not just through cpp. "Syntax error" is here to catch this case.
18783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18784 /* end confdefs.h. */
18786 # include <limits.h>
18788 # include <assert.h>
18792 if ac_fn_cxx_try_cpp "$LINENO"; then :
18795 # Broken: fails on valid input.
18798 rm -f conftest.err conftest.i conftest.$ac_ext
18800 # OK, works on sane cases. Now check whether nonexistent headers
18801 # can be detected and how.
18802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18803 /* end confdefs.h. */
18804 #include <ac_nonexistent.h>
18806 if ac_fn_cxx_try_cpp "$LINENO"; then :
18807 # Broken: success on invalid input.
18810 # Passes both tests.
18814 rm -f conftest.err conftest.i conftest.$ac_ext
18817 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18818 rm -f conftest.i conftest.err conftest.$ac_ext
18819 if $ac_preproc_ok; then :
18824 ac_cv_prog_CXXCPP=$CXXCPP
18827 CXXCPP=$ac_cv_prog_CXXCPP
18829 ac_cv_prog_CXXCPP=$CXXCPP
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18832 $as_echo "$CXXCPP" >&6; }
18833 ac_preproc_ok=false
18834 for ac_cxx_preproc_warn_flag in '' yes
18836 # Use a header file that comes with gcc, so configuring glibc
18837 # with a fresh cross-compiler works.
18838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18839 # <limits.h> exists even on freestanding compilers.
18840 # On the NeXT, cc -E runs the code through the compiler's parser,
18841 # not just through cpp. "Syntax error" is here to catch this case.
18842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18843 /* end confdefs.h. */
18845 # include <limits.h>
18847 # include <assert.h>
18851 if ac_fn_cxx_try_cpp "$LINENO"; then :
18854 # Broken: fails on valid input.
18857 rm -f conftest.err conftest.i conftest.$ac_ext
18859 # OK, works on sane cases. Now check whether nonexistent headers
18860 # can be detected and how.
18861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18862 /* end confdefs.h. */
18863 #include <ac_nonexistent.h>
18865 if ac_fn_cxx_try_cpp "$LINENO"; then :
18866 # Broken: success on invalid input.
18869 # Passes both tests.
18873 rm -f conftest.err conftest.i conftest.$ac_ext
18876 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18877 rm -f conftest.i conftest.err conftest.$ac_ext
18878 if $ac_preproc_ok; then :
18881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18883 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18884 See \`config.log' for more details" "$LINENO" 5; }
18888 ac_cpp='$CPP $CPPFLAGS'
18889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18894 _lt_caught_CXX_error=yes
18898 ac_cpp='$CXXCPP $CPPFLAGS'
18899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18903 archive_cmds_need_lc_CXX=no
18904 allow_undefined_flag_CXX=
18905 always_export_symbols_CXX=no
18906 archive_expsym_cmds_CXX=
18907 compiler_needs_object_CXX=no
18908 export_dynamic_flag_spec_CXX=
18909 hardcode_direct_CXX=no
18910 hardcode_direct_absolute_CXX=no
18911 hardcode_libdir_flag_spec_CXX=
18912 hardcode_libdir_separator_CXX=
18913 hardcode_minus_L_CXX=no
18914 hardcode_shlibpath_var_CXX=unsupported
18915 hardcode_automatic_CXX=no
18916 inherit_rpath_CXX=no
18918 module_expsym_cmds_CXX=
18919 link_all_deplibs_CXX=unknown
18920 old_archive_cmds_CXX=$old_archive_cmds
18921 reload_flag_CXX=$reload_flag
18922 reload_cmds_CXX=$reload_cmds
18923 no_undefined_flag_CXX=
18924 whole_archive_flag_spec_CXX=
18925 enable_shared_with_static_runtimes_CXX=no
18927 # Source file extension for C++ test sources.
18930 # Object file extension for compiled C++ test sources.
18934 # No sense in running all these tests if we already determined that
18935 # the CXX compiler isn't working. Some variables (like enable_shared)
18936 # are currently assumed to apply to all compilers on this platform,
18937 # and will be corrupted by setting them based on a non-working compiler.
18938 if test "$_lt_caught_CXX_error" != yes; then
18939 # Code to be used in simple compile tests
18940 lt_simple_compile_test_code="int some_variable = 0;"
18942 # Code to be used in simple link tests
18943 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18945 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18952 # If no C compiler was specified, use CC.
18955 # If no C compiler flags were specified, use CFLAGS.
18956 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18958 # Allow CC to be a program name with arguments.
18962 # save warnings/boilerplate of simple test code
18963 ac_outfile=conftest.$ac_objext
18964 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18965 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18966 _lt_compiler_boilerplate=`cat conftest.err`
18969 ac_outfile=conftest.$ac_objext
18970 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18971 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18972 _lt_linker_boilerplate=`cat conftest.err`
18976 # Allow CC to be a program name with arguments.
18978 lt_save_CFLAGS=$CFLAGS
18982 lt_save_with_gnu_ld=$with_gnu_ld
18983 lt_save_path_LD=$lt_cv_path_LD
18984 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18985 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18987 $as_unset lt_cv_prog_gnu_ld
18989 if test -n "${lt_cv_path_LDCXX+set}"; then
18990 lt_cv_path_LD=$lt_cv_path_LDCXX
18992 $as_unset lt_cv_path_LD
18994 test -z "${LDCXX+set}" || LD=$LDCXX
18999 for cc_temp in $compiler""; do
19001 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19002 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19007 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19010 if test -n "$compiler"; then
19011 # We don't want -fno-exception when compiling C++ code, so set the
19012 # no_builtin_flag separately
19013 if test "$GXX" = yes; then
19014 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19016 lt_prog_compiler_no_builtin_flag_CXX=
19019 if test "$GXX" = yes; then
19020 # Set up default GNU C++ configuration
19024 # Check whether --with-gnu-ld was given.
19025 if test "${with_gnu_ld+set}" = set; then :
19026 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19032 if test "$GCC" = yes; then
19033 # Check if gcc -print-prog-name=ld gives a path.
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19035 $as_echo_n "checking for ld used by $CC... " >&6; }
19038 # gcc leaves a trailing carriage return which upsets mingw
19039 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19041 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19044 # Accept absolute paths.
19046 re_direlt='/[^/][^/]*/\.\./'
19047 # Canonicalize the pathname of ld
19048 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19049 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19050 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19052 test -z "$LD" && LD="$ac_prog"
19055 # If it fails, then pretend we aren't using GCC.
19059 # If it is relative, then search for the first ld in PATH.
19060 with_gnu_ld=unknown
19063 elif test "$with_gnu_ld" = yes; then
19064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19065 $as_echo_n "checking for GNU ld... " >&6; }
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19068 $as_echo_n "checking for non-GNU ld... " >&6; }
19070 if ${lt_cv_path_LD+:} false; then :
19071 $as_echo_n "(cached) " >&6
19073 if test -z "$LD"; then
19074 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19075 for ac_dir in $PATH; do
19077 test -z "$ac_dir" && ac_dir=.
19078 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19079 lt_cv_path_LD="$ac_dir/$ac_prog"
19080 # Check to see if the program is GNU ld. I'd rather use --version,
19081 # but apparently some variants of GNU ld only accept -v.
19082 # Break only if it was the GNU/non-GNU ld that we prefer.
19083 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19084 *GNU* | *'with BFD'*)
19085 test "$with_gnu_ld" != no && break
19088 test "$with_gnu_ld" != yes && break
19095 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19099 LD="$lt_cv_path_LD"
19100 if test -n "$LD"; then
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19102 $as_echo "$LD" >&6; }
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19105 $as_echo "no" >&6; }
19107 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19109 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19110 if ${lt_cv_prog_gnu_ld+:} false; then :
19111 $as_echo_n "(cached) " >&6
19113 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19114 case `$LD -v 2>&1 </dev/null` in
19115 *GNU* | *'with BFD'*)
19116 lt_cv_prog_gnu_ld=yes
19119 lt_cv_prog_gnu_ld=no
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19124 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19125 with_gnu_ld=$lt_cv_prog_gnu_ld
19133 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19134 # archiving commands below assume that GNU ld is being used.
19135 if test "$with_gnu_ld" = yes; then
19136 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19137 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19139 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19140 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19142 # If archive_cmds runs LD, not CC, wlarc should be empty
19143 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19144 # investigate it a little bit more. (MM)
19147 # ancient GNU ld didn't support --whole-archive et. al.
19148 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19149 $GREP 'no-whole-archive' > /dev/null; then
19150 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19152 whole_archive_flag_spec_CXX=
19158 # A generic and very simple default shared library creation
19159 # command for GNU C++ for the case where it uses the native
19160 # linker, instead of GNU ld. If possible, this setting should
19161 # overridden to take advantage of the native linker features on
19162 # the platform it is being used on.
19163 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19166 # Commands to make compiler produce verbose output that lists
19167 # what "hidden" libraries, object files and flags are used when
19168 # linking a shared library.
19169 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19177 # PORTME: fill in a description of your system's C++ link characteristics
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19179 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19183 # FIXME: insert proper C++ library support
19187 if test "$host_cpu" = ia64; then
19188 # On IA64, the linker does run time linking by default, so we don't
19189 # have to do anything special.
19190 aix_use_runtimelinking=no
19191 exp_sym_flag='-Bexport'
19194 aix_use_runtimelinking=no
19196 # Test if we are trying to use run time linking or normal
19197 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19198 # need to do runtime linking.
19199 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19200 for ld_flag in $LDFLAGS; do
19203 aix_use_runtimelinking=yes
19211 exp_sym_flag='-bexport'
19212 no_entry_flag='-bnoentry'
19215 # When large executables or shared objects are built, AIX ld can
19216 # have problems creating the table of contents. If linking a library
19217 # or program results in "error TOC overflow" add -mminimal-toc to
19218 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19219 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19221 archive_cmds_CXX=''
19222 hardcode_direct_CXX=yes
19223 hardcode_direct_absolute_CXX=yes
19224 hardcode_libdir_separator_CXX=':'
19225 link_all_deplibs_CXX=yes
19226 file_list_spec_CXX='${wl}-f,'
19228 if test "$GXX" = yes; then
19229 case $host_os in aix4.[012]|aix4.[012].*)
19230 # We only want to do this on AIX 4.2 and lower, the check
19231 # below for broken collect2 doesn't work under 4.3+
19232 collect2name=`${CC} -print-prog-name=collect2`
19233 if test -f "$collect2name" &&
19234 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19236 # We have reworked collect2
19239 # We have old collect2
19240 hardcode_direct_CXX=unsupported
19241 # It fails to find uninstalled libraries when the uninstalled
19242 # path is not listed in the libpath. Setting hardcode_minus_L
19243 # to unsupported forces relinking
19244 hardcode_minus_L_CXX=yes
19245 hardcode_libdir_flag_spec_CXX='-L$libdir'
19246 hardcode_libdir_separator_CXX=
19249 shared_flag='-shared'
19250 if test "$aix_use_runtimelinking" = yes; then
19251 shared_flag="$shared_flag "'${wl}-G'
19255 if test "$host_cpu" = ia64; then
19256 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19257 # chokes on -Wl,-G. The following line is correct:
19260 if test "$aix_use_runtimelinking" = yes; then
19261 shared_flag='${wl}-G'
19263 shared_flag='${wl}-bM:SRE'
19268 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19269 # It seems that -bexpall does not export symbols beginning with
19270 # underscore (_), so it is better to generate a list of symbols to
19272 always_export_symbols_CXX=yes
19273 if test "$aix_use_runtimelinking" = yes; then
19274 # Warning - without using the other runtime loading flags (-brtl),
19275 # -berok will link without error, but may produce a broken library.
19276 allow_undefined_flag_CXX='-berok'
19277 # Determine the default libpath from the value encoded in an empty
19279 if test "${lt_cv_aix_libpath+set}" = set; then
19280 aix_libpath=$lt_cv_aix_libpath
19282 if ${lt_cv_aix_libpath__CXX+:} false; then :
19283 $as_echo_n "(cached) " >&6
19285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19286 /* end confdefs.h. */
19296 if ac_fn_cxx_try_link "$LINENO"; then :
19298 lt_aix_libpath_sed='
19299 /Import File Strings/,/^$/ {
19301 s/^0 *\([^ ]*\) *$/\1/
19305 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19306 # Check for a 64-bit object if we didn't find anything.
19307 if test -z "$lt_cv_aix_libpath__CXX"; then
19308 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19311 rm -f core conftest.err conftest.$ac_objext \
19312 conftest$ac_exeext conftest.$ac_ext
19313 if test -z "$lt_cv_aix_libpath__CXX"; then
19314 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
19319 aix_libpath=$lt_cv_aix_libpath__CXX
19322 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19324 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19326 if test "$host_cpu" = ia64; then
19327 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19328 allow_undefined_flag_CXX="-z nodefs"
19329 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
19331 # Determine the default libpath from the value encoded in an
19332 # empty executable.
19333 if test "${lt_cv_aix_libpath+set}" = set; then
19334 aix_libpath=$lt_cv_aix_libpath
19336 if ${lt_cv_aix_libpath__CXX+:} false; then :
19337 $as_echo_n "(cached) " >&6
19339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19340 /* end confdefs.h. */
19350 if ac_fn_cxx_try_link "$LINENO"; then :
19352 lt_aix_libpath_sed='
19353 /Import File Strings/,/^$/ {
19355 s/^0 *\([^ ]*\) *$/\1/
19359 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19360 # Check for a 64-bit object if we didn't find anything.
19361 if test -z "$lt_cv_aix_libpath__CXX"; then
19362 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19365 rm -f core conftest.err conftest.$ac_objext \
19366 conftest$ac_exeext conftest.$ac_ext
19367 if test -z "$lt_cv_aix_libpath__CXX"; then
19368 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
19373 aix_libpath=$lt_cv_aix_libpath__CXX
19376 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19377 # Warning - without using the other run time loading flags,
19378 # -berok will link without error, but may produce a broken library.
19379 no_undefined_flag_CXX=' ${wl}-bernotok'
19380 allow_undefined_flag_CXX=' ${wl}-berok'
19381 if test "$with_gnu_ld" = yes; then
19382 # We only use this code for GNU lds that support --whole-archive.
19383 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19385 # Exported symbols can be pulled into shared objects from archives
19386 whole_archive_flag_spec_CXX='$convenience'
19388 archive_cmds_need_lc_CXX=yes
19389 # This is similar to how AIX traditionally builds its shared
19391 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19397 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19398 allow_undefined_flag_CXX=unsupported
19399 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19400 # support --undefined. This deserves some investigation. FIXME
19401 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19408 case $cc_basename in
19410 # FIXME: insert proper C++ library support
19416 cygwin* | mingw* | pw32* | cegcc*)
19417 case $GXX,$cc_basename in
19420 # hardcode_libdir_flag_spec is actually meaningless, as there is
19421 # no search path for DLLs.
19422 hardcode_libdir_flag_spec_CXX=' '
19423 allow_undefined_flag_CXX=unsupported
19424 always_export_symbols_CXX=yes
19425 file_list_spec_CXX='@'
19426 # Tell ltmain to make .lib files, not .a files.
19428 # Tell ltmain to make .dll files, not .so files.
19430 # FIXME: Setting linknames here is a bad hack.
19431 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
19432 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19433 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
19435 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
19437 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19439 # The linker will not automatically build a static lib if we build a DLL.
19440 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
19441 enable_shared_with_static_runtimes_CXX=yes
19443 old_postinstall_cmds_CXX='chmod 644 $oldlib'
19444 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
19445 lt_tool_outputfile="@TOOL_OUTPUT@"~
19446 case $lt_outputfile in
19449 lt_outputfile="$lt_outputfile.exe"
19450 lt_tool_outputfile="$lt_tool_outputfile.exe"
19453 func_to_tool_file "$lt_outputfile"~
19454 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
19455 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19456 $RM "$lt_outputfile.manifest";
19461 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19462 # as there is no search path for DLLs.
19463 hardcode_libdir_flag_spec_CXX='-L$libdir'
19464 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19465 allow_undefined_flag_CXX=unsupported
19466 always_export_symbols_CXX=no
19467 enable_shared_with_static_runtimes_CXX=yes
19469 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19470 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19471 # If the export-symbols file already is a .def file (1st line
19472 # is EXPORTS), use it as is; otherwise, prepend...
19473 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19474 cp $export_symbols $output_objdir/$soname.def;
19476 echo EXPORTS > $output_objdir/$soname.def;
19477 cat $export_symbols >> $output_objdir/$soname.def;
19479 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19486 darwin* | rhapsody*)
19489 archive_cmds_need_lc_CXX=no
19490 hardcode_direct_CXX=no
19491 hardcode_automatic_CXX=yes
19492 hardcode_shlibpath_var_CXX=unsupported
19493 if test "$lt_cv_ld_force_load" = "yes"; then
19494 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
19497 whole_archive_flag_spec_CXX=''
19499 link_all_deplibs_CXX=yes
19500 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19501 case $cc_basename in
19502 ifort*) _lt_dar_can_shared=yes ;;
19503 *) _lt_dar_can_shared=$GCC ;;
19505 if test "$_lt_dar_can_shared" = "yes"; then
19506 output_verbose_link_cmd=func_echo_all
19507 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19508 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19509 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
19510 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
19511 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19512 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
19513 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
19523 case $cc_basename in
19525 # FIXME: insert proper C++ library support
19529 # Green Hills C++ Compiler
19530 # FIXME: insert proper C++ library support
19534 # FIXME: insert proper C++ library support
19541 # C++ shared libraries reported to be fairly broken before
19547 archive_cmds_need_lc_CXX=no
19550 freebsd* | dragonfly*)
19551 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19560 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19561 link_all_deplibs_CXX=yes
19565 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19566 hardcode_libdir_separator_CXX=:
19567 export_dynamic_flag_spec_CXX='${wl}-E'
19568 hardcode_direct_CXX=yes
19569 hardcode_minus_L_CXX=yes # Not in the search PATH,
19570 # but as the default
19571 # location of the library.
19573 case $cc_basename in
19575 # FIXME: insert proper C++ library support
19579 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19580 # Commands to make compiler produce verbose output that lists
19581 # what "hidden" libraries, object files and flags are used when
19582 # linking a shared library.
19584 # There doesn't appear to be a way to prevent this compiler from
19585 # explicitly linking system object files so we need to strip them
19586 # from the output so that they don't get included in the library
19588 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19591 if test "$GXX" = yes; then
19592 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19594 # FIXME: insert proper C++ library support
19602 if test $with_gnu_ld = no; then
19603 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19604 hardcode_libdir_separator_CXX=:
19610 export_dynamic_flag_spec_CXX='${wl}-E'
19616 hardcode_direct_CXX=no
19617 hardcode_shlibpath_var_CXX=no
19620 hardcode_direct_CXX=yes
19621 hardcode_direct_absolute_CXX=yes
19622 hardcode_minus_L_CXX=yes # Not in the search PATH,
19623 # but as the default
19624 # location of the library.
19628 case $cc_basename in
19630 # FIXME: insert proper C++ library support
19636 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19639 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19642 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19645 # Commands to make compiler produce verbose output that lists
19646 # what "hidden" libraries, object files and flags are used when
19647 # linking a shared library.
19649 # There doesn't appear to be a way to prevent this compiler from
19650 # explicitly linking system object files so we need to strip them
19651 # from the output so that they don't get included in the library
19653 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19656 if test "$GXX" = yes; then
19657 if test $with_gnu_ld = no; then
19660 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19663 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19666 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19671 # FIXME: insert proper C++ library support
19679 hardcode_direct_CXX=no
19680 hardcode_shlibpath_var_CXX=no
19681 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19682 export_dynamic_flag_spec_CXX='${wl}-E'
19683 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19684 # Instead, shared libraries are loaded at an image base (0x10000000 by
19685 # default) and relocated if they conflict, which is a slow very memory
19686 # consuming and fragmenting process. To avoid this, we pick a random,
19687 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19688 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19689 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19690 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19693 case $cc_basename in
19696 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19698 # Archives containing C++ object files must be created using
19699 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19700 # necessary to make sure instantiated templates are included
19702 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19705 if test "$GXX" = yes; then
19706 if test "$with_gnu_ld" = no; then
19707 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19709 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
19712 link_all_deplibs_CXX=yes
19715 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19716 hardcode_libdir_separator_CXX=:
19717 inherit_rpath_CXX=yes
19720 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19721 case $cc_basename in
19723 # Kuck and Associates, Inc. (KAI) C++ Compiler
19725 # KCC will only create a shared library if the output file
19726 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19727 # to its proper name (with version) after linking.
19728 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19729 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
19730 # Commands to make compiler produce verbose output that lists
19731 # what "hidden" libraries, object files and flags are used when
19732 # linking a shared library.
19734 # There doesn't appear to be a way to prevent this compiler from
19735 # explicitly linking system object files so we need to strip them
19736 # from the output so that they don't get included in the library
19738 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19740 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19741 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19743 # Archives containing C++ object files must be created using
19744 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19745 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19750 # version 8.0 and above of icpc choke on multiply defined symbols
19751 # if we add $predep_objects and $postdep_objects, however 7.1 and
19752 # earlier do not add the objects themselves.
19753 case `$CC -V 2>&1` in
19755 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19756 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19758 *) # Version 8.0 or newer
19761 ia64*) tmp_idyn=' -i_dynamic';;
19763 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19764 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19767 archive_cmds_need_lc_CXX=no
19768 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19769 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19770 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19773 # Portland Group C++ compiler
19775 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19776 prelink_cmds_CXX='tpldir=Template.dir~
19778 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19779 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19780 old_archive_cmds_CXX='tpldir=Template.dir~
19782 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19783 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19785 archive_cmds_CXX='tpldir=Template.dir~
19787 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19788 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19789 archive_expsym_cmds_CXX='tpldir=Template.dir~
19791 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19792 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19794 *) # Version 6 and above use weak symbols
19795 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19796 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19800 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19801 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19802 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19806 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19807 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
19809 runpath_var=LD_RUN_PATH
19810 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19811 hardcode_libdir_separator_CXX=:
19813 # Commands to make compiler produce verbose output that lists
19814 # what "hidden" libraries, object files and flags are used when
19815 # linking a shared library.
19817 # There doesn't appear to be a way to prevent this compiler from
19818 # explicitly linking system object files so we need to strip them
19819 # from the output so that they don't get included in the library
19821 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
19823 xl* | mpixl* | bgxl*)
19824 # IBM XL 8.0 on PPC, with GNU ld
19825 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19826 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19827 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19828 if test "x$supports_anon_versioning" = xyes; then
19829 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19830 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19831 echo "local: *; };" >> $output_objdir/$libname.ver~
19832 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19836 case `$CC -V 2>&1 | sed 5q` in
19839 no_undefined_flag_CXX=' -zdefs'
19840 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19841 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
19842 hardcode_libdir_flag_spec_CXX='-R$libdir'
19843 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19844 compiler_needs_object_CXX=yes
19846 # Not sure whether something based on
19847 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19849 output_verbose_link_cmd='func_echo_all'
19851 # Archives containing C++ object files must be created using
19852 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19853 # necessary to make sure instantiated templates are included
19855 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19863 # FIXME: insert proper C++ library support
19868 # FIXME: insert proper C++ library support
19873 case $cc_basename in
19875 # FIXME: insert proper C++ library support
19879 # FIXME: insert proper C++ library support
19886 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19887 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19889 hardcode_libdir_flag_spec_CXX='-R$libdir'
19890 hardcode_direct_CXX=yes
19891 hardcode_shlibpath_var_CXX=no
19893 # Workaround some broken pre-1.5 toolchains
19894 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19902 # C++ shared libraries are fairly broken
19907 if test -f /usr/libexec/ld.so; then
19908 hardcode_direct_CXX=yes
19909 hardcode_shlibpath_var_CXX=no
19910 hardcode_direct_absolute_CXX=yes
19911 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19912 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19913 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19914 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19915 export_dynamic_flag_spec_CXX='${wl}-E'
19916 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19918 output_verbose_link_cmd=func_echo_all
19924 osf3* | osf4* | osf5*)
19925 case $cc_basename in
19927 # Kuck and Associates, Inc. (KAI) C++ Compiler
19929 # KCC will only create a shared library if the output file
19930 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19931 # to its proper name (with version) after linking.
19932 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19934 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19935 hardcode_libdir_separator_CXX=:
19937 # Archives containing C++ object files must be created using
19938 # the KAI C++ compiler.
19940 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19941 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19945 # Rational C++ 2.4.1
19946 # FIXME: insert proper C++ library support
19952 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19953 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19954 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19957 allow_undefined_flag_CXX=' -expect_unresolved \*'
19958 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19959 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19960 echo "-hidden">> $lib.exp~
19961 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
19963 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19967 hardcode_libdir_separator_CXX=:
19969 # Commands to make compiler produce verbose output that lists
19970 # what "hidden" libraries, object files and flags are used when
19971 # linking a shared library.
19973 # There doesn't appear to be a way to prevent this compiler from
19974 # explicitly linking system object files so we need to strip them
19975 # from the output so that they don't get included in the library
19977 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19980 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19981 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19984 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19987 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19991 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19992 hardcode_libdir_separator_CXX=:
19994 # Commands to make compiler produce verbose output that lists
19995 # what "hidden" libraries, object files and flags are used when
19996 # linking a shared library.
19997 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20000 # FIXME: insert proper C++ library support
20008 # FIXME: insert proper C++ library support
20013 case $cc_basename in
20016 # FIXME: insert proper C++ library support
20021 # FIXME: insert proper C++ library support
20025 # FIXME: insert proper C++ library support
20032 case $cc_basename in
20034 # Sun C++ 4.2, 5.x and Centerline C++
20035 archive_cmds_need_lc_CXX=yes
20036 no_undefined_flag_CXX=' -zdefs'
20037 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20038 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20039 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20041 hardcode_libdir_flag_spec_CXX='-R$libdir'
20042 hardcode_shlibpath_var_CXX=no
20044 solaris2.[0-5] | solaris2.[0-5].*) ;;
20046 # The compiler driver will combine and reorder linker options,
20047 # but understands `-z linker_flag'.
20048 # Supported since Solaris 2.6 (maybe 2.5.1?)
20049 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20052 link_all_deplibs_CXX=yes
20054 output_verbose_link_cmd='func_echo_all'
20056 # Archives containing C++ object files must be created using
20057 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20058 # necessary to make sure instantiated templates are included
20060 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20063 # Green Hills C++ Compiler
20064 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20066 # The C++ compiler must be used to create the archive.
20067 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20070 # GNU C++ compiler with Solaris linker
20071 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20072 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20073 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20074 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20075 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20076 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20078 # Commands to make compiler produce verbose output that lists
20079 # what "hidden" libraries, object files and flags are used when
20080 # linking a shared library.
20081 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20083 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20085 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20086 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20087 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20089 # Commands to make compiler produce verbose output that lists
20090 # what "hidden" libraries, object files and flags are used when
20091 # linking a shared library.
20092 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20095 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20097 solaris2.[0-5] | solaris2.[0-5].*) ;;
20099 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20107 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20108 no_undefined_flag_CXX='${wl}-z,text'
20109 archive_cmds_need_lc_CXX=no
20110 hardcode_shlibpath_var_CXX=no
20111 runpath_var='LD_RUN_PATH'
20113 case $cc_basename in
20115 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20116 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20119 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20120 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20125 sysv5* | sco3.2v5* | sco5v6*)
20126 # Note: We can NOT use -z defs as we might desire, because we do not
20127 # link with -lc, and that would cause any symbols used from libc to
20128 # always be unresolved, which means just about no library would
20129 # ever link correctly. If we're not using GNU ld we use -z text
20130 # though, which does catch some bad symbols but isn't as heavy-handed
20132 no_undefined_flag_CXX='${wl}-z,text'
20133 allow_undefined_flag_CXX='${wl}-z,nodefs'
20134 archive_cmds_need_lc_CXX=no
20135 hardcode_shlibpath_var_CXX=no
20136 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20137 hardcode_libdir_separator_CXX=':'
20138 link_all_deplibs_CXX=yes
20139 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20140 runpath_var='LD_RUN_PATH'
20142 case $cc_basename in
20144 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20145 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20146 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20147 '"$old_archive_cmds_CXX"
20148 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20149 '"$reload_cmds_CXX"
20152 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20153 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20159 case $cc_basename in
20161 # NonStop-UX NCC 3.20
20162 # FIXME: insert proper C++ library support
20166 # FIXME: insert proper C++ library support
20173 # FIXME: insert proper C++ library support
20178 # FIXME: insert proper C++ library support
20183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20184 $as_echo "$ld_shlibs_CXX" >&6; }
20185 test "$ld_shlibs_CXX" = no && can_build_shared=no
20191 ## There is no encapsulation within the following macros, do not change
20192 ## the running order or otherwise move them around unless you know exactly
20193 ## what you are doing...
20194 # Dependencies to place before and after the object being linked:
20195 predep_objects_CXX=
20196 postdep_objects_CXX=
20199 compiler_lib_search_path_CXX=
20201 cat > conftest.$ac_ext <<_LT_EOF
20205 Foo (void) { a = 0; }
20212 _lt_libdeps_save_CFLAGS=$CFLAGS
20213 case "$CC $CFLAGS " in #(
20214 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
20215 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
20216 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
20219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20220 (eval $ac_compile) 2>&5
20222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20223 test $ac_status = 0; }; then
20224 # Parse the compiler output and extract the necessary
20225 # objects, libraries and library flags.
20227 # Sentinel used to keep track of whether or not we are before
20228 # the conftest object file.
20229 pre_test_object_deps_done=no
20231 for p in `eval "$output_verbose_link_cmd"`; do
20232 case ${prev}${p} in
20235 # Some compilers place space between "-{L,R}" and the path.
20236 # Remove the space.
20237 if test $p = "-L" ||
20238 test $p = "-R"; then
20243 # Expand the sysroot to ease extracting the directories later.
20244 if test -z "$prev"; then
20246 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
20247 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
20248 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
20252 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
20254 if test "$pre_test_object_deps_done" = no; then
20257 # Internal compiler library paths should come after those
20258 # provided the user. The postdeps already come after the
20259 # user supplied libs so there is no need to process them.
20260 if test -z "$compiler_lib_search_path_CXX"; then
20261 compiler_lib_search_path_CXX="${prev}${p}"
20263 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20266 # The "-l" case would never come before the object being
20267 # linked, so don't bother handling this case.
20270 if test -z "$postdeps_CXX"; then
20271 postdeps_CXX="${prev}${p}"
20273 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20279 *.lto.$objext) ;; # Ignore GCC LTO objects
20281 # This assumes that the test object file only shows up
20282 # once in the compiler output.
20283 if test "$p" = "conftest.$objext"; then
20284 pre_test_object_deps_done=yes
20288 if test "$pre_test_object_deps_done" = no; then
20289 if test -z "$predep_objects_CXX"; then
20290 predep_objects_CXX="$p"
20292 predep_objects_CXX="$predep_objects_CXX $p"
20295 if test -z "$postdep_objects_CXX"; then
20296 postdep_objects_CXX="$p"
20298 postdep_objects_CXX="$postdep_objects_CXX $p"
20303 *) ;; # Ignore the rest.
20311 echo "libtool.m4: error: problem compiling CXX test program"
20314 $RM -f confest.$objext
20315 CFLAGS=$_lt_libdeps_save_CFLAGS
20317 # PORTME: override above test on systems where it is broken
20320 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20321 # hack all around it, let's just trust "g++" to DTRT.
20322 predep_objects_CXX=
20323 postdep_objects_CXX=
20328 case `$CC -V 2>&1 | sed 5q` in
20332 # The more standards-conforming stlport4 library is
20333 # incompatible with the Cstd library. Avoid specifying
20334 # it if it's in CXXFLAGS. Ignore libCrun as
20335 # -library=stlport4 depends on it.
20336 case " $CXX $CXXFLAGS " in
20337 *" -library=stlport4 "*)
20338 solaris_use_stlport4=yes
20342 if test "$solaris_use_stlport4" != yes; then
20343 postdeps_CXX='-library=Cstd -library=Crun'
20350 case $cc_basename in
20352 # The more standards-conforming stlport4 library is
20353 # incompatible with the Cstd library. Avoid specifying
20354 # it if it's in CXXFLAGS. Ignore libCrun as
20355 # -library=stlport4 depends on it.
20356 case " $CXX $CXXFLAGS " in
20357 *" -library=stlport4 "*)
20358 solaris_use_stlport4=yes
20362 # Adding this requires a known-good setup of shared libraries for
20363 # Sun compiler versions before 5.6, else PIC objects from an old
20364 # archive will be linked into the output, leading to subtle bugs.
20365 if test "$solaris_use_stlport4" != yes; then
20366 postdeps_CXX='-library=Cstd -library=Crun'
20374 case " $postdeps_CXX " in
20375 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20377 compiler_lib_search_dirs_CXX=
20378 if test -n "${compiler_lib_search_path_CXX}"; then
20379 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20412 lt_prog_compiler_wl_CXX=
20413 lt_prog_compiler_pic_CXX=
20414 lt_prog_compiler_static_CXX=
20417 # C++ specific cases for pic, static, wl, etc.
20418 if test "$GXX" = yes; then
20419 lt_prog_compiler_wl_CXX='-Wl,'
20420 lt_prog_compiler_static_CXX='-static'
20424 # All AIX code is PIC.
20425 if test "$host_cpu" = ia64; then
20426 # AIX 5 now supports IA64 processor
20427 lt_prog_compiler_static_CXX='-Bstatic'
20434 # see comment about AmigaOS4 .so support
20435 lt_prog_compiler_pic_CXX='-fPIC'
20438 # FIXME: we need at least 68020 code to build shared libraries, but
20439 # adding the `-m68020' flag to GCC prevents building anything better,
20441 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20446 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20447 # PIC is the default for these OSes.
20449 mingw* | cygwin* | os2* | pw32* | cegcc*)
20450 # This hack is so that the source file can tell whether it is being
20451 # built for inclusion in a dll (and should export symbols for example).
20452 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20453 # (--disable-auto-import) libraries
20454 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20456 darwin* | rhapsody*)
20457 # PIC is the default on this platform
20458 # Common symbols not allowed in MH_DYLIB files
20459 lt_prog_compiler_pic_CXX='-fno-common'
20462 # DJGPP does not support shared libraries at all
20463 lt_prog_compiler_pic_CXX=
20466 # PIC is the default for Haiku.
20467 # The "-static" flag exists, but is broken.
20468 lt_prog_compiler_static_CXX=
20471 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20472 # Instead, we relocate shared libraries at runtime.
20475 if test -d /usr/nec; then
20476 lt_prog_compiler_pic_CXX=-Kconform_pic
20480 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20481 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20482 # sets the default TLS model and affects inlining.
20487 lt_prog_compiler_pic_CXX='-fPIC'
20492 # QNX uses GNU C++, but need to define -shared option too, otherwise
20493 # it will coredump.
20494 lt_prog_compiler_pic_CXX='-fPIC -shared'
20497 lt_prog_compiler_pic_CXX='-fPIC'
20503 # All AIX code is PIC.
20504 if test "$host_cpu" = ia64; then
20505 # AIX 5 now supports IA64 processor
20506 lt_prog_compiler_static_CXX='-Bstatic'
20508 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20512 case $cc_basename in
20514 # Green Hills C++ Compiler
20515 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
20519 mingw* | cygwin* | os2* | pw32* | cegcc*)
20520 # This hack is so that the source file can tell whether it is being
20521 # built for inclusion in a dll (and should export symbols for example).
20522 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20525 case $cc_basename in
20527 lt_prog_compiler_pic_CXX='-KPIC'
20530 # Green Hills C++ Compiler
20531 lt_prog_compiler_pic_CXX='-pic'
20537 freebsd* | dragonfly*)
20538 # FreeBSD uses GNU C++
20540 hpux9* | hpux10* | hpux11*)
20541 case $cc_basename in
20543 lt_prog_compiler_wl_CXX='-Wl,'
20544 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20545 if test "$host_cpu" != ia64; then
20546 lt_prog_compiler_pic_CXX='+Z'
20550 lt_prog_compiler_wl_CXX='-Wl,'
20551 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20557 lt_prog_compiler_pic_CXX='+Z'
20566 # This is c89, which is MS Visual C++ (no shared libs)
20567 # Anyone wants to do a port?
20569 irix5* | irix6* | nonstopux*)
20570 case $cc_basename in
20572 lt_prog_compiler_wl_CXX='-Wl,'
20573 lt_prog_compiler_static_CXX='-non_shared'
20574 # CC pic flag -KPIC is the default.
20580 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20581 case $cc_basename in
20584 lt_prog_compiler_wl_CXX='--backend -Wl,'
20585 lt_prog_compiler_pic_CXX='-fPIC'
20588 # old Intel C++ for x86_64 which still supported -KPIC.
20589 lt_prog_compiler_wl_CXX='-Wl,'
20590 lt_prog_compiler_pic_CXX='-KPIC'
20591 lt_prog_compiler_static_CXX='-static'
20594 # Intel C++, used to be incompatible with GCC.
20595 # ICC 10 doesn't accept -KPIC any more.
20596 lt_prog_compiler_wl_CXX='-Wl,'
20597 lt_prog_compiler_pic_CXX='-fPIC'
20598 lt_prog_compiler_static_CXX='-static'
20601 # Portland Group C++ compiler
20602 lt_prog_compiler_wl_CXX='-Wl,'
20603 lt_prog_compiler_pic_CXX='-fpic'
20604 lt_prog_compiler_static_CXX='-Bstatic'
20608 # Make sure the PIC flag is empty. It appears that all Alpha
20609 # Linux and Compaq Tru64 Unix objects are PIC.
20610 lt_prog_compiler_pic_CXX=
20611 lt_prog_compiler_static_CXX='-non_shared'
20613 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20614 # IBM XL 8.0, 9.0 on PPC and BlueGene
20615 lt_prog_compiler_wl_CXX='-Wl,'
20616 lt_prog_compiler_pic_CXX='-qpic'
20617 lt_prog_compiler_static_CXX='-qstaticlink'
20620 case `$CC -V 2>&1 | sed 5q` in
20623 lt_prog_compiler_pic_CXX='-KPIC'
20624 lt_prog_compiler_static_CXX='-Bstatic'
20625 lt_prog_compiler_wl_CXX='-Qoption ld '
20636 case $cc_basename in
20638 lt_prog_compiler_pic_CXX='-W c,exportall'
20647 # QNX uses GNU C++, but need to define -shared option too, otherwise
20648 # it will coredump.
20649 lt_prog_compiler_pic_CXX='-fPIC -shared'
20651 osf3* | osf4* | osf5*)
20652 case $cc_basename in
20654 lt_prog_compiler_wl_CXX='--backend -Wl,'
20657 # Rational C++ 2.4.1
20658 lt_prog_compiler_pic_CXX='-pic'
20661 # Digital/Compaq C++
20662 lt_prog_compiler_wl_CXX='-Wl,'
20663 # Make sure the PIC flag is empty. It appears that all Alpha
20664 # Linux and Compaq Tru64 Unix objects are PIC.
20665 lt_prog_compiler_pic_CXX=
20666 lt_prog_compiler_static_CXX='-non_shared'
20675 case $cc_basename in
20677 # Sun C++ 4.2, 5.x and Centerline C++
20678 lt_prog_compiler_pic_CXX='-KPIC'
20679 lt_prog_compiler_static_CXX='-Bstatic'
20680 lt_prog_compiler_wl_CXX='-Qoption ld '
20683 # Green Hills C++ Compiler
20684 lt_prog_compiler_pic_CXX='-PIC'
20691 case $cc_basename in
20694 lt_prog_compiler_pic_CXX='-pic'
20695 lt_prog_compiler_static_CXX='-Bstatic'
20699 lt_prog_compiler_pic_CXX='-pic'
20705 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20706 case $cc_basename in
20708 lt_prog_compiler_wl_CXX='-Wl,'
20709 lt_prog_compiler_pic_CXX='-KPIC'
20710 lt_prog_compiler_static_CXX='-Bstatic'
20715 case $cc_basename in
20717 # NonStop-UX NCC 3.20
20718 lt_prog_compiler_pic_CXX='-KPIC'
20727 lt_prog_compiler_can_build_shared_CXX=no
20733 # For platforms which do not support PIC, -DPIC is meaningless:
20735 lt_prog_compiler_pic_CXX=
20738 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20743 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20744 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20745 $as_echo_n "(cached) " >&6
20747 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20750 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20751 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
20754 # Check to make sure the PIC flag actually works.
20756 if test -n "$lt_prog_compiler_pic_CXX"; then
20757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20758 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20759 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
20760 $as_echo_n "(cached) " >&6
20762 lt_cv_prog_compiler_pic_works_CXX=no
20763 ac_outfile=conftest.$ac_objext
20764 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20765 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20766 # Insert the option either (1) after the last *FLAGS variable, or
20767 # (2) before a word containing "conftest.", or (3) at the end.
20768 # Note that $ac_compile itself does not contain backslashes and begins
20769 # with a dollar sign (not a hyphen), so the echo should work correctly.
20770 # The option is referenced via a variable to avoid confusing sed.
20771 lt_compile=`echo "$ac_compile" | $SED \
20772 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20774 -e 's:$: $lt_compiler_flag:'`
20775 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20776 (eval "$lt_compile" 2>conftest.err)
20778 cat conftest.err >&5
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 if (exit $ac_status) && test -s "$ac_outfile"; then
20781 # The compiler can only warn and ignore the option if not recognized
20782 # So say no if there are warnings other than the usual output.
20783 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20784 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20785 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20786 lt_cv_prog_compiler_pic_works_CXX=yes
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20793 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20795 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20796 case $lt_prog_compiler_pic_CXX in
20798 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20801 lt_prog_compiler_pic_CXX=
20802 lt_prog_compiler_can_build_shared_CXX=no
20812 # Check to make sure the static flag actually works.
20814 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20816 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20817 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
20818 $as_echo_n "(cached) " >&6
20820 lt_cv_prog_compiler_static_works_CXX=no
20821 save_LDFLAGS="$LDFLAGS"
20822 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20823 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20824 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20825 # The linker can only warn and ignore the option if not recognized
20826 # So say no if there are warnings
20827 if test -s conftest.err; then
20828 # Append any errors to the config.log.
20829 cat conftest.err 1>&5
20830 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20831 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20832 if diff conftest.exp conftest.er2 >/dev/null; then
20833 lt_cv_prog_compiler_static_works_CXX=yes
20836 lt_cv_prog_compiler_static_works_CXX=yes
20840 LDFLAGS="$save_LDFLAGS"
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20844 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20846 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20849 lt_prog_compiler_static_CXX=
20855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20856 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20857 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20858 $as_echo_n "(cached) " >&6
20860 lt_cv_prog_compiler_c_o_CXX=no
20861 $RM -r conftest 2>/dev/null
20865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20867 lt_compiler_flag="-o out/conftest2.$ac_objext"
20868 # Insert the option either (1) after the last *FLAGS variable, or
20869 # (2) before a word containing "conftest.", or (3) at the end.
20870 # Note that $ac_compile itself does not contain backslashes and begins
20871 # with a dollar sign (not a hyphen), so the echo should work correctly.
20872 lt_compile=`echo "$ac_compile" | $SED \
20873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20875 -e 's:$: $lt_compiler_flag:'`
20876 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20877 (eval "$lt_compile" 2>out/conftest.err)
20879 cat out/conftest.err >&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20883 # The compiler can only warn and ignore the option if not recognized
20884 # So say no if there are warnings
20885 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20886 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20887 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20888 lt_cv_prog_compiler_c_o_CXX=yes
20893 # SGI C++ compiler will create directory out/ii_files/ for
20894 # template instantiation
20895 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20896 $RM out/* && rmdir out
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20903 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20908 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20909 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20910 $as_echo_n "(cached) " >&6
20912 lt_cv_prog_compiler_c_o_CXX=no
20913 $RM -r conftest 2>/dev/null
20917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20919 lt_compiler_flag="-o out/conftest2.$ac_objext"
20920 # Insert the option either (1) after the last *FLAGS variable, or
20921 # (2) before a word containing "conftest.", or (3) at the end.
20922 # Note that $ac_compile itself does not contain backslashes and begins
20923 # with a dollar sign (not a hyphen), so the echo should work correctly.
20924 lt_compile=`echo "$ac_compile" | $SED \
20925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20927 -e 's:$: $lt_compiler_flag:'`
20928 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20929 (eval "$lt_compile" 2>out/conftest.err)
20931 cat out/conftest.err >&5
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20935 # The compiler can only warn and ignore the option if not recognized
20936 # So say no if there are warnings
20937 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20938 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20939 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20940 lt_cv_prog_compiler_c_o_CXX=yes
20945 # SGI C++ compiler will create directory out/ii_files/ for
20946 # template instantiation
20947 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20948 $RM out/* && rmdir out
20954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20955 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20960 hard_links="nottested"
20961 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20962 # do not overwrite the value of need_locks provided by the user
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20964 $as_echo_n "checking if we can lock with hard links... " >&6; }
20967 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20969 ln conftest.a conftest.b 2>&5 || hard_links=no
20970 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20972 $as_echo "$hard_links" >&6; }
20973 if test "$hard_links" = no; then
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20975 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20985 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20987 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20988 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20991 # If we're using GNU nm, then we don't want the "-C" option.
20992 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20993 # Also, AIX nm treats weak defined symbols like other global defined
20994 # symbols, whereas GNU nm marks them as "W".
20995 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20996 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20998 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
21002 export_symbols_cmds_CXX="$ltdll_cmds"
21004 cygwin* | mingw* | cegcc*)
21005 case $cc_basename in
21007 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
21010 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
21011 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
21016 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21021 $as_echo "$ld_shlibs_CXX" >&6; }
21022 test "$ld_shlibs_CXX" = no && can_build_shared=no
21024 with_gnu_ld_CXX=$with_gnu_ld
21032 # Do we need to explicitly link libc?
21034 case "x$archive_cmds_need_lc_CXX" in
21036 # Assume -lc should be added
21037 archive_cmds_need_lc_CXX=yes
21039 if test "$enable_shared" = yes && test "$GCC" = yes; then
21040 case $archive_cmds_CXX in
21042 # FIXME: we may have to deal with multi-command sequences.
21045 # Test whether the compiler implicitly links with -lc since on some
21046 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21047 # to ld, don't add -lc before -lgcc.
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21049 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21050 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21051 $as_echo_n "(cached) " >&6
21054 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21057 (eval $ac_compile) 2>&5
21059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21060 test $ac_status = 0; } 2>conftest.err; then
21063 libobjs=conftest.$ac_objext
21065 wl=$lt_prog_compiler_wl_CXX
21066 pic_flag=$lt_prog_compiler_pic_CXX
21072 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21073 allow_undefined_flag_CXX=
21074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21075 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21078 test $ac_status = 0; }
21080 lt_cv_archive_cmds_need_lc_CXX=no
21082 lt_cv_archive_cmds_need_lc_CXX=yes
21084 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21086 cat conftest.err 1>&5
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21092 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21093 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21162 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21164 library_names_spec=
21165 libname_spec='lib$name'
21169 postuninstall_cmds=
21173 shlibpath_overrides_runpath=unknown
21175 dynamic_linker="$host_os ld.so"
21176 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21177 need_lib_prefix=unknown
21178 hardcode_into_libs=no
21180 # when you set need_version to no, make sure it does not cause -set_version
21181 # flags to be left without arguments
21182 need_version=unknown
21186 version_type=linux # correct to gnu/linux during the next big refactor
21187 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21188 shlibpath_var=LIBPATH
21190 # AIX 3 has no versioning support, so we append a major version to the name.
21191 soname_spec='${libname}${release}${shared_ext}$major'
21195 version_type=linux # correct to gnu/linux during the next big refactor
21198 hardcode_into_libs=yes
21199 if test "$host_cpu" = ia64; then
21200 # AIX 5 supports IA64
21201 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21202 shlibpath_var=LD_LIBRARY_PATH
21204 # With GCC up to 2.95.x, collect2 would create an import file
21205 # for dependence libraries. The import file would start with
21206 # the line `#! .'. This would cause the generated library to
21207 # depend on `.', always an invalid library. This was fixed in
21208 # development snapshots of GCC prior to 3.0.
21210 aix4 | aix4.[01] | aix4.[01].*)
21211 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21213 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21216 can_build_shared=no
21220 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21221 # soname into executable. Probably we can add versioning support to
21222 # collect2, so additional links can be useful in future.
21223 if test "$aix_use_runtimelinking" = yes; then
21224 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21225 # instead of lib<name>.a to let people know that these are not
21226 # typical AIX shared libraries.
21227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21229 # We preserve .a as extension for shared libraries through AIX4.2
21230 # and later when we are not doing run time linking.
21231 library_names_spec='${libname}${release}.a $libname.a'
21232 soname_spec='${libname}${release}${shared_ext}$major'
21234 shlibpath_var=LIBPATH
21241 # Since July 2007 AmigaOS4 officially supports .so libraries.
21242 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21246 library_names_spec='$libname.ixlibrary $libname.a'
21247 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21248 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'
21254 library_names_spec='${libname}${shared_ext}'
21255 dynamic_linker="$host_os ld.so"
21256 shlibpath_var=LIBRARY_PATH
21260 version_type=linux # correct to gnu/linux during the next big refactor
21262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21263 soname_spec='${libname}${release}${shared_ext}$major'
21264 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21265 shlibpath_var=LD_LIBRARY_PATH
21266 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21267 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21268 # the default ld.so.conf also contains /usr/contrib/lib and
21269 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21270 # libtool to hard-code these into programs
21273 cygwin* | mingw* | pw32* | cegcc*)
21274 version_type=windows
21279 case $GCC,$cc_basename in
21282 library_names_spec='$libname.dll.a'
21283 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21284 postinstall_cmds='base_file=`basename \${file}`~
21285 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21286 dldir=$destdir/`dirname \$dlpath`~
21287 test -d \$dldir || mkdir -p \$dldir~
21288 $install_prog $dir/$dlname \$dldir/$dlname~
21289 chmod a+x \$dldir/$dlname~
21290 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21291 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21293 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21294 dlpath=$dir/\$dldll~
21296 shlibpath_overrides_runpath=yes
21300 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21301 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21305 # MinGW DLLs use traditional 'lib' prefix
21306 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21309 # pw32 DLLs use 'pw' prefix rather than 'lib'
21310 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21313 dynamic_linker='Win32 ld.exe'
21318 libname_spec='$name'
21319 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21320 library_names_spec='${libname}.dll.lib'
21324 sys_lib_search_path_spec=
21327 for lt_path in $LIB
21330 # Let DOS variable expansion print the short 8.3 style file name.
21331 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21332 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21335 # Convert to MSYS style.
21336 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21339 # Convert to unix form, then to dos form, then back to unix form
21340 # but this time dos style (no spaces!) so that the unix form looks
21341 # like /cygdrive/c/PROGRA~1:/cygdr...
21342 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21343 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21344 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21347 sys_lib_search_path_spec="$LIB"
21348 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21349 # It is most probably a Windows format PATH.
21350 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21352 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21354 # FIXME: find the short name or the path components, as spaces are
21355 # common. (e.g. "Program Files" -> "PROGRA~1")
21359 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21360 postinstall_cmds='base_file=`basename \${file}`~
21361 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21362 dldir=$destdir/`dirname \$dlpath`~
21363 test -d \$dldir || mkdir -p \$dldir~
21364 $install_prog $dir/$dlname \$dldir/$dlname'
21365 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21366 dlpath=$dir/\$dldll~
21368 shlibpath_overrides_runpath=yes
21369 dynamic_linker='Win32 link.exe'
21373 # Assume MSVC wrapper
21374 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21375 dynamic_linker='Win32 ld.exe'
21378 # FIXME: first we should search . and the directory the executable is in
21382 darwin* | rhapsody*)
21383 dynamic_linker="$host_os dyld"
21384 version_type=darwin
21387 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21388 soname_spec='${libname}${release}${major}$shared_ext'
21389 shlibpath_overrides_runpath=yes
21390 shlibpath_var=DYLD_LIBRARY_PATH
21391 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21393 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21397 version_type=linux # correct to gnu/linux during the next big refactor
21400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21401 soname_spec='${libname}${release}${shared_ext}$major'
21402 shlibpath_var=LD_LIBRARY_PATH
21405 freebsd* | dragonfly*)
21406 # DragonFly does not have aout. When/if they implement a new
21407 # versioning mechanism, adjust this.
21408 if test -x /usr/bin/objformat; then
21409 objformat=`/usr/bin/objformat`
21412 freebsd[23].*) objformat=aout ;;
21413 *) objformat=elf ;;
21416 version_type=freebsd-$objformat
21417 case $version_type in
21419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21424 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21428 shlibpath_var=LD_LIBRARY_PATH
21431 shlibpath_overrides_runpath=yes
21433 freebsd3.[01]* | freebsdelf3.[01]*)
21434 shlibpath_overrides_runpath=yes
21435 hardcode_into_libs=yes
21437 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21438 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21439 shlibpath_overrides_runpath=no
21440 hardcode_into_libs=yes
21442 *) # from 4.6 on, and DragonFly
21443 shlibpath_overrides_runpath=yes
21444 hardcode_into_libs=yes
21450 version_type=linux # correct to gnu/linux during the next big refactor
21453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21454 soname_spec='${libname}${release}${shared_ext}$major'
21455 shlibpath_var=LD_LIBRARY_PATH
21456 shlibpath_overrides_runpath=no
21457 hardcode_into_libs=yes
21461 version_type=linux # correct to gnu/linux during the next big refactor
21464 dynamic_linker="$host_os runtime_loader"
21465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21466 soname_spec='${libname}${release}${shared_ext}$major'
21467 shlibpath_var=LIBRARY_PATH
21468 shlibpath_overrides_runpath=yes
21469 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21470 hardcode_into_libs=yes
21473 hpux9* | hpux10* | hpux11*)
21474 # Give a soname corresponding to the major version so that dld.sl refuses to
21475 # link against other versions.
21482 hardcode_into_libs=yes
21483 dynamic_linker="$host_os dld.so"
21484 shlibpath_var=LD_LIBRARY_PATH
21485 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21487 soname_spec='${libname}${release}${shared_ext}$major'
21488 if test "X$HPUX_IA64_MODE" = X32; then
21489 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21491 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21493 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21497 hardcode_into_libs=yes
21498 dynamic_linker="$host_os dld.sl"
21499 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21500 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21502 soname_spec='${libname}${release}${shared_ext}$major'
21503 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21504 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21508 dynamic_linker="$host_os dld.sl"
21509 shlibpath_var=SHLIB_PATH
21510 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21512 soname_spec='${libname}${release}${shared_ext}$major'
21515 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21516 postinstall_cmds='chmod 555 $lib'
21517 # or fails outright, so override atomically:
21518 install_override_mode=555
21522 version_type=linux # correct to gnu/linux during the next big refactor
21525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21526 soname_spec='${libname}${release}${shared_ext}$major'
21527 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21528 shlibpath_var=LD_LIBRARY_PATH
21529 shlibpath_overrides_runpath=no
21530 hardcode_into_libs=yes
21533 irix5* | irix6* | nonstopux*)
21535 nonstopux*) version_type=nonstopux ;;
21537 if test "$lt_cv_prog_gnu_ld" = yes; then
21538 version_type=linux # correct to gnu/linux during the next big refactor
21545 soname_spec='${libname}${release}${shared_ext}$major'
21546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21548 irix5* | nonstopux*)
21549 libsuff= shlibsuff=
21552 case $LD in # libtool.m4 will add one of these switches to LD
21553 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21554 libsuff= shlibsuff= libmagic=32-bit;;
21555 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21556 libsuff=32 shlibsuff=N32 libmagic=N32;;
21557 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21558 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21559 *) libsuff= shlibsuff= libmagic=never-match;;
21563 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21564 shlibpath_overrides_runpath=no
21565 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21566 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21567 hardcode_into_libs=yes
21570 # No shared lib support for Linux oldld, aout, or coff.
21571 linux*oldld* | linux*aout* | linux*coff*)
21575 # This must be glibc/ELF.
21576 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21577 version_type=linux # correct to gnu/linux during the next big refactor
21580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21581 soname_spec='${libname}${release}${shared_ext}$major'
21582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21583 shlibpath_var=LD_LIBRARY_PATH
21584 shlibpath_overrides_runpath=no
21586 # Some binutils ld are patched to set DT_RUNPATH
21587 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21588 $as_echo_n "(cached) " >&6
21590 lt_cv_shlibpath_overrides_runpath=no
21591 save_LDFLAGS=$LDFLAGS
21592 save_libdir=$libdir
21593 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21594 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21596 /* end confdefs.h. */
21606 if ac_fn_cxx_try_link "$LINENO"; then :
21607 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21608 lt_cv_shlibpath_overrides_runpath=yes
21611 rm -f core conftest.err conftest.$ac_objext \
21612 conftest$ac_exeext conftest.$ac_ext
21613 LDFLAGS=$save_LDFLAGS
21614 libdir=$save_libdir
21618 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21620 # This implies no fast_install, which is unacceptable.
21621 # Some rework will be needed to allow for fast_install
21622 # before this can be enabled.
21623 hardcode_into_libs=yes
21625 # Append ld.so.conf contents to the search path
21626 if test -f /etc/ld.so.conf; then
21627 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' ' '`
21628 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21631 # We used to test for /lib/ld.so.1 and disable shared libraries on
21632 # powerpc, because MkLinux only supported shared libraries with the
21633 # GNU dynamic linker. Since this was broken with cross compilers,
21634 # most powerpc-linux boxes support dynamic linking these days and
21635 # people can always --disable-shared, the test was removed, and we
21636 # assume the GNU/Linux dynamic linker is in use.
21637 dynamic_linker='GNU/Linux ld.so'
21644 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21647 dynamic_linker='NetBSD (a.out) ld.so'
21649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21650 soname_spec='${libname}${release}${shared_ext}$major'
21651 dynamic_linker='NetBSD ld.elf_so'
21653 shlibpath_var=LD_LIBRARY_PATH
21654 shlibpath_overrides_runpath=yes
21655 hardcode_into_libs=yes
21659 version_type=linux # correct to gnu/linux during the next big refactor
21660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21661 shlibpath_var=LD_LIBRARY_PATH
21662 shlibpath_overrides_runpath=yes
21669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21670 soname_spec='${libname}${release}${shared_ext}$major'
21671 shlibpath_var=LD_LIBRARY_PATH
21672 shlibpath_overrides_runpath=no
21673 hardcode_into_libs=yes
21674 dynamic_linker='ldqnx.so'
21679 sys_lib_dlsearch_path_spec="/usr/lib"
21681 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21683 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21684 *) need_version=no ;;
21686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21688 shlibpath_var=LD_LIBRARY_PATH
21689 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21691 openbsd2.[89] | openbsd2.[89].*)
21692 shlibpath_overrides_runpath=no
21695 shlibpath_overrides_runpath=yes
21699 shlibpath_overrides_runpath=yes
21704 libname_spec='$name'
21707 library_names_spec='$libname${shared_ext} $libname.a'
21708 dynamic_linker='OS/2 ld.exe'
21709 shlibpath_var=LIBPATH
21712 osf3* | osf4* | osf5*)
21716 soname_spec='${libname}${release}${shared_ext}$major'
21717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21718 shlibpath_var=LD_LIBRARY_PATH
21719 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21720 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21728 version_type=linux # correct to gnu/linux during the next big refactor
21731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21732 soname_spec='${libname}${release}${shared_ext}$major'
21733 shlibpath_var=LD_LIBRARY_PATH
21734 shlibpath_overrides_runpath=yes
21735 hardcode_into_libs=yes
21736 # ldd complains unless libraries are executable
21737 postinstall_cmds='chmod +x $lib'
21742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21743 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21744 shlibpath_var=LD_LIBRARY_PATH
21745 shlibpath_overrides_runpath=yes
21746 if test "$with_gnu_ld" = yes; then
21753 version_type=linux # correct to gnu/linux during the next big refactor
21754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21755 soname_spec='${libname}${release}${shared_ext}$major'
21756 shlibpath_var=LD_LIBRARY_PATH
21757 case $host_vendor in
21759 shlibpath_overrides_runpath=no
21761 runpath_var=LD_RUN_PATH
21769 shlibpath_overrides_runpath=no
21770 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21776 if test -d /usr/nec ;then
21777 version_type=linux # correct to gnu/linux during the next big refactor
21778 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21779 soname_spec='$libname${shared_ext}.$major'
21780 shlibpath_var=LD_LIBRARY_PATH
21784 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21785 version_type=freebsd-elf
21788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21789 soname_spec='${libname}${release}${shared_ext}$major'
21790 shlibpath_var=LD_LIBRARY_PATH
21791 shlibpath_overrides_runpath=yes
21792 hardcode_into_libs=yes
21793 if test "$with_gnu_ld" = yes; then
21794 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21796 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21799 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21803 sys_lib_dlsearch_path_spec='/usr/lib'
21807 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21808 version_type=linux # correct to gnu/linux during the next big refactor
21811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21812 shlibpath_var=LD_LIBRARY_PATH
21813 shlibpath_overrides_runpath=no
21814 hardcode_into_libs=yes
21818 version_type=linux # correct to gnu/linux during the next big refactor
21819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21820 soname_spec='${libname}${release}${shared_ext}$major'
21821 shlibpath_var=LD_LIBRARY_PATH
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21829 $as_echo "$dynamic_linker" >&6; }
21830 test "$dynamic_linker" = no && can_build_shared=no
21832 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21833 if test "$GCC" = yes; then
21834 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21837 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21838 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21840 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21841 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21882 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21883 hardcode_action_CXX=
21884 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21885 test -n "$runpath_var_CXX" ||
21886 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21888 # We can hardcode non-existent directories.
21889 if test "$hardcode_direct_CXX" != no &&
21890 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21891 # have to relink, otherwise we might link with an installed library
21892 # when we should be linking with a yet-to-be-installed one
21893 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21894 test "$hardcode_minus_L_CXX" != no; then
21895 # Linking always hardcodes the temporary library directory.
21896 hardcode_action_CXX=relink
21898 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21899 hardcode_action_CXX=immediate
21902 # We cannot hardcode anything, or else we can only hardcode existing
21904 hardcode_action_CXX=unsupported
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21907 $as_echo "$hardcode_action_CXX" >&6; }
21909 if test "$hardcode_action_CXX" = relink ||
21910 test "$inherit_rpath_CXX" = yes; then
21911 # Fast installation is not supported
21912 enable_fast_install=no
21913 elif test "$shlibpath_overrides_runpath" = yes ||
21914 test "$enable_shared" = no; then
21915 # Fast installation is not necessary
21916 enable_fast_install=needless
21925 fi # test -n "$compiler"
21928 CFLAGS=$lt_save_CFLAGS
21932 with_gnu_ld=$lt_save_with_gnu_ld
21933 lt_cv_path_LDCXX=$lt_cv_path_LD
21934 lt_cv_path_LD=$lt_save_path_LD
21935 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21936 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21937 fi # test "$_lt_caught_CXX_error" != yes
21940 ac_cpp='$CPP $CPPFLAGS'
21941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21948 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21949 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21950 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21952 if test -z "$F77" || test "X$F77" = "Xno"; then
21953 _lt_disable_F77=yes
21956 archive_cmds_need_lc_F77=no
21957 allow_undefined_flag_F77=
21958 always_export_symbols_F77=no
21959 archive_expsym_cmds_F77=
21960 export_dynamic_flag_spec_F77=
21961 hardcode_direct_F77=no
21962 hardcode_direct_absolute_F77=no
21963 hardcode_libdir_flag_spec_F77=
21964 hardcode_libdir_separator_F77=
21965 hardcode_minus_L_F77=no
21966 hardcode_automatic_F77=no
21967 inherit_rpath_F77=no
21969 module_expsym_cmds_F77=
21970 link_all_deplibs_F77=unknown
21971 old_archive_cmds_F77=$old_archive_cmds
21972 reload_flag_F77=$reload_flag
21973 reload_cmds_F77=$reload_cmds
21974 no_undefined_flag_F77=
21975 whole_archive_flag_spec_F77=
21976 enable_shared_with_static_runtimes_F77=no
21978 # Source file extension for f77 test sources.
21981 # Object file extension for compiled f77 test sources.
21985 # No sense in running all these tests if we already determined that
21986 # the F77 compiler isn't working. Some variables (like enable_shared)
21987 # are currently assumed to apply to all compilers on this platform,
21988 # and will be corrupted by setting them based on a non-working compiler.
21989 if test "$_lt_disable_F77" != yes; then
21990 # Code to be used in simple compile tests
21991 lt_simple_compile_test_code="\
21997 # Code to be used in simple link tests
21998 lt_simple_link_test_code="\
22003 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22010 # If no C compiler was specified, use CC.
22013 # If no C compiler flags were specified, use CFLAGS.
22014 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22016 # Allow CC to be a program name with arguments.
22020 # save warnings/boilerplate of simple test code
22021 ac_outfile=conftest.$ac_objext
22022 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
22023 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22024 _lt_compiler_boilerplate=`cat conftest.err`
22027 ac_outfile=conftest.$ac_objext
22028 echo "$lt_simple_link_test_code" >conftest.$ac_ext
22029 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22030 _lt_linker_boilerplate=`cat conftest.err`
22034 # Allow CC to be a program name with arguments.
22037 lt_save_CFLAGS=$CFLAGS
22042 for cc_temp in $compiler""; do
22044 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22045 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22050 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22053 if test -n "$compiler"; then
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
22055 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
22057 $as_echo "$can_build_shared" >&6; }
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
22060 $as_echo_n "checking whether to build shared libraries... " >&6; }
22061 test "$can_build_shared" = "no" && enable_shared=no
22063 # On AIX, shared libraries and static libraries use the same namespace, and
22064 # are all built from PIC.
22067 test "$enable_shared" = yes && enable_static=no
22068 if test -n "$RANLIB"; then
22069 archive_cmds="$archive_cmds~\$RANLIB \$lib"
22070 postinstall_cmds='$RANLIB $lib'
22074 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
22075 test "$enable_shared" = yes && enable_static=no
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
22080 $as_echo "$enable_shared" >&6; }
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
22083 $as_echo_n "checking whether to build static libraries... " >&6; }
22084 # Make sure either enable_shared or enable_static is yes.
22085 test "$enable_shared" = yes || enable_static=yes
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
22087 $as_echo "$enable_static" >&6; }
22093 ## There is no encapsulation within the following macros, do not change
22094 ## the running order or otherwise move them around unless you know exactly
22095 ## what you are doing...
22096 lt_prog_compiler_wl_F77=
22097 lt_prog_compiler_pic_F77=
22098 lt_prog_compiler_static_F77=
22101 if test "$GCC" = yes; then
22102 lt_prog_compiler_wl_F77='-Wl,'
22103 lt_prog_compiler_static_F77='-static'
22107 # All AIX code is PIC.
22108 if test "$host_cpu" = ia64; then
22109 # AIX 5 now supports IA64 processor
22110 lt_prog_compiler_static_F77='-Bstatic'
22117 # see comment about AmigaOS4 .so support
22118 lt_prog_compiler_pic_F77='-fPIC'
22121 # FIXME: we need at least 68020 code to build shared libraries, but
22122 # adding the `-m68020' flag to GCC prevents building anything better,
22124 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
22129 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22130 # PIC is the default for these OSes.
22133 mingw* | cygwin* | pw32* | os2* | cegcc*)
22134 # This hack is so that the source file can tell whether it is being
22135 # built for inclusion in a dll (and should export symbols for example).
22136 # Although the cygwin gcc ignores -fPIC, still need this for old-style
22137 # (--disable-auto-import) libraries
22138 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
22141 darwin* | rhapsody*)
22142 # PIC is the default on this platform
22143 # Common symbols not allowed in MH_DYLIB files
22144 lt_prog_compiler_pic_F77='-fno-common'
22148 # PIC is the default for Haiku.
22149 # The "-static" flag exists, but is broken.
22150 lt_prog_compiler_static_F77=
22154 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
22155 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
22156 # sets the default TLS model and affects inlining.
22162 lt_prog_compiler_pic_F77='-fPIC'
22168 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22169 # Instead, we relocate shared libraries at runtime.
22173 # Just because we use GCC doesn't mean we suddenly get shared libraries
22174 # on systems that don't support them.
22175 lt_prog_compiler_can_build_shared_F77=no
22180 # QNX uses GNU C++, but need to define -shared option too, otherwise
22181 # it will coredump.
22182 lt_prog_compiler_pic_F77='-fPIC -shared'
22186 if test -d /usr/nec; then
22187 lt_prog_compiler_pic_F77=-Kconform_pic
22192 lt_prog_compiler_pic_F77='-fPIC'
22196 case $cc_basename in
22197 nvcc*) # Cuda Compiler Driver 2.2
22198 lt_prog_compiler_wl_F77='-Xlinker '
22199 if test -n "$lt_prog_compiler_pic_F77"; then
22200 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
22205 # PORTME Check for flag to pass linker flags through the system compiler.
22208 lt_prog_compiler_wl_F77='-Wl,'
22209 if test "$host_cpu" = ia64; then
22210 # AIX 5 now supports IA64 processor
22211 lt_prog_compiler_static_F77='-Bstatic'
22213 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
22217 mingw* | cygwin* | pw32* | os2* | cegcc*)
22218 # This hack is so that the source file can tell whether it is being
22219 # built for inclusion in a dll (and should export symbols for example).
22220 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
22223 hpux9* | hpux10* | hpux11*)
22224 lt_prog_compiler_wl_F77='-Wl,'
22225 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22226 # not for PA HP-UX.
22232 lt_prog_compiler_pic_F77='+Z'
22235 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22236 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
22239 irix5* | irix6* | nonstopux*)
22240 lt_prog_compiler_wl_F77='-Wl,'
22241 # PIC (with -KPIC) is the default.
22242 lt_prog_compiler_static_F77='-non_shared'
22245 linux* | k*bsd*-gnu | kopensolaris*-gnu)
22246 case $cc_basename in
22247 # old Intel for x86_64 which still supported -KPIC.
22249 lt_prog_compiler_wl_F77='-Wl,'
22250 lt_prog_compiler_pic_F77='-KPIC'
22251 lt_prog_compiler_static_F77='-static'
22253 # icc used to be incompatible with GCC.
22254 # ICC 10 doesn't accept -KPIC any more.
22256 lt_prog_compiler_wl_F77='-Wl,'
22257 lt_prog_compiler_pic_F77='-fPIC'
22258 lt_prog_compiler_static_F77='-static'
22260 # Lahey Fortran 8.1.
22262 lt_prog_compiler_wl_F77='-Wl,'
22263 lt_prog_compiler_pic_F77='--shared'
22264 lt_prog_compiler_static_F77='--static'
22267 # NAG Fortran compiler
22268 lt_prog_compiler_wl_F77='-Wl,-Wl,,'
22269 lt_prog_compiler_pic_F77='-PIC'
22270 lt_prog_compiler_static_F77='-Bstatic'
22272 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
22273 # Portland Group compilers (*not* the Pentium gcc compiler,
22274 # which looks to be a dead project)
22275 lt_prog_compiler_wl_F77='-Wl,'
22276 lt_prog_compiler_pic_F77='-fpic'
22277 lt_prog_compiler_static_F77='-Bstatic'
22280 lt_prog_compiler_wl_F77='-Wl,'
22281 # All Alpha code is PIC.
22282 lt_prog_compiler_static_F77='-non_shared'
22284 xl* | bgxl* | bgf* | mpixl*)
22285 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
22286 lt_prog_compiler_wl_F77='-Wl,'
22287 lt_prog_compiler_pic_F77='-qpic'
22288 lt_prog_compiler_static_F77='-qstaticlink'
22291 case `$CC -V 2>&1 | sed 5q` in
22292 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
22293 # Sun Fortran 8.3 passes all unrecognized flags to the linker
22294 lt_prog_compiler_pic_F77='-KPIC'
22295 lt_prog_compiler_static_F77='-Bstatic'
22296 lt_prog_compiler_wl_F77=''
22298 *Sun\ F* | *Sun*Fortran*)
22299 lt_prog_compiler_pic_F77='-KPIC'
22300 lt_prog_compiler_static_F77='-Bstatic'
22301 lt_prog_compiler_wl_F77='-Qoption ld '
22305 lt_prog_compiler_pic_F77='-KPIC'
22306 lt_prog_compiler_static_F77='-Bstatic'
22307 lt_prog_compiler_wl_F77='-Wl,'
22309 *Intel*\ [CF]*Compiler*)
22310 lt_prog_compiler_wl_F77='-Wl,'
22311 lt_prog_compiler_pic_F77='-fPIC'
22312 lt_prog_compiler_static_F77='-static'
22315 lt_prog_compiler_wl_F77='-Wl,'
22316 lt_prog_compiler_pic_F77='-fpic'
22317 lt_prog_compiler_static_F77='-Bstatic'
22325 lt_prog_compiler_pic_F77='-KPIC'
22326 lt_prog_compiler_static_F77='-Bstatic'
22330 # QNX uses GNU C++, but need to define -shared option too, otherwise
22331 # it will coredump.
22332 lt_prog_compiler_pic_F77='-fPIC -shared'
22335 osf3* | osf4* | osf5*)
22336 lt_prog_compiler_wl_F77='-Wl,'
22337 # All OSF/1 code is PIC.
22338 lt_prog_compiler_static_F77='-non_shared'
22342 lt_prog_compiler_static_F77='-non_shared'
22346 lt_prog_compiler_pic_F77='-KPIC'
22347 lt_prog_compiler_static_F77='-Bstatic'
22348 case $cc_basename in
22349 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
22350 lt_prog_compiler_wl_F77='-Qoption ld ';;
22352 lt_prog_compiler_wl_F77='-Wl,';;
22357 lt_prog_compiler_wl_F77='-Qoption ld '
22358 lt_prog_compiler_pic_F77='-PIC'
22359 lt_prog_compiler_static_F77='-Bstatic'
22362 sysv4 | sysv4.2uw2* | sysv4.3*)
22363 lt_prog_compiler_wl_F77='-Wl,'
22364 lt_prog_compiler_pic_F77='-KPIC'
22365 lt_prog_compiler_static_F77='-Bstatic'
22369 if test -d /usr/nec ;then
22370 lt_prog_compiler_pic_F77='-Kconform_pic'
22371 lt_prog_compiler_static_F77='-Bstatic'
22375 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22376 lt_prog_compiler_wl_F77='-Wl,'
22377 lt_prog_compiler_pic_F77='-KPIC'
22378 lt_prog_compiler_static_F77='-Bstatic'
22382 lt_prog_compiler_wl_F77='-Wl,'
22383 lt_prog_compiler_can_build_shared_F77=no
22387 lt_prog_compiler_pic_F77='-pic'
22388 lt_prog_compiler_static_F77='-Bstatic'
22392 lt_prog_compiler_can_build_shared_F77=no
22398 # For platforms which do not support PIC, -DPIC is meaningless:
22400 lt_prog_compiler_pic_F77=
22403 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
22408 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
22409 if ${lt_cv_prog_compiler_pic_F77+:} false; then :
22410 $as_echo_n "(cached) " >&6
22412 lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
22414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
22415 $as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
22416 lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
22419 # Check to make sure the PIC flag actually works.
22421 if test -n "$lt_prog_compiler_pic_F77"; then
22422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
22423 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
22424 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
22425 $as_echo_n "(cached) " >&6
22427 lt_cv_prog_compiler_pic_works_F77=no
22428 ac_outfile=conftest.$ac_objext
22429 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22430 lt_compiler_flag="$lt_prog_compiler_pic_F77"
22431 # Insert the option either (1) after the last *FLAGS variable, or
22432 # (2) before a word containing "conftest.", or (3) at the end.
22433 # Note that $ac_compile itself does not contain backslashes and begins
22434 # with a dollar sign (not a hyphen), so the echo should work correctly.
22435 # The option is referenced via a variable to avoid confusing sed.
22436 lt_compile=`echo "$ac_compile" | $SED \
22437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22439 -e 's:$: $lt_compiler_flag:'`
22440 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22441 (eval "$lt_compile" 2>conftest.err)
22443 cat conftest.err >&5
22444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445 if (exit $ac_status) && test -s "$ac_outfile"; then
22446 # The compiler can only warn and ignore the option if not recognized
22447 # So say no if there are warnings other than the usual output.
22448 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
22449 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22450 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22451 lt_cv_prog_compiler_pic_works_F77=yes
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
22458 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
22460 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
22461 case $lt_prog_compiler_pic_F77 in
22463 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
22466 lt_prog_compiler_pic_F77=
22467 lt_prog_compiler_can_build_shared_F77=no
22477 # Check to make sure the static flag actually works.
22479 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22481 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22482 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
22483 $as_echo_n "(cached) " >&6
22485 lt_cv_prog_compiler_static_works_F77=no
22486 save_LDFLAGS="$LDFLAGS"
22487 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22488 echo "$lt_simple_link_test_code" > conftest.$ac_ext
22489 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22490 # The linker can only warn and ignore the option if not recognized
22491 # So say no if there are warnings
22492 if test -s conftest.err; then
22493 # Append any errors to the config.log.
22494 cat conftest.err 1>&5
22495 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
22496 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22497 if diff conftest.exp conftest.er2 >/dev/null; then
22498 lt_cv_prog_compiler_static_works_F77=yes
22501 lt_cv_prog_compiler_static_works_F77=yes
22505 LDFLAGS="$save_LDFLAGS"
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
22509 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
22511 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
22514 lt_prog_compiler_static_F77=
22520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22521 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22522 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
22523 $as_echo_n "(cached) " >&6
22525 lt_cv_prog_compiler_c_o_F77=no
22526 $RM -r conftest 2>/dev/null
22530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22532 lt_compiler_flag="-o out/conftest2.$ac_objext"
22533 # Insert the option either (1) after the last *FLAGS variable, or
22534 # (2) before a word containing "conftest.", or (3) at the end.
22535 # Note that $ac_compile itself does not contain backslashes and begins
22536 # with a dollar sign (not a hyphen), so the echo should work correctly.
22537 lt_compile=`echo "$ac_compile" | $SED \
22538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22540 -e 's:$: $lt_compiler_flag:'`
22541 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22542 (eval "$lt_compile" 2>out/conftest.err)
22544 cat out/conftest.err >&5
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22548 # The compiler can only warn and ignore the option if not recognized
22549 # So say no if there are warnings
22550 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22551 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22552 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22553 lt_cv_prog_compiler_c_o_F77=yes
22558 # SGI C++ compiler will create directory out/ii_files/ for
22559 # template instantiation
22560 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22561 $RM out/* && rmdir out
22567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
22568 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
22572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22573 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22574 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
22575 $as_echo_n "(cached) " >&6
22577 lt_cv_prog_compiler_c_o_F77=no
22578 $RM -r conftest 2>/dev/null
22582 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22584 lt_compiler_flag="-o out/conftest2.$ac_objext"
22585 # Insert the option either (1) after the last *FLAGS variable, or
22586 # (2) before a word containing "conftest.", or (3) at the end.
22587 # Note that $ac_compile itself does not contain backslashes and begins
22588 # with a dollar sign (not a hyphen), so the echo should work correctly.
22589 lt_compile=`echo "$ac_compile" | $SED \
22590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22592 -e 's:$: $lt_compiler_flag:'`
22593 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22594 (eval "$lt_compile" 2>out/conftest.err)
22596 cat out/conftest.err >&5
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22600 # The compiler can only warn and ignore the option if not recognized
22601 # So say no if there are warnings
22602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22603 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22604 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22605 lt_cv_prog_compiler_c_o_F77=yes
22610 # SGI C++ compiler will create directory out/ii_files/ for
22611 # template instantiation
22612 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22613 $RM out/* && rmdir out
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
22620 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
22625 hard_links="nottested"
22626 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22627 # do not overwrite the value of need_locks provided by the user
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22629 $as_echo_n "checking if we can lock with hard links... " >&6; }
22632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22634 ln conftest.a conftest.b 2>&5 || hard_links=no
22635 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22637 $as_echo "$hard_links" >&6; }
22638 if test "$hard_links" = no; then
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22640 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22650 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22653 allow_undefined_flag_F77=
22654 always_export_symbols_F77=no
22656 archive_expsym_cmds_F77=
22657 compiler_needs_object_F77=no
22658 enable_shared_with_static_runtimes_F77=no
22659 export_dynamic_flag_spec_F77=
22660 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22661 hardcode_automatic_F77=no
22662 hardcode_direct_F77=no
22663 hardcode_direct_absolute_F77=no
22664 hardcode_libdir_flag_spec_F77=
22665 hardcode_libdir_separator_F77=
22666 hardcode_minus_L_F77=no
22667 hardcode_shlibpath_var_F77=unsupported
22668 inherit_rpath_F77=no
22669 link_all_deplibs_F77=unknown
22671 module_expsym_cmds_F77=
22672 old_archive_from_new_cmds_F77=
22673 old_archive_from_expsyms_cmds_F77=
22674 thread_safe_flag_spec_F77=
22675 whole_archive_flag_spec_F77=
22676 # include_expsyms should be a list of space-separated symbols to be *always*
22677 # included in the symbol list
22678 include_expsyms_F77=
22679 # exclude_expsyms can be an extended regexp of symbols to exclude
22680 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22681 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22682 # as well as any symbol that contains `d'.
22683 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22684 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22685 # platforms (ab)use it in PIC code, but their linkers get confused if
22686 # the symbol is explicitly referenced. Since portable code cannot
22687 # rely on this symbol name, it's probably fine to never include it in
22688 # preloaded symbol tables.
22689 # Exclude shared library initialization/finalization symbols.
22690 extract_expsyms_cmds=
22693 cygwin* | mingw* | pw32* | cegcc*)
22694 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22695 # When not using gcc, we currently assume that we are using
22696 # Microsoft Visual C++.
22697 if test "$GCC" != yes; then
22702 # we just hope/assume this is gcc and not c89 (= MSVC++)
22712 # On some targets, GNU ld is compatible enough with the native linker
22713 # that we're better off using the native interface for both.
22714 lt_use_gnu_ld_interface=no
22715 if test "$with_gnu_ld" = yes; then
22718 # The AIX port of GNU ld has always aspired to compatibility
22719 # with the native linker. However, as the warning in the GNU ld
22720 # block says, versions before 2.19.5* couldn't really create working
22721 # shared libraries, regardless of the interface used.
22722 case `$LD -v 2>&1` in
22723 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
22724 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
22725 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
22727 lt_use_gnu_ld_interface=yes
22732 lt_use_gnu_ld_interface=yes
22737 if test "$lt_use_gnu_ld_interface" = yes; then
22738 # If archive_cmds runs LD, not CC, wlarc should be empty
22741 # Set some defaults for GNU ld with shared library support. These
22742 # are reset later if shared libraries are not supported. Putting them
22743 # here allows them to be overridden if necessary.
22744 runpath_var=LD_RUN_PATH
22745 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22746 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22747 # ancient GNU ld didn't support --whole-archive et. al.
22748 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
22749 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22751 whole_archive_flag_spec_F77=
22753 supports_anon_versioning=no
22754 case `$LD -v 2>&1` in
22755 *GNU\ gold*) supports_anon_versioning=yes ;;
22756 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22757 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22758 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22759 *\ 2.11.*) ;; # other 2.11 versions
22760 *) supports_anon_versioning=yes ;;
22763 # See if GNU ld supports shared libraries.
22766 # On AIX/PPC, the GNU linker is very broken
22767 if test "$host_cpu" != ia64; then
22771 *** Warning: the GNU linker, at least up to release 2.19, is reported
22772 *** to be unable to reliably create shared libraries on AIX.
22773 *** Therefore, libtool is disabling shared libraries support. If you
22774 *** really care for shared libraries, you may want to install binutils
22775 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
22776 *** You will then need to restart the configuration process.
22785 # see comment about AmigaOS4 .so support
22786 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22787 archive_expsym_cmds_F77=''
22790 archive_cmds_F77='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
22791 hardcode_libdir_flag_spec_F77='-L$libdir'
22792 hardcode_minus_L_F77=yes
22798 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22799 allow_undefined_flag_F77=unsupported
22800 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22801 # support --undefined. This deserves some investigation. FIXME
22802 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22808 cygwin* | mingw* | pw32* | cegcc*)
22809 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22810 # as there is no search path for DLLs.
22811 hardcode_libdir_flag_spec_F77='-L$libdir'
22812 export_dynamic_flag_spec_F77='${wl}--export-all-symbols'
22813 allow_undefined_flag_F77=unsupported
22814 always_export_symbols_F77=no
22815 enable_shared_with_static_runtimes_F77=yes
22816 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
22817 exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
22819 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
22820 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22821 # If the export-symbols file already is a .def file (1st line
22822 # is EXPORTS), use it as is; otherwise, prepend...
22823 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22824 cp $export_symbols $output_objdir/$soname.def;
22826 echo EXPORTS > $output_objdir/$soname.def;
22827 cat $export_symbols >> $output_objdir/$soname.def;
22829 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22836 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22837 link_all_deplibs_F77=yes
22841 hardcode_direct_F77=no
22842 hardcode_shlibpath_var_F77=no
22843 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22844 export_dynamic_flag_spec_F77='${wl}-E'
22845 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22846 # Instead, shared libraries are loaded at an image base (0x10000000 by
22847 # default) and relocated if they conflict, which is a slow very memory
22848 # consuming and fragmenting process. To avoid this, we pick a random,
22849 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22850 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22851 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22852 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22855 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
22857 if test "$host_os" = linux-dietlibc; then
22858 case $cc_basename in
22859 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
22862 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
22863 && test "$tmp_diet" = no
22865 tmp_addflag=' $pic_flag'
22866 tmp_sharedflag='-shared'
22867 case $cc_basename,$host_cpu in
22868 pgcc*) # Portland Group C compiler
22869 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
22870 tmp_addflag=' $pic_flag'
22872 pgf77* | pgf90* | pgf95* | pgfortran*)
22873 # Portland Group f77 and f90 compilers
22874 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
22875 tmp_addflag=' $pic_flag -Mnomain' ;;
22876 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22877 tmp_addflag=' -i_dynamic' ;;
22878 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22879 tmp_addflag=' -i_dynamic -nofor_main' ;;
22880 ifc* | ifort*) # Intel Fortran compiler
22881 tmp_addflag=' -nofor_main' ;;
22882 lf95*) # Lahey Fortran 8.1
22883 whole_archive_flag_spec_F77=
22884 tmp_sharedflag='--shared' ;;
22885 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
22886 tmp_sharedflag='-qmkshrobj'
22888 nvcc*) # Cuda Compiler Driver 2.2
22889 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
22890 compiler_needs_object_F77=yes
22893 case `$CC -V 2>&1 | sed 5q` in
22894 *Sun\ C*) # Sun C 5.9
22895 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
22896 compiler_needs_object_F77=yes
22897 tmp_sharedflag='-G' ;;
22898 *Sun\ F*) # Sun Fortran 8.3
22899 tmp_sharedflag='-G' ;;
22901 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22903 if test "x$supports_anon_versioning" = xyes; then
22904 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
22905 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22906 echo "local: *; };" >> $output_objdir/$libname.ver~
22907 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22910 case $cc_basename in
22911 xlf* | bgf* | bgxlf* | mpixlf*)
22912 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
22913 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
22914 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22915 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
22916 if test "x$supports_anon_versioning" = xyes; then
22917 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
22918 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22919 echo "local: *; };" >> $output_objdir/$libname.ver~
22920 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
22930 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22931 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22934 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22935 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22940 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
22944 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22945 *** create shared libraries on Solaris systems. Therefore, libtool
22946 *** is disabling shared libraries support. We urge you to upgrade GNU
22947 *** binutils to release 2.9.1 or newer. Another option is to modify
22948 *** your PATH or compiler configuration so that the native linker is
22949 *** used, and then restart.
22952 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22953 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22954 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22961 case `$LD -v 2>&1` in
22962 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22966 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22967 *** reliably create shared libraries on SCO systems. Therefore, libtool
22968 *** is disabling shared libraries support. We urge you to upgrade GNU
22969 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22970 *** your PATH or compiler configuration so that the native linker is
22971 *** used, and then restart.
22976 # For security reasons, it is highly recommended that you always
22977 # use absolute paths for naming shared libraries, and exclude the
22978 # DT_RUNPATH tag from executables and libraries. But doing so
22979 # requires that you compile everything twice, which is a pain.
22980 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22981 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22982 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22983 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22992 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22994 hardcode_direct_F77=yes
22995 hardcode_shlibpath_var_F77=no
22999 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
23000 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23001 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23008 if test "$ld_shlibs_F77" = no; then
23010 hardcode_libdir_flag_spec_F77=
23011 export_dynamic_flag_spec_F77=
23012 whole_archive_flag_spec_F77=
23015 # PORTME fill in a description of your system's linker (not GNU ld)
23018 allow_undefined_flag_F77=unsupported
23019 always_export_symbols_F77=yes
23020 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
23021 # Note: this linker hardcodes the directories in LIBPATH if there
23022 # are no directories specified by -L.
23023 hardcode_minus_L_F77=yes
23024 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23025 # Neither direct hardcoding nor static linking is supported with a
23027 hardcode_direct_F77=unsupported
23032 if test "$host_cpu" = ia64; then
23033 # On IA64, the linker does run time linking by default, so we don't
23034 # have to do anything special.
23035 aix_use_runtimelinking=no
23036 exp_sym_flag='-Bexport'
23039 # If we're using GNU nm, then we don't want the "-C" option.
23040 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23041 # Also, AIX nm treats weak defined symbols like other global
23042 # defined symbols, whereas GNU nm marks them as "W".
23043 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
23044 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
23046 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
23048 aix_use_runtimelinking=no
23050 # Test if we are trying to use run time linking or normal
23051 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23052 # need to do runtime linking.
23053 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
23054 for ld_flag in $LDFLAGS; do
23055 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23056 aix_use_runtimelinking=yes
23063 exp_sym_flag='-bexport'
23064 no_entry_flag='-bnoentry'
23067 # When large executables or shared objects are built, AIX ld can
23068 # have problems creating the table of contents. If linking a library
23069 # or program results in "error TOC overflow" add -mminimal-toc to
23070 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23071 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23073 archive_cmds_F77=''
23074 hardcode_direct_F77=yes
23075 hardcode_direct_absolute_F77=yes
23076 hardcode_libdir_separator_F77=':'
23077 link_all_deplibs_F77=yes
23078 file_list_spec_F77='${wl}-f,'
23080 if test "$GCC" = yes; then
23081 case $host_os in aix4.[012]|aix4.[012].*)
23082 # We only want to do this on AIX 4.2 and lower, the check
23083 # below for broken collect2 doesn't work under 4.3+
23084 collect2name=`${CC} -print-prog-name=collect2`
23085 if test -f "$collect2name" &&
23086 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
23088 # We have reworked collect2
23091 # We have old collect2
23092 hardcode_direct_F77=unsupported
23093 # It fails to find uninstalled libraries when the uninstalled
23094 # path is not listed in the libpath. Setting hardcode_minus_L
23095 # to unsupported forces relinking
23096 hardcode_minus_L_F77=yes
23097 hardcode_libdir_flag_spec_F77='-L$libdir'
23098 hardcode_libdir_separator_F77=
23102 shared_flag='-shared'
23103 if test "$aix_use_runtimelinking" = yes; then
23104 shared_flag="$shared_flag "'${wl}-G'
23108 if test "$host_cpu" = ia64; then
23109 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23110 # chokes on -Wl,-G. The following line is correct:
23113 if test "$aix_use_runtimelinking" = yes; then
23114 shared_flag='${wl}-G'
23116 shared_flag='${wl}-bM:SRE'
23121 export_dynamic_flag_spec_F77='${wl}-bexpall'
23122 # It seems that -bexpall does not export symbols beginning with
23123 # underscore (_), so it is better to generate a list of symbols to export.
23124 always_export_symbols_F77=yes
23125 if test "$aix_use_runtimelinking" = yes; then
23126 # Warning - without using the other runtime loading flags (-brtl),
23127 # -berok will link without error, but may produce a broken library.
23128 allow_undefined_flag_F77='-berok'
23129 # Determine the default libpath from the value encoded in an
23130 # empty executable.
23131 if test "${lt_cv_aix_libpath+set}" = set; then
23132 aix_libpath=$lt_cv_aix_libpath
23134 if ${lt_cv_aix_libpath__F77+:} false; then :
23135 $as_echo_n "(cached) " >&6
23137 cat > conftest.$ac_ext <<_ACEOF
23142 if ac_fn_f77_try_link "$LINENO"; then :
23144 lt_aix_libpath_sed='
23145 /Import File Strings/,/^$/ {
23147 s/^0 *\([^ ]*\) *$/\1/
23151 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23152 # Check for a 64-bit object if we didn't find anything.
23153 if test -z "$lt_cv_aix_libpath__F77"; then
23154 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23157 rm -f core conftest.err conftest.$ac_objext \
23158 conftest$ac_exeext conftest.$ac_ext
23159 if test -z "$lt_cv_aix_libpath__F77"; then
23160 lt_cv_aix_libpath__F77="/usr/lib:/lib"
23165 aix_libpath=$lt_cv_aix_libpath__F77
23168 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
23169 archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
23171 if test "$host_cpu" = ia64; then
23172 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
23173 allow_undefined_flag_F77="-z nodefs"
23174 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
23176 # Determine the default libpath from the value encoded in an
23177 # empty executable.
23178 if test "${lt_cv_aix_libpath+set}" = set; then
23179 aix_libpath=$lt_cv_aix_libpath
23181 if ${lt_cv_aix_libpath__F77+:} false; then :
23182 $as_echo_n "(cached) " >&6
23184 cat > conftest.$ac_ext <<_ACEOF
23189 if ac_fn_f77_try_link "$LINENO"; then :
23191 lt_aix_libpath_sed='
23192 /Import File Strings/,/^$/ {
23194 s/^0 *\([^ ]*\) *$/\1/
23198 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23199 # Check for a 64-bit object if we didn't find anything.
23200 if test -z "$lt_cv_aix_libpath__F77"; then
23201 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23204 rm -f core conftest.err conftest.$ac_objext \
23205 conftest$ac_exeext conftest.$ac_ext
23206 if test -z "$lt_cv_aix_libpath__F77"; then
23207 lt_cv_aix_libpath__F77="/usr/lib:/lib"
23212 aix_libpath=$lt_cv_aix_libpath__F77
23215 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
23216 # Warning - without using the other run time loading flags,
23217 # -berok will link without error, but may produce a broken library.
23218 no_undefined_flag_F77=' ${wl}-bernotok'
23219 allow_undefined_flag_F77=' ${wl}-berok'
23220 if test "$with_gnu_ld" = yes; then
23221 # We only use this code for GNU lds that support --whole-archive.
23222 whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
23224 # Exported symbols can be pulled into shared objects from archives
23225 whole_archive_flag_spec_F77='$convenience'
23227 archive_cmds_need_lc_F77=yes
23228 # This is similar to how AIX traditionally builds its shared libraries.
23229 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
23237 # see comment about AmigaOS4 .so support
23238 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23239 archive_expsym_cmds_F77=''
23242 archive_cmds_F77='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
23243 hardcode_libdir_flag_spec_F77='-L$libdir'
23244 hardcode_minus_L_F77=yes
23250 export_dynamic_flag_spec_F77=-rdynamic
23253 cygwin* | mingw* | pw32* | cegcc*)
23254 # When not using gcc, we currently assume that we are using
23255 # Microsoft Visual C++.
23256 # hardcode_libdir_flag_spec is actually meaningless, as there is
23257 # no search path for DLLs.
23258 case $cc_basename in
23261 hardcode_libdir_flag_spec_F77=' '
23262 allow_undefined_flag_F77=unsupported
23263 always_export_symbols_F77=yes
23264 file_list_spec_F77='@'
23265 # Tell ltmain to make .lib files, not .a files.
23267 # Tell ltmain to make .dll files, not .so files.
23269 # FIXME: Setting linknames here is a bad hack.
23270 archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
23271 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23272 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
23274 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
23276 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
23278 # The linker will not automatically build a static lib if we build a DLL.
23279 # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
23280 enable_shared_with_static_runtimes_F77=yes
23281 exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
23282 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
23284 old_postinstall_cmds_F77='chmod 644 $oldlib'
23285 postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
23286 lt_tool_outputfile="@TOOL_OUTPUT@"~
23287 case $lt_outputfile in
23290 lt_outputfile="$lt_outputfile.exe"
23291 lt_tool_outputfile="$lt_tool_outputfile.exe"
23294 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
23295 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
23296 $RM "$lt_outputfile.manifest";
23300 # Assume MSVC wrapper
23301 hardcode_libdir_flag_spec_F77=' '
23302 allow_undefined_flag_F77=unsupported
23303 # Tell ltmain to make .lib files, not .a files.
23305 # Tell ltmain to make .dll files, not .so files.
23307 # FIXME: Setting linknames here is a bad hack.
23308 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
23309 # The linker will automatically build a .lib file if we build a DLL.
23310 old_archive_from_new_cmds_F77='true'
23311 # FIXME: Should let the user specify the lib program.
23312 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
23313 enable_shared_with_static_runtimes_F77=yes
23318 darwin* | rhapsody*)
23321 archive_cmds_need_lc_F77=no
23322 hardcode_direct_F77=no
23323 hardcode_automatic_F77=yes
23324 hardcode_shlibpath_var_F77=unsupported
23325 if test "$lt_cv_ld_force_load" = "yes"; then
23326 whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
23327 compiler_needs_object_F77=yes
23329 whole_archive_flag_spec_F77=''
23331 link_all_deplibs_F77=yes
23332 allow_undefined_flag_F77="$_lt_dar_allow_undefined"
23333 case $cc_basename in
23334 ifort*) _lt_dar_can_shared=yes ;;
23335 *) _lt_dar_can_shared=$GCC ;;
23337 if test "$_lt_dar_can_shared" = "yes"; then
23338 output_verbose_link_cmd=func_echo_all
23339 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
23340 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
23341 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
23342 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
23351 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23352 hardcode_libdir_flag_spec_F77='-L$libdir'
23353 hardcode_shlibpath_var_F77=no
23356 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23357 # support. Future versions do this automatically, but an explicit c++rt0.o
23358 # does not break anything, and helps significantly (at the cost of a little
23361 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23362 hardcode_libdir_flag_spec_F77='-R$libdir'
23363 hardcode_direct_F77=yes
23364 hardcode_shlibpath_var_F77=no
23367 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23369 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23370 hardcode_direct_F77=yes
23371 hardcode_minus_L_F77=yes
23372 hardcode_shlibpath_var_F77=no
23375 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23376 freebsd* | dragonfly*)
23377 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23378 hardcode_libdir_flag_spec_F77='-R$libdir'
23379 hardcode_direct_F77=yes
23380 hardcode_shlibpath_var_F77=no
23384 if test "$GCC" = yes; then
23385 archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
23387 archive_cmds_F77='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
23389 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23390 hardcode_libdir_separator_F77=:
23391 hardcode_direct_F77=yes
23393 # hardcode_minus_L: Not really in the search PATH,
23394 # but as the default location of the library.
23395 hardcode_minus_L_F77=yes
23396 export_dynamic_flag_spec_F77='${wl}-E'
23400 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
23401 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23403 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23405 if test "$with_gnu_ld" = no; then
23406 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23407 hardcode_libdir_separator_F77=:
23408 hardcode_direct_F77=yes
23409 hardcode_direct_absolute_F77=yes
23410 export_dynamic_flag_spec_F77='${wl}-E'
23411 # hardcode_minus_L: Not really in the search PATH,
23412 # but as the default location of the library.
23413 hardcode_minus_L_F77=yes
23418 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
23421 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23424 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23427 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23433 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23436 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23439 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23443 if test "$with_gnu_ld" = no; then
23444 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23445 hardcode_libdir_separator_F77=:
23449 hardcode_direct_F77=no
23450 hardcode_shlibpath_var_F77=no
23453 hardcode_direct_F77=yes
23454 hardcode_direct_absolute_F77=yes
23455 export_dynamic_flag_spec_F77='${wl}-E'
23457 # hardcode_minus_L: Not really in the search PATH,
23458 # but as the default location of the library.
23459 hardcode_minus_L_F77=yes
23465 irix5* | irix6* | nonstopux*)
23466 if test "$GCC" = yes; then
23467 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23468 # Try to use the -exported_symbol ld option, if it does not
23469 # work, assume that -exports_file does not work either and
23470 # implicitly export all symbols.
23471 # This should be the same for all languages, so no per-tag cache variable.
23472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
23473 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
23474 if ${lt_cv_irix_exported_symbol+:} false; then :
23475 $as_echo_n "(cached) " >&6
23477 save_LDFLAGS="$LDFLAGS"
23478 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
23479 cat > conftest.$ac_ext <<_ACEOF
23484 if ac_fn_f77_try_link "$LINENO"; then :
23485 lt_cv_irix_exported_symbol=yes
23487 lt_cv_irix_exported_symbol=no
23489 rm -f core conftest.err conftest.$ac_objext \
23490 conftest$ac_exeext conftest.$ac_ext
23491 LDFLAGS="$save_LDFLAGS"
23493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
23494 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
23495 if test "$lt_cv_irix_exported_symbol" = yes; then
23496 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
23499 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
23500 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
23502 archive_cmds_need_lc_F77='no'
23503 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23504 hardcode_libdir_separator_F77=:
23505 inherit_rpath_F77=yes
23506 link_all_deplibs_F77=yes
23510 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
23511 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23513 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23515 hardcode_libdir_flag_spec_F77='-R$libdir'
23516 hardcode_direct_F77=yes
23517 hardcode_shlibpath_var_F77=no
23521 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23522 hardcode_direct_F77=yes
23523 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23524 hardcode_libdir_separator_F77=:
23525 hardcode_shlibpath_var_F77=no
23532 if test -f /usr/libexec/ld.so; then
23533 hardcode_direct_F77=yes
23534 hardcode_shlibpath_var_F77=no
23535 hardcode_direct_absolute_F77=yes
23536 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23537 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23538 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23539 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23540 export_dynamic_flag_spec_F77='${wl}-E'
23543 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23544 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23545 hardcode_libdir_flag_spec_F77='-R$libdir'
23548 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23549 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23559 hardcode_libdir_flag_spec_F77='-L$libdir'
23560 hardcode_minus_L_F77=yes
23561 allow_undefined_flag_F77=unsupported
23562 archive_cmds_F77='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
23563 old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23567 if test "$GCC" = yes; then
23568 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23569 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23571 allow_undefined_flag_F77=' -expect_unresolved \*'
23572 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
23574 archive_cmds_need_lc_F77='no'
23575 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23576 hardcode_libdir_separator_F77=:
23579 osf4* | osf5*) # as osf3* with the addition of -msym flag
23580 if test "$GCC" = yes; then
23581 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23582 archive_cmds_F77='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23583 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23585 allow_undefined_flag_F77=' -expect_unresolved \*'
23586 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
23587 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
23588 $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'
23590 # Both c and cxx compiler support -rpath directly
23591 hardcode_libdir_flag_spec_F77='-rpath $libdir'
23593 archive_cmds_need_lc_F77='no'
23594 hardcode_libdir_separator_F77=:
23598 no_undefined_flag_F77=' -z defs'
23599 if test "$GCC" = yes; then
23601 archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23602 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23603 $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'
23605 case `$CC -V 2>&1` in
23608 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23609 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23610 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
23614 archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
23615 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23616 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
23620 hardcode_libdir_flag_spec_F77='-R$libdir'
23621 hardcode_shlibpath_var_F77=no
23623 solaris2.[0-5] | solaris2.[0-5].*) ;;
23625 # The compiler driver will combine and reorder linker options,
23626 # but understands `-z linker_flag'. GCC discards it without `$wl',
23627 # but is careful enough not to reorder.
23628 # Supported since Solaris 2.6 (maybe 2.5.1?)
23629 if test "$GCC" = yes; then
23630 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23632 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
23636 link_all_deplibs_F77=yes
23640 if test "x$host_vendor" = xsequent; then
23641 # Use $CC to link under sequent, because it throws in some extra .o
23642 # files that make .init and .fini sections work.
23643 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23645 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23647 hardcode_libdir_flag_spec_F77='-L$libdir'
23648 hardcode_direct_F77=yes
23649 hardcode_minus_L_F77=yes
23650 hardcode_shlibpath_var_F77=no
23654 case $host_vendor in
23656 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23657 hardcode_direct_F77=yes # is this really true???
23660 ## LD is ld it makes a PLAMLIB
23661 ## CC just makes a GrossModule.
23662 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23663 reload_cmds_F77='$CC -r -o $output$reload_objs'
23664 hardcode_direct_F77=no
23667 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23668 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
23671 runpath_var='LD_RUN_PATH'
23672 hardcode_shlibpath_var_F77=no
23676 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23677 hardcode_shlibpath_var_F77=no
23678 export_dynamic_flag_spec_F77='-Bexport'
23682 if test -d /usr/nec; then
23683 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23684 hardcode_shlibpath_var_F77=no
23685 runpath_var=LD_RUN_PATH
23686 hardcode_runpath_var=yes
23691 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
23692 no_undefined_flag_F77='${wl}-z,text'
23693 archive_cmds_need_lc_F77=no
23694 hardcode_shlibpath_var_F77=no
23695 runpath_var='LD_RUN_PATH'
23697 if test "$GCC" = yes; then
23698 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23699 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23701 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23702 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23706 sysv5* | sco3.2v5* | sco5v6*)
23707 # Note: We can NOT use -z defs as we might desire, because we do not
23708 # link with -lc, and that would cause any symbols used from libc to
23709 # always be unresolved, which means just about no library would
23710 # ever link correctly. If we're not using GNU ld we use -z text
23711 # though, which does catch some bad symbols but isn't as heavy-handed
23713 no_undefined_flag_F77='${wl}-z,text'
23714 allow_undefined_flag_F77='${wl}-z,nodefs'
23715 archive_cmds_need_lc_F77=no
23716 hardcode_shlibpath_var_F77=no
23717 hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
23718 hardcode_libdir_separator_F77=':'
23719 link_all_deplibs_F77=yes
23720 export_dynamic_flag_spec_F77='${wl}-Bexport'
23721 runpath_var='LD_RUN_PATH'
23723 if test "$GCC" = yes; then
23724 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23725 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23727 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23728 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23733 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23734 hardcode_libdir_flag_spec_F77='-L$libdir'
23735 hardcode_shlibpath_var_F77=no
23743 if test x$host_vendor = xsni; then
23745 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23746 export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
23753 $as_echo "$ld_shlibs_F77" >&6; }
23754 test "$ld_shlibs_F77" = no && can_build_shared=no
23756 with_gnu_ld_F77=$with_gnu_ld
23764 # Do we need to explicitly link libc?
23766 case "x$archive_cmds_need_lc_F77" in
23768 # Assume -lc should be added
23769 archive_cmds_need_lc_F77=yes
23771 if test "$enable_shared" = yes && test "$GCC" = yes; then
23772 case $archive_cmds_F77 in
23774 # FIXME: we may have to deal with multi-command sequences.
23777 # Test whether the compiler implicitly links with -lc since on some
23778 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23779 # to ld, don't add -lc before -lgcc.
23780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
23781 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
23782 if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
23783 $as_echo_n "(cached) " >&6
23786 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23789 (eval $ac_compile) 2>&5
23791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23792 test $ac_status = 0; } 2>conftest.err; then
23795 libobjs=conftest.$ac_objext
23797 wl=$lt_prog_compiler_wl_F77
23798 pic_flag=$lt_prog_compiler_pic_F77
23804 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23805 allow_undefined_flag_F77=
23806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
23807 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
23809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23810 test $ac_status = 0; }
23812 lt_cv_archive_cmds_need_lc_F77=no
23814 lt_cv_archive_cmds_need_lc_F77=yes
23816 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23818 cat conftest.err 1>&5
23823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
23824 $as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
23825 archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
23893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
23894 $as_echo_n "checking dynamic linker characteristics... " >&6; }
23896 library_names_spec=
23897 libname_spec='lib$name'
23901 postuninstall_cmds=
23905 shlibpath_overrides_runpath=unknown
23907 dynamic_linker="$host_os ld.so"
23908 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23909 need_lib_prefix=unknown
23910 hardcode_into_libs=no
23912 # when you set need_version to no, make sure it does not cause -set_version
23913 # flags to be left without arguments
23914 need_version=unknown
23918 version_type=linux # correct to gnu/linux during the next big refactor
23919 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23920 shlibpath_var=LIBPATH
23922 # AIX 3 has no versioning support, so we append a major version to the name.
23923 soname_spec='${libname}${release}${shared_ext}$major'
23927 version_type=linux # correct to gnu/linux during the next big refactor
23930 hardcode_into_libs=yes
23931 if test "$host_cpu" = ia64; then
23932 # AIX 5 supports IA64
23933 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23934 shlibpath_var=LD_LIBRARY_PATH
23936 # With GCC up to 2.95.x, collect2 would create an import file
23937 # for dependence libraries. The import file would start with
23938 # the line `#! .'. This would cause the generated library to
23939 # depend on `.', always an invalid library. This was fixed in
23940 # development snapshots of GCC prior to 3.0.
23942 aix4 | aix4.[01] | aix4.[01].*)
23943 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23945 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
23948 can_build_shared=no
23952 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23953 # soname into executable. Probably we can add versioning support to
23954 # collect2, so additional links can be useful in future.
23955 if test "$aix_use_runtimelinking" = yes; then
23956 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23957 # instead of lib<name>.a to let people know that these are not
23958 # typical AIX shared libraries.
23959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23961 # We preserve .a as extension for shared libraries through AIX4.2
23962 # and later when we are not doing run time linking.
23963 library_names_spec='${libname}${release}.a $libname.a'
23964 soname_spec='${libname}${release}${shared_ext}$major'
23966 shlibpath_var=LIBPATH
23973 # Since July 2007 AmigaOS4 officially supports .so libraries.
23974 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
23975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23978 library_names_spec='$libname.ixlibrary $libname.a'
23979 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23980 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'
23986 library_names_spec='${libname}${shared_ext}'
23987 dynamic_linker="$host_os ld.so"
23988 shlibpath_var=LIBRARY_PATH
23992 version_type=linux # correct to gnu/linux during the next big refactor
23994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23995 soname_spec='${libname}${release}${shared_ext}$major'
23996 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23997 shlibpath_var=LD_LIBRARY_PATH
23998 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23999 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24000 # the default ld.so.conf also contains /usr/contrib/lib and
24001 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24002 # libtool to hard-code these into programs
24005 cygwin* | mingw* | pw32* | cegcc*)
24006 version_type=windows
24011 case $GCC,$cc_basename in
24014 library_names_spec='$libname.dll.a'
24015 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24016 postinstall_cmds='base_file=`basename \${file}`~
24017 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
24018 dldir=$destdir/`dirname \$dlpath`~
24019 test -d \$dldir || mkdir -p \$dldir~
24020 $install_prog $dir/$dlname \$dldir/$dlname~
24021 chmod a+x \$dldir/$dlname~
24022 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
24023 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
24025 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24026 dlpath=$dir/\$dldll~
24028 shlibpath_overrides_runpath=yes
24032 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24033 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24037 # MinGW DLLs use traditional 'lib' prefix
24038 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24041 # pw32 DLLs use 'pw' prefix rather than 'lib'
24042 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24045 dynamic_linker='Win32 ld.exe'
24050 libname_spec='$name'
24051 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24052 library_names_spec='${libname}.dll.lib'
24056 sys_lib_search_path_spec=
24059 for lt_path in $LIB
24062 # Let DOS variable expansion print the short 8.3 style file name.
24063 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
24064 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
24067 # Convert to MSYS style.
24068 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
24071 # Convert to unix form, then to dos form, then back to unix form
24072 # but this time dos style (no spaces!) so that the unix form looks
24073 # like /cygdrive/c/PROGRA~1:/cygdr...
24074 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
24075 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
24076 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24079 sys_lib_search_path_spec="$LIB"
24080 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
24081 # It is most probably a Windows format PATH.
24082 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24084 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24086 # FIXME: find the short name or the path components, as spaces are
24087 # common. (e.g. "Program Files" -> "PROGRA~1")
24091 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24092 postinstall_cmds='base_file=`basename \${file}`~
24093 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
24094 dldir=$destdir/`dirname \$dlpath`~
24095 test -d \$dldir || mkdir -p \$dldir~
24096 $install_prog $dir/$dlname \$dldir/$dlname'
24097 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24098 dlpath=$dir/\$dldll~
24100 shlibpath_overrides_runpath=yes
24101 dynamic_linker='Win32 link.exe'
24105 # Assume MSVC wrapper
24106 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24107 dynamic_linker='Win32 ld.exe'
24110 # FIXME: first we should search . and the directory the executable is in
24114 darwin* | rhapsody*)
24115 dynamic_linker="$host_os dyld"
24116 version_type=darwin
24119 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24120 soname_spec='${libname}${release}${major}$shared_ext'
24121 shlibpath_overrides_runpath=yes
24122 shlibpath_var=DYLD_LIBRARY_PATH
24123 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24125 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24129 version_type=linux # correct to gnu/linux during the next big refactor
24132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24133 soname_spec='${libname}${release}${shared_ext}$major'
24134 shlibpath_var=LD_LIBRARY_PATH
24137 freebsd* | dragonfly*)
24138 # DragonFly does not have aout. When/if they implement a new
24139 # versioning mechanism, adjust this.
24140 if test -x /usr/bin/objformat; then
24141 objformat=`/usr/bin/objformat`
24144 freebsd[23].*) objformat=aout ;;
24145 *) objformat=elf ;;
24148 version_type=freebsd-$objformat
24149 case $version_type in
24151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24156 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24160 shlibpath_var=LD_LIBRARY_PATH
24163 shlibpath_overrides_runpath=yes
24165 freebsd3.[01]* | freebsdelf3.[01]*)
24166 shlibpath_overrides_runpath=yes
24167 hardcode_into_libs=yes
24169 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24170 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24171 shlibpath_overrides_runpath=no
24172 hardcode_into_libs=yes
24174 *) # from 4.6 on, and DragonFly
24175 shlibpath_overrides_runpath=yes
24176 hardcode_into_libs=yes
24182 version_type=linux # correct to gnu/linux during the next big refactor
24185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24186 soname_spec='${libname}${release}${shared_ext}$major'
24187 shlibpath_var=LD_LIBRARY_PATH
24188 shlibpath_overrides_runpath=no
24189 hardcode_into_libs=yes
24193 version_type=linux # correct to gnu/linux during the next big refactor
24196 dynamic_linker="$host_os runtime_loader"
24197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24198 soname_spec='${libname}${release}${shared_ext}$major'
24199 shlibpath_var=LIBRARY_PATH
24200 shlibpath_overrides_runpath=yes
24201 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
24202 hardcode_into_libs=yes
24205 hpux9* | hpux10* | hpux11*)
24206 # Give a soname corresponding to the major version so that dld.sl refuses to
24207 # link against other versions.
24214 hardcode_into_libs=yes
24215 dynamic_linker="$host_os dld.so"
24216 shlibpath_var=LD_LIBRARY_PATH
24217 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24219 soname_spec='${libname}${release}${shared_ext}$major'
24220 if test "X$HPUX_IA64_MODE" = X32; then
24221 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24223 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24225 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24229 hardcode_into_libs=yes
24230 dynamic_linker="$host_os dld.sl"
24231 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24234 soname_spec='${libname}${release}${shared_ext}$major'
24235 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24236 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24240 dynamic_linker="$host_os dld.sl"
24241 shlibpath_var=SHLIB_PATH
24242 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24244 soname_spec='${libname}${release}${shared_ext}$major'
24247 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24248 postinstall_cmds='chmod 555 $lib'
24249 # or fails outright, so override atomically:
24250 install_override_mode=555
24254 version_type=linux # correct to gnu/linux during the next big refactor
24257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24258 soname_spec='${libname}${release}${shared_ext}$major'
24259 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24260 shlibpath_var=LD_LIBRARY_PATH
24261 shlibpath_overrides_runpath=no
24262 hardcode_into_libs=yes
24265 irix5* | irix6* | nonstopux*)
24267 nonstopux*) version_type=nonstopux ;;
24269 if test "$lt_cv_prog_gnu_ld" = yes; then
24270 version_type=linux # correct to gnu/linux during the next big refactor
24277 soname_spec='${libname}${release}${shared_ext}$major'
24278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24280 irix5* | nonstopux*)
24281 libsuff= shlibsuff=
24284 case $LD in # libtool.m4 will add one of these switches to LD
24285 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24286 libsuff= shlibsuff= libmagic=32-bit;;
24287 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24288 libsuff=32 shlibsuff=N32 libmagic=N32;;
24289 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24290 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24291 *) libsuff= shlibsuff= libmagic=never-match;;
24295 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24296 shlibpath_overrides_runpath=no
24297 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24298 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24299 hardcode_into_libs=yes
24302 # No shared lib support for Linux oldld, aout, or coff.
24303 linux*oldld* | linux*aout* | linux*coff*)
24307 # This must be glibc/ELF.
24308 linux* | k*bsd*-gnu | kopensolaris*-gnu)
24309 version_type=linux # correct to gnu/linux during the next big refactor
24312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24313 soname_spec='${libname}${release}${shared_ext}$major'
24314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24315 shlibpath_var=LD_LIBRARY_PATH
24316 shlibpath_overrides_runpath=no
24318 # Some binutils ld are patched to set DT_RUNPATH
24319 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
24320 $as_echo_n "(cached) " >&6
24322 lt_cv_shlibpath_overrides_runpath=no
24323 save_LDFLAGS=$LDFLAGS
24324 save_libdir=$libdir
24325 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
24326 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
24327 cat > conftest.$ac_ext <<_ACEOF
24332 if ac_fn_f77_try_link "$LINENO"; then :
24333 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
24334 lt_cv_shlibpath_overrides_runpath=yes
24337 rm -f core conftest.err conftest.$ac_objext \
24338 conftest$ac_exeext conftest.$ac_ext
24339 LDFLAGS=$save_LDFLAGS
24340 libdir=$save_libdir
24344 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24346 # This implies no fast_install, which is unacceptable.
24347 # Some rework will be needed to allow for fast_install
24348 # before this can be enabled.
24349 hardcode_into_libs=yes
24351 # Append ld.so.conf contents to the search path
24352 if test -f /etc/ld.so.conf; then
24353 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' ' '`
24354 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24357 # We used to test for /lib/ld.so.1 and disable shared libraries on
24358 # powerpc, because MkLinux only supported shared libraries with the
24359 # GNU dynamic linker. Since this was broken with cross compilers,
24360 # most powerpc-linux boxes support dynamic linking these days and
24361 # people can always --disable-shared, the test was removed, and we
24362 # assume the GNU/Linux dynamic linker is in use.
24363 dynamic_linker='GNU/Linux ld.so'
24370 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
24371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24373 dynamic_linker='NetBSD (a.out) ld.so'
24375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24376 soname_spec='${libname}${release}${shared_ext}$major'
24377 dynamic_linker='NetBSD ld.elf_so'
24379 shlibpath_var=LD_LIBRARY_PATH
24380 shlibpath_overrides_runpath=yes
24381 hardcode_into_libs=yes
24385 version_type=linux # correct to gnu/linux during the next big refactor
24386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24387 shlibpath_var=LD_LIBRARY_PATH
24388 shlibpath_overrides_runpath=yes
24395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24396 soname_spec='${libname}${release}${shared_ext}$major'
24397 shlibpath_var=LD_LIBRARY_PATH
24398 shlibpath_overrides_runpath=no
24399 hardcode_into_libs=yes
24400 dynamic_linker='ldqnx.so'
24405 sys_lib_dlsearch_path_spec="/usr/lib"
24407 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24409 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24410 *) need_version=no ;;
24412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24414 shlibpath_var=LD_LIBRARY_PATH
24415 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24417 openbsd2.[89] | openbsd2.[89].*)
24418 shlibpath_overrides_runpath=no
24421 shlibpath_overrides_runpath=yes
24425 shlibpath_overrides_runpath=yes
24430 libname_spec='$name'
24433 library_names_spec='$libname${shared_ext} $libname.a'
24434 dynamic_linker='OS/2 ld.exe'
24435 shlibpath_var=LIBPATH
24438 osf3* | osf4* | osf5*)
24442 soname_spec='${libname}${release}${shared_ext}$major'
24443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24444 shlibpath_var=LD_LIBRARY_PATH
24445 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24446 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24454 version_type=linux # correct to gnu/linux during the next big refactor
24457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24458 soname_spec='${libname}${release}${shared_ext}$major'
24459 shlibpath_var=LD_LIBRARY_PATH
24460 shlibpath_overrides_runpath=yes
24461 hardcode_into_libs=yes
24462 # ldd complains unless libraries are executable
24463 postinstall_cmds='chmod +x $lib'
24468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24469 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24470 shlibpath_var=LD_LIBRARY_PATH
24471 shlibpath_overrides_runpath=yes
24472 if test "$with_gnu_ld" = yes; then
24479 version_type=linux # correct to gnu/linux during the next big refactor
24480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24481 soname_spec='${libname}${release}${shared_ext}$major'
24482 shlibpath_var=LD_LIBRARY_PATH
24483 case $host_vendor in
24485 shlibpath_overrides_runpath=no
24487 runpath_var=LD_RUN_PATH
24495 shlibpath_overrides_runpath=no
24496 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24502 if test -d /usr/nec ;then
24503 version_type=linux # correct to gnu/linux during the next big refactor
24504 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24505 soname_spec='$libname${shared_ext}.$major'
24506 shlibpath_var=LD_LIBRARY_PATH
24510 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24511 version_type=freebsd-elf
24514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24515 soname_spec='${libname}${release}${shared_ext}$major'
24516 shlibpath_var=LD_LIBRARY_PATH
24517 shlibpath_overrides_runpath=yes
24518 hardcode_into_libs=yes
24519 if test "$with_gnu_ld" = yes; then
24520 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24522 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24525 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24529 sys_lib_dlsearch_path_spec='/usr/lib'
24533 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
24534 version_type=linux # correct to gnu/linux during the next big refactor
24537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24538 shlibpath_var=LD_LIBRARY_PATH
24539 shlibpath_overrides_runpath=no
24540 hardcode_into_libs=yes
24544 version_type=linux # correct to gnu/linux during the next big refactor
24545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24546 soname_spec='${libname}${release}${shared_ext}$major'
24547 shlibpath_var=LD_LIBRARY_PATH
24554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
24555 $as_echo "$dynamic_linker" >&6; }
24556 test "$dynamic_linker" = no && can_build_shared=no
24558 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24559 if test "$GCC" = yes; then
24560 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24563 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
24564 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
24566 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
24567 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
24607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
24608 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
24609 hardcode_action_F77=
24610 if test -n "$hardcode_libdir_flag_spec_F77" ||
24611 test -n "$runpath_var_F77" ||
24612 test "X$hardcode_automatic_F77" = "Xyes" ; then
24614 # We can hardcode non-existent directories.
24615 if test "$hardcode_direct_F77" != no &&
24616 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24617 # have to relink, otherwise we might link with an installed library
24618 # when we should be linking with a yet-to-be-installed one
24619 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
24620 test "$hardcode_minus_L_F77" != no; then
24621 # Linking always hardcodes the temporary library directory.
24622 hardcode_action_F77=relink
24624 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24625 hardcode_action_F77=immediate
24628 # We cannot hardcode anything, or else we can only hardcode existing
24630 hardcode_action_F77=unsupported
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
24633 $as_echo "$hardcode_action_F77" >&6; }
24635 if test "$hardcode_action_F77" = relink ||
24636 test "$inherit_rpath_F77" = yes; then
24637 # Fast installation is not supported
24638 enable_fast_install=no
24639 elif test "$shlibpath_overrides_runpath" = yes ||
24640 test "$enable_shared" = no; then
24641 # Fast installation is not necessary
24642 enable_fast_install=needless
24651 fi # test -n "$compiler"
24655 CFLAGS="$lt_save_CFLAGS"
24656 fi # test "$_lt_disable_F77" != yes
24659 ac_cpp='$CPP $CPPFLAGS'
24660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24676 ac_config_commands="$ac_config_commands libtool"
24681 # Only expand once:
24685 # Generate an error here if attempting to build both shared and static when
24686 # $libname.a is in $library_names_spec (as mentioned above), rather than
24687 # wait for ar or ld to fail.
24689 if test "$enable_shared" = yes && test "$enable_static" = yes; then
24690 case $library_names_spec in
24692 as_fn_error $? "cannot create both shared and static libraries on this system, --disable one of the two" "$LINENO" 5
24697 if test "$enable_static" = yes; then
24698 ENABLE_STATIC_TRUE=
24699 ENABLE_STATIC_FALSE='#'
24701 ENABLE_STATIC_TRUE='#'
24702 ENABLE_STATIC_FALSE=
24707 # Many of these library and header checks are for the benefit of
24708 # supplementary programs. libgmp doesn't use anything too weird.
24710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24711 $as_echo_n "checking for ANSI C header files... " >&6; }
24712 if ${ac_cv_header_stdc+:} false; then :
24713 $as_echo_n "(cached) " >&6
24715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24716 /* end confdefs.h. */
24717 #include <stdlib.h>
24718 #include <stdarg.h>
24719 #include <string.h>
24730 if ac_fn_c_try_compile "$LINENO"; then :
24731 ac_cv_header_stdc=yes
24733 ac_cv_header_stdc=no
24735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24737 if test $ac_cv_header_stdc = yes; then
24738 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24740 /* end confdefs.h. */
24741 #include <string.h>
24744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24745 $EGREP "memchr" >/dev/null 2>&1; then :
24748 ac_cv_header_stdc=no
24754 if test $ac_cv_header_stdc = yes; then
24755 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24757 /* end confdefs.h. */
24758 #include <stdlib.h>
24761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24762 $EGREP "free" >/dev/null 2>&1; then :
24765 ac_cv_header_stdc=no
24771 if test $ac_cv_header_stdc = yes; then
24772 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24773 if test "$cross_compiling" = yes; then :
24776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24777 /* end confdefs.h. */
24779 #include <stdlib.h>
24780 #if ((' ' & 0x0FF) == 0x020)
24781 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24782 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24784 # define ISLOWER(c) \
24785 (('a' <= (c) && (c) <= 'i') \
24786 || ('j' <= (c) && (c) <= 'r') \
24787 || ('s' <= (c) && (c) <= 'z'))
24788 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24791 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24796 for (i = 0; i < 256; i++)
24797 if (XOR (islower (i), ISLOWER (i))
24798 || toupper (i) != TOUPPER (i))
24803 if ac_fn_c_try_run "$LINENO"; then :
24806 ac_cv_header_stdc=no
24808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24809 conftest.$ac_objext conftest.beam conftest.$ac_ext
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
24815 $as_echo "$ac_cv_header_stdc" >&6; }
24816 if test $ac_cv_header_stdc = yes; then
24818 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
24823 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
24824 if ${ac_cv_header_time+:} false; then :
24825 $as_echo_n "(cached) " >&6
24827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24828 /* end confdefs.h. */
24829 #include <sys/types.h>
24830 #include <sys/time.h>
24836 if ((struct tm *) 0)
24842 if ac_fn_c_try_compile "$LINENO"; then :
24843 ac_cv_header_time=yes
24845 ac_cv_header_time=no
24847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
24850 $as_echo "$ac_cv_header_time" >&6; }
24851 if test $ac_cv_header_time = yes; then
24853 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
24858 # Reasons for testing:
24859 # float.h - not in SunOS bundled cc
24860 # invent.h - IRIX specific
24861 # langinfo.h - X/Open standard only, not in djgpp for instance
24862 # locale.h - old systems won't have this
24863 # nl_types.h - X/Open standard only, not in djgpp for instance
24864 # (usually langinfo.h gives nl_item etc, but not on netbsd 1.4.1)
24865 # sys/attributes.h - IRIX specific
24866 # sys/iograph.h - IRIX specific
24867 # sys/mman.h - not in Cray Unicos
24868 # sys/param.h - not in mingw
24869 # sys/processor.h - solaris specific, though also present in macos
24870 # sys/pstat.h - HPUX specific
24871 # sys/resource.h - not in mingw
24872 # sys/sysctl.h - not in mingw
24873 # sys/sysinfo.h - OSF specific
24874 # sys/syssgi.h - IRIX specific
24875 # sys/systemcfg.h - AIX specific
24876 # sys/time.h - autoconf suggests testing, don't know anywhere without it
24877 # sys/times.h - not in mingw
24878 # machine/hal_sysinfo.h - OSF specific
24880 # inttypes.h, stdint.h, unistd.h and sys/types.h are already in the autoconf
24883 for ac_header in fcntl.h float.h invent.h langinfo.h locale.h nl_types.h sys/attributes.h sys/iograph.h sys/mman.h sys/param.h sys/processor.h sys/pstat.h sys/sysinfo.h sys/syssgi.h sys/systemcfg.h sys/time.h sys/times.h
24885 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24886 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24887 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24888 cat >>confdefs.h <<_ACEOF
24889 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24897 # On SunOS, sys/resource.h needs sys/time.h (for struct timeval)
24898 for ac_header in sys/resource.h
24900 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "#if TIME_WITH_SYS_TIME
24901 # include <sys/time.h>
24904 # if HAVE_SYS_TIME_H
24905 # include <sys/time.h>
24911 if test "x$ac_cv_header_sys_resource_h" = xyes; then :
24912 cat >>confdefs.h <<_ACEOF
24913 #define HAVE_SYS_RESOURCE_H 1
24921 # On NetBSD and OpenBSD, sys/sysctl.h needs sys/param.h for various constants
24922 for ac_header in sys/sysctl.h
24924 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if HAVE_SYS_PARAM_H
24925 # include <sys/param.h>
24928 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
24929 cat >>confdefs.h <<_ACEOF
24930 #define HAVE_SYS_SYSCTL_H 1
24938 # On OSF 4.0, <machine/hal_sysinfo.h> must have <sys/sysinfo.h> for ulong_t
24939 for ac_header in machine/hal_sysinfo.h
24941 ac_fn_c_check_header_compile "$LINENO" "machine/hal_sysinfo.h" "ac_cv_header_machine_hal_sysinfo_h" "#if HAVE_SYS_SYSINFO_H
24942 # include <sys/sysinfo.h>
24945 if test "x$ac_cv_header_machine_hal_sysinfo_h" = xyes; then :
24946 cat >>confdefs.h <<_ACEOF
24947 #define HAVE_MACHINE_HAL_SYSINFO_H 1
24955 # Reasons for testing:
24956 # optarg - not declared in mingw
24957 # fgetc, fscanf, ungetc, vfprintf - not declared in SunOS 4
24958 # sys_errlist, sys_nerr - not declared in SunOS 4
24960 # optarg should be in unistd.h and the rest in stdio.h, both of which are
24961 # in the autoconf default includes.
24963 # sys_errlist and sys_nerr are supposed to be in <errno.h> on SunOS according
24964 # to the man page (but aren't), in glibc they're in stdio.h.
24966 ac_fn_c_check_decl "$LINENO" "fgetc" "ac_cv_have_decl_fgetc" "$ac_includes_default"
24967 if test "x$ac_cv_have_decl_fgetc" = xyes; then :
24973 cat >>confdefs.h <<_ACEOF
24974 #define HAVE_DECL_FGETC $ac_have_decl
24976 ac_fn_c_check_decl "$LINENO" "fscanf" "ac_cv_have_decl_fscanf" "$ac_includes_default"
24977 if test "x$ac_cv_have_decl_fscanf" = xyes; then :
24983 cat >>confdefs.h <<_ACEOF
24984 #define HAVE_DECL_FSCANF $ac_have_decl
24986 ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "$ac_includes_default"
24987 if test "x$ac_cv_have_decl_optarg" = xyes; then :
24993 cat >>confdefs.h <<_ACEOF
24994 #define HAVE_DECL_OPTARG $ac_have_decl
24996 ac_fn_c_check_decl "$LINENO" "ungetc" "ac_cv_have_decl_ungetc" "$ac_includes_default"
24997 if test "x$ac_cv_have_decl_ungetc" = xyes; then :
25003 cat >>confdefs.h <<_ACEOF
25004 #define HAVE_DECL_UNGETC $ac_have_decl
25006 ac_fn_c_check_decl "$LINENO" "vfprintf" "ac_cv_have_decl_vfprintf" "$ac_includes_default"
25007 if test "x$ac_cv_have_decl_vfprintf" = xyes; then :
25013 cat >>confdefs.h <<_ACEOF
25014 #define HAVE_DECL_VFPRINTF $ac_have_decl
25017 ac_fn_c_check_decl "$LINENO" "sys_errlist" "ac_cv_have_decl_sys_errlist" "#include <stdio.h>
25020 if test "x$ac_cv_have_decl_sys_errlist" = xyes; then :
25026 cat >>confdefs.h <<_ACEOF
25027 #define HAVE_DECL_SYS_ERRLIST $ac_have_decl
25029 ac_fn_c_check_decl "$LINENO" "sys_nerr" "ac_cv_have_decl_sys_nerr" "#include <stdio.h>
25032 if test "x$ac_cv_have_decl_sys_nerr" = xyes; then :
25038 cat >>confdefs.h <<_ACEOF
25039 #define HAVE_DECL_SYS_NERR $ac_have_decl
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
25044 $as_echo_n "checking return type of signal handlers... " >&6; }
25045 if ${ac_cv_type_signal+:} false; then :
25046 $as_echo_n "(cached) " >&6
25048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25049 /* end confdefs.h. */
25050 #include <sys/types.h>
25051 #include <signal.h>
25056 return *(signal (0, 0)) (0) == 1;
25061 if ac_fn_c_try_compile "$LINENO"; then :
25062 ac_cv_type_signal=int
25064 ac_cv_type_signal=void
25066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
25069 $as_echo "$ac_cv_type_signal" >&6; }
25071 cat >>confdefs.h <<_ACEOF
25072 #define RETSIGTYPE $ac_cv_type_signal
25077 # Reasons for testing:
25079 # long double - not in the HP bundled K&R cc
25080 # long long - only in reasonably recent compilers
25081 # ptrdiff_t - seems to be everywhere, maybe don't need to check this
25082 # quad_t - BSD specific
25083 # uint_least32_t - C99
25085 # the default includes are sufficient for all these types
25087 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
25088 if test "x$ac_cv_type_intmax_t" = xyes; then :
25090 cat >>confdefs.h <<_ACEOF
25091 #define HAVE_INTMAX_T 1
25096 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
25097 if test "x$ac_cv_type_long_double" = xyes; then :
25099 cat >>confdefs.h <<_ACEOF
25100 #define HAVE_LONG_DOUBLE 1
25105 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
25106 if test "x$ac_cv_type_long_long" = xyes; then :
25108 cat >>confdefs.h <<_ACEOF
25109 #define HAVE_LONG_LONG 1
25114 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
25115 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
25117 cat >>confdefs.h <<_ACEOF
25118 #define HAVE_PTRDIFF_T 1
25123 ac_fn_c_check_type "$LINENO" "quad_t" "ac_cv_type_quad_t" "$ac_includes_default"
25124 if test "x$ac_cv_type_quad_t" = xyes; then :
25126 cat >>confdefs.h <<_ACEOF
25127 #define HAVE_QUAD_T 1
25132 ac_fn_c_check_type "$LINENO" "uint_least32_t" "ac_cv_type_uint_least32_t" "$ac_includes_default"
25133 if test "x$ac_cv_type_uint_least32_t" = xyes; then :
25135 cat >>confdefs.h <<_ACEOF
25136 #define HAVE_UINT_LEAST32_T 1
25141 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
25142 if test "x$ac_cv_type_intptr_t" = xyes; then :
25144 cat >>confdefs.h <<_ACEOF
25145 #define HAVE_INTPTR_T 1
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
25153 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
25154 if ${ac_cv_c_stringize+:} false; then :
25155 $as_echo_n "(cached) " >&6
25157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25158 /* end confdefs.h. */
25161 char *s = x(teststring);
25163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25164 $EGREP "#teststring" >/dev/null 2>&1; then :
25165 ac_cv_c_stringize=no
25167 ac_cv_c_stringize=yes
25172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
25173 $as_echo "$ac_cv_c_stringize" >&6; }
25174 if test $ac_cv_c_stringize = yes; then
25176 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
25181 # FIXME: Really want #ifndef __cplusplus around the #define volatile
25182 # replacement autoconf gives, since volatile is always available in C++.
25183 # But we don't use it in C++ currently.
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
25185 $as_echo_n "checking for working volatile... " >&6; }
25186 if ${ac_cv_c_volatile+:} false; then :
25187 $as_echo_n "(cached) " >&6
25189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25190 /* end confdefs.h. */
25197 int * volatile y = (int *) 0;
25203 if ac_fn_c_try_compile "$LINENO"; then :
25204 ac_cv_c_volatile=yes
25206 ac_cv_c_volatile=no
25208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
25211 $as_echo "$ac_cv_c_volatile" >&6; }
25212 if test $ac_cv_c_volatile = no; then
25214 $as_echo "#define volatile /**/" >>confdefs.h
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
25220 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
25221 if ${ac_cv_c_restrict+:} false; then :
25222 $as_echo_n "(cached) " >&6
25224 ac_cv_c_restrict=no
25225 # The order here caters to the fact that C++ does not require restrict.
25226 for ac_kw in __restrict __restrict__ _Restrict restrict; do
25227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25228 /* end confdefs.h. */
25229 typedef int * int_ptr;
25230 int foo (int_ptr $ac_kw ip) {
25237 int * $ac_kw t = s;
25244 if ac_fn_c_try_compile "$LINENO"; then :
25245 ac_cv_c_restrict=$ac_kw
25247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25248 test "$ac_cv_c_restrict" != no && break
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
25253 $as_echo "$ac_cv_c_restrict" >&6; }
25255 case $ac_cv_c_restrict in
25257 no) $as_echo "#define restrict /**/" >>confdefs.h
25259 *) cat >>confdefs.h <<_ACEOF
25260 #define restrict $ac_cv_c_restrict
25266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <stdarg.h> exists and works" >&5
25267 $as_echo_n "checking whether <stdarg.h> exists and works... " >&6; }
25268 if ${gmp_cv_c_stdarg+:} false; then :
25269 $as_echo_n "(cached) " >&6
25271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25272 /* end confdefs.h. */
25273 #include <stdarg.h>
25274 int foo (int x, ...)
25279 y = va_arg (ap, int);
25291 if ac_fn_c_try_compile "$LINENO"; then :
25292 gmp_cv_c_stdarg=yes
25296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_stdarg" >&5
25300 $as_echo "$gmp_cv_c_stdarg" >&6; }
25301 if test $gmp_cv_c_stdarg = yes; then
25303 $as_echo "#define HAVE_STDARG 1" >>confdefs.h
25307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((const)) works" >&5
25308 $as_echo_n "checking whether gcc __attribute__ ((const)) works... " >&6; }
25309 if ${gmp_cv_c_attribute_const+:} false; then :
25310 $as_echo_n "(cached) " >&6
25312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25313 /* end confdefs.h. */
25314 int foo (int x) __attribute__ ((const));
25323 if ac_fn_c_try_compile "$LINENO"; then :
25324 gmp_cv_c_attribute_const=yes
25326 gmp_cv_c_attribute_const=no
25328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_const" >&5
25332 $as_echo "$gmp_cv_c_attribute_const" >&6; }
25333 if test $gmp_cv_c_attribute_const = yes; then
25335 $as_echo "#define HAVE_ATTRIBUTE_CONST 1" >>confdefs.h
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((malloc)) works" >&5
25340 $as_echo_n "checking whether gcc __attribute__ ((malloc)) works... " >&6; }
25341 if ${gmp_cv_c_attribute_malloc+:} false; then :
25342 $as_echo_n "(cached) " >&6
25344 cat >conftest.c <<EOF
25345 void *foo (int x) __attribute__ ((malloc));
25347 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1"
25348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
25349 (eval $gmp_compile) 2>&5
25351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25352 test $ac_status = 0; }; then
25353 if grep "attribute directive ignored" conftest.out >/dev/null; then
25354 gmp_cv_c_attribute_malloc=no
25356 gmp_cv_c_attribute_malloc=yes
25359 gmp_cv_c_attribute_malloc=no
25361 cat conftest.out >&5
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_malloc" >&5
25366 $as_echo "$gmp_cv_c_attribute_malloc" >&6; }
25367 if test $gmp_cv_c_attribute_malloc = yes; then
25369 $as_echo "#define HAVE_ATTRIBUTE_MALLOC 1" >>confdefs.h
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5
25374 $as_echo_n "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; }
25375 if ${gmp_cv_c_attribute_mode+:} false; then :
25376 $as_echo_n "(cached) " >&6
25378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25379 /* end confdefs.h. */
25380 typedef int SItype __attribute__ ((mode (SI)));
25389 if ac_fn_c_try_compile "$LINENO"; then :
25390 gmp_cv_c_attribute_mode=yes
25392 gmp_cv_c_attribute_mode=no
25394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5
25398 $as_echo "$gmp_cv_c_attribute_mode" >&6; }
25399 if test $gmp_cv_c_attribute_mode = yes; then
25401 $as_echo "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((noreturn)) works" >&5
25406 $as_echo_n "checking whether gcc __attribute__ ((noreturn)) works... " >&6; }
25407 if ${gmp_cv_c_attribute_noreturn+:} false; then :
25408 $as_echo_n "(cached) " >&6
25410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25411 /* end confdefs.h. */
25412 void foo (int x) __attribute__ ((noreturn));
25421 if ac_fn_c_try_compile "$LINENO"; then :
25422 gmp_cv_c_attribute_noreturn=yes
25424 gmp_cv_c_attribute_noreturn=no
25426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_noreturn" >&5
25430 $as_echo "$gmp_cv_c_attribute_noreturn" >&6; }
25431 if test $gmp_cv_c_attribute_noreturn = yes; then
25433 $as_echo "#define HAVE_ATTRIBUTE_NORETURN 1" >>confdefs.h
25438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
25439 $as_echo_n "checking for inline... " >&6; }
25440 if ${ac_cv_c_inline+:} false; then :
25441 $as_echo_n "(cached) " >&6
25444 for ac_kw in inline __inline__ __inline; do
25445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25446 /* end confdefs.h. */
25447 #ifndef __cplusplus
25449 static $ac_kw foo_t static_foo () {return 0; }
25450 $ac_kw foo_t foo () {return 0; }
25454 if ac_fn_c_try_compile "$LINENO"; then :
25455 ac_cv_c_inline=$ac_kw
25457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25458 test "$ac_cv_c_inline" != no && break
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
25463 $as_echo "$ac_cv_c_inline" >&6; }
25465 case $ac_cv_c_inline in
25468 case $ac_cv_c_inline in
25470 *) ac_val=$ac_cv_c_inline;;
25472 cat >>confdefs.h <<_ACEOF
25473 #ifndef __cplusplus
25474 #define inline $ac_val
25481 case $ac_cv_c_inline in
25484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25485 /* end confdefs.h. */
25486 #define __GMP_WITHIN_CONFIGURE_INLINE 1
25487 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
25488 #define GMP_NAIL_BITS $GMP_NAIL_BITS
25489 #define GMP_LIMB_BITS 123
25490 $DEFN_LONG_LONG_LIMB
25491 #include "$srcdir/gmp-h.in"
25493 #ifndef __GMP_EXTERN_INLINE
25505 if ac_fn_c_try_compile "$LINENO"; then :
25508 case $ac_cv_c_inline in
25509 yes) tmp_inline=inline ;;
25510 *) tmp_inline=$ac_cv_c_inline ;;
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&5
25513 $as_echo "$as_me: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&2;}
25515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25523 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
25524 # These system don't have libm, or don't need it
25527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
25528 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
25529 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
25530 $as_echo_n "(cached) " >&6
25532 ac_check_lib_save_LIBS=$LIBS
25534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25535 /* end confdefs.h. */
25537 /* Override any GCC internal prototype to avoid an error.
25538 Use char because int might match the return type of a GCC
25539 builtin and then its argument prototype would still apply. */
25543 char _mwvalidcheckl ();
25547 return _mwvalidcheckl ();
25552 if ac_fn_c_try_link "$LINENO"; then :
25553 ac_cv_lib_mw__mwvalidcheckl=yes
25555 ac_cv_lib_mw__mwvalidcheckl=no
25557 rm -f core conftest.err conftest.$ac_objext \
25558 conftest$ac_exeext conftest.$ac_ext
25559 LIBS=$ac_check_lib_save_LIBS
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
25562 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
25563 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
25568 $as_echo_n "checking for cos in -lm... " >&6; }
25569 if ${ac_cv_lib_m_cos+:} false; then :
25570 $as_echo_n "(cached) " >&6
25572 ac_check_lib_save_LIBS=$LIBS
25574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25575 /* end confdefs.h. */
25577 /* Override any GCC internal prototype to avoid an error.
25578 Use char because int might match the return type of a GCC
25579 builtin and then its argument prototype would still apply. */
25592 if ac_fn_c_try_link "$LINENO"; then :
25593 ac_cv_lib_m_cos=yes
25597 rm -f core conftest.err conftest.$ac_objext \
25598 conftest$ac_exeext conftest.$ac_ext
25599 LIBS=$ac_check_lib_save_LIBS
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
25602 $as_echo "$ac_cv_lib_m_cos" >&6; }
25603 if test "x$ac_cv_lib_m_cos" = xyes; then :
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
25610 $as_echo_n "checking for cos in -lm... " >&6; }
25611 if ${ac_cv_lib_m_cos+:} false; then :
25612 $as_echo_n "(cached) " >&6
25614 ac_check_lib_save_LIBS=$LIBS
25616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25617 /* end confdefs.h. */
25619 /* Override any GCC internal prototype to avoid an error.
25620 Use char because int might match the return type of a GCC
25621 builtin and then its argument prototype would still apply. */
25634 if ac_fn_c_try_link "$LINENO"; then :
25635 ac_cv_lib_m_cos=yes
25639 rm -f core conftest.err conftest.$ac_objext \
25640 conftest$ac_exeext conftest.$ac_ext
25641 LIBS=$ac_check_lib_save_LIBS
25643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
25644 $as_echo "$ac_cv_lib_m_cos" >&6; }
25645 if test "x$ac_cv_lib_m_cos" = xyes; then :
25655 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
25656 # for constant arguments. Useless!
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
25658 $as_echo_n "checking for working alloca.h... " >&6; }
25659 if ${gmp_cv_header_alloca+:} false; then :
25660 $as_echo_n "(cached) " >&6
25662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25663 /* end confdefs.h. */
25664 #include <alloca.h>
25668 char *p = (char *) alloca (2 * sizeof (int));
25673 if ac_fn_c_try_link "$LINENO"; then :
25674 gmp_cv_header_alloca=yes
25676 gmp_cv_header_alloca=no
25678 rm -f core conftest.err conftest.$ac_objext \
25679 conftest$ac_exeext conftest.$ac_ext
25681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_header_alloca" >&5
25682 $as_echo "$gmp_cv_header_alloca" >&6; }
25683 if test $gmp_cv_header_alloca = yes; then
25685 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
25690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca (via gmp-impl.h)" >&5
25691 $as_echo_n "checking for alloca (via gmp-impl.h)... " >&6; }
25692 if ${gmp_cv_func_alloca+:} false; then :
25693 $as_echo_n "(cached) " >&6
25695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25696 /* end confdefs.h. */
25697 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
25698 #define GMP_NAIL_BITS $GMP_NAIL_BITS
25699 #define GMP_LIMB_BITS 123
25700 $DEFN_LONG_LONG_LIMB
25701 #include "$srcdir/gmp-h.in"
25703 #include "$srcdir/gmp-impl.h"
25708 char *p = (char *) alloca (1);
25713 if ac_fn_c_try_link "$LINENO"; then :
25714 gmp_cv_func_alloca=yes
25716 gmp_cv_func_alloca=no
25718 rm -f core conftest.err conftest.$ac_objext \
25719 conftest$ac_exeext conftest.$ac_ext
25721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_alloca" >&5
25722 $as_echo "$gmp_cv_func_alloca" >&6; }
25723 if test $gmp_cv_func_alloca = yes; then
25725 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to allocate temporary memory" >&5
25731 $as_echo_n "checking how to allocate temporary memory... " >&6; }
25732 if ${gmp_cv_option_alloca+:} false; then :
25733 $as_echo_n "(cached) " >&6
25735 case $enable_alloca in
25737 gmp_cv_option_alloca=alloca
25740 gmp_cv_option_alloca=malloc-reentrant
25742 reentrant | notreentrant)
25743 case $gmp_cv_func_alloca in
25744 yes) gmp_cv_option_alloca=alloca ;;
25745 *) gmp_cv_option_alloca=malloc-$enable_alloca ;;
25749 gmp_cv_option_alloca=$enable_alloca
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_option_alloca" >&5
25755 $as_echo "$gmp_cv_option_alloca" >&6; }
25759 case $gmp_cv_option_alloca in
25761 if test $gmp_cv_func_alloca = no; then
25762 as_fn_error $? "--enable-alloca=alloca specified, but alloca not available" "$LINENO" 5
25764 $as_echo "#define WANT_TMP_ALLOCA 1" >>confdefs.h
25766 TAL_OBJECT=tal-reent$U.lo
25769 $as_echo "#define WANT_TMP_REENTRANT 1" >>confdefs.h
25771 TAL_OBJECT=tal-reent$U.lo
25773 malloc-notreentrant)
25774 $as_echo "#define WANT_TMP_NOTREENTRANT 1" >>confdefs.h
25776 TAL_OBJECT=tal-notreent$U.lo
25779 $as_echo "#define WANT_TMP_DEBUG 1" >>confdefs.h
25781 TAL_OBJECT=tal-debug$U.lo
25784 # checks at the start of configure.in should protect us
25785 as_fn_error $? "unrecognised --enable-alloca=$gmp_cv_option_alloca" "$LINENO" 5
25791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25792 /* end confdefs.h. */
25794 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
25795 #define GMP_NAIL_BITS $GMP_NAIL_BITS
25796 #define GMP_LIMB_BITS 123
25797 $DEFN_LONG_LONG_LIMB
25798 #include "$srcdir/gmp-h.in"
25800 #if ! _GMP_H_HAVE_FILE
25812 if ac_fn_c_try_compile "$LINENO"; then :
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&5
25816 $as_echo "$as_me: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&2;}
25818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25822 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25823 if ${ac_cv_c_bigendian+:} false; then :
25824 $as_echo_n "(cached) " >&6
25826 ac_cv_c_bigendian=unknown
25827 # See if we're dealing with a universal compiler.
25828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25829 /* end confdefs.h. */
25830 #ifndef __APPLE_CC__
25831 not a universal capable compiler
25836 if ac_fn_c_try_compile "$LINENO"; then :
25838 # Check for potential -arch flags. It is not universal unless
25839 # there are at least two -arch flags with different values.
25842 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25843 if test -n "$ac_prev"; then
25845 i?86 | x86_64 | ppc | ppc64)
25846 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25849 ac_cv_c_bigendian=universal
25855 elif test "x$ac_word" = "x-arch"; then
25860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25861 if test $ac_cv_c_bigendian = unknown; then
25862 # See if sys/param.h defines the BYTE_ORDER macro.
25863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25864 /* end confdefs.h. */
25865 #include <sys/types.h>
25866 #include <sys/param.h>
25871 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25872 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25874 bogus endian macros
25881 if ac_fn_c_try_compile "$LINENO"; then :
25882 # It does; now see whether it defined to BIG_ENDIAN or not.
25883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25884 /* end confdefs.h. */
25885 #include <sys/types.h>
25886 #include <sys/param.h>
25891 #if BYTE_ORDER != BIG_ENDIAN
25899 if ac_fn_c_try_compile "$LINENO"; then :
25900 ac_cv_c_bigendian=yes
25902 ac_cv_c_bigendian=no
25904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25908 if test $ac_cv_c_bigendian = unknown; then
25909 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
25910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25911 /* end confdefs.h. */
25912 #include <limits.h>
25917 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
25918 bogus endian macros
25925 if ac_fn_c_try_compile "$LINENO"; then :
25926 # It does; now see whether it defined to _BIG_ENDIAN or not.
25927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25928 /* end confdefs.h. */
25929 #include <limits.h>
25934 #ifndef _BIG_ENDIAN
25942 if ac_fn_c_try_compile "$LINENO"; then :
25943 ac_cv_c_bigendian=yes
25945 ac_cv_c_bigendian=no
25947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25951 if test $ac_cv_c_bigendian = unknown; then
25952 # Compile a test program.
25953 if test "$cross_compiling" = yes; then :
25954 # Try to guess by grepping values from an object file.
25955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25956 /* end confdefs.h. */
25957 short int ascii_mm[] =
25958 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25959 short int ascii_ii[] =
25960 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25961 int use_ascii (int i) {
25962 return ascii_mm[i] + ascii_ii[i];
25964 short int ebcdic_ii[] =
25965 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25966 short int ebcdic_mm[] =
25967 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25968 int use_ebcdic (int i) {
25969 return ebcdic_mm[i] + ebcdic_ii[i];
25976 return use_ascii (foo) == use_ebcdic (foo);
25981 if ac_fn_c_try_compile "$LINENO"; then :
25982 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
25983 ac_cv_c_bigendian=yes
25985 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25986 if test "$ac_cv_c_bigendian" = unknown; then
25987 ac_cv_c_bigendian=no
25989 # finding both strings is unlikely to happen, but who knows?
25990 ac_cv_c_bigendian=unknown
25994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25997 /* end confdefs.h. */
25998 $ac_includes_default
26003 /* Are we little or big endian? From Harbison&Steele. */
26007 char c[sizeof (long int)];
26010 return u.c[sizeof (long int) - 1] == 1;
26016 if ac_fn_c_try_run "$LINENO"; then :
26017 ac_cv_c_bigendian=no
26019 ac_cv_c_bigendian=yes
26021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26022 conftest.$ac_objext conftest.beam conftest.$ac_ext
26027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26028 $as_echo "$ac_cv_c_bigendian" >&6; }
26029 case $ac_cv_c_bigendian in #(
26031 $as_echo "#define HAVE_LIMB_BIG_ENDIAN 1" >>confdefs.h
26034 echo "define_not_for_expansion(\`HAVE_LIMB_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
26037 $as_echo "#define HAVE_LIMB_LITTLE_ENDIAN 1" >>confdefs.h
26040 echo "define_not_for_expansion(\`HAVE_LIMB_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
26045 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking format of \`double' floating point" >&5
26057 $as_echo_n "checking format of \`double' floating point... " >&6; }
26058 if ${gmp_cv_c_double_format+:} false; then :
26059 $as_echo_n "(cached) " >&6
26061 gmp_cv_c_double_format=unknown
26062 cat >conftest.c <<\EOF
26068 extern struct foo foo;
26070 { '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
26072 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' },
26075 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
26076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
26077 (eval $gmp_compile) 2>&5
26079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26080 test $ac_status = 0; }; then
26081 cat >conftest.awk <<\EOF
26088 for (f = 2; f <= NF; f++)
26090 for (i = 0; i < 23; i++)
26094 # match the special begin and end sequences
26095 if (got[0] != "001") continue
26096 if (got[1] != "043") continue
26097 if (got[2] != "105") continue
26098 if (got[3] != "147") continue
26099 if (got[4] != "211") continue
26100 if (got[5] != "253") continue
26101 if (got[6] != "315") continue
26102 if (got[7] != "357") continue
26103 if (got[16] != "376") continue
26104 if (got[17] != "334") continue
26105 if (got[18] != "272") continue
26106 if (got[19] != "230") continue
26107 if (got[20] != "166") continue
26108 if (got[21] != "124") continue
26109 if (got[22] != "062") continue
26110 if (got[23] != "020") continue
26112 saw = " (" got[8] " " got[9] " " got[10] " " got[11] " " got[12] " " got[13] " " got[14] " " got[15] ")"
26114 if (got[8] == "000" && \
26115 got[9] == "000" && \
26116 got[10] == "000" && \
26117 got[11] == "124" && \
26118 got[12] == "064" && \
26119 got[13] == "157" && \
26120 got[14] == "235" && \
26123 print "IEEE little endian"
26128 # Little endian with the two 4-byte halves swapped, as used by ARM
26129 # when the chip is in little endian mode.
26131 if (got[8] == "064" && \
26132 got[9] == "157" && \
26133 got[10] == "235" && \
26134 got[11] == "301" && \
26135 got[12] == "000" && \
26136 got[13] == "000" && \
26137 got[14] == "000" && \
26140 print "IEEE little endian, swapped halves"
26145 # gcc 2.95.4 on one GNU/Linux ARM system was seen generating 000 in
26146 # the last byte, whereas 124 is correct. Not sure where the bug
26147 # actually lies, but a running program didn't seem to get a full
26148 # mantissa worth of working bits.
26150 # We match this case explicitly so we can give a nice result message,
26151 # but we deliberately exclude it from the normal IEEE double setups
26152 # since it's too broken.
26154 if (got[8] == "064" && \
26155 got[9] == "157" && \
26156 got[10] == "235" && \
26157 got[11] == "301" && \
26158 got[12] == "000" && \
26159 got[13] == "000" && \
26160 got[14] == "000" && \
26163 print "bad ARM software floats"
26168 if (got[8] == "301" && \
26169 got[9] == "235" && \
26170 got[10] == "157" && \
26171 got[11] == "064" && \
26172 got[12] == "124" && \
26173 got[13] == "000" && \
26174 got[14] == "000" && \
26177 print "IEEE big endian"
26182 if (got[8] == "353" && \
26183 got[9] == "315" && \
26184 got[10] == "242" && \
26185 got[11] == "171" && \
26186 got[12] == "000" && \
26187 got[13] == "240" && \
26188 got[14] == "000" && \
26196 if (got[8] == "275" && \
26197 got[9] == "301" && \
26198 got[10] == "064" && \
26199 got[11] == "157" && \
26200 got[12] == "000" && \
26201 got[13] == "124" && \
26202 got[14] == "000" && \
26210 if (got[8] == "300" && \
26211 got[9] == "033" && \
26212 got[10] == "353" && \
26213 got[11] == "171" && \
26214 got[12] == "242" && \
26215 got[13] == "240" && \
26216 got[14] == "000" && \
26228 print "unknown", saw
26232 gmp_cv_c_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
26233 case $gmp_cv_c_double_format in
26235 echo "cannot match anything, conftest.$OBJEXT contains" >&5
26236 od -b conftest.$OBJEXT >&5
26240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
26241 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
26246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_double_format" >&5
26247 $as_echo "$gmp_cv_c_double_format" >&6; }
26251 case $gmp_cv_c_double_format in
26253 $as_echo "#define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1" >>confdefs.h
26256 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
26259 "IEEE little endian")
26260 $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1" >>confdefs.h
26263 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
26266 "IEEE little endian, swapped halves")
26267 $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_SWAPPED 1" >>confdefs.h
26270 $as_echo "#define HAVE_DOUBLE_VAX_D 1" >>confdefs.h
26273 $as_echo "#define HAVE_DOUBLE_VAX_G 1" >>confdefs.h
26276 $as_echo "#define HAVE_DOUBLE_CRAY_CFP 1" >>confdefs.h
26278 "bad ARM software floats")
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine float format." >&5
26282 $as_echo "$as_me: WARNING: Could not determine float format." >&2;}
26283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Conversions to and from \"double\" may be slow." >&5
26284 $as_echo "$as_me: WARNING: Conversions to and from \"double\" may be slow." >&2;}
26287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&5
26288 $as_echo "$as_me: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&2;}
26294 # Reasons for testing:
26295 # alarm - not in mingw
26296 # attr_get - IRIX specific
26297 # clock_gettime - not in glibc 2.2.4, only very recent systems
26298 # cputime - not in glibc
26299 # getsysinfo - OSF specific
26300 # getrusage - not in mingw
26301 # gettimeofday - not in mingw
26302 # mmap - not in mingw, djgpp
26303 # nl_langinfo - X/Open standard only, not in djgpp for instance
26304 # obstack_vprintf - glibc specific
26305 # processor_info - solaris specific
26306 # pstat_getprocessor - HPUX specific (10.x and up)
26307 # raise - an ANSI-ism, though probably almost universal by now
26308 # read_real_time - AIX specific
26309 # sigaction - not in mingw
26310 # sigaltstack - not in mingw, or old AIX (reputedly)
26311 # sigstack - not in mingw
26312 # strerror - not in SunOS
26313 # strnlen - glibc extension (some other systems too)
26314 # syssgi - IRIX specific
26315 # times - not in mingw
26317 # AC_FUNC_STRNLEN is not used because we don't want the AC_LIBOBJ
26318 # replacement setups it gives. It detects a faulty strnlen on AIX, but
26319 # missing out on that test is ok since our only use of strnlen is in
26320 # __gmp_replacement_vsnprintf which is not required on AIX since it has a
26323 for ac_func in alarm attr_get clock cputime getpagesize getrusage gettimeofday getsysinfo localeconv memset mmap mprotect nl_langinfo obstack_vprintf popen processor_info pstat_getprocessor raise read_real_time sigaction sigaltstack sigstack syssgi strchr strerror strnlen strtol strtoul sysconf sysctl sysctlbyname times
26325 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26326 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26327 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26328 cat >>confdefs.h <<_ACEOF
26329 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26336 # clock_gettime is in librt on *-*-osf5.1 and on glibc, so att -lrt to
26337 # TUNE_LIBS if needed. On linux (tested on x86_32, 2.6.26),
26338 # clock_getres reports ns accuracy, while in a quick test on osf
26339 # clock_getres said only 1 millisecond.
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
26343 $as_echo_n "checking for library containing clock_gettime... " >&6; }
26344 if ${ac_cv_search_clock_gettime+:} false; then :
26345 $as_echo_n "(cached) " >&6
26347 ac_func_search_save_LIBS=$LIBS
26348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26349 /* end confdefs.h. */
26351 /* Override any GCC internal prototype to avoid an error.
26352 Use char because int might match the return type of a GCC
26353 builtin and then its argument prototype would still apply. */
26357 char clock_gettime ();
26361 return clock_gettime ();
26366 for ac_lib in '' rt; do
26367 if test -z "$ac_lib"; then
26368 ac_res="none required"
26371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26373 if ac_fn_c_try_link "$LINENO"; then :
26374 ac_cv_search_clock_gettime=$ac_res
26376 rm -f core conftest.err conftest.$ac_objext \
26378 if ${ac_cv_search_clock_gettime+:} false; then :
26382 if ${ac_cv_search_clock_gettime+:} false; then :
26385 ac_cv_search_clock_gettime=no
26387 rm conftest.$ac_ext
26388 LIBS=$ac_func_search_save_LIBS
26390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
26391 $as_echo "$ac_cv_search_clock_gettime" >&6; }
26392 ac_res=$ac_cv_search_clock_gettime
26393 if test "$ac_res" != no; then :
26394 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26397 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
26407 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
26408 if test "x$ac_cv_func_vsnprintf" = xyes; then :
26409 gmp_vsnprintf_exists=yes
26411 gmp_vsnprintf_exists=no
26414 if test "$gmp_vsnprintf_exists" = no; then
26415 gmp_cv_func_vsnprintf=no
26417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf works" >&5
26418 $as_echo_n "checking whether vsnprintf works... " >&6; }
26419 if ${gmp_cv_func_vsnprintf+:} false; then :
26420 $as_echo_n "(cached) " >&6
26422 gmp_cv_func_vsnprintf=yes
26423 for i in 'return check ("hello world");' 'int n; return check ("%nhello world", &n);'; do
26424 if test "$cross_compiling" = yes; then :
26425 gmp_cv_func_vsnprintf=probably; break
26427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26428 /* end confdefs.h. */
26430 #include <string.h> /* for strcmp */
26431 #include <stdio.h> /* for vsnprintf */
26434 #include <stdarg.h>
26436 #include <varargs.h>
26441 check (const char *fmt, ...)
26447 static char buf[128];
26452 va_start (ap, fmt);
26456 fmt = va_arg (ap, char *);
26459 ret = vsnprintf (buf, 4, fmt, ap);
26461 if (strcmp (buf, "hel") != 0)
26464 /* allowed return values */
26465 if (ret != -1 && ret != 3 && ret != 11)
26478 if ac_fn_c_try_run "$LINENO"; then :
26481 gmp_cv_func_vsnprintf=no; break
26483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26484 conftest.$ac_objext conftest.beam conftest.$ac_ext
26490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_vsnprintf" >&5
26491 $as_echo "$gmp_cv_func_vsnprintf" >&6; }
26492 if test "$gmp_cv_func_vsnprintf" = probably; then
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&5
26494 $as_echo "$as_me: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&2;}
26496 if test "$gmp_cv_func_vsnprintf" != no; then
26498 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sscanf needs writable input" >&5
26504 $as_echo_n "checking whether sscanf needs writable input... " >&6; }
26505 if ${gmp_cv_func_sscanf_writable_input+:} false; then :
26506 $as_echo_n "(cached) " >&6
26509 *-*-hpux9 | *-*-hpux9.*)
26510 gmp_cv_func_sscanf_writable_input=yes ;;
26511 *) gmp_cv_func_sscanf_writable_input=no ;;
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_sscanf_writable_input" >&5
26516 $as_echo "$gmp_cv_func_sscanf_writable_input" >&6; }
26517 case $gmp_cv_func_sscanf_writable_input in
26519 $as_echo "#define SSCANF_WRITABLE_INPUT 1" >>confdefs.h
26522 *) as_fn_error $? "unrecognised \$gmp_cv_func_sscanf_writable_input" "$LINENO" 5 ;;
26526 # Reasons for checking:
26527 # pst_processor psp_iticksperclktick - not in hpux 9
26529 ac_fn_c_check_member "$LINENO" "struct pst_processor" "psp_iticksperclktick" "ac_cv_member_struct_pst_processor_psp_iticksperclktick" "#include <sys/pstat.h>
26531 if test "x$ac_cv_member_struct_pst_processor_psp_iticksperclktick" = xyes; then :
26533 $as_echo "#define HAVE_PSP_ITICKSPERCLKTICK 1" >>confdefs.h
26538 # C++ tests, when required
26540 if test $enable_cxx = yes; then
26542 ac_cpp='$CXXCPP $CPPFLAGS'
26543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26548 # Reasons for testing:
26549 # <sstream> - not in g++ 2.95.2
26550 # std::locale - not in g++ 2.95.4
26553 for ac_header in sstream
26555 ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default"
26556 if test "x$ac_cv_header_sstream" = xyes; then :
26557 cat >>confdefs.h <<_ACEOF
26558 #define HAVE_SSTREAM 1
26565 ac_fn_cxx_check_type "$LINENO" "std::locale" "ac_cv_type_std__locale" "#include <locale>
26567 if test "x$ac_cv_type_std__locale" = xyes; then :
26569 cat >>confdefs.h <<_ACEOF
26570 #define HAVE_STD__LOCALE 1
26578 ac_cpp='$CPP $CPPFLAGS'
26579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26586 # Pick the correct source files in $path and link them to mpn/.
26587 # $gmp_mpn_functions lists all functions we need.
26589 # The rule is to find a file with the function name and a .asm, .S,
26590 # .s, or .c extension. Certain multi-function files with special names
26591 # can provide some functions too. (mpn/Makefile.am passes
26592 # -DOPERATION_<func> to get them to generate the right code.)
26594 # Note: $gmp_mpn_functions must have mod_1 before pre_mod_1 so the former
26595 # can optionally provide the latter as an extra entrypoint. Likewise
26596 # divrem_1 and pre_divrem_1.
26598 gmp_mpn_functions_optional="umul udiv \
26599 invert_limb sqr_diagonal sqr_diag_addlsh1 \
26600 mul_2 mul_3 mul_4 mul_5 mul_6 \
26601 addmul_2 addmul_3 addmul_4 addmul_5 addmul_6 addmul_7 addmul_8 \
26602 addlsh1_n sublsh1_n rsblsh1_n rsh1add_n rsh1sub_n \
26603 addlsh2_n sublsh2_n rsblsh2_n \
26604 addlsh_n sublsh_n rsblsh_n \
26605 add_n_sub_n addaddmul_1msb0"
26607 gmp_mpn_functions="$extra_functions \
26608 add add_1 add_n sub sub_1 sub_n addcnd_n subcnd_n neg com \
26609 mul_1 addmul_1 submul_1 \
26610 add_err1_n add_err2_n add_err3_n sub_err1_n sub_err2_n sub_err3_n \
26611 lshift rshift dive_1 diveby3 divis divrem divrem_1 divrem_2 \
26612 fib2_ui mod_1 mod_34lsub1 mode1o pre_divrem_1 pre_mod_1 dump \
26613 mod_1_1 mod_1_2 mod_1_3 mod_1_4 lshiftc \
26614 mul mul_fft mul_n sqr mul_basecase sqr_basecase nussbaumer_mul \
26615 mulmid_basecase toom42_mulmid mulmid_n mulmid \
26616 random random2 pow_1 \
26617 rootrem sqrtrem get_str set_str scan0 scan1 popcount hamdist cmp \
26619 gcd_1 gcd gcdext_1 gcdext gcd_subdiv_step \
26621 div_q tdiv_qr jacbase jacobi_2 jacobi get_d \
26622 matrix22_mul matrix22_mul1_inverse_vector \
26623 hgcd_matrix hgcd2 hgcd_step hgcd_reduce hgcd hgcd_appr \
26624 hgcd2_jacobi hgcd_jacobi \
26625 mullo_n mullo_basecase \
26626 toom22_mul toom32_mul toom42_mul toom52_mul toom62_mul \
26627 toom33_mul toom43_mul toom53_mul toom54_mul toom63_mul \
26629 toom6h_mul toom6_sqr toom8h_mul toom8_sqr \
26630 toom_couple_handling \
26631 toom2_sqr toom3_sqr toom4_sqr \
26632 toom_eval_dgr3_pm1 toom_eval_dgr3_pm2 \
26633 toom_eval_pm1 toom_eval_pm2 toom_eval_pm2exp toom_eval_pm2rexp \
26634 toom_interpolate_5pts toom_interpolate_6pts toom_interpolate_7pts \
26635 toom_interpolate_8pts toom_interpolate_12pts toom_interpolate_16pts \
26636 invertappr invert binvert mulmod_bnm1 sqrmod_bnm1 \
26637 div_qr_2 div_qr_2n_pi1 div_qr_2u_pi1 \
26638 sbpi1_div_q sbpi1_div_qr sbpi1_divappr_q \
26639 dcpi1_div_q dcpi1_div_qr dcpi1_divappr_q \
26640 mu_div_qr mu_divappr_q mu_div_q \
26642 sbpi1_bdiv_q sbpi1_bdiv_qr \
26643 dcpi1_bdiv_q dcpi1_bdiv_qr \
26644 mu_bdiv_q mu_bdiv_qr \
26645 bdiv_q bdiv_qr broot brootinv bsqrt bsqrtinv \
26646 divexact bdiv_dbm1c redc_1 redc_2 redc_n powm powlo powm_sec \
26647 sb_div_qr_sec sb_div_r_sec sbpi1_div_qr_sec sbpi1_div_r_sec \
26649 and_n andn_n nand_n ior_n iorn_n nior_n xor_n xnor_n \
26650 copyi copyd zero tabselect \
26652 $gmp_mpn_functions_optional"
26656 # the list of all object files used by mpn/Makefile.in and the
26657 # top-level Makefile.in, respectively
26659 mpn_objs_in_libgmp=
26661 # links from the sources, to be removed by "make distclean"
26665 # mpn_relative_top_srcdir is $top_srcdir, but for use from within the mpn
26666 # build directory. If $srcdir is relative then we use a relative path too,
26667 # so the two trees can be moved together.
26669 [\\/]* | ?:[\\/]*) # absolute, as per autoconf
26670 mpn_relative_top_srcdir=$srcdir ;;
26672 mpn_relative_top_srcdir=../$srcdir ;;
26680 # Fat binary setups.
26682 # We proceed through each $fat_path directory, and look for $fat_function
26683 # routines there. Those found are incorporated in the build by generating a
26684 # little mpn/<foo>.asm or mpn/<foo>.c file in the build directory, with
26685 # suitable function renaming, and adding that to $mpn_objects (the same as a
26686 # normal mpn file).
26688 # fat.h is generated with macros to let internal calls to each $fat_function
26689 # go directly through __gmpn_cpuvec, plus macros and declarations helping to
26690 # setup that structure, on a per-directory basis ready for
26691 # mpn/<cpu>/fat/fat.c.
26693 # fat.h includes thresholds listed in $fat_thresholds, extracted from
26694 # gmp-mparam.h in each directory. An overall maximum for each threshold is
26695 # established, for use in making fixed size arrays of temporary space.
26696 # (Eg. MUL_TOOM33_THRESHOLD_LIMIT used by mpn/generic/mul.c.)
26698 # It'd be possible to do some of this manually, but when there's more than a
26699 # few functions and a few directories it becomes very tedious, and very
26700 # prone to having some routine accidentally omitted. On that basis it seems
26701 # best to automate as much as possible, even if the code to do so is a bit
26705 if test -n "$fat_path"; then
26706 # Usually the mpn build directory is created with mpn/Makefile
26707 # instantiation, but we want to write to it sooner.
26708 mkdir mpn 2>/dev/null
26710 echo "/* fat.h - setups for fat binaries." >fat.h
26711 echo " Generated by configure - DO NOT EDIT. */" >>fat.h
26714 $as_echo "#define WANT_FAT_BINARY 1" >>confdefs.h
26717 echo 'define(<WANT_FAT_BINARY>, <yes>)' >>$gmp_tmpconfigm4
26720 # Don't want normal copies of fat functions
26721 for tmp_fn in $fat_functions; do
26722 remove_from_list_tmp=
26723 for remove_from_list_i in $gmp_mpn_functions; do
26724 if test $remove_from_list_i = $tmp_fn; then :;
26726 remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i"
26729 gmp_mpn_functions=$remove_from_list_tmp
26731 remove_from_list_tmp=
26732 for remove_from_list_i in $gmp_mpn_functions_optional; do
26733 if test $remove_from_list_i = $tmp_fn; then :;
26735 remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i"
26738 gmp_mpn_functions_optional=$remove_from_list_tmp
26742 for tmp_fn in $fat_functions; do
26744 dive_1) tmp_fbase=divexact_1 ;;
26745 diveby3) tmp_fbase=divexact_by3c ;;
26746 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
26747 mode1o) tmp_fbase=modexact_1c_odd ;;
26748 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
26749 mod_1_1) tmp_fbase=mod_1_1p ;;
26750 mod_1_1_cps) tmp_fbase=mod_1_1p_cps ;;
26751 mod_1_2) tmp_fbase=mod_1s_2p ;;
26752 mod_1_2_cps) tmp_fbase=mod_1s_2p_cps ;;
26753 mod_1_3) tmp_fbase=mod_1s_3p ;;
26754 mod_1_3_cps) tmp_fbase=mod_1s_3p_cps ;;
26755 mod_1_4) tmp_fbase=mod_1s_4p ;;
26756 mod_1_4_cps) tmp_fbase=mod_1s_4p_cps ;;
26757 *) tmp_fbase=$tmp_fn ;;
26761 #ifndef OPERATION_$tmp_fn
26762 #undef mpn_$tmp_fbase
26763 #define mpn_$tmp_fbase (*__gmpn_cpuvec.$tmp_fbase)
26765 DECL_$tmp_fbase (__MPN(${tmp_fbase}_init));" >>fat.h
26766 # encourage various macros to use fat functions
26767 cat >>confdefs.h <<_ACEOF
26768 #define HAVE_NATIVE_mpn_$tmp_fbase 1
26774 echo "/* variable thresholds */" >>fat.h
26775 for tmp_tn in $fat_thresholds; do
26776 echo "#undef $tmp_tn" >>fat.h
26777 echo "#define $tmp_tn CPUVEC_THRESHOLD (`echo $tmp_tn | tr [A-Z] [a-z]`)" >>fat.h
26781 /* Copy all fields into __gmpn_cpuvec.
26782 memcpy is not used because it might operate byte-wise (depending on its
26783 implementation), and we need the function pointer writes to be atomic.
26784 "volatile" discourages the compiler from trying to optimize this. */
26785 #define CPUVEC_INSTALL(vec) \\
26787 volatile struct cpuvec_t *p = &__gmpn_cpuvec; \\" >>fat.h
26788 for tmp_fn in $fat_functions; do
26790 dive_1) tmp_fbase=divexact_1 ;;
26791 diveby3) tmp_fbase=divexact_by3c ;;
26792 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
26793 mode1o) tmp_fbase=modexact_1c_odd ;;
26794 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
26795 mod_1_1) tmp_fbase=mod_1_1p ;;
26796 mod_1_1_cps) tmp_fbase=mod_1_1p_cps ;;
26797 mod_1_2) tmp_fbase=mod_1s_2p ;;
26798 mod_1_2_cps) tmp_fbase=mod_1s_2p_cps ;;
26799 mod_1_3) tmp_fbase=mod_1s_3p ;;
26800 mod_1_3_cps) tmp_fbase=mod_1s_3p_cps ;;
26801 mod_1_4) tmp_fbase=mod_1s_4p ;;
26802 mod_1_4_cps) tmp_fbase=mod_1s_4p_cps ;;
26803 *) tmp_fbase=$tmp_fn ;;
26806 echo " p->$tmp_fbase = vec.$tmp_fbase; \\" >>fat.h
26808 for tmp_tn in $fat_thresholds; do
26809 tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]`
26810 echo " p->$tmp_field_name = vec.$tmp_field_name; \\" >>fat.h
26812 echo " } while (0)" >>fat.h
26815 /* A helper to check all fields are filled. */
26816 #define ASSERT_CPUVEC(vec) \\
26818 for tmp_fn in $fat_functions; do
26820 dive_1) tmp_fbase=divexact_1 ;;
26821 diveby3) tmp_fbase=divexact_by3c ;;
26822 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
26823 mode1o) tmp_fbase=modexact_1c_odd ;;
26824 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
26825 mod_1_1) tmp_fbase=mod_1_1p ;;
26826 mod_1_1_cps) tmp_fbase=mod_1_1p_cps ;;
26827 mod_1_2) tmp_fbase=mod_1s_2p ;;
26828 mod_1_2_cps) tmp_fbase=mod_1s_2p_cps ;;
26829 mod_1_3) tmp_fbase=mod_1s_3p ;;
26830 mod_1_3_cps) tmp_fbase=mod_1s_3p_cps ;;
26831 mod_1_4) tmp_fbase=mod_1s_4p ;;
26832 mod_1_4_cps) tmp_fbase=mod_1s_4p_cps ;;
26833 *) tmp_fbase=$tmp_fn ;;
26836 echo " ASSERT (vec.$tmp_fbase != NULL); \\" >>fat.h
26838 for tmp_tn in $fat_thresholds; do
26839 tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]`
26840 echo " ASSERT (vec.$tmp_field_name != 0); \\" >>fat.h
26842 echo " } while (0)" >>fat.h
26845 /* Call ITERATE(field) for each fat threshold field. */
26846 #define ITERATE_FAT_THRESHOLDS() \\
26848 for tmp_tn in $fat_thresholds; do
26849 tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]`
26850 echo " ITERATE ($tmp_tn, $tmp_field_name); \\" >>fat.h
26852 echo " } while (0)" >>fat.h
26854 for tmp_dir in $fat_path; do
26858 tmp_suffix=`echo $tmp_dir | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
26860 # In order to keep names unique on a DOS 8.3 filesystem, use a prefix
26861 # (rather than a suffix) for the generated file names, and abbreviate.
26862 case $tmp_suffix in
26863 pentium) tmp_prefix=p ;;
26864 pentium_mmx) tmp_prefix=pm ;;
26865 p6_mmx) tmp_prefix=p2 ;;
26866 p6_p3mmx) tmp_prefix=p3 ;;
26867 pentium4) tmp_prefix=p4 ;;
26868 pentium4_mmx) tmp_prefix=p4m ;;
26869 pentium4_sse2) tmp_prefix=p4s ;;
26870 k6_mmx) tmp_prefix=k6m ;;
26871 k6_k62mmx) tmp_prefix=k62 ;;
26872 k7_mmx) tmp_prefix=k7m ;;
26873 *) tmp_prefix=$tmp_suffix ;;
26876 # Extract desired thresholds from gmp-mparam.h file in this directory,
26878 tmp_mparam=$srcdir/mpn/$tmp_dir/gmp-mparam.h
26879 if test -f $tmp_mparam; then
26880 for tmp_tn in $fat_thresholds; do
26881 tmp_thresh=`sed -n "s/^#define $tmp_tn[ ]*\\([0-9][0-9]*\\).*$/\\1/p" $tmp_mparam`
26882 if test -n "$tmp_thresh"; then
26883 THRESH_ASM_SETUP="${THRESH_ASM_SETUP}define($tmp_tn,$tmp_thresh)
26885 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.`echo $tmp_tn | tr [A-Z] [a-z]` = $tmp_thresh; \\
26887 eval tmp_limit=\$${tmp_tn}_LIMIT
26888 if test -z "$tmp_limit"; then
26891 if test $tmp_thresh -gt $tmp_limit; then
26892 eval ${tmp_tn}_LIMIT=$tmp_thresh
26898 for tmp_fn in $fat_functions; do
26899 # functions that can be provided by multi-function files
26902 add_n|sub_n) tmp_mulfunc="aors_n" ;;
26903 add_err1_n|sub_err1_n)
26904 tmp_mulfunc="aors_err1_n" ;;
26905 add_err2_n|sub_err2_n)
26906 tmp_mulfunc="aors_err2_n" ;;
26907 add_err3_n|sub_err3_n)
26908 tmp_mulfunc="aors_err3_n" ;;
26909 addcnd_n|subcnd_n) tmp_mulfunc="aorscnd_n" ;;
26910 addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
26911 popcount|hamdist) tmp_mulfunc="popham" ;;
26912 and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
26913 tmp_mulfunc="logops_n" ;;
26914 lshift|rshift) tmp_mulfunc="lorrshift";;
26916 tmp_mulfunc="aorslsh1_n aorrlsh1_n";;
26918 tmp_mulfunc="aorslsh1_n sorrlsh1_n";;
26920 tmp_mulfunc="aorrlsh1_n sorrlsh1_n";;
26922 tmp_mulfunc="aorslsh2_n aorrlsh2_n";;
26924 tmp_mulfunc="aorslsh2_n sorrlsh2_n";;
26926 tmp_mulfunc="aorrlsh2_n sorrlsh2_n";;
26928 tmp_mulfunc="aorslsh_n aorrlsh_n";;
26930 tmp_mulfunc="aorslsh_n sorrlsh_n";;
26932 tmp_mulfunc="aorrlsh_n sorrlsh_n";;
26933 rsh1add_n|rsh1sub_n)
26934 tmp_mulfunc="rsh1aors_n";;
26935 sb_div_qr_sec|sb_div_r_sec)
26936 tmp_mulfunc="sb_div_sec";;
26937 sbpi1_div_qr_sec|sbpi1_div_r_sec)
26938 tmp_mulfunc="sbpi1_div_sec";;
26942 for tmp_base in $tmp_fn $tmp_mulfunc; do
26943 for tmp_ext in asm S s c; do
26944 tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
26945 if test -f $tmp_file; then
26947 # If the host uses a non-standard ABI, check if tmp_file supports it
26949 if test -n "$GMP_NONSTD_ABI" && test $tmp_ext != "c"; then
26950 abi=`sed -n 's/^[ ]*ABI_SUPPORT(\(.*\))/\1/p' $tmp_file `
26951 if echo "$abi" | grep -q "\\b${GMP_NONSTD_ABI}\\b"; then
26958 mpn_objects="$mpn_objects ${tmp_prefix}_$tmp_fn.lo"
26959 mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/${tmp_prefix}_$tmp_fn.lo"
26962 dive_1) tmp_fbase=divexact_1 ;;
26963 diveby3) tmp_fbase=divexact_by3c ;;
26964 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
26965 mode1o) tmp_fbase=modexact_1c_odd ;;
26966 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
26967 mod_1_1) tmp_fbase=mod_1_1p ;;
26968 mod_1_1_cps) tmp_fbase=mod_1_1p_cps ;;
26969 mod_1_2) tmp_fbase=mod_1s_2p ;;
26970 mod_1_2_cps) tmp_fbase=mod_1s_2p_cps ;;
26971 mod_1_3) tmp_fbase=mod_1s_3p ;;
26972 mod_1_3_cps) tmp_fbase=mod_1s_3p_cps ;;
26973 mod_1_4) tmp_fbase=mod_1s_4p ;;
26974 mod_1_4_cps) tmp_fbase=mod_1s_4p_cps ;;
26975 *) tmp_fbase=$tmp_fn ;;
26979 # carry-in variant, eg. divrem_1c or modexact_1c_odd
26981 *_1*) tmp_fbasec=`echo $tmp_fbase | sed 's/_1/_1c/'` ;;
26982 *) tmp_fbasec=${tmp_fbase}c ;;
26985 # Create a little file doing an include from srcdir. The
26986 # OPERATION and renamings aren't all needed all the time, but
26987 # they don't hurt if unused.
26989 # FIXME: Should generate these via config.status commands.
26990 # Would need them all in one AC_CONFIG_COMMANDS though, since
26991 # that macro doesn't accept a set of separate commands generated
26996 # hide the d-n-l from autoconf's error checking
26998 echo "$tmp_d_n_l mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
26999 $tmp_d_n_l Generated by configure - DO NOT EDIT.
27001 define(OPERATION_$tmp_fn)
27002 define(__gmpn_$tmp_fbase, __gmpn_${tmp_fbase}_$tmp_suffix)
27003 define(__gmpn_$tmp_fbasec,__gmpn_${tmp_fbasec}_${tmp_suffix})
27004 define(__gmpn_preinv_${tmp_fbase},__gmpn_preinv_${tmp_fbase}_${tmp_suffix})
27005 define(__gmpn_${tmp_fbase}_cps,__gmpn_${tmp_fbase}_cps_${tmp_suffix})
27007 $tmp_d_n_l For k6 and k7 gcd_1 calling their corresponding mpn_modexact_1_odd
27008 ifdef(\`__gmpn_modexact_1_odd',,
27009 \`define(__gmpn_modexact_1_odd,__gmpn_modexact_1_odd_${tmp_suffix})')
27012 include($mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.asm)
27013 " >mpn/${tmp_prefix}_$tmp_fn.asm
27016 echo "/* mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
27017 Generated by configure - DO NOT EDIT. */
27019 #define OPERATION_$tmp_fn 1
27020 #define __gmpn_$tmp_fbase __gmpn_${tmp_fbase}_$tmp_suffix
27021 #define __gmpn_$tmp_fbasec __gmpn_${tmp_fbasec}_${tmp_suffix}
27022 #define __gmpn_preinv_${tmp_fbase} __gmpn_preinv_${tmp_fbase}_${tmp_suffix}
27023 #define __gmpn_${tmp_fbase}_cps __gmpn_${tmp_fbase}_cps_${tmp_suffix}
27025 #include \"$mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.c\"
27026 " >mpn/${tmp_prefix}_$tmp_fn.c
27030 # Prototype, and append to CPUVEC_SETUP for this directory.
27031 echo "DECL_$tmp_fbase (__gmpn_${tmp_fbase}_$tmp_suffix);" >>fat.h
27032 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.$tmp_fbase = __gmpn_${tmp_fbase}_${tmp_suffix}; \\
27034 # Ditto for any preinv variant (preinv_divrem_1, preinv_mod_1).
27035 if grep "^PROLOGUE(mpn_preinv_$tmp_fn)" $tmp_file >/dev/null; then
27036 echo "DECL_preinv_$tmp_fbase (__gmpn_preinv_${tmp_fbase}_$tmp_suffix);" >>fat.h
27037 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.preinv_$tmp_fbase = __gmpn_preinv_${tmp_fbase}_${tmp_suffix}; \\
27041 # Ditto for any mod_1...cps variant
27042 if grep "^PROLOGUE(mpn_${tmp_fbase}_cps)" $tmp_file >/dev/null; then
27043 echo "DECL_${tmp_fbase}_cps (__gmpn_${tmp_fbase}_cps_$tmp_suffix);" >>fat.h
27044 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.${tmp_fbase}_cps = __gmpn_${tmp_fbase}_cps_${tmp_suffix}; \\
27052 # Emit CPUVEC_SETUP for this directory
27054 echo "#define CPUVEC_SETUP_$tmp_suffix \\" >>fat.h
27055 echo " do { \\" >>fat.h
27056 echo "$CPUVEC_SETUP } while (0)" >>fat.h
27059 # Emit threshold limits
27061 for tmp_tn in $fat_thresholds; do
27062 eval tmp_limit=\$${tmp_tn}_LIMIT
27063 echo "#define ${tmp_tn}_LIMIT $tmp_limit" >>fat.h
27068 # Normal binary setups.
27071 for tmp_ext in asm S s c; do
27072 eval found_$tmp_ext=no
27075 for tmp_fn in $gmp_mpn_functions; do
27076 for tmp_ext in asm S s c; do
27077 test "$no_create" = yes || rm -f mpn/$tmp_fn.$tmp_ext
27080 # mpn_preinv_divrem_1 might have been provided by divrem_1.asm, likewise
27081 # mpn_preinv_mod_1 by mod_1.asm.
27084 if test "$HAVE_NATIVE_mpn_preinv_divrem_1" = yes; then continue; fi ;;
27086 if test "$HAVE_NATIVE_mpn_preinv_mod_1" = yes; then continue; fi ;;
27089 # functions that can be provided by multi-function files
27092 add_n|sub_n) tmp_mulfunc="aors_n" ;;
27093 add_err1_n|sub_err1_n)
27094 tmp_mulfunc="aors_err1_n" ;;
27095 add_err2_n|sub_err2_n)
27096 tmp_mulfunc="aors_err2_n" ;;
27097 add_err3_n|sub_err3_n)
27098 tmp_mulfunc="aors_err3_n" ;;
27099 addcnd_n|subcnd_n) tmp_mulfunc="aorscnd_n" ;;
27100 addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
27101 popcount|hamdist) tmp_mulfunc="popham" ;;
27102 and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
27103 tmp_mulfunc="logops_n" ;;
27104 lshift|rshift) tmp_mulfunc="lorrshift";;
27106 tmp_mulfunc="aorslsh1_n aorrlsh1_n";;
27108 tmp_mulfunc="aorslsh1_n sorrlsh1_n";;
27110 tmp_mulfunc="aorrlsh1_n sorrlsh1_n";;
27112 tmp_mulfunc="aorslsh2_n aorrlsh2_n";;
27114 tmp_mulfunc="aorslsh2_n sorrlsh2_n";;
27116 tmp_mulfunc="aorrlsh2_n sorrlsh2_n";;
27118 tmp_mulfunc="aorslsh_n aorrlsh_n";;
27120 tmp_mulfunc="aorslsh_n sorrlsh_n";;
27122 tmp_mulfunc="aorrlsh_n sorrlsh_n";;
27123 rsh1add_n|rsh1sub_n)
27124 tmp_mulfunc="rsh1aors_n";;
27125 sb_div_qr_sec|sb_div_r_sec)
27126 tmp_mulfunc="sb_div_sec";;
27127 sbpi1_div_qr_sec|sbpi1_div_r_sec)
27128 tmp_mulfunc="sbpi1_div_sec";;
27133 for tmp_dir in $path; do
27134 for tmp_base in $tmp_fn $tmp_mulfunc; do
27135 for tmp_ext in asm S s c; do
27136 tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
27137 if test -f $tmp_file; then
27139 # For a nails build, check if the file supports our nail bits.
27140 # Generic code always supports all nails.
27142 # FIXME: When a multi-function file is selected to provide one of
27143 # the nails-neutral routines, like logops_n for and_n, the
27144 # PROLOGUE grepping will create HAVE_NATIVE_mpn_<foo> defines for
27145 # all functions in that file, even if they haven't all been
27146 # nailified. Not sure what to do about this, it's only really a
27147 # problem for logops_n, and it's not too terrible to insist those
27148 # get nailified always.
27150 if test $GMP_NAIL_BITS != 0 && test $tmp_dir != generic; then
27152 and_n | ior_n | xor_n | andn_n | \
27154 popcount | hamdist | \
27155 udiv | udiv_w_sdiv | umul | \
27156 cntlz | invert_limb)
27157 # these operations are either unaffected by nails or defined
27158 # to operate on full limbs
27161 nails=`sed -n 's/^[ ]*NAILS_SUPPORT(\(.*\))/\1/p' $tmp_file `
27162 for n in $nails; do
27165 n_start=`echo "$n" | sed -n 's/\(.*\)-.*/\1/p'`
27166 n_end=`echo "$n" | sed -n 's/.*-\(.*\)/\1/p'`
27173 if test $GMP_NAIL_BITS -ge $n_start && test $GMP_NAIL_BITS -le $n_end; then
27178 if test $found != yes; then
27185 # If the host uses a non-standard ABI, check if tmp_file supports it
27187 if test -n "$GMP_NONSTD_ABI" && test $tmp_ext != "c"; then
27188 abi=`sed -n 's/^[ ]*ABI_SUPPORT(\(.*\))/\1/p' $tmp_file `
27189 if echo "$abi" | grep -q "\\b${GMP_NONSTD_ABI}\\b"; then
27197 eval found_$tmp_ext=yes
27199 if test $tmp_ext = c; then
27205 mpn_objects="$mpn_objects $tmp_fn$tmp_u.lo"
27206 mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/$tmp_fn$tmp_u.lo"
27207 ac_config_links="$ac_config_links mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext"
27209 gmp_srclinks="$gmp_srclinks mpn/$tmp_fn.$tmp_ext"
27211 # Duplicate AC_DEFINEs are harmless, so it doesn't matter
27212 # that multi-function files get grepped here repeatedly.
27213 # The PROLOGUE pattern excludes the optional second parameter.
27215 sed -n 's/^[ ]*MULFUNC_PROLOGUE(\(.*\))/\1/p' $tmp_file ;
27216 sed -n 's/^[ ]*PROLOGUE(\([^,]*\).*)/\1/p' $tmp_file
27218 for gmp_tmp in $gmp_ep; do
27219 cat >>confdefs.h <<_ACEOF
27220 #define HAVE_NATIVE_$gmp_tmp 1
27223 eval HAVE_NATIVE_$gmp_tmp=yes
27227 sqr_basecase) sqr_basecase_source=$tmp_file ;;
27233 if test $found = yes; then break ; fi
27235 if test $found = yes; then break ; fi
27238 if test $found = no; then
27239 for tmp_optional in $gmp_mpn_functions_optional; do
27240 if test $tmp_optional = $tmp_fn; then
27244 if test $found = no; then
27245 as_fn_error $? "no version of $tmp_fn found in path: $path" "$LINENO" 5
27250 # All cycle counters are .asm files currently
27251 if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
27259 # Don't demand an m4 unless it's actually needed.
27260 if test $found_asm = yes; then
27262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable m4" >&5
27263 $as_echo_n "checking for suitable m4... " >&6; }
27264 if ${gmp_cv_prog_m4+:} false; then :
27265 $as_echo_n "(cached) " >&6
27267 if test -n "$M4"; then
27268 gmp_cv_prog_m4="$M4"
27270 cat >conftest.m4 <<\EOF
27271 define(dollarhash,``$#'')ifelse(dollarhash(x),1,`define(t1,Y)',
27272 ``bad: $# not supported (SunOS /usr/bin/m4)
27273 '')ifelse(eval(89),89,`define(t2,Y)',
27274 `bad: eval() doesnt support 8 or 9 in a constant (OpenBSD 2.6 m4)
27275 ')ifelse(t1`'t2,YY,`good
27278 echo "trying m4" >&5
27279 gmp_tmp_val=`(m4 conftest.m4) 2>&5`
27280 echo "$gmp_tmp_val" >&5
27281 if test "$gmp_tmp_val" = good; then
27282 gmp_cv_prog_m4="m4"
27284 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
27285 ac_dummy="$PATH:/usr/5bin"
27286 for ac_dir in $ac_dummy; do
27287 test -z "$ac_dir" && ac_dir=.
27288 echo "trying $ac_dir/m4" >&5
27289 gmp_tmp_val=`($ac_dir/m4 conftest.m4) 2>&5`
27290 echo "$gmp_tmp_val" >&5
27291 if test "$gmp_tmp_val" = good; then
27292 gmp_cv_prog_m4="$ac_dir/m4"
27297 if test -z "$gmp_cv_prog_m4"; then
27298 as_fn_error $? "No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." "$LINENO" 5
27304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_m4" >&5
27305 $as_echo "$gmp_cv_prog_m4" >&6; }
27306 M4="$gmp_cv_prog_m4"
27310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if m4wrap produces spurious output" >&5
27311 $as_echo_n "checking if m4wrap produces spurious output... " >&6; }
27312 if ${gmp_cv_m4_m4wrap_spurious+:} false; then :
27313 $as_echo_n "(cached) " >&6
27315 # hide the d-n-l from autoconf's error checking
27317 cat >conftest.m4 <<EOF
27318 changequote({,})define(x,)m4wrap({x})$tmp_d_n_l
27320 echo test input is >&5
27321 cat conftest.m4 >&5
27322 tmp_chars=`$M4 conftest.m4 | wc -c`
27323 echo produces $tmp_chars chars output >&5
27325 if test $tmp_chars = 0; then
27326 gmp_cv_m4_m4wrap_spurious=no
27328 gmp_cv_m4_m4wrap_spurious=yes
27332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_m4_m4wrap_spurious" >&5
27333 $as_echo "$gmp_cv_m4_m4wrap_spurious" >&6; }
27335 echo "define(<M4WRAP_SPURIOUS>,<$gmp_cv_m4_m4wrap_spurious>)" >> $gmp_tmpconfigm4
27339 # It's unclear why this m4-not-needed stuff was ever done.
27340 # if test -z "$M4" ; then
27345 # Only do the GMP_ASM checks if there's a .S or .asm wanting them.
27346 if test $found_asm = no && test $found_S = no; then
27347 gmp_asm_syntax_testing=no
27350 if test "$gmp_asm_syntax_testing" != no; then
27351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to text section" >&5
27352 $as_echo_n "checking how to switch to text section... " >&6; }
27353 if ${gmp_cv_asm_text+:} false; then :
27354 $as_echo_n "(cached) " >&6
27356 for i in ".text" ".code" ".csect .text[PR]"; do
27357 echo "trying $i" >&5
27358 cat >conftest.s <<EOF
27361 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27363 (eval $gmp_assemble) 2>&5
27365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27366 test $ac_status = 0; }; then
27367 cat conftest.out >&5
27372 cat conftest.out >&5
27373 echo "configure: failed program was:" >&5
27380 if test -z "$gmp_cv_asm_text"; then
27381 as_fn_error $? "Cannot determine text section directive" "$LINENO" 5
27385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_text" >&5
27386 $as_echo "$gmp_cv_asm_text" >&6; }
27387 echo "define(<TEXT>, <$gmp_cv_asm_text>)" >> $gmp_tmpconfigm4
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to data section" >&5
27390 $as_echo_n "checking how to switch to data section... " >&6; }
27391 if ${gmp_cv_asm_data+:} false; then :
27392 $as_echo_n "(cached) " >&6
27395 *-*-aix*) gmp_cv_asm_data=".csect .data[RW]" ;;
27396 *) gmp_cv_asm_data=".data" ;;
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_data" >&5
27401 $as_echo "$gmp_cv_asm_data" >&6; }
27402 echo "define(<DATA>, <$gmp_cv_asm_data>)" >> $gmp_tmpconfigm4
27405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler label suffix" >&5
27406 $as_echo_n "checking for assembler label suffix... " >&6; }
27407 if ${gmp_cv_asm_label_suffix+:} false; then :
27408 $as_echo_n "(cached) " >&6
27410 gmp_cv_asm_label_suffix=unknown
27411 for i in "" ":"; do
27412 echo "trying $i" >&5
27413 cat >conftest.s <<EOF
27417 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27419 (eval $gmp_assemble) 2>&5
27421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27422 test $ac_status = 0; }; then
27423 cat conftest.out >&5
27424 gmp_cv_asm_label_suffix=$i
27428 cat conftest.out >&5
27429 echo "configure: failed program was:" >&5
27431 cat conftest.out >&5
27436 if test "$gmp_cv_asm_label_suffix" = "unknown"; then
27437 as_fn_error $? "Cannot determine label suffix" "$LINENO" 5
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_label_suffix" >&5
27442 $as_echo "$gmp_cv_asm_label_suffix" >&6; }
27443 echo "define(<LABEL_SUFFIX>, <$gmp_cv_asm_label_suffix>)" >> $gmp_tmpconfigm4
27446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global directive" >&5
27447 $as_echo_n "checking for assembler global directive... " >&6; }
27448 if ${gmp_cv_asm_globl+:} false; then :
27449 $as_echo_n "(cached) " >&6
27452 hppa*-*-*) gmp_cv_asm_globl=.export ;;
27453 ia64*-*-* | itanium-*-* | itanium2-*-*) gmp_cv_asm_globl=.global ;;
27454 *) gmp_cv_asm_globl=.globl ;;
27458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_globl" >&5
27459 $as_echo "$gmp_cv_asm_globl" >&6; }
27460 echo "define(<GLOBL>, <$gmp_cv_asm_globl>)" >> $gmp_tmpconfigm4
27463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global directive attribute" >&5
27464 $as_echo_n "checking for assembler global directive attribute... " >&6; }
27465 if ${gmp_cv_asm_globl_attr+:} false; then :
27466 $as_echo_n "(cached) " >&6
27468 case $gmp_cv_asm_globl in
27469 .export) gmp_cv_asm_globl_attr=",entry" ;;
27470 *) gmp_cv_asm_globl_attr="" ;;
27474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_globl_attr" >&5
27475 $as_echo "$gmp_cv_asm_globl_attr" >&6; }
27476 echo "define(<GLOBL_ATTR>, <$gmp_cv_asm_globl_attr>)" >> $gmp_tmpconfigm4
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if globals are prefixed by underscore" >&5
27480 $as_echo_n "checking if globals are prefixed by underscore... " >&6; }
27481 if ${gmp_cv_asm_underscore+:} false; then :
27482 $as_echo_n "(cached) " >&6
27484 gmp_cv_asm_underscore="unknown"
27485 cat >conftest.c <<EOF
27488 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5"
27489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
27490 (eval $gmp_compile) 2>&5
27492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27493 test $ac_status = 0; }; then
27494 $NM conftest.$OBJEXT >conftest.out
27495 if grep _gurkmacka conftest.out >/dev/null; then
27496 gmp_cv_asm_underscore=yes
27497 elif grep gurkmacka conftest.out >/dev/null; then
27498 gmp_cv_asm_underscore=no
27500 echo "configure: $NM doesn't have gurkmacka:" >&5
27501 cat conftest.out >&5
27504 echo "configure: failed program was:" >&5
27510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_underscore" >&5
27511 $as_echo "$gmp_cv_asm_underscore" >&6; }
27512 case $gmp_cv_asm_underscore in
27515 echo 'define(<GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
27519 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
27522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
27523 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
27524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Cannot determine global symbol prefix." >&5
27525 $as_echo "$as_me: WARNING: | Cannot determine global symbol prefix." >&2;}
27526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $NM output doesn't contain a global data symbol." >&5
27527 $as_echo "$as_me: WARNING: | $NM output doesn't contain a global data symbol." >&2;}
27528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Will proceed with no underscore." >&5
27529 $as_echo "$as_me: WARNING: | Will proceed with no underscore." >&2;}
27530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | If this is wrong then you'll get link errors referring" >&5
27531 $as_echo "$as_me: WARNING: | If this is wrong then you'll get link errors referring" >&2;}
27532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | to ___gmpn_add_n (note three underscores)." >&5
27533 $as_echo "$as_me: WARNING: | to ___gmpn_add_n (note three underscores)." >&2;}
27534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | In this case do a fresh build with an override," >&5
27535 $as_echo "$as_me: WARNING: | In this case do a fresh build with an override," >&2;}
27536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&5
27537 $as_echo "$as_me: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&2;}
27538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
27539 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
27541 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
27550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to read-only data section" >&5
27551 $as_echo_n "checking how to switch to read-only data section... " >&6; }
27552 if ${gmp_cv_asm_rodata+:} false; then :
27553 $as_echo_n "(cached) " >&6
27557 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | x86_64-*-*)
27558 gmp_cv_asm_rodata="$gmp_cv_asm_data" ;;
27560 gmp_cv_asm_rodata="$gmp_cv_asm_text" ;;
27563 cat >conftest.c <<EOF
27564 extern const int foo[]; /* Suppresses C++'s suppression of foo */
27565 const int foo[] = {1,2,3};
27567 echo "Test program:" >&5
27569 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
27570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
27571 (eval $gmp_compile) 2>&5
27573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27574 test $ac_status = 0; }; then
27575 echo "Compiler output:" >&5
27577 if test $gmp_cv_asm_underscore = yes; then
27582 # must see our label
27583 if grep "^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" conftest.s >/dev/null 2>&5; then
27584 # take the last directive before our label (hence skipping segments
27585 # getting debugging info etc)
27586 tmp_match=`sed -n "/^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix/q
27592 /^[. ]*CSECT/p" conftest.s | sed -n '$p'`
27593 echo "Match: $tmp_match" >&5
27594 if test -n "$tmp_match"; then
27595 gmp_cv_asm_rodata=$tmp_match
27598 echo "Couldn't find label: ^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" >&5
27604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_rodata" >&5
27605 $as_echo "$gmp_cv_asm_rodata" >&6; }
27606 echo "define(<RODATA>, <$gmp_cv_asm_rodata>)" >> $gmp_tmpconfigm4
27608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .type directive" >&5
27609 $as_echo_n "checking for assembler .type directive... " >&6; }
27610 if ${gmp_cv_asm_type+:} false; then :
27611 $as_echo_n "(cached) " >&6
27614 for gmp_tmp_prefix in @ \# %; do
27615 cat >conftest.s <<EOF
27616 .type sym,${gmp_tmp_prefix}function
27618 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27620 (eval $gmp_assemble) 2>&5
27622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27623 test $ac_status = 0; }; then
27624 cat conftest.out >&5
27625 if grep "\.type pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
27627 gmp_cv_asm_type=".type \$1,${gmp_tmp_prefix}\$2"
27631 cat conftest.out >&5
27632 echo "configure: failed program was:" >&5
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_type" >&5
27643 $as_echo "$gmp_cv_asm_type" >&6; }
27644 echo "define(<TYPE>, <$gmp_cv_asm_type>)" >> $gmp_tmpconfigm4
27646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .size directive" >&5
27647 $as_echo_n "checking for assembler .size directive... " >&6; }
27648 if ${gmp_cv_asm_size+:} false; then :
27649 $as_echo_n "(cached) " >&6
27652 cat >conftest.s <<EOF
27655 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27657 (eval $gmp_assemble) 2>&5
27659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27660 test $ac_status = 0; }; then
27661 cat conftest.out >&5
27662 if grep "\.size pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
27664 gmp_cv_asm_size=".size \$1,\$2"
27667 cat conftest.out >&5
27668 echo "configure: failed program was:" >&5
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_size" >&5
27677 $as_echo "$gmp_cv_asm_size" >&6; }
27678 echo "define(<SIZE>, <$gmp_cv_asm_size>)" >> $gmp_tmpconfigm4
27683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler local label prefix" >&5
27684 $as_echo_n "checking for assembler local label prefix... " >&6; }
27685 if ${gmp_cv_asm_lsym_prefix+:} false; then :
27686 $as_echo_n "(cached) " >&6
27688 gmp_tmp_pre_appears=yes
27689 for gmp_tmp_pre in L .L $L $ L$; do
27690 echo "Trying $gmp_tmp_pre" >&5
27691 cat >conftest.s <<EOF
27693 dummy${gmp_cv_asm_label_suffix}
27694 ${gmp_tmp_pre}gurkmacka${gmp_cv_asm_label_suffix}
27696 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27698 (eval $gmp_assemble) 2>&5
27700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27701 test $ac_status = 0; }; then
27702 cat conftest.out >&5
27703 if $NM conftest.$OBJEXT >conftest.nm 2>&5; then : ; else
27704 cat conftest.nm >&5
27705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$NM\" failure" >&5
27706 $as_echo "$as_me: WARNING: \"$NM\" failure" >&2;}
27709 cat conftest.nm >&5
27710 if grep gurkmacka conftest.nm >/dev/null; then : ; else
27711 # no mention of the symbol, this is good
27712 echo "$gmp_tmp_pre label doesn't appear in object file at all (good)" >&5
27713 gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
27714 gmp_tmp_pre_appears=no
27717 if grep ' [a-zN] .*gurkmacka' conftest.nm >/dev/null; then
27718 # symbol mentioned as a local, use this if nothing better
27719 echo "$gmp_tmp_pre label is local but still in object file" >&5
27720 if test -z "$gmp_cv_asm_lsym_prefix"; then
27721 gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
27724 echo "$gmp_tmp_pre label is something unknown" >&5
27728 cat conftest.out >&5
27729 echo "configure: failed program was:" >&5
27737 if test -z "$gmp_cv_asm_lsym_prefix"; then
27738 gmp_cv_asm_lsym_prefix=L
27739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&5
27740 $as_echo "$as_me: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&2;}
27742 # for development purposes, note whether we got a purely temporary local label
27743 echo "Local label appears in object files: $gmp_tmp_pre_appears" >&5
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_lsym_prefix" >&5
27747 $as_echo "$gmp_cv_asm_lsym_prefix" >&6; }
27748 echo "define(<LSYM_PREFIX>, <${gmp_cv_asm_lsym_prefix}>)" >> $gmp_tmpconfigm4
27750 cat >>confdefs.h <<_ACEOF
27751 #define LSYM_PREFIX "$gmp_cv_asm_lsym_prefix"
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler byte directive" >&5
27758 $as_echo_n "checking for assembler byte directive... " >&6; }
27759 if ${gmp_cv_asm_byte+:} false; then :
27760 $as_echo_n "(cached) " >&6
27762 for i in .byte data1; do
27763 echo "trying $i" >&5
27764 cat >conftest.s <<EOF
27769 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27771 (eval $gmp_assemble) 2>&5
27773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27774 test $ac_status = 0; }; then
27775 cat conftest.out >&5
27780 cat conftest.out >&5
27781 echo "configure: failed program was:" >&5
27783 cat conftest.out >&5
27788 if test -z "$gmp_cv_asm_byte"; then
27789 as_fn_error $? "Cannot determine how to emit a data byte" "$LINENO" 5
27793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_byte" >&5
27794 $as_echo "$gmp_cv_asm_byte" >&6; }
27801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a 32-bit word" >&5
27802 $as_echo_n "checking how to define a 32-bit word... " >&6; }
27803 if ${gmp_cv_asm_w32+:} false; then :
27804 $as_echo_n "(cached) " >&6
27808 # FIXME: HPUX puts first symbol at 0x40000000, breaking our assumption
27809 # that it's at 0x0. We'll have to declare another symbol before the
27810 # .long/.word and look at the distance between the two symbols. The
27811 # only problem is that the sed expression(s) barfs (on Solaris, for
27812 # example) for the symbol with value 0. For now, HPUX uses .word.
27813 gmp_cv_asm_w32=".word"
27817 for gmp_tmp_op in .long .word data4; do
27818 cat >conftest.s <<EOF
27820 $gmp_cv_asm_globl foo
27822 foo$gmp_cv_asm_label_suffix
27825 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27827 (eval $gmp_assemble) 2>&5
27829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27830 test $ac_status = 0; }; then
27831 cat conftest.out >&5
27832 gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
27833 sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
27834 if test "$gmp_tmp_val" = 4; then
27835 gmp_cv_asm_w32="$gmp_tmp_op"
27839 cat conftest.out >&5
27840 echo "configure: failed program was:" >&5
27850 if test -z "$gmp_cv_asm_w32"; then
27851 as_fn_error $? "cannot determine how to define a 32-bit word" "$LINENO" 5
27855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_w32" >&5
27856 $as_echo "$gmp_cv_asm_w32" >&6; }
27857 echo "define(<W32>, <$gmp_cv_asm_w32>)" >> $gmp_tmpconfigm4
27864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align assembly directive is logarithmic" >&5
27865 $as_echo_n "checking if .align assembly directive is logarithmic... " >&6; }
27866 if ${gmp_cv_asm_align_log+:} false; then :
27867 $as_echo_n "(cached) " >&6
27869 cat >conftest.s <<EOF
27872 $gmp_cv_asm_globl foo
27875 foo$gmp_cv_asm_label_suffix
27878 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27880 (eval $gmp_assemble) 2>&5
27882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27883 test $ac_status = 0; }; then
27884 cat conftest.out >&5
27885 gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
27886 sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
27887 if test "$gmp_tmp_val" = "10" || test "$gmp_tmp_val" = "16"; then
27888 gmp_cv_asm_align_log=yes
27890 gmp_cv_asm_align_log=no
27893 cat conftest.out >&5
27894 echo "configure: failed program was:" >&5
27896 as_fn_error $? "cannot assemble alignment test" "$LINENO" 5
27901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_align_log" >&5
27902 $as_echo "$gmp_cv_asm_align_log" >&6; }
27905 echo "define(<ALIGN_LOGARITHMIC>,<$gmp_cv_asm_align_log>)" >> $gmp_tmpconfigm4
27911 # for both pa32 and pa64
27913 echo "include_mpn(\`pa32/pa-defs.m4')" >> $gmp_tmpconfigm4i
27916 ia64*-*-* | itanium-*-* | itanium2-*-*)
27917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler .align padding is good" >&5
27918 $as_echo_n "checking whether assembler .align padding is good... " >&6; }
27919 if ${gmp_cv_asm_ia64_align_ok+:} false; then :
27920 $as_echo_n "(cached) " >&6
27922 cat >conftest.awk <<\EOF
27978 for (f = 2; f <= NF; f++)
27980 for (i = 0; i < 47; i++)
27985 for (i = 0; i < 48; i++)
27986 if (got[i] != want[i])
28002 cat >conftest.s <<EOF
28005 { .mmi; add r14 = r15, r16
28007 add r20 = r21, r22 ;; }
28009 { .mmi; add r23 = r24, r25
28011 add r29 = r30, r31 ;; }
28014 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28016 (eval $gmp_assemble) 2>&5
28018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28019 test $ac_status = 0; }; then
28020 cat conftest.out >&5
28021 gmp_cv_asm_ia64_align_ok=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
28023 cat conftest.out >&5
28024 echo "configure: failed program was:" >&5
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
28027 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
28028 gmp_cv_asm_ia64_align_ok=yes
28034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_ia64_align_ok" >&5
28035 $as_echo "$gmp_cv_asm_ia64_align_ok" >&6; }
28037 echo "define(<IA64_ALIGN_OK>, <\`$gmp_cv_asm_ia64_align_ok'>)" >> $gmp_tmpconfigm4
28041 m68k-*-* | m68[0-9][0-9][0-9]-*-*)
28043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler instruction and register style" >&5
28044 $as_echo_n "checking assembler instruction and register style... " >&6; }
28045 if ${gmp_cv_asm_m68k_instruction+:} false; then :
28046 $as_echo_n "(cached) " >&6
28048 for i in "addl %d0,%d1" "add.l %d0,%d1" "addl d0,d1" "add.l d0,d1"; do
28049 cat >conftest.s <<EOF
28053 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28055 (eval $gmp_assemble) 2>&5
28057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28058 test $ac_status = 0; }; then
28059 cat conftest.out >&5
28060 gmp_cv_asm_m68k_instruction=$i
28064 cat conftest.out >&5
28065 echo "configure: failed program was:" >&5
28072 if test -z "$gmp_cv_asm_m68k_instruction"; then
28073 as_fn_error $? "cannot determine assembler instruction and register style" "$LINENO" 5
28077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_instruction" >&5
28078 $as_echo "$gmp_cv_asm_m68k_instruction" >&6; }
28079 case $gmp_cv_asm_m68k_instruction in
28080 "addl d0,d1") want_dot_size=no; want_register_percent=no ;;
28081 "addl %d0,%d1") want_dot_size=no; want_register_percent=yes ;;
28082 "add.l d0,d1") want_dot_size=yes; want_register_percent=no ;;
28083 "add.l %d0,%d1") want_dot_size=yes; want_register_percent=yes ;;
28084 *) as_fn_error $? "oops, unrecognised instruction and register style" "$LINENO" 5 ;;
28087 echo "define(<WANT_REGISTER_PERCENT>, <\`$want_register_percent'>)" >> $gmp_tmpconfigm4
28090 echo "define(<WANT_DOT_SIZE>, <\`$want_dot_size'>)" >> $gmp_tmpconfigm4
28095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler addressing style" >&5
28096 $as_echo_n "checking assembler addressing style... " >&6; }
28097 if ${gmp_cv_asm_m68k_addressing+:} false; then :
28098 $as_echo_n "(cached) " >&6
28100 case $gmp_cv_asm_m68k_instruction in
28101 addl*) movel=movel ;;
28102 add.l*) movel=move.l ;;
28103 *) as_fn_error $? "oops, unrecognised gmp_cv_asm_m68k_instruction" "$LINENO" 5 ;;
28105 case $gmp_cv_asm_m68k_instruction in
28106 *"%d0,%d1") dreg=%d0; areg=%a0 ;;
28107 *"d0,d1") dreg=d0; areg=a0 ;;
28108 *) as_fn_error $? "oops, unrecognised gmp_cv_asm_m68k_instruction" "$LINENO" 5 ;;
28110 cat >conftest.s <<EOF
28112 $movel $dreg, $areg@-
28114 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28116 (eval $gmp_assemble) 2>&5
28118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28119 test $ac_status = 0; }; then
28120 cat conftest.out >&5
28121 gmp_cv_asm_m68k_addressing=mit
28123 cat conftest.out >&5
28124 echo "configure: failed program was:" >&5
28126 cat >conftest.s <<EOF
28128 $movel $dreg, -($areg)
28130 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28132 (eval $gmp_assemble) 2>&5
28134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28135 test $ac_status = 0; }; then
28136 cat conftest.out >&5
28137 gmp_cv_asm_m68k_addressing=motorola
28139 cat conftest.out >&5
28140 echo "configure: failed program was:" >&5
28142 as_fn_error $? "cannot determine assembler addressing style" "$LINENO" 5
28151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_addressing" >&5
28152 $as_echo "$gmp_cv_asm_m68k_addressing" >&6; }
28154 echo "define(<WANT_ADDRESSING>, <\`$gmp_cv_asm_m68k_addressing'>)" >> $gmp_tmpconfigm4
28158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler shortest branches" >&5
28159 $as_echo_n "checking assembler shortest branches... " >&6; }
28160 if ${gmp_cv_asm_m68k_branches+:} false; then :
28161 $as_echo_n "(cached) " >&6
28163 for i in jra jbra bra; do
28164 cat >conftest.s <<EOF
28166 foo$gmp_cv_asm_label_suffix
28169 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28171 (eval $gmp_assemble) 2>&5
28173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28174 test $ac_status = 0; }; then
28175 cat conftest.out >&5
28176 gmp_cv_asm_m68k_branches=$i
28180 cat conftest.out >&5
28181 echo "configure: failed program was:" >&5
28188 if test -z "$gmp_cv_asm_m68k_branches"; then
28189 as_fn_error $? "cannot determine assembler branching style" "$LINENO" 5
28193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_branches" >&5
28194 $as_echo "$gmp_cv_asm_m68k_branches" >&6; }
28196 echo "define(<WANT_BRANCHES>, <\`$gmp_cv_asm_m68k_branches'>)" >> $gmp_tmpconfigm4
28200 powerpc*-*-* | power[3-9]-*-*)
28202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler output is PIC by default" >&5
28203 $as_echo_n "checking whether compiler output is PIC by default... " >&6; }
28204 if ${gmp_cv_asm_powerpc_pic+:} false; then :
28205 $as_echo_n "(cached) " >&6
28207 gmp_cv_asm_powerpc_pic=yes
28208 cat >conftest.c <<EOF
28210 int *bar() { return &foo; }
28212 echo "Test program:" >&5
28214 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
28215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
28216 (eval $gmp_compile) 2>&5
28218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28219 test $ac_status = 0; }; then
28220 echo "Compiler output:" >&5
28222 if grep 'foo@ha' conftest.s >/dev/null 2>&5; then
28223 gmp_cv_asm_powerpc_pic=no
28225 if grep 'ha16(_foo)' conftest.s >/dev/null 2>&5; then
28226 gmp_cv_asm_powerpc_pic=no
28232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_pic" >&5
28233 $as_echo "$gmp_cv_asm_powerpc_pic" >&6; }
28235 echo "define(<PIC_ALWAYS>,<$gmp_cv_asm_powerpc_pic>)" >> $gmp_tmpconfigm4
28239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler needs r on registers" >&5
28240 $as_echo_n "checking if the assembler needs r on registers... " >&6; }
28241 if ${gmp_cv_asm_powerpc_r_registers+:} false; then :
28242 $as_echo_n "(cached) " >&6
28244 cat >conftest.s <<EOF
28248 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28250 (eval $gmp_assemble) 2>&5
28252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28253 test $ac_status = 0; }; then
28254 cat conftest.out >&5
28255 gmp_cv_asm_powerpc_r_registers=no
28257 cat conftest.out >&5
28258 echo "configure: failed program was:" >&5
28260 cat >conftest.s <<EOF
28264 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28266 (eval $gmp_assemble) 2>&5
28268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28269 test $ac_status = 0; }; then
28270 cat conftest.out >&5
28271 gmp_cv_asm_powerpc_r_registers=yes
28273 cat conftest.out >&5
28274 echo "configure: failed program was:" >&5
28276 as_fn_error $? "neither \"mtctr 6\" nor \"mtctr r6\" works" "$LINENO" 5
28284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_r_registers" >&5
28285 $as_echo "$gmp_cv_asm_powerpc_r_registers" >&6; }
28288 echo "define(<WANT_R_REGISTERS>,<$gmp_cv_asm_powerpc_r_registers>)" >> $gmp_tmpconfigm4
28292 echo "include_mpn(\`powerpc32/powerpc-defs.m4')" >> $gmp_tmpconfigm4i
28298 echo "include_mpn(\`powerpc64/aix.m4')" >> $gmp_tmpconfigm4i
28301 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
28305 *-*-linux* | *-*-*bsd*)
28308 echo "include_mpn(\`powerpc64/elf.m4')" >> $gmp_tmpconfigm4i
28311 echo "include_mpn(\`powerpc32/elf.m4')" >> $gmp_tmpconfigm4i
28318 echo "include_mpn(\`powerpc64/darwin.m4')" >> $gmp_tmpconfigm4i
28321 echo "include_mpn(\`powerpc32/darwin.m4')" >> $gmp_tmpconfigm4i
28326 # Assume unrecognized operating system is the powerpc eABI
28328 echo "include_mpn(\`powerpc32/eabi.m4')" >> $gmp_tmpconfigm4i
28335 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
28342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler accepts \".register\"" >&5
28343 $as_echo_n "checking if the assembler accepts \".register\"... " >&6; }
28344 if ${gmp_cv_asm_sparc_register+:} false; then :
28345 $as_echo_n "(cached) " >&6
28347 cat >conftest.s <<EOF
28349 .register %g2,#scratch
28352 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28354 (eval $gmp_assemble) 2>&5
28356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28357 test $ac_status = 0; }; then
28358 cat conftest.out >&5
28359 gmp_cv_asm_sparc_register=yes
28361 cat conftest.out >&5
28362 echo "configure: failed program was:" >&5
28364 gmp_cv_asm_sparc_register=no
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_sparc_register" >&5
28370 $as_echo "$gmp_cv_asm_sparc_register" >&6; }
28373 echo "define(<HAVE_REGISTER>,<$gmp_cv_asm_sparc_register>)" >> $gmp_tmpconfigm4
28379 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the .align directive accepts an 0x90 fill in .text" >&5
28382 $as_echo_n "checking if the .align directive accepts an 0x90 fill in .text... " >&6; }
28383 if ${gmp_cv_asm_align_fill_0x90+:} false; then :
28384 $as_echo_n "(cached) " >&6
28386 cat >conftest.s <<EOF
28392 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28394 (eval $gmp_assemble) 2>&5
28396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28397 test $ac_status = 0; }; then
28398 cat conftest.out >&5
28399 if grep "Warning: Fill parameter ignored for executable section" conftest.out >/dev/null; then
28400 echo "Supressing this warning by omitting 0x90" 1>&5
28401 gmp_cv_asm_align_fill_0x90=no
28403 gmp_cv_asm_align_fill_0x90=yes
28406 cat conftest.out >&5
28407 echo "configure: failed program was:" >&5
28409 gmp_cv_asm_align_fill_0x90=no
28414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_align_fill_0x90" >&5
28415 $as_echo "$gmp_cv_asm_align_fill_0x90" >&6; }
28418 echo "define(<ALIGN_FILL_0x90>,<$gmp_cv_asm_align_fill_0x90>)" >> $gmp_tmpconfigm4
28424 echo "include_mpn(\`x86/x86-defs.m4')" >> $gmp_tmpconfigm4i
28426 $as_echo "#define HAVE_HOST_CPU_FAMILY_x86 1" >>confdefs.h
28433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler COFF type directives" >&5
28434 $as_echo_n "checking for assembler COFF type directives... " >&6; }
28435 if ${gmp_cv_asm_x86_coff_type+:} false; then :
28436 $as_echo_n "(cached) " >&6
28438 cat >conftest.s <<EOF
28440 $gmp_cv_asm_globl ${tmp_gsym_prefix}foo$gmp_cv_asm_globl_attr
28441 .def ${tmp_gsym_prefix}foo
28445 ${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix
28448 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28450 (eval $gmp_assemble) 2>&5
28452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28453 test $ac_status = 0; }; then
28454 cat conftest.out >&5
28455 gmp_cv_asm_x86_coff_type=yes
28457 cat conftest.out >&5
28458 echo "configure: failed program was:" >&5
28460 gmp_cv_asm_x86_coff_type=no
28466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_coff_type" >&5
28467 $as_echo "$gmp_cv_asm_x86_coff_type" >&6; }
28468 echo "define(<HAVE_COFF_TYPE>, <$gmp_cv_asm_x86_coff_type>)" >> $gmp_tmpconfigm4
28477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore" >&5
28478 $as_echo_n "checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore... " >&6; }
28479 if ${gmp_cv_asm_x86_got_underscore+:} false; then :
28480 $as_echo_n "(cached) " >&6
28482 gmp_cv_asm_x86_got_underscore="not applicable"
28483 if test $gmp_cv_asm_underscore = yes; then
28488 for tmp_underscore in "" "_"; do
28489 cat >conftest.s <<EOF
28491 $gmp_cv_asm_globl ${tmp_gsym_prefix}main$gmp_cv_asm_globl_attr
28492 ${tmp_gsym_prefix}main$gmp_cv_asm_label_suffix
28493 addl $ ${tmp_underscore}_GLOBAL_OFFSET_TABLE_, %ebx
28495 gmp_compile="$CCAS $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.s >&5 && $CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.$OBJEXT >&5"
28496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
28497 (eval $gmp_compile) 2>&5
28499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28500 test $ac_status = 0; }; then
28501 if test "$tmp_underscore" = "_"; then
28502 gmp_cv_asm_x86_got_underscore=yes
28504 gmp_cv_asm_x86_got_underscore=no
28509 rm -f conftest* a.out b.out a.exe a_out.exe
28512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_got_underscore" >&5
28513 $as_echo "$gmp_cv_asm_x86_got_underscore" >&6; }
28514 if test "$gmp_cv_asm_x86_got_underscore" = "yes"; then
28516 echo 'define(<GOT_GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
28520 echo 'define(<GOT_GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
28525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler takes cl with shldl" >&5
28526 $as_echo_n "checking if the assembler takes cl with shldl... " >&6; }
28527 if ${gmp_cv_asm_x86_shldl_cl+:} false; then :
28528 $as_echo_n "(cached) " >&6
28530 cat >conftest.s <<EOF
28532 shldl %cl, %eax, %ebx
28534 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28536 (eval $gmp_assemble) 2>&5
28538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28539 test $ac_status = 0; }; then
28540 cat conftest.out >&5
28541 gmp_cv_asm_x86_shldl_cl=yes
28543 cat conftest.out >&5
28544 echo "configure: failed program was:" >&5
28546 gmp_cv_asm_x86_shldl_cl=no
28552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_shldl_cl" >&5
28553 $as_echo "$gmp_cv_asm_x86_shldl_cl" >&6; }
28554 if test "$gmp_cv_asm_x86_shldl_cl" = "yes"; then
28556 echo 'define(<WANT_SHLDL_CL>, <1>)' >>$gmp_tmpconfigm4
28560 echo 'define(<WANT_SHLDL_CL>, <0>)' >>$gmp_tmpconfigm4
28564 case $enable_profiling in
28565 prof | gprof) # Check whether --enable-shared was given.
28566 if test "${enable_shared+set}" = set; then :
28567 enableval=$enable_shared; p=${PACKAGE-default}
28569 yes) enable_shared=yes ;;
28570 no) enable_shared=no ;;
28573 # Look at the argument we got. We use all the common list separators.
28574 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
28575 for pkg in $enableval; do
28577 if test "X$pkg" = "X$p"; then
28595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to call x86 mcount" >&5
28596 $as_echo_n "checking how to call x86 mcount... " >&6; }
28597 cat >conftest.c <<EOF
28601 if test "$enable_static" = yes; then
28602 gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c 1>&5"
28603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_asmout_compile\""; } >&5
28604 (eval $gmp_asmout_compile) 2>&5
28606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28607 test $ac_status = 0; }; then
28608 if grep '\.data' conftest.s >/dev/null; then
28609 mcount_nonpic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
28613 mcount_nonpic_call=`grep 'call.*mcount' conftest.s`
28614 if test -z "$mcount_nonpic_call"; then
28615 as_fn_error $? "Cannot find mcount call for non-PIC" "$LINENO" 5
28618 as_fn_error $? "Cannot compile test program for non-PIC" "$LINENO" 5
28622 if test "$enable_shared" = yes; then
28623 gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic -S conftest.c 1>&5"
28624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_asmout_compile\""; } >&5
28625 (eval $gmp_asmout_compile) 2>&5
28627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28628 test $ac_status = 0; }; then
28629 if grep '\.data' conftest.s >/dev/null; then
28630 case $lt_prog_compiler_pic in
28632 # Windows DLLs have non-PIC style mcount
28633 mcount_pic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
28636 mcount_pic_reg=`sed -n 's/.*GOTOFF.*,\(%[a-z]*\).*$/\1/p' conftest.s`
28642 mcount_pic_call=`grep 'call.*mcount' conftest.s`
28643 if test -z "$mcount_pic_call"; then
28644 as_fn_error $? "Cannot find mcount call for PIC" "$LINENO" 5
28647 as_fn_error $? "Cannot compile test program for PIC" "$LINENO" 5
28652 echo "define(<MCOUNT_NONPIC_REG>, <\`$mcount_nonpic_reg'>)" >> $gmp_tmpconfigm4
28655 echo "define(<MCOUNT_NONPIC_CALL>,<\`$mcount_nonpic_call'>)" >> $gmp_tmpconfigm4
28658 echo "define(<MCOUNT_PIC_REG>, <\`$mcount_pic_reg'>)" >> $gmp_tmpconfigm4
28661 echo "define(<MCOUNT_PIC_CALL>, <\`$mcount_pic_call'>)" >> $gmp_tmpconfigm4
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: determined" >&5
28666 $as_echo "determined" >&6; }
28672 echo "include_mpn(\`x86/darwin.m4')" >> $gmp_tmpconfigm4i
28678 echo "include_mpn(\`x86_64/x86_64-defs.m4')" >> $gmp_tmpconfigm4i
28680 $as_echo "#define HAVE_HOST_CPU_FAMILY_x86_64 1" >>confdefs.h
28685 echo "include_mpn(\`x86_64/darwin.m4')" >> $gmp_tmpconfigm4i
28687 *-*-mingw* | *-*-cygwin)
28689 echo "include_mpn(\`x86_64/dos64.m4')" >> $gmp_tmpconfigm4i
28698 # For --enable-minithres, prepend "minithres" to path so that its special
28699 # gmp-mparam.h will be used.
28700 if test $enable_minithres = yes; then
28701 path="minithres $path"
28704 # Create link for gmp-mparam.h.
28706 for gmp_mparam_dir in $path; do
28707 test "$no_create" = yes || rm -f gmp-mparam.h
28708 tmp_file=$srcdir/mpn/$gmp_mparam_dir/gmp-mparam.h
28709 if test -f $tmp_file; then
28710 ac_config_links="$ac_config_links gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h"
28712 gmp_srclinks="$gmp_srclinks gmp-mparam.h"
28713 gmp_mparam_source=$tmp_file
28717 if test -z "$gmp_mparam_source"; then
28718 as_fn_error $? "no version of gmp-mparam.h found in path: $path" "$LINENO" 5
28721 # For a helpful message from tune/tuneup.c
28722 gmp_mparam_suggest=$gmp_mparam_source
28723 if test "$gmp_mparam_dir" = generic; then
28724 for i in $path; do break; done
28725 if test "$i" != generic; then
28726 gmp_mparam_suggest="new file $srcdir/mpn/$i/gmp-mparam.h"
28730 cat >>confdefs.h <<_ACEOF
28731 #define GMP_MPARAM_H_SUGGEST "$gmp_mparam_source"
28736 # Copy relevant parameters from gmp-mparam.h to config.m4.
28737 # We only do this for parameters that are used by some assembly files.
28738 # Fat binaries do this on a per-file basis, so skip in that case.
28740 if test -z "$fat_path"; then
28741 for i in SQR_TOOM2_THRESHOLD BMOD_1_TO_MOD_1_THRESHOLD SHLD_SLOW SHRD_SLOW; do
28742 value=`sed -n 's/^#define '$i'[ ]*\([0-9][0-9]*\).*$/\1/p' $gmp_mparam_source`
28743 if test -n "$value"; then
28745 echo "define(<$i>,<$value>)" >> $gmp_tmpconfigm4
28752 # Sizes of some types, needed at preprocessing time.
28754 # FIXME: The assumption that GMP_LIMB_BITS is 8*sizeof(mp_limb_t) might
28755 # be slightly rash, but it's true everywhere we know of and ought to be true
28756 # of any sensible system. In a generic C build, grepping LONG_BIT out of
28757 # <limits.h> might be an alternative, for maximum portability.
28759 # The cast to long int works around a bug in the HP C Compiler
28760 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28761 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28762 # This bug is HP SR number 8606223364.
28763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
28764 $as_echo_n "checking size of void *... " >&6; }
28765 if ${ac_cv_sizeof_void_p+:} false; then :
28766 $as_echo_n "(cached) " >&6
28768 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
28771 if test "$ac_cv_type_void_p" = yes; then
28772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28774 as_fn_error 77 "cannot compute sizeof (void *)
28775 See \`config.log' for more details" "$LINENO" 5; }
28777 ac_cv_sizeof_void_p=0
28782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
28783 $as_echo "$ac_cv_sizeof_void_p" >&6; }
28787 cat >>confdefs.h <<_ACEOF
28788 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
28792 # The cast to long int works around a bug in the HP C Compiler
28793 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28794 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28795 # This bug is HP SR number 8606223364.
28796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
28797 $as_echo_n "checking size of unsigned short... " >&6; }
28798 if ${ac_cv_sizeof_unsigned_short+:} false; then :
28799 $as_echo_n "(cached) " >&6
28801 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
28804 if test "$ac_cv_type_unsigned_short" = yes; then
28805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28807 as_fn_error 77 "cannot compute sizeof (unsigned short)
28808 See \`config.log' for more details" "$LINENO" 5; }
28810 ac_cv_sizeof_unsigned_short=0
28815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
28816 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
28820 cat >>confdefs.h <<_ACEOF
28821 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
28825 # The cast to long int works around a bug in the HP C Compiler
28826 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28827 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28828 # This bug is HP SR number 8606223364.
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5
28830 $as_echo_n "checking size of unsigned... " >&6; }
28831 if ${ac_cv_sizeof_unsigned+:} false; then :
28832 $as_echo_n "(cached) " >&6
28834 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned" "$ac_includes_default"; then :
28837 if test "$ac_cv_type_unsigned" = yes; then
28838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28840 as_fn_error 77 "cannot compute sizeof (unsigned)
28841 See \`config.log' for more details" "$LINENO" 5; }
28843 ac_cv_sizeof_unsigned=0
28848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5
28849 $as_echo "$ac_cv_sizeof_unsigned" >&6; }
28853 cat >>confdefs.h <<_ACEOF
28854 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
28858 # The cast to long int works around a bug in the HP C Compiler
28859 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28860 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28861 # This bug is HP SR number 8606223364.
28862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
28863 $as_echo_n "checking size of unsigned long... " >&6; }
28864 if ${ac_cv_sizeof_unsigned_long+:} false; then :
28865 $as_echo_n "(cached) " >&6
28867 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
28870 if test "$ac_cv_type_unsigned_long" = yes; then
28871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28873 as_fn_error 77 "cannot compute sizeof (unsigned long)
28874 See \`config.log' for more details" "$LINENO" 5; }
28876 ac_cv_sizeof_unsigned_long=0
28881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
28882 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
28886 cat >>confdefs.h <<_ACEOF
28887 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
28891 # The cast to long int works around a bug in the HP C Compiler
28892 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28893 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28894 # This bug is HP SR number 8606223364.
28895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of mp_limb_t" >&5
28896 $as_echo_n "checking size of mp_limb_t... " >&6; }
28897 if ${ac_cv_sizeof_mp_limb_t+:} false; then :
28898 $as_echo_n "(cached) " >&6
28900 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (mp_limb_t))" "ac_cv_sizeof_mp_limb_t" "#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
28901 #define GMP_NAIL_BITS $GMP_NAIL_BITS
28902 #define GMP_LIMB_BITS 123
28903 $DEFN_LONG_LONG_LIMB
28904 #include \"$srcdir/gmp-h.in\"
28909 if test "$ac_cv_type_mp_limb_t" = yes; then
28910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28912 as_fn_error 77 "cannot compute sizeof (mp_limb_t)
28913 See \`config.log' for more details" "$LINENO" 5; }
28915 ac_cv_sizeof_mp_limb_t=0
28920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_mp_limb_t" >&5
28921 $as_echo "$ac_cv_sizeof_mp_limb_t" >&6; }
28925 cat >>confdefs.h <<_ACEOF
28926 #define SIZEOF_MP_LIMB_T $ac_cv_sizeof_mp_limb_t
28930 if test "$ac_cv_sizeof_mp_limb_t" = 0; then
28931 as_fn_error $? "Oops, mp_limb_t doesn't seem to work" "$LINENO" 5
28933 GMP_LIMB_BITS=`expr 8 \* $ac_cv_sizeof_mp_limb_t`
28936 echo "define(<SIZEOF_UNSIGNED>,<$ac_cv_sizeof_unsigned>)" >> $gmp_tmpconfigm4
28939 # Check compiler limb size matches gmp-mparam.h
28941 # FIXME: Some of the cycle counter objects in the tune directory depend on
28942 # the size of ulong, it'd be possible to check that here, though a mismatch
28943 # probably wouldn't want to be fatal, none of the libgmp assembler code
28944 # depends on ulong.
28946 mparam_bits=`sed -n 's/^#define GMP_LIMB_BITS[ ][ ]*\([0-9]*\).*$/\1/p' $gmp_mparam_source`
28947 if test -n "$mparam_bits" && test "$mparam_bits" -ne $GMP_LIMB_BITS; then
28948 if test "$test_CFLAGS" = set; then
28949 as_fn_error $? "Oops, mp_limb_t is $GMP_LIMB_BITS bits, but the assembler code
28950 in this configuration expects $mparam_bits bits.
28951 You appear to have set \$CFLAGS, perhaps you also need to tell GMP the
28952 intended ABI, see \"ABI and ISA\" in the manual." "$LINENO" 5
28954 as_fn_error $? "Oops, mp_limb_t is $GMP_LIMB_BITS bits, but the assembler code
28955 in this configuration expects $mparam_bits bits." "$LINENO" 5
28960 echo "define(<GMP_LIMB_BITS>,$GMP_LIMB_BITS)" >> $gmp_tmpconfigm4
28963 echo "define(<GMP_NAIL_BITS>,$GMP_NAIL_BITS)" >> $gmp_tmpconfigm4
28966 echo "define(<GMP_NUMB_BITS>,eval(GMP_LIMB_BITS-GMP_NAIL_BITS))" >> $gmp_tmpconfigm4
28975 # A recompiled sqr_basecase for use in the tune program, if necessary.
28977 test -d tune || mkdir tune
28978 case $sqr_basecase_source in
28980 sqr_max=`sed -n 's/^def...(SQR_TOOM2_THRESHOLD_MAX, *\([0-9]*\))/\1/p' $sqr_basecase_source`
28981 if test -n "$sqr_max"; then
28982 TUNE_SQR_OBJ=sqr_asm.o
28984 cat >>confdefs.h <<_ACEOF
28985 #define TUNE_SQR_TOOM2_MAX $sqr_max
28989 cat >tune/sqr_basecase.c <<EOF
28990 /* not sure that an empty file can compile, so put in a dummy */
28991 int sqr_basecase_dummy;
28996 $as_echo "#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC" >>confdefs.h
28998 cat >tune/sqr_basecase.c <<EOF
28999 #define TUNE_PROGRAM_BUILD 1
29000 #define TUNE_PROGRAM_BUILD_SQR 1
29001 #include "mpn/sqr_basecase.c"
29008 # Configs for demos/pexpr.c.
29010 ac_config_files="$ac_config_files demos/pexpr-config.h:demos/pexpr-config-h.in"
29012 case $ac_cv_func_clock in
29013 yes) HAVE_CLOCK_01=1
29015 no) HAVE_CLOCK_01=0 ;;
29018 case $ac_cv_func_cputime in
29019 yes) HAVE_CPUTIME_01=1
29021 no) HAVE_CPUTIME_01=0 ;;
29024 case $ac_cv_func_getrusage in
29025 yes) HAVE_GETRUSAGE_01=1
29027 no) HAVE_GETRUSAGE_01=0 ;;
29030 case $ac_cv_func_gettimeofday in
29031 yes) HAVE_GETTIMEOFDAY_01=1
29033 no) HAVE_GETTIMEOFDAY_01=0 ;;
29036 case $ac_cv_func_sigaction in
29037 yes) HAVE_SIGACTION_01=1
29039 no) HAVE_SIGACTION_01=0 ;;
29042 case $ac_cv_func_sigaltstack in
29043 yes) HAVE_SIGALTSTACK_01=1
29045 no) HAVE_SIGALTSTACK_01=0 ;;
29048 case $ac_cv_func_sigstack in
29049 yes) HAVE_SIGSTACK_01=1
29051 no) HAVE_SIGSTACK_01=0 ;;
29055 case $ac_cv_header_sys_resource_h in
29056 yes) HAVE_SYS_RESOURCE_H_01=1
29058 no) HAVE_SYS_RESOURCE_H_01=0 ;;
29062 ac_fn_c_check_type "$LINENO" "stack_t" "ac_cv_type_stack_t" "#include <signal.h>
29064 if test "x$ac_cv_type_stack_t" = xyes; then :
29066 cat >>confdefs.h <<_ACEOF
29067 #define HAVE_STACK_T 1
29077 # Configs for demos/calc directory
29079 # AC_SUBST+AC_CONFIG_FILES is used for calc-config.h, rather than AC_DEFINE+
29080 # AC_CONFIG_HEADERS, since with the latter automake (1.8) will then put the
29081 # directory (ie. demos/calc) into $(DEFAULT_INCLUDES) for every Makefile.in,
29082 # which would look very strange.
29084 # -lcurses is required by libreadline. On a typical SVR4 style system this
29085 # normally doesn't have to be given explicitly, since libreadline.so will
29086 # have a NEEDED record for it. But if someone for some reason is using only
29087 # a static libreadline.a then we must give -lcurses. Readline (as of
29088 # version 4.3) doesn't use libtool, so we can't rely on a .la to cover
29089 # necessary dependencies.
29091 # On a couple of systems we've seen libreadline available, but the headers
29092 # not in the default include path, so check for readline/readline.h. We've
29093 # also seen readline/history.h missing, not sure if that's just a broken
29094 # install or a very old version, but check that too.
29096 ac_config_files="$ac_config_files demos/calc/calc-config.h:demos/calc/calc-config-h.in"
29099 if test $with_readline != no; then
29100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lncurses" >&5
29101 $as_echo_n "checking for tputs in -lncurses... " >&6; }
29102 if ${ac_cv_lib_ncurses_tputs+:} false; then :
29103 $as_echo_n "(cached) " >&6
29105 ac_check_lib_save_LIBS=$LIBS
29106 LIBS="-lncurses $LIBS"
29107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29108 /* end confdefs.h. */
29110 /* Override any GCC internal prototype to avoid an error.
29111 Use char because int might match the return type of a GCC
29112 builtin and then its argument prototype would still apply. */
29125 if ac_fn_c_try_link "$LINENO"; then :
29126 ac_cv_lib_ncurses_tputs=yes
29128 ac_cv_lib_ncurses_tputs=no
29130 rm -f core conftest.err conftest.$ac_objext \
29131 conftest$ac_exeext conftest.$ac_ext
29132 LIBS=$ac_check_lib_save_LIBS
29134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tputs" >&5
29135 $as_echo "$ac_cv_lib_ncurses_tputs" >&6; }
29136 if test "x$ac_cv_lib_ncurses_tputs" = xyes; then :
29137 LIBCURSES=-lncurses
29139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lcurses" >&5
29140 $as_echo_n "checking for tputs in -lcurses... " >&6; }
29141 if ${ac_cv_lib_curses_tputs+:} false; then :
29142 $as_echo_n "(cached) " >&6
29144 ac_check_lib_save_LIBS=$LIBS
29145 LIBS="-lcurses $LIBS"
29146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29147 /* end confdefs.h. */
29149 /* Override any GCC internal prototype to avoid an error.
29150 Use char because int might match the return type of a GCC
29151 builtin and then its argument prototype would still apply. */
29164 if ac_fn_c_try_link "$LINENO"; then :
29165 ac_cv_lib_curses_tputs=yes
29167 ac_cv_lib_curses_tputs=no
29169 rm -f core conftest.err conftest.$ac_objext \
29170 conftest$ac_exeext conftest.$ac_ext
29171 LIBS=$ac_check_lib_save_LIBS
29173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tputs" >&5
29174 $as_echo "$ac_cv_lib_curses_tputs" >&6; }
29175 if test "x$ac_cv_lib_curses_tputs" = xyes; then :
29183 use_readline=$with_readline
29184 if test $with_readline = detect; then
29186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
29187 $as_echo_n "checking for readline in -lreadline... " >&6; }
29188 if ${ac_cv_lib_readline_readline+:} false; then :
29189 $as_echo_n "(cached) " >&6
29191 ac_check_lib_save_LIBS=$LIBS
29192 LIBS="-lreadline $LIBCURSES $LIBS"
29193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29194 /* end confdefs.h. */
29196 /* Override any GCC internal prototype to avoid an error.
29197 Use char because int might match the return type of a GCC
29198 builtin and then its argument prototype would still apply. */
29206 return readline ();
29211 if ac_fn_c_try_link "$LINENO"; then :
29212 ac_cv_lib_readline_readline=yes
29214 ac_cv_lib_readline_readline=no
29216 rm -f core conftest.err conftest.$ac_objext \
29217 conftest$ac_exeext conftest.$ac_ext
29218 LIBS=$ac_check_lib_save_LIBS
29220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
29221 $as_echo "$ac_cv_lib_readline_readline" >&6; }
29222 if test "x$ac_cv_lib_readline_readline" = xyes; then :
29223 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
29224 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
29225 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
29226 if test "x$ac_cv_header_readline_history_h" = xyes; then :
29236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking readline detected" >&5
29237 $as_echo_n "checking readline detected... " >&6; }
29238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_readline" >&5
29239 $as_echo "$use_readline" >&6; }
29241 if test $use_readline = yes; then
29244 LIBREADLINE=-lreadline
29249 for ac_prog in 'bison -y' byacc
29251 # Extract the first word of "$ac_prog", so it can be a program name with args.
29252 set dummy $ac_prog; ac_word=$2
29253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29254 $as_echo_n "checking for $ac_word... " >&6; }
29255 if ${ac_cv_prog_YACC+:} false; then :
29256 $as_echo_n "(cached) " >&6
29258 if test -n "$YACC"; then
29259 ac_cv_prog_YACC="$YACC" # Let the user override the test.
29261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29262 for as_dir in $PATH
29265 test -z "$as_dir" && as_dir=.
29266 for ac_exec_ext in '' $ac_executable_extensions; do
29267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29268 ac_cv_prog_YACC="$ac_prog"
29269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29278 YACC=$ac_cv_prog_YACC
29279 if test -n "$YACC"; then
29280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
29281 $as_echo "$YACC" >&6; }
29283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29284 $as_echo "no" >&6; }
29288 test -n "$YACC" && break
29290 test -n "$YACC" || YACC="yacc"
29292 for ac_prog in flex lex
29294 # Extract the first word of "$ac_prog", so it can be a program name with args.
29295 set dummy $ac_prog; ac_word=$2
29296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29297 $as_echo_n "checking for $ac_word... " >&6; }
29298 if ${ac_cv_prog_LEX+:} false; then :
29299 $as_echo_n "(cached) " >&6
29301 if test -n "$LEX"; then
29302 ac_cv_prog_LEX="$LEX" # Let the user override the test.
29304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29305 for as_dir in $PATH
29308 test -z "$as_dir" && as_dir=.
29309 for ac_exec_ext in '' $ac_executable_extensions; do
29310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29311 ac_cv_prog_LEX="$ac_prog"
29312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29321 LEX=$ac_cv_prog_LEX
29322 if test -n "$LEX"; then
29323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
29324 $as_echo "$LEX" >&6; }
29326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29327 $as_echo "no" >&6; }
29331 test -n "$LEX" && break
29333 test -n "$LEX" || LEX=":"
29335 if test "x$LEX" != "x:"; then
29336 cat >conftest.l <<_ACEOF
29342 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
29343 yyless ((input () != 0)); }
29344 f { unput (yytext[0]); }
29345 . { BEGIN INITIAL; }
29347 #ifdef YYTEXT_POINTER
29348 extern char *yytext;
29353 return ! yylex () + ! yywrap ();
29356 { { ac_try="$LEX conftest.l"
29357 case "(($ac_try" in
29358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29359 *) ac_try_echo=$ac_try;;
29361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
29362 $as_echo "$ac_try_echo"; } >&5
29363 (eval "$LEX conftest.l") 2>&5
29365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29366 test $ac_status = 0; }
29367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
29368 $as_echo_n "checking lex output file root... " >&6; }
29369 if ${ac_cv_prog_lex_root+:} false; then :
29370 $as_echo_n "(cached) " >&6
29373 if test -f lex.yy.c; then
29374 ac_cv_prog_lex_root=lex.yy
29375 elif test -f lexyy.c; then
29376 ac_cv_prog_lex_root=lexyy
29378 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
29381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
29382 $as_echo "$ac_cv_prog_lex_root" >&6; }
29383 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
29385 if test -z "${LEXLIB+set}"; then
29386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
29387 $as_echo_n "checking lex library... " >&6; }
29388 if ${ac_cv_lib_lex+:} false; then :
29389 $as_echo_n "(cached) " >&6
29393 ac_cv_lib_lex='none needed'
29394 for ac_lib in '' -lfl -ll; do
29395 LIBS="$ac_lib $ac_save_LIBS"
29396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29397 /* end confdefs.h. */
29398 `cat $LEX_OUTPUT_ROOT.c`
29400 if ac_fn_c_try_link "$LINENO"; then :
29401 ac_cv_lib_lex=$ac_lib
29403 rm -f core conftest.err conftest.$ac_objext \
29404 conftest$ac_exeext conftest.$ac_ext
29405 test "$ac_cv_lib_lex" != 'none needed' && break
29410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
29411 $as_echo "$ac_cv_lib_lex" >&6; }
29412 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
29416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
29417 $as_echo_n "checking whether yytext is a pointer... " >&6; }
29418 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
29419 $as_echo_n "(cached) " >&6
29421 # POSIX says lex can declare yytext either as a pointer or an array; the
29422 # default is implementation-dependent. Figure out which it is, since
29423 # not all implementations provide the %pointer and %array declarations.
29424 ac_cv_prog_lex_yytext_pointer=no
29426 LIBS="$LEXLIB $ac_save_LIBS"
29427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29428 /* end confdefs.h. */
29430 #define YYTEXT_POINTER 1
29431 `cat $LEX_OUTPUT_ROOT.c`
29433 if ac_fn_c_try_link "$LINENO"; then :
29434 ac_cv_prog_lex_yytext_pointer=yes
29436 rm -f core conftest.err conftest.$ac_objext \
29437 conftest$ac_exeext conftest.$ac_ext
29441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
29442 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
29443 if test $ac_cv_prog_lex_yytext_pointer = yes; then
29445 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
29448 rm -f conftest.l $LEX_OUTPUT_ROOT.c
29451 if test "$LEX" = :; then
29452 LEX=${am_missing_run}flex
29455 # Configs for demos/expr directory
29457 # Libtool already runs an AC_CHECK_TOOL for ranlib, but we give
29458 # AC_PROG_RANLIB anyway since automake is supposed to complain if it's not
29459 # called. (Automake 1.8.4 doesn't, at least not when the only library is in
29460 # an EXTRA_LIBRARIES.)
29462 if test -n "$ac_tool_prefix"; then
29463 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
29464 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
29465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29466 $as_echo_n "checking for $ac_word... " >&6; }
29467 if ${ac_cv_prog_RANLIB+:} false; then :
29468 $as_echo_n "(cached) " >&6
29470 if test -n "$RANLIB"; then
29471 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
29473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29474 for as_dir in $PATH
29477 test -z "$as_dir" && as_dir=.
29478 for ac_exec_ext in '' $ac_executable_extensions; do
29479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29480 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
29481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29490 RANLIB=$ac_cv_prog_RANLIB
29491 if test -n "$RANLIB"; then
29492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
29493 $as_echo "$RANLIB" >&6; }
29495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29496 $as_echo "no" >&6; }
29501 if test -z "$ac_cv_prog_RANLIB"; then
29502 ac_ct_RANLIB=$RANLIB
29503 # Extract the first word of "ranlib", so it can be a program name with args.
29504 set dummy ranlib; ac_word=$2
29505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29506 $as_echo_n "checking for $ac_word... " >&6; }
29507 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
29508 $as_echo_n "(cached) " >&6
29510 if test -n "$ac_ct_RANLIB"; then
29511 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
29513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29514 for as_dir in $PATH
29517 test -z "$as_dir" && as_dir=.
29518 for ac_exec_ext in '' $ac_executable_extensions; do
29519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29520 ac_cv_prog_ac_ct_RANLIB="ranlib"
29521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29530 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
29531 if test -n "$ac_ct_RANLIB"; then
29532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
29533 $as_echo "$ac_ct_RANLIB" >&6; }
29535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29536 $as_echo "no" >&6; }
29539 if test "x$ac_ct_RANLIB" = x; then
29542 case $cross_compiling:$ac_tool_warned in
29544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29546 ac_tool_warned=yes ;;
29548 RANLIB=$ac_ct_RANLIB
29551 RANLIB="$ac_cv_prog_RANLIB"
29556 # Create config.m4.
29558 echo "creating $gmp_configm4"
29559 echo "d""nl $gmp_configm4. Generated automatically by configure." > $gmp_configm4
29560 if test -f $gmp_tmpconfigm4; then
29561 echo "changequote(<,>)" >> $gmp_configm4
29562 echo "ifdef(<__CONFIG_M4_INCLUDED__>,,<" >> $gmp_configm4
29563 cat $gmp_tmpconfigm4 >> $gmp_configm4
29564 echo ">)" >> $gmp_configm4
29565 echo "changequote(\`,')" >> $gmp_configm4
29566 rm $gmp_tmpconfigm4
29568 echo "ifdef(\`__CONFIG_M4_INCLUDED__',,\`" >> $gmp_configm4
29569 if test -f $gmp_tmpconfigm4i; then
29570 cat $gmp_tmpconfigm4i >> $gmp_configm4
29571 rm $gmp_tmpconfigm4i
29573 if test -f $gmp_tmpconfigm4p; then
29574 cat $gmp_tmpconfigm4p >> $gmp_configm4
29575 rm $gmp_tmpconfigm4p
29577 echo "')" >> $gmp_configm4
29578 echo "define(\`__CONFIG_M4_INCLUDED__')" >> $gmp_configm4
29582 # FIXME: Upcoming version of autoconf/automake may not like broken lines.
29583 # Right now automake isn't accepting the new AC_CONFIG_FILES scheme.
29585 ac_config_files="$ac_config_files Makefile mpf/Makefile mpn/Makefile mpq/Makefile mpz/Makefile printf/Makefile scanf/Makefile rand/Makefile cxx/Makefile tests/Makefile tests/devel/Makefile tests/mpf/Makefile tests/mpn/Makefile tests/mpq/Makefile tests/mpz/Makefile tests/rand/Makefile tests/misc/Makefile tests/cxx/Makefile doc/Makefile tune/Makefile demos/Makefile demos/calc/Makefile demos/expr/Makefile gmp.h:gmp-h.in"
29587 cat >confcache <<\_ACEOF
29588 # This file is a shell script that caches the results of configure
29589 # tests run on this system so they can be shared between configure
29590 # scripts and configure runs, see configure's option --config-cache.
29591 # It is not useful on other systems. If it contains results you don't
29592 # want to keep, you may remove or edit it.
29594 # config.status only pays attention to the cache file if you give it
29595 # the --recheck option to rerun configure.
29597 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29598 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29599 # following values.
29603 # The following way of writing the cache mishandles newlines in values,
29604 # but we know of no workaround that is simple, portable, and efficient.
29605 # So, we kill variables containing newlines.
29606 # Ultrix sh set writes to stderr and can't be redirected directly,
29607 # and sets the high bit in the cache file unless we assign to the vars.
29609 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29610 eval ac_val=\$$ac_var
29614 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29615 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29618 _ | IFS | as_nl) ;; #(
29619 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29620 *) { eval $ac_var=; unset $ac_var;} ;;
29626 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29627 *${as_nl}ac_space=\ *)
29628 # `set' does not quote correctly, so add quotes: double-quote
29629 # substitution turns \\\\ into \\, and sed turns \\ into \.
29632 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29635 # `set' quotes correctly as required by POSIX, so do not add quotes.
29636 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29645 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29647 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29649 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29650 if test -w "$cache_file"; then
29651 if test "x$cache_file" != "x/dev/null"; then
29652 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29653 $as_echo "$as_me: updating cache $cache_file" >&6;}
29654 if test ! -f "$cache_file" || test -h "$cache_file"; then
29655 cat confcache >"$cache_file"
29657 case $cache_file in #(
29659 mv -f confcache "$cache_file"$$ &&
29660 mv -f "$cache_file"$$ "$cache_file" ;; #(
29662 mv -f confcache "$cache_file" ;;
29667 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29668 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29673 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29674 # Let make expand exec_prefix.
29675 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29677 DEFS=-DHAVE_CONFIG_H
29682 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29683 # 1. Remove the extension, and $U if already installed.
29684 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29685 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29686 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29687 # will be set to the directory where LIBOBJS objects are built.
29688 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29689 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29691 LIBOBJS=$ac_libobjs
29693 LTLIBOBJS=$ac_ltlibobjs
29696 if test -n "$EXEEXT"; then
29698 am__EXEEXT_FALSE='#'
29700 am__EXEEXT_TRUE='#'
29704 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29705 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
29706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29708 if test -z "${WANT_CXX_TRUE}" && test -z "${WANT_CXX_FALSE}"; then
29709 as_fn_error $? "conditional \"WANT_CXX\" was never defined.
29710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29712 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
29713 as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined.
29714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29718 : "${CONFIG_STATUS=./config.status}"
29720 ac_clean_files_save=$ac_clean_files
29721 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29722 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29723 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29725 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29727 # Generated by $as_me.
29728 # Run this file to recreate the current configuration.
29729 # Compiler output produced by configure, useful for debugging
29730 # configure, is in config.log if it exists.
29733 ac_cs_recheck=false
29736 SHELL=\${CONFIG_SHELL-$SHELL}
29739 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29740 ## -------------------- ##
29741 ## M4sh Initialization. ##
29742 ## -------------------- ##
29744 # Be more Bourne compatible
29745 DUALCASE=1; export DUALCASE # for MKS sh
29746 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29749 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29750 # is contrary to our usage. Disable this feature.
29751 alias -g '${1+"$@"}'='"$@"'
29752 setopt NO_GLOB_SUBST
29754 case `(set -o) 2>/dev/null` in #(
29766 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29767 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29768 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29769 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29770 # Prefer a ksh shell builtin over an external printf program on Solaris,
29771 # but without wasting forks for bash or zsh.
29772 if test -z "$BASH_VERSION$ZSH_VERSION" \
29773 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29774 as_echo='print -r --'
29775 as_echo_n='print -rn --'
29776 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29777 as_echo='printf %s\n'
29778 as_echo_n='printf %s'
29780 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29781 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29782 as_echo_n='/usr/ucb/echo -n'
29784 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29785 as_echo_n_body='eval
29789 expr "X$arg" : "X\\(.*\\)$as_nl";
29790 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29792 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29794 export as_echo_n_body
29795 as_echo_n='sh -c $as_echo_n_body as_echo'
29797 export as_echo_body
29798 as_echo='sh -c $as_echo_body as_echo'
29801 # The user is always right.
29802 if test "${PATH_SEPARATOR+set}" != set; then
29804 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29805 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29812 # We need space, tab and new line, in precisely that order. Quoting is
29813 # there to prevent editors from complaining about space-tab.
29814 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29815 # splitting by setting IFS to empty value.)
29818 # Find who we are. Look in the path if we contain no directory separator.
29821 *[\\/]* ) as_myself=$0 ;;
29822 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29823 for as_dir in $PATH
29826 test -z "$as_dir" && as_dir=.
29827 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29833 # We did not find ourselves, most probably we were run as `sh COMMAND'
29834 # in which case we are not to be found in the path.
29835 if test "x$as_myself" = x; then
29838 if test ! -f "$as_myself"; then
29839 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29843 # Unset variables that we do not need and which cause bugs (e.g. in
29844 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29845 # suppresses any "Segmentation fault" message there. '((' could
29846 # trigger a bug in pdksh 5.2.14.
29847 for as_var in BASH_ENV ENV MAIL MAILPATH
29848 do eval test x\${$as_var+set} = xset \
29849 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29862 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29865 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29866 # ----------------------------------------
29867 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29868 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29869 # script with STATUS, using 1 if that was 0.
29872 as_status=$1; test $as_status -eq 0 && as_status=1
29874 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29875 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29877 $as_echo "$as_me: error: $2" >&2
29878 as_fn_exit $as_status
29882 # as_fn_set_status STATUS
29883 # -----------------------
29884 # Set $? to STATUS, without forking.
29885 as_fn_set_status ()
29888 } # as_fn_set_status
29890 # as_fn_exit STATUS
29891 # -----------------
29892 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29896 as_fn_set_status $1
29902 # Portably unset VAR.
29905 { eval $1=; unset $1;}
29907 as_unset=as_fn_unset
29908 # as_fn_append VAR VALUE
29909 # ----------------------
29910 # Append the text in VALUE to the end of the definition contained in VAR. Take
29911 # advantage of any shell optimizations that allow amortized linear growth over
29912 # repeated appends, instead of the typical quadratic growth present in naive
29914 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29915 eval 'as_fn_append ()
29926 # as_fn_arith ARG...
29927 # ------------------
29928 # Perform arithmetic evaluation on the ARGs, and store the result in the
29929 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29930 # must be portable across $(()) and expr.
29931 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29932 eval 'as_fn_arith ()
29939 as_val=`expr "$@" || test $? -eq 1`
29944 if expr a : '\(a\)' >/dev/null 2>&1 &&
29945 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29951 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29952 as_basename=basename
29957 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29963 as_me=`$as_basename -- "$0" ||
29964 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29965 X"$0" : 'X\(//\)$' \| \
29966 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29968 sed '/^.*\/\([^/][^/]*\)\/*$/{
29982 # Avoid depending upon Character Ranges.
29983 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29984 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29985 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29986 as_cr_digits='0123456789'
29987 as_cr_alnum=$as_cr_Letters$as_cr_digits
29989 ECHO_C= ECHO_N= ECHO_T=
29990 case `echo -n x` in #(((((
29992 case `echo 'xy\c'` in
29993 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29995 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30002 rm -f conf$$ conf$$.exe conf$$.file
30003 if test -d conf$$.dir; then
30004 rm -f conf$$.dir/conf$$.file
30007 mkdir conf$$.dir 2>/dev/null
30009 if (echo >conf$$.file) 2>/dev/null; then
30010 if ln -s conf$$.file conf$$ 2>/dev/null; then
30012 # ... but there are two gotchas:
30013 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30014 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30015 # In both cases, we have to default to `cp -pR'.
30016 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30018 elif ln conf$$.file conf$$ 2>/dev/null; then
30026 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30027 rmdir conf$$.dir 2>/dev/null
30032 # Create "$as_dir" as a directory, including parents if necessary.
30037 -*) as_dir=./$as_dir;;
30039 test -d "$as_dir" || eval $as_mkdir_p || {
30043 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30044 *) as_qdir=$as_dir;;
30046 as_dirs="'$as_qdir' $as_dirs"
30047 as_dir=`$as_dirname -- "$as_dir" ||
30048 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30049 X"$as_dir" : 'X\(//\)[^/]' \| \
30050 X"$as_dir" : 'X\(//\)$' \| \
30051 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30052 $as_echo X"$as_dir" |
30053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30057 /^X\(\/\/\)[^/].*/{
30070 test -d "$as_dir" && break
30072 test -z "$as_dirs" || eval "mkdir $as_dirs"
30073 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30077 if mkdir -p . 2>/dev/null; then
30078 as_mkdir_p='mkdir -p "$as_dir"'
30080 test -d ./-p && rmdir ./-p
30085 # as_fn_executable_p FILE
30086 # -----------------------
30087 # Test if FILE is an executable regular file.
30088 as_fn_executable_p ()
30090 test -f "$1" && test -x "$1"
30091 } # as_fn_executable_p
30092 as_test_x='test -x'
30093 as_executable_p=as_fn_executable_p
30095 # Sed expression to map a string onto a valid CPP name.
30096 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30098 # Sed expression to map a string onto a valid variable name.
30099 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30103 ## ----------------------------------- ##
30104 ## Main body of $CONFIG_STATUS script. ##
30105 ## ----------------------------------- ##
30107 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30110 # Save the log message, to keep $0 and so on meaningful, and to
30111 # report actual input values of CONFIG_FILES etc. instead of their
30112 # values after options handling.
30114 This file was extended by GNU MP $as_me 5.1.3, which was
30115 generated by GNU Autoconf 2.69. Invocation command line was
30117 CONFIG_FILES = $CONFIG_FILES
30118 CONFIG_HEADERS = $CONFIG_HEADERS
30119 CONFIG_LINKS = $CONFIG_LINKS
30120 CONFIG_COMMANDS = $CONFIG_COMMANDS
30123 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30128 case $ac_config_files in *"
30129 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30132 case $ac_config_headers in *"
30133 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30138 # Files that config.status was made for.
30139 config_files="$ac_config_files"
30140 config_headers="$ac_config_headers"
30141 config_links="$ac_config_links"
30142 config_commands="$ac_config_commands"
30146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30148 \`$as_me' instantiates files and other configuration actions
30149 from templates according to the current configuration. Unless the files
30150 and actions are specified as TAGs, all are instantiated by default.
30152 Usage: $0 [OPTION]... [TAG]...
30154 -h, --help print this help, then exit
30155 -V, --version print version number and configuration settings, then exit
30156 --config print configuration, then exit
30157 -q, --quiet, --silent
30158 do not print progress messages
30159 -d, --debug don't remove temporary files
30160 --recheck update $as_me by reconfiguring in the same conditions
30161 --file=FILE[:TEMPLATE]
30162 instantiate the configuration file FILE
30163 --header=FILE[:TEMPLATE]
30164 instantiate the configuration header FILE
30166 Configuration files:
30169 Configuration headers:
30172 Configuration links:
30175 Configuration commands:
30178 Report bugs to <gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html>.
30179 GNU MP home page: <http://www.gnu.org/software/gmp/>.
30180 General help using GNU software: <http://www.gnu.org/gethelp/>."
30183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30184 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30186 GNU MP config.status 5.1.3
30187 configured by $0, generated by GNU Autoconf 2.69,
30188 with options \\"\$ac_cs_config\\"
30190 Copyright (C) 2012 Free Software Foundation, Inc.
30191 This config.status script is free software; the Free Software Foundation
30192 gives unlimited permission to copy, distribute and modify it."
30199 test -n "\$AWK" || AWK=awk
30202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30203 # The default lists apply if the user does not specify any file.
30209 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30210 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30214 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30226 # Handling of the options.
30227 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30229 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30230 $as_echo "$ac_cs_version"; exit ;;
30231 --config | --confi | --conf | --con | --co | --c )
30232 $as_echo "$ac_cs_config"; exit ;;
30233 --debug | --debu | --deb | --de | --d | -d )
30235 --file | --fil | --fi | --f )
30238 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30239 '') as_fn_error $? "missing file argument" ;;
30241 as_fn_append CONFIG_FILES " '$ac_optarg'"
30242 ac_need_defaults=false;;
30243 --header | --heade | --head | --hea )
30246 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30248 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30249 ac_need_defaults=false;;
30251 # Conflict between --help and --header
30252 as_fn_error $? "ambiguous option: \`$1'
30253 Try \`$0 --help' for more information.";;
30254 --help | --hel | -h )
30255 $as_echo "$ac_cs_usage"; exit ;;
30256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30257 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30260 # This is an error.
30261 -*) as_fn_error $? "unrecognized option: \`$1'
30262 Try \`$0 --help' for more information." ;;
30264 *) as_fn_append ac_config_targets " $1"
30265 ac_need_defaults=false ;;
30271 ac_configure_extra_args=
30273 if $ac_cs_silent; then
30275 ac_configure_extra_args="$ac_configure_extra_args --silent"
30279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30280 if \$ac_cs_recheck; then
30281 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30283 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30284 CONFIG_SHELL='$SHELL'
30285 export CONFIG_SHELL
30290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30294 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30295 ## Running $as_me. ##
30301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30307 # The HP-UX ksh and POSIX shell print the target directory to stdout
30308 # if CDPATH is set.
30309 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30311 sed_quote_subst='$sed_quote_subst'
30312 double_quote_subst='$double_quote_subst'
30313 delay_variable_subst='$delay_variable_subst'
30314 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
30315 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
30316 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
30317 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
30318 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
30319 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
30320 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
30321 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
30322 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
30323 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
30324 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
30325 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
30326 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
30327 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
30328 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
30329 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
30330 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
30331 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
30332 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
30333 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
30334 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
30335 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
30336 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
30337 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
30338 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
30339 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
30340 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
30341 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
30342 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
30343 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
30344 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
30345 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
30346 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
30347 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
30348 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
30349 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
30350 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
30351 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
30352 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
30353 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
30354 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
30355 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
30356 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
30357 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
30358 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
30359 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
30360 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
30361 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
30362 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
30363 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
30364 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
30365 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
30366 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
30367 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
30368 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
30369 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
30370 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
30371 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"`'
30372 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
30373 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
30374 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
30375 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
30376 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
30377 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
30378 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
30379 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
30380 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
30381 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
30382 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
30383 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
30384 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
30385 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
30386 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
30387 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
30388 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
30389 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
30390 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
30391 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
30392 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
30393 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
30394 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
30395 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
30396 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
30397 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
30398 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
30399 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
30400 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
30401 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
30402 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
30403 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
30404 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
30405 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
30406 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
30407 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
30408 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
30409 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
30410 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
30411 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
30412 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
30413 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
30414 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
30415 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
30416 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
30417 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
30418 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
30419 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
30420 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
30421 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
30422 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
30423 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
30424 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
30425 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
30426 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
30427 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
30428 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
30429 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
30430 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
30431 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
30432 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
30433 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
30434 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
30435 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
30436 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
30437 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
30438 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
30439 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
30440 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
30441 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
30442 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
30443 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
30444 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
30445 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
30446 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
30447 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
30448 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
30449 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
30450 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
30451 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
30452 LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
30453 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
30454 reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
30455 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30456 reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
30457 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30458 old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
30459 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
30460 compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
30461 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
30462 GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
30463 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
30464 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
30465 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
30466 lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
30467 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
30468 lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
30469 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
30470 lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
30471 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
30472 lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
30473 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
30474 archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
30475 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
30476 enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
30477 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
30478 export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
30479 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
30480 whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
30481 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
30482 compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
30483 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30484 old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
30485 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30486 old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
30487 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30488 archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
30489 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30490 archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
30491 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30492 module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
30493 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30494 module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
30495 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
30496 with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
30497 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
30498 allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
30499 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
30500 no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
30501 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
30502 hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
30503 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
30504 hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
30505 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
30506 hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
30507 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
30508 hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
30509 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
30510 hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
30511 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
30512 hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
30513 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
30514 hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
30515 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
30516 inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
30517 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
30518 link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
30519 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
30520 always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
30521 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30522 export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
30523 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
30524 exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
30525 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
30526 include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
30527 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30528 prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
30529 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30530 postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
30531 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
30532 file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
30533 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
30534 hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
30535 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
30536 compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`'
30537 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
30538 predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`'
30539 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
30540 postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`'
30541 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
30542 predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`'
30543 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
30544 postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`'
30545 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
30546 compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`'
30549 LTCFLAGS='$LTCFLAGS'
30550 compiler='$compiler_DEFAULT'
30552 # A function that is used when there is no print builtin or printf.
30553 func_fallback_echo ()
30555 eval 'cat <<_LTECHO_EOF
30560 # Quote evaled strings.
30577 deplibs_check_method \
30581 sharedlib_from_linklib_cmd \
30584 archiver_list_spec \
30590 lt_cv_sys_global_symbol_pipe \
30591 lt_cv_sys_global_symbol_to_cdecl \
30592 lt_cv_sys_global_symbol_to_c_name_address \
30593 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30594 nm_file_list_spec \
30595 lt_prog_compiler_no_builtin_flag \
30596 lt_prog_compiler_pic \
30597 lt_prog_compiler_wl \
30598 lt_prog_compiler_static \
30599 lt_cv_prog_compiler_c_o \
30608 export_dynamic_flag_spec \
30609 whole_archive_flag_spec \
30610 compiler_needs_object \
30612 allow_undefined_flag \
30613 no_undefined_flag \
30614 hardcode_libdir_flag_spec \
30615 hardcode_libdir_separator \
30619 variables_saved_for_relink \
30621 library_names_spec \
30623 install_override_mode \
30627 compiler_lib_search_dirs \
30632 compiler_lib_search_path \
30639 lt_prog_compiler_no_builtin_flag_CXX \
30640 lt_prog_compiler_no_builtin_flag_F77 \
30641 lt_prog_compiler_pic_CXX \
30642 lt_prog_compiler_pic_F77 \
30643 lt_prog_compiler_wl_CXX \
30644 lt_prog_compiler_wl_F77 \
30645 lt_prog_compiler_static_CXX \
30646 lt_prog_compiler_static_F77 \
30647 lt_cv_prog_compiler_c_o_CXX \
30648 lt_cv_prog_compiler_c_o_F77 \
30649 export_dynamic_flag_spec_CXX \
30650 export_dynamic_flag_spec_F77 \
30651 whole_archive_flag_spec_CXX \
30652 whole_archive_flag_spec_F77 \
30653 compiler_needs_object_CXX \
30654 compiler_needs_object_F77 \
30657 allow_undefined_flag_CXX \
30658 allow_undefined_flag_F77 \
30659 no_undefined_flag_CXX \
30660 no_undefined_flag_F77 \
30661 hardcode_libdir_flag_spec_CXX \
30662 hardcode_libdir_flag_spec_F77 \
30663 hardcode_libdir_separator_CXX \
30664 hardcode_libdir_separator_F77 \
30665 exclude_expsyms_CXX \
30666 exclude_expsyms_F77 \
30667 include_expsyms_CXX \
30668 include_expsyms_F77 \
30669 file_list_spec_CXX \
30670 file_list_spec_F77 \
30671 compiler_lib_search_dirs_CXX \
30672 compiler_lib_search_dirs_F77 \
30673 predep_objects_CXX \
30674 predep_objects_F77 \
30675 postdep_objects_CXX \
30676 postdep_objects_F77 \
30681 compiler_lib_search_path_CXX \
30682 compiler_lib_search_path_F77; do
30683 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
30684 *[\\\\\\\`\\"\\\$]*)
30685 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30688 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30693 # Double-quote double-evaled strings.
30694 for var in reload_cmds \
30695 old_postinstall_cmds \
30696 old_postuninstall_cmds \
30698 extract_expsyms_cmds \
30699 old_archive_from_new_cmds \
30700 old_archive_from_expsyms_cmds \
30702 archive_expsym_cmds \
30704 module_expsym_cmds \
30705 export_symbols_cmds \
30709 postuninstall_cmds \
30711 sys_lib_search_path_spec \
30712 sys_lib_dlsearch_path_spec \
30715 old_archive_cmds_CXX \
30716 old_archive_cmds_F77 \
30717 old_archive_from_new_cmds_CXX \
30718 old_archive_from_new_cmds_F77 \
30719 old_archive_from_expsyms_cmds_CXX \
30720 old_archive_from_expsyms_cmds_F77 \
30723 archive_expsym_cmds_CXX \
30724 archive_expsym_cmds_F77 \
30727 module_expsym_cmds_CXX \
30728 module_expsym_cmds_F77 \
30729 export_symbols_cmds_CXX \
30730 export_symbols_cmds_F77 \
30733 postlink_cmds_CXX \
30734 postlink_cmds_F77; do
30735 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
30736 *[\\\\\\\`\\"\\\$]*)
30737 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30740 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30745 ac_aux_dir='$ac_aux_dir'
30746 xsi_shell='$xsi_shell'
30747 lt_shell_append='$lt_shell_append'
30749 # See if we are running on zsh, and set the options which allow our
30750 # commands through without removal of \ escapes INIT.
30751 if test -n "\${ZSH_VERSION+set}" ; then
30752 setopt NO_GLOB_SUBST
30758 TIMESTAMP='$TIMESTAMP'
30771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30773 # Handling of arguments.
30774 for ac_config_target in $ac_config_targets
30776 case $ac_config_target in
30777 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
30778 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30779 "mpn/$tmp_fn.$tmp_ext") CONFIG_LINKS="$CONFIG_LINKS mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext" ;;
30780 "gmp-mparam.h") CONFIG_LINKS="$CONFIG_LINKS gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h" ;;
30781 "demos/pexpr-config.h") CONFIG_FILES="$CONFIG_FILES demos/pexpr-config.h:demos/pexpr-config-h.in" ;;
30782 "demos/calc/calc-config.h") CONFIG_FILES="$CONFIG_FILES demos/calc/calc-config.h:demos/calc/calc-config-h.in" ;;
30783 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30784 "mpf/Makefile") CONFIG_FILES="$CONFIG_FILES mpf/Makefile" ;;
30785 "mpn/Makefile") CONFIG_FILES="$CONFIG_FILES mpn/Makefile" ;;
30786 "mpq/Makefile") CONFIG_FILES="$CONFIG_FILES mpq/Makefile" ;;
30787 "mpz/Makefile") CONFIG_FILES="$CONFIG_FILES mpz/Makefile" ;;
30788 "printf/Makefile") CONFIG_FILES="$CONFIG_FILES printf/Makefile" ;;
30789 "scanf/Makefile") CONFIG_FILES="$CONFIG_FILES scanf/Makefile" ;;
30790 "rand/Makefile") CONFIG_FILES="$CONFIG_FILES rand/Makefile" ;;
30791 "cxx/Makefile") CONFIG_FILES="$CONFIG_FILES cxx/Makefile" ;;
30792 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
30793 "tests/devel/Makefile") CONFIG_FILES="$CONFIG_FILES tests/devel/Makefile" ;;
30794 "tests/mpf/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpf/Makefile" ;;
30795 "tests/mpn/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpn/Makefile" ;;
30796 "tests/mpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpq/Makefile" ;;
30797 "tests/mpz/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpz/Makefile" ;;
30798 "tests/rand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rand/Makefile" ;;
30799 "tests/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
30800 "tests/cxx/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxx/Makefile" ;;
30801 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
30802 "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
30803 "demos/Makefile") CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;;
30804 "demos/calc/Makefile") CONFIG_FILES="$CONFIG_FILES demos/calc/Makefile" ;;
30805 "demos/expr/Makefile") CONFIG_FILES="$CONFIG_FILES demos/expr/Makefile" ;;
30806 "gmp.h") CONFIG_FILES="$CONFIG_FILES gmp.h:gmp-h.in" ;;
30808 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30813 # If the user did not use the arguments to specify the items to instantiate,
30814 # then the envvar interface is used. Set only those that are not.
30815 # We use the long form for the default assignment because of an extremely
30816 # bizarre bug on SunOS 4.1.3.
30817 if $ac_need_defaults; then
30818 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30819 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30820 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30821 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30824 # Have a temporary directory for convenience. Make it in the build tree
30825 # simply because there is no reason against having it here, and in addition,
30826 # creating and moving files from /tmp can sometimes cause problems.
30827 # Hook for its removal unless debugging.
30828 # Note that there is a small window in which the directory will not be cleaned:
30829 # after its creation but before its name has been assigned to `$tmp'.
30833 trap 'exit_status=$?
30834 : "${ac_tmp:=$tmp}"
30835 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30837 trap 'as_fn_exit 1' 1 2 13 15
30839 # Create a (secure) tmp directory for tmp files.
30842 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30846 tmp=./conf$$-$RANDOM
30847 (umask 077 && mkdir "$tmp")
30848 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
30851 # Set up the scripts for CONFIG_FILES section.
30852 # No need to generate them if there are no CONFIG_FILES.
30853 # This happens for instance with `./config.status config.h'.
30854 if test -n "$CONFIG_FILES"; then
30857 ac_cr=`echo X | tr X '\015'`
30858 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30859 # But we know of no other shell where ac_cr would be empty at this
30860 # point, so we can use a bashism as a fallback.
30861 if test "x$ac_cr" = x; then
30862 eval ac_cr=\$\'\\r\'
30864 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30865 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30868 ac_cs_awk_cr=$ac_cr
30871 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
30876 echo "cat >conf$$subs.awk <<_ACEOF" &&
30877 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30879 } >conf$$subs.sh ||
30880 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30881 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30883 for ac_last_try in false false false false false :; do
30884 . ./conf$$subs.sh ||
30885 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30887 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30888 if test $ac_delim_n = $ac_delim_num; then
30890 elif $ac_last_try; then
30891 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30893 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30896 rm -f conf$$subs.sh
30898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30899 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
30903 s/^/S["/; s/!.*/"]=/
30913 s/\(.\{148\}\)..*/\1/
30915 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30920 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30927 s/\(.\{148\}\)..*/\1/
30929 s/["\\]/\\&/g; s/^/"/; s/$/"/
30933 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30938 ' <conf$$subs.awk | sed '
30943 ' >>$CONFIG_STATUS || ac_write_fail=1
30944 rm -f conf$$subs.awk
30945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30947 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
30948 for (key in S) S_is_set[key] = 1
30954 nfields = split(line, field, "@")
30956 len = length(field[1])
30957 for (i = 2; i < nfields; i++) {
30959 keylen = length(key)
30960 if (S_is_set[key]) {
30962 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30963 len += length(value) + length(field[++i])
30974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30975 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30976 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30979 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
30980 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
30983 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
30984 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
30985 # trailing colons and then remove the whole line if VPATH becomes empty
30986 # (actually we leave an empty line to preserve line numbers).
30987 if test "x$srcdir" = x.; then
30988 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31007 fi # test -n "$CONFIG_FILES"
31009 # Set up the scripts for CONFIG_HEADERS section.
31010 # No need to generate them if there are no CONFIG_HEADERS.
31011 # This happens for instance with `./config.status Makefile'.
31012 if test -n "$CONFIG_HEADERS"; then
31013 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31017 # Transform confdefs.h into an awk script `defines.awk', embedded as
31018 # here-document in config.status, that substitutes the proper values into
31019 # config.h.in to produce config.h.
31021 # Create a delimiter string that does not exist in confdefs.h, to ease
31022 # handling of long lines.
31024 for ac_last_try in false false :; do
31025 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31026 if test -z "$ac_tt"; then
31028 elif $ac_last_try; then
31029 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31031 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31035 # For the awk script, D is an array of macro values keyed by name,
31036 # likewise P contains macro parameters if any. Preserve backslash
31037 # newline sequences.
31039 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31041 s/.\{148\}/&'"$ac_delim"'/g
31044 s/^[ ]*#[ ]*define[ ][ ]*/ /
31051 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31053 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31057 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31058 D["\1"]=" \3\\\\\\n"\\/p
31060 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31065 s/.\{148\}/&'"$ac_delim"'/g
31070 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31073 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31075 ' <confdefs.h | sed '
31076 s/'"$ac_delim"'/"\\\
31077 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31080 for (key in D) D_is_set[key] = 1
31083 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31085 split(line, arg, " ")
31086 if (arg[1] == "#") {
31090 defundef = substr(arg[1], 2)
31093 split(mac1, mac2, "(") #)
31095 prefix = substr(line, 1, index(line, defundef) - 1)
31096 if (D_is_set[macro]) {
31097 # Preserve the white space surrounding the "#".
31098 print prefix "define", macro P[macro] D[macro]
31101 # Replace #undef with comments. This is necessary, for example,
31102 # in the case of _POSIX_SOURCE, which is predefined and required
31103 # on some systems where configure will not decide to define it.
31104 if (defundef == "undef") {
31105 print "/*", prefix defundef, macro, "*/"
31113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31114 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31115 fi # test -n "$CONFIG_HEADERS"
31118 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31123 :[FHLC]) ac_mode=$ac_tag; continue;;
31125 case $ac_mode$ac_tag in
31127 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31128 :[FH]-) ac_tag=-:-;;
31129 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31146 -) ac_f="$ac_tmp/stdin";;
31147 *) # Look for the file first in the build tree, then in the source tree
31148 # (if the path is not absolute). The absolute path cannot be DOS-style,
31149 # because $ac_f cannot contain `:'.
31153 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31155 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31157 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31158 as_fn_append ac_file_inputs " '$ac_f'"
31161 # Let's still pretend it is `configure' which instantiates (i.e., don't
31162 # use $as_me), people would be surprised to read:
31163 # /* config.h. Generated by config.status. */
31164 configure_input='Generated from '`
31165 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31167 if test x"$ac_file" != x-; then
31168 configure_input="$ac_file. $configure_input"
31169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31170 $as_echo "$as_me: creating $ac_file" >&6;}
31172 # Neutralize special characters interpreted by sed in replacement strings.
31173 case $configure_input in #(
31174 *\&* | *\|* | *\\* )
31175 ac_sed_conf_input=`$as_echo "$configure_input" |
31176 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31177 *) ac_sed_conf_input=$configure_input;;
31181 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31187 ac_dir=`$as_dirname -- "$ac_file" ||
31188 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31189 X"$ac_file" : 'X\(//\)[^/]' \| \
31190 X"$ac_file" : 'X\(//\)$' \| \
31191 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31192 $as_echo X"$ac_file" |
31193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31197 /^X\(\/\/\)[^/].*/{
31210 as_dir="$ac_dir"; as_fn_mkdir_p
31214 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31216 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31217 # A ".." for each directory in $ac_dir_suffix.
31218 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31219 case $ac_top_builddir_sub in
31220 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31221 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31224 ac_abs_top_builddir=$ac_pwd
31225 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31226 # for backward compatibility:
31227 ac_top_builddir=$ac_top_build_prefix
31230 .) # We are building in place.
31232 ac_top_srcdir=$ac_top_builddir_sub
31233 ac_abs_top_srcdir=$ac_pwd ;;
31234 [\\/]* | ?:[\\/]* ) # Absolute name.
31235 ac_srcdir=$srcdir$ac_dir_suffix;
31236 ac_top_srcdir=$srcdir
31237 ac_abs_top_srcdir=$srcdir ;;
31238 *) # Relative name.
31239 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31240 ac_top_srcdir=$ac_top_build_prefix$srcdir
31241 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31243 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31253 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31254 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31256 ac_MKDIR_P=$MKDIR_P
31258 [\\/$]* | ?:[\\/]* ) ;;
31259 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31264 # If the template does not know about datarootdir, expand it.
31265 # FIXME: This hack should be removed a few years after 2.60.
31266 ac_datarootdir_hack=; ac_datarootdir_seen=
31277 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31278 *datarootdir*) ac_datarootdir_seen=yes;;
31279 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31281 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31284 ac_datarootdir_hack='
31285 s&@datadir@&$datadir&g
31286 s&@docdir@&$docdir&g
31287 s&@infodir@&$infodir&g
31288 s&@localedir@&$localedir&g
31289 s&@mandir@&$mandir&g
31290 s&\\\${datarootdir}&$datarootdir&g' ;;
31294 # Neutralize VPATH when `$srcdir' = `.'.
31295 # Shell code in configure.ac might set extrasub.
31296 # FIXME: do we really want to maintain this feature?
31297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31298 ac_sed_extra="$ac_vpsub
31301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31303 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31304 s|@configure_input@|$ac_sed_conf_input|;t t
31305 s&@top_builddir@&$ac_top_builddir_sub&;t t
31306 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31307 s&@srcdir@&$ac_srcdir&;t t
31308 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31309 s&@top_srcdir@&$ac_top_srcdir&;t t
31310 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31311 s&@builddir@&$ac_builddir&;t t
31312 s&@abs_builddir@&$ac_abs_builddir&;t t
31313 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31314 s&@INSTALL@&$ac_INSTALL&;t t
31315 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31316 $ac_datarootdir_hack
31318 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
31319 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31321 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31322 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31323 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31324 "$ac_tmp/out"`; test -z "$ac_out"; } &&
31325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31326 which seems to be undefined. Please make sure it is defined" >&5
31327 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31328 which seems to be undefined. Please make sure it is defined" >&2;}
31330 rm -f "$ac_tmp/stdin"
31332 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31333 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31335 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31341 if test x"$ac_file" != x-; then
31343 $as_echo "/* $configure_input */" \
31344 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31345 } >"$ac_tmp/config.h" \
31346 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31347 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31348 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31349 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31352 mv "$ac_tmp/config.h" "$ac_file" \
31353 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31356 $as_echo "/* $configure_input */" \
31357 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31358 || as_fn_error $? "could not create -" "$LINENO" 5
31360 # Compute "$ac_file"'s index in $config_headers.
31363 for _am_header in $config_headers :; do
31364 case $_am_header in
31365 $_am_arg | $_am_arg:* )
31368 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31371 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31372 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31373 X"$_am_arg" : 'X\(//\)[^/]' \| \
31374 X"$_am_arg" : 'X\(//\)$' \| \
31375 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31376 $as_echo X"$_am_arg" |
31377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31381 /^X\(\/\/\)[^/].*/{
31393 s/.*/./; q'`/stamp-h$_am_stamp_count
31400 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31403 # Prefer the file from the source tree if names are identical.
31404 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31405 ac_source=$srcdir/$ac_source
31408 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31409 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31411 if test ! -r "$ac_source"; then
31412 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31416 # Try a relative symlink, then a hard link, then a copy.
31418 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31419 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31421 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31422 ln "$ac_source" "$ac_file" 2>/dev/null ||
31423 cp -p "$ac_source" "$ac_file" ||
31424 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31427 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31428 $as_echo "$as_me: executing $ac_file commands" >&6;}
31433 case $ac_file$ac_mode in
31436 # See if we are running on zsh, and set the options which allow our
31437 # commands through without removal of \ escapes.
31438 if test -n "${ZSH_VERSION+set}" ; then
31439 setopt NO_GLOB_SUBST
31442 cfgfile="${ofile}T"
31443 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31446 cat <<_LT_EOF >> "$cfgfile"
31449 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31450 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31451 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31452 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31454 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31455 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
31457 # Written by Gordon Matzigkeit, 1996
31459 # This file is part of GNU Libtool.
31461 # GNU Libtool is free software; you can redistribute it and/or
31462 # modify it under the terms of the GNU General Public License as
31463 # published by the Free Software Foundation; either version 2 of
31464 # the License, or (at your option) any later version.
31466 # As a special exception to the GNU General Public License,
31467 # if you distribute this file as part of a program or library that
31468 # is built using GNU Libtool, you may include this file under the
31469 # same distribution terms that you use for the rest of that program.
31471 # GNU Libtool is distributed in the hope that it will be useful,
31472 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31473 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31474 # GNU General Public License for more details.
31476 # You should have received a copy of the GNU General Public License
31477 # along with GNU Libtool; see the file COPYING. If not, a copy
31478 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31479 # obtained by writing to the Free Software Foundation, Inc.,
31480 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31483 # The names of the tagged configurations supported by this script.
31484 available_tags="CXX F77 "
31486 # ### BEGIN LIBTOOL CONFIG
31488 # A BSD- or MS-compatible name lister.
31491 # Assembler program.
31494 # DLL creation program.
31495 DLLTOOL=$lt_DLLTOOL
31497 # Object dumper program.
31498 OBJDUMP=$lt_OBJDUMP
31500 # Which release of libtool.m4 was used?
31501 macro_version=$macro_version
31502 macro_revision=$macro_revision
31504 # Whether or not to build shared libraries.
31505 build_libtool_libs=$enable_shared
31507 # Whether or not to build static libraries.
31508 build_old_libs=$enable_static
31510 # What type of objects to build.
31513 # Whether or not to optimize for fast installation.
31514 fast_install=$enable_fast_install
31516 # Shell to use when invoking shell scripts.
31519 # An echo program that protects backslashes.
31522 # The PATH separator for the build system.
31523 PATH_SEPARATOR=$lt_PATH_SEPARATOR
31526 host_alias=$host_alias
31530 # The build system.
31531 build_alias=$build_alias
31535 # A sed program that does not truncate output.
31538 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31539 Xsed="\$SED -e 1s/^X//"
31541 # A grep program that handles long lines.
31547 # A literal string matcher.
31550 # Whether we need soft or hard links.
31553 # What is the maximum length of a command?
31554 max_cmd_len=$max_cmd_len
31556 # Object file suffix (normally "o").
31559 # Executable file suffix (normally "").
31562 # whether the shell understands "unset".
31565 # turn spaces into newlines.
31568 # turn newlines into spaces.
31571 # convert \$build file names to \$host format.
31572 to_host_file_cmd=$lt_cv_to_host_file_cmd
31574 # convert \$build files to toolchain format.
31575 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
31577 # Method to check whether dependent libraries are shared objects.
31578 deplibs_check_method=$lt_deplibs_check_method
31580 # Command to use when deplibs_check_method = "file_magic".
31581 file_magic_cmd=$lt_file_magic_cmd
31583 # How to find potential files when deplibs_check_method = "file_magic".
31584 file_magic_glob=$lt_file_magic_glob
31586 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
31587 want_nocaseglob=$lt_want_nocaseglob
31589 # Command to associate shared and link libraries.
31590 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
31595 # Flags to create an archive.
31596 AR_FLAGS=$lt_AR_FLAGS
31598 # How to feed a file listing to the archiver.
31599 archiver_list_spec=$lt_archiver_list_spec
31601 # A symbol stripping program.
31604 # Commands used to install an old-style archive.
31606 old_postinstall_cmds=$lt_old_postinstall_cmds
31607 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31609 # Whether to use a lock for old archive extraction.
31610 lock_old_archive_extraction=$lock_old_archive_extraction
31615 # LTCC compiler flags.
31616 LTCFLAGS=$lt_CFLAGS
31618 # Take the output of nm and produce a listing of raw symbols and C names.
31619 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31621 # Transform the output of nm in a proper C declaration.
31622 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31624 # Transform the output of nm in a C name address pair.
31625 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31627 # Transform the output of nm in a C name address pair when lib prefix is needed.
31628 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31630 # Specify filename containing input files for \$NM.
31631 nm_file_list_spec=$lt_nm_file_list_spec
31633 # The root where to search for dependent libraries,and in which our libraries should be installed.
31634 lt_sysroot=$lt_sysroot
31636 # The name of the directory that contains temporary libtool files.
31639 # Used to examine libraries when file_magic_cmd begins with "file".
31640 MAGIC_CMD=$MAGIC_CMD
31642 # Must we lock files when doing compilation?
31643 need_locks=$lt_need_locks
31646 MANIFEST_TOOL=$lt_MANIFEST_TOOL
31648 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31649 DSYMUTIL=$lt_DSYMUTIL
31651 # Tool to change global to local symbols on Mac OS X.
31654 # Tool to manipulate fat objects and archives on Mac OS X.
31657 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31660 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31661 OTOOL64=$lt_OTOOL64
31663 # Old archive suffix (normally "a").
31666 # Shared library suffix (normally ".so").
31667 shrext_cmds=$lt_shrext_cmds
31669 # The commands to extract the exported symbol list from a shared archive.
31670 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31672 # Variables whose values should be saved in libtool wrapper scripts and
31673 # restored at link time.
31674 variables_saved_for_relink=$lt_variables_saved_for_relink
31676 # Do we need the "lib" prefix for modules?
31677 need_lib_prefix=$need_lib_prefix
31679 # Do we need a version for libraries?
31680 need_version=$need_version
31682 # Library versioning type.
31683 version_type=$version_type
31685 # Shared library runtime path variable.
31686 runpath_var=$runpath_var
31688 # Shared library path variable.
31689 shlibpath_var=$shlibpath_var
31691 # Is shlibpath searched before the hard-coded library search path?
31692 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31694 # Format of library name prefix.
31695 libname_spec=$lt_libname_spec
31697 # List of archive names. First name is the real one, the rest are links.
31698 # The last name is the one that the linker finds with -lNAME
31699 library_names_spec=$lt_library_names_spec
31701 # The coded name of the library, if different from the real name.
31702 soname_spec=$lt_soname_spec
31704 # Permission mode override for installation of shared libraries.
31705 install_override_mode=$lt_install_override_mode
31707 # Command to use after installation of a shared archive.
31708 postinstall_cmds=$lt_postinstall_cmds
31710 # Command to use after uninstallation of a shared archive.
31711 postuninstall_cmds=$lt_postuninstall_cmds
31713 # Commands used to finish a libtool library installation in a directory.
31714 finish_cmds=$lt_finish_cmds
31716 # As "finish_cmds", except a single script fragment to be evaled but
31718 finish_eval=$lt_finish_eval
31720 # Whether we should hardcode library paths into libraries.
31721 hardcode_into_libs=$hardcode_into_libs
31723 # Compile-time system search path for libraries.
31724 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31726 # Run-time system search path for libraries.
31727 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31729 # Whether dlopen is supported.
31730 dlopen_support=$enable_dlopen
31732 # Whether dlopen of programs is supported.
31733 dlopen_self=$enable_dlopen_self
31735 # Whether dlopen of statically linked programs is supported.
31736 dlopen_self_static=$enable_dlopen_self_static
31738 # Commands to strip libraries.
31739 old_striplib=$lt_old_striplib
31740 striplib=$lt_striplib
31743 # The linker used to build libraries.
31746 # How to create reloadable object files.
31747 reload_flag=$lt_reload_flag
31748 reload_cmds=$lt_reload_cmds
31750 # Commands used to build an old-style archive.
31751 old_archive_cmds=$lt_old_archive_cmds
31753 # A language specific compiler.
31756 # Is the compiler the GNU compiler?
31759 # Compiler flag to turn off builtin functions.
31760 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31762 # Additional compiler flags for building library objects.
31763 pic_flag=$lt_lt_prog_compiler_pic
31765 # How to pass a linker flag through the compiler.
31766 wl=$lt_lt_prog_compiler_wl
31768 # Compiler flag to prevent dynamic linking.
31769 link_static_flag=$lt_lt_prog_compiler_static
31771 # Does compiler simultaneously support -c and -o options?
31772 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31774 # Whether or not to add -lc for building shared libraries.
31775 build_libtool_need_lc=$archive_cmds_need_lc
31777 # Whether or not to disallow shared libs when runtime libs are static.
31778 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31780 # Compiler flag to allow reflexive dlopens.
31781 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31783 # Compiler flag to generate shared objects directly from archives.
31784 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31786 # Whether the compiler copes with passing no objects directly.
31787 compiler_needs_object=$lt_compiler_needs_object
31789 # Create an old-style archive from a shared archive.
31790 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31792 # Create a temporary old-style archive to link instead of a shared archive.
31793 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31795 # Commands used to build a shared archive.
31796 archive_cmds=$lt_archive_cmds
31797 archive_expsym_cmds=$lt_archive_expsym_cmds
31799 # Commands used to build a loadable module if different from building
31800 # a shared archive.
31801 module_cmds=$lt_module_cmds
31802 module_expsym_cmds=$lt_module_expsym_cmds
31804 # Whether we are building with GNU ld or not.
31805 with_gnu_ld=$lt_with_gnu_ld
31807 # Flag that allows shared libraries with undefined symbols to be built.
31808 allow_undefined_flag=$lt_allow_undefined_flag
31810 # Flag that enforces no undefined symbols.
31811 no_undefined_flag=$lt_no_undefined_flag
31813 # Flag to hardcode \$libdir into a binary during linking.
31814 # This must work even if \$libdir does not exist
31815 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31817 # Whether we need a single "-rpath" flag with a separated argument.
31818 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31820 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31821 # DIR into the resulting binary.
31822 hardcode_direct=$hardcode_direct
31824 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31825 # DIR into the resulting binary and the resulting library dependency is
31826 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31827 # library is relocated.
31828 hardcode_direct_absolute=$hardcode_direct_absolute
31830 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31831 # into the resulting binary.
31832 hardcode_minus_L=$hardcode_minus_L
31834 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31835 # into the resulting binary.
31836 hardcode_shlibpath_var=$hardcode_shlibpath_var
31838 # Set to "yes" if building a shared library automatically hardcodes DIR
31839 # into the library and all subsequent libraries and executables linked
31841 hardcode_automatic=$hardcode_automatic
31843 # Set to yes if linker adds runtime paths of dependent libraries
31844 # to runtime path list.
31845 inherit_rpath=$inherit_rpath
31847 # Whether libtool must link a program against all its dependency libraries.
31848 link_all_deplibs=$link_all_deplibs
31850 # Set to "yes" if exported symbols are required.
31851 always_export_symbols=$always_export_symbols
31853 # The commands to list exported symbols.
31854 export_symbols_cmds=$lt_export_symbols_cmds
31856 # Symbols that should not be listed in the preloaded symbols.
31857 exclude_expsyms=$lt_exclude_expsyms
31859 # Symbols that must always be exported.
31860 include_expsyms=$lt_include_expsyms
31862 # Commands necessary for linking programs (against libraries) with templates.
31863 prelink_cmds=$lt_prelink_cmds
31865 # Commands necessary for finishing linking programs.
31866 postlink_cmds=$lt_postlink_cmds
31868 # Specify filename containing input files.
31869 file_list_spec=$lt_file_list_spec
31871 # How to hardcode a shared library path into an executable.
31872 hardcode_action=$hardcode_action
31874 # The directories searched by this compiler when creating a shared library.
31875 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31877 # Dependencies to place before and after the objects being linked to
31878 # create a shared library.
31879 predep_objects=$lt_predep_objects
31880 postdep_objects=$lt_postdep_objects
31881 predeps=$lt_predeps
31882 postdeps=$lt_postdeps
31884 # The library search path used internally by the compiler when linking
31885 # a shared library.
31886 compiler_lib_search_path=$lt_compiler_lib_search_path
31888 # ### END LIBTOOL CONFIG
31894 cat <<\_LT_EOF >> "$cfgfile"
31895 # AIX sometimes has problems with the GCC collect2 program. For some
31896 # reason, if we set the COLLECT_NAMES environment variable, the problems
31897 # vanish in a puff of smoke.
31898 if test "X${COLLECT_NAMES+set}" != Xset; then
31900 export COLLECT_NAMES
31907 ltmain="$ac_aux_dir/ltmain.sh"
31910 # We use sed instead of cat because bash on DJGPP gets confused if
31911 # if finds mixed CR/LF and LF-only lines. Since sed operates in
31912 # text mode, it properly converts lines to CR/LF. This bash problem
31913 # is reportedly fixed, but why not run on old versions too?
31914 sed '$q' "$ltmain" >> "$cfgfile" \
31915 || (rm -f "$cfgfile"; exit 1)
31917 if test x"$xsi_shell" = xyes; then
31918 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
31922 \ */*) func_dirname_result="${1%/*}${2}" ;;\
31923 \ * ) func_dirname_result="${3}" ;;\
31925 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
31926 && mv -f "$cfgfile.tmp" "$cfgfile" \
31927 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31928 test 0 -eq $? || _lt_function_replace_fail=:
31931 sed -e '/^func_basename ()$/,/^} # func_basename /c\
31934 \ func_basename_result="${1##*/}"\
31935 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
31936 && mv -f "$cfgfile.tmp" "$cfgfile" \
31937 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31938 test 0 -eq $? || _lt_function_replace_fail=:
31941 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
31942 func_dirname_and_basename ()\
31945 \ */*) func_dirname_result="${1%/*}${2}" ;;\
31946 \ * ) func_dirname_result="${3}" ;;\
31948 \ func_basename_result="${1##*/}"\
31949 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
31950 && mv -f "$cfgfile.tmp" "$cfgfile" \
31951 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31952 test 0 -eq $? || _lt_function_replace_fail=:
31955 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
31958 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
31959 \ # positional parameters, so assign one to ordinary parameter first.\
31960 \ func_stripname_result=${3}\
31961 \ func_stripname_result=${func_stripname_result#"${1}"}\
31962 \ func_stripname_result=${func_stripname_result%"${2}"}\
31963 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
31964 && mv -f "$cfgfile.tmp" "$cfgfile" \
31965 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31966 test 0 -eq $? || _lt_function_replace_fail=:
31969 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
31970 func_split_long_opt ()\
31972 \ func_split_long_opt_name=${1%%=*}\
31973 \ func_split_long_opt_arg=${1#*=}\
31974 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
31975 && mv -f "$cfgfile.tmp" "$cfgfile" \
31976 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31977 test 0 -eq $? || _lt_function_replace_fail=:
31980 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
31981 func_split_short_opt ()\
31983 \ func_split_short_opt_arg=${1#??}\
31984 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
31985 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
31986 && mv -f "$cfgfile.tmp" "$cfgfile" \
31987 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31988 test 0 -eq $? || _lt_function_replace_fail=:
31991 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
31995 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
31996 \ *) func_lo2o_result=${1} ;;\
31998 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
31999 && mv -f "$cfgfile.tmp" "$cfgfile" \
32000 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32001 test 0 -eq $? || _lt_function_replace_fail=:
32004 sed -e '/^func_xform ()$/,/^} # func_xform /c\
32007 func_xform_result=${1%.*}.lo\
32008 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
32009 && mv -f "$cfgfile.tmp" "$cfgfile" \
32010 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32011 test 0 -eq $? || _lt_function_replace_fail=:
32014 sed -e '/^func_arith ()$/,/^} # func_arith /c\
32017 func_arith_result=$(( $* ))\
32018 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
32019 && mv -f "$cfgfile.tmp" "$cfgfile" \
32020 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32021 test 0 -eq $? || _lt_function_replace_fail=:
32024 sed -e '/^func_len ()$/,/^} # func_len /c\
32027 func_len_result=${#1}\
32028 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
32029 && mv -f "$cfgfile.tmp" "$cfgfile" \
32030 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32031 test 0 -eq $? || _lt_function_replace_fail=:
32035 if test x"$lt_shell_append" = xyes; then
32036 sed -e '/^func_append ()$/,/^} # func_append /c\
32039 eval "${1}+=\\${2}"\
32040 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
32041 && mv -f "$cfgfile.tmp" "$cfgfile" \
32042 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32043 test 0 -eq $? || _lt_function_replace_fail=:
32046 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
32047 func_append_quoted ()\
32049 \ func_quote_for_eval "${2}"\
32050 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
32051 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
32052 && mv -f "$cfgfile.tmp" "$cfgfile" \
32053 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32054 test 0 -eq $? || _lt_function_replace_fail=:
32057 # Save a `func_append' function call where possible by direct use of '+='
32058 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
32059 && mv -f "$cfgfile.tmp" "$cfgfile" \
32060 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32061 test 0 -eq $? || _lt_function_replace_fail=:
32063 # Save a `func_append' function call even when '+=' is not available
32064 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
32065 && mv -f "$cfgfile.tmp" "$cfgfile" \
32066 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32067 test 0 -eq $? || _lt_function_replace_fail=:
32070 if test x"$_lt_function_replace_fail" = x":"; then
32071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
32072 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
32076 mv -f "$cfgfile" "$ofile" ||
32077 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32081 cat <<_LT_EOF >> "$ofile"
32083 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32085 # The linker used to build libraries.
32088 # How to create reloadable object files.
32089 reload_flag=$lt_reload_flag_CXX
32090 reload_cmds=$lt_reload_cmds_CXX
32092 # Commands used to build an old-style archive.
32093 old_archive_cmds=$lt_old_archive_cmds_CXX
32095 # A language specific compiler.
32096 CC=$lt_compiler_CXX
32098 # Is the compiler the GNU compiler?
32101 # Compiler flag to turn off builtin functions.
32102 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32104 # Additional compiler flags for building library objects.
32105 pic_flag=$lt_lt_prog_compiler_pic_CXX
32107 # How to pass a linker flag through the compiler.
32108 wl=$lt_lt_prog_compiler_wl_CXX
32110 # Compiler flag to prevent dynamic linking.
32111 link_static_flag=$lt_lt_prog_compiler_static_CXX
32113 # Does compiler simultaneously support -c and -o options?
32114 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32116 # Whether or not to add -lc for building shared libraries.
32117 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32119 # Whether or not to disallow shared libs when runtime libs are static.
32120 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32122 # Compiler flag to allow reflexive dlopens.
32123 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32125 # Compiler flag to generate shared objects directly from archives.
32126 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32128 # Whether the compiler copes with passing no objects directly.
32129 compiler_needs_object=$lt_compiler_needs_object_CXX
32131 # Create an old-style archive from a shared archive.
32132 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32134 # Create a temporary old-style archive to link instead of a shared archive.
32135 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32137 # Commands used to build a shared archive.
32138 archive_cmds=$lt_archive_cmds_CXX
32139 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32141 # Commands used to build a loadable module if different from building
32142 # a shared archive.
32143 module_cmds=$lt_module_cmds_CXX
32144 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32146 # Whether we are building with GNU ld or not.
32147 with_gnu_ld=$lt_with_gnu_ld_CXX
32149 # Flag that allows shared libraries with undefined symbols to be built.
32150 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32152 # Flag that enforces no undefined symbols.
32153 no_undefined_flag=$lt_no_undefined_flag_CXX
32155 # Flag to hardcode \$libdir into a binary during linking.
32156 # This must work even if \$libdir does not exist
32157 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32159 # Whether we need a single "-rpath" flag with a separated argument.
32160 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32162 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32163 # DIR into the resulting binary.
32164 hardcode_direct=$hardcode_direct_CXX
32166 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32167 # DIR into the resulting binary and the resulting library dependency is
32168 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32169 # library is relocated.
32170 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32172 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32173 # into the resulting binary.
32174 hardcode_minus_L=$hardcode_minus_L_CXX
32176 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32177 # into the resulting binary.
32178 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32180 # Set to "yes" if building a shared library automatically hardcodes DIR
32181 # into the library and all subsequent libraries and executables linked
32183 hardcode_automatic=$hardcode_automatic_CXX
32185 # Set to yes if linker adds runtime paths of dependent libraries
32186 # to runtime path list.
32187 inherit_rpath=$inherit_rpath_CXX
32189 # Whether libtool must link a program against all its dependency libraries.
32190 link_all_deplibs=$link_all_deplibs_CXX
32192 # Set to "yes" if exported symbols are required.
32193 always_export_symbols=$always_export_symbols_CXX
32195 # The commands to list exported symbols.
32196 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32198 # Symbols that should not be listed in the preloaded symbols.
32199 exclude_expsyms=$lt_exclude_expsyms_CXX
32201 # Symbols that must always be exported.
32202 include_expsyms=$lt_include_expsyms_CXX
32204 # Commands necessary for linking programs (against libraries) with templates.
32205 prelink_cmds=$lt_prelink_cmds_CXX
32207 # Commands necessary for finishing linking programs.
32208 postlink_cmds=$lt_postlink_cmds_CXX
32210 # Specify filename containing input files.
32211 file_list_spec=$lt_file_list_spec_CXX
32213 # How to hardcode a shared library path into an executable.
32214 hardcode_action=$hardcode_action_CXX
32216 # The directories searched by this compiler when creating a shared library.
32217 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32219 # Dependencies to place before and after the objects being linked to
32220 # create a shared library.
32221 predep_objects=$lt_predep_objects_CXX
32222 postdep_objects=$lt_postdep_objects_CXX
32223 predeps=$lt_predeps_CXX
32224 postdeps=$lt_postdeps_CXX
32226 # The library search path used internally by the compiler when linking
32227 # a shared library.
32228 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32230 # ### END LIBTOOL TAG CONFIG: CXX
32234 cat <<_LT_EOF >> "$ofile"
32236 # ### BEGIN LIBTOOL TAG CONFIG: F77
32238 # The linker used to build libraries.
32241 # How to create reloadable object files.
32242 reload_flag=$lt_reload_flag_F77
32243 reload_cmds=$lt_reload_cmds_F77
32245 # Commands used to build an old-style archive.
32246 old_archive_cmds=$lt_old_archive_cmds_F77
32248 # A language specific compiler.
32249 CC=$lt_compiler_F77
32251 # Is the compiler the GNU compiler?
32254 # Compiler flag to turn off builtin functions.
32255 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
32257 # Additional compiler flags for building library objects.
32258 pic_flag=$lt_lt_prog_compiler_pic_F77
32260 # How to pass a linker flag through the compiler.
32261 wl=$lt_lt_prog_compiler_wl_F77
32263 # Compiler flag to prevent dynamic linking.
32264 link_static_flag=$lt_lt_prog_compiler_static_F77
32266 # Does compiler simultaneously support -c and -o options?
32267 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
32269 # Whether or not to add -lc for building shared libraries.
32270 build_libtool_need_lc=$archive_cmds_need_lc_F77
32272 # Whether or not to disallow shared libs when runtime libs are static.
32273 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
32275 # Compiler flag to allow reflexive dlopens.
32276 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
32278 # Compiler flag to generate shared objects directly from archives.
32279 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
32281 # Whether the compiler copes with passing no objects directly.
32282 compiler_needs_object=$lt_compiler_needs_object_F77
32284 # Create an old-style archive from a shared archive.
32285 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
32287 # Create a temporary old-style archive to link instead of a shared archive.
32288 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
32290 # Commands used to build a shared archive.
32291 archive_cmds=$lt_archive_cmds_F77
32292 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
32294 # Commands used to build a loadable module if different from building
32295 # a shared archive.
32296 module_cmds=$lt_module_cmds_F77
32297 module_expsym_cmds=$lt_module_expsym_cmds_F77
32299 # Whether we are building with GNU ld or not.
32300 with_gnu_ld=$lt_with_gnu_ld_F77
32302 # Flag that allows shared libraries with undefined symbols to be built.
32303 allow_undefined_flag=$lt_allow_undefined_flag_F77
32305 # Flag that enforces no undefined symbols.
32306 no_undefined_flag=$lt_no_undefined_flag_F77
32308 # Flag to hardcode \$libdir into a binary during linking.
32309 # This must work even if \$libdir does not exist
32310 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
32312 # Whether we need a single "-rpath" flag with a separated argument.
32313 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
32315 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32316 # DIR into the resulting binary.
32317 hardcode_direct=$hardcode_direct_F77
32319 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32320 # DIR into the resulting binary and the resulting library dependency is
32321 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32322 # library is relocated.
32323 hardcode_direct_absolute=$hardcode_direct_absolute_F77
32325 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32326 # into the resulting binary.
32327 hardcode_minus_L=$hardcode_minus_L_F77
32329 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32330 # into the resulting binary.
32331 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
32333 # Set to "yes" if building a shared library automatically hardcodes DIR
32334 # into the library and all subsequent libraries and executables linked
32336 hardcode_automatic=$hardcode_automatic_F77
32338 # Set to yes if linker adds runtime paths of dependent libraries
32339 # to runtime path list.
32340 inherit_rpath=$inherit_rpath_F77
32342 # Whether libtool must link a program against all its dependency libraries.
32343 link_all_deplibs=$link_all_deplibs_F77
32345 # Set to "yes" if exported symbols are required.
32346 always_export_symbols=$always_export_symbols_F77
32348 # The commands to list exported symbols.
32349 export_symbols_cmds=$lt_export_symbols_cmds_F77
32351 # Symbols that should not be listed in the preloaded symbols.
32352 exclude_expsyms=$lt_exclude_expsyms_F77
32354 # Symbols that must always be exported.
32355 include_expsyms=$lt_include_expsyms_F77
32357 # Commands necessary for linking programs (against libraries) with templates.
32358 prelink_cmds=$lt_prelink_cmds_F77
32360 # Commands necessary for finishing linking programs.
32361 postlink_cmds=$lt_postlink_cmds_F77
32363 # Specify filename containing input files.
32364 file_list_spec=$lt_file_list_spec_F77
32366 # How to hardcode a shared library path into an executable.
32367 hardcode_action=$hardcode_action_F77
32369 # The directories searched by this compiler when creating a shared library.
32370 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
32372 # Dependencies to place before and after the objects being linked to
32373 # create a shared library.
32374 predep_objects=$lt_predep_objects_F77
32375 postdep_objects=$lt_postdep_objects_F77
32376 predeps=$lt_predeps_F77
32377 postdeps=$lt_postdeps_F77
32379 # The library search path used internally by the compiler when linking
32380 # a shared library.
32381 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
32383 # ### END LIBTOOL TAG CONFIG: F77
32394 ac_clean_files=$ac_clean_files_save
32396 test $ac_write_fail = 0 ||
32397 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32400 # configure is writing to config.log, and then calls config.status.
32401 # config.status does its own redirection, appending to config.log.
32402 # Unfortunately, on DOS this fails, as config.log is still kept open
32403 # by configure, so config.status won't be able to write to it; its
32404 # output is simply discarded. So we exec the FD to /dev/null,
32405 # effectively closing config.log, so it can be properly (re)opened and
32406 # appended to by config.status. When coming back to configure, we
32407 # need to make the FD available again.
32408 if test "$no_create" != yes; then
32410 ac_config_status_args=
32411 test "$silent" = yes &&
32412 ac_config_status_args="$ac_config_status_args --quiet"
32414 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32416 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32417 # would make configure fail if this is the last instruction.
32418 $ac_cs_success || as_fn_exit 1
32420 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32422 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32426 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
32428 Version: ${PACKAGE_STRING}
32431 Install prefix: ${prefix}
32433 Static libraries: ${enable_static}
32434 Shared libraries: ${enable_shared}
32436 $as_echo "$as_me: summary of build options:
32438 Version: ${PACKAGE_STRING}
32441 Install prefix: ${prefix}
32443 Static libraries: ${enable_static}
32444 Shared libraries: ${enable_shared}
32447 if test x$cross_compiling = xyes ; then
32449 *-*-mingw* | *-*-cygwin)
32450 if test x$ABI = x64 ; then
32451 { $as_echo "$as_me:${as_lineno-$LINENO}: If wine64 is installed, use make check TESTS_ENVIRONMENT=wine64." >&5
32452 $as_echo "$as_me: If wine64 is installed, use make check TESTS_ENVIRONMENT=wine64." >&6;}
32454 { $as_echo "$as_me:${as_lineno-$LINENO}: If wine is installed, use make check TESTS_ENVIRONMENT=wine." >&5
32455 $as_echo "$as_me: If wine is installed, use make check TESTS_ENVIRONMENT=wine." >&6;}