2 # From configure.in Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 for GNU MP 5.0.5.
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 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, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
31 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
35 # This configure script is free software; the Free Software Foundation
36 # gives unlimited permission to copy, distribute and modify it.
37 ## -------------------- ##
38 ## M4sh Initialization. ##
39 ## -------------------- ##
41 # Be more Bourne compatible
42 DUALCASE=1; export DUALCASE # for MKS sh
43 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
46 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
47 # is contrary to our usage. Disable this feature.
48 alias -g '${1+"$@"}'='"$@"'
51 case `(set -o) 2>/dev/null` in #(
63 # Printing a long string crashes Solaris 7 /usr/bin/printf.
64 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
65 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
66 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
67 # Prefer a ksh shell builtin over an external printf program on Solaris,
68 # but without wasting forks for bash or zsh.
69 if test -z "$BASH_VERSION$ZSH_VERSION" \
70 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
72 as_echo_n='print -rn --'
73 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
77 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
78 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
79 as_echo_n='/usr/ucb/echo -n'
81 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
86 expr "X$arg" : "X\\(.*\\)$as_nl";
87 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
89 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
92 as_echo_n='sh -c $as_echo_n_body as_echo'
95 as_echo='sh -c $as_echo_body as_echo'
98 # The user is always right.
99 if test "${PATH_SEPARATOR+set}" != set; then
101 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
102 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
109 # We need space, tab and new line, in precisely that order. Quoting is
110 # there to prevent editors from complaining about space-tab.
111 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
112 # splitting by setting IFS to empty value.)
115 # Find who we are. Look in the path if we contain no directory separator.
117 *[\\/]* ) as_myself=$0 ;;
118 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
122 test -z "$as_dir" && as_dir=.
123 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
129 # We did not find ourselves, most probably we were run as `sh COMMAND'
130 # in which case we are not to be found in the path.
131 if test "x$as_myself" = x; then
134 if test ! -f "$as_myself"; then
135 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
139 # Unset variables that we do not need and which cause bugs (e.g. in
140 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
141 # suppresses any "Segmentation fault" message there. '((' could
142 # trigger a bug in pdksh 5.2.14.
143 for as_var in BASH_ENV ENV MAIL MAILPATH
144 do eval test x\${$as_var+set} = xset \
145 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
158 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1"
194 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
195 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
196 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
197 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
198 test \$(( 1 + 1 )) = 2 || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
207 if (eval "$as_required") 2>/dev/null; then :
212 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 test -z "$as_dir" && as_dir=.
224 for as_base in sh bash ksh sh5; do
225 # Try only shells that exist, to save several forks.
226 as_shell=$as_dir/$as_base
227 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
228 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
229 CONFIG_SHELL=$as_shell as_have_required=yes
230 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
238 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
239 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
240 CONFIG_SHELL=$SHELL as_have_required=yes
245 if test "x$CONFIG_SHELL" != x; then :
246 # We cannot yet assume a decent shell, so we have to provide a
247 # neutralization value for shells without unset; and this also
248 # works around shells that cannot unset nonexistent variables.
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
253 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
256 if test x$as_have_required = xno; then :
257 $as_echo "$0: This script requires a shell more modern than all"
258 $as_echo "$0: the shells that I found on your system."
259 if test x${ZSH_VERSION+set} = xset ; then
260 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
261 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
263 $as_echo "$0: Please tell bug-autoconf@gnu.org and
264 $0: gmp-bugs@gmplib.org, see
265 $0: http://gmplib.org/manual/Reporting-Bugs.html about your
266 $0: system, including any error possibly output before this
267 $0: message. Then install a modern shell, or manually run
268 $0: the script under such a shell if you do have one."
274 SHELL=${CONFIG_SHELL-/bin/sh}
276 # Unset more variables known to interfere with behavior of common tools.
277 CLICOLOR_FORCE= GREP_OPTIONS=
278 unset CLICOLOR_FORCE GREP_OPTIONS
280 ## --------------------- ##
281 ## M4sh Shell Functions. ##
282 ## --------------------- ##
285 # Portably unset VAR.
288 { eval $1=; unset $1;}
292 # as_fn_set_status STATUS
293 # -----------------------
294 # Set $? to STATUS, without forking.
302 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
312 # Create "$as_dir" as a directory, including parents if necessary.
317 -*) as_dir=./$as_dir;;
319 test -d "$as_dir" || eval $as_mkdir_p || {
323 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 as_dirs="'$as_qdir' $as_dirs"
327 as_dir=`$as_dirname -- "$as_dir" ||
328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
329 X"$as_dir" : 'X\(//\)[^/]' \| \
330 X"$as_dir" : 'X\(//\)$' \| \
331 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
332 $as_echo X"$as_dir" |
333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 test -d "$as_dir" && break
352 test -z "$as_dirs" || eval "mkdir $as_dirs"
353 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
357 # as_fn_append VAR VALUE
358 # ----------------------
359 # Append the text in VALUE to the end of the definition contained in VAR. Take
360 # advantage of any shell optimizations that allow amortized linear growth over
361 # repeated appends, instead of the typical quadratic growth present in naive
363 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
364 eval 'as_fn_append ()
377 # Perform arithmetic evaluation on the ARGs, and store the result in the
378 # global $as_val. Take advantage of shells that can avoid forks. The arguments
379 # must be portable across $(()) and expr.
380 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
388 as_val=`expr "$@" || test $? -eq 1`
393 # as_fn_error ERROR [LINENO LOG_FD]
394 # ---------------------------------
395 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
396 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
397 # script with status $?, using 1 if that was 0.
400 as_status=$?; test $as_status -eq 0 && as_status=1
402 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
403 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
405 $as_echo "$as_me: error: $1" >&2
406 as_fn_exit $as_status
409 if expr a : '\(a\)' >/dev/null 2>&1 &&
410 test "X`expr 00001 : '.*\(...\)'`" = X001; then
416 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
422 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
428 as_me=`$as_basename -- "$0" ||
429 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
430 X"$0" : 'X\(//\)$' \| \
431 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
433 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 # Avoid depending upon Character Ranges.
448 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
449 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
450 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
451 as_cr_digits='0123456789'
452 as_cr_alnum=$as_cr_Letters$as_cr_digits
455 as_lineno_1=$LINENO as_lineno_1a=$LINENO
456 as_lineno_2=$LINENO as_lineno_2a=$LINENO
457 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
458 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
459 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
478 # Don't try to exec as it changes $[0], causing all sort of problems
479 # (the dirname of $[0] is not the place where we might find the
480 # original and so on. Autoconf is especially sensitive to this).
482 # Exit status is that of the last command.
486 ECHO_C= ECHO_N= ECHO_T=
487 case `echo -n x` in #(((((
489 case `echo 'xy\c'` in
490 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
492 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
499 rm -f conf$$ conf$$.exe conf$$.file
500 if test -d conf$$.dir; then
501 rm -f conf$$.dir/conf$$.file
504 mkdir conf$$.dir 2>/dev/null
506 if (echo >conf$$.file) 2>/dev/null; then
507 if ln -s conf$$.file conf$$ 2>/dev/null; then
509 # ... but there are two gotchas:
510 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
511 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
512 # In both cases, we have to default to `cp -p'.
513 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
515 elif ln conf$$.file conf$$ 2>/dev/null; then
523 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
524 rmdir conf$$.dir 2>/dev/null
526 if mkdir -p . 2>/dev/null; then
527 as_mkdir_p='mkdir -p "$as_dir"'
529 test -d ./-p && rmdir ./-p
533 if test -x / >/dev/null 2>&1; then
536 if ls -dL / >/dev/null 2>&1; then
543 if test -d "$1"; then
549 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
550 ???[sx]*):;;*)false;;esac;fi
554 as_executable_p=$as_test_x
556 # Sed expression to map a string onto a valid CPP name.
557 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
559 # Sed expression to map a string onto a valid variable name.
560 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
562 SHELL=${CONFIG_SHELL-/bin/sh}
565 test -n "$DJDIR" || exec 7<&0 </dev/null
569 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
570 # so uname gets run too.
571 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 ac_default_prefix=/usr/local
578 ac_config_libobj_dir=.
585 # Identity of this package.
586 PACKAGE_NAME='GNU MP'
587 PACKAGE_TARNAME='gmp'
588 PACKAGE_VERSION='5.0.5'
589 PACKAGE_STRING='GNU MP 5.0.5'
590 PACKAGE_BUGREPORT='gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html'
591 PACKAGE_URL='http://www.gnu.org/software/gmp/'
593 ac_unique_file="gmp-impl.h"
594 # Factoring default headers for most tests.
595 ac_includes_default="\
597 #ifdef HAVE_SYS_TYPES_H
598 # include <sys/types.h>
600 #ifdef HAVE_SYS_STAT_H
601 # include <sys/stat.h>
607 # ifdef HAVE_STDLIB_H
612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #ifdef HAVE_STRINGS_H
618 # include <strings.h>
620 #ifdef HAVE_INTTYPES_H
621 # include <inttypes.h>
630 ac_subst_vars='am__EXEEXT_FALSE
643 HAVE_SYS_RESOURCE_H_01
709 CALLING_CONVENTIONS_OBJS
710 SPEED_CYCLECOUNTER_OBJ
714 HAVE_HOST_CPU_FAMILY_powerpc
715 HAVE_HOST_CPU_FAMILY_power
721 MAINTAINER_MODE_FALSE
731 INSTALL_STRIP_PROGRAM
781 program_transform_name
794 enable_option_checking
795 enable_maintainer_mode
815 ac_precious_vars='build_alias
836 # Initialize some variables set by options.
838 ac_init_version=false
839 ac_unrecognized_opts=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
850 program_transform_name=s,x,x,
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 includedir='${prefix}/include'
873 oldincludedir='/usr/include'
874 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
875 infodir='${datarootdir}/info'
880 libdir='${exec_prefix}/lib'
881 localedir='${datarootdir}/locale'
882 mandir='${datarootdir}/man'
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\$ac_option
896 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 # Accept the important Cygnus configure options, so we can diagnose typos.
902 case $ac_dashdash$ac_option in
906 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 -build | --build | --buil | --bui | --bu)
912 ac_prev=build_alias ;;
913 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914 build_alias=$ac_optarg ;;
916 -cache-file | --cache-file | --cache-fil | --cache-fi \
917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918 ac_prev=cache_file ;;
919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921 cache_file=$ac_optarg ;;
924 cache_file=config.cache ;;
926 -datadir | --datadir | --datadi | --datad)
928 -datadir=* | --datadir=* | --datadi=* | --datad=*)
929 datadir=$ac_optarg ;;
931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932 | --dataroo | --dataro | --datar)
933 ac_prev=datarootdir ;;
934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936 datarootdir=$ac_optarg ;;
938 -disable-* | --disable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
952 eval enable_$ac_useropt=no ;;
954 -docdir | --docdir | --docdi | --doc | --do)
956 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 -enable-* | --enable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error "invalid feature name: $ac_useropt"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
978 eval enable_$ac_useropt=\$ac_optarg ;;
980 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982 | --exec | --exe | --ex)
983 ac_prev=exec_prefix ;;
984 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986 | --exec=* | --exe=* | --ex=*)
987 exec_prefix=$ac_optarg ;;
989 -gas | --gas | --ga | --g)
990 # Obsolete; use --with-gas.
993 -help | --help | --hel | --he | -h)
995 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996 ac_init_help=recursive ;;
997 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998 ac_init_help=short ;;
1000 -host | --host | --hos | --ho)
1001 ac_prev=host_alias ;;
1002 -host=* | --host=* | --hos=* | --ho=*)
1003 host_alias=$ac_optarg ;;
1005 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 htmldir=$ac_optarg ;;
1011 -includedir | --includedir | --includedi | --included | --include \
1012 | --includ | --inclu | --incl | --inc)
1013 ac_prev=includedir ;;
1014 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015 | --includ=* | --inclu=* | --incl=* | --inc=*)
1016 includedir=$ac_optarg ;;
1018 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021 infodir=$ac_optarg ;;
1023 -libdir | --libdir | --libdi | --libd)
1025 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026 libdir=$ac_optarg ;;
1028 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029 | --libexe | --libex | --libe)
1030 ac_prev=libexecdir ;;
1031 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032 | --libexe=* | --libex=* | --libe=*)
1033 libexecdir=$ac_optarg ;;
1035 -localedir | --localedir | --localedi | --localed | --locale)
1036 ac_prev=localedir ;;
1037 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038 localedir=$ac_optarg ;;
1040 -localstatedir | --localstatedir | --localstatedi | --localstated \
1041 | --localstate | --localstat | --localsta | --localst | --locals)
1042 ac_prev=localstatedir ;;
1043 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045 localstatedir=$ac_optarg ;;
1047 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050 mandir=$ac_optarg ;;
1052 -nfp | --nfp | --nf)
1053 # Obsolete; use --without-fp.
1056 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057 | --no-cr | --no-c | -n)
1060 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066 | --oldin | --oldi | --old | --ol | --o)
1067 ac_prev=oldincludedir ;;
1068 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071 oldincludedir=$ac_optarg ;;
1073 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076 prefix=$ac_optarg ;;
1078 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079 | --program-pre | --program-pr | --program-p)
1080 ac_prev=program_prefix ;;
1081 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083 program_prefix=$ac_optarg ;;
1085 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086 | --program-suf | --program-su | --program-s)
1087 ac_prev=program_suffix ;;
1088 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090 program_suffix=$ac_optarg ;;
1092 -program-transform-name | --program-transform-name \
1093 | --program-transform-nam | --program-transform-na \
1094 | --program-transform-n | --program-transform- \
1095 | --program-transform | --program-transfor \
1096 | --program-transfo | --program-transf \
1097 | --program-trans | --program-tran \
1098 | --progr-tra | --program-tr | --program-t)
1099 ac_prev=program_transform_name ;;
1100 -program-transform-name=* | --program-transform-name=* \
1101 | --program-transform-nam=* | --program-transform-na=* \
1102 | --program-transform-n=* | --program-transform-=* \
1103 | --program-transform=* | --program-transfor=* \
1104 | --program-transfo=* | --program-transf=* \
1105 | --program-trans=* | --program-tran=* \
1106 | --progr-tra=* | --program-tr=* | --program-t=*)
1107 program_transform_name=$ac_optarg ;;
1109 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112 pdfdir=$ac_optarg ;;
1114 -psdir | --psdir | --psdi | --psd | --ps)
1116 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1123 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 sbindir=$ac_optarg ;;
1129 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1130 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1131 | --sharedst | --shareds | --shared | --share | --shar \
1133 ac_prev=sharedstatedir ;;
1134 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1135 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1136 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 sharedstatedir=$ac_optarg ;;
1140 -site | --site | --sit)
1142 -site=* | --site=* | --sit=*)
1145 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1148 srcdir=$ac_optarg ;;
1150 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1151 | --syscon | --sysco | --sysc | --sys | --sy)
1152 ac_prev=sysconfdir ;;
1153 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1154 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1155 sysconfdir=$ac_optarg ;;
1157 -target | --target | --targe | --targ | --tar | --ta | --t)
1158 ac_prev=target_alias ;;
1159 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160 target_alias=$ac_optarg ;;
1162 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 -version | --version | --versio | --versi | --vers | -V)
1166 ac_init_version=: ;;
1169 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1182 eval with_$ac_useropt=\$ac_optarg ;;
1184 -without-* | --without-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error "invalid package name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1198 eval with_$ac_useropt=no ;;
1201 # Obsolete; use --with-x.
1204 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1205 | --x-incl | --x-inc | --x-in | --x-i)
1206 ac_prev=x_includes ;;
1207 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1208 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1209 x_includes=$ac_optarg ;;
1211 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1212 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1213 ac_prev=x_libraries ;;
1214 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1215 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1216 x_libraries=$ac_optarg ;;
1218 -*) as_fn_error "unrecognized option: \`$ac_option'
1219 Try \`$0 --help' for more information."
1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 case $ac_envvar in #(
1226 '' | [0-9]* | *[!_$as_cr_alnum]* )
1227 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1229 eval $ac_envvar=\$ac_optarg
1230 export $ac_envvar ;;
1233 # FIXME: should be removed in autoconf 3.0.
1234 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1237 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1243 if test -n "$ac_prev"; then
1244 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1245 as_fn_error "missing argument to $ac_option"
1248 if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1251 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1252 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 # Check all directory arguments for consistency.
1257 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258 datadir sysconfdir sharedstatedir localstatedir includedir \
1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260 libdir localedir mandir
1262 eval ac_val=\$$ac_var
1263 # Remove trailing slashes.
1266 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267 eval $ac_var=\$ac_val;;
1269 # Be sure to have absolute directory names.
1271 [\\/$]* | ?:[\\/]* ) continue;;
1272 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1282 target=$target_alias
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286 if test "x$build_alias" = x; then
1287 cross_compiling=maybe
1288 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1289 If a cross compiler is detected then cross compile mode will be used." >&2
1290 elif test "x$build_alias" != "x$host_alias"; then
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298 test "$silent" = yes && exec 6>/dev/null
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 as_fn_error "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 as_fn_error "pwd does not report name of working directory"
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1341 ac_srcdir_defaulted=no
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 # Report the --help message.
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1375 \`configure' configures GNU MP 5.0.5 to adapt to many kinds of systems.
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1382 Defaults for the options are specified in brackets.
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1406 For better control, use the options below.
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/gmp]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive ) echo "Configuration of GNU MP 5.0.5:";;
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-maintainer-mode enable make rules and dependencies not useful
1454 (and sometimes confusing) to the casual installer
1455 --enable-assert enable ASSERT checking [[default=no]]
1456 --enable-alloca how to get temp memory [[default=reentrant]]
1457 --enable-cxx enable C++ support [[default=no]]
1458 --enable-fft enable FFTs for multiplication [[default=yes]]
1459 --enable-old-fft-full enable old mpn_mul_fft_full for multiplication
1461 --enable-mpbsd build Berkeley MP compatibility library
1463 --enable-nails use nails on limbs [[default=no]]
1464 --enable-profiling build with profiler support [[default=no]]
1465 --enable-fat build a fat binary on systems that support it
1467 --enable-minithres choose minimal thresholds for testing [[default=no]]
1468 --enable-shared[=PKGS] build shared libraries [default=yes]
1469 --enable-static[=PKGS] build static libraries [default=yes]
1470 --enable-fast-install[=PKGS]
1471 optimize for fast installation [default=yes]
1472 --disable-libtool-lock avoid locking (might break parallel builds)
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-readline readline support in calc demo program
1479 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1481 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1482 --with-sysroot=DIR Search for dependent libraries within DIR
1483 (or the compiler's sysroot if not specified).
1485 Some influential environment variables:
1486 ABI desired ABI (for processors supporting more than one ABI)
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1496 build system C compiler
1498 build system C preprocessor
1499 CXX C++ compiler command
1500 CXXFLAGS C++ compiler flags
1501 CXXCPP C++ preprocessor
1502 M4 m4 macro processor
1503 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1504 the first program found out of: `bison -y', `byacc', `yacc'.
1505 YFLAGS The list of arguments that will be passed by default to $YACC.
1506 This script will default YFLAGS to the empty string to avoid a
1507 default value of `-d' given by some make applications.
1509 Use these variables to override the choices made by `configure' or to help
1510 it to find libraries and programs with nonstandard names/locations.
1512 Report bugs to <gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html>.
1513 GNU MP home page: <http://www.gnu.org/software/gmp/>.
1514 General help using GNU software: <http://www.gnu.org/gethelp/>.
1519 if test "$ac_init_help" = "recursive"; then
1520 # If there are subdirs, report their specific --help.
1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522 test -d "$ac_dir" ||
1523 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1531 # A ".." for each directory in $ac_dir_suffix.
1532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1533 case $ac_top_builddir_sub in
1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 ac_abs_top_builddir=$ac_pwd
1539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1540 # for backward compatibility:
1541 ac_top_builddir=$ac_top_build_prefix
1544 .) # We are building in place.
1546 ac_top_srcdir=$ac_top_builddir_sub
1547 ac_abs_top_srcdir=$ac_pwd ;;
1548 [\\/]* | ?:[\\/]* ) # Absolute name.
1549 ac_srcdir=$srcdir$ac_dir_suffix;
1550 ac_top_srcdir=$srcdir
1551 ac_abs_top_srcdir=$srcdir ;;
1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1554 ac_top_srcdir=$ac_top_build_prefix$srcdir
1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559 cd "$ac_dir" || { ac_status=$?; continue; }
1560 # Check for guested configure.
1561 if test -f "$ac_srcdir/configure.gnu"; then
1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1564 elif test -f "$ac_srcdir/configure"; then
1566 $SHELL "$ac_srcdir/configure" --help=recursive
1568 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570 cd "$ac_pwd" || { ac_status=$?; break; }
1574 test -n "$ac_init_help" && exit $ac_status
1575 if $ac_init_version; then
1577 GNU MP configure 5.0.5
1578 generated by GNU Autoconf 2.65
1580 Copyright (C) 2009 Free Software Foundation, Inc.
1581 This configure script is free software; the Free Software Foundation
1582 gives unlimited permission to copy, distribute and modify it.
1586 Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
1587 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
1589 This file is part of the GNU MP Library.
1591 The GNU MP Library is free software; you can redistribute it and/or modify
1592 it under the terms of the GNU Lesser General Public License as published
1593 by the Free Software Foundation; either version 3 of the License, or (at
1594 your option) any later version.
1596 The GNU MP Library is distributed in the hope that it will be useful, but
1597 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1598 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
1599 License for more details.
1601 You should have received a copy of the GNU Lesser General Public License
1602 along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
1608 ## ------------------------ ##
1609 ## Autoconf initialization. ##
1610 ## ------------------------ ##
1612 # ac_fn_c_try_compile LINENO
1613 # --------------------------
1614 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1615 ac_fn_c_try_compile ()
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 rm -f conftest.$ac_objext
1619 if { { ac_try="$ac_compile"
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_compile") 2>conftest.err
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest.$ac_objext; then :
1640 $as_echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1645 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646 as_fn_set_status $ac_retval
1648 } # ac_fn_c_try_compile
1650 # ac_fn_c_try_cpp LINENO
1651 # ----------------------
1652 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 if { { ac_try="$ac_cpp conftest.$ac_ext"
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } >/dev/null && {
1672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1682 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1683 as_fn_set_status $ac_retval
1687 # ac_fn_cxx_try_compile LINENO
1688 # ----------------------------
1689 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_cxx_try_compile ()
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext
1694 if { { ac_try="$ac_compile"
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_compile") 2>conftest.err
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_cxx_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest.$ac_objext; then :
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 as_fn_set_status $ac_retval
1723 } # ac_fn_cxx_try_compile
1725 # ac_fn_cxx_try_cpp LINENO
1726 # ------------------------
1727 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_cxx_try_cpp ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 if { { ac_try="$ac_cpp conftest.$ac_ext"
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } >/dev/null && {
1747 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1748 test ! -s conftest.err
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 as_fn_set_status $ac_retval
1760 } # ac_fn_cxx_try_cpp
1762 # ac_fn_c_try_run LINENO
1763 # ----------------------
1764 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1765 # that executables *can* be run.
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { { ac_try="$ac_link"
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>&5
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1780 { { case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_try") 2>&5
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; }; }; then :
1792 $as_echo "$as_me: program exited with status $ac_status" >&5
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1796 ac_retval=$ac_status
1798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800 as_fn_set_status $ac_retval
1804 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1805 # -------------------------------------------------------
1806 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1807 # the include files in INCLUDES and setting the cache variable VAR
1809 ac_fn_c_check_header_mongrel ()
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1816 $as_echo_n "(cached) " >&6
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1822 # Is the header compilable?
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1824 $as_echo_n "checking $2 usability... " >&6; }
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1830 if ac_fn_c_try_compile "$LINENO"; then :
1831 ac_header_compiler=yes
1833 ac_header_compiler=no
1835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1837 $as_echo "$ac_header_compiler" >&6; }
1839 # Is the header present?
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1841 $as_echo_n "checking $2 presence... " >&6; }
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1846 if ac_fn_c_try_cpp "$LINENO"; then :
1847 ac_header_preproc=yes
1849 ac_header_preproc=no
1851 rm -f conftest.err conftest.$ac_ext
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1853 $as_echo "$ac_header_preproc" >&6; }
1855 # So? What about this header?
1856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1859 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1865 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1867 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1869 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1871 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1873 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1875 ## ssssssssssssssssssssssssssssssssss ##
1876 ## Report this to gmp-bugs@gmplib.org ##
1877 ## ssssssssssssssssssssssssssssssssss ##
1879 ) | sed "s/^/$as_me: WARNING: /" >&2
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885 $as_echo_n "(cached) " >&6
1887 eval "$3=\$ac_header_compiler"
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1895 } # ac_fn_c_check_header_mongrel
1897 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1898 # -------------------------------------------------------
1899 # Tests whether HEADER exists and can be compiled using the include files in
1900 # INCLUDES, setting the cache variable VAR accordingly.
1901 ac_fn_c_check_header_compile ()
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1907 $as_echo_n "(cached) " >&6
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1914 if ac_fn_c_try_compile "$LINENO"; then :
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1926 } # ac_fn_c_check_header_compile
1928 # ac_fn_c_try_link LINENO
1929 # -----------------------
1930 # Try to link conftest.$ac_ext, and return whether this succeeded.
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 rm -f conftest.$ac_objext conftest$ac_exeext
1935 if { { ac_try="$ac_link"
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>conftest.err
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && {
1951 test -z "$ac_c_werror_flag" ||
1952 test ! -s conftest.err
1953 } && test -s conftest$ac_exeext && {
1954 test "$cross_compiling" = yes ||
1955 $as_test_x conftest$ac_exeext
1959 $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1964 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1965 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1966 # interfere with the next link command; also delete a directory that is
1967 # left behind by Apple's compiler. We do this before executing the actions.
1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970 as_fn_set_status $ac_retval
1972 } # ac_fn_c_try_link
1974 # ac_fn_c_check_func LINENO FUNC VAR
1975 # ----------------------------------
1976 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1977 ac_fn_c_check_func ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1983 $as_echo_n "(cached) " >&6
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1987 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1989 #define $2 innocuous_$2
1991 /* System header to define __stub macros and hopefully few prototypes,
1992 which can conflict with char $2 (); below.
1993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1994 <limits.h> exists even on freestanding compilers. */
1997 # include <limits.h>
1999 # include <assert.h>
2004 /* Override any GCC internal prototype to avoid an error.
2005 Use char because int might match the return type of a GCC
2006 builtin and then its argument prototype would still apply. */
2011 /* The GNU C library defines this for functions which it implements
2012 to always fail with ENOSYS. Some functions are actually named
2013 something starting with __ and the normal name is an alias. */
2014 #if defined __stub_$2 || defined __stub___$2
2026 if ac_fn_c_try_link "$LINENO"; then :
2031 rm -f core conftest.err conftest.$ac_objext \
2032 conftest$ac_exeext conftest.$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2037 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2039 } # ac_fn_c_check_func
2041 # ac_fn_cxx_try_link LINENO
2042 # -------------------------
2043 # Try to link conftest.$ac_ext, and return whether this succeeded.
2044 ac_fn_cxx_try_link ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 rm -f conftest.$ac_objext conftest$ac_exeext
2048 if { { ac_try="$ac_link"
2050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2051 *) ac_try_echo=$ac_try;;
2053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2054 $as_echo "$ac_try_echo"; } >&5
2055 (eval "$ac_link") 2>conftest.err
2057 if test -s conftest.err; then
2058 grep -v '^ *+' conftest.err >conftest.er1
2059 cat conftest.er1 >&5
2060 mv -f conftest.er1 conftest.err
2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063 test $ac_status = 0; } && {
2064 test -z "$ac_cxx_werror_flag" ||
2065 test ! -s conftest.err
2066 } && test -s conftest$ac_exeext && {
2067 test "$cross_compiling" = yes ||
2068 $as_test_x conftest$ac_exeext
2072 $as_echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2077 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2078 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2079 # interfere with the next link command; also delete a directory that is
2080 # left behind by Apple's compiler. We do this before executing the actions.
2081 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2082 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2083 as_fn_set_status $ac_retval
2085 } # ac_fn_cxx_try_link
2087 # ac_fn_f77_try_link LINENO
2088 # -------------------------
2089 # Try to link conftest.$ac_ext, and return whether this succeeded.
2090 ac_fn_f77_try_link ()
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 rm -f conftest.$ac_objext conftest$ac_exeext
2094 if { { ac_try="$ac_link"
2096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2097 *) ac_try_echo=$ac_try;;
2099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2100 $as_echo "$ac_try_echo"; } >&5
2101 (eval "$ac_link") 2>conftest.err
2103 if test -s conftest.err; then
2104 grep -v '^ *+' conftest.err >conftest.er1
2105 cat conftest.er1 >&5
2106 mv -f conftest.er1 conftest.err
2108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2109 test $ac_status = 0; } && {
2110 test -z "$ac_f77_werror_flag" ||
2111 test ! -s conftest.err
2112 } && test -s conftest$ac_exeext && {
2113 test "$cross_compiling" = yes ||
2114 $as_test_x conftest$ac_exeext
2118 $as_echo "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.$ac_ext >&5
2123 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2124 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2125 # interfere with the next link command; also delete a directory that is
2126 # left behind by Apple's compiler. We do this before executing the actions.
2127 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2128 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2129 as_fn_set_status $ac_retval
2131 } # ac_fn_f77_try_link
2133 # ac_fn_c_check_decl LINENO SYMBOL VAR
2134 # ------------------------------------
2135 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2136 ac_fn_c_check_decl ()
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2140 $as_echo_n "checking whether $2 is declared... " >&6; }
2141 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2142 $as_echo_n "(cached) " >&6
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2158 if ac_fn_c_try_compile "$LINENO"; then :
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167 $as_echo "$ac_res" >&6; }
2168 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2170 } # ac_fn_c_check_decl
2172 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2173 # -------------------------------------------
2174 # Tests whether TYPE exists after having included INCLUDES, setting cache
2175 # variable VAR accordingly.
2176 ac_fn_c_check_type ()
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2180 $as_echo_n "checking for $2... " >&6; }
2181 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2182 $as_echo_n "(cached) " >&6
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2197 if ac_fn_c_try_compile "$LINENO"; then :
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2210 if ac_fn_c_try_compile "$LINENO"; then :
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221 $as_echo "$ac_res" >&6; }
2222 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2224 } # ac_fn_c_check_type
2226 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2227 # ----------------------------------------------------
2228 # Tries to find if the field MEMBER exists in type AGGR, after including
2229 # INCLUDES, setting cache variable VAR accordingly.
2230 ac_fn_c_check_member ()
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2234 $as_echo_n "checking for $2.$3... " >&6; }
2235 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2236 $as_echo_n "(cached) " >&6
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2251 if ac_fn_c_try_compile "$LINENO"; then :
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2261 if (sizeof ac_aggr.$3)
2267 if ac_fn_c_try_compile "$LINENO"; then :
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278 $as_echo "$ac_res" >&6; }
2279 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2281 } # ac_fn_c_check_member
2283 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2284 # ---------------------------------------------------------
2285 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2286 # the include files in INCLUDES and setting the cache variable VAR
2288 ac_fn_cxx_check_header_mongrel ()
2290 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2291 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2293 $as_echo_n "checking for $2... " >&6; }
2294 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2295 $as_echo_n "(cached) " >&6
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299 $as_echo "$ac_res" >&6; }
2301 # Is the header compilable?
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2303 $as_echo_n "checking $2 usability... " >&6; }
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2309 if ac_fn_cxx_try_compile "$LINENO"; then :
2310 ac_header_compiler=yes
2312 ac_header_compiler=no
2314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2316 $as_echo "$ac_header_compiler" >&6; }
2318 # Is the header present?
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2320 $as_echo_n "checking $2 presence... " >&6; }
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2325 if ac_fn_cxx_try_cpp "$LINENO"; then :
2326 ac_header_preproc=yes
2328 ac_header_preproc=no
2330 rm -f conftest.err conftest.$ac_ext
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2332 $as_echo "$ac_header_preproc" >&6; }
2334 # So? What about this header?
2335 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2338 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2340 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2344 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2346 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2348 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2350 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2352 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2354 ## ssssssssssssssssssssssssssssssssss ##
2355 ## Report this to gmp-bugs@gmplib.org ##
2356 ## ssssssssssssssssssssssssssssssssss ##
2358 ) | sed "s/^/$as_me: WARNING: /" >&2
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2362 $as_echo_n "checking for $2... " >&6; }
2363 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2364 $as_echo_n "(cached) " >&6
2366 eval "$3=\$ac_header_compiler"
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2370 $as_echo "$ac_res" >&6; }
2372 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2374 } # ac_fn_cxx_check_header_mongrel
2376 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2377 # ---------------------------------------------
2378 # Tests whether TYPE exists after having included INCLUDES, setting cache
2379 # variable VAR accordingly.
2380 ac_fn_cxx_check_type ()
2382 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2384 $as_echo_n "checking for $2... " >&6; }
2385 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2386 $as_echo_n "(cached) " >&6
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h. */
2401 if ac_fn_cxx_try_compile "$LINENO"; then :
2402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2403 /* end confdefs.h. */
2414 if ac_fn_cxx_try_compile "$LINENO"; then :
2419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2425 $as_echo "$ac_res" >&6; }
2426 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2428 } # ac_fn_cxx_check_type
2430 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2431 # --------------------------------------------
2432 # Tries to find the compile-time value of EXPR in a program that includes
2433 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2435 ac_fn_c_compute_int ()
2437 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438 if test "$cross_compiling" = yes; then
2439 # Depending upon the size, compute the lo and hi bounds.
2440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2441 /* end confdefs.h. */
2446 static int test_array [1 - 2 * !(($2) >= 0)];
2453 if ac_fn_c_try_compile "$LINENO"; then :
2456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2457 /* end confdefs.h. */
2462 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2469 if ac_fn_c_try_compile "$LINENO"; then :
2470 ac_hi=$ac_mid; break
2472 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2473 if test $ac_lo -le $ac_mid; then
2477 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2483 /* end confdefs.h. */
2488 static int test_array [1 - 2 * !(($2) < 0)];
2495 if ac_fn_c_try_compile "$LINENO"; then :
2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h. */
2504 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2511 if ac_fn_c_try_compile "$LINENO"; then :
2512 ac_lo=$ac_mid; break
2514 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2515 if test $ac_mid -le $ac_hi; then
2519 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2529 # Binary search between lo and hi bounds.
2530 while test "x$ac_lo" != "x$ac_hi"; do
2531 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533 /* end confdefs.h. */
2538 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2545 if ac_fn_c_try_compile "$LINENO"; then :
2548 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2553 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2558 /* end confdefs.h. */
2560 static long int longval () { return $2; }
2561 static unsigned long int ulongval () { return $2; }
2568 FILE *f = fopen ("conftest.val", "w");
2573 long int i = longval ();
2576 fprintf (f, "%ld", i);
2580 unsigned long int i = ulongval ();
2583 fprintf (f, "%lu", i);
2585 /* Do not output a trailing newline, as this causes \r\n confusion
2586 on some platforms. */
2587 return ferror (f) || fclose (f) != 0;
2593 if ac_fn_c_try_run "$LINENO"; then :
2594 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2599 conftest.$ac_objext conftest.beam conftest.$ac_ext
2603 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2604 as_fn_set_status $ac_retval
2606 } # ac_fn_c_compute_int
2607 cat >config.log <<_ACEOF
2608 This file contains any messages produced by compilers while
2609 running configure, to aid debugging if configure makes a mistake.
2611 It was created by GNU MP $as_me 5.0.5, which was
2612 generated by GNU Autoconf 2.65. Invocation command line was
2624 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2625 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2626 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2627 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2628 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2630 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2631 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2633 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2634 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2635 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2636 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2637 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2638 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2639 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 test -z "$as_dir" && as_dir=.
2648 $as_echo "PATH: $as_dir"
2664 # Keep a trace of the command line.
2665 # Strip out --no-create and --no-recursion so they do not pile up.
2666 # Strip out --silent because we don't want to record it for future runs.
2667 # Also quote any args containing shell meta-characters.
2668 # Make two passes to allow for proper duplicate-argument suppression.
2672 ac_must_keep_next=false
2678 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2679 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2680 | -silent | --silent | --silen | --sile | --sil)
2683 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2686 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2688 as_fn_append ac_configure_args1 " '$ac_arg'"
2689 if test $ac_must_keep_next = true; then
2690 ac_must_keep_next=false # Got value, back to normal.
2693 *=* | --config-cache | -C | -disable-* | --disable-* \
2694 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2695 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2696 | -with-* | --with-* | -without-* | --without-* | --x)
2697 case "$ac_configure_args0 " in
2698 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2701 -* ) ac_must_keep_next=true ;;
2704 as_fn_append ac_configure_args " '$ac_arg'"
2709 { ac_configure_args0=; unset ac_configure_args0;}
2710 { ac_configure_args1=; unset ac_configure_args1;}
2712 # When interrupted or exit'd, cleanup temporary files, and complete
2713 # config.log. We remove comments because anyway the quotes in there
2714 # would cause problems or look ugly.
2715 # WARNING: Use '\'' to represent an apostrophe within the trap.
2716 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2717 trap 'exit_status=$?
2718 # Save into config.log some information that might help in debugging.
2723 ## ---------------- ##
2724 ## Cache variables. ##
2725 ## ---------------- ##
2728 # The following way of writing the cache mishandles newlines in values,
2730 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2731 eval ac_val=\$$ac_var
2735 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2736 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2739 _ | IFS | as_nl) ;; #(
2740 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2741 *) { eval $ac_var=; unset $ac_var;} ;;
2746 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2747 *${as_nl}ac_space=\ *)
2749 "s/'\''/'\''\\\\'\'''\''/g;
2750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2753 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2761 ## ----------------- ##
2762 ## Output variables. ##
2763 ## ----------------- ##
2766 for ac_var in $ac_subst_vars
2768 eval ac_val=\$$ac_var
2770 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2772 $as_echo "$ac_var='\''$ac_val'\''"
2776 if test -n "$ac_subst_files"; then
2778 ## ------------------- ##
2779 ## File substitutions. ##
2780 ## ------------------- ##
2783 for ac_var in $ac_subst_files
2785 eval ac_val=\$$ac_var
2787 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2789 $as_echo "$ac_var='\''$ac_val'\''"
2794 if test -s confdefs.h; then
2804 test "$ac_signal" != 0 &&
2805 $as_echo "$as_me: caught signal $ac_signal"
2806 $as_echo "$as_me: exit $exit_status"
2808 rm -f core *.core core.conftest.* &&
2809 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2812 for ac_signal in 1 2 13 15; do
2813 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2817 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2818 rm -f -r conftest* confdefs.h
2820 $as_echo "/* confdefs.h */" > confdefs.h
2822 # Predefined preprocessor variables.
2824 cat >>confdefs.h <<_ACEOF
2825 #define PACKAGE_NAME "$PACKAGE_NAME"
2828 cat >>confdefs.h <<_ACEOF
2829 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2832 cat >>confdefs.h <<_ACEOF
2833 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2836 cat >>confdefs.h <<_ACEOF
2837 #define PACKAGE_STRING "$PACKAGE_STRING"
2840 cat >>confdefs.h <<_ACEOF
2841 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2844 cat >>confdefs.h <<_ACEOF
2845 #define PACKAGE_URL "$PACKAGE_URL"
2849 # Let the site file select an alternate cache file if it wants to.
2850 # Prefer an explicitly selected file to automatically selected ones.
2853 if test -n "$CONFIG_SITE"; then
2854 ac_site_file1=$CONFIG_SITE
2855 elif test "x$prefix" != xNONE; then
2856 ac_site_file1=$prefix/share/config.site
2857 ac_site_file2=$prefix/etc/config.site
2859 ac_site_file1=$ac_default_prefix/share/config.site
2860 ac_site_file2=$ac_default_prefix/etc/config.site
2862 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2864 test "x$ac_site_file" = xNONE && continue
2865 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2867 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2868 sed 's/^/| /' "$ac_site_file" >&5
2873 if test -r "$cache_file"; then
2874 # Some versions of bash will fail to source /dev/null (special files
2875 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2876 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2878 $as_echo "$as_me: loading cache $cache_file" >&6;}
2880 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2881 *) . "./$cache_file";;
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2886 $as_echo "$as_me: creating cache $cache_file" >&6;}
2890 # Check that the precious variables saved in the cache have kept the same
2892 ac_cache_corrupted=false
2893 for ac_var in $ac_precious_vars; do
2894 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2895 eval ac_new_set=\$ac_env_${ac_var}_set
2896 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2897 eval ac_new_val=\$ac_env_${ac_var}_value
2898 case $ac_old_set,$ac_new_set in
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2901 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2902 ac_cache_corrupted=: ;;
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2905 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2906 ac_cache_corrupted=: ;;
2909 if test "x$ac_old_val" != "x$ac_new_val"; then
2910 # differences in whitespace do not lead to failure.
2911 ac_old_val_w=`echo x $ac_old_val`
2912 ac_new_val_w=`echo x $ac_new_val`
2913 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2915 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2916 ac_cache_corrupted=:
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2919 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2920 eval $ac_var=\$ac_old_val
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2923 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2925 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2928 # Pass precious variables to config.status.
2929 if test "$ac_new_set" = set; then
2931 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2932 *) ac_arg=$ac_var=$ac_new_val ;;
2934 case " $ac_configure_args " in
2935 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2936 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2940 if $ac_cache_corrupted; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2944 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2945 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2947 ## -------------------- ##
2948 ## Main body of script. ##
2949 ## -------------------- ##
2952 ac_cpp='$CPP $CPPFLAGS'
2953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2966 # If --target is not used then $target_alias is empty, but if say
2967 # "./configure athlon-pc-freebsd3.5" is used, then all three of
2968 # $build_alias, $host_alias and $target_alias are set to
2969 # "athlon-pc-freebsd3.5".
2971 if test -n "$target_alias" && test "$target_alias" != "$host_alias"; then
2972 as_fn_error "--target is not appropriate for GMP
2973 Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
2974 explicitly. Use --host if cross-compiling (see \"Installing GMP\" in the
2975 manual for more on this)." "$LINENO" 5
2978 gmp_configm4="config.m4"
2979 gmp_tmpconfigm4=cnfm4.tmp
2980 gmp_tmpconfigm4i=cnfm4i.tmp
2981 gmp_tmpconfigm4p=cnfm4p.tmp
2982 rm -f $gmp_tmpconfigm4 $gmp_tmpconfigm4i $gmp_tmpconfigm4p
2984 # CONFIG_TOP_SRCDIR is a path from the mpn builddir to the top srcdir.
2985 # The pattern here tests for an absolute path the same way as
2986 # _AC_OUTPUT_FILES in autoconf acgeneral.m4.
2988 [\\/]* | ?:[\\/]* ) tmp="$srcdir" ;;
2989 *) tmp="../$srcdir" ;;
2991 echo "define(<CONFIG_TOP_SRCDIR>,<\`$tmp'>)" >>$gmp_tmpconfigm4
2993 # All CPUs use asm-defs.m4
2994 echo "include(CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4')" >>$gmp_tmpconfigm4i
2998 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2999 for ac_t in install-sh install.sh shtool; do
3000 if test -f "$ac_dir/$ac_t"; then
3002 ac_install_sh="$ac_aux_dir/$ac_t -c"
3007 if test -z "$ac_aux_dir"; then
3008 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3011 # These three variables are undocumented and unsupported,
3012 # and are intended to be withdrawn in a future Autoconf release.
3013 # They can cause serious problems if a builder's source tree is in a directory
3014 # whose full name contains unusual characters.
3015 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3016 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3017 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3020 # Make sure we can run config.sub.
3021 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3022 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3025 $as_echo_n "checking build system type... " >&6; }
3026 if test "${ac_cv_build+set}" = set; then :
3027 $as_echo_n "(cached) " >&6
3029 ac_build_alias=$build_alias
3030 test "x$ac_build_alias" = x &&
3031 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3032 test "x$ac_build_alias" = x &&
3033 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3034 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3035 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3039 $as_echo "$ac_cv_build" >&6; }
3040 case $ac_cv_build in
3042 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3045 ac_save_IFS=$IFS; IFS='-'
3051 # Remember, the first character of IFS is used to create $*,
3052 # except with old shells:
3055 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3059 $as_echo_n "checking host system type... " >&6; }
3060 if test "${ac_cv_host+set}" = set; then :
3061 $as_echo_n "(cached) " >&6
3063 if test "x$host_alias" = x; then
3064 ac_cv_host=$ac_cv_build
3066 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3067 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3072 $as_echo "$ac_cv_host" >&6; }
3075 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3078 ac_save_IFS=$IFS; IFS='-'
3084 # Remember, the first character of IFS is used to create $*,
3085 # except with old shells:
3088 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3092 am__api_version='1.11'
3094 # Find a good install program. We prefer a C program (faster),
3095 # so one script is as good as another. But avoid the broken or
3096 # incompatible versions:
3097 # SysV /etc/install, /usr/sbin/install
3098 # SunOS /usr/etc/install
3099 # IRIX /sbin/install
3101 # AmigaOS /C/install, which installs bootblocks on floppy discs
3102 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3103 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3104 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3105 # OS/2's system install, which has a completely different semantic
3106 # ./install, which can be erroneously created by make from ./install.sh.
3107 # Reject install programs that cannot install multiple files.
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3109 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3110 if test -z "$INSTALL"; then
3111 if test "${ac_cv_path_install+set}" = set; then :
3112 $as_echo_n "(cached) " >&6
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 test -z "$as_dir" && as_dir=.
3119 # Account for people who put trailing slashes in PATH elements.
3120 case $as_dir/ in #((
3121 ./ | .// | /[cC]/* | \
3122 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3123 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3126 # OSF1 and SCO ODT 3.0 have their own names for install.
3127 # Don't use installbsd from OSF since it installs stuff as root
3129 for ac_prog in ginstall scoinst install; do
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3132 if test $ac_prog = install &&
3133 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3134 # AIX install. It has an incompatible calling convention.
3136 elif test $ac_prog = install &&
3137 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3138 # program-specific install script used by HP pwplus--don't use.
3141 rm -rf conftest.one conftest.two conftest.dir
3142 echo one > conftest.one
3143 echo two > conftest.two
3145 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3146 test -s conftest.one && test -s conftest.two &&
3147 test -s conftest.dir/conftest.one &&
3148 test -s conftest.dir/conftest.two
3150 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3163 rm -rf conftest.one conftest.two conftest.dir
3166 if test "${ac_cv_path_install+set}" = set; then
3167 INSTALL=$ac_cv_path_install
3169 # As a last resort, use the slow shell script. Don't cache a
3170 # value for INSTALL within a source directory, because that will
3171 # break other packages using the cache if that directory is
3172 # removed, or if the value is a relative name.
3173 INSTALL=$ac_install_sh
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3177 $as_echo "$INSTALL" >&6; }
3179 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3180 # It thinks the first close brace ends the variable substitution.
3181 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3183 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3185 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3188 $as_echo_n "checking whether build environment is sane... " >&6; }
3191 echo timestamp > conftest.file
3192 # Reject unsafe characters in $srcdir or the absolute working directory
3193 # name. Accept space and tab only in the latter.
3197 *[\\\"\#\$\&\'\`$am_lf]*)
3198 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3201 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3202 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3205 # Do `set' in a subshell so we don't clobber the current shell's
3206 # arguments. Must try -L first in case configure is actually a
3207 # symlink; some systems play weird games with the mod time of symlinks
3208 # (eg FreeBSD returns the mod time of the symlink's containing
3211 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3212 if test "$*" = "X"; then
3214 set X `ls -t "$srcdir/configure" conftest.file`
3217 if test "$*" != "X $srcdir/configure conftest.file" \
3218 && test "$*" != "X conftest.file $srcdir/configure"; then
3220 # If neither matched, then we have a broken ls. This can happen
3221 # if, for instance, CONFIG_SHELL is bash and it inherits a
3222 # broken ls alias from the environment. This has actually
3223 # happened. Such a system could not be considered "sane".
3224 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3225 alias in your environment" "$LINENO" 5
3228 test "$2" = conftest.file
3234 as_fn_error "newly created file is older than distributed files!
3235 Check your system clock" "$LINENO" 5
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3238 $as_echo "yes" >&6; }
3239 test "$program_prefix" != NONE &&
3240 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3241 # Use a double $ so make ignores it.
3242 test "$program_suffix" != NONE &&
3243 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3244 # Double any \ or $.
3245 # By default was `s,x,x', remove it if useless.
3246 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3247 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3249 # expand $ac_aux_dir to an absolute path
3250 am_aux_dir=`cd $ac_aux_dir && pwd`
3252 if test x"${MISSING+set}" != xset; then
3255 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3257 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3260 # Use eval to expand $SHELL
3261 if eval "$MISSING --run true"; then
3262 am_missing_run="$MISSING --run "
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3266 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3269 if test x"${install_sh}" != xset; then
3272 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3274 install_sh="\${SHELL} $am_aux_dir/install-sh"
3278 # Installed binaries are usually stripped using `strip' when the user
3279 # run `make install-strip'. However `strip' might not be the right
3280 # tool to use in cross-compilation environments, therefore Automake
3281 # will honor the `STRIP' environment variable to overrule this program.
3282 if test "$cross_compiling" != no; then
3283 if test -n "$ac_tool_prefix"; then
3284 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3285 set dummy ${ac_tool_prefix}strip; ac_word=$2
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287 $as_echo_n "checking for $ac_word... " >&6; }
3288 if test "${ac_cv_prog_STRIP+set}" = set; then :
3289 $as_echo_n "(cached) " >&6
3291 if test -n "$STRIP"; then
3292 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 STRIP=$ac_cv_prog_STRIP
3312 if test -n "$STRIP"; then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3314 $as_echo "$STRIP" >&6; }
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317 $as_echo "no" >&6; }
3322 if test -z "$ac_cv_prog_STRIP"; then
3324 # Extract the first word of "strip", so it can be a program name with args.
3325 set dummy strip; ac_word=$2
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3327 $as_echo_n "checking for $ac_word... " >&6; }
3328 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3329 $as_echo_n "(cached) " >&6
3331 if test -n "$ac_ct_STRIP"; then
3332 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 test -z "$as_dir" && as_dir=.
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3341 ac_cv_prog_ac_ct_STRIP="strip"
3342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3352 if test -n "$ac_ct_STRIP"; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3354 $as_echo "$ac_ct_STRIP" >&6; }
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 $as_echo "no" >&6; }
3360 if test "x$ac_ct_STRIP" = x; then
3363 case $cross_compiling:$ac_tool_warned in
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3367 ac_tool_warned=yes ;;
3372 STRIP="$ac_cv_prog_STRIP"
3376 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3379 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3380 if test -z "$MKDIR_P"; then
3381 if test "${ac_cv_path_mkdir+set}" = set; then :
3382 $as_echo_n "(cached) " >&6
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3388 test -z "$as_dir" && as_dir=.
3389 for ac_prog in mkdir gmkdir; do
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3392 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3393 'mkdir (GNU coreutils) '* | \
3394 'mkdir (coreutils) '* | \
3395 'mkdir (fileutils) '4.1*)
3396 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3406 test -d ./--version && rmdir ./--version
3407 if test "${ac_cv_path_mkdir+set}" = set; then
3408 MKDIR_P="$ac_cv_path_mkdir -p"
3410 # As a last resort, use the slow shell script. Don't cache a
3411 # value for MKDIR_P within a source directory, because that will
3412 # break other packages using the cache if that directory is
3413 # removed, or if the value is a relative name.
3414 MKDIR_P="$ac_install_sh -d"
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3418 $as_echo "$MKDIR_P" >&6; }
3422 [\\/$]* | ?:[\\/]*) ;;
3423 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3426 for ac_prog in gawk mawk nawk awk
3428 # Extract the first word of "$ac_prog", so it can be a program name with args.
3429 set dummy $ac_prog; ac_word=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if test "${ac_cv_prog_AWK+set}" = set; then :
3433 $as_echo_n "(cached) " >&6
3435 if test -n "$AWK"; then
3436 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 test -z "$as_dir" && as_dir=.
3443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3445 ac_cv_prog_AWK="$ac_prog"
3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 if test -n "$AWK"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3458 $as_echo "$AWK" >&6; }
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3465 test -n "$AWK" && break
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3469 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3471 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3472 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3473 $as_echo_n "(cached) " >&6
3475 cat >conftest.make <<\_ACEOF
3478 @echo '@@@%%%=$(MAKE)=@@@%%%'
3480 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3481 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3483 eval ac_cv_prog_make_${ac_make}_set=yes;;
3485 eval ac_cv_prog_make_${ac_make}_set=no;;
3489 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3491 $as_echo "yes" >&6; }
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3496 SET_MAKE="MAKE=${MAKE-make}"
3499 rm -rf .tst 2>/dev/null
3500 mkdir .tst 2>/dev/null
3501 if test -d .tst; then
3506 rmdir .tst 2>/dev/null
3508 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3509 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3510 # is not polluted with repeated "-I."
3511 am__isrc=' -I$(srcdir)'
3512 # test to see if srcdir already configured
3513 if test -f $srcdir/config.status; then
3514 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3518 # test whether we have cygpath
3519 if test -z "$CYGPATH_W"; then
3520 if (cygpath --version) >/dev/null 2>/dev/null; then
3521 CYGPATH_W='cygpath -w'
3528 # Define the identity of the package.
3533 cat >>confdefs.h <<_ACEOF
3534 #define PACKAGE "$PACKAGE"
3538 cat >>confdefs.h <<_ACEOF
3539 #define VERSION "$VERSION"
3542 # Some tools Automake needs.
3544 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3547 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3550 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3553 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3556 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3558 # We need awk for the "check" target. The system "awk" is bad on
3560 # Always define AMTAR for backward compatibility.
3562 AMTAR=${AMTAR-"${am_missing_run}tar"}
3564 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3570 ac_config_headers="$ac_config_headers config.h:config.in"
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3574 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3575 # Check whether --enable-maintainer-mode was given.
3576 if test "${enable_maintainer_mode+set}" = set; then :
3577 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3579 USE_MAINTAINER_MODE=no
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3583 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3584 if test $USE_MAINTAINER_MODE = yes; then
3585 MAINTAINER_MODE_TRUE=
3586 MAINTAINER_MODE_FALSE='#'
3588 MAINTAINER_MODE_TRUE='#'
3589 MAINTAINER_MODE_FALSE=
3592 MAINT=$MAINTAINER_MODE_TRUE
3597 # Check whether --enable-assert was given.
3598 if test "${enable_assert+set}" = set; then :
3599 enableval=$enable_assert; case $enableval in
3601 *) as_fn_error "bad value $enableval for --enable-assert, need yes or no" "$LINENO" 5 ;;
3608 if test "$enable_assert" = "yes"; then
3610 $as_echo "#define WANT_ASSERT 1" >>confdefs.h
3617 echo "define(<WANT_ASSERT>,$want_assert_01)" >> $gmp_tmpconfigm4
3621 # Check whether --enable-alloca was given.
3622 if test "${enable_alloca+set}" = set; then :
3623 enableval=$enable_alloca; case $enableval in
3624 alloca|malloc-reentrant|malloc-notreentrant) ;;
3625 yes|no|reentrant|notreentrant) ;;
3628 as_fn_error "bad value $enableval for --enable-alloca, need one of:
3629 yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" "$LINENO" 5 ;;
3632 enable_alloca=reentrant
3637 # IMPROVE ME: The default for C++ is disabled. The tests currently
3638 # performed below for a working C++ compiler are not particularly strong,
3639 # and in general can't be expected to get the right setup on their own. The
3640 # most significant problem is getting the ABI the same. Defaulting CXXFLAGS
3641 # to CFLAGS takes only a small step towards this. It's also probably worth
3642 # worrying whether the C and C++ runtimes from say gcc and a vendor C++ can
3643 # work together. Some rather broken C++ installations were encountered
3644 # during testing, and though such things clearly aren't GMP's problem, if
3645 # --enable-cxx=detect were to be the default then some careful checks of
3646 # which, if any, C++ compiler on the system is up to scratch would be
3649 # Check whether --enable-cxx was given.
3650 if test "${enable_cxx+set}" = set; then :
3651 enableval=$enable_cxx; case $enableval in
3653 *) as_fn_error "bad value $enableval for --enable-cxx, need yes/no/detect" "$LINENO" 5 ;;
3661 # Check whether --enable-fft was given.
3662 if test "${enable_fft+set}" = set; then :
3663 enableval=$enable_fft; case $enableval in
3665 *) as_fn_error "bad value $enableval for --enable-fft, need yes or no" "$LINENO" 5 ;;
3672 if test "$enable_fft" = "yes"; then
3674 $as_echo "#define WANT_FFT 1" >>confdefs.h
3679 # Check whether --enable-old-fft-full was given.
3680 if test "${enable_old_fft_full+set}" = set; then :
3681 enableval=$enable_old_fft_full; case $enableval in
3683 *) as_fn_error "bad value $enableval for --enable-old-fft-full, need yes or no" "$LINENO" 5 ;;
3686 enable_old_fft_full=no
3690 if test "$enable_old_fft_full" = "yes"; then
3692 $as_echo "#define WANT_OLD_FFT_FULL 1" >>confdefs.h
3697 # Check whether --enable-mpbsd was given.
3698 if test "${enable_mpbsd+set}" = set; then :
3699 enableval=$enable_mpbsd; case $enableval in
3701 *) as_fn_error "bad value $enableval for --enable-mpbsd, need yes or no" "$LINENO" 5 ;;
3707 if test "$enable_mpbsd" = "yes"; then
3709 WANT_MPBSD_FALSE='#'
3717 # Check whether --enable-nails was given.
3718 if test "${enable_nails+set}" = set; then :
3719 enableval=$enable_nails; case $enableval in
3720 yes|no|[02468]|[0-9][02468]) ;;
3722 as_fn_error "bad value $enableval for --enable-nails, only even nail sizes supported" "$LINENO" 5 ;;
3724 as_fn_error "bad value $enableval for --enable-nails, need yes/no/number" "$LINENO" 5 ;;
3731 case $enable_nails in
3732 yes) GMP_NAIL_BITS=2 ;;
3733 no) GMP_NAIL_BITS=0 ;;
3734 *) GMP_NAIL_BITS=$enable_nails ;;
3739 # Check whether --enable-profiling was given.
3740 if test "${enable_profiling+set}" = set; then :
3741 enableval=$enable_profiling; case $enableval in
3742 no|prof|gprof|instrument) ;;
3743 *) as_fn_error "bad value $enableval for --enable-profiling, need no/prof/gprof/instrument" "$LINENO" 5 ;;
3750 case $enable_profiling in
3753 $as_echo "#define WANT_PROFILING_PROF 1" >>confdefs.h
3758 $as_echo "#define WANT_PROFILING_GPROF 1" >>confdefs.h
3763 $as_echo "#define WANT_PROFILING_INSTRUMENT 1" >>confdefs.h
3769 echo "define(<WANT_PROFILING>,<\`$enable_profiling'>)" >> $gmp_tmpconfigm4
3772 # -fomit-frame-pointer is incompatible with -pg on some chips
3773 if test "$enable_profiling" = gprof; then
3774 fomit_frame_pointer=
3776 fomit_frame_pointer="-fomit-frame-pointer"
3781 # Check whether --with-readline was given.
3782 if test "${with_readline+set}" = set; then :
3783 withval=$with_readline; case $withval in
3785 *) as_fn_error "bad value $withval for --with-readline, need yes/no/detect" "$LINENO" 5 ;;
3788 with_readline=detect
3793 # Check whether --enable-fat was given.
3794 if test "${enable_fat+set}" = set; then :
3795 enableval=$enable_fat; case $enableval in
3797 *) as_fn_error "bad value $enableval for --enable-fat, need yes or no" "$LINENO" 5 ;;
3805 # Check whether --enable-minithres was given.
3806 if test "${enable_minithres+set}" = set; then :
3807 enableval=$enable_minithres; case $enableval in
3809 *) as_fn_error "bad value $enableval for --enable-minithres, need yes or no" "$LINENO" 5 ;;
3818 tmp_host=`echo $host_cpu | sed 's/\./_/'`
3819 cat >>confdefs.h <<_ACEOF
3820 #define HAVE_HOST_CPU_$tmp_host 1
3824 echo "define_not_for_expansion(\`HAVE_HOST_CPU_$tmp_host')" >> $gmp_tmpconfigm4p
3831 # Table of compilers, options, and mpn paths. This code has various related
3834 # - better default CC/CFLAGS selections than autoconf otherwise gives
3835 # - default CC/CFLAGS selections for extra CPU types specific to GMP
3836 # - a few tests for known bad compilers
3837 # - choice of ABIs on suitable systems
3838 # - selection of corresponding mpn search path
3840 # After GMP specific searches and tests, the standard autoconf AC_PROG_CC is
3841 # called. User selections of CC etc are respected.
3843 # Care is taken not to use macros like AC_TRY_COMPILE during the GMP
3844 # pre-testing, since they of course depend on AC_PROG_CC, and also some of
3845 # them cache their results, which is not wanted.
3847 # The ABI selection mechanism is unique to GMP. All that reaches autoconf
3848 # is a different selection of CC/CFLAGS according to the best ABI the system
3849 # supports, and/or what the user selects. Naturally the mpn assembler code
3850 # selected is very dependent on the ABI.
3852 # The closest the standard tools come to a notion of ABI is something like
3853 # "sparc64" which encodes a CPU and an ABI together. This doesn't seem to
3854 # scale well for GMP, where exact CPU types like "ultrasparc2" are wanted,
3855 # separate from the ABI used on them.
3858 # The variables set here are
3860 # cclist the compiler choices
3861 # xx_cflags flags for compiler xx
3862 # xx_cflags_maybe flags for compiler xx, if they work
3863 # xx_cppflags cpp flags for compiler xx
3864 # xx_cflags_optlist list of sets of optional flags
3865 # xx_cflags_yyy set yyy of optional flags for compiler xx
3866 # xx_ldflags -Wc,-foo flags for libtool linking with compiler xx
3867 # ar_flags extra flags for $AR
3868 # nm_flags extra flags for $NM
3869 # limb limb size, can be "longlong"
3870 # path mpn search path
3871 # extra_functions extra mpn functions
3872 # fat_path fat binary mpn search path [if fat binary desired]
3873 # fat_functions fat functions
3874 # fat_thresholds fat thresholds
3876 # Suppose xx_cflags_optlist="arch", then flags from $xx_cflags_arch are
3877 # tried, and the first flag that works will be used. An optlist like "arch
3878 # cpu optimize" can be used to get multiple independent sets of flags tried.
3879 # The first that works from each will be used. If no flag in a set works
3880 # then nothing from that set is added.
3882 # For multiple ABIs, the scheme extends as follows.
3884 # abilist set of ABI choices
3885 # cclist_aa compiler choices in ABI aa
3886 # xx_aa_cflags flags for xx in ABI aa
3887 # xx_aa_cflags_maybe flags for xx in ABI aa, if they work
3888 # xx_aa_cppflags cpp flags for xx in ABI aa
3889 # xx_aa_cflags_optlist list of sets of optional flags in ABI aa
3890 # xx_aa_cflags_yyy set yyy of optional flags for compiler xx in ABI aa
3891 # xx_aa_ldflags -Wc,-foo flags for libtool linking
3892 # ar_aa_flags extra flags for $AR in ABI aa
3893 # nm_aa_flags extra flags for $NM in ABI aa
3894 # limb_aa limb size in ABI aa, can be "longlong"
3895 # path_aa mpn search path in ABI aa
3896 # extra_functions_aa extra mpn functions in ABI aa
3898 # As a convenience, the unadorned xx_cflags (etc) are used for the last ABI
3899 # in ablist, if an xx_aa_cflags for that ABI isn't given. For example if
3900 # abilist="64 32" then $cc_64_cflags will be used for the 64-bit ABI, but
3901 # for the 32-bit either $cc_32_cflags or $cc_cflags is used, whichever is
3902 # defined. This makes it easy to add some 64-bit compilers and flags to an
3903 # unadorned 32-bit set.
3905 # limb=longlong (or limb_aa=longlong) applies to all compilers within that
3906 # ABI. It won't work to have some needing long long and some not, since a
3907 # single instantiated gmp.h will be used by both.
3909 # SPEED_CYCLECOUNTER, cyclecounter_size and CALLING_CONVENTIONS_OBJS are
3910 # also set here, with an ABI suffix.
3914 # A table-driven approach like this to mapping cpu type to good compiler
3915 # options is a bit of a maintenance burden, but there's not much uniformity
3916 # between options specifications on different compilers. Some sort of
3917 # separately updatable tool might be cute.
3919 # The use of lots of variables like this, direct and indirect, tends to
3920 # obscure when and how various things are done, but unfortunately it's
3921 # pretty much the only way. If shell subroutines were portable then actual
3922 # code like "if this .. do that" could be written, but attempting the same
3923 # with full copies of GMP_PROG_CC_WORKS etc expanded at every point would
3924 # hugely bloat the output.
3929 # abilist needs to be non-empty, "standard" is just a generic name here
3932 # FIXME: We'd like to prefer an ANSI compiler, perhaps by preferring
3933 # c89 over cc here. But note that on HP-UX c89 provides a castrated
3934 # environment, and would want to be excluded somehow. Maybe
3935 # AC_PROG_CC_STDC already does enough to stick cc into ANSI mode and
3936 # we don't need to worry.
3940 gcc_cflags="-O2 -pedantic"
3941 gcc_64_cflags="-O2 -pedantic"
3945 SPEED_CYCLECOUNTER_OBJ=
3948 HAVE_HOST_CPU_FAMILY_power=0
3950 HAVE_HOST_CPU_FAMILY_powerpc=0
3961 $as_echo "#define HAVE_HOST_CPU_FAMILY_alpha 1" >>confdefs.h
3964 alphaev5* | alphapca5*)
3965 path="alpha/ev5 alpha" ;;
3966 alphaev67 | alphaev68 | alphaev7*)
3967 path="alpha/ev67 alpha/ev6 alpha" ;;
3969 path="alpha/ev6 alpha" ;;
3973 extra_functions="cntlz"
3974 gcc_cflags_optlist="asm cpu oldas" # need asm ahead of cpu, see below
3975 gcc_cflags_oldas="-Wa,-oldas" # see GMP_GCC_WA_OLDAS.
3977 # gcc 2.7.2.3 doesn't know any -mcpu= for alpha, apparently.
3978 # gcc 2.95 knows -mcpu= ev4, ev5, ev56, pca56, ev6.
3979 # gcc 3.0 adds nothing.
3980 # gcc 3.1 adds ev45, ev67 (but ev45 is the same as ev4).
3981 # gcc 3.2 adds nothing.
3983 # gcc version "2.9-gnupro-99r1" under "-O2 -mcpu=ev6" strikes internal
3984 # compiler errors too easily and is rejected by GMP_PROG_CC_WORKS. Each
3985 # -mcpu=ev6 below has a fallback to -mcpu=ev56 for this reason.
3988 alpha) gcc_cflags_cpu="-mcpu=ev4" ;;
3989 alphaev5) gcc_cflags_cpu="-mcpu=ev5" ;;
3990 alphaev56) gcc_cflags_cpu="-mcpu=ev56" ;;
3991 alphapca56 | alphapca57)
3992 gcc_cflags_cpu="-mcpu=pca56" ;;
3993 alphaev6) gcc_cflags_cpu="-mcpu=ev6 -mcpu=ev56" ;;
3994 alphaev67 | alphaev68 | alphaev7*)
3995 gcc_cflags_cpu="-mcpu=ev67 -mcpu=ev6 -mcpu=ev56" ;;
3998 # gcc version "2.9-gnupro-99r1" on alphaev68-dec-osf5.1 has been seen
3999 # accepting -mcpu=ev6, but not putting the assembler in the right mode
4000 # for what it produces. We need to do this for it, and need to do it
4001 # before testing the -mcpu options.
4003 # On old versions of gcc, which don't know -mcpu=, we believe an
4004 # explicit -Wa,-mev5 etc will be necessary to put the assembler in
4005 # the right mode for our .asm files and longlong.h asm blocks.
4007 # On newer versions of gcc, when -mcpu= is known, we must give a -Wa
4008 # which is at least as high as the code gcc will generate. gcc
4009 # establishes what it needs with a ".arch" directive, our command line
4010 # option seems to override that.
4012 # gas prior to 2.14 doesn't accept -mev67, but -mev6 seems enough for
4013 # ctlz and cttz (in 2.10.0 at least).
4015 # OSF `as' accepts ev68 but stupidly treats it as ev4. -arch only seems
4016 # to affect insns like ldbu which are expanded as macros when necessary.
4017 # Insns like ctlz which were never available as macros are always
4018 # accepted and always generate their plain code.
4021 alpha) gcc_cflags_asm="-Wa,-arch,ev4 -Wa,-mev4" ;;
4022 alphaev5) gcc_cflags_asm="-Wa,-arch,ev5 -Wa,-mev5" ;;
4023 alphaev56) gcc_cflags_asm="-Wa,-arch,ev56 -Wa,-mev56" ;;
4024 alphapca56 | alphapca57)
4025 gcc_cflags_asm="-Wa,-arch,pca56 -Wa,-mpca56" ;;
4026 alphaev6) gcc_cflags_asm="-Wa,-arch,ev6 -Wa,-mev6" ;;
4027 alphaev67 | alphaev68 | alphaev7*)
4028 gcc_cflags_asm="-Wa,-arch,ev67 -Wa,-mev67 -Wa,-arch,ev6 -Wa,-mev6" ;;
4031 # It might be better to ask "cc" whether it's Cray C or DEC C,
4032 # instead of relying on the OS part of $host. But it's hard to
4033 # imagine either of those compilers anywhere except their native
4037 echo "include_mpn(\`alpha/alpha-defs.m4')" >> $gmp_tmpconfigm4i
4041 cc_cflags="-O" # no -g, it silently disables all optimizations
4043 echo "include_mpn(\`alpha/unicos.m4')" >> $gmp_tmpconfigm4i
4045 # Don't perform any assembly syntax tests on this beast.
4046 gmp_asm_syntax_testing=no
4050 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
4053 cc_cflags_optlist="opt cpu"
4055 # not sure if -fast works on old versions, so make it optional
4056 cc_cflags_opt="-fast -O2"
4058 # DEC C V5.9-005 knows ev4, ev5, ev56, pca56, ev6.
4059 # Compaq C V6.3-029 adds ev67.
4062 alpha) cc_cflags_cpu="-arch~ev4~-tune~ev4" ;;
4063 alphaev5) cc_cflags_cpu="-arch~ev5~-tune~ev5" ;;
4064 alphaev56) cc_cflags_cpu="-arch~ev56~-tune~ev56" ;;
4065 alphapca56 | alphapca57)
4066 cc_cflags_cpu="-arch~pca56~-tune~pca56" ;;
4067 alphaev6) cc_cflags_cpu="-arch~ev6~-tune~ev6" ;;
4068 alphaev67 | alphaev68 | alphaev7*)
4069 cc_cflags_cpu="-arch~ev67~-tune~ev67 -arch~ev6~-tune~ev6" ;;
4074 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
4081 # tune/alpha.asm assumes int==4bytes but unicos uses int==8bytes
4084 SPEED_CYCLECOUNTER_OBJ=alpha.lo
4085 cyclecounter_size=1 ;;
4090 # Cray vector machines.
4091 # This must come after alpha* so that we can recognize present and future
4092 # vector processors with a wildcard.
4094 gmp_asm_syntax_testing=no
4096 # We used to have -hscalar0 here as a workaround for miscompilation of
4097 # mpz/import.c, but let's hope Cray fixes their bugs instead, since
4098 # -hscalar0 causes disastrously poor code to be generated.
4099 cc_cflags="-O3 -hnofastmd -htask0 -Wa,-B"
4106 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4107 gcc_testlist="gcc-arm-umodsi"
4109 echo "include_mpn(\`arm/arm-defs.m4')" >> $gmp_tmpconfigm4i
4120 f30[01]-fujitsu-sysv*)
4122 # FIXME: flags for vcc?
4129 # HP cc (the one sold separately) is K&R by default, but AM_C_PROTOTYPES
4130 # will add "-Ae", or "-Aa -D_HPUX_SOURCE", to put it into ansi mode, if
4133 # gcc for hppa 2.0 can be built either for 2.0n (32-bit) or 2.0w
4134 # (64-bit), but not both, so there's no option to choose the desired
4135 # mode, we must instead detect which of the two it is. This is done by
4136 # checking sizeof(long), either 4 or 8 bytes respectively. Do this in
4137 # ABI=1.0 too, in case someone tries to build that with a 2.0w gcc.
4139 gcc_cflags_optlist="arch"
4140 gcc_testlist="sizeof-long-4"
4141 SPEED_CYCLECOUNTER_OBJ=hppa.lo
4144 # FIXME: For hppa2.0*, path should be "pa32/hppa2_0 pa32/hppa1_1 pa32".
4145 # (Can't remember why this isn't done already, have to check what .asm
4146 # files are available in each and how they run on a typical 2.0 cpu.)
4149 hppa1.0*) path="pa32" ;;
4150 hppa7000*) path="pa32/hppa1_1 pa32" ;;
4152 path="pa32/hppa2_0 pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
4153 *) # default to 7100
4154 path="pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
4157 # gcc 2.7.2.3 knows -mpa-risc-1-0 and -mpa-risc-1-1
4158 # gcc 2.95 adds -mpa-risc-2-0, plus synonyms -march=1.0, 1.1 and 2.0
4160 # We don't use -mpa-risc-2-0 in ABI=1.0 because 64-bit registers may not
4161 # be saved by the kernel on an old system. Actually gcc (as of 3.2)
4162 # only adds a few float instructions with -mpa-risc-2-0, so it would
4163 # probably be safe, but let's not take the chance. In any case, a
4164 # configuration like --host=hppa2.0 ABI=1.0 is far from optimal.
4167 hppa1.0*) gcc_cflags_arch="-mpa-risc-1-0" ;;
4168 *) # default to 7100
4169 gcc_cflags_arch="-mpa-risc-1-1" ;;
4173 hppa1.0*) cc_cflags="+O2" ;;
4174 *) # default to 7100
4175 cc_cflags="+DA1.1 +O2" ;;
4179 hppa2.0*-*-* | hppa64-*-*)
4184 any_20n_testlist="sizeof-long-4"
4185 SPEED_CYCLECOUNTER_OBJ_20n=hppa2.lo
4186 cyclecounter_size_20n=2
4188 # -mpa-risc-2-0 is only an optional flag, in case an old gcc is
4189 # used. Assembler support for 2.0 is essential though, for our asm
4191 gcc_20n_cflags="-O2"
4192 gcc_20n_cflags_optlist="arch"
4193 gcc_20n_cflags_arch="-mpa-risc-2-0 -mpa-risc-1-1"
4194 gcc_20n_testlist="sizeof-long-4 hppa-level-2.0"
4196 cc_20n_cflags="+DA2.0 +e +O2 -Wl,+vnocompatwarnings"
4197 cc_20n_testlist="hpc-hppa-2-0"
4199 # ABI=2.0w is available for hppa2.0w and hppa2.0, but not for
4200 # hppa2.0n, on the assumption that that the latter indicates a
4201 # desire for ABI=2.0n.
4205 # HPUX 10 and earlier cannot run 2.0w. Not sure about other
4206 # systems (GNU/Linux for instance), but lets assume they're ok.
4208 *-*-hpux[1-9] | *-*-hpux[1-9].* | *-*-hpux10 | *-*-hpux10.*) ;;
4209 *-*-linux*) abilist="1.0" ;; # due to linux permanent kernel bug
4210 *) abilist="2.0w $abilist" ;;
4214 gcc_20w_cflags="-O2 -mpa-risc-2-0"
4215 cc_20w_cflags="+DD64 +O2"
4216 cc_20w_testlist="hpc-hppa-2-0"
4218 any_20w_testlist="sizeof-long-8"
4219 SPEED_CYCLECOUNTER_OBJ_20w=hppa2w.lo
4220 cyclecounter_size_20w=2
4233 ia64*-*-* | itanium-*-* | itanium2-*-*)
4236 echo "include_mpn(\`ia64/ia64-defs.m4')" >> $gmp_tmpconfigm4i
4238 SPEED_CYCLECOUNTER_OBJ=ia64.lo
4241 itanium) path="ia64/itanium ia64" ;;
4242 itanium2) path="ia64/itanium2 ia64" ;;
4246 gcc_64_cflags_optlist="tune"
4247 gcc_32_cflags_optlist=$gcc_64_cflags_optlist
4249 # gcc pre-release 3.4 adds -mtune itanium and itanium2
4251 itanium) gcc_cflags_tune="-mtune=itanium" ;;
4252 itanium2) gcc_cflags_tune="-mtune=itanium2" ;;
4258 icc_cflags="-no-gcc"
4259 icc_cflags_optlist="opt"
4260 # Don't use -O3, it is for "large data sets" and also miscompiles GMP.
4261 # But icc miscompiles GMP at any optimization level, at higher levels
4262 # it miscompiles more files...
4263 icc_cflags_opt="-O2 -O1"
4267 # HP cc sometimes gets internal errors if the optimization level is
4268 # too high. GMP_PROG_CC_WORKS detects this, the "_opt" fallbacks
4269 # let us use whatever seems to work.
4276 cc_32_cflags_optlist="opt"
4277 cc_32_cflags_opt="+O3 +O2 +O1"
4278 gcc_32_cflags="-milp32 -O2"
4280 SPEED_CYCLECOUNTER_OBJ_32=ia64.lo
4281 cyclecounter_size_32=2
4283 # Must have +DD64 in CPPFLAGS to get the right __LP64__ for headers,
4284 # but also need it in CFLAGS for linking programs, since automake
4285 # only uses CFLAGS when linking, not CPPFLAGS.
4286 # FIXME: Maybe should use cc_64_ldflags for this, but that would
4287 # need GMP_LDFLAGS used consistently by all the programs.
4289 cc_64_cflags="+DD64"
4290 cc_64_cppflags="+DD64"
4291 cc_64_cflags_optlist="opt"
4292 cc_64_cflags_opt="+O3 +O2 +O1"
4293 gcc_64_cflags="$gcc_64_cflags -mlp64"
4301 m68k-*-* | m68[0-9][0-9][0-9]-*-*)
4302 $as_echo "#define HAVE_HOST_CPU_FAMILY_m68k 1" >>confdefs.h
4305 echo "include_mpn(\`m68k/m68k-defs.m4')" >> $gmp_tmpconfigm4i
4307 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4308 gcc_cflags_optlist="arch"
4310 # gcc 2.7.2 knows -m68000, -m68020, -m68030, -m68040.
4311 # gcc 2.95 adds -mcpu32, -m68060.
4312 # FIXME: Maybe "-m68020 -mnobitfield" would suit cpu32 on 2.7.2.
4315 m68020) gcc_cflags_arch="-m68020" ;;
4316 m68030) gcc_cflags_arch="-m68030" ;;
4317 m68040) gcc_cflags_arch="-m68040" ;;
4318 m68060) gcc_cflags_arch="-m68060 -m68000" ;;
4319 m68360) gcc_cflags_arch="-mcpu32 -m68000" ;;
4320 *) gcc_cflags_arch="-m68000" ;;
4323 # FIXME: m68k/mc68020 looks like it's ok for cpu32, but this wants to be
4324 # tested. Will need to introduce an m68k/cpu32 if m68k/mc68020 ever uses
4325 # the bitfield instructions.
4327 m680[234]0 | m68360) path="m68k/mc68020 m68k" ;;
4338 gcc_cflags="$gcc_cflags -m88110"
4339 path="m88k/mc88110 m88k"
4343 # National Semiconductor 32k
4349 # IRIX 5 and earlier can only run 32-bit o32.
4351 # IRIX 6 and up always has a 64-bit mips CPU can run n32 or 64. n32 is
4352 # preferred over 64, but only because that's been the default in past
4353 # versions of GMP. The two are equally efficient.
4355 # Linux kernel 2.2.13 arch/mips/kernel/irixelf.c has a comment about not
4356 # supporting n32 or 64.
4358 # For reference, libtool (eg. 1.5.6) recognises the n32 ABI and knows the
4359 # right options to use when linking (both cc and gcc), so no need for
4360 # anything special from us.
4364 gcc_cflags_optlist="abi"
4365 gcc_cflags_abi="-mabi=32"
4366 gcc_testlist="gcc-mips-o32"
4368 cc_cflags="-O2 -o32" # no -g, it disables all optimizations
4369 # this suits both mips32 and mips64
4371 echo "include_mpn(\`mips32/mips-defs.m4')" >> $gmp_tmpconfigm4i
4375 mips64*-*-* | mips*-*-irix[6789]*)
4376 abilist="n32 64 o32"
4379 gcc_n32_cflags="-O2 -mabi=n32"
4380 cc_n32_cflags="-O2 -n32" # no -g, it disables all optimizations
4385 gcc_64_cflags="$gcc_64_cflags -mabi=64"
4386 gcc_64_ldflags="-Wc,-mabi=64"
4387 cc_64_cflags="-O2 -64" # no -g, it disables all optimizations
4388 cc_64_ldflags="-Wc,-64"
4395 # Darwin (powerpc-apple-darwin1.3) has it's hacked gcc installed as cc.
4396 # Our usual "gcc in disguise" detection means gcc_cflags etc here gets
4399 # The darwin pre-compiling preprocessor is disabled with -no-cpp-precomp
4400 # since it doesn't like "__attribute__ ((mode (SI)))" etc in gmp-impl.h,
4401 # and so always ends up running the plain preprocessor anyway. This could
4402 # be done in CPPFLAGS rather than CFLAGS, but there's not many places
4403 # preprocessing is done separately, and this is only a speedup, the normal
4404 # preprocessor gets run if there's any problems.
4406 # We used to use -Wa,-mppc with gcc, but can't remember exactly why.
4407 # Presumably it was for old versions of gcc where -mpowerpc doesn't put
4408 # the assembler in the right mode. In any case -Wa,-mppc is not good, for
4409 # instance -mcpu=604 makes recent gcc use -m604 to get access to the
4410 # "fsel" instruction, but a -Wa,-mppc overrides that, making code that
4411 # comes out with fsel fail.
4413 # (Note also that the darwin assembler doesn't accept "-mppc", so any
4414 # -Wa,-mppc was used only if it worked. The right flag on darwin would be
4415 # "-arch ppc" or some such, but that's already the default.)
4417 powerpc*-*-* | power[3-9]-*-*)
4418 $as_echo "#define HAVE_HOST_CPU_FAMILY_powerpc 1" >>confdefs.h
4420 HAVE_HOST_CPU_FAMILY_powerpc=1
4424 gcc_32_cflags="$gcc_cflags -mpowerpc"
4425 gcc_cflags_optlist="precomp subtype asm cpu"
4426 gcc_cflags_precomp="-no-cpp-precomp"
4427 gcc_cflags_subtype="-force_cpusubtype_ALL" # for vmx on darwin
4432 # grab this object, though it's not a true cycle counter routine
4433 SPEED_CYCLECOUNTER_OBJ=powerpc.lo
4437 powerpc740 | powerpc750)
4438 path="powerpc32/750 powerpc32" ;;
4439 powerpc7400 | powerpc7410)
4440 path="powerpc32/vmx powerpc32/750 powerpc32" ;;
4442 path="powerpc32/vmx powerpc32" ;;
4448 powerpc401) gcc_cflags_cpu="-mcpu=401" ;;
4449 powerpc403) gcc_cflags_cpu="-mcpu=403"
4450 xlc_cflags_arch="-qarch=403 -qarch=ppc" ;;
4451 powerpc405) gcc_cflags_cpu="-mcpu=405" ;;
4452 powerpc505) gcc_cflags_cpu="-mcpu=505" ;;
4453 powerpc601) gcc_cflags_cpu="-mcpu=601"
4454 xlc_cflags_arch="-qarch=601 -qarch=ppc" ;;
4455 powerpc602) gcc_cflags_cpu="-mcpu=602"
4456 xlc_cflags_arch="-qarch=602 -qarch=ppc" ;;
4457 powerpc603) gcc_cflags_cpu="-mcpu=603"
4458 xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
4459 powerpc603e) gcc_cflags_cpu="-mcpu=603e -mcpu=603"
4460 xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
4461 powerpc604) gcc_cflags_cpu="-mcpu=604"
4462 xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
4463 powerpc604e) gcc_cflags_cpu="-mcpu=604e -mcpu=604"
4464 xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
4465 powerpc620) gcc_cflags_cpu="-mcpu=620" ;;
4466 powerpc630) gcc_cflags_cpu="-mcpu=630"
4467 xlc_cflags_arch="-qarch=pwr3"
4468 cpu_path="p3 p3-p7" ;;
4469 powerpc740) gcc_cflags_cpu="-mcpu=740" ;;
4470 powerpc7400 | powerpc7410)
4471 gcc_cflags_asm="-Wa,-maltivec"
4472 gcc_cflags_cpu="-mcpu=7400 -mcpu=750" ;;
4474 gcc_cflags_asm="-Wa,-maltivec"
4475 gcc_cflags_cpu="-mcpu=7450" ;;
4476 powerpc750) gcc_cflags_cpu="-mcpu=750" ;;
4477 powerpc801) gcc_cflags_cpu="-mcpu=801" ;;
4478 powerpc821) gcc_cflags_cpu="-mcpu=821" ;;
4479 powerpc823) gcc_cflags_cpu="-mcpu=823" ;;
4480 powerpc860) gcc_cflags_cpu="-mcpu=860" ;;
4481 powerpc970) gcc_cflags_cpu="-mtune=970"
4482 xlc_cflags_arch="-qarch=970 -qarch=pwr3"
4483 vmx_path="powerpc64/vmx"
4484 cpu_path="p4 p3-p7" ;;
4485 power4) gcc_cflags_cpu="-mtune=power4"
4486 xlc_cflags_arch="-qarch=pwr4"
4487 cpu_path="p4 p3-p7" ;;
4488 power5) gcc_cflags_cpu="-mtune=power5 -mtune=power4"
4489 xlc_cflags_arch="-qarch=pwr5"
4490 cpu_path="p5 p4 p3-p7" ;;
4491 power6) gcc_cflags_cpu="-mtune=power6"
4492 xlc_cflags_arch="-qarch=pwr6"
4493 cpu_path="p6 p3-p7" ;;
4494 power7) gcc_cflags_cpu="-mtune=power7 -mtune=power5"
4495 xlc_cflags_arch="-qarch=pwr7 -qarch=pwr5"
4496 cpu_path="p7 p5 p4 p3-p7" ;;
4502 gcc_32_cflags_maybe="-maix32"
4503 xlc_cflags="-O2 -qmaxmem=20000"
4504 xlc_cflags_optlist="arch"
4505 xlc_32_cflags_maybe="-q32"
4511 powerpc64-*-* | powerpc64le-*-* | powerpc620-*-* | powerpc630-*-* | powerpc970-*-* | power[3-9]-*-*)
4514 # On AIX a true 64-bit ABI is available.
4515 # Need -Wc to pass object type flags through to the linker.
4516 abilist="aix64 $abilist"
4517 cclist_aix64="gcc xlc"
4518 gcc_aix64_cflags="-O2 -maix64 -mpowerpc64"
4519 gcc_aix64_cflags_optlist="cpu"
4520 gcc_aix64_ldflags="-Wc,-maix64"
4521 xlc_aix64_cflags="-O2 -q64 -qmaxmem=20000"
4522 xlc_aix64_cflags_optlist="arch"
4523 xlc_aix64_ldflags="-Wc,-q64"
4524 # Must indicate object type to ar and nm
4525 ar_aix64_flags="-X64"
4526 nm_aix64_flags="-X64"
4528 for i in $cpu_path; do path_aix64="${path_aix64}powerpc64/mode64/$i "; done
4529 path_aix64="${path_aix64}powerpc64/mode64 $vmx_path powerpc64"
4530 # grab this object, though it's not a true cycle counter routine
4531 SPEED_CYCLECOUNTER_OBJ_aix64=powerpc64.lo
4532 cyclecounter_size_aix64=0
4535 # On Darwin we can use 64-bit instructions with a longlong limb,
4536 # but the chip still in 32-bit mode.
4537 # In theory this can be used on any OS which knows how to save
4538 # 64-bit registers in a context switch.
4540 # Note that we must use -mpowerpc64 with gcc, since the
4541 # longlong.h macros expect limb operands in a single 64-bit
4542 # register, not two 32-bit registers as would be given for a
4543 # long long without -mpowerpc64. In theory we could detect and
4544 # accommodate both styles, but the proper 64-bit registers will
4545 # be fastest and are what we really want to use.
4547 # One would think -mpowerpc64 would set the assembler in the right
4548 # mode to handle 64-bit instructions. But for that, also
4549 # -force_cpusubtype_ALL is needed.
4551 # Do not use -fast for Darwin, it actually adds options
4552 # incompatible with a shared library.
4554 abilist="mode64 mode32 $abilist"
4555 gcc_32_cflags_maybe="-m32"
4556 gcc_cflags_opt="-O3 -O2 -O1" # will this become used?
4558 gcc_mode32_cflags_maybe="-m32"
4559 gcc_mode32_cflags="-mpowerpc64"
4560 gcc_mode32_cflags_optlist="subtype cpu opt"
4561 gcc_mode32_cflags_subtype="-force_cpusubtype_ALL"
4562 gcc_mode32_cflags_opt="-O3 -O2 -O1"
4563 path_mode32="powerpc64/mode32 $vmx_path powerpc64"
4564 limb_mode32=longlong
4566 gcc_mode64_cflags="-m64"
4567 gcc_mode64_cflags_optlist="cpu opt"
4568 gcc_mode64_cflags_opt="-O3 -O2 -O1"
4570 for i in $cpu_path; do path_mode64="${path_mode64}powerpc64/mode64/$i "; done
4571 path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64"
4572 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
4573 cyclecounter_size_mode64=0
4574 any_mode64_testlist="sizeof-long-8"
4576 *-*-linux* | *-*-*bsd*)
4577 # On GNU/Linux, assume the processor is in 64-bit mode. Some
4578 # environments have a gcc that is always in 64-bit mode, while
4579 # others require -m64, hence the use of cflags_maybe. The
4580 # sizeof-long-8 test checks the mode is right (for the no option
4583 # -mpowerpc64 is not used, since it should be the default in
4584 # 64-bit mode. (We need its effect for the various longlong.h
4585 # asm macros to be right of course.)
4587 # gcc64 was an early port of gcc to 64-bit mode, but should be
4588 # obsolete before too long. We prefer plain gcc when it knows
4591 abilist="mode64 mode32 $abilist"
4592 gcc_32_cflags_maybe="-m32"
4594 gcc_mode32_cflags_maybe="-m32"
4595 gcc_mode32_cflags="-mpowerpc64"
4596 gcc_mode32_cflags_optlist="cpu opt"
4597 gcc_mode32_cflags_opt="-O3 -O2 -O1"
4598 path_mode32="powerpc64/mode32 $vmx_path powerpc64"
4599 limb_mode32=longlong
4600 cclist_mode64="gcc gcc64"
4601 gcc_mode64_cflags_maybe="-m64"
4602 gcc_mode64_cflags_optlist="cpu opt"
4603 gcc_mode64_cflags_opt="-O3 -O2 -O1"
4605 for i in $cpu_path; do path_mode64="${path_mode64}powerpc64/mode64/$i "; done
4606 path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64"
4607 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
4608 cyclecounter_size_mode64=0
4609 any_mode64_testlist="sizeof-long-8"
4618 power-*-* | power[12]-*-* | power2sc-*-*)
4619 $as_echo "#define HAVE_HOST_CPU_FAMILY_power 1" >>confdefs.h
4621 HAVE_HOST_CPU_FAMILY_power=1
4623 extra_functions="udiv_w_sdiv"
4626 # gcc 2.7.2 knows rios1, rios2, rsc
4628 # -mcpu=rios2 can tickle an AIX assembler bug (see GMP_PROG_CC_WORKS) so
4629 # there needs to be a fallback to just -mpower.
4631 gcc_cflags_optlist="cpu"
4633 power-*-*) gcc_cflags_cpu="-mcpu=power -mpower" ;;
4634 power1-*-*) gcc_cflags_cpu="-mcpu=rios1 -mpower" ;;
4635 power2-*-*) gcc_cflags_cpu="-mcpu=rios2 -mpower" ;;
4636 power2sc-*-*) gcc_cflags_cpu="-mcpu=rsc -mpower" ;;
4641 xlc_cflags="-O2 -qarch=pwr -qmaxmem=20000"
4652 # IBM System/390 and z/Architecture
4653 s390-*-* | z900esa-*-* | z990esa-*-* | z9esa-*-* | z10esa-*-* | z196esa-*-* | s390x-*-* | z900-*-* | z990-*-* | z9-*-* | z10-*-* | z196-*-*)
4655 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4656 gcc_cflags_optlist="arch"
4658 extra_functions="udiv_w_sdiv"
4659 gcc_32_cflags_maybe="-m31"
4667 path="s390_32/esame/$cpu s390_32/esame s390_32"
4668 gcc_cflags_arch="-march=$gccarch"
4669 cat >>confdefs.h <<_ACEOF
4670 #define HAVE_HOST_CPU_s390_$cpu 1
4673 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4680 path="s390_32/esame/$cpu s390_32/esame s390_32"
4681 gcc_cflags_arch="-march=$gccarch"
4682 cat >>confdefs.h <<_ACEOF
4683 #define HAVE_HOST_CPU_s390_$cpu 1
4686 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4693 path="s390_32/esame/$cpu s390_32/esame s390_32"
4694 gcc_cflags_arch="-march=$gccarch"
4695 cat >>confdefs.h <<_ACEOF
4696 #define HAVE_HOST_CPU_s390_$cpu 1
4699 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4706 path="s390_32/esame/$cpu s390_32/esame s390_32"
4707 gcc_cflags_arch="-march=$gccarch"
4708 cat >>confdefs.h <<_ACEOF
4709 #define HAVE_HOST_CPU_s390_$cpu 1
4712 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4719 path="s390_32/esame/$cpu s390_32/esame s390_32"
4720 gcc_cflags_arch="-march=$gccarch"
4721 cat >>confdefs.h <<_ACEOF
4722 #define HAVE_HOST_CPU_s390_$cpu 1
4725 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
4732 s390x-*-* | z900-*-* | z990-*-* | z9-*-* | z10-*-* | z196-*-*)
4735 gcc_64_cflags_optlist="arch"
4736 gcc_64_cflags="$gcc_cflags -m64"
4737 path_64="s390_64/$host_cpu s390_64"
4744 sh-*-*) path="sh" ;;
4745 sh[2-4]-*-*) path="sh/sh2 sh" ;;
4749 # sizeof(long)==4 or 8 is tested, to ensure we get the right ABI. We've
4750 # had various bug reports where users have set CFLAGS for their desired
4751 # mode, but not set our ABI. For some reason it's sparc where this
4752 # keeps coming up, presumably users there are accustomed to driving the
4753 # compiler mode that way. The effect of our testlist setting is to
4754 # reject ABI=64 in favour of ABI=32 if the user has forced the flags to
4759 any_testlist="sizeof-long-4"
4761 echo "include_mpn(\`sparc32/sparc-defs.m4')" >> $gmp_tmpconfigm4i
4765 sparcv8 | microsparc | turbosparc)
4766 path="sparc32/v8 sparc32" ;;
4768 path="sparc32/v8/supersparc sparc32/v8 sparc32" ;;
4769 sparc64 | sparcv9* | ultrasparc*)
4770 path="sparc32/v9 sparc32/v8 sparc32" ;;
4775 # gcc 2.7.2 doesn't know about v9 and doesn't pass -xarch=v8plus to the
4776 # assembler. Add it explicitly since the solaris assembler won't accept
4777 # our sparc32/v9 asm code without it. gas accepts -xarch=v8plus too, so
4778 # it can be in the cflags unconditionally (though gas doesn't need it).
4780 # gcc -m32 is needed to force 32-bit mode on a dual-ABI system, but past
4781 # gcc doesn't know that flag, hence cflags_maybe. Note that -m32 cannot
4782 # be done through the optlist since the plain cflags would be run first
4783 # and we don't want to require the default mode (whatever it is) works.
4785 # Note it's gcc_32_cflags_maybe and not gcc_cflags_maybe because the
4786 # latter would be used in the 64-bit ABI on systems like "*bsd" where
4787 # abilist="64" only.
4790 sparc64 | sparcv9* | ultrasparc*)
4791 gcc_cflags="$gcc_cflags -Wa,-xarch=v8plus" ;;
4793 gcc_cflags="$gcc_cflags" ;;
4795 gcc_32_cflags_maybe="-m32"
4796 gcc_cflags_optlist="cpu"
4798 # gcc 2.7.2 knows -mcypress, -msupersparc, -mv8, -msparclite.
4799 # gcc 2.95 knows -mcpu= v7, hypersparc, sparclite86x, f930, f934,
4800 # sparclet, tsc701, v9, ultrasparc. A warning is given that the
4801 # plain -m forms will disappear.
4802 # gcc 3.0 adds nothing.
4803 # gcc 3.1 adds nothing.
4804 # gcc 3.2 adds nothing.
4805 # gcc 3.3 adds ultrasparc3.
4808 supersparc) gcc_cflags_cpu="-mcpu=supersparc -msupersparc" ;;
4809 sparcv8 | microsparc | turbosparc)
4810 gcc_cflags_cpu="-mcpu=v8 -mv8" ;;
4811 sparc64 | sparcv9*) gcc_cflags_cpu="-mcpu=v9 -mv8" ;;
4812 ultrasparc3) gcc_cflags_cpu="-mcpu=ultrasparc3 -mcpu=ultrasparc -mv8" ;;
4813 ultrasparc*) gcc_cflags_cpu="-mcpu=ultrasparc -mv8" ;;
4814 *) gcc_cflags_cpu="-mcpu=v7 -mcypress" ;;
4817 # SunPRO cc and acc, and SunOS bundled cc
4819 *-*-solaris* | *-*-sunos*)
4820 # Note no -g, it disables all optimizations.
4822 cc_cflags_optlist="opt arch cpu"
4824 # SunOS cc doesn't know -xO4, fallback to -O2.
4825 cc_cflags_opt="-xO4 -O2"
4827 # SunOS cc doesn't know -xarch, apparently always generating v7
4828 # code, so make this optional
4830 sparcv8 | microsparc | supersparc | turbosparc)
4831 cc_cflags_arch="-xarch=v8" ;;
4832 sparc64 | sparcv9* | ultrasparc*) cc_cflags_arch="-xarch=v8plus" ;;
4833 *) cc_cflags_arch="-xarch=v7" ;;
4836 # SunOS cc doesn't know -xchip and doesn't seem to have an equivalent.
4837 # SunPRO cc 5 recognises -xchip=generic, old, super, super2, micro,
4838 # micro2, hyper, hyper2, powerup, ultra, ultra2, ultra2i.
4839 # SunPRO cc 6 adds -xchip=ultra2e, ultra3cu.
4841 # FIXME: Which of ultra, ultra2 or ultra2i is the best fallback for
4845 supersparc) cc_cflags_cpu="-xchip=super" ;;
4846 microsparc) cc_cflags_cpu="-xchip=micro" ;;
4847 turbosparc) cc_cflags_cpu="-xchip=micro2" ;;
4848 ultrasparc) cc_cflags_cpu="-xchip=ultra" ;;
4849 ultrasparc2) cc_cflags_cpu="-xchip=ultra2" ;;
4850 ultrasparc2i) cc_cflags_cpu="-xchip=ultra2i" ;;
4851 ultrasparc3) cc_cflags_cpu="-xchip=ultra3 -xchip=ultra" ;;
4852 *) cc_cflags_cpu="-xchip=generic" ;;
4857 sparc64 | sparcv9* | ultrasparc*)
4859 # Solaris 6 and earlier cannot run ABI=64 since it doesn't save
4860 # registers properly, so ABI=32 is left as the only choice.
4862 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
4864 # BSD sparc64 ports are 64-bit-only systems, so ABI=64 is the only
4865 # choice. In fact they need no special compiler flags, gcc -m64
4866 # is the default, but it doesn't hurt to add it. v9 CPUs always
4867 # use the sparc64 port, since the plain 32-bit sparc ports don't
4870 *-*-*bsd*) abilist="64" ;;
4872 # For all other systems, we try both 64 and 32.
4874 # GNU/Linux sparc64 has only recently gained a 64-bit user mode.
4875 # In the past sparc64 meant a v9 cpu, but there were no 64-bit
4876 # operations in user mode. We assume that if "gcc -m64" works
4877 # then the system is suitable. Hopefully even if someone attempts
4878 # to put a new gcc and/or glibc on an old system it won't run.
4880 *) abilist="64 32" ;;
4884 ultrasparc | ultrasparc2 | ultrasparc2i)
4885 path_64="sparc64/ultrasparc12 sparc64" ;;
4887 path_64="sparc64/ultrasparc34 sparc64/ultrasparc1234 sparc64" ;;
4889 path_64="sparc64" ;;
4895 any_64_testlist="sizeof-long-8"
4897 # gcc -mptr64 is probably implied by -m64, but we're not sure if
4898 # this was always so. On Solaris in the past we always used both
4901 # gcc -Wa,-xarch=v9 is thought to be necessary in some cases on
4902 # solaris, but it would seem likely that if gcc is going to generate
4903 # 64-bit code it will have to add that option itself where needed.
4904 # An extra copy of this option should be harmless though, but leave
4905 # it until we're sure. (Might want -xarch=v9a or -xarch=v9b for the
4906 # higher cpu types instead.)
4908 gcc_64_cflags="$gcc_64_cflags -m64 -mptr64"
4909 gcc_64_ldflags="-Wc,-m64"
4910 gcc_64_cflags_optlist="cpu"
4916 # We used to have -fast and some fixup options here, but it
4917 # recurrently caused problems with miscompilation. Of course,
4918 # -fast is documented as miscompiling things for the sake of speed.
4920 cclist_64="$cclist_64 cc"
4921 cc_64_cflags="-xO3 -xarch=v9"
4922 cc_64_cflags_optlist="cpu"
4926 # using the v9 %tick register
4927 SPEED_CYCLECOUNTER_OBJ_32=sparcv9.lo
4928 SPEED_CYCLECOUNTER_OBJ_64=sparcv9.lo
4929 cyclecounter_size_32=2
4930 cyclecounter_size_64=2
4938 # Currently gcc (version 3.0) on vax always uses a frame pointer
4939 # (config/vax/vax.h FRAME_POINTER_REQUIRED=1), so -fomit-frame-pointer
4942 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4944 extra_functions="udiv_w_sdiv"
4948 # AMD and Intel x86 configurations, including AMD64
4950 # Rumour has it gcc -O2 used to give worse register allocation than just
4951 # -O, but lets assume that's no longer true.
4953 # -m32 forces 32-bit mode on a bi-arch 32/64 amd64 build of gcc. -m64 is
4954 # the default in such a build (we think), so -m32 is essential for ABI=32.
4955 # This is, of course, done for any $host_cpu, not just x86_64, so we can
4956 # get such a gcc into the right mode to cross-compile to say i486-*-*.
4958 # -m32 is not available in gcc 2.95 and earlier, hence cflags_maybe to use
4959 # it when it works. We check sizeof(long)==4 to ensure we get the right
4960 # mode, in case -m32 has failed not because it's an old gcc, but because
4961 # it's a dual 32/64-bit gcc without a 32-bit libc, or whatever.
4963 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
4966 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4967 gcc_32_cflags_maybe="-m32"
4968 icc_cflags="-no-gcc"
4969 icc_cflags_optlist="opt"
4970 icc_cflags_opt="-O3 -O2 -O1"
4971 any_32_testlist="sizeof-long-4"
4972 CALLING_CONVENTIONS_OBJS='x86call.lo x86check$U.lo'
4974 # Availability of rdtsc is checked at run-time.
4975 SPEED_CYCLECOUNTER_OBJ=pentium.lo
4977 # gcc 2.7.2 only knows i386 and i486, using -m386 or -m486. These
4978 # represent -mcpu= since -m486 doesn't generate 486 specific insns.
4979 # gcc 2.95 adds k6, pentium and pentiumpro, and takes -march= and -mcpu=.
4980 # gcc 3.0 adds athlon.
4981 # gcc 3.1 adds k6-2, k6-3, pentium-mmx, pentium2, pentium3, pentium4,
4982 # athlon-tbird, athlon-4, athlon-xp, athlon-mp.
4983 # gcc 3.2 adds winchip2.
4984 # gcc 3.3 adds winchip-c6.
4985 # gcc 3.3.1 from mandrake adds k8 and knows -mtune.
4986 # gcc 3.4 adds c3, c3-2, k8, and deprecates -mcpu in favour of -mtune.
4988 # In gcc 2.95.[0123], -march=pentiumpro provoked a stack slot bug in an
4989 # old version of mpz/powm.c. Seems to be fine with the current code, so
4990 # no need for any restrictions on that option.
4992 # -march=pentiumpro can fail if the assembler doesn't know "cmov"
4993 # (eg. solaris 2.8 native "as"), so always have -march=pentium after
4994 # that as a fallback.
4996 # -march=pentium4 and -march=k8 enable SSE2 instructions, which may or
4997 # may not be supported by the assembler and/or the OS, and is bad in gcc
4998 # prior to 3.3. The tests will reject these if no good, so fallbacks
4999 # like "-march=pentium4 -mno-sse2" are given to try also without SSE2.
5000 # Note the relevant -march types are listed in the optflags handling
5001 # below, be sure to update there if adding new types emitting SSE2.
5003 # -mtune is used at the start of each cpu option list to give something
5004 # gcc 3.4 will use, thereby avoiding warnings from -mcpu. -mcpu forms
5005 # are retained for use by prior gcc. For example pentium has
5006 # "-mtune=pentium -mcpu=pentium ...", the -mtune is for 3.4 and the
5007 # -mcpu for prior. If there's a brand new choice in 3.4 for a chip,
5008 # like k8 for x86_64, then it can be the -mtune at the start, no need to
5009 # duplicate anything.
5011 gcc_cflags_optlist="cpu arch"
5014 gcc_cflags_cpu="-mtune=i386 -mcpu=i386 -m386"
5015 gcc_cflags_arch="-march=i386"
5019 gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486"
5020 gcc_cflags_arch="-march=i486"
5024 gcc_cflags_cpu="-mtune=pentium -mcpu=pentium -m486"
5025 gcc_cflags_arch="-march=pentium"
5026 path="x86/pentium x86"
5029 gcc_cflags_cpu="-mtune=pentium-mmx -mcpu=pentium-mmx -mcpu=pentium -m486"
5030 gcc_cflags_arch="-march=pentium-mmx -march=pentium"
5031 path="x86/pentium/mmx x86/pentium x86"
5034 gcc_cflags_cpu="-mtune=pentiumpro -mcpu=pentiumpro -mcpu=i486 -m486"
5035 gcc_cflags_arch="-march=pentiumpro -march=pentium"
5039 gcc_cflags_cpu="-mtune=pentium2 -mcpu=pentium2 -mcpu=pentiumpro -mcpu=i486 -m486"
5040 gcc_cflags_arch="-march=pentium2 -march=pentiumpro -march=pentium"
5041 path="x86/p6/mmx x86/p6 x86"
5044 gcc_cflags_cpu="-mtune=pentium3 -mcpu=pentium3 -mcpu=pentiumpro -mcpu=i486 -m486"
5045 gcc_cflags_arch="-march=pentium3 -march=pentiumpro -march=pentium"
5046 path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86"
5049 gcc_cflags_cpu="-mtune=pentium3 -mcpu=pentium3 -mcpu=pentiumpro -mcpu=i486 -m486"
5050 gcc_cflags_arch="-march=pentium3 -march=pentiumpro -march=pentium"
5051 path="x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86"
5054 gcc_cflags_cpu="-mtune=k6 -mcpu=k6 -mcpu=i486 -m486"
5055 gcc_cflags_arch="-march=k6"
5056 path="x86/k6/mmx x86/k6 x86"
5059 gcc_cflags_cpu="-mtune=k6-2 -mcpu=k6-2 -mcpu=k6 -mcpu=i486 -m486"
5060 gcc_cflags_arch="-march=k6-2 -march=k6"
5061 path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86"
5064 gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486"
5065 gcc_cflags_arch="-march=k6-3 -march=k6"
5066 path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86"
5069 gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486"
5070 gcc_cflags_arch="-march=k6-3 -march=k6"
5071 path="x86/geode x86/k6/k62mmx x86/k6/mmx x86/k6 x86"
5074 # Athlon instruction costs are close to P6 (3 cycle load latency,
5075 # 4-6 cycle mul, 40 cycle div, pairable adc, etc) so if gcc doesn't
5076 # know athlon (eg. 2.95.2 doesn't) then fall back on pentiumpro.
5077 gcc_cflags_cpu="-mtune=athlon -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
5078 gcc_cflags_arch="-march=athlon -march=pentiumpro -march=pentium"
5079 path="x86/k7/mmx x86/k7 x86"
5082 # pentiumpro is the primary fallback when gcc doesn't know pentium4.
5083 # This gets us cmov to eliminate branches. Maybe "athlon" would be
5084 # a possibility on gcc 3.0.
5086 gcc_cflags_cpu="-mtune=pentium4 -mcpu=pentium4 -mcpu=pentiumpro -mcpu=i486 -m486"
5087 gcc_cflags_arch="-march=pentium4 -march=pentium4~-mno-sse2 -march=pentiumpro -march=pentium"
5088 gcc_64_cflags_cpu="-mtune=nocona"
5089 path="x86/pentium4/sse2 x86/pentium4/mmx x86/pentium4 x86"
5090 path_64="x86_64/pentium4 x86_64"
5093 # Not sure of the best fallbacks here for -mcpu.
5094 # c3-2 has sse and mmx, so pentium3 is good for -march.
5095 gcc_cflags_cpu="-mtune=c3-2 -mcpu=c3-2 -mcpu=i486 -m486"
5096 gcc_cflags_arch="-march=c3-2 -march=pentium3 -march=pentiumpro -march=pentium"
5097 path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86"
5100 # Not sure of the best fallbacks here.
5101 gcc_cflags_cpu="-mtune=c3 -mcpu=c3 -mcpu=i486 -m486"
5102 gcc_cflags_arch="-march=c3 -march=pentium-mmx -march=pentium"
5103 path="x86/pentium/mmx x86/pentium x86"
5105 athlon64 | k8 | x86_64)
5106 gcc_cflags_cpu="-mtune=k8 -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
5107 gcc_cflags_arch="-march=k8 -march=k8~-mno-sse2 -march=athlon -march=pentiumpro -march=pentium"
5108 path="x86/k8 x86/k7/mmx x86/k7 x86"
5109 path_64="x86_64/k8 x86_64"
5112 gcc_cflags_cpu="-mtune=amdfam10 -mtune=k8"
5113 gcc_cflags_arch="-march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5114 path="x86/k10 x86/k8 x86/k7/mmx x86/k7 x86"
5115 path_64="x86_64/k10 x86_64/k8 x86_64"
5118 gcc_cflags_cpu="-mtune=btver1 -mtune=amdfam10 -mtune=k8"
5119 gcc_cflags_arch="-march=btver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5120 path="x86/bobcat x86/k7/mmx x86/k7 x86"
5121 path_64="x86_64/bobcat x86_64/k10 x86_64/k8 x86_64"
5124 gcc_cflags_cpu="-mtune=bdver1 -mtune=amdfam10 -mtune=k8"
5125 gcc_cflags_arch="-march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
5126 path="x86/bd1 x86/k7/mmx x86/k7 x86"
5127 path_64="x86_64/bd1 x86_64"
5130 gcc_cflags_cpu="-mtune=core2 -mtune=k8"
5131 gcc_cflags_arch="-march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
5132 path="x86/core2 x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86"
5133 path_64="x86_64/core2 x86_64"
5135 corei | coreinhm | coreiwsm)
5136 gcc_cflags_cpu="-mtune=corei7 -mtune=core2 -mtune=k8"
5137 gcc_cflags_arch="-march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
5138 path="x86/coreinhm x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86"
5139 path_64="x86_64/coreinhm x86_64/core2 x86_64"
5142 gcc_cflags_cpu="-mtune=corei7 -mtune=core2 -mtune=k8"
5143 gcc_cflags_arch="-march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
5144 path="x86/coreisbr x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86"
5145 path_64="x86_64/coreisbr x86_64/coreinhm x86_64/core2 x86_64"
5148 gcc_cflags_cpu="-mtune=atom -mtune=pentium3"
5149 gcc_cflags_arch="-march=atom -march=pentium3"
5150 path="x86/atom/sse2 x86/atom/mmx x86/atom x86"
5151 path_64="x86_64/atom x86_64"
5154 gcc_cflags_cpu="-mtune=nano"
5155 gcc_cflags_arch="-march=nano"
5157 path_64="x86_64/nano x86_64"
5160 gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486"
5161 gcc_cflags_arch="-march=i486"
5168 athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
5170 gcc_64_cflags="$gcc_64_cflags -m64"
5171 gcc_64_cflags_optlist="cpu arch"
5172 CALLING_CONVENTIONS_OBJS_64='amd64call.lo amd64check$U.lo'
5173 SPEED_CYCLECOUNTER_OBJ_64=x86_64.lo
5174 cyclecounter_size_64=2
5180 cclist_64="$cclist_64 cc"
5181 cc_64_cflags="-xO3 -m64"
5183 *-*-mingw* | *-*-cygwin)
5185 path_64="" # Windows amd64 calling conventions are *different*
5186 # Silence many pedantic warnings for w64. FIXME.
5187 gcc_64_cflags="$gcc_64_cflags -std=gnu99"
5195 # FIXME: z8kx won't get through config.sub. Could make 16 versus 32 bit
5196 # limb an ABI option perhaps.
5199 extra_functions="udiv_w_sdiv"
5203 extra_functions="udiv_w_sdiv"
5207 # Special CPU "none" selects generic C. -DNO_ASM is used to disable gcc
5208 # asm blocks in longlong.h (since they're driven by cpp pre-defined
5209 # symbols like __alpha rather than the configured $host_cpu).
5212 abilist="long longlong"
5214 gcc_long_cflags=$gcc_cflags
5215 gcc_long_cppflags="-DNO_ASM"
5216 cc_long_cflags=$cc_cflags
5217 cclist_longlong=$cclist
5218 gcc_longlong_cflags=$gcc_cflags
5219 gcc_longlong_cppflags="-DNO_ASM"
5220 cc_longlong_cflags=$cc_cflags
5221 limb_longlong=longlong
5226 # mingw can be built by the cygwin gcc if -mno-cygwin is added. For
5227 # convenience add this automatically if it works. Actual mingw gcc accepts
5228 # -mno-cygwin too, but of course is the default. mingw only runs on the
5229 # x86s, but allow any CPU here so as to catch "none" too.
5233 gcc_cflags_optlist="$gcc_cflags_optlist nocygwin"
5234 gcc_cflags_nocygwin="-mno-cygwin"
5239 CFLAGS_or_unset=${CFLAGS-'(unset)'}
5240 CPPFLAGS_or_unset=${CPPFLAGS-'(unset)'}
5246 CFLAGS=$CFLAGS_or_unset
5247 CPPFLAGS=$CPPFLAGS_or_unset
5255 test_CFLAGS=${CFLAGS+set}
5256 test_CPPFLAGS=${CPPFLAGS+set}
5258 for abi in $abilist; do
5262 # If the user specifies an ABI then it must be in $abilist, after that
5263 # $abilist is restricted to just that choice.
5265 if test -n "$ABI"; then
5267 for abi in $abilist; do
5268 if test $abi = "$ABI"; then found=yes; break; fi
5270 if test $found = no; then
5271 as_fn_error "ABI=$ABI is not among the following valid choices: $abilist" "$LINENO" 5
5278 for abi in $abilist; do
5280 echo "checking ABI=$abi"
5282 # Suppose abilist="64 32", then for abi=64, will have abi1="_64" and
5283 # abi2="_64". For abi=32, will have abi1="_32" and abi2="". This is how
5284 # $gcc_cflags becomes a fallback for $gcc_32_cflags (the last in the
5285 # abilist), but there's no fallback for $gcc_64_cflags.
5287 abi1=`echo _$abi | sed 's/[.]//g'`
5288 if test $abi = $abi_last; then abi2=; else abi2="$abi1"; fi
5290 # Compiler choices under this ABI
5291 eval cclist_chosen=\"\$cclist$abi1\"
5292 test -n "$cclist_chosen" || eval cclist_chosen=\"\$cclist$abi2\"
5294 # If there's a user specified $CC then don't use a list for
5295 # $cclist_chosen, just a single value for $ccbase.
5297 if test -n "$CC"; then
5299 # The first word of $CC, stripped of any directory. For instance
5300 # CC="/usr/local/bin/gcc -pipe" will give "gcc".
5302 for ccbase in $CC; do break; done
5303 ccbase=`echo $ccbase | sed 's:.*/::'`
5305 # If this $ccbase is in $cclist_chosen then it's a compiler we know and
5306 # we can do flags defaulting with it. If not, then $cclist_chosen is
5307 # set to "unrecognised" so no default flags are used.
5309 # "unrecognised" is used to avoid bad effects with eval if $ccbase has
5310 # non-symbol characters. For instance ccbase=my+cc would end up with
5311 # something like cflags="$my+cc_cflags" which would give
5312 # cflags="+cc_cflags" rather than the intended empty string for an
5316 for i in $cclist_chosen; do
5317 if test "$ccbase" = $i; then
5322 cclist_chosen=$found
5325 for ccbase in $cclist_chosen; do
5327 # When cross compiling, look for a compiler with the $host_alias as a
5328 # prefix, the same way that AC_CHECK_TOOL does. But don't do this to a
5329 # user-selected $CC.
5331 # $cross_compiling will be yes/no/maybe at this point. Do the host
5332 # prefixing for "maybe" as well as "yes".
5334 if test "$cross_compiling" != no && test -z "$CC"; then
5335 cross_compiling_prefix="${host_alias}-"
5338 for ccprefix in $cross_compiling_prefix ""; do
5341 test -n "$cc" || cc="$ccprefix$ccbase"
5343 # If the compiler is gcc but installed under another name, then change
5344 # $ccbase so as to use the flags we know for gcc. This helps for
5345 # instance when specifying CC=gcc272 on Debian GNU/Linux, or the
5346 # native cc which is really gcc on NeXT or MacOS-X.
5348 # FIXME: There's a slight misfeature here. If cc is actually gcc but
5349 # gcc is not a known compiler under this $abi then we'll end up
5350 # testing it with no flags and it'll work, but chances are it won't be
5351 # in the right mode for the ABI we desire. Let's quietly hope this
5354 if test $ccbase != gcc; then
5355 cat >conftest.c <<EOF
5356 #if ! defined (__GNUC__) || defined (__INTEL_COMPILER)
5360 gmp_compile="$cc -c conftest.c >&5"
5361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5362 (eval $gmp_compile) 2>&5
5364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5365 test $ac_status = 0; }; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $cc is gcc" >&5
5368 $as_echo_n "checking whether $cc is gcc... " >&6; }
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5370 $as_echo "yes" >&6; }
5379 # Similarly if the compiler is IBM xlc but invoked as cc or whatever
5380 # then change $ccbase and make the default xlc flags available.
5381 if test $ccbase != xlc; then
5382 gmp_command="$cc 2>&1 | grep xlc >/dev/null"
5383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_command\""; } >&5
5384 (eval $gmp_command) 2>&5
5386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5387 test $ac_status = 0; }; then
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $cc is xlc" >&5
5389 $as_echo_n "checking whether $cc is xlc... " >&6; }
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5391 $as_echo "yes" >&6; }
5399 # acc was Sun's first unbundled compiler back in the SunOS days, or
5400 # something like that, but today its man page says it's not meant to
5401 # be used directly (instead via /usr/ucb/cc). The options are pretty
5402 # much the same as the main SunPRO cc, so share those configs.
5405 *sparc*-*-solaris* | *sparc*-*-sunos*)
5406 if test "$ccbase" = acc; then ccbase=cc; fi ;;
5409 for tmp_cflags_maybe in yes no; do
5410 eval cflags=\"\$${ccbase}${abi1}_cflags\"
5411 test -n "$cflags" || eval cflags=\"\$${ccbase}${abi2}_cflags\"
5413 if test "$tmp_cflags_maybe" = yes; then
5414 # don't try cflags_maybe when the user set CFLAGS
5415 if test "$test_CFLAGS" = set; then continue; fi
5416 eval cflags_maybe=\"\$${ccbase}${abi1}_cflags_maybe\"
5417 test -n "$cflags_maybe" || eval cflags_maybe=\"\$${ccbase}${abi2}_cflags_maybe\"
5418 # don't try cflags_maybe if there's nothing set
5419 if test -z "$cflags_maybe"; then continue; fi
5420 cflags="$cflags_maybe $cflags"
5423 # Any user CFLAGS, even an empty string, takes precedence
5424 if test "$test_CFLAGS" = set; then cflags=$CFLAGS; fi
5426 # Any user CPPFLAGS, even an empty string, takes precedence
5427 eval cppflags=\"\$${ccbase}${abi1}_cppflags\"
5428 test -n "$cppflags" || eval cppflags=\"\$${ccbase}${abi2}_cppflags\"
5429 if test "$test_CPPFLAGS" = set; then cppflags=$CPPFLAGS; fi
5431 # --enable-profiling adds -p/-pg even to user-specified CFLAGS.
5432 # This is convenient, but it's perhaps a bit naughty to modify user
5434 case "$enable_profiling" in
5435 prof) cflags="$cflags -p" ;;
5436 gprof) cflags="$cflags -pg" ;;
5437 instrument) cflags="$cflags -finstrument-functions" ;;
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags" >&5
5441 $as_echo_n "checking compiler $cc $cflags $cppflags... " >&6; }
5442 gmp_prog_cc_works=yes
5444 # first see a simple "main()" works, then go on to other checks
5445 if test "$gmp_prog_cc_works" = yes; then
5446 # remove anything that might look like compiler output to our "||" expression
5447 rm -f conftest* a.out b.out a.exe a_out.exe
5448 cat >conftest.c <<EOF
5450 int main () { return 0; }
5452 echo "Test compile: " >&5
5453 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5455 (eval $gmp_compile) 2>&5
5457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5458 test $ac_status = 0; }; then
5460 if test "$cross_compiling" = no; then
5461 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5466 test $ac_status = 0; }; }; then :;
5474 if test "$cc_works_part" != yes; then
5475 echo "failed program was:" >&5
5478 rm -f conftest* a.out b.out a.exe a_out.exe
5479 case $cc_works_part in
5484 gmp_prog_cc_works="no"
5487 gmp_prog_cc_works="no, program does not run"
5495 if test "$gmp_prog_cc_works" = yes; then
5496 # remove anything that might look like compiler output to our "||" expression
5497 rm -f conftest* a.out b.out a.exe a_out.exe
5498 cat >conftest.c <<EOF
5499 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
5500 (without -maix64), hence detecting an unusable compiler */
5501 void *g() { return (void *) 0; }
5502 void *f() { return g(); }
5504 int main () { return 0; }
5506 echo "Test compile: function pointer return" >&5
5507 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5509 (eval $gmp_compile) 2>&5
5511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5512 test $ac_status = 0; }; then
5514 if test "$cross_compiling" = no; then
5515 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5520 test $ac_status = 0; }; }; then :;
5528 if test "$cc_works_part" != yes; then
5529 echo "failed program was:" >&5
5532 rm -f conftest* a.out b.out a.exe a_out.exe
5533 case $cc_works_part in
5538 gmp_prog_cc_works="no, function pointer return"
5541 gmp_prog_cc_works="no, function pointer return, program does not run"
5549 if test "$gmp_prog_cc_works" = yes; then
5550 # remove anything that might look like compiler output to our "||" expression
5551 rm -f conftest* a.out b.out a.exe a_out.exe
5552 cat >conftest.c <<EOF
5553 /* The following provokes an invalid instruction syntax from i386 gcc
5554 -march=pentiumpro on Solaris 2.8. The native sun assembler
5555 requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
5556 least) doesn't know. */
5558 int cmov () { return (n >= 0 ? n : 0); }
5560 int main () { return 0; }
5562 echo "Test compile: cmov instruction" >&5
5563 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5565 (eval $gmp_compile) 2>&5
5567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5568 test $ac_status = 0; }; then
5570 if test "$cross_compiling" = no; then
5571 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5576 test $ac_status = 0; }; }; then :;
5584 if test "$cc_works_part" != yes; then
5585 echo "failed program was:" >&5
5588 rm -f conftest* a.out b.out a.exe a_out.exe
5589 case $cc_works_part in
5594 gmp_prog_cc_works="no, cmov instruction"
5597 gmp_prog_cc_works="no, cmov instruction, program does not run"
5605 if test "$gmp_prog_cc_works" = yes; then
5606 # remove anything that might look like compiler output to our "||" expression
5607 rm -f conftest* a.out b.out a.exe a_out.exe
5608 cat >conftest.c <<EOF
5609 /* The following provokes a linker invocation problem with gcc 3.0.3
5610 on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630
5611 option causes gcc to incorrectly select the 32-bit libgcc.a, not
5612 the 64-bit one, and consequently it misses out on the __fixunsdfdi
5613 helper (double -> uint64 conversion). */
5615 unsigned long gcc303 () { return (unsigned long) d; }
5617 int main () { return 0; }
5619 echo "Test compile: double -> ulong conversion" >&5
5620 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5622 (eval $gmp_compile) 2>&5
5624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5625 test $ac_status = 0; }; then
5627 if test "$cross_compiling" = no; then
5628 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5633 test $ac_status = 0; }; }; then :;
5641 if test "$cc_works_part" != yes; then
5642 echo "failed program was:" >&5
5645 rm -f conftest* a.out b.out a.exe a_out.exe
5646 case $cc_works_part in
5651 gmp_prog_cc_works="no, double -> ulong conversion"
5654 gmp_prog_cc_works="no, double -> ulong conversion, program does not run"
5662 if test "$gmp_prog_cc_works" = yes; then
5663 # remove anything that might look like compiler output to our "||" expression
5664 rm -f conftest* a.out b.out a.exe a_out.exe
5665 cat >conftest.c <<EOF
5666 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
5667 the assembler doesn't know hppa 2.0 instructions. fneg is a 2.0
5668 instruction, and a negation like this comes out using it. */
5670 unsigned long fneg () { return -fneg_data; }
5672 int main () { return 0; }
5674 echo "Test compile: double negation" >&5
5675 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5677 (eval $gmp_compile) 2>&5
5679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5680 test $ac_status = 0; }; then
5682 if test "$cross_compiling" = no; then
5683 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5688 test $ac_status = 0; }; }; then :;
5696 if test "$cc_works_part" != yes; then
5697 echo "failed program was:" >&5
5700 rm -f conftest* a.out b.out a.exe a_out.exe
5701 case $cc_works_part in
5706 gmp_prog_cc_works="no, double negation"
5709 gmp_prog_cc_works="no, double negation, program does not run"
5717 if test "$gmp_prog_cc_works" = yes; then
5718 # remove anything that might look like compiler output to our "||" expression
5719 rm -f conftest* a.out b.out a.exe a_out.exe
5720 cat >conftest.c <<EOF
5721 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
5722 (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
5723 those instructions. Not sure how much of the gmp code will come out
5724 wanting sse2, but it's easiest to reject an option we know is bad. */
5726 float ftod () { return (float) ftod_data; }
5728 int main () { return 0; }
5730 echo "Test compile: double -> float conversion" >&5
5731 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5733 (eval $gmp_compile) 2>&5
5735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5736 test $ac_status = 0; }; then
5738 if test "$cross_compiling" = no; then
5739 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5744 test $ac_status = 0; }; }; then :;
5752 if test "$cc_works_part" != yes; then
5753 echo "failed program was:" >&5
5756 rm -f conftest* a.out b.out a.exe a_out.exe
5757 case $cc_works_part in
5762 gmp_prog_cc_works="no, double -> float conversion"
5765 gmp_prog_cc_works="no, double -> float conversion, program does not run"
5773 if test "$gmp_prog_cc_works" = yes; then
5774 # remove anything that might look like compiler output to our "||" expression
5775 rm -f conftest* a.out b.out a.exe a_out.exe
5776 cat >conftest.c <<EOF
5777 /* The following provokes an internal compiler error from gcc version
5778 "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
5779 values being spilled into floating point registers. The problem doesn't
5780 show up all the time, but has occurred enough in GMP for us to reject
5781 this compiler+flags. */
5782 #include <string.h> /* for memcpy */
5787 long d0, d1, d2, d3, d4, d5, d6;
5790 struct try_t param[6];
5795 memcpy (p, ¶m[ 2 ], sizeof (*p));
5796 memcpy (p, ¶m[ 2 ], sizeof (*p));
5798 memcpy (p, ¶m[ 1 ], sizeof (*p));
5801 memcpy (p, ¶m[ 3 ], sizeof (*p));
5804 memcpy (p, ¶m[ 4 ], sizeof (*p));
5805 memcpy (p, ¶m[ 4 ], sizeof (*p));
5807 memcpy (p, ¶m[ 5 ], sizeof (*p));
5808 memcpy (p, ¶m[ 5 ], sizeof (*p));
5809 memcpy (p, ¶m[ 5 ], sizeof (*p));
5813 int main () { return 0; }
5815 echo "Test compile: gnupro alpha ev6 char spilling" >&5
5816 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5818 (eval $gmp_compile) 2>&5
5820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5821 test $ac_status = 0; }; then
5823 if test "$cross_compiling" = no; then
5824 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5829 test $ac_status = 0; }; }; then :;
5837 if test "$cc_works_part" != yes; then
5838 echo "failed program was:" >&5
5841 rm -f conftest* a.out b.out a.exe a_out.exe
5842 case $cc_works_part in
5847 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling"
5850 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run"
5858 # __builtin_alloca is not available everywhere, check it exists before
5859 # seeing that it works
5860 if test "$gmp_prog_cc_works" = yes; then
5861 # remove anything that might look like compiler output to our "||" expression
5862 rm -f conftest* a.out b.out a.exe a_out.exe
5863 cat >conftest.c <<EOF
5864 int k; int foo () { __builtin_alloca (k); }
5866 echo "Test compile: __builtin_alloca availability" >&5
5867 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5869 (eval $gmp_compile) 2>&5
5871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5872 test $ac_status = 0; }; then
5874 if test "$cross_compiling" = no; then
5875 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5880 test $ac_status = 0; }; }; then :;
5888 if test "$cc_works_part" != yes; then
5889 echo "failed program was:" >&5
5892 rm -f conftest* a.out b.out a.exe a_out.exe
5893 case $cc_works_part in
5895 if test "$gmp_prog_cc_works" = yes; then
5896 # remove anything that might look like compiler output to our "||" expression
5897 rm -f conftest* a.out b.out a.exe a_out.exe
5898 cat >conftest.c <<EOF
5899 /* The following provokes an internal compiler error from Itanium HP-UX cc
5900 under +O2 or higher. We use this sort of code in mpn/generic/mul_fft.c. */
5905 a = __builtin_alloca (k);
5906 for (i = 0; i <= k; i++)
5907 a[i] = __builtin_alloca (1 << i);
5910 int main () { return 0; }
5912 echo "Test compile: alloca array" >&5
5913 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5915 (eval $gmp_compile) 2>&5
5917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5918 test $ac_status = 0; }; then
5920 if test "$cross_compiling" = no; then
5921 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5926 test $ac_status = 0; }; }; then :;
5934 if test "$cc_works_part" != yes; then
5935 echo "failed program was:" >&5
5938 rm -f conftest* a.out b.out a.exe a_out.exe
5939 case $cc_works_part in
5944 gmp_prog_cc_works="no, alloca array"
5947 gmp_prog_cc_works="no, alloca array, program does not run"
5965 if test "$gmp_prog_cc_works" = yes; then
5966 # remove anything that might look like compiler output to our "||" expression
5967 rm -f conftest* a.out b.out a.exe a_out.exe
5968 cat >conftest.c <<EOF
5969 /* The following provokes an internal error from the assembler on
5970 power2-ibm-aix4.3.1.0. gcc -mrios2 compiles to nabs+fcirz, and this
5971 results in "Internal error related to the source program domain".
5973 For reference it seems to be the combination of nabs+fcirz which is bad,
5974 not either alone. This sort of thing occurs in mpz/get_str.c with the
5975 way double chars_per_bit_exactly is applied in MPN_SIZEINBASE. Perhaps
5976 if that code changes to a scaled-integer style then we won't need this
5984 a = (x >= 0 ? x : -x);
5988 int main () { return 0; }
5990 echo "Test compile: abs int -> double conversion" >&5
5991 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5993 (eval $gmp_compile) 2>&5
5995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5996 test $ac_status = 0; }; then
5998 if test "$cross_compiling" = no; then
5999 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6004 test $ac_status = 0; }; }; then :;
6012 if test "$cc_works_part" != yes; then
6013 echo "failed program was:" >&5
6016 rm -f conftest* a.out b.out a.exe a_out.exe
6017 case $cc_works_part in
6022 gmp_prog_cc_works="no, abs int -> double conversion"
6025 gmp_prog_cc_works="no, abs int -> double conversion, program does not run"
6033 if test "$gmp_prog_cc_works" = yes; then
6034 # remove anything that might look like compiler output to our "||" expression
6035 rm -f conftest* a.out b.out a.exe a_out.exe
6036 cat >conftest.c <<EOF
6037 /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
6038 Extracted from tests/mpn/t-iord_u.c. Causes Apple's gcc 3.3 build 1640 and
6039 1666 to segfault with e.g., -O2 -mpowerpc64. */
6041 #if defined (__GNUC__) && ! defined (__cplusplus)
6042 typedef unsigned long long t1;typedef t1*t2;
6043 static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
6044 {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;}
6045 f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
6046 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();}}
6052 int main () { return 0; }
6054 echo "Test compile: long long reliability test 1" >&5
6055 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6057 (eval $gmp_compile) 2>&5
6059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6060 test $ac_status = 0; }; then
6062 if test "$cross_compiling" = no; then
6063 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6068 test $ac_status = 0; }; }; then :;
6076 if test "$cc_works_part" != yes; then
6077 echo "failed program was:" >&5
6080 rm -f conftest* a.out b.out a.exe a_out.exe
6081 case $cc_works_part in
6086 gmp_prog_cc_works="no, long long reliability test 1"
6089 gmp_prog_cc_works="no, long long reliability test 1, program does not run"
6097 if test "$gmp_prog_cc_works" = yes; then
6098 # remove anything that might look like compiler output to our "||" expression
6099 rm -f conftest* a.out b.out a.exe a_out.exe
6100 cat >conftest.c <<EOF
6101 /* The following provokes an internal compiler error on powerpc-apple-darwin.
6102 Extracted from mpz/cfdiv_q_2exp.c. Causes Apple's gcc 3.3 build 1640 and
6103 1666 to get an ICE with -O1 -mpowerpc64. */
6105 #if defined (__GNUC__) && ! defined (__cplusplus)
6106 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();}
6112 int main () { return 0; }
6114 echo "Test compile: long long reliability test 2" >&5
6115 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6117 (eval $gmp_compile) 2>&5
6119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6120 test $ac_status = 0; }; then
6122 if test "$cross_compiling" = no; then
6123 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6128 test $ac_status = 0; }; }; then :;
6136 if test "$cc_works_part" != yes; then
6137 echo "failed program was:" >&5
6140 rm -f conftest* a.out b.out a.exe a_out.exe
6141 case $cc_works_part in
6146 gmp_prog_cc_works="no, long long reliability test 2"
6149 gmp_prog_cc_works="no, long long reliability test 2, program does not run"
6157 if test "$gmp_prog_cc_works" = yes; then
6158 # remove anything that might look like compiler output to our "||" expression
6159 rm -f conftest* a.out b.out a.exe a_out.exe
6160 cat >conftest.c <<EOF
6161 /* The following is mis-compiled by HP ia-64 cc version
6162 cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
6163 under "cc +O3", both in +DD32 and +DD64 modes. The mpn_lshift_com gets
6164 inlined and its return value somehow botched to be 0 instead of 1. This
6165 arises in the real mpn_lshift_com in mul_fft.c. A lower optimization
6166 level, like +O2 seems ok. This code needs to be run to show the problem,
6167 but that's fine, the offending cc is a native-only compiler so we don't
6168 have to worry about cross compiling. */
6170 #if ! defined (__cplusplus)
6172 lshift_com (rp, up, n, cnt)
6178 unsigned long retval, high_limb, low_limb;
6181 tnc = 8 * sizeof (unsigned long) - cnt;
6183 retval = low_limb >> tnc;
6184 high_limb = low_limb << cnt;
6185 for (i = n - 1; i != 0; i--)
6188 *rp++ = ~(high_limb | (low_limb >> tnc));
6189 high_limb = low_limb << cnt;
6196 unsigned long cy, rp[2], up[2];
6199 cy = lshift_com (rp, up, 2L, 1);
6213 echo "Test compile: mpn_lshift_com optimization" >&5
6214 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6216 (eval $gmp_compile) 2>&5
6218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6219 test $ac_status = 0; }; then
6221 if test "$cross_compiling" = no; then
6222 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6227 test $ac_status = 0; }; }; then :;
6235 if test "$cc_works_part" != yes; then
6236 echo "failed program was:" >&5
6239 rm -f conftest* a.out b.out a.exe a_out.exe
6240 case $cc_works_part in
6245 gmp_prog_cc_works="no, mpn_lshift_com optimization"
6248 gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run"
6255 if test "$gmp_prog_cc_works" = yes; then
6256 # remove anything that might look like compiler output to our "||" expression
6257 rm -f conftest* a.out b.out a.exe a_out.exe
6258 cat >conftest.c <<EOF
6259 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
6260 "icc -O3", After several calls, the function writes parial garbage to
6261 the result vector. Perhaps relates to the chk.a.nc insn. This code needs
6262 to be run to show the problem, but that's fine, the offending cc is a
6263 native-only compiler so we don't have to worry about cross compiling. */
6265 #if ! defined (__cplusplus)
6268 lshift_com (rp, up, n, cnt)
6274 unsigned long high_limb, low_limb;
6279 tnc = 8 * sizeof (unsigned long) - cnt;
6281 high_limb = low_limb << cnt;
6282 for (i = n - 1; i != 0; i--)
6285 *--rp = ~(high_limb | (low_limb >> tnc));
6286 high_limb = low_limb << cnt;
6293 unsigned long *r, *r2;
6294 unsigned long a[88 + 1];
6296 for (i = 0; i < 88 + 1; i++)
6298 r = malloc (10000 * sizeof (unsigned long));
6300 for (i = 0; i < 528; i += 22)
6303 i / (8 * sizeof (unsigned long)) + 1,
6304 i % (8 * sizeof (unsigned long)));
6307 if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
6308 r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
6321 echo "Test compile: mpn_lshift_com optimization 2" >&5
6322 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6324 (eval $gmp_compile) 2>&5
6326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6327 test $ac_status = 0; }; then
6329 if test "$cross_compiling" = no; then
6330 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6335 test $ac_status = 0; }; }; then :;
6343 if test "$cc_works_part" != yes; then
6344 echo "failed program was:" >&5
6347 rm -f conftest* a.out b.out a.exe a_out.exe
6348 case $cc_works_part in
6353 gmp_prog_cc_works="no, mpn_lshift_com optimization 2"
6356 gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run"
6364 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
6365 # by recent versions of gcc.
6367 if test "$gmp_prog_cc_works" = yes; then
6369 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*)
6370 # this problem only arises in PIC code, so don't need to test when
6371 # --disable-shared. We don't necessarily have $enable_shared set to
6372 # yes at this point, it will still be unset for the default (which is
6373 # yes); hence the use of "!= no".
6374 if test "$enable_shared" != no; then
6375 echo "Testing gcc GOT with eax emitted" >&5
6376 cat >conftest.c <<\EOF
6378 int bar () { return foo; }
6381 gmp_compile="$cc $cflags $cppflags -fPIC -S conftest.c >&5 2>&1"
6382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6383 (eval $gmp_compile) 2>&5
6385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6386 test $ac_status = 0; }; then
6387 if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
6392 echo "Result: $tmp_got_emitted" >&5
6393 if test "$tmp_got_emitted" = yes; then
6394 echo "Testing gas GOT with eax good" >&5
6395 cat >conftest.awk <<\EOF
6424 for (f = 2; f <= NF; f++)
6426 for (i = 0; i < 20; i++)
6431 for (i = 0; i < 21; i++)
6432 if (got[i] != want[i])
6448 cat >conftest.s <<\EOF
6450 .byte 1, 35, 69, 103, 137, 171, 205, 239
6451 addl $_GLOBAL_OFFSET_TABLE_, %eax
6452 .byte 254, 220, 186, 152, 118, 84, 50, 16
6455 gmp_compile="$cc $cflags $cppflags -fPIC -o conftest.o -c conftest.s >&5 2>&1"
6456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6457 (eval $gmp_compile) 2>&5
6459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6460 test $ac_status = 0; }; then
6461 tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
6464 echo "Result: $tmp_got_good" >&5
6465 if test "$tmp_got_good" = no; then
6466 gmp_prog_cc_works="no, bad gas GOT with eax"
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
6481 $as_echo "$gmp_prog_cc_works" >&6; }
6482 case $gmp_prog_cc_works in
6492 # If we're supposed to be using a "long long" for a limb, check that
6494 eval limb_chosen=\"\$limb$abi1\"
6495 test -n "$limb_chosen" || eval limb_chosen=\"\$limb$abi2\"
6496 if test "$limb_chosen" = longlong; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags has long long" >&5
6498 $as_echo_n "checking compiler $cc $cflags $cppflags has long long... " >&6; }
6499 cat >conftest.c <<EOF
6501 long long bar () { return foo; }
6502 int main () { return 0; }
6504 gmp_prog_cc_works=no
6505 gmp_compile="$cc $cflags $cppflags -c conftest.c >&5"
6506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6507 (eval $gmp_compile) 2>&5
6509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6510 test $ac_status = 0; }; then
6511 gmp_prog_cc_works=yes
6513 echo "failed program was:" >&5
6516 rm -f conftest* a.out b.out a.exe a_out.exe
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
6518 $as_echo "$gmp_prog_cc_works" >&6; }
6519 if test $gmp_prog_cc_works = yes; then
6527 # The tests to perform on this $cc, if any
6528 eval testlist=\"\$${ccbase}${abi1}_testlist\"
6529 test -n "$testlist" || eval testlist=\"\$${ccbase}${abi2}_testlist\"
6530 test -n "$testlist" || eval testlist=\"\$any${abi1}_testlist\"
6531 test -n "$testlist" || eval testlist=\"\$any${abi2}_testlist\"
6534 for tst in $testlist; do
6536 hpc-hppa-2-0) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HP compiler $cc is good for 64-bits" >&5
6537 $as_echo_n "checking whether HP compiler $cc is good for 64-bits... " >&6; }
6538 # Bad compiler output:
6539 # ccom: HP92453-01 G.10.32.05 HP C Compiler
6540 # Good compiler output:
6541 # ccom: HP92453-01 A.10.32.30 HP C Compiler
6542 # Let A.10.32.30 or higher be ok.
6544 gmp_tmp_vs=`$cc -V -c -o conftest.$OBJEXT conftest.c 2>&1 | grep "^ccom:"`
6545 echo "Version string: $gmp_tmp_vs" >&5
6547 gmp_tmp_v1=`echo $gmp_tmp_vs | sed 's/.* .\.\([0-9]*\).*/\1/'`
6548 gmp_tmp_v2=`echo $gmp_tmp_vs | sed 's/.* .\..*\.\(.*\)\..* HP C.*/\1/'`
6549 gmp_tmp_v3=`echo $gmp_tmp_vs | sed 's/.* .\..*\..*\.\(.*\) HP C.*/\1/'`
6550 echo "Version number: $gmp_tmp_v1.$gmp_tmp_v2.$gmp_tmp_v3" >&5
6551 if test -z "$gmp_tmp_v1"; then
6552 gmp_hpc_64bit=not-applicable
6555 if test -n "$gmp_tmp_v1"; then
6556 if test "$gmp_tmp_v1" -gt 10; then
6559 if test "$gmp_tmp_v1" -eq 10; then
6560 if test -n "$gmp_tmp_v2"; then
6561 if test "$gmp_tmp_v2" -gt 32; then
6564 if test "$gmp_tmp_v2" -eq 32; then
6565 if test -n "$gmp_tmp_v3" && test "$gmp_tmp_v3" -ge 30; then
6578 gmp_hpc_64bit=$gmp_compare_ge
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_hpc_64bit" >&5
6581 $as_echo "$gmp_hpc_64bit" >&6; }
6582 if test $gmp_hpc_64bit = yes; then
6588 gcc-arm-umodsi) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ARM gcc unsigned division works" >&5
6589 $as_echo_n "checking whether ARM gcc unsigned division works... " >&6; }
6590 tmp_version=`$cc --version`
6591 echo "$tmp_version" >&5
6592 case $tmp_version in
6595 gmp_gcc_arm_umodsi_result="no, gcc 2.95.[0123]" ;;
6598 gmp_gcc_arm_umodsi_result=yes ;;
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_gcc_arm_umodsi_result" >&5
6601 $as_echo "$gmp_gcc_arm_umodsi_result" >&6; }
6603 gcc-mips-o32) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports o32" >&5
6604 $as_echo_n "checking whether gcc supports o32... " >&6; }
6605 echo 'int x;' >conftest.c
6606 echo "$cc -mabi=32 -c conftest.c" >&5
6607 if $cc -mabi=32 -c conftest.c >conftest.out 2>&1; then
6610 cat conftest.out >&5
6611 if grep "cc1: Invalid option \`abi=32'" conftest.out >/dev/null; then
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6619 $as_echo "$result" >&6; }
6620 if test $result = yes; then
6626 hppa-level-2.0) { $as_echo "$as_me:${as_lineno-$LINENO}: checking $cc $cflags assembler knows hppa 2.0" >&5
6627 $as_echo_n "checking $cc $cflags assembler knows hppa 2.0... " >&6; }
6629 cat >conftest.s <<EOF
6632 gmp_compile="$cc $cflags -c conftest.s >&5 2>&1"
6633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6634 (eval $gmp_compile) 2>&5
6636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6637 test $ac_status = 0; }; then
6640 echo "failed program was" >&5
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6645 $as_echo "$result" >&6; }
6646 if test "$result" = yes; then
6652 sizeof*) echo "configure: testlist $tst" >&5
6653 gmp_sizeof_type=`echo "$tst" | sed 's/sizeof-\([a-z]*\).*/\1/'`
6654 gmp_sizeof_want=`echo "$tst" | sed 's/sizeof-[a-z]*-\([0-9]*\).*/\1/'`
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want" >&5
6656 $as_echo_n "checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want... " >&6; }
6657 cat >conftest.c <<EOF
6661 static int test_array [1 - 2 * (long) (sizeof ($gmp_sizeof_type) != $gmp_sizeof_want)];
6666 gmp_c_testlist_sizeof=no
6667 gmp_compile="$cc $cflags -c conftest.c >&5"
6668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6669 (eval $gmp_compile) 2>&5
6671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6672 test $ac_status = 0; }; then
6673 gmp_c_testlist_sizeof=yes
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_c_testlist_sizeof" >&5
6677 $as_echo "$gmp_c_testlist_sizeof" >&6; }
6678 if test $gmp_c_testlist_sizeof = yes; then
6685 if test $testlist_pass = no; then break; fi
6688 if test $testlist_pass = yes; then
6694 if test $found_compiler = yes; then break; fi
6697 if test $found_compiler = yes; then break; fi
6700 if test $found_compiler = yes; then break; fi
6704 # If we recognised the CPU, as indicated by $path being set, then insist
6705 # that we have a working compiler, either from our $cclist choices or from
6706 # $CC. We can't let AC_PROG_CC look around for a compiler because it might
6707 # find one that we've rejected (for not supporting the modes our asm code
6710 # If we didn't recognise the CPU (and this includes host_cpu=none), then
6711 # fall through and let AC_PROG_CC look around for a compiler too. This is
6712 # mostly in the interests of following a standard autoconf setup, after all
6713 # we've already tested cc and gcc adequately (hopefully). As of autoconf
6714 # 2.50 the only thing AC_PROG_CC really adds is a check for "cl" (Microsoft
6715 # C on MS-DOS systems).
6717 if test $found_compiler = no && test -n "$path"; then
6718 as_fn_error "could not find a working compiler, see config.log for details" "$LINENO" 5
6722 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
6723 # If the user asked for a fat build, override the path and flags set above
6724 if test $enable_fat = yes; then
6728 if test "$abi" = 32; then
6729 extra_functions="$extra_functions fat fat_entry"
6731 fat_path="x86 x86/fat x86/i486
6732 x86/k6 x86/k6/mmx x86/k6/k62mmx
6734 x86/pentium x86/pentium/mmx
6735 x86/p6 x86/p6/mmx x86/p6/p3mmx x86/p6/sse2
6736 x86/pentium4 x86/pentium4/mmx x86/pentium4/sse2"
6739 if test "$abi" = 64; then
6741 extra_functions_64="$extra_functions_64 fat fat_entry"
6742 path_64="x86_64/fat x86_64"
6743 fat_path="x86_64 x86_64/fat x86_64/pentium4 x86_64/core2 x86_64/coreinhm x86_64/coreisbr x86_64/atom x86_64/nano"
6746 fat_functions="add_n addmul_1 copyd copyi
6747 dive_1 diveby3 divrem_1 gcd_1 lshift
6748 mod_1 mod_34lsub1 mode1o mul_1 mul_basecase
6749 pre_divrem_1 pre_mod_1 rshift
6750 sqr_basecase sub_n submul_1"
6751 fat_thresholds="MUL_TOOM22_THRESHOLD MUL_TOOM33_THRESHOLD
6752 SQR_TOOM2_THRESHOLD SQR_TOOM3_THRESHOLD"
6758 if test $found_compiler = yes; then
6760 # If we're creating CFLAGS, then look for optional additions. If the user
6761 # set CFLAGS then leave it alone.
6763 if test "$test_CFLAGS" != set; then
6764 eval optlist=\"\$${ccbase}${abi1}_cflags_optlist\"
6765 test -n "$optlist" || eval optlist=\"\$${ccbase}${abi2}_cflags_optlist\"
6767 for opt in $optlist; do
6768 eval optflags=\"\$${ccbase}${abi1}_cflags_${opt}\"
6769 test -n "$optflags" || eval optflags=\"\$${ccbase}${abi2}_cflags_${opt}\"
6770 test -n "$optflags" || eval optflags=\"\$${ccbase}_cflags_${opt}\"
6772 for flag in $optflags; do
6774 # ~ represents a space in an option spec
6775 flag=`echo "$flag" | tr '~' ' '`
6778 -march=pentium4 | -march=k8)
6779 # For -march settings which enable SSE2 we exclude certain bad
6780 # gcc versions and we need an OS knowing how to save xmm regs.
6782 # This is only for ABI=32, any 64-bit gcc is good and any OS
6783 # knowing x86_64 will know xmm.
6785 # -march=k8 was only introduced in gcc 3.3, so we shouldn't need
6786 # the GMP_GCC_PENTIUM4_SSE2 check (for gcc 3.2 and prior). But
6787 # it doesn't hurt to run it anyway, sharing code with the
6790 if test "$abi" = 32; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc is good for sse2" >&5
6792 $as_echo_n "checking whether gcc is good for sse2... " >&6; }
6793 case `$cc $cflags $cppflags -dumpversion` in
6794 3.[012] | 3.[012].*) result=no ;;
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6798 $as_echo "$result" >&6; }
6799 if test "$result" = yes; then
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the operating system supports XMM registers" >&5
6806 $as_echo_n "checking whether the operating system supports XMM registers... " >&6; }
6807 if test "${gmp_cv_os_x86_xmm+set}" = set; then :
6808 $as_echo_n "(cached) " >&6
6810 if test "$build" = "$host"; then
6811 # remove anything that might look like compiler output to our "||" expression
6812 rm -f conftest* a.out b.out a.exe a_out.exe
6813 cat >conftest.s <<EOF
6819 .byte 0x0f, 0x57, 0xc0
6823 gmp_compile="$cc $cflags $cppflags conftest.s -o conftest >&5"
6824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6825 (eval $gmp_compile) 2>&5
6827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6828 test $ac_status = 0; }; then
6829 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6834 test $ac_status = 0; }; }; then
6835 gmp_cv_os_x86_xmm=yes
6837 gmp_cv_os_x86_xmm=no
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Oops, cannot compile test program" >&5
6841 $as_echo "$as_me: WARNING: Oops, cannot compile test program" >&2;}
6846 if test -z "$gmp_cv_os_x86_xmm"; then
6848 freebsd[123] | freebsd[123].*)
6849 gmp_cv_os_x86_xmm=no ;;
6851 gmp_cv_os_x86_xmm=yes ;;
6853 gmp_cv_os_x86_xmm=probably ;;
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_os_x86_xmm" >&5
6859 $as_echo "$gmp_cv_os_x86_xmm" >&6; }
6861 if test "$gmp_cv_os_x86_xmm" = probably; then
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not certain of OS support for xmm when cross compiling." >&5
6863 $as_echo "$as_me: WARNING: Not certain of OS support for xmm when cross compiling." >&2;}
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&5
6865 $as_echo "$as_me: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&2;}
6868 case $gmp_cv_os_x86_xmm in
6880 # special check, avoiding a warning
6881 if test "$ccbase" = gcc; then
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags -no-cpp-precomp" >&5
6883 $as_echo_n "checking compiler $cc $cflags -no-cpp-precomp... " >&6; }
6885 cat >conftest.c <<EOF
6886 int main () { return 0; }
6888 gmp_compile="$cc $cflags -no-cpp-precomp conftest.c >conftest.out 2>&1"
6889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6890 (eval $gmp_compile) 2>&5
6892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6893 test $ac_status = 0; }; then
6894 if grep "unrecognized option.*-no-cpp-precomp" conftest.out >/dev/null; then : ;
6899 cat conftest.out >&5
6900 rm -f conftest* a.out b.out a.exe a_out.exe
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6902 $as_echo "$result" >&6; }
6903 if test "$result" = yes; then
6904 cflags="$cflags $flag"
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler $cc $cflags $flag" >&5
6916 $as_echo_n "checking assembler $cc $cflags $flag... " >&6; }
6918 cat >conftest.c <<EOF
6921 gmp_compile="$cc $cflags $flag -c conftest.c >conftest.out 2>&1"
6922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6923 (eval $gmp_compile) 2>&5
6925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6926 test $ac_status = 0; }; then
6927 if grep "Unknown CPU identifier" conftest.out >/dev/null; then : ;
6932 cat conftest.out >&5
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6935 $as_echo "$result" >&6; }
6936 if test "$result" = yes; then
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cc $cflags $cppflags -Wa,-oldas" >&5
6947 $as_echo_n "checking for $cc $cflags $cppflags -Wa,-oldas... " >&6; }
6949 cat >conftest.c <<EOF
6951 echo "with empty conftest.c" >&5
6952 gmp_compile="$cc $cflags $cppflags -c conftest.c >&5 2>&1"
6953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6954 (eval $gmp_compile) 2>&5
6956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6957 test $ac_status = 0; }; then : ;
6960 gmp_compile="$cc $cflags $cppflags -Wa,-oldas -c conftest.c >&5 2>&1"
6961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6962 (eval $gmp_compile) 2>&5
6964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6965 test $ac_status = 0; }; then
6966 # but with -Wa,-oldas it works
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6972 $as_echo "$result" >&6; }
6973 if test "$result" = yes; then
6974 cflags="$cflags $flag"
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags $flag" >&5
6984 $as_echo_n "checking compiler $cc $cflags $cppflags $flag... " >&6; }
6985 gmp_prog_cc_works=yes
6987 # first see a simple "main()" works, then go on to other checks
6988 if test "$gmp_prog_cc_works" = yes; then
6989 # remove anything that might look like compiler output to our "||" expression
6990 rm -f conftest* a.out b.out a.exe a_out.exe
6991 cat >conftest.c <<EOF
6993 int main () { return 0; }
6995 echo "Test compile: " >&5
6996 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
6997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6998 (eval $gmp_compile) 2>&5
7000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7001 test $ac_status = 0; }; then
7003 if test "$cross_compiling" = no; then
7004 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7009 test $ac_status = 0; }; }; then :;
7017 if test "$cc_works_part" != yes; then
7018 echo "failed program was:" >&5
7021 rm -f conftest* a.out b.out a.exe a_out.exe
7022 case $cc_works_part in
7027 gmp_prog_cc_works="no"
7030 gmp_prog_cc_works="no, program does not run"
7038 if test "$gmp_prog_cc_works" = yes; then
7039 # remove anything that might look like compiler output to our "||" expression
7040 rm -f conftest* a.out b.out a.exe a_out.exe
7041 cat >conftest.c <<EOF
7042 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
7043 (without -maix64), hence detecting an unusable compiler */
7044 void *g() { return (void *) 0; }
7045 void *f() { return g(); }
7047 int main () { return 0; }
7049 echo "Test compile: function pointer return" >&5
7050 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7052 (eval $gmp_compile) 2>&5
7054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7055 test $ac_status = 0; }; then
7057 if test "$cross_compiling" = no; then
7058 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7063 test $ac_status = 0; }; }; then :;
7071 if test "$cc_works_part" != yes; then
7072 echo "failed program was:" >&5
7075 rm -f conftest* a.out b.out a.exe a_out.exe
7076 case $cc_works_part in
7081 gmp_prog_cc_works="no, function pointer return"
7084 gmp_prog_cc_works="no, function pointer return, program does not run"
7092 if test "$gmp_prog_cc_works" = yes; then
7093 # remove anything that might look like compiler output to our "||" expression
7094 rm -f conftest* a.out b.out a.exe a_out.exe
7095 cat >conftest.c <<EOF
7096 /* The following provokes an invalid instruction syntax from i386 gcc
7097 -march=pentiumpro on Solaris 2.8. The native sun assembler
7098 requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
7099 least) doesn't know. */
7101 int cmov () { return (n >= 0 ? n : 0); }
7103 int main () { return 0; }
7105 echo "Test compile: cmov instruction" >&5
7106 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7108 (eval $gmp_compile) 2>&5
7110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7111 test $ac_status = 0; }; then
7113 if test "$cross_compiling" = no; then
7114 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7119 test $ac_status = 0; }; }; then :;
7127 if test "$cc_works_part" != yes; then
7128 echo "failed program was:" >&5
7131 rm -f conftest* a.out b.out a.exe a_out.exe
7132 case $cc_works_part in
7137 gmp_prog_cc_works="no, cmov instruction"
7140 gmp_prog_cc_works="no, cmov instruction, program does not run"
7148 if test "$gmp_prog_cc_works" = yes; then
7149 # remove anything that might look like compiler output to our "||" expression
7150 rm -f conftest* a.out b.out a.exe a_out.exe
7151 cat >conftest.c <<EOF
7152 /* The following provokes a linker invocation problem with gcc 3.0.3
7153 on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630
7154 option causes gcc to incorrectly select the 32-bit libgcc.a, not
7155 the 64-bit one, and consequently it misses out on the __fixunsdfdi
7156 helper (double -> uint64 conversion). */
7158 unsigned long gcc303 () { return (unsigned long) d; }
7160 int main () { return 0; }
7162 echo "Test compile: double -> ulong conversion" >&5
7163 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7165 (eval $gmp_compile) 2>&5
7167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7168 test $ac_status = 0; }; then
7170 if test "$cross_compiling" = no; then
7171 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7176 test $ac_status = 0; }; }; then :;
7184 if test "$cc_works_part" != yes; then
7185 echo "failed program was:" >&5
7188 rm -f conftest* a.out b.out a.exe a_out.exe
7189 case $cc_works_part in
7194 gmp_prog_cc_works="no, double -> ulong conversion"
7197 gmp_prog_cc_works="no, double -> ulong conversion, program does not run"
7205 if test "$gmp_prog_cc_works" = yes; then
7206 # remove anything that might look like compiler output to our "||" expression
7207 rm -f conftest* a.out b.out a.exe a_out.exe
7208 cat >conftest.c <<EOF
7209 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
7210 the assembler doesn't know hppa 2.0 instructions. fneg is a 2.0
7211 instruction, and a negation like this comes out using it. */
7213 unsigned long fneg () { return -fneg_data; }
7215 int main () { return 0; }
7217 echo "Test compile: double negation" >&5
7218 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7220 (eval $gmp_compile) 2>&5
7222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7223 test $ac_status = 0; }; then
7225 if test "$cross_compiling" = no; then
7226 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7231 test $ac_status = 0; }; }; then :;
7239 if test "$cc_works_part" != yes; then
7240 echo "failed program was:" >&5
7243 rm -f conftest* a.out b.out a.exe a_out.exe
7244 case $cc_works_part in
7249 gmp_prog_cc_works="no, double negation"
7252 gmp_prog_cc_works="no, double negation, program does not run"
7260 if test "$gmp_prog_cc_works" = yes; then
7261 # remove anything that might look like compiler output to our "||" expression
7262 rm -f conftest* a.out b.out a.exe a_out.exe
7263 cat >conftest.c <<EOF
7264 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
7265 (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
7266 those instructions. Not sure how much of the gmp code will come out
7267 wanting sse2, but it's easiest to reject an option we know is bad. */
7269 float ftod () { return (float) ftod_data; }
7271 int main () { return 0; }
7273 echo "Test compile: double -> float conversion" >&5
7274 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7276 (eval $gmp_compile) 2>&5
7278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7279 test $ac_status = 0; }; then
7281 if test "$cross_compiling" = no; then
7282 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7287 test $ac_status = 0; }; }; then :;
7295 if test "$cc_works_part" != yes; then
7296 echo "failed program was:" >&5
7299 rm -f conftest* a.out b.out a.exe a_out.exe
7300 case $cc_works_part in
7305 gmp_prog_cc_works="no, double -> float conversion"
7308 gmp_prog_cc_works="no, double -> float conversion, program does not run"
7316 if test "$gmp_prog_cc_works" = yes; then
7317 # remove anything that might look like compiler output to our "||" expression
7318 rm -f conftest* a.out b.out a.exe a_out.exe
7319 cat >conftest.c <<EOF
7320 /* The following provokes an internal compiler error from gcc version
7321 "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
7322 values being spilled into floating point registers. The problem doesn't
7323 show up all the time, but has occurred enough in GMP for us to reject
7324 this compiler+flags. */
7325 #include <string.h> /* for memcpy */
7330 long d0, d1, d2, d3, d4, d5, d6;
7333 struct try_t param[6];
7338 memcpy (p, ¶m[ 2 ], sizeof (*p));
7339 memcpy (p, ¶m[ 2 ], sizeof (*p));
7341 memcpy (p, ¶m[ 1 ], sizeof (*p));
7344 memcpy (p, ¶m[ 3 ], sizeof (*p));
7347 memcpy (p, ¶m[ 4 ], sizeof (*p));
7348 memcpy (p, ¶m[ 4 ], sizeof (*p));
7350 memcpy (p, ¶m[ 5 ], sizeof (*p));
7351 memcpy (p, ¶m[ 5 ], sizeof (*p));
7352 memcpy (p, ¶m[ 5 ], sizeof (*p));
7356 int main () { return 0; }
7358 echo "Test compile: gnupro alpha ev6 char spilling" >&5
7359 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7361 (eval $gmp_compile) 2>&5
7363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7364 test $ac_status = 0; }; then
7366 if test "$cross_compiling" = no; then
7367 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7372 test $ac_status = 0; }; }; then :;
7380 if test "$cc_works_part" != yes; then
7381 echo "failed program was:" >&5
7384 rm -f conftest* a.out b.out a.exe a_out.exe
7385 case $cc_works_part in
7390 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling"
7393 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run"
7401 # __builtin_alloca is not available everywhere, check it exists before
7402 # seeing that it works
7403 if test "$gmp_prog_cc_works" = yes; then
7404 # remove anything that might look like compiler output to our "||" expression
7405 rm -f conftest* a.out b.out a.exe a_out.exe
7406 cat >conftest.c <<EOF
7407 int k; int foo () { __builtin_alloca (k); }
7409 echo "Test compile: __builtin_alloca availability" >&5
7410 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7412 (eval $gmp_compile) 2>&5
7414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7415 test $ac_status = 0; }; then
7417 if test "$cross_compiling" = no; then
7418 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7423 test $ac_status = 0; }; }; then :;
7431 if test "$cc_works_part" != yes; then
7432 echo "failed program was:" >&5
7435 rm -f conftest* a.out b.out a.exe a_out.exe
7436 case $cc_works_part in
7438 if test "$gmp_prog_cc_works" = yes; then
7439 # remove anything that might look like compiler output to our "||" expression
7440 rm -f conftest* a.out b.out a.exe a_out.exe
7441 cat >conftest.c <<EOF
7442 /* The following provokes an internal compiler error from Itanium HP-UX cc
7443 under +O2 or higher. We use this sort of code in mpn/generic/mul_fft.c. */
7448 a = __builtin_alloca (k);
7449 for (i = 0; i <= k; i++)
7450 a[i] = __builtin_alloca (1 << i);
7453 int main () { return 0; }
7455 echo "Test compile: alloca array" >&5
7456 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7458 (eval $gmp_compile) 2>&5
7460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7461 test $ac_status = 0; }; then
7463 if test "$cross_compiling" = no; then
7464 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7469 test $ac_status = 0; }; }; then :;
7477 if test "$cc_works_part" != yes; then
7478 echo "failed program was:" >&5
7481 rm -f conftest* a.out b.out a.exe a_out.exe
7482 case $cc_works_part in
7487 gmp_prog_cc_works="no, alloca array"
7490 gmp_prog_cc_works="no, alloca array, program does not run"
7508 if test "$gmp_prog_cc_works" = yes; then
7509 # remove anything that might look like compiler output to our "||" expression
7510 rm -f conftest* a.out b.out a.exe a_out.exe
7511 cat >conftest.c <<EOF
7512 /* The following provokes an internal error from the assembler on
7513 power2-ibm-aix4.3.1.0. gcc -mrios2 compiles to nabs+fcirz, and this
7514 results in "Internal error related to the source program domain".
7516 For reference it seems to be the combination of nabs+fcirz which is bad,
7517 not either alone. This sort of thing occurs in mpz/get_str.c with the
7518 way double chars_per_bit_exactly is applied in MPN_SIZEINBASE. Perhaps
7519 if that code changes to a scaled-integer style then we won't need this
7527 a = (x >= 0 ? x : -x);
7531 int main () { return 0; }
7533 echo "Test compile: abs int -> double conversion" >&5
7534 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7536 (eval $gmp_compile) 2>&5
7538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7539 test $ac_status = 0; }; then
7541 if test "$cross_compiling" = no; then
7542 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7547 test $ac_status = 0; }; }; then :;
7555 if test "$cc_works_part" != yes; then
7556 echo "failed program was:" >&5
7559 rm -f conftest* a.out b.out a.exe a_out.exe
7560 case $cc_works_part in
7565 gmp_prog_cc_works="no, abs int -> double conversion"
7568 gmp_prog_cc_works="no, abs int -> double conversion, program does not run"
7576 if test "$gmp_prog_cc_works" = yes; then
7577 # remove anything that might look like compiler output to our "||" expression
7578 rm -f conftest* a.out b.out a.exe a_out.exe
7579 cat >conftest.c <<EOF
7580 /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
7581 Extracted from tests/mpn/t-iord_u.c. Causes Apple's gcc 3.3 build 1640 and
7582 1666 to segfault with e.g., -O2 -mpowerpc64. */
7584 #if defined (__GNUC__) && ! defined (__cplusplus)
7585 typedef unsigned long long t1;typedef t1*t2;
7586 static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
7587 {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;}
7588 f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
7589 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();}}
7595 int main () { return 0; }
7597 echo "Test compile: long long reliability test 1" >&5
7598 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7600 (eval $gmp_compile) 2>&5
7602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7603 test $ac_status = 0; }; then
7605 if test "$cross_compiling" = no; then
7606 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7611 test $ac_status = 0; }; }; then :;
7619 if test "$cc_works_part" != yes; then
7620 echo "failed program was:" >&5
7623 rm -f conftest* a.out b.out a.exe a_out.exe
7624 case $cc_works_part in
7629 gmp_prog_cc_works="no, long long reliability test 1"
7632 gmp_prog_cc_works="no, long long reliability test 1, 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 compiler error on powerpc-apple-darwin.
7645 Extracted from mpz/cfdiv_q_2exp.c. Causes Apple's gcc 3.3 build 1640 and
7646 1666 to get an ICE with -O1 -mpowerpc64. */
7648 #if defined (__GNUC__) && ! defined (__cplusplus)
7649 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();}
7655 int main () { return 0; }
7657 echo "Test compile: long long reliability test 2" >&5
7658 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7660 (eval $gmp_compile) 2>&5
7662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7663 test $ac_status = 0; }; then
7665 if test "$cross_compiling" = no; then
7666 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7671 test $ac_status = 0; }; }; then :;
7679 if test "$cc_works_part" != yes; then
7680 echo "failed program was:" >&5
7683 rm -f conftest* a.out b.out a.exe a_out.exe
7684 case $cc_works_part in
7689 gmp_prog_cc_works="no, long long reliability test 2"
7692 gmp_prog_cc_works="no, long long reliability test 2, program does not run"
7700 if test "$gmp_prog_cc_works" = yes; then
7701 # remove anything that might look like compiler output to our "||" expression
7702 rm -f conftest* a.out b.out a.exe a_out.exe
7703 cat >conftest.c <<EOF
7704 /* The following is mis-compiled by HP ia-64 cc version
7705 cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
7706 under "cc +O3", both in +DD32 and +DD64 modes. The mpn_lshift_com gets
7707 inlined and its return value somehow botched to be 0 instead of 1. This
7708 arises in the real mpn_lshift_com in mul_fft.c. A lower optimization
7709 level, like +O2 seems ok. This code needs to be run to show the problem,
7710 but that's fine, the offending cc is a native-only compiler so we don't
7711 have to worry about cross compiling. */
7713 #if ! defined (__cplusplus)
7715 lshift_com (rp, up, n, cnt)
7721 unsigned long retval, high_limb, low_limb;
7724 tnc = 8 * sizeof (unsigned long) - cnt;
7726 retval = low_limb >> tnc;
7727 high_limb = low_limb << cnt;
7728 for (i = n - 1; i != 0; i--)
7731 *rp++ = ~(high_limb | (low_limb >> tnc));
7732 high_limb = low_limb << cnt;
7739 unsigned long cy, rp[2], up[2];
7742 cy = lshift_com (rp, up, 2L, 1);
7756 echo "Test compile: mpn_lshift_com optimization" >&5
7757 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7759 (eval $gmp_compile) 2>&5
7761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7762 test $ac_status = 0; }; then
7764 if test "$cross_compiling" = no; then
7765 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7770 test $ac_status = 0; }; }; then :;
7778 if test "$cc_works_part" != yes; then
7779 echo "failed program was:" >&5
7782 rm -f conftest* a.out b.out a.exe a_out.exe
7783 case $cc_works_part in
7788 gmp_prog_cc_works="no, mpn_lshift_com optimization"
7791 gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run"
7798 if test "$gmp_prog_cc_works" = yes; then
7799 # remove anything that might look like compiler output to our "||" expression
7800 rm -f conftest* a.out b.out a.exe a_out.exe
7801 cat >conftest.c <<EOF
7802 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
7803 "icc -O3", After several calls, the function writes parial garbage to
7804 the result vector. Perhaps relates to the chk.a.nc insn. This code needs
7805 to be run to show the problem, but that's fine, the offending cc is a
7806 native-only compiler so we don't have to worry about cross compiling. */
7808 #if ! defined (__cplusplus)
7811 lshift_com (rp, up, n, cnt)
7817 unsigned long high_limb, low_limb;
7822 tnc = 8 * sizeof (unsigned long) - cnt;
7824 high_limb = low_limb << cnt;
7825 for (i = n - 1; i != 0; i--)
7828 *--rp = ~(high_limb | (low_limb >> tnc));
7829 high_limb = low_limb << cnt;
7836 unsigned long *r, *r2;
7837 unsigned long a[88 + 1];
7839 for (i = 0; i < 88 + 1; i++)
7841 r = malloc (10000 * sizeof (unsigned long));
7843 for (i = 0; i < 528; i += 22)
7846 i / (8 * sizeof (unsigned long)) + 1,
7847 i % (8 * sizeof (unsigned long)));
7850 if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
7851 r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
7864 echo "Test compile: mpn_lshift_com optimization 2" >&5
7865 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7867 (eval $gmp_compile) 2>&5
7869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7870 test $ac_status = 0; }; then
7872 if test "$cross_compiling" = no; then
7873 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7878 test $ac_status = 0; }; }; then :;
7886 if test "$cc_works_part" != yes; then
7887 echo "failed program was:" >&5
7890 rm -f conftest* a.out b.out a.exe a_out.exe
7891 case $cc_works_part in
7896 gmp_prog_cc_works="no, mpn_lshift_com optimization 2"
7899 gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run"
7907 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
7908 # by recent versions of gcc.
7910 if test "$gmp_prog_cc_works" = yes; then
7912 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*)
7913 # this problem only arises in PIC code, so don't need to test when
7914 # --disable-shared. We don't necessarily have $enable_shared set to
7915 # yes at this point, it will still be unset for the default (which is
7916 # yes); hence the use of "!= no".
7917 if test "$enable_shared" != no; then
7918 echo "Testing gcc GOT with eax emitted" >&5
7919 cat >conftest.c <<\EOF
7921 int bar () { return foo; }
7924 gmp_compile="$cc $cflags $cppflags $flag -fPIC -S conftest.c >&5 2>&1"
7925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7926 (eval $gmp_compile) 2>&5
7928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7929 test $ac_status = 0; }; then
7930 if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
7935 echo "Result: $tmp_got_emitted" >&5
7936 if test "$tmp_got_emitted" = yes; then
7937 echo "Testing gas GOT with eax good" >&5
7938 cat >conftest.awk <<\EOF
7967 for (f = 2; f <= NF; f++)
7969 for (i = 0; i < 20; i++)
7974 for (i = 0; i < 21; i++)
7975 if (got[i] != want[i])
7991 cat >conftest.s <<\EOF
7993 .byte 1, 35, 69, 103, 137, 171, 205, 239
7994 addl $_GLOBAL_OFFSET_TABLE_, %eax
7995 .byte 254, 220, 186, 152, 118, 84, 50, 16
7998 gmp_compile="$cc $cflags $cppflags $flag -fPIC -o conftest.o -c conftest.s >&5 2>&1"
7999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
8000 (eval $gmp_compile) 2>&5
8002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8003 test $ac_status = 0; }; then
8004 tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
8007 echo "Result: $tmp_got_good" >&5
8008 if test "$tmp_got_good" = no; then
8009 gmp_prog_cc_works="no, bad gas GOT with eax"
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
8024 $as_echo "$gmp_prog_cc_works" >&6; }
8025 case $gmp_prog_cc_works in
8027 cflags="$cflags $flag"
8042 CPPFLAGS="$cppflags"
8045 # Could easily have this in config.h too, if desired.
8046 ABI_nodots=`echo $ABI | sed 's/\./_/'`
8048 echo "define_not_for_expansion(\`HAVE_ABI_$ABI_nodots')" >> $gmp_tmpconfigm4p
8052 # GMP_LDFLAGS substitution, selected according to ABI.
8053 # These are needed on libgmp.la and libmp.la, but currently not on
8054 # convenience libraries like tune/libspeed.la or mpz/libmpz.la.
8056 eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
8057 test -n "$GMP_LDFLAGS" || eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
8062 # extra_functions, selected according to ABI
8063 eval tmp=\"\$extra_functions$abi1\"
8064 test -n "$tmp" || eval tmp=\"\$extra_functions$abi2\"
8065 extra_functions="$tmp"
8068 # Cycle counter, selected according to ABI.
8070 eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi1\"
8071 test -n "$tmp" || eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi2\"
8072 SPEED_CYCLECOUNTER_OBJ="$tmp"
8073 eval tmp=\"\$cyclecounter_size$abi1\"
8074 test -n "$tmp" || eval tmp=\"\$cyclecounter_size$abi2\"
8075 cyclecounter_size="$tmp"
8077 if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
8079 cat >>confdefs.h <<_ACEOF
8080 #define HAVE_SPEED_CYCLECOUNTER $cyclecounter_size
8087 # Calling conventions checking, selected according to ABI.
8089 eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi1\"
8090 test -n "$tmp" || eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi2\"
8091 CALLING_CONVENTIONS_OBJS="$tmp"
8093 if test -n "$CALLING_CONVENTIONS_OBJS"; then
8095 $as_echo "#define HAVE_CALLING_CONVENTIONS 1" >>confdefs.h
8103 # If the user gave an MPN_PATH, use that verbatim, otherwise choose
8104 # according to the ABI and add "generic".
8106 if test -n "$MPN_PATH"; then
8109 eval tmp=\"\$path$abi1\"
8110 test -n "$tmp" || eval tmp=\"\$path$abi2\"
8115 # Long long limb setup for gmp.h.
8116 case $limb_chosen in
8117 longlong) DEFN_LONG_LONG_LIMB="#define _LONG_LONG_LIMB 1" ;;
8118 *) DEFN_LONG_LONG_LIMB="/* #undef _LONG_LONG_LIMB */" ;;
8123 # The C compiler and preprocessor, put into ANSI mode if possible.
8125 ac_cpp='$CPP $CPPFLAGS'
8126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8129 if test -n "$ac_tool_prefix"; then
8130 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
8131 set dummy ${ac_tool_prefix}gcc; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if test "${ac_cv_prog_CC+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8137 if test -n "$CC"; then
8138 ac_cv_prog_CC="$CC" # Let the user override the test.
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 if test -n "$CC"; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8160 $as_echo "$CC" >&6; }
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8168 if test -z "$ac_cv_prog_CC"; then
8170 # Extract the first word of "gcc", so it can be a program name with args.
8171 set dummy gcc; ac_word=$2
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173 $as_echo_n "checking for $ac_word... " >&6; }
8174 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
8175 $as_echo_n "(cached) " >&6
8177 if test -n "$ac_ct_CC"; then
8178 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184 test -z "$as_dir" && as_dir=.
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8187 ac_cv_prog_ac_ct_CC="gcc"
8188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8198 if test -n "$ac_ct_CC"; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8200 $as_echo "$ac_ct_CC" >&6; }
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203 $as_echo "no" >&6; }
8206 if test "x$ac_ct_CC" = x; then
8209 case $cross_compiling:$ac_tool_warned in
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8213 ac_tool_warned=yes ;;
8221 if test -z "$CC"; then
8222 if test -n "$ac_tool_prefix"; then
8223 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
8224 set dummy ${ac_tool_prefix}cc; ac_word=$2
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8226 $as_echo_n "checking for $ac_word... " >&6; }
8227 if test "${ac_cv_prog_CC+set}" = set; then :
8228 $as_echo_n "(cached) " >&6
8230 if test -n "$CC"; then
8231 ac_cv_prog_CC="$CC" # Let the user override the test.
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 test -z "$as_dir" && as_dir=.
8238 for ac_exec_ext in '' $ac_executable_extensions; do
8239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8240 ac_cv_prog_CC="${ac_tool_prefix}cc"
8241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8251 if test -n "$CC"; then
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8253 $as_echo "$CC" >&6; }
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }
8262 if test -z "$CC"; then
8263 # Extract the first word of "cc", so it can be a program name with args.
8264 set dummy cc; ac_word=$2
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266 $as_echo_n "checking for $ac_word... " >&6; }
8267 if test "${ac_cv_prog_CC+set}" = set; then :
8268 $as_echo_n "(cached) " >&6
8270 if test -n "$CC"; then
8271 ac_cv_prog_CC="$CC" # Let the user override the test.
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 test -z "$as_dir" && as_dir=.
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8281 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
8282 ac_prog_rejected=yes
8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8293 if test $ac_prog_rejected = yes; then
8294 # We found a bogon in the path, so make sure we never use it.
8295 set dummy $ac_cv_prog_CC
8297 if test $# != 0; then
8298 # We chose a different compiler from the bogus one.
8299 # However, it has the same basename, so the bogon will be chosen
8300 # first if we set CC to just the basename; use the full file name.
8302 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8308 if test -n "$CC"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8310 $as_echo "$CC" >&6; }
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8318 if test -z "$CC"; then
8319 if test -n "$ac_tool_prefix"; then
8320 for ac_prog in cl.exe
8322 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8323 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325 $as_echo_n "checking for $ac_word... " >&6; }
8326 if test "${ac_cv_prog_CC+set}" = set; then :
8327 $as_echo_n "(cached) " >&6
8329 if test -n "$CC"; then
8330 ac_cv_prog_CC="$CC" # Let the user override the test.
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 test -z "$as_dir" && as_dir=.
8337 for ac_exec_ext in '' $ac_executable_extensions; do
8338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8339 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350 if test -n "$CC"; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8352 $as_echo "$CC" >&6; }
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8359 test -n "$CC" && break
8362 if test -z "$CC"; then
8364 for ac_prog in cl.exe
8366 # Extract the first word of "$ac_prog", so it can be a program name with args.
8367 set dummy $ac_prog; ac_word=$2
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369 $as_echo_n "checking for $ac_word... " >&6; }
8370 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
8371 $as_echo_n "(cached) " >&6
8373 if test -n "$ac_ct_CC"; then
8374 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380 test -z "$as_dir" && as_dir=.
8381 for ac_exec_ext in '' $ac_executable_extensions; do
8382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8383 ac_cv_prog_ac_ct_CC="$ac_prog"
8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8393 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8394 if test -n "$ac_ct_CC"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8396 $as_echo "$ac_ct_CC" >&6; }
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8403 test -n "$ac_ct_CC" && break
8406 if test "x$ac_ct_CC" = x; then
8409 case $cross_compiling:$ac_tool_warned in
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8413 ac_tool_warned=yes ;;
8422 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8424 as_fn_error "no acceptable C compiler found in \$PATH
8425 See \`config.log' for more details." "$LINENO" 5; }
8427 # Provide some information about the compiler.
8428 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8431 for ac_option in --version -v -V -qversion; do
8432 { { ac_try="$ac_compiler $ac_option >&5"
8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8438 $as_echo "$ac_try_echo"; } >&5
8439 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8441 if test -s conftest.err; then
8443 ... rest of stderr output deleted ...
8444 10q' conftest.err >conftest.er1
8445 cat conftest.er1 >&5
8447 rm -f conftest.er1 conftest.err
8448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8449 test $ac_status = 0; }
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8463 ac_clean_files_save=$ac_clean_files
8464 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
8465 # Try to create an executable without -o first, disregard a.out.
8466 # It will help us diagnose broken compilers, and finding out an intuition
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
8469 $as_echo_n "checking whether the C compiler works... " >&6; }
8470 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
8472 # The possible output files:
8473 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
8476 for ac_file in $ac_files
8479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
8480 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
8485 if { { ac_try="$ac_link_default"
8487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488 *) ac_try_echo=$ac_try;;
8490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8491 $as_echo "$ac_try_echo"; } >&5
8492 (eval "$ac_link_default") 2>&5
8494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8495 test $ac_status = 0; }; then :
8496 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
8497 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
8498 # in a Makefile. We should not override ac_cv_exeext if it was cached,
8499 # so that the user can short-circuit this test for compilers unknown to
8501 for ac_file in $ac_files ''
8503 test -f "$ac_file" || continue
8505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8508 # We found the default executable, but exeext='' is most
8512 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
8514 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8516 # We set ac_cv_exeext here because the later test for it is not
8517 # safe: cross compilers may not add the suffix if given an `-o'
8518 # argument, so we may need to know it at that point already.
8519 # Even if this section looks crufty: it has the advantage of
8526 test "$ac_cv_exeext" = no && ac_cv_exeext=
8531 if test -z "$ac_file"; then :
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533 $as_echo "no" >&6; }
8534 $as_echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8539 { as_fn_set_status 77
8540 as_fn_error "C compiler cannot create executables
8541 See \`config.log' for more details." "$LINENO" 5; }; }
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8544 $as_echo "yes" >&6; }
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
8547 $as_echo_n "checking for C compiler default output file name... " >&6; }
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
8549 $as_echo "$ac_file" >&6; }
8550 ac_exeext=$ac_cv_exeext
8552 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
8553 ac_clean_files=$ac_clean_files_save
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
8555 $as_echo_n "checking for suffix of executables... " >&6; }
8556 if { { ac_try="$ac_link"
8558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559 *) ac_try_echo=$ac_try;;
8561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8562 $as_echo "$ac_try_echo"; } >&5
8563 (eval "$ac_link") 2>&5
8565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8566 test $ac_status = 0; }; then :
8567 # If both `conftest.exe' and `conftest' are `present' (well, observable)
8568 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
8569 # work properly (i.e., refer to `conftest.exe'), while it won't with
8571 for ac_file in conftest.exe conftest conftest.*; do
8572 test -f "$ac_file" || continue
8574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
8575 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8583 as_fn_error "cannot compute suffix of executables: cannot compile and link
8584 See \`config.log' for more details." "$LINENO" 5; }
8586 rm -f conftest conftest$ac_cv_exeext
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
8588 $as_echo "$ac_cv_exeext" >&6; }
8590 rm -f conftest.$ac_ext
8591 EXEEXT=$ac_cv_exeext
8593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594 /* end confdefs.h. */
8599 FILE *f = fopen ("conftest.out", "w");
8600 return ferror (f) || fclose (f) != 0;
8606 ac_clean_files="$ac_clean_files conftest.out"
8607 # Check that the compiler produces executables we can run. If not, either
8608 # the compiler is broken, or we cross compile.
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
8610 $as_echo_n "checking whether we are cross compiling... " >&6; }
8611 if test "$cross_compiling" != yes; then
8612 { { ac_try="$ac_link"
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8618 $as_echo "$ac_try_echo"; } >&5
8619 (eval "$ac_link") 2>&5
8621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8622 test $ac_status = 0; }
8623 if { ac_try='./conftest$ac_cv_exeext'
8624 { { case "(($ac_try" in
8625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626 *) ac_try_echo=$ac_try;;
8628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8629 $as_echo "$ac_try_echo"; } >&5
8630 (eval "$ac_try") 2>&5
8632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8633 test $ac_status = 0; }; }; then
8636 if test "$cross_compiling" = maybe; then
8639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8641 as_fn_error "cannot run C compiled programs.
8642 If you meant to cross compile, use \`--host'.
8643 See \`config.log' for more details." "$LINENO" 5; }
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
8648 $as_echo "$cross_compiling" >&6; }
8650 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
8651 ac_clean_files=$ac_clean_files_save
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
8653 $as_echo_n "checking for suffix of object files... " >&6; }
8654 if test "${ac_cv_objext+set}" = set; then :
8655 $as_echo_n "(cached) " >&6
8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8668 rm -f conftest.o conftest.obj
8669 if { { ac_try="$ac_compile"
8671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8672 *) ac_try_echo=$ac_try;;
8674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8675 $as_echo "$ac_try_echo"; } >&5
8676 (eval "$ac_compile") 2>&5
8678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8679 test $ac_status = 0; }; then :
8680 for ac_file in conftest.o conftest.obj conftest.*; do
8681 test -f "$ac_file" || continue;
8683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
8684 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
8689 $as_echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8694 as_fn_error "cannot compute suffix of object files: cannot compile
8695 See \`config.log' for more details." "$LINENO" 5; }
8697 rm -f conftest.$ac_cv_objext conftest.$ac_ext
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
8700 $as_echo "$ac_cv_objext" >&6; }
8701 OBJEXT=$ac_cv_objext
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8704 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
8705 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
8706 $as_echo_n "(cached) " >&6
8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8709 /* end confdefs.h. */
8722 if ac_fn_c_try_compile "$LINENO"; then :
8727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8728 ac_cv_c_compiler_gnu=$ac_compiler_gnu
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8732 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
8733 if test $ac_compiler_gnu = yes; then
8738 ac_test_CFLAGS=${CFLAGS+set}
8739 ac_save_CFLAGS=$CFLAGS
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8741 $as_echo_n "checking whether $CC accepts -g... " >&6; }
8742 if test "${ac_cv_prog_cc_g+set}" = set; then :
8743 $as_echo_n "(cached) " >&6
8745 ac_save_c_werror_flag=$ac_c_werror_flag
8746 ac_c_werror_flag=yes
8749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750 /* end confdefs.h. */
8760 if ac_fn_c_try_compile "$LINENO"; then :
8764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8765 /* end confdefs.h. */
8775 if ac_fn_c_try_compile "$LINENO"; then :
8778 ac_c_werror_flag=$ac_save_c_werror_flag
8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781 /* end confdefs.h. */
8791 if ac_fn_c_try_compile "$LINENO"; then :
8794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8799 ac_c_werror_flag=$ac_save_c_werror_flag
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8802 $as_echo "$ac_cv_prog_cc_g" >&6; }
8803 if test "$ac_test_CFLAGS" = set; then
8804 CFLAGS=$ac_save_CFLAGS
8805 elif test $ac_cv_prog_cc_g = yes; then
8806 if test "$GCC" = yes; then
8812 if test "$GCC" = yes; then
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8819 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
8820 if test "${ac_cv_prog_cc_c89+set}" = set; then :
8821 $as_echo_n "(cached) " >&6
8823 ac_cv_prog_cc_c89=no
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8829 #include <sys/types.h>
8830 #include <sys/stat.h>
8831 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8832 struct buf { int x; };
8833 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8834 static char *e (p, i)
8840 static char *f (char * (*g) (char **, int), char **p, ...)
8845 s = g (p, va_arg (v,int));
8850 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
8851 function prototypes and stuff, but not '\xHH' hex character constants.
8852 These don't provoke an error unfortunately, instead are silently treated
8853 as 'x'. The following induces an error, until -std is added to get
8854 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
8855 array size at least. It's necessary to write '\x00'==0 to get something
8856 that's true only with -std. */
8857 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
8859 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
8860 inside strings and character constants. */
8862 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
8864 int test (int i, double x);
8865 struct s1 {int (*f) (int a);};
8866 struct s2 {int (*f) (double a);};
8867 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8873 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8878 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
8879 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8881 CC="$ac_save_CC $ac_arg"
8882 if ac_fn_c_try_compile "$LINENO"; then :
8883 ac_cv_prog_cc_c89=$ac_arg
8885 rm -f core conftest.err conftest.$ac_objext
8886 test "x$ac_cv_prog_cc_c89" != "xno" && break
8888 rm -f conftest.$ac_ext
8893 case "x$ac_cv_prog_cc_c89" in
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8896 $as_echo "none needed" >&6; } ;;
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8899 $as_echo "unsupported" >&6; } ;;
8901 CC="$CC $ac_cv_prog_cc_c89"
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8903 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
8905 if test "x$ac_cv_prog_cc_c89" != xno; then :
8910 ac_cpp='$CPP $CPPFLAGS'
8911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8915 case $ac_cv_prog_cc_stdc in #(
8917 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
8920 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
8921 if test "${ac_cv_prog_cc_c99+set}" = set; then :
8922 $as_echo_n "(cached) " >&6
8924 ac_cv_prog_cc_c99=no
8926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8927 /* end confdefs.h. */
8929 #include <stdbool.h>
8934 // Check varargs macros. These examples are taken from C99 6.10.3.5.
8935 #define debug(...) fprintf (stderr, __VA_ARGS__)
8936 #define showlist(...) puts (#__VA_ARGS__)
8937 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
8939 test_varargs_macros (void)
8944 debug ("X = %d\n", x);
8945 showlist (The first, second, and third items.);
8946 report (x>y, "x is %d but y is %d", x, y);
8949 // Check long long types.
8950 #define BIG64 18446744073709551615ull
8951 #define BIG32 4294967295ul
8952 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
8954 your preprocessor is broken;
8958 your preprocessor is broken;
8960 static long long int bignum = -9223372036854775807LL;
8961 static unsigned long long int ubignum = BIG64;
8963 struct incomplete_array
8971 const wchar_t *name;
8975 typedef const char *ccp;
8978 test_restrict (ccp restrict text)
8980 // See if C++-style comments work.
8981 // Iterate through items via the restricted pointer.
8982 // Also check for declarations in for loops.
8983 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
8988 // Check varargs and va_copy.
8990 test_varargs (const char *format, ...)
8993 va_start (args, format);
8995 va_copy (args_copy, args);
9006 str = va_arg (args_copy, const char *);
9009 number = va_arg (args_copy, int);
9012 fnumber = va_arg (args_copy, double);
9027 _Bool success = false;
9030 if (test_restrict ("String literal") == 0)
9032 char *restrict newvar = "Another string";
9035 test_varargs ("s, d' f .", "string", 65, 34.234);
9036 test_varargs_macros ();
9038 // Check flexible array members.
9039 struct incomplete_array *ia =
9040 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
9042 for (int i = 0; i < ia->datasize; ++i)
9043 ia->data[i] = i * 1.234;
9045 // Check named initializers.
9046 struct named_init ni = {
9048 .name = L"Test wide string",
9049 .average = 543.34343,
9054 int dynamic_array[ni.number];
9055 dynamic_array[ni.number - 1] = 543;
9057 // work around unused variable warnings
9058 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
9059 || dynamic_array[ni.number - 1] != 543);
9065 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
9067 CC="$ac_save_CC $ac_arg"
9068 if ac_fn_c_try_compile "$LINENO"; then :
9069 ac_cv_prog_cc_c99=$ac_arg
9071 rm -f core conftest.err conftest.$ac_objext
9072 test "x$ac_cv_prog_cc_c99" != "xno" && break
9074 rm -f conftest.$ac_ext
9079 case "x$ac_cv_prog_cc_c99" in
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9082 $as_echo "none needed" >&6; } ;;
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9085 $as_echo "unsupported" >&6; } ;;
9087 CC="$CC $ac_cv_prog_cc_c99"
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
9089 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
9091 if test "x$ac_cv_prog_cc_c99" != xno; then :
9092 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
9095 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
9096 if test "${ac_cv_prog_cc_c89+set}" = set; then :
9097 $as_echo_n "(cached) " >&6
9099 ac_cv_prog_cc_c89=no
9101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102 /* end confdefs.h. */
9105 #include <sys/types.h>
9106 #include <sys/stat.h>
9107 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
9108 struct buf { int x; };
9109 FILE * (*rcsopen) (struct buf *, struct stat *, int);
9110 static char *e (p, i)
9116 static char *f (char * (*g) (char **, int), char **p, ...)
9121 s = g (p, va_arg (v,int));
9126 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
9127 function prototypes and stuff, but not '\xHH' hex character constants.
9128 These don't provoke an error unfortunately, instead are silently treated
9129 as 'x'. The following induces an error, until -std is added to get
9130 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
9131 array size at least. It's necessary to write '\x00'==0 to get something
9132 that's true only with -std. */
9133 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
9135 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
9136 inside strings and character constants. */
9138 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
9140 int test (int i, double x);
9141 struct s1 {int (*f) (int a);};
9142 struct s2 {int (*f) (double a);};
9143 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9149 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
9154 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
9155 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9157 CC="$ac_save_CC $ac_arg"
9158 if ac_fn_c_try_compile "$LINENO"; then :
9159 ac_cv_prog_cc_c89=$ac_arg
9161 rm -f core conftest.err conftest.$ac_objext
9162 test "x$ac_cv_prog_cc_c89" != "xno" && break
9164 rm -f conftest.$ac_ext
9169 case "x$ac_cv_prog_cc_c89" in
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9172 $as_echo "none needed" >&6; } ;;
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9175 $as_echo "unsupported" >&6; } ;;
9177 CC="$CC $ac_cv_prog_cc_c89"
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
9179 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
9181 if test "x$ac_cv_prog_cc_c89" != xno; then :
9182 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
9184 ac_cv_prog_cc_stdc=no
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
9191 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
9192 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
9193 $as_echo_n "(cached) " >&6
9196 case $ac_cv_prog_cc_stdc in #(
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9199 $as_echo "unsupported" >&6; } ;; #(
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9202 $as_echo "none needed" >&6; } ;; #(
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
9205 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
9209 ac_cpp='$CPP $CPPFLAGS'
9210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9214 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9215 # On Suns, sometimes $CPP names a directory.
9216 if test -n "$CPP" && test -d "$CPP"; then
9219 if test -z "$CPP"; then
9220 if test "${ac_cv_prog_CPP+set}" = set; then :
9221 $as_echo_n "(cached) " >&6
9223 # Double quotes because CPP needs to be expanded
9224 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9227 for ac_c_preproc_warn_flag in '' yes
9229 # Use a header file that comes with gcc, so configuring glibc
9230 # with a fresh cross-compiler works.
9231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9232 # <limits.h> exists even on freestanding compilers.
9233 # On the NeXT, cc -E runs the code through the compiler's parser,
9234 # not just through cpp. "Syntax error" is here to catch this case.
9235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9236 /* end confdefs.h. */
9238 # include <limits.h>
9240 # include <assert.h>
9244 if ac_fn_c_try_cpp "$LINENO"; then :
9247 # Broken: fails on valid input.
9250 rm -f conftest.err conftest.$ac_ext
9252 # OK, works on sane cases. Now check whether nonexistent headers
9253 # can be detected and how.
9254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9255 /* end confdefs.h. */
9256 #include <ac_nonexistent.h>
9258 if ac_fn_c_try_cpp "$LINENO"; then :
9259 # Broken: success on invalid input.
9262 # Passes both tests.
9266 rm -f conftest.err conftest.$ac_ext
9269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9270 rm -f conftest.err conftest.$ac_ext
9271 if $ac_preproc_ok; then :
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9284 $as_echo "$CPP" >&6; }
9286 for ac_c_preproc_warn_flag in '' yes
9288 # Use a header file that comes with gcc, so configuring glibc
9289 # with a fresh cross-compiler works.
9290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9291 # <limits.h> exists even on freestanding compilers.
9292 # On the NeXT, cc -E runs the code through the compiler's parser,
9293 # not just through cpp. "Syntax error" is here to catch this case.
9294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9295 /* end confdefs.h. */
9297 # include <limits.h>
9299 # include <assert.h>
9303 if ac_fn_c_try_cpp "$LINENO"; then :
9306 # Broken: fails on valid input.
9309 rm -f conftest.err conftest.$ac_ext
9311 # OK, works on sane cases. Now check whether nonexistent headers
9312 # can be detected and how.
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9315 #include <ac_nonexistent.h>
9317 if ac_fn_c_try_cpp "$LINENO"; then :
9318 # Broken: success on invalid input.
9321 # Passes both tests.
9325 rm -f conftest.err conftest.$ac_ext
9328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9329 rm -f conftest.err conftest.$ac_ext
9330 if $ac_preproc_ok; then :
9333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9335 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9336 See \`config.log' for more details." "$LINENO" 5; }
9340 ac_cpp='$CPP $CPPFLAGS'
9341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9347 case $ac_cv_prog_cc_stdc in
9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9353 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
9354 #define GMP_NAIL_BITS $GMP_NAIL_BITS
9355 #define GMP_LIMB_BITS 123
9356 $DEFN_LONG_LONG_LIMB
9357 #include "$srcdir/gmp-h.in"
9359 #if ! __GMP_HAVE_PROTOTYPES
9371 if ac_fn_c_try_compile "$LINENO"; then :
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&5
9375 $as_echo "$as_me: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&2;}
9377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9383 # The C compiler on the build system, and associated tests.
9385 if test -n "$CC_FOR_BUILD"; then
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $CC_FOR_BUILD" >&5
9387 $as_echo_n "checking build system compiler $CC_FOR_BUILD... " >&6; }
9388 # remove anything that might look like compiler output to our "||" expression
9389 rm -f conftest* a.out b.out a.exe a_out.exe
9390 cat >conftest.c <<EOF
9397 gmp_compile="$CC_FOR_BUILD conftest.c"
9398 cc_for_build_works=no
9399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9400 (eval $gmp_compile) 2>&5
9402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9403 test $ac_status = 0; }; then
9404 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
9405 cc_for_build_works=yes
9408 rm -f conftest* a.out b.out a.exe a_out.exe
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
9410 $as_echo "$cc_for_build_works" >&6; }
9411 if test "$cc_for_build_works" = yes; then
9414 as_fn_error "Specified CC_FOR_BUILD doesn't seem to work" "$LINENO" 5
9417 elif test -n "$HOST_CC"; then
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $HOST_CC" >&5
9419 $as_echo_n "checking build system compiler $HOST_CC... " >&6; }
9420 # remove anything that might look like compiler output to our "||" expression
9421 rm -f conftest* a.out b.out a.exe a_out.exe
9422 cat >conftest.c <<EOF
9429 gmp_compile="$HOST_CC conftest.c"
9430 cc_for_build_works=no
9431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9432 (eval $gmp_compile) 2>&5
9434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9435 test $ac_status = 0; }; then
9436 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
9437 cc_for_build_works=yes
9440 rm -f conftest* a.out b.out a.exe a_out.exe
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
9442 $as_echo "$cc_for_build_works" >&6; }
9443 if test "$cc_for_build_works" = yes; then
9444 CC_FOR_BUILD=$HOST_CC
9446 as_fn_error "Specified HOST_CC doesn't seem to work" "$LINENO" 5
9450 for i in "$CC" "$CC $CFLAGS $CPPFLAGS" cc gcc c89 c99; do
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $i" >&5
9452 $as_echo_n "checking build system compiler $i... " >&6; }
9453 # remove anything that might look like compiler output to our "||" expression
9454 rm -f conftest* a.out b.out a.exe a_out.exe
9455 cat >conftest.c <<EOF
9462 gmp_compile="$i conftest.c"
9463 cc_for_build_works=no
9464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9465 (eval $gmp_compile) 2>&5
9467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9468 test $ac_status = 0; }; then
9469 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
9470 cc_for_build_works=yes
9473 rm -f conftest* a.out b.out a.exe a_out.exe
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
9475 $as_echo "$cc_for_build_works" >&6; }
9476 if test "$cc_for_build_works" = yes; then
9484 if test -z "$CC_FOR_BUILD"; then
9485 as_fn_error "Cannot find a build system compiler" "$LINENO" 5
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system preprocessor" >&5
9494 $as_echo_n "checking for build system preprocessor... " >&6; }
9495 if test -z "$CPP_FOR_BUILD"; then
9496 if test "${gmp_cv_prog_cpp_for_build+set}" = set; then :
9497 $as_echo_n "(cached) " >&6
9499 cat >conftest.c <<EOF
9502 for i in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"; do
9503 gmp_compile="$i conftest.c"
9504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9505 (eval $gmp_compile) 2>&5
9507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9508 test $ac_status = 0; } >&5 2>&1; then
9509 gmp_cv_prog_cpp_for_build=$i
9513 rm -f conftest* a.out b.out a.exe a_out.exe
9514 if test -z "$gmp_cv_prog_cpp_for_build"; then
9515 as_fn_error "Cannot find build system C preprocessor." "$LINENO" 5
9520 CPP_FOR_BUILD=$gmp_cv_prog_cpp_for_build
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
9523 $as_echo "$CPP_FOR_BUILD" >&6; }
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
9530 $as_echo_n "checking for build system executable suffix... " >&6; }
9531 if test "${gmp_cv_prog_exeext_for_build+set}" = set; then :
9532 $as_echo_n "(cached) " >&6
9534 cat >conftest.c <<EOF
9541 for i in .exe ,ff8 ""; do
9542 gmp_compile="$CC_FOR_BUILD conftest.c -o conftest$i"
9543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9544 (eval $gmp_compile) 2>&5
9546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9547 test $ac_status = 0; }; then
9548 if (./conftest) 2>&5; then
9549 gmp_cv_prog_exeext_for_build=$i
9555 if test "${gmp_cv_prog_exeext_for_build+set}" != set; then
9556 as_fn_error "Cannot determine executable suffix" "$LINENO" 5
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_exeext_for_build" >&5
9561 $as_echo "$gmp_cv_prog_exeext_for_build" >&6; }
9562 EXEEXT_FOR_BUILD=$gmp_cv_prog_exeext_for_build
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build system compiler is ANSI" >&5
9567 $as_echo_n "checking whether build system compiler is ANSI... " >&6; }
9568 if test "${gmp_cv_c_for_build_ansi+set}" = set; then :
9569 $as_echo_n "(cached) " >&6
9571 cat >conftest.c <<EOF
9573 main (int argc, char **argv)
9578 gmp_compile="$CC_FOR_BUILD conftest.c"
9579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9580 (eval $gmp_compile) 2>&5
9582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9583 test $ac_status = 0; }; then
9584 gmp_cv_c_for_build_ansi=yes
9586 gmp_cv_c_for_build_ansi=no
9588 rm -f conftest* a.out b.out a.exe a_out.exe
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_for_build_ansi" >&5
9592 $as_echo "$gmp_cv_c_for_build_ansi" >&6; }
9593 if test "$gmp_cv_c_for_build_ansi" = yes; then
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system compiler math library" >&5
9602 $as_echo_n "checking for build system compiler math library... " >&6; }
9603 if test "${gmp_cv_check_libm_for_build+set}" = set; then :
9604 $as_echo_n "(cached) " >&6
9606 cat >conftest.c <<EOF
9619 gmp_compile="$CC_FOR_BUILD conftest.c -lm"
9620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9621 (eval $gmp_compile) 2>&5
9623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9624 test $ac_status = 0; }; then
9625 gmp_cv_check_libm_for_build=-lm
9627 gmp_cv_check_libm_for_build=no
9629 rm -f conftest* a.out b.out a.exe a_out.exe
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_check_libm_for_build" >&5
9633 $as_echo "$gmp_cv_check_libm_for_build" >&6; }
9634 case $gmp_cv_check_libm_for_build in
9635 yes) LIBM_FOR_BUILD=-lm
9637 no) LIBM_FOR_BUILD= ;;
9638 *) LIBM_FOR_BUILD=$gmp_cv_check_libm_for_build ;;
9643 # How to assemble, used with CFLAGS etc, see mpn/Makeasm.am.
9644 # Using the compiler is a lot easier than figuring out how to invoke the
9645 # assembler directly.
9647 test -n "$CCAS" || CCAS="$CC -c"
9651 # The C++ compiler, if desired.
9653 if test $enable_cxx != no; then
9654 test_CXXFLAGS=${CXXFLAGS+set}
9656 ac_cpp='$CXXCPP $CPPFLAGS'
9657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9660 if test -z "$CXX"; then
9661 if test -n "$CCC"; then
9664 if test -n "$ac_tool_prefix"; then
9665 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9668 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9670 $as_echo_n "checking for $ac_word... " >&6; }
9671 if test "${ac_cv_prog_CXX+set}" = set; then :
9672 $as_echo_n "(cached) " >&6
9674 if test -n "$CXX"; then
9675 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9681 test -z "$as_dir" && as_dir=.
9682 for ac_exec_ext in '' $ac_executable_extensions; do
9683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9684 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9695 if test -n "$CXX"; then
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
9697 $as_echo "$CXX" >&6; }
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9700 $as_echo "no" >&6; }
9704 test -n "$CXX" && break
9707 if test -z "$CXX"; then
9709 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9711 # Extract the first word of "$ac_prog", so it can be a program name with args.
9712 set dummy $ac_prog; ac_word=$2
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9714 $as_echo_n "checking for $ac_word... " >&6; }
9715 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
9716 $as_echo_n "(cached) " >&6
9718 if test -n "$ac_ct_CXX"; then
9719 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9725 test -z "$as_dir" && as_dir=.
9726 for ac_exec_ext in '' $ac_executable_extensions; do
9727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9728 ac_cv_prog_ac_ct_CXX="$ac_prog"
9729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9738 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9739 if test -n "$ac_ct_CXX"; then
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
9741 $as_echo "$ac_ct_CXX" >&6; }
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9744 $as_echo "no" >&6; }
9748 test -n "$ac_ct_CXX" && break
9751 if test "x$ac_ct_CXX" = x; then
9754 case $cross_compiling:$ac_tool_warned in
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9758 ac_tool_warned=yes ;;
9766 # Provide some information about the compiler.
9767 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
9770 for ac_option in --version -v -V -qversion; do
9771 { { ac_try="$ac_compiler $ac_option >&5"
9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774 *) ac_try_echo=$ac_try;;
9776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9777 $as_echo "$ac_try_echo"; } >&5
9778 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9780 if test -s conftest.err; then
9782 ... rest of stderr output deleted ...
9783 10q' conftest.err >conftest.er1
9784 cat conftest.er1 >&5
9786 rm -f conftest.er1 conftest.err
9787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9788 test $ac_status = 0; }
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
9792 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9793 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
9794 $as_echo_n "(cached) " >&6
9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9810 if ac_fn_cxx_try_compile "$LINENO"; then :
9815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9816 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
9820 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9821 if test $ac_compiler_gnu = yes; then
9826 ac_test_CXXFLAGS=${CXXFLAGS+set}
9827 ac_save_CXXFLAGS=$CXXFLAGS
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
9829 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
9830 if test "${ac_cv_prog_cxx_g+set}" = set; then :
9831 $as_echo_n "(cached) " >&6
9833 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9834 ac_cxx_werror_flag=yes
9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838 /* end confdefs.h. */
9848 if ac_fn_cxx_try_compile "$LINENO"; then :
9849 ac_cv_prog_cxx_g=yes
9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h. */
9863 if ac_fn_cxx_try_compile "$LINENO"; then :
9866 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9879 if ac_fn_cxx_try_compile "$LINENO"; then :
9880 ac_cv_prog_cxx_g=yes
9882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9887 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
9890 $as_echo "$ac_cv_prog_cxx_g" >&6; }
9891 if test "$ac_test_CXXFLAGS" = set; then
9892 CXXFLAGS=$ac_save_CXXFLAGS
9893 elif test $ac_cv_prog_cxx_g = yes; then
9894 if test "$GXX" = yes; then
9900 if test "$GXX" = yes; then
9907 ac_cpp='$CPP $CPPFLAGS'
9908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9913 echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&5
9914 cxxflags_ac_prog_cxx=$CXXFLAGS
9915 cxxflags_list=ac_prog_cxx
9917 # If the user didn't specify $CXXFLAGS, then try $CFLAGS, with -g removed
9918 # if AC_PROG_CXX thinks that doesn't work. $CFLAGS stands a good chance
9919 # of working, eg. on a GNU system where CC=gcc and CXX=g++.
9921 if test "$test_CXXFLAGS" != set; then
9922 cxxflags_cflags=$CFLAGS
9923 cxxflags_list="cflags $cxxflags_list"
9924 if test "$ac_prog_cxx_g" = no; then
9925 cxxflags_cflags=`echo "$cxxflags_cflags" | sed -e 's/ -g //' -e 's/^-g //' -e 's/ -g$//'`
9929 # See if the C++ compiler works. If the user specified CXXFLAGS then all
9930 # we're doing is checking whether AC_PROG_CXX succeeded, since it doesn't
9931 # give a fatal error, just leaves CXX set to a default g++. If on the
9932 # other hand the user didn't specify CXXFLAGS then we get to try here our
9933 # $cxxflags_list alternatives.
9935 # Automake includes $CPPFLAGS in a C++ compile, so we do the same here.
9937 for cxxflags_choice in $cxxflags_list; do
9938 eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice\"
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS" >&5
9940 $as_echo_n "checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS... " >&6; }
9941 gmp_prog_cxx_works=yes
9943 # start with a plain "main()", then go on to further checks
9944 if test "$gmp_prog_cxx_works" = yes; then
9945 # remove anything that might look like compiler output to our "||" expression
9946 rm -f conftest* a.out b.out a.exe a_out.exe
9947 cat >conftest.cc <<EOF
9949 int main (void) { return 0; }
9951 echo "Test compile: " >&5
9952 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
9953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
9954 (eval $gmp_cxxcompile) 2>&5
9956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9957 test $ac_status = 0; }; then
9958 if test "$cross_compiling" = no; then
9959 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
9960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
9963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9964 test $ac_status = 0; }; }; then :;
9966 gmp_prog_cxx_works="no, program does not run"
9970 gmp_prog_cxx_works="no"
9972 case $gmp_prog_cxx_works in
9974 echo "failed program was:" >&5
9978 rm -f conftest* a.out b.out a.exe a_out.exe
9982 if test "$gmp_prog_cxx_works" = yes; then
9983 # remove anything that might look like compiler output to our "||" expression
9984 rm -f conftest* a.out b.out a.exe a_out.exe
9985 cat >conftest.cc <<EOF
9987 using namespace foo;
9989 int main (void) { return 0; }
9991 echo "Test compile: namespace" >&5
9992 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
9993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
9994 (eval $gmp_cxxcompile) 2>&5
9996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9997 test $ac_status = 0; }; then
9998 if test "$cross_compiling" = no; then
9999 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
10000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10001 (eval $ac_try) 2>&5
10003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10004 test $ac_status = 0; }; }; then :;
10006 gmp_prog_cxx_works="no, namespace, program does not run"
10010 gmp_prog_cxx_works="no, namespace"
10012 case $gmp_prog_cxx_works in
10014 echo "failed program was:" >&5
10015 cat conftest.cc >&5
10018 rm -f conftest* a.out b.out a.exe a_out.exe
10022 # GMP requires the standard C++ iostream classes
10023 if test "$gmp_prog_cxx_works" = yes; then
10024 # remove anything that might look like compiler output to our "||" expression
10025 rm -f conftest* a.out b.out a.exe a_out.exe
10026 cat >conftest.cc <<EOF
10027 /* This test rejects g++ 2.7.2 which doesn't have <iostream>, only a
10028 pre-standard iostream.h. */
10029 #include <iostream>
10031 /* This test rejects OSF 5.1 Compaq C++ in its default pre-standard iostream
10032 mode, since that mode puts cout in the global namespace, not "std". */
10033 void someoutput (void) { std::cout << 123; }
10035 int main (void) { return 0; }
10037 echo "Test compile: std iostream" >&5
10038 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
10039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
10040 (eval $gmp_cxxcompile) 2>&5
10042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10043 test $ac_status = 0; }; then
10044 if test "$cross_compiling" = no; then
10045 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
10046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10047 (eval $ac_try) 2>&5
10049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10050 test $ac_status = 0; }; }; then :;
10052 gmp_prog_cxx_works="no, std iostream, program does not run"
10056 gmp_prog_cxx_works="no, std iostream"
10058 case $gmp_prog_cxx_works in
10060 echo "failed program was:" >&5
10061 cat conftest.cc >&5
10064 rm -f conftest* a.out b.out a.exe a_out.exe
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cxx_works" >&5
10069 $as_echo "$gmp_prog_cxx_works" >&6; }
10070 case $gmp_prog_cxx_works in
10082 # If --enable-cxx=yes but a C++ compiler can't be found, then abort.
10083 if test $want_cxx = no && test $enable_cxx = yes; then
10084 as_fn_error "C++ compiler not available, see config.log for details" "$LINENO" 5
10088 if test $want_cxx = yes; then
10097 # FIXME: We're not interested in CXXCPP for ourselves, but if we don't do it
10098 # here then AC_PROG_LIBTOOL will AC_REQUIRE it (via _LT_AC_TAGCONFIG) and
10099 # hence execute it unconditionally, and that will fail if there's no C++
10100 # compiler (and no generic /lib/cpp).
10102 if test $want_cxx = yes; then
10104 ac_cpp='$CXXCPP $CPPFLAGS'
10105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10109 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10110 if test -z "$CXXCPP"; then
10111 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10112 $as_echo_n "(cached) " >&6
10114 # Double quotes because CXXCPP needs to be expanded
10115 for CXXCPP in "$CXX -E" "/lib/cpp"
10117 ac_preproc_ok=false
10118 for ac_cxx_preproc_warn_flag in '' yes
10120 # Use a header file that comes with gcc, so configuring glibc
10121 # with a fresh cross-compiler works.
10122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10123 # <limits.h> exists even on freestanding compilers.
10124 # On the NeXT, cc -E runs the code through the compiler's parser,
10125 # not just through cpp. "Syntax error" is here to catch this case.
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10129 # include <limits.h>
10131 # include <assert.h>
10135 if ac_fn_cxx_try_cpp "$LINENO"; then :
10138 # Broken: fails on valid input.
10141 rm -f conftest.err conftest.$ac_ext
10143 # OK, works on sane cases. Now check whether nonexistent headers
10144 # can be detected and how.
10145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h. */
10147 #include <ac_nonexistent.h>
10149 if ac_fn_cxx_try_cpp "$LINENO"; then :
10150 # Broken: success on invalid input.
10153 # Passes both tests.
10157 rm -f conftest.err conftest.$ac_ext
10160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10161 rm -f conftest.err conftest.$ac_ext
10162 if $ac_preproc_ok; then :
10167 ac_cv_prog_CXXCPP=$CXXCPP
10170 CXXCPP=$ac_cv_prog_CXXCPP
10172 ac_cv_prog_CXXCPP=$CXXCPP
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10175 $as_echo "$CXXCPP" >&6; }
10176 ac_preproc_ok=false
10177 for ac_cxx_preproc_warn_flag in '' yes
10179 # Use a header file that comes with gcc, so configuring glibc
10180 # with a fresh cross-compiler works.
10181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10182 # <limits.h> exists even on freestanding compilers.
10183 # On the NeXT, cc -E runs the code through the compiler's parser,
10184 # not just through cpp. "Syntax error" is here to catch this case.
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10188 # include <limits.h>
10190 # include <assert.h>
10194 if ac_fn_cxx_try_cpp "$LINENO"; then :
10197 # Broken: fails on valid input.
10200 rm -f conftest.err conftest.$ac_ext
10202 # OK, works on sane cases. Now check whether nonexistent headers
10203 # can be detected and how.
10204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205 /* end confdefs.h. */
10206 #include <ac_nonexistent.h>
10208 if ac_fn_cxx_try_cpp "$LINENO"; then :
10209 # Broken: success on invalid input.
10212 # Passes both tests.
10216 rm -f conftest.err conftest.$ac_ext
10219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10220 rm -f conftest.err conftest.$ac_ext
10221 if $ac_preproc_ok; then :
10224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10226 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
10227 See \`config.log' for more details." "$LINENO" 5; }
10231 ac_cpp='$CPP $CPPFLAGS'
10232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10239 # Path setups for Cray, according to IEEE or CFP. These must come after
10240 # deciding the compiler.
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
10244 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
10245 if test "${ac_cv_path_GREP+set}" = set; then :
10246 $as_echo_n "(cached) " >&6
10248 if test -z "$GREP"; then
10249 ac_path_GREP_found=false
10250 # Loop through the user's path and test for each of PROGNAME-LIST
10251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10252 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10255 test -z "$as_dir" && as_dir=.
10256 for ac_prog in grep ggrep; do
10257 for ac_exec_ext in '' $ac_executable_extensions; do
10258 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
10259 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
10260 # Check for GNU ac_path_GREP and select it if it is found.
10261 # Check for GNU $ac_path_GREP
10262 case `"$ac_path_GREP" --version 2>&1` in
10264 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
10267 $as_echo_n 0123456789 >"conftest.in"
10270 cat "conftest.in" "conftest.in" >"conftest.tmp"
10271 mv "conftest.tmp" "conftest.in"
10272 cp "conftest.in" "conftest.nl"
10273 $as_echo 'GREP' >> "conftest.nl"
10274 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10276 as_fn_arith $ac_count + 1 && ac_count=$as_val
10277 if test $ac_count -gt ${ac_path_GREP_max-0}; then
10278 # Best one so far, save it but keep looking for a better one
10279 ac_cv_path_GREP="$ac_path_GREP"
10280 ac_path_GREP_max=$ac_count
10282 # 10*(2^10) chars as input seems more than enough
10283 test $ac_count -gt 10 && break
10285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10288 $ac_path_GREP_found && break 3
10293 if test -z "$ac_cv_path_GREP"; then
10294 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10297 ac_cv_path_GREP=$GREP
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
10302 $as_echo "$ac_cv_path_GREP" >&6; }
10303 GREP="$ac_cv_path_GREP"
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
10307 $as_echo_n "checking for egrep... " >&6; }
10308 if test "${ac_cv_path_EGREP+set}" = set; then :
10309 $as_echo_n "(cached) " >&6
10311 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10312 then ac_cv_path_EGREP="$GREP -E"
10314 if test -z "$EGREP"; then
10315 ac_path_EGREP_found=false
10316 # Loop through the user's path and test for each of PROGNAME-LIST
10317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10321 test -z "$as_dir" && as_dir=.
10322 for ac_prog in egrep; do
10323 for ac_exec_ext in '' $ac_executable_extensions; do
10324 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10325 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
10326 # Check for GNU ac_path_EGREP and select it if it is found.
10327 # Check for GNU $ac_path_EGREP
10328 case `"$ac_path_EGREP" --version 2>&1` in
10330 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10333 $as_echo_n 0123456789 >"conftest.in"
10336 cat "conftest.in" "conftest.in" >"conftest.tmp"
10337 mv "conftest.tmp" "conftest.in"
10338 cp "conftest.in" "conftest.nl"
10339 $as_echo 'EGREP' >> "conftest.nl"
10340 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10342 as_fn_arith $ac_count + 1 && ac_count=$as_val
10343 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10344 # Best one so far, save it but keep looking for a better one
10345 ac_cv_path_EGREP="$ac_path_EGREP"
10346 ac_path_EGREP_max=$ac_count
10348 # 10*(2^10) chars as input seems more than enough
10349 test $ac_count -gt 10 && break
10351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10354 $ac_path_EGREP_found && break 3
10359 if test -z "$ac_cv_path_EGREP"; then
10360 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10363 ac_cv_path_EGREP=$EGREP
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
10369 $as_echo "$ac_cv_path_EGREP" >&6; }
10370 EGREP="$ac_cv_path_EGREP"
10375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10376 /* end confdefs.h. */
10381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10382 $EGREP "yes" >/dev/null 2>&1; then :
10383 add_path="cray/ieee"
10385 add_path="cray/cfp"; extra_functions="mulwwc90"
10391 add_path="cray/cfp"; extra_functions="mulwwj90"
10397 if test -z "$MPN_PATH"; then
10398 path="$add_path $path"
10401 # For a nail build, also look in "nails" subdirectories.
10403 if test $GMP_NAIL_BITS != 0 && test -z "$MPN_PATH"; then
10407 generic) new_path="$new_path $i" ;;
10408 *) new_path="$new_path $i/nails $i" ;;
10415 # Put all directories into CPUVEC_list so as to get a full set of
10416 # CPUVEC_SETUP_$tmp_suffix defines into config.h, even if some of them are
10417 # empty because mmx and/or sse2 had to be dropped.
10419 for i in $fat_path; do
10420 tmp_suffix=`echo $i | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
10421 CPUVEC_list="$CPUVEC_list CPUVEC_SETUP_$tmp_suffix"
10425 # If there's any sse2 or mmx in the path, check whether the assembler
10426 # supports it, and remove if not.
10428 # We only need this in ABI=32, for ABI=64 on x86_64 we can assume a new
10429 # enough assembler.
10432 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
10433 if test "$ABI" = 32; then
10434 case "$path $fat_path" in
10435 *mmx*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about MMX instructions" >&5
10436 $as_echo_n "checking if the assembler knows about MMX instructions... " >&6; }
10437 if test "${gmp_cv_asm_x86_mmx+set}" = set; then :
10438 $as_echo_n "(cached) " >&6
10440 cat >conftest.s <<EOF
10444 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
10445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
10446 (eval $gmp_assemble) 2>&5
10448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10449 test $ac_status = 0; }; then
10450 cat conftest.out >&5
10451 gmp_cv_asm_x86_mmx=yes
10454 if (dis conftest.$OBJEXT >conftest.out) 2>/dev/null; then
10455 if grep "0f 6f c1" conftest.out >/dev/null; then
10456 gmp_cv_asm_x86_mmx=movq-bug
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"dis\" not available to check for \"as\" movq bug" >&5
10460 $as_echo "$as_me: WARNING: \"dis\" not available to check for \"as\" movq bug" >&2;}
10464 cat conftest.out >&5
10465 echo "configure: failed program was:" >&5
10467 gmp_cv_asm_x86_mmx=no
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_mmx" >&5
10473 $as_echo "$gmp_cv_asm_x86_mmx" >&6; }
10475 case $gmp_cv_asm_x86_mmx in
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10478 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
10480 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has MMX code, but the assembler" >&5
10482 $as_echo "$as_me: WARNING: | Host CPU has MMX code, but the assembler" >&2;}
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
10484 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&5
10486 $as_echo "$as_me: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&2;}
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | movq operands are reversed." >&5
10488 $as_echo "$as_me: WARNING: | movq operands are reversed." >&2;}
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-MMX replacements will be used." >&5
10490 $as_echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
10492 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10494 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10498 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
10500 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&5
10502 $as_echo "$as_me: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&2;}
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
10504 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-MMX replacements will be used." >&5
10506 $as_echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
10508 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10510 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10513 if test "$gmp_cv_asm_x86_mmx" = yes; then
10520 *) tmp_path="$tmp_path $i" ;;
10526 for i in $fat_path; do
10529 *) tmp_path="$tmp_path $i" ;;
10532 fat_path="$tmp_path"
10538 case "$path $fat_path" in
10539 *sse2*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about SSE2 instructions" >&5
10540 $as_echo_n "checking if the assembler knows about SSE2 instructions... " >&6; }
10541 if test "${gmp_cv_asm_x86_sse2+set}" = set; then :
10542 $as_echo_n "(cached) " >&6
10544 cat >conftest.s <<EOF
10548 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
10549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
10550 (eval $gmp_assemble) 2>&5
10552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10553 test $ac_status = 0; }; then
10554 cat conftest.out >&5
10555 gmp_cv_asm_x86_sse2=yes
10557 cat conftest.out >&5
10558 echo "configure: failed program was:" >&5
10560 gmp_cv_asm_x86_sse2=no
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_sse2" >&5
10567 $as_echo "$gmp_cv_asm_x86_sse2" >&6; }
10568 case $gmp_cv_asm_x86_sse2 in
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10574 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
10576 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&5
10578 $as_echo "$as_me: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&2;}
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
10580 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-SSE2 replacements will be used." >&5
10582 $as_echo "$as_me: WARNING: | Non-SSE2 replacements will be used." >&2;}
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
10584 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10586 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10591 *) tmp_path="$tmp_path $i" ;;
10597 for i in $fat_path; do
10600 *) tmp_path="$tmp_path $i" ;;
10603 fat_path="$tmp_path"
10621 GMP_LDFLAGS=$GMP_LDFLAGS
10626 echo "using ABI=\"$ABI\""
10628 echo " CFLAGS=\"$CFLAGS\""
10629 echo " CPPFLAGS=\"$CPPFLAGS\""
10630 if test $want_cxx = yes; then
10631 echo " CXX=\"$CXX\""
10632 echo " CXXFLAGS=\"$CXXFLAGS\""
10634 echo " MPN_PATH=\"$path\""
10637 # Automake ansi2knr support.
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
10639 $as_echo_n "checking for function prototypes... " >&6; }
10640 if test "$ac_cv_prog_cc_c89" != no; then
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10642 $as_echo "yes" >&6; }
10644 $as_echo "#define PROTOTYPES 1" >>confdefs.h
10647 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651 $as_echo "no" >&6; }
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10655 $as_echo_n "checking for ANSI C header files... " >&6; }
10656 if test "${ac_cv_header_stdc+set}" = set; then :
10657 $as_echo_n "(cached) " >&6
10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10661 #include <stdlib.h>
10662 #include <stdarg.h>
10663 #include <string.h>
10674 if ac_fn_c_try_compile "$LINENO"; then :
10675 ac_cv_header_stdc=yes
10677 ac_cv_header_stdc=no
10679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10681 if test $ac_cv_header_stdc = yes; then
10682 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10684 /* end confdefs.h. */
10685 #include <string.h>
10688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10689 $EGREP "memchr" >/dev/null 2>&1; then :
10692 ac_cv_header_stdc=no
10698 if test $ac_cv_header_stdc = yes; then
10699 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701 /* end confdefs.h. */
10702 #include <stdlib.h>
10705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10706 $EGREP "free" >/dev/null 2>&1; then :
10709 ac_cv_header_stdc=no
10715 if test $ac_cv_header_stdc = yes; then
10716 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10717 if test "$cross_compiling" = yes; then :
10720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10723 #include <stdlib.h>
10724 #if ((' ' & 0x0FF) == 0x020)
10725 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10726 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10728 # define ISLOWER(c) \
10729 (('a' <= (c) && (c) <= 'i') \
10730 || ('j' <= (c) && (c) <= 'r') \
10731 || ('s' <= (c) && (c) <= 'z'))
10732 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10735 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10740 for (i = 0; i < 256; i++)
10741 if (XOR (islower (i), ISLOWER (i))
10742 || toupper (i) != TOUPPER (i))
10747 if ac_fn_c_try_run "$LINENO"; then :
10750 ac_cv_header_stdc=no
10752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10753 conftest.$ac_objext conftest.beam conftest.$ac_ext
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10759 $as_echo "$ac_cv_header_stdc" >&6; }
10760 if test $ac_cv_header_stdc = yes; then
10762 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10766 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10767 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10768 inttypes.h stdint.h unistd.h
10770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10771 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10773 eval as_val=\$$as_ac_Header
10774 if test "x$as_val" = x""yes; then :
10775 cat >>confdefs.h <<_ACEOF
10776 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10785 if test "$ac_cv_prog_cc_stdc" != no; then
10788 U=_ ANSI2KNR=./ansi2knr
10790 # Ensure some checks needed by ansi2knr itself.
10792 for ac_header in string.h
10794 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
10795 if test "x$ac_cv_header_string_h" = x""yes; then :
10796 cat >>confdefs.h <<_ACEOF
10797 #define HAVE_STRING_H 1
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports --noexecstack option" >&5
10808 $as_echo_n "checking whether assembler supports --noexecstack option... " >&6; }
10809 if test "${cl_cv_as_noexecstack+set}" = set; then :
10810 $as_echo_n "(cached) " >&6
10812 cat > conftest.c <<EOF
10815 if { ac_try='${CC} $CFLAGS $CPPFLAGS
10816 -S -o conftest.s conftest.c >/dev/null'
10817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10818 (eval $ac_try) 2>&5
10820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10821 test $ac_status = 0; }; } \
10822 && grep .note.GNU-stack conftest.s >/dev/null \
10823 && { ac_try='${CC} $CFLAGS $CPPFLAGS -Wa,--noexecstack
10824 -c -o conftest.o conftest.s >/dev/null'
10825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10826 (eval $ac_try) 2>&5
10828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10829 test $ac_status = 0; }; }
10831 cl_cv_as_noexecstack=yes
10833 cl_cv_as_noexecstack=no
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_as_noexecstack" >&5
10838 $as_echo "$cl_cv_as_noexecstack" >&6; }
10839 if test "$cl_cv_as_noexecstack" = yes; then
10840 ASMFLAGS="$ASMFLAGS -Wa,--noexecstack"
10847 if test -n "$ac_tool_prefix"; then
10848 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10849 set dummy ${ac_tool_prefix}ar; ac_word=$2
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10851 $as_echo_n "checking for $ac_word... " >&6; }
10852 if test "${ac_cv_prog_AR+set}" = set; then :
10853 $as_echo_n "(cached) " >&6
10855 if test -n "$AR"; then
10856 ac_cv_prog_AR="$AR" # Let the user override the test.
10858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10859 for as_dir in $PATH
10862 test -z "$as_dir" && as_dir=.
10863 for ac_exec_ext in '' $ac_executable_extensions; do
10864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10865 ac_cv_prog_AR="${ac_tool_prefix}ar"
10866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10876 if test -n "$AR"; then
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10878 $as_echo "$AR" >&6; }
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10881 $as_echo "no" >&6; }
10886 if test -z "$ac_cv_prog_AR"; then
10888 # Extract the first word of "ar", so it can be a program name with args.
10889 set dummy ar; ac_word=$2
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10891 $as_echo_n "checking for $ac_word... " >&6; }
10892 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10893 $as_echo_n "(cached) " >&6
10895 if test -n "$ac_ct_AR"; then
10896 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10899 for as_dir in $PATH
10902 test -z "$as_dir" && as_dir=.
10903 for ac_exec_ext in '' $ac_executable_extensions; do
10904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10905 ac_cv_prog_ac_ct_AR="ar"
10906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10915 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10916 if test -n "$ac_ct_AR"; then
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10918 $as_echo "$ac_ct_AR" >&6; }
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10921 $as_echo "no" >&6; }
10924 if test "x$ac_ct_AR" = x; then
10927 case $cross_compiling:$ac_tool_warned in
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10931 ac_tool_warned=yes ;;
10936 AR="$ac_cv_prog_AR"
10939 if test -z "$gmp_user_AR"; then
10940 eval arflags=\"\$ar${abi1}_flags\"
10941 test -n "$arflags" || eval arflags=\"\$ar${abi2}_flags\"
10942 if test -n "$arflags"; then
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra ar flags" >&5
10944 $as_echo_n "checking for extra ar flags... " >&6; }
10946 ac_cv_prog_AR="$AR $arflags"
10947 ac_cv_prog_ac_ct_AR="$AR $arflags"
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arflags" >&5
10949 $as_echo "$arflags" >&6; }
10952 if test -z "$AR_FLAGS"; then
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10959 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10960 if test "${lt_cv_path_NM+set}" = set; then :
10961 $as_echo_n "(cached) " >&6
10963 if test -n "$NM"; then
10964 # Let the user override the test.
10965 lt_cv_path_NM="$NM"
10967 lt_nm_to_check="${ac_tool_prefix}nm"
10968 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10969 lt_nm_to_check="$lt_nm_to_check nm"
10971 for lt_tmp_nm in $lt_nm_to_check; do
10972 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10973 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10975 test -z "$ac_dir" && ac_dir=.
10976 tmp_nm="$ac_dir/$lt_tmp_nm"
10977 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10978 # Check to see if the nm accepts a BSD-compat flag.
10979 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10980 # nm: unknown option "B" ignored
10981 # Tru64's nm complains that /dev/null is an invalid object file
10982 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10983 */dev/null* | *'Invalid file or object type'*)
10984 lt_cv_path_NM="$tmp_nm -B"
10988 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10990 lt_cv_path_NM="$tmp_nm -p"
10994 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10995 continue # so that we can try to find one that supports BSD flags
11004 : ${lt_cv_path_NM=no}
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11008 $as_echo "$lt_cv_path_NM" >&6; }
11009 if test "$lt_cv_path_NM" != "no"; then
11010 NM="$lt_cv_path_NM"
11012 # Didn't find any BSD compatible name lister, look for dumpbin.
11013 if test -n "$DUMPBIN"; then :
11014 # Let the user override the test.
11016 if test -n "$ac_tool_prefix"; then
11017 for ac_prog in dumpbin "link -dump"
11019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11022 $as_echo_n "checking for $ac_word... " >&6; }
11023 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11024 $as_echo_n "(cached) " >&6
11026 if test -n "$DUMPBIN"; then
11027 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030 for as_dir in $PATH
11033 test -z "$as_dir" && as_dir=.
11034 for ac_exec_ext in '' $ac_executable_extensions; do
11035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11036 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11046 DUMPBIN=$ac_cv_prog_DUMPBIN
11047 if test -n "$DUMPBIN"; then
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11049 $as_echo "$DUMPBIN" >&6; }
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 $as_echo "no" >&6; }
11056 test -n "$DUMPBIN" && break
11059 if test -z "$DUMPBIN"; then
11060 ac_ct_DUMPBIN=$DUMPBIN
11061 for ac_prog in dumpbin "link -dump"
11063 # Extract the first word of "$ac_prog", so it can be a program name with args.
11064 set dummy $ac_prog; ac_word=$2
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11066 $as_echo_n "checking for $ac_word... " >&6; }
11067 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11068 $as_echo_n "(cached) " >&6
11070 if test -n "$ac_ct_DUMPBIN"; then
11071 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11074 for as_dir in $PATH
11077 test -z "$as_dir" && as_dir=.
11078 for ac_exec_ext in '' $ac_executable_extensions; do
11079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11080 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11090 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11091 if test -n "$ac_ct_DUMPBIN"; then
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11093 $as_echo "$ac_ct_DUMPBIN" >&6; }
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11096 $as_echo "no" >&6; }
11100 test -n "$ac_ct_DUMPBIN" && break
11103 if test "x$ac_ct_DUMPBIN" = x; then
11106 case $cross_compiling:$ac_tool_warned in
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11110 ac_tool_warned=yes ;;
11112 DUMPBIN=$ac_ct_DUMPBIN
11116 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11118 DUMPBIN="$DUMPBIN -symbols"
11126 if test "$DUMPBIN" != ":"; then
11130 test -z "$NM" && NM=nm
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11138 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11139 if test "${lt_cv_nm_interface+set}" = set; then :
11140 $as_echo_n "(cached) " >&6
11142 lt_cv_nm_interface="BSD nm"
11143 echo "int some_variable = 0;" > conftest.$ac_ext
11144 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11145 (eval "$ac_compile" 2>conftest.err)
11146 cat conftest.err >&5
11147 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11148 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11149 cat conftest.err >&5
11150 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11151 cat conftest.out >&5
11152 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11153 lt_cv_nm_interface="MS dumpbin"
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11158 $as_echo "$lt_cv_nm_interface" >&6; }
11161 # FIXME: When cross compiling (ie. $ac_tool_prefix not empty), libtool
11162 # defaults to plain "nm" if a "${ac_tool_prefix}nm" is not found. In this
11163 # case run it again to try the native "nm", firstly so that likely locations
11164 # are searched, secondly so that -B or -p are added if necessary for BSD
11165 # format. This is necessary for instance on OSF with "./configure
11166 # --build=alphaev5-dec-osf --host=alphaev6-dec-osf".
11168 if test -z "$gmp_user_NM" && test -n "$ac_tool_prefix" && test "$NM" = nm; then
11169 $as_unset lt_cv_path_NM
11170 gmp_save_ac_tool_prefix=$ac_tool_prefix
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11174 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11175 if test "${lt_cv_path_NM+set}" = set; then :
11176 $as_echo_n "(cached) " >&6
11178 if test -n "$NM"; then
11179 # Let the user override the test.
11180 lt_cv_path_NM="$NM"
11182 lt_nm_to_check="${ac_tool_prefix}nm"
11183 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11184 lt_nm_to_check="$lt_nm_to_check nm"
11186 for lt_tmp_nm in $lt_nm_to_check; do
11187 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11188 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11190 test -z "$ac_dir" && ac_dir=.
11191 tmp_nm="$ac_dir/$lt_tmp_nm"
11192 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11193 # Check to see if the nm accepts a BSD-compat flag.
11194 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11195 # nm: unknown option "B" ignored
11196 # Tru64's nm complains that /dev/null is an invalid object file
11197 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11198 */dev/null* | *'Invalid file or object type'*)
11199 lt_cv_path_NM="$tmp_nm -B"
11203 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11205 lt_cv_path_NM="$tmp_nm -p"
11209 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11210 continue # so that we can try to find one that supports BSD flags
11219 : ${lt_cv_path_NM=no}
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11223 $as_echo "$lt_cv_path_NM" >&6; }
11224 if test "$lt_cv_path_NM" != "no"; then
11225 NM="$lt_cv_path_NM"
11227 # Didn't find any BSD compatible name lister, look for dumpbin.
11228 if test -n "$DUMPBIN"; then :
11229 # Let the user override the test.
11231 if test -n "$ac_tool_prefix"; then
11232 for ac_prog in dumpbin "link -dump"
11234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11237 $as_echo_n "checking for $ac_word... " >&6; }
11238 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11239 $as_echo_n "(cached) " >&6
11241 if test -n "$DUMPBIN"; then
11242 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11245 for as_dir in $PATH
11248 test -z "$as_dir" && as_dir=.
11249 for ac_exec_ext in '' $ac_executable_extensions; do
11250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11251 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11261 DUMPBIN=$ac_cv_prog_DUMPBIN
11262 if test -n "$DUMPBIN"; then
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11264 $as_echo "$DUMPBIN" >&6; }
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11267 $as_echo "no" >&6; }
11271 test -n "$DUMPBIN" && break
11274 if test -z "$DUMPBIN"; then
11275 ac_ct_DUMPBIN=$DUMPBIN
11276 for ac_prog in dumpbin "link -dump"
11278 # Extract the first word of "$ac_prog", so it can be a program name with args.
11279 set dummy $ac_prog; ac_word=$2
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11281 $as_echo_n "checking for $ac_word... " >&6; }
11282 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11283 $as_echo_n "(cached) " >&6
11285 if test -n "$ac_ct_DUMPBIN"; then
11286 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11289 for as_dir in $PATH
11292 test -z "$as_dir" && as_dir=.
11293 for ac_exec_ext in '' $ac_executable_extensions; do
11294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11295 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11305 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11306 if test -n "$ac_ct_DUMPBIN"; then
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11308 $as_echo "$ac_ct_DUMPBIN" >&6; }
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11311 $as_echo "no" >&6; }
11315 test -n "$ac_ct_DUMPBIN" && break
11318 if test "x$ac_ct_DUMPBIN" = x; then
11321 case $cross_compiling:$ac_tool_warned in
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11325 ac_tool_warned=yes ;;
11327 DUMPBIN=$ac_ct_DUMPBIN
11331 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11333 DUMPBIN="$DUMPBIN -symbols"
11341 if test "$DUMPBIN" != ":"; then
11345 test -z "$NM" && NM=nm
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11350 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11351 if test "${lt_cv_nm_interface+set}" = set; then :
11352 $as_echo_n "(cached) " >&6
11354 lt_cv_nm_interface="BSD nm"
11355 echo "int some_variable = 0;" > conftest.$ac_ext
11356 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11357 (eval "$ac_compile" 2>conftest.err)
11358 cat conftest.err >&5
11359 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11360 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11361 cat conftest.err >&5
11362 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11363 cat conftest.out >&5
11364 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11365 lt_cv_nm_interface="MS dumpbin"
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11370 $as_echo "$lt_cv_nm_interface" >&6; }
11372 ac_tool_prefix=$gmp_save_ac_tool_prefix
11375 if test -z "$gmp_user_NM"; then
11376 eval nmflags=\"\$nm${abi1}_flags\"
11377 test -n "$nmflags" || eval nmflags=\"\$nm${abi2}_flags\"
11378 if test -n "$nmflags"; then
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra nm flags" >&5
11380 $as_echo_n "checking for extra nm flags... " >&6; }
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nmflags" >&5
11383 $as_echo "$nmflags" >&6; }
11389 # FIXME: On AIX 3 and 4, $libname.a is included in libtool
11390 # $library_names_spec, so libgmp.a becomes a symlink to libgmp.so, making
11391 # it impossible to build shared and static libraries simultaneously.
11392 # Disable shared libraries by default, but let the user override with
11393 # --enable-shared --disable-static.
11395 # FIXME: This $libname.a problem looks like it might apply to *-*-amigaos*
11396 # and *-*-os2* too, but wait for someone to test this before worrying
11397 # about it. If there is a problem then of course libtool is the right
11401 if test -z "$enable_shared"; then enable_shared=no; fi ;;
11405 # Configs for Windows DLLs.
11407 enable_win32_dll=yes
11410 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11411 if test -n "$ac_tool_prefix"; then
11412 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11413 set dummy ${ac_tool_prefix}as; ac_word=$2
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11415 $as_echo_n "checking for $ac_word... " >&6; }
11416 if test "${ac_cv_prog_AS+set}" = set; then :
11417 $as_echo_n "(cached) " >&6
11419 if test -n "$AS"; then
11420 ac_cv_prog_AS="$AS" # Let the user override the test.
11422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11423 for as_dir in $PATH
11426 test -z "$as_dir" && as_dir=.
11427 for ac_exec_ext in '' $ac_executable_extensions; do
11428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11429 ac_cv_prog_AS="${ac_tool_prefix}as"
11430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11440 if test -n "$AS"; then
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11442 $as_echo "$AS" >&6; }
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11445 $as_echo "no" >&6; }
11450 if test -z "$ac_cv_prog_AS"; then
11452 # Extract the first word of "as", so it can be a program name with args.
11453 set dummy as; ac_word=$2
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11455 $as_echo_n "checking for $ac_word... " >&6; }
11456 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
11457 $as_echo_n "(cached) " >&6
11459 if test -n "$ac_ct_AS"; then
11460 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11463 for as_dir in $PATH
11466 test -z "$as_dir" && as_dir=.
11467 for ac_exec_ext in '' $ac_executable_extensions; do
11468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11469 ac_cv_prog_ac_ct_AS="as"
11470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11479 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11480 if test -n "$ac_ct_AS"; then
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11482 $as_echo "$ac_ct_AS" >&6; }
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11485 $as_echo "no" >&6; }
11488 if test "x$ac_ct_AS" = x; then
11491 case $cross_compiling:$ac_tool_warned in
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11495 ac_tool_warned=yes ;;
11500 AS="$ac_cv_prog_AS"
11503 if test -n "$ac_tool_prefix"; then
11504 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11505 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11507 $as_echo_n "checking for $ac_word... " >&6; }
11508 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
11509 $as_echo_n "(cached) " >&6
11511 if test -n "$DLLTOOL"; then
11512 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515 for as_dir in $PATH
11518 test -z "$as_dir" && as_dir=.
11519 for ac_exec_ext in '' $ac_executable_extensions; do
11520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11521 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11531 DLLTOOL=$ac_cv_prog_DLLTOOL
11532 if test -n "$DLLTOOL"; then
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11534 $as_echo "$DLLTOOL" >&6; }
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537 $as_echo "no" >&6; }
11542 if test -z "$ac_cv_prog_DLLTOOL"; then
11543 ac_ct_DLLTOOL=$DLLTOOL
11544 # Extract the first word of "dlltool", so it can be a program name with args.
11545 set dummy dlltool; ac_word=$2
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11547 $as_echo_n "checking for $ac_word... " >&6; }
11548 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
11549 $as_echo_n "(cached) " >&6
11551 if test -n "$ac_ct_DLLTOOL"; then
11552 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555 for as_dir in $PATH
11558 test -z "$as_dir" && as_dir=.
11559 for ac_exec_ext in '' $ac_executable_extensions; do
11560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11561 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11571 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11572 if test -n "$ac_ct_DLLTOOL"; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11574 $as_echo "$ac_ct_DLLTOOL" >&6; }
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577 $as_echo "no" >&6; }
11580 if test "x$ac_ct_DLLTOOL" = x; then
11583 case $cross_compiling:$ac_tool_warned in
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11587 ac_tool_warned=yes ;;
11589 DLLTOOL=$ac_ct_DLLTOOL
11592 DLLTOOL="$ac_cv_prog_DLLTOOL"
11595 if test -n "$ac_tool_prefix"; then
11596 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11597 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11599 $as_echo_n "checking for $ac_word... " >&6; }
11600 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11601 $as_echo_n "(cached) " >&6
11603 if test -n "$OBJDUMP"; then
11604 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607 for as_dir in $PATH
11610 test -z "$as_dir" && as_dir=.
11611 for ac_exec_ext in '' $ac_executable_extensions; do
11612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11613 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11623 OBJDUMP=$ac_cv_prog_OBJDUMP
11624 if test -n "$OBJDUMP"; then
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11626 $as_echo "$OBJDUMP" >&6; }
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629 $as_echo "no" >&6; }
11634 if test -z "$ac_cv_prog_OBJDUMP"; then
11635 ac_ct_OBJDUMP=$OBJDUMP
11636 # Extract the first word of "objdump", so it can be a program name with args.
11637 set dummy objdump; ac_word=$2
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11639 $as_echo_n "checking for $ac_word... " >&6; }
11640 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11641 $as_echo_n "(cached) " >&6
11643 if test -n "$ac_ct_OBJDUMP"; then
11644 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11647 for as_dir in $PATH
11650 test -z "$as_dir" && as_dir=.
11651 for ac_exec_ext in '' $ac_executable_extensions; do
11652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11653 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11663 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11664 if test -n "$ac_ct_OBJDUMP"; then
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11666 $as_echo "$ac_ct_OBJDUMP" >&6; }
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11669 $as_echo "no" >&6; }
11672 if test "x$ac_ct_OBJDUMP" = x; then
11675 case $cross_compiling:$ac_tool_warned in
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11679 ac_tool_warned=yes ;;
11681 OBJDUMP=$ac_ct_OBJDUMP
11684 OBJDUMP="$ac_cv_prog_OBJDUMP"
11690 test -z "$AS" && AS=as
11696 test -z "$DLLTOOL" && DLLTOOL=dlltool
11702 test -z "$OBJDUMP" && OBJDUMP=objdump
11714 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
11715 # By default, build only static.
11716 if test -z "$enable_shared"; then
11719 # Don't allow both static and DLL.
11720 if test "$enable_shared" != no && test "$enable_static" != no; then
11721 as_fn_error "cannot build both static and DLL, since gmp.h is different for each.
11722 Use \"--disable-static --enable-shared\" to build just a DLL." "$LINENO" 5
11725 # "-no-undefined" is required when building a DLL, see documentation on
11726 # AC_LIBTOOL_WIN32_DLL.
11728 # "-Wl,--export-all-symbols" is a bit of a hack, it gets all libgmp and
11729 # libgmpxx functions and variables exported. This is what libtool did
11730 # in the past, and it's convenient for us in the test programs.
11732 # Maybe it'd be prudent to check for --export-all-symbols before using
11733 # it, but it seems to have been in ld since at least 2000, and there's
11734 # not really any alternative we want to take up at the moment.
11736 # "-Wl,output-def" is used to get a .def file for use by MS lib to make
11737 # a .lib import library, described in the manual. libgmp-3.dll.def
11738 # corresponds to the libmp-3.dll.def generated by libtool (as a result
11739 # of -export-symbols on that library).
11741 # Incidentally, libtool does generate an import library libgmp.dll.a,
11742 # but it's "ar" format and cannot be used by the MS linker. There
11743 # doesn't seem to be any GNU tool for generating or converting to .lib.
11745 # FIXME: The .def files produced by -Wl,output-def include isascii,
11746 # iscsym, iscsymf and toascii, apparently because mingw ctype.h doesn't
11747 # inline isascii (used in gmp). It gives an extern inline for
11748 # __isascii, but for some reason not the plain isascii.
11750 if test "$enable_shared" = yes; then
11751 GMP_LDFLAGS="$GMP_LDFLAGS -no-undefined -Wl,--export-all-symbols"
11752 LIBGMP_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmp-3.dll.def"
11753 LIBGMPXX_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmpxx-3.dll.def"
11760 # Ensure that $CONFIG_SHELL is available for AC_LIBTOOL_SYS_MAX_CMD_LEN.
11761 # It's often set already by _LT_AC_PROG_ECHO_BACKSLASH or
11762 # _AS_LINENO_PREPARE, but not always.
11764 # The symptom of CONFIG_SHELL unset is some "expr" errors during the test,
11765 # and an empty result. This only happens when invoked as "sh configure",
11766 # ie. no path, and can be seen for instance on ia64-*-hpux*.
11768 # FIXME: Newer libtool should have it's own fix for this.
11770 if test -z "$CONFIG_SHELL"; then
11771 CONFIG_SHELL=$SHELL
11774 # Enable CXX in libtool only if we want it, and never enable GCJ, nor RC on
11775 # mingw and cygwin. Under --disable-cxx this avoids some error messages
11776 # from libtool arising from the fact we didn't actually run AC_PROG_CXX.
11777 # Notice that any user-supplied --with-tags setting takes precedence.
11779 # FIXME: Is this the right way to get this effect? Very possibly not, but
11780 # the current _LT_AC_TAGCONFIG doesn't really suggest an alternative.
11782 if test "${with_tags+set}" != set; then
11783 if test $want_cxx = yes; then
11790 # The dead hand of AC_REQUIRE makes AC_PROG_LIBTOOL expand and execute
11791 # AC_PROG_F77, even when F77 is not in the selected with_tags. This is
11792 # probably harmless, but it's unsightly and bloats our configure, so pretend
11793 # AC_PROG_F77 has been expanded already.
11795 # FIXME: Rumour has it libtool will one day provide a way for a configure.in
11796 # to say what it wants from among supported languages etc.
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11803 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11808 macro_version='2.4.2'
11809 macro_revision='1.3337'
11823 ltmain="$ac_aux_dir/ltmain.sh"
11825 # Backslashify metacharacters that are still active within
11826 # double-quoted strings.
11827 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11829 # Same as above, but do not quote variable references.
11830 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11832 # Sed substitution to delay expansion of an escaped shell variable in a
11833 # double_quote_subst'ed string.
11834 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11836 # Sed substitution to delay expansion of an escaped single quote.
11837 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11839 # Sed substitution to avoid accidental globbing in evaled expressions
11840 no_glob_subst='s/\*/\\\*/g'
11842 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11843 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11844 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11847 $as_echo_n "checking how to print strings... " >&6; }
11848 # Test print first, because it will be a builtin if present.
11849 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11850 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11852 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11855 # Use this function as a fallback that always works.
11856 func_fallback_echo ()
11858 eval 'cat <<_LTECHO_EOF
11862 ECHO='func_fallback_echo'
11865 # func_echo_all arg...
11866 # Invoke $ECHO with all args, space-separated.
11873 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11874 $as_echo "printf" >&6; } ;;
11875 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11876 $as_echo "print -r" >&6; } ;;
11877 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11878 $as_echo "cat" >&6; } ;;
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11895 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11896 if test "${ac_cv_path_SED+set}" = set; then :
11897 $as_echo_n "(cached) " >&6
11899 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11900 for ac_i in 1 2 3 4 5 6 7; do
11901 ac_script="$ac_script$as_nl$ac_script"
11903 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11904 { ac_script=; unset ac_script;}
11905 if test -z "$SED"; then
11906 ac_path_SED_found=false
11907 # Loop through the user's path and test for each of PROGNAME-LIST
11908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909 for as_dir in $PATH
11912 test -z "$as_dir" && as_dir=.
11913 for ac_prog in sed gsed; do
11914 for ac_exec_ext in '' $ac_executable_extensions; do
11915 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11916 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11917 # Check for GNU ac_path_SED and select it if it is found.
11918 # Check for GNU $ac_path_SED
11919 case `"$ac_path_SED" --version 2>&1` in
11921 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11924 $as_echo_n 0123456789 >"conftest.in"
11927 cat "conftest.in" "conftest.in" >"conftest.tmp"
11928 mv "conftest.tmp" "conftest.in"
11929 cp "conftest.in" "conftest.nl"
11930 $as_echo '' >> "conftest.nl"
11931 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11932 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11933 as_fn_arith $ac_count + 1 && ac_count=$as_val
11934 if test $ac_count -gt ${ac_path_SED_max-0}; then
11935 # Best one so far, save it but keep looking for a better one
11936 ac_cv_path_SED="$ac_path_SED"
11937 ac_path_SED_max=$ac_count
11939 # 10*(2^10) chars as input seems more than enough
11940 test $ac_count -gt 10 && break
11942 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11945 $ac_path_SED_found && break 3
11950 if test -z "$ac_cv_path_SED"; then
11951 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11954 ac_cv_path_SED=$SED
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11959 $as_echo "$ac_cv_path_SED" >&6; }
11960 SED="$ac_cv_path_SED"
11963 test -z "$SED" && SED=sed
11964 Xsed="$SED -e 1s/^X//"
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11977 $as_echo_n "checking for fgrep... " >&6; }
11978 if test "${ac_cv_path_FGREP+set}" = set; then :
11979 $as_echo_n "(cached) " >&6
11981 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11982 then ac_cv_path_FGREP="$GREP -F"
11984 if test -z "$FGREP"; then
11985 ac_path_FGREP_found=false
11986 # Loop through the user's path and test for each of PROGNAME-LIST
11987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11988 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11991 test -z "$as_dir" && as_dir=.
11992 for ac_prog in fgrep; do
11993 for ac_exec_ext in '' $ac_executable_extensions; do
11994 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11995 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11996 # Check for GNU ac_path_FGREP and select it if it is found.
11997 # Check for GNU $ac_path_FGREP
11998 case `"$ac_path_FGREP" --version 2>&1` in
12000 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12003 $as_echo_n 0123456789 >"conftest.in"
12006 cat "conftest.in" "conftest.in" >"conftest.tmp"
12007 mv "conftest.tmp" "conftest.in"
12008 cp "conftest.in" "conftest.nl"
12009 $as_echo 'FGREP' >> "conftest.nl"
12010 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12011 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12012 as_fn_arith $ac_count + 1 && ac_count=$as_val
12013 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12014 # Best one so far, save it but keep looking for a better one
12015 ac_cv_path_FGREP="$ac_path_FGREP"
12016 ac_path_FGREP_max=$ac_count
12018 # 10*(2^10) chars as input seems more than enough
12019 test $ac_count -gt 10 && break
12021 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12024 $ac_path_FGREP_found && break 3
12029 if test -z "$ac_cv_path_FGREP"; then
12030 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12033 ac_cv_path_FGREP=$FGREP
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12039 $as_echo "$ac_cv_path_FGREP" >&6; }
12040 FGREP="$ac_cv_path_FGREP"
12043 test -z "$GREP" && GREP=grep
12063 # Check whether --with-gnu-ld was given.
12064 if test "${with_gnu_ld+set}" = set; then :
12065 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12071 if test "$GCC" = yes; then
12072 # Check if gcc -print-prog-name=ld gives a path.
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12074 $as_echo_n "checking for ld used by $CC... " >&6; }
12077 # gcc leaves a trailing carriage return which upsets mingw
12078 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12080 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12083 # Accept absolute paths.
12085 re_direlt='/[^/][^/]*/\.\./'
12086 # Canonicalize the pathname of ld
12087 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12088 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12089 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12091 test -z "$LD" && LD="$ac_prog"
12094 # If it fails, then pretend we aren't using GCC.
12098 # If it is relative, then search for the first ld in PATH.
12099 with_gnu_ld=unknown
12102 elif test "$with_gnu_ld" = yes; then
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12104 $as_echo_n "checking for GNU ld... " >&6; }
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12107 $as_echo_n "checking for non-GNU ld... " >&6; }
12109 if test "${lt_cv_path_LD+set}" = set; then :
12110 $as_echo_n "(cached) " >&6
12112 if test -z "$LD"; then
12113 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12114 for ac_dir in $PATH; do
12116 test -z "$ac_dir" && ac_dir=.
12117 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12118 lt_cv_path_LD="$ac_dir/$ac_prog"
12119 # Check to see if the program is GNU ld. I'd rather use --version,
12120 # but apparently some variants of GNU ld only accept -v.
12121 # Break only if it was the GNU/non-GNU ld that we prefer.
12122 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12123 *GNU* | *'with BFD'*)
12124 test "$with_gnu_ld" != no && break
12127 test "$with_gnu_ld" != yes && break
12134 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12138 LD="$lt_cv_path_LD"
12139 if test -n "$LD"; then
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12141 $as_echo "$LD" >&6; }
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144 $as_echo "no" >&6; }
12146 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12148 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12149 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12150 $as_echo_n "(cached) " >&6
12152 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12153 case `$LD -v 2>&1 </dev/null` in
12154 *GNU* | *'with BFD'*)
12155 lt_cv_prog_gnu_ld=yes
12158 lt_cv_prog_gnu_ld=no
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12163 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12164 with_gnu_ld=$lt_cv_prog_gnu_ld
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12175 $as_echo_n "checking whether ln -s works... " >&6; }
12177 if test "$LN_S" = "ln -s"; then
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12179 $as_echo "yes" >&6; }
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12182 $as_echo "no, using $LN_S" >&6; }
12185 # find the maximum length of command line arguments
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12187 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12188 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12189 $as_echo_n "(cached) " >&6
12196 # On DJGPP, this test can blow up pretty badly due to problems in libc
12197 # (any single argument exceeding 2000 bytes causes a buffer overrun
12198 # during glob expansion). Even if it were fixed, the result of this
12199 # check would be larger than it should be.
12200 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12204 # Under GNU Hurd, this test is not required because there is
12205 # no limit to the length of command line arguments.
12206 # Libtool will interpret -1 as no limit whatsoever
12207 lt_cv_sys_max_cmd_len=-1;
12210 cygwin* | mingw* | cegcc*)
12211 # On Win9x/ME, this test blows up -- it succeeds, but takes
12212 # about 5 minutes as the teststring grows exponentially.
12213 # Worse, since 9x/ME are not pre-emptively multitasking,
12214 # you end up with a "frozen" computer, even though with patience
12215 # the test eventually succeeds (with a max line length of 256k).
12216 # Instead, let's just punt: use the minimum linelength reported by
12217 # all of the supported platforms: 8192 (on NT/2K/XP).
12218 lt_cv_sys_max_cmd_len=8192;
12222 # On MiNT this can take a long time and run out of memory.
12223 lt_cv_sys_max_cmd_len=8192;
12227 # On AmigaOS with pdksh, this test takes hours, literally.
12228 # So we just punt and use a minimum line length of 8192.
12229 lt_cv_sys_max_cmd_len=8192;
12232 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12233 # This has been around since 386BSD, at least. Likely further.
12234 if test -x /sbin/sysctl; then
12235 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12236 elif test -x /usr/sbin/sysctl; then
12237 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12239 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12241 # And add a safety zone
12242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12247 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12248 lt_cv_sys_max_cmd_len=196608
12252 # The test takes a long time on OS/2.
12253 lt_cv_sys_max_cmd_len=8192
12257 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12258 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12259 # nice to cause kernel panics so lets avoid the loop below.
12260 # First set a reasonable default.
12261 lt_cv_sys_max_cmd_len=16384
12263 if test -x /sbin/sysconfig; then
12264 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12265 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12270 lt_cv_sys_max_cmd_len=102400
12272 sysv5* | sco5v6* | sysv4.2uw2*)
12273 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12274 if test -n "$kargmax"; then
12275 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12277 lt_cv_sys_max_cmd_len=32768
12281 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12282 if test -n "$lt_cv_sys_max_cmd_len"; then
12283 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12284 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12286 # Make teststring a little bigger before we do anything with it.
12287 # a 1K string should be a reasonable start.
12288 for i in 1 2 3 4 5 6 7 8 ; do
12289 teststring=$teststring$teststring
12291 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12292 # If test is not a shell built-in, we'll probably end up computing a
12293 # maximum length that is only half of the actual maximum length, but
12295 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
12296 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12297 test $i != 17 # 1/2 MB should be enough
12300 teststring=$teststring$teststring
12302 # Only check the string length outside the loop.
12303 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12305 # Add a significant safety factor because C++ compilers can tack on
12306 # massive amounts of additional arguments before passing them to the
12307 # linker. It appears as though 1/2 is a usable value.
12308 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12315 if test -n $lt_cv_sys_max_cmd_len ; then
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12317 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12320 $as_echo "none" >&6; }
12322 max_cmd_len=$lt_cv_sys_max_cmd_len
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12334 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12335 # Try some XSI features
12337 ( _lt_dummy="a/b/c"
12338 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
12340 && eval 'test $(( 1 + 1 )) -eq 2 \
12341 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12344 $as_echo "$xsi_shell" >&6; }
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12348 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12350 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12352 && lt_shell_append=yes
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12354 $as_echo "$lt_shell_append" >&6; }
12357 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12367 # test EBCDIC or ASCII
12368 case `echo X|tr X '\101'` in
12369 A) # ASCII based system
12370 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12371 lt_SP2NL='tr \040 \012'
12372 lt_NL2SP='tr \015\012 \040\040'
12374 *) # EBCDIC based system
12375 lt_SP2NL='tr \100 \n'
12376 lt_NL2SP='tr \r\n \100\100'
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12389 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
12390 if test "${lt_cv_to_host_file_cmd+set}" = set; then :
12391 $as_echo_n "(cached) " >&6
12396 *-*-mingw* ) # actually msys
12397 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12400 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12402 * ) # otherwise, assume *nix
12403 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12409 *-*-mingw* ) # actually msys
12410 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12413 lt_cv_to_host_file_cmd=func_convert_file_noop
12415 * ) # otherwise, assume *nix
12416 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12420 * ) # unhandled hosts (and "normal" native builds)
12421 lt_cv_to_host_file_cmd=func_convert_file_noop
12427 to_host_file_cmd=$lt_cv_to_host_file_cmd
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12429 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12436 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
12437 if test "${lt_cv_to_tool_file_cmd+set}" = set; then :
12438 $as_echo_n "(cached) " >&6
12440 #assume ordinary cross tools, or native build.
12441 lt_cv_to_tool_file_cmd=func_convert_file_noop
12445 *-*-mingw* ) # actually msys
12446 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12454 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12456 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12463 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12464 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12465 $as_echo_n "(cached) " >&6
12467 lt_cv_ld_reload_flag='-r'
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12470 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12471 reload_flag=$lt_cv_ld_reload_flag
12472 case $reload_flag in
12474 *) reload_flag=" $reload_flag" ;;
12476 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12478 cygwin* | mingw* | pw32* | cegcc*)
12479 if test "$GCC" != yes; then
12484 if test "$GCC" = yes; then
12485 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12487 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12500 if test -n "$ac_tool_prefix"; then
12501 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12502 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12504 $as_echo_n "checking for $ac_word... " >&6; }
12505 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12506 $as_echo_n "(cached) " >&6
12508 if test -n "$OBJDUMP"; then
12509 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12512 for as_dir in $PATH
12515 test -z "$as_dir" && as_dir=.
12516 for ac_exec_ext in '' $ac_executable_extensions; do
12517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12518 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12528 OBJDUMP=$ac_cv_prog_OBJDUMP
12529 if test -n "$OBJDUMP"; then
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12531 $as_echo "$OBJDUMP" >&6; }
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534 $as_echo "no" >&6; }
12539 if test -z "$ac_cv_prog_OBJDUMP"; then
12540 ac_ct_OBJDUMP=$OBJDUMP
12541 # Extract the first word of "objdump", so it can be a program name with args.
12542 set dummy objdump; ac_word=$2
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12544 $as_echo_n "checking for $ac_word... " >&6; }
12545 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12546 $as_echo_n "(cached) " >&6
12548 if test -n "$ac_ct_OBJDUMP"; then
12549 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552 for as_dir in $PATH
12555 test -z "$as_dir" && as_dir=.
12556 for ac_exec_ext in '' $ac_executable_extensions; do
12557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12558 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12568 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12569 if test -n "$ac_ct_OBJDUMP"; then
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12571 $as_echo "$ac_ct_OBJDUMP" >&6; }
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12574 $as_echo "no" >&6; }
12577 if test "x$ac_ct_OBJDUMP" = x; then
12580 case $cross_compiling:$ac_tool_warned in
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12584 ac_tool_warned=yes ;;
12586 OBJDUMP=$ac_ct_OBJDUMP
12589 OBJDUMP="$ac_cv_prog_OBJDUMP"
12592 test -z "$OBJDUMP" && OBJDUMP=objdump
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12600 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12601 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12602 $as_echo_n "(cached) " >&6
12604 lt_cv_file_magic_cmd='$MAGIC_CMD'
12605 lt_cv_file_magic_test_file=
12606 lt_cv_deplibs_check_method='unknown'
12607 # Need to set the preceding variable on all platforms that support
12608 # interlibrary dependencies.
12609 # 'none' -- dependencies not supported.
12610 # `unknown' -- same as none, but documents that we really don't know.
12611 # 'pass_all' -- all dependencies passed with no checks.
12612 # 'test_compile' -- check by making test program.
12613 # 'file_magic [[regex]]' -- check by looking for files in library path
12614 # which responds to the $file_magic_cmd with a given extended regex.
12615 # If you have `file' or equivalent on your system and you're not sure
12616 # whether `pass_all' will *always* work, you probably want this one.
12620 lt_cv_deplibs_check_method=pass_all
12624 lt_cv_deplibs_check_method=pass_all
12628 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12629 lt_cv_file_magic_cmd='/usr/bin/file -L'
12630 lt_cv_file_magic_test_file=/shlib/libc.so
12634 # func_win32_libid is a shell function defined in ltmain.sh
12635 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12636 lt_cv_file_magic_cmd='func_win32_libid'
12640 # Base MSYS/MinGW do not provide the 'file' command needed by
12641 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12642 # unless we find 'file', for example because we are cross-compiling.
12643 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12644 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12645 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12646 lt_cv_file_magic_cmd='func_win32_libid'
12648 # Keep this pattern in sync with the one in func_win32_libid.
12649 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12650 lt_cv_file_magic_cmd='$OBJDUMP -f'
12655 # use the weaker test based on 'objdump'. See mingw*.
12656 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12657 lt_cv_file_magic_cmd='$OBJDUMP -f'
12660 darwin* | rhapsody*)
12661 lt_cv_deplibs_check_method=pass_all
12664 freebsd* | dragonfly*)
12665 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12668 # Not sure whether the presence of OpenBSD here was a mistake.
12669 # Let's accept both of them until this is cleared up.
12670 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12671 lt_cv_file_magic_cmd=/usr/bin/file
12672 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12676 lt_cv_deplibs_check_method=pass_all
12681 lt_cv_deplibs_check_method=pass_all
12685 lt_cv_deplibs_check_method=pass_all
12688 hpux10.20* | hpux11*)
12689 lt_cv_file_magic_cmd=/usr/bin/file
12692 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12693 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12696 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]'
12697 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12700 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12701 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12707 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12711 irix5* | irix6* | nonstopux*)
12713 *-32|*"-32 ") libmagic=32-bit;;
12714 *-n32|*"-n32 ") libmagic=N32;;
12715 *-64|*"-64 ") libmagic=64-bit;;
12716 *) libmagic=never-match;;
12718 lt_cv_deplibs_check_method=pass_all
12721 # This must be glibc/ELF.
12722 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12723 lt_cv_deplibs_check_method=pass_all
12727 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12728 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12735 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12736 lt_cv_file_magic_cmd=/usr/bin/file
12737 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12741 lt_cv_deplibs_check_method=pass_all
12745 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12746 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12748 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12752 osf3* | osf4* | osf5*)
12753 lt_cv_deplibs_check_method=pass_all
12757 lt_cv_deplibs_check_method=pass_all
12761 lt_cv_deplibs_check_method=pass_all
12764 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12765 lt_cv_deplibs_check_method=pass_all
12769 case $host_vendor in
12771 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]'
12772 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12775 lt_cv_deplibs_check_method=pass_all
12778 lt_cv_file_magic_cmd='/bin/file'
12779 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12782 lt_cv_file_magic_cmd='/bin/file'
12783 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12784 lt_cv_file_magic_test_file=/lib/libc.so
12787 lt_cv_deplibs_check_method=pass_all
12790 lt_cv_deplibs_check_method=pass_all
12796 lt_cv_deplibs_check_method=pass_all
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12802 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12806 if test "$build" = "$host"; then
12809 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12810 want_nocaseglob=yes
12812 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12818 file_magic_cmd=$lt_cv_file_magic_cmd
12819 deplibs_check_method=$lt_cv_deplibs_check_method
12820 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12843 if test -n "$ac_tool_prefix"; then
12844 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12845 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12847 $as_echo_n "checking for $ac_word... " >&6; }
12848 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
12849 $as_echo_n "(cached) " >&6
12851 if test -n "$DLLTOOL"; then
12852 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12855 for as_dir in $PATH
12858 test -z "$as_dir" && as_dir=.
12859 for ac_exec_ext in '' $ac_executable_extensions; do
12860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12861 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12871 DLLTOOL=$ac_cv_prog_DLLTOOL
12872 if test -n "$DLLTOOL"; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12874 $as_echo "$DLLTOOL" >&6; }
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12877 $as_echo "no" >&6; }
12882 if test -z "$ac_cv_prog_DLLTOOL"; then
12883 ac_ct_DLLTOOL=$DLLTOOL
12884 # Extract the first word of "dlltool", so it can be a program name with args.
12885 set dummy dlltool; ac_word=$2
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12887 $as_echo_n "checking for $ac_word... " >&6; }
12888 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
12889 $as_echo_n "(cached) " >&6
12891 if test -n "$ac_ct_DLLTOOL"; then
12892 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895 for as_dir in $PATH
12898 test -z "$as_dir" && as_dir=.
12899 for ac_exec_ext in '' $ac_executable_extensions; do
12900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12901 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12911 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12912 if test -n "$ac_ct_DLLTOOL"; then
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12914 $as_echo "$ac_ct_DLLTOOL" >&6; }
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12917 $as_echo "no" >&6; }
12920 if test "x$ac_ct_DLLTOOL" = x; then
12923 case $cross_compiling:$ac_tool_warned in
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12927 ac_tool_warned=yes ;;
12929 DLLTOOL=$ac_ct_DLLTOOL
12932 DLLTOOL="$ac_cv_prog_DLLTOOL"
12935 test -z "$DLLTOOL" && DLLTOOL=dlltool
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12944 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12945 if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then :
12946 $as_echo_n "(cached) " >&6
12948 lt_cv_sharedlib_from_linklib_cmd='unknown'
12951 cygwin* | mingw* | pw32* | cegcc*)
12952 # two different shell functions defined in ltmain.sh
12953 # decide which to use based on capabilities of $DLLTOOL
12954 case `$DLLTOOL --help 2>&1` in
12955 *--identify-strict*)
12956 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12959 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12964 # fallback: assume linklib IS sharedlib
12965 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12971 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12972 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12973 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12981 if test -n "$ac_tool_prefix"; then
12984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12987 $as_echo_n "checking for $ac_word... " >&6; }
12988 if test "${ac_cv_prog_AR+set}" = set; then :
12989 $as_echo_n "(cached) " >&6
12991 if test -n "$AR"; then
12992 ac_cv_prog_AR="$AR" # Let the user override the test.
12994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12995 for as_dir in $PATH
12998 test -z "$as_dir" && as_dir=.
12999 for ac_exec_ext in '' $ac_executable_extensions; do
13000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13001 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13012 if test -n "$AR"; then
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13014 $as_echo "$AR" >&6; }
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13017 $as_echo "no" >&6; }
13021 test -n "$AR" && break
13024 if test -z "$AR"; then
13028 # Extract the first word of "$ac_prog", so it can be a program name with args.
13029 set dummy $ac_prog; ac_word=$2
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13031 $as_echo_n "checking for $ac_word... " >&6; }
13032 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13033 $as_echo_n "(cached) " >&6
13035 if test -n "$ac_ct_AR"; then
13036 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13039 for as_dir in $PATH
13042 test -z "$as_dir" && as_dir=.
13043 for ac_exec_ext in '' $ac_executable_extensions; do
13044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13045 ac_cv_prog_ac_ct_AR="$ac_prog"
13046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13055 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13056 if test -n "$ac_ct_AR"; then
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13058 $as_echo "$ac_ct_AR" >&6; }
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13061 $as_echo "no" >&6; }
13065 test -n "$ac_ct_AR" && break
13068 if test "x$ac_ct_AR" = x; then
13071 case $cross_compiling:$ac_tool_warned in
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13075 ac_tool_warned=yes ;;
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13095 $as_echo_n "checking for archiver @FILE support... " >&6; }
13096 if test "${lt_cv_ar_at_file+set}" = set; then :
13097 $as_echo_n "(cached) " >&6
13099 lt_cv_ar_at_file=no
13100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13101 /* end confdefs.h. */
13111 if ac_fn_c_try_compile "$LINENO"; then :
13112 echo conftest.$ac_objext > conftest.lst
13113 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13115 (eval $lt_ar_try) 2>&5
13117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13118 test $ac_status = 0; }
13119 if test "$ac_status" -eq 0; then
13120 # Ensure the archiver fails upon bogus file names.
13121 rm -f conftest.$ac_objext libconftest.a
13122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13123 (eval $lt_ar_try) 2>&5
13125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13126 test $ac_status = 0; }
13127 if test "$ac_status" -ne 0; then
13131 rm -f conftest.* libconftest.a
13134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13138 $as_echo "$lt_cv_ar_at_file" >&6; }
13140 if test "x$lt_cv_ar_at_file" = xno; then
13141 archiver_list_spec=
13143 archiver_list_spec=$lt_cv_ar_at_file
13152 if test -n "$ac_tool_prefix"; then
13153 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13154 set dummy ${ac_tool_prefix}strip; ac_word=$2
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13156 $as_echo_n "checking for $ac_word... " >&6; }
13157 if test "${ac_cv_prog_STRIP+set}" = set; then :
13158 $as_echo_n "(cached) " >&6
13160 if test -n "$STRIP"; then
13161 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13164 for as_dir in $PATH
13167 test -z "$as_dir" && as_dir=.
13168 for ac_exec_ext in '' $ac_executable_extensions; do
13169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13170 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13180 STRIP=$ac_cv_prog_STRIP
13181 if test -n "$STRIP"; then
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13183 $as_echo "$STRIP" >&6; }
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13186 $as_echo "no" >&6; }
13191 if test -z "$ac_cv_prog_STRIP"; then
13193 # Extract the first word of "strip", so it can be a program name with args.
13194 set dummy strip; ac_word=$2
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13196 $as_echo_n "checking for $ac_word... " >&6; }
13197 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13198 $as_echo_n "(cached) " >&6
13200 if test -n "$ac_ct_STRIP"; then
13201 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13204 for as_dir in $PATH
13207 test -z "$as_dir" && as_dir=.
13208 for ac_exec_ext in '' $ac_executable_extensions; do
13209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13210 ac_cv_prog_ac_ct_STRIP="strip"
13211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13220 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13221 if test -n "$ac_ct_STRIP"; then
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13223 $as_echo "$ac_ct_STRIP" >&6; }
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13229 if test "x$ac_ct_STRIP" = x; then
13232 case $cross_compiling:$ac_tool_warned in
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13236 ac_tool_warned=yes ;;
13241 STRIP="$ac_cv_prog_STRIP"
13244 test -z "$STRIP" && STRIP=:
13251 if test -n "$ac_tool_prefix"; then
13252 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13253 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13255 $as_echo_n "checking for $ac_word... " >&6; }
13256 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13257 $as_echo_n "(cached) " >&6
13259 if test -n "$RANLIB"; then
13260 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13263 for as_dir in $PATH
13266 test -z "$as_dir" && as_dir=.
13267 for ac_exec_ext in '' $ac_executable_extensions; do
13268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13269 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13279 RANLIB=$ac_cv_prog_RANLIB
13280 if test -n "$RANLIB"; then
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13282 $as_echo "$RANLIB" >&6; }
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13285 $as_echo "no" >&6; }
13290 if test -z "$ac_cv_prog_RANLIB"; then
13291 ac_ct_RANLIB=$RANLIB
13292 # Extract the first word of "ranlib", so it can be a program name with args.
13293 set dummy ranlib; ac_word=$2
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13295 $as_echo_n "checking for $ac_word... " >&6; }
13296 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13297 $as_echo_n "(cached) " >&6
13299 if test -n "$ac_ct_RANLIB"; then
13300 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13303 for as_dir in $PATH
13306 test -z "$as_dir" && as_dir=.
13307 for ac_exec_ext in '' $ac_executable_extensions; do
13308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13309 ac_cv_prog_ac_ct_RANLIB="ranlib"
13310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13319 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13320 if test -n "$ac_ct_RANLIB"; then
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13322 $as_echo "$ac_ct_RANLIB" >&6; }
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13325 $as_echo "no" >&6; }
13328 if test "x$ac_ct_RANLIB" = x; then
13331 case $cross_compiling:$ac_tool_warned in
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13335 ac_tool_warned=yes ;;
13337 RANLIB=$ac_ct_RANLIB
13340 RANLIB="$ac_cv_prog_RANLIB"
13343 test -z "$RANLIB" && RANLIB=:
13350 # Determine commands to create old-style static archives.
13351 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13352 old_postinstall_cmds='chmod 644 $oldlib'
13353 old_postuninstall_cmds=
13355 if test -n "$RANLIB"; then
13358 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13361 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13364 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13369 lock_old_archive_extraction=yes ;;
13371 lock_old_archive_extraction=no ;;
13412 # If no C compiler was specified, use CC.
13415 # If no C compiler flags were specified, use CFLAGS.
13416 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13418 # Allow CC to be a program name with arguments.
13422 # Check for command to grab the raw symbol name followed by C symbol from nm.
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13424 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13425 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13426 $as_echo_n "(cached) " >&6
13429 # These are sane defaults that work on at least a few old systems.
13430 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13432 # Character class describing NM global symbol codes.
13433 symcode='[BCDEGRST]'
13435 # Regexp to match symbols that can be accessed directly from C.
13436 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13438 # Define system-specific variables.
13443 cygwin* | mingw* | pw32* | cegcc*)
13444 symcode='[ABCDGISTW]'
13447 if test "$host_cpu" = ia64; then
13448 symcode='[ABCDEGRST]'
13451 irix* | nonstopux*)
13452 symcode='[BCDEGRST]'
13455 symcode='[BCDEGQRST]'
13466 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13474 # If we're using GNU nm, then use its standard symbol codes.
13475 case `$NM -V 2>&1` in
13476 *GNU* | *'with BFD'*)
13477 symcode='[ABCDGIRSTW]' ;;
13480 # Transform an extracted symbol line into a proper C declaration.
13481 # Some systems (esp. on ia64) link data and code symbols differently,
13482 # so use this general approach.
13483 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13485 # Transform an extracted symbol line into symbol name and symbol address
13486 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13487 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'"
13489 # Handle CRLF in mingw tool chain
13493 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13497 # Try without a prefix underscore, then with it.
13498 for ac_symprfx in "" "_"; do
13500 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13501 symxfrm="\\1 $ac_symprfx\\2 \\2"
13503 # Write the raw and C identifiers.
13504 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13505 # Fake it for dumpbin and say T for any non-static function
13506 # and D for any global variable.
13507 # Also find C++ and __fastcall symbols from MSVC++,
13508 # which start with @ or ?.
13509 lt_cv_sys_global_symbol_pipe="$AWK '"\
13510 " {last_section=section; section=\$ 3};"\
13511 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13512 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13513 " \$ 0!~/External *\|/{next};"\
13514 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13515 " {if(hide[section]) next};"\
13516 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13517 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13518 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13519 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13520 " ' prfx=^$ac_symprfx"
13522 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13524 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
13526 # Check to see that the pipe works correctly.
13530 cat > conftest.$ac_ext <<_LT_EOF
13535 void nm_test_func(void);
13536 void nm_test_func(void){}
13540 int main(){nm_test_var='a';nm_test_func();return(0);}
13543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13544 (eval $ac_compile) 2>&5
13546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13547 test $ac_status = 0; }; then
13548 # Now try to grab the symbols.
13550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13551 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13554 test $ac_status = 0; } && test -s "$nlist"; then
13555 # Try sorting and uniquifying the output.
13556 if sort "$nlist" | uniq > "$nlist"T; then
13557 mv -f "$nlist"T "$nlist"
13562 # Make sure that we snagged all the symbols we need.
13563 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13564 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13565 cat <<_LT_EOF > conftest.$ac_ext
13566 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
13567 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
13568 /* DATA imports from DLLs on WIN32 con't be const, because runtime
13569 relocations are performed -- see ld's documentation on pseudo-relocs. */
13570 # define LT_DLSYM_CONST
13571 #elif defined(__osf__)
13572 /* This system does not cope well with relocations in const data. */
13573 # define LT_DLSYM_CONST
13575 # define LT_DLSYM_CONST const
13583 # Now generate the symbol file.
13584 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13586 cat <<_LT_EOF >> conftest.$ac_ext
13588 /* The mapping between symbol names and symbols. */
13589 LT_DLSYM_CONST struct {
13593 lt__PROGRAM__LTX_preloaded_symbols[] =
13595 { "@PROGRAM@", (void *) 0 },
13597 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13598 cat <<\_LT_EOF >> conftest.$ac_ext
13602 /* This works around a problem in FreeBSD linker */
13603 #ifdef FREEBSD_WORKAROUND
13604 static const void *lt_preloaded_setup() {
13605 return lt__PROGRAM__LTX_preloaded_symbols;
13613 # Now try linking the two files.
13614 mv conftest.$ac_objext conftstm.$ac_objext
13615 lt_globsym_save_LIBS=$LIBS
13616 lt_globsym_save_CFLAGS=$CFLAGS
13617 LIBS="conftstm.$ac_objext"
13618 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13620 (eval $ac_link) 2>&5
13622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13623 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13626 LIBS=$lt_globsym_save_LIBS
13627 CFLAGS=$lt_globsym_save_CFLAGS
13629 echo "cannot find nm_test_func in $nlist" >&5
13632 echo "cannot find nm_test_var in $nlist" >&5
13635 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13638 echo "$progname: failed program was:" >&5
13639 cat conftest.$ac_ext >&5
13641 rm -rf conftest* conftst*
13643 # Do not use the global_symbol_pipe unless it works.
13644 if test "$pipe_works" = yes; then
13647 lt_cv_sys_global_symbol_pipe=
13653 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13654 lt_cv_sys_global_symbol_to_cdecl=
13656 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13658 $as_echo "failed" >&6; }
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13661 $as_echo "ok" >&6; }
13664 # Response file support.
13665 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13666 nm_file_list_spec='@'
13667 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13668 nm_file_list_spec='@'
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13698 $as_echo_n "checking for sysroot... " >&6; }
13700 # Check whether --with-sysroot was given.
13701 if test "${with_sysroot+set}" = set; then :
13702 withval=$with_sysroot;
13709 case ${with_sysroot} in #(
13711 if test "$GCC" = yes; then
13712 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13716 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
13722 $as_echo "${with_sysroot}" >&6; }
13723 as_fn_error "The sysroot must be an absolute path." "$LINENO" 5
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13728 $as_echo "${lt_sysroot:-no}" >&6; }
13734 # Check whether --enable-libtool-lock was given.
13735 if test "${enable_libtool_lock+set}" = set; then :
13736 enableval=$enable_libtool_lock;
13739 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13741 # Some flags need to be propagated to the compiler or linker for good
13745 # Find out which ABI we are using.
13746 echo 'int i;' > conftest.$ac_ext
13747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13748 (eval $ac_compile) 2>&5
13750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13751 test $ac_status = 0; }; then
13752 case `/usr/bin/file conftest.$ac_objext` in
13754 HPUX_IA64_MODE="32"
13757 HPUX_IA64_MODE="64"
13764 # Find out which ABI we are using.
13765 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13767 (eval $ac_compile) 2>&5
13769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13770 test $ac_status = 0; }; then
13771 if test "$lt_cv_prog_gnu_ld" = yes; then
13772 case `/usr/bin/file conftest.$ac_objext` in
13774 LD="${LD-ld} -melf32bsmip"
13777 LD="${LD-ld} -melf32bmipn32"
13780 LD="${LD-ld} -melf64bmip"
13784 case `/usr/bin/file conftest.$ac_objext` in
13800 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13801 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13802 # Find out which ABI we are using.
13803 echo 'int i;' > conftest.$ac_ext
13804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13805 (eval $ac_compile) 2>&5
13807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13808 test $ac_status = 0; }; then
13809 case `/usr/bin/file conftest.o` in
13812 x86_64-*kfreebsd*-gnu)
13813 LD="${LD-ld} -m elf_i386_fbsd"
13816 LD="${LD-ld} -m elf_i386"
13818 ppc64-*linux*|powerpc64-*linux*)
13819 LD="${LD-ld} -m elf32ppclinux"
13822 LD="${LD-ld} -m elf_s390"
13825 LD="${LD-ld} -m elf32_sparc"
13831 x86_64-*kfreebsd*-gnu)
13832 LD="${LD-ld} -m elf_x86_64_fbsd"
13835 LD="${LD-ld} -m elf_x86_64"
13837 ppc*-*linux*|powerpc*-*linux*)
13838 LD="${LD-ld} -m elf64ppc"
13840 s390*-*linux*|s390*-*tpf*)
13841 LD="${LD-ld} -m elf64_s390"
13844 LD="${LD-ld} -m elf64_sparc"
13854 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13855 SAVE_CFLAGS="$CFLAGS"
13856 CFLAGS="$CFLAGS -belf"
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13858 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13859 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13860 $as_echo_n "(cached) " >&6
13863 ac_cpp='$CPP $CPPFLAGS'
13864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13869 /* end confdefs.h. */
13879 if ac_fn_c_try_link "$LINENO"; then :
13880 lt_cv_cc_needs_belf=yes
13882 lt_cv_cc_needs_belf=no
13884 rm -f core conftest.err conftest.$ac_objext \
13885 conftest$ac_exeext conftest.$ac_ext
13887 ac_cpp='$CPP $CPPFLAGS'
13888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13894 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13895 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13896 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13897 CFLAGS="$SAVE_CFLAGS"
13901 # Find out which ABI we are using.
13902 echo 'int i;' > conftest.$ac_ext
13903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13904 (eval $ac_compile) 2>&5
13906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13907 test $ac_status = 0; }; then
13908 case `/usr/bin/file conftest.o` in
13910 case $lt_cv_prog_gnu_ld in
13914 LD="${LD-ld} -m elf_x86_64"
13917 LD="${LD-ld} -m elf64_sparc"
13920 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13921 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13926 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13938 need_locks="$enable_libtool_lock"
13940 if test -n "$ac_tool_prefix"; then
13941 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13942 set dummy ${ac_tool_prefix}mt; ac_word=$2
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13944 $as_echo_n "checking for $ac_word... " >&6; }
13945 if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then :
13946 $as_echo_n "(cached) " >&6
13948 if test -n "$MANIFEST_TOOL"; then
13949 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13952 for as_dir in $PATH
13955 test -z "$as_dir" && as_dir=.
13956 for ac_exec_ext in '' $ac_executable_extensions; do
13957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13958 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13968 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13969 if test -n "$MANIFEST_TOOL"; then
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13971 $as_echo "$MANIFEST_TOOL" >&6; }
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13974 $as_echo "no" >&6; }
13979 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13980 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13981 # Extract the first word of "mt", so it can be a program name with args.
13982 set dummy mt; ac_word=$2
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13984 $as_echo_n "checking for $ac_word... " >&6; }
13985 if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then :
13986 $as_echo_n "(cached) " >&6
13988 if test -n "$ac_ct_MANIFEST_TOOL"; then
13989 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13992 for as_dir in $PATH
13995 test -z "$as_dir" && as_dir=.
13996 for ac_exec_ext in '' $ac_executable_extensions; do
13997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13998 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14008 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14009 if test -n "$ac_ct_MANIFEST_TOOL"; then
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14011 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14014 $as_echo "no" >&6; }
14017 if test "x$ac_ct_MANIFEST_TOOL" = x; then
14020 case $cross_compiling:$ac_tool_warned in
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14024 ac_tool_warned=yes ;;
14026 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14029 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14032 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14034 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14035 if test "${lt_cv_path_mainfest_tool+set}" = set; then :
14036 $as_echo_n "(cached) " >&6
14038 lt_cv_path_mainfest_tool=no
14039 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14040 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14041 cat conftest.err >&5
14042 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14043 lt_cv_path_mainfest_tool=yes
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14048 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
14049 if test "x$lt_cv_path_mainfest_tool" != xyes; then
14059 rhapsody* | darwin*)
14060 if test -n "$ac_tool_prefix"; then
14061 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14062 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14064 $as_echo_n "checking for $ac_word... " >&6; }
14065 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14066 $as_echo_n "(cached) " >&6
14068 if test -n "$DSYMUTIL"; then
14069 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14072 for as_dir in $PATH
14075 test -z "$as_dir" && as_dir=.
14076 for ac_exec_ext in '' $ac_executable_extensions; do
14077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14078 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14088 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14089 if test -n "$DSYMUTIL"; then
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14091 $as_echo "$DSYMUTIL" >&6; }
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14094 $as_echo "no" >&6; }
14099 if test -z "$ac_cv_prog_DSYMUTIL"; then
14100 ac_ct_DSYMUTIL=$DSYMUTIL
14101 # Extract the first word of "dsymutil", so it can be a program name with args.
14102 set dummy dsymutil; ac_word=$2
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14104 $as_echo_n "checking for $ac_word... " >&6; }
14105 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14106 $as_echo_n "(cached) " >&6
14108 if test -n "$ac_ct_DSYMUTIL"; then
14109 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14112 for as_dir in $PATH
14115 test -z "$as_dir" && as_dir=.
14116 for ac_exec_ext in '' $ac_executable_extensions; do
14117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14118 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14128 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14129 if test -n "$ac_ct_DSYMUTIL"; then
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14131 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14134 $as_echo "no" >&6; }
14137 if test "x$ac_ct_DSYMUTIL" = x; then
14140 case $cross_compiling:$ac_tool_warned in
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14144 ac_tool_warned=yes ;;
14146 DSYMUTIL=$ac_ct_DSYMUTIL
14149 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14152 if test -n "$ac_tool_prefix"; then
14153 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14154 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14156 $as_echo_n "checking for $ac_word... " >&6; }
14157 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14158 $as_echo_n "(cached) " >&6
14160 if test -n "$NMEDIT"; then
14161 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14164 for as_dir in $PATH
14167 test -z "$as_dir" && as_dir=.
14168 for ac_exec_ext in '' $ac_executable_extensions; do
14169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14170 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14180 NMEDIT=$ac_cv_prog_NMEDIT
14181 if test -n "$NMEDIT"; then
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14183 $as_echo "$NMEDIT" >&6; }
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14186 $as_echo "no" >&6; }
14191 if test -z "$ac_cv_prog_NMEDIT"; then
14192 ac_ct_NMEDIT=$NMEDIT
14193 # Extract the first word of "nmedit", so it can be a program name with args.
14194 set dummy nmedit; ac_word=$2
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14196 $as_echo_n "checking for $ac_word... " >&6; }
14197 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14198 $as_echo_n "(cached) " >&6
14200 if test -n "$ac_ct_NMEDIT"; then
14201 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14204 for as_dir in $PATH
14207 test -z "$as_dir" && as_dir=.
14208 for ac_exec_ext in '' $ac_executable_extensions; do
14209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14210 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14220 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14221 if test -n "$ac_ct_NMEDIT"; then
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14223 $as_echo "$ac_ct_NMEDIT" >&6; }
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14226 $as_echo "no" >&6; }
14229 if test "x$ac_ct_NMEDIT" = x; then
14232 case $cross_compiling:$ac_tool_warned in
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14236 ac_tool_warned=yes ;;
14238 NMEDIT=$ac_ct_NMEDIT
14241 NMEDIT="$ac_cv_prog_NMEDIT"
14244 if test -n "$ac_tool_prefix"; then
14245 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14246 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14248 $as_echo_n "checking for $ac_word... " >&6; }
14249 if test "${ac_cv_prog_LIPO+set}" = set; then :
14250 $as_echo_n "(cached) " >&6
14252 if test -n "$LIPO"; then
14253 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14256 for as_dir in $PATH
14259 test -z "$as_dir" && as_dir=.
14260 for ac_exec_ext in '' $ac_executable_extensions; do
14261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14262 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14272 LIPO=$ac_cv_prog_LIPO
14273 if test -n "$LIPO"; then
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14275 $as_echo "$LIPO" >&6; }
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14278 $as_echo "no" >&6; }
14283 if test -z "$ac_cv_prog_LIPO"; then
14285 # Extract the first word of "lipo", so it can be a program name with args.
14286 set dummy lipo; ac_word=$2
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14288 $as_echo_n "checking for $ac_word... " >&6; }
14289 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14290 $as_echo_n "(cached) " >&6
14292 if test -n "$ac_ct_LIPO"; then
14293 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14296 for as_dir in $PATH
14299 test -z "$as_dir" && as_dir=.
14300 for ac_exec_ext in '' $ac_executable_extensions; do
14301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14302 ac_cv_prog_ac_ct_LIPO="lipo"
14303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14312 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14313 if test -n "$ac_ct_LIPO"; then
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14315 $as_echo "$ac_ct_LIPO" >&6; }
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14318 $as_echo "no" >&6; }
14321 if test "x$ac_ct_LIPO" = x; then
14324 case $cross_compiling:$ac_tool_warned in
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14328 ac_tool_warned=yes ;;
14333 LIPO="$ac_cv_prog_LIPO"
14336 if test -n "$ac_tool_prefix"; then
14337 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14338 set dummy ${ac_tool_prefix}otool; ac_word=$2
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14340 $as_echo_n "checking for $ac_word... " >&6; }
14341 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14342 $as_echo_n "(cached) " >&6
14344 if test -n "$OTOOL"; then
14345 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14348 for as_dir in $PATH
14351 test -z "$as_dir" && as_dir=.
14352 for ac_exec_ext in '' $ac_executable_extensions; do
14353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14354 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14364 OTOOL=$ac_cv_prog_OTOOL
14365 if test -n "$OTOOL"; then
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14367 $as_echo "$OTOOL" >&6; }
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14370 $as_echo "no" >&6; }
14375 if test -z "$ac_cv_prog_OTOOL"; then
14377 # Extract the first word of "otool", so it can be a program name with args.
14378 set dummy otool; ac_word=$2
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14380 $as_echo_n "checking for $ac_word... " >&6; }
14381 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14382 $as_echo_n "(cached) " >&6
14384 if test -n "$ac_ct_OTOOL"; then
14385 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14388 for as_dir in $PATH
14391 test -z "$as_dir" && as_dir=.
14392 for ac_exec_ext in '' $ac_executable_extensions; do
14393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14394 ac_cv_prog_ac_ct_OTOOL="otool"
14395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14404 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14405 if test -n "$ac_ct_OTOOL"; then
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14407 $as_echo "$ac_ct_OTOOL" >&6; }
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14410 $as_echo "no" >&6; }
14413 if test "x$ac_ct_OTOOL" = x; then
14416 case $cross_compiling:$ac_tool_warned in
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14420 ac_tool_warned=yes ;;
14425 OTOOL="$ac_cv_prog_OTOOL"
14428 if test -n "$ac_tool_prefix"; then
14429 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14430 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14432 $as_echo_n "checking for $ac_word... " >&6; }
14433 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14434 $as_echo_n "(cached) " >&6
14436 if test -n "$OTOOL64"; then
14437 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14440 for as_dir in $PATH
14443 test -z "$as_dir" && as_dir=.
14444 for ac_exec_ext in '' $ac_executable_extensions; do
14445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14446 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14456 OTOOL64=$ac_cv_prog_OTOOL64
14457 if test -n "$OTOOL64"; then
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14459 $as_echo "$OTOOL64" >&6; }
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14462 $as_echo "no" >&6; }
14467 if test -z "$ac_cv_prog_OTOOL64"; then
14468 ac_ct_OTOOL64=$OTOOL64
14469 # Extract the first word of "otool64", so it can be a program name with args.
14470 set dummy otool64; ac_word=$2
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14472 $as_echo_n "checking for $ac_word... " >&6; }
14473 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14474 $as_echo_n "(cached) " >&6
14476 if test -n "$ac_ct_OTOOL64"; then
14477 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14480 for as_dir in $PATH
14483 test -z "$as_dir" && as_dir=.
14484 for ac_exec_ext in '' $ac_executable_extensions; do
14485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14486 ac_cv_prog_ac_ct_OTOOL64="otool64"
14487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14496 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14497 if test -n "$ac_ct_OTOOL64"; then
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14499 $as_echo "$ac_ct_OTOOL64" >&6; }
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14502 $as_echo "no" >&6; }
14505 if test "x$ac_ct_OTOOL64" = x; then
14508 case $cross_compiling:$ac_tool_warned in
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14512 ac_tool_warned=yes ;;
14514 OTOOL64=$ac_ct_OTOOL64
14517 OTOOL64="$ac_cv_prog_OTOOL64"
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14547 $as_echo_n "checking for -single_module linker flag... " >&6; }
14548 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14549 $as_echo_n "(cached) " >&6
14551 lt_cv_apple_cc_single_mod=no
14552 if test -z "${LT_MULTI_MODULE}"; then
14553 # By default we will add the -single_module flag. You can override
14554 # by either setting the environment variable LT_MULTI_MODULE
14555 # non-empty at configure time, or by adding -multi_module to the
14557 rm -rf libconftest.dylib*
14558 echo "int foo(void){return 1;}" > conftest.c
14559 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14560 -dynamiclib -Wl,-single_module conftest.c" >&5
14561 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14562 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14564 # If there is a non-empty error log, and "single_module"
14565 # appears in it, assume the flag caused a linker warning
14566 if test -s conftest.err && $GREP single_module conftest.err; then
14567 cat conftest.err >&5
14568 # Otherwise, if the output was created with a 0 exit code from
14569 # the compiler, it worked.
14570 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
14571 lt_cv_apple_cc_single_mod=yes
14573 cat conftest.err >&5
14575 rm -rf libconftest.dylib*
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14580 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14583 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14584 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14585 $as_echo_n "(cached) " >&6
14587 lt_cv_ld_exported_symbols_list=no
14588 save_LDFLAGS=$LDFLAGS
14589 echo "_main" > conftest.sym
14590 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14592 /* end confdefs.h. */
14602 if ac_fn_c_try_link "$LINENO"; then :
14603 lt_cv_ld_exported_symbols_list=yes
14605 lt_cv_ld_exported_symbols_list=no
14607 rm -f core conftest.err conftest.$ac_objext \
14608 conftest$ac_exeext conftest.$ac_ext
14609 LDFLAGS="$save_LDFLAGS"
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14613 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14616 $as_echo_n "checking for -force_load linker flag... " >&6; }
14617 if test "${lt_cv_ld_force_load+set}" = set; then :
14618 $as_echo_n "(cached) " >&6
14620 lt_cv_ld_force_load=no
14621 cat > conftest.c << _LT_EOF
14622 int forced_loaded() { return 2;}
14624 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14625 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14626 echo "$AR cru libconftest.a conftest.o" >&5
14627 $AR cru libconftest.a conftest.o 2>&5
14628 echo "$RANLIB libconftest.a" >&5
14629 $RANLIB libconftest.a 2>&5
14630 cat > conftest.c << _LT_EOF
14631 int main() { return 0;}
14633 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14634 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14636 if test -s conftest.err && $GREP force_load conftest.err; then
14637 cat conftest.err >&5
14638 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
14639 lt_cv_ld_force_load=yes
14641 cat conftest.err >&5
14643 rm -f conftest.err libconftest.a conftest conftest.c
14644 rm -rf conftest.dSYM
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14648 $as_echo "$lt_cv_ld_force_load" >&6; }
14650 rhapsody* | darwin1.[012])
14651 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14653 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14654 darwin*) # darwin 5.x on
14655 # if running on 10.5 or later, the deployment target defaults
14656 # to the OS version, if on x86, and 10.4, the deployment
14657 # target defaults to 10.4. Don't you love it?
14658 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14659 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14660 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14662 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14664 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14668 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14669 _lt_dar_single_mod='$single_module'
14671 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14672 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14674 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14676 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14677 _lt_dsymutil='~$DSYMUTIL $lib || :'
14684 for ac_header in dlfcn.h
14686 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14688 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14689 cat >>confdefs.h <<_ACEOF
14690 #define HAVE_DLFCN_H 1
14700 func_stripname_cnf ()
14703 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14704 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14706 } # func_stripname_cnf
14721 # Check whether --enable-shared was given.
14722 if test "${enable_shared+set}" = set; then :
14723 enableval=$enable_shared; p=${PACKAGE-default}
14725 yes) enable_shared=yes ;;
14726 no) enable_shared=no ;;
14729 # Look at the argument we got. We use all the common list separators.
14730 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14731 for pkg in $enableval; do
14733 if test "X$pkg" = "X$p"; then
14752 # Check whether --enable-static was given.
14753 if test "${enable_static+set}" = set; then :
14754 enableval=$enable_static; p=${PACKAGE-default}
14756 yes) enable_static=yes ;;
14757 no) enable_static=no ;;
14760 # Look at the argument we got. We use all the common list separators.
14761 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14762 for pkg in $enableval; do
14764 if test "X$pkg" = "X$p"; then
14784 # Check whether --with-pic was given.
14785 if test "${with_pic+set}" = set; then :
14786 withval=$with_pic; lt_p=${PACKAGE-default}
14788 yes|no) pic_mode=$withval ;;
14791 # Look at the argument we got. We use all the common list separators.
14792 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14793 for lt_pkg in $withval; do
14795 if test "X$lt_pkg" = "X$lt_p"; then
14807 test -z "$pic_mode" && pic_mode=default
14815 # Check whether --enable-fast-install was given.
14816 if test "${enable_fast_install+set}" = set; then :
14817 enableval=$enable_fast_install; p=${PACKAGE-default}
14819 yes) enable_fast_install=yes ;;
14820 no) enable_fast_install=no ;;
14822 enable_fast_install=no
14823 # Look at the argument we got. We use all the common list separators.
14824 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14825 for pkg in $enableval; do
14827 if test "X$pkg" = "X$p"; then
14828 enable_fast_install=yes
14835 enable_fast_install=yes
14848 # This can be used to rebuild libtool when needed
14849 LIBTOOL_DEPS="$ltmain"
14851 # Always use our own libtool.
14852 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14883 test -z "$LN_S" && LN_S="ln -s"
14898 if test -n "${ZSH_VERSION+set}" ; then
14899 setopt NO_GLOB_SUBST
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14903 $as_echo_n "checking for objdir... " >&6; }
14904 if test "${lt_cv_objdir+set}" = set; then :
14905 $as_echo_n "(cached) " >&6
14907 rm -f .libs 2>/dev/null
14908 mkdir .libs 2>/dev/null
14909 if test -d .libs; then
14912 # MS-DOS does not allow filenames that begin with a dot.
14915 rmdir .libs 2>/dev/null
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14918 $as_echo "$lt_cv_objdir" >&6; }
14919 objdir=$lt_cv_objdir
14925 cat >>confdefs.h <<_ACEOF
14926 #define LT_OBJDIR "$lt_cv_objdir/"
14934 # AIX sometimes has problems with the GCC collect2 program. For some
14935 # reason, if we set the COLLECT_NAMES environment variable, the problems
14936 # vanish in a puff of smoke.
14937 if test "X${COLLECT_NAMES+set}" != Xset; then
14939 export COLLECT_NAMES
14944 # Global variables:
14946 can_build_shared=yes
14948 # All known linkers require a `.a' archive for static linking (except MSVC,
14949 # which needs '.lib').
14952 with_gnu_ld="$lt_cv_prog_gnu_ld"
14955 old_CFLAGS="$CFLAGS"
14957 # Set sane defaults for various variables
14958 test -z "$CC" && CC=cc
14959 test -z "$LTCC" && LTCC=$CC
14960 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14961 test -z "$LD" && LD=ld
14962 test -z "$ac_objext" && ac_objext=o
14964 for cc_temp in $compiler""; do
14966 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14967 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14972 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14975 # Only perform the check for file, if the check method requires it
14976 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14977 case $deplibs_check_method in
14979 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14981 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14982 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14983 $as_echo_n "(cached) " >&6
14987 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14990 lt_save_MAGIC_CMD="$MAGIC_CMD"
14991 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14992 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14993 for ac_dir in $ac_dummy; do
14995 test -z "$ac_dir" && ac_dir=.
14996 if test -f $ac_dir/${ac_tool_prefix}file; then
14997 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14998 if test -n "$file_magic_test_file"; then
14999 case $deplibs_check_method in
15001 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15002 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15003 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15004 $EGREP "$file_magic_regex" > /dev/null; then
15009 *** Warning: the command libtool uses to detect shared libraries,
15010 *** $file_magic_cmd, produces output that libtool cannot recognize.
15011 *** The result is that libtool may fail to recognize shared libraries
15012 *** as such. This will affect the creation of libtool libraries that
15013 *** depend on shared libraries, but programs linked with such libtool
15014 *** libraries will work regardless of this problem. Nevertheless, you
15015 *** may want to report the problem to your system manager and/or to
15016 *** bug-libtool@gnu.org
15026 MAGIC_CMD="$lt_save_MAGIC_CMD"
15031 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15032 if test -n "$MAGIC_CMD"; then
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15034 $as_echo "$MAGIC_CMD" >&6; }
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15037 $as_echo "no" >&6; }
15044 if test -z "$lt_cv_path_MAGIC_CMD"; then
15045 if test -n "$ac_tool_prefix"; then
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15047 $as_echo_n "checking for file... " >&6; }
15048 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15049 $as_echo_n "(cached) " >&6
15053 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15056 lt_save_MAGIC_CMD="$MAGIC_CMD"
15057 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15058 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15059 for ac_dir in $ac_dummy; do
15061 test -z "$ac_dir" && ac_dir=.
15062 if test -f $ac_dir/file; then
15063 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15064 if test -n "$file_magic_test_file"; then
15065 case $deplibs_check_method in
15067 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15068 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15069 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15070 $EGREP "$file_magic_regex" > /dev/null; then
15075 *** Warning: the command libtool uses to detect shared libraries,
15076 *** $file_magic_cmd, produces output that libtool cannot recognize.
15077 *** The result is that libtool may fail to recognize shared libraries
15078 *** as such. This will affect the creation of libtool libraries that
15079 *** depend on shared libraries, but programs linked with such libtool
15080 *** libraries will work regardless of this problem. Nevertheless, you
15081 *** may want to report the problem to your system manager and/or to
15082 *** bug-libtool@gnu.org
15092 MAGIC_CMD="$lt_save_MAGIC_CMD"
15097 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15098 if test -n "$MAGIC_CMD"; then
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15100 $as_echo "$MAGIC_CMD" >&6; }
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15103 $as_echo "no" >&6; }
15116 # Use C for the default configuration in the libtool script
15120 ac_cpp='$CPP $CPPFLAGS'
15121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15126 # Source file extension for C test sources.
15129 # Object file extension for compiled C test sources.
15133 # Code to be used in simple compile tests
15134 lt_simple_compile_test_code="int some_variable = 0;"
15136 # Code to be used in simple link tests
15137 lt_simple_link_test_code='int main(){return(0);}'
15145 # If no C compiler was specified, use CC.
15148 # If no C compiler flags were specified, use CFLAGS.
15149 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15151 # Allow CC to be a program name with arguments.
15154 # Save the default compiler, since it gets overwritten when the other
15155 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15156 compiler_DEFAULT=$CC
15158 # save warnings/boilerplate of simple test code
15159 ac_outfile=conftest.$ac_objext
15160 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15161 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15162 _lt_compiler_boilerplate=`cat conftest.err`
15165 ac_outfile=conftest.$ac_objext
15166 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15167 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15168 _lt_linker_boilerplate=`cat conftest.err`
15172 if test -n "$compiler"; then
15174 lt_prog_compiler_no_builtin_flag=
15176 if test "$GCC" = yes; then
15177 case $cc_basename in
15179 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15181 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15185 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15186 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15187 $as_echo_n "(cached) " >&6
15189 lt_cv_prog_compiler_rtti_exceptions=no
15190 ac_outfile=conftest.$ac_objext
15191 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15192 lt_compiler_flag="-fno-rtti -fno-exceptions"
15193 # Insert the option either (1) after the last *FLAGS variable, or
15194 # (2) before a word containing "conftest.", or (3) at the end.
15195 # Note that $ac_compile itself does not contain backslashes and begins
15196 # with a dollar sign (not a hyphen), so the echo should work correctly.
15197 # The option is referenced via a variable to avoid confusing sed.
15198 lt_compile=`echo "$ac_compile" | $SED \
15199 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15200 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15201 -e 's:$: $lt_compiler_flag:'`
15202 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15203 (eval "$lt_compile" 2>conftest.err)
15205 cat conftest.err >&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 if (exit $ac_status) && test -s "$ac_outfile"; then
15208 # The compiler can only warn and ignore the option if not recognized
15209 # So say no if there are warnings other than the usual output.
15210 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15211 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15212 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15213 lt_cv_prog_compiler_rtti_exceptions=yes
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15220 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15222 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15223 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15235 lt_prog_compiler_wl=
15236 lt_prog_compiler_pic=
15237 lt_prog_compiler_static=
15240 if test "$GCC" = yes; then
15241 lt_prog_compiler_wl='-Wl,'
15242 lt_prog_compiler_static='-static'
15246 # All AIX code is PIC.
15247 if test "$host_cpu" = ia64; then
15248 # AIX 5 now supports IA64 processor
15249 lt_prog_compiler_static='-Bstatic'
15256 # see comment about AmigaOS4 .so support
15257 lt_prog_compiler_pic='-fPIC'
15260 # FIXME: we need at least 68020 code to build shared libraries, but
15261 # adding the `-m68020' flag to GCC prevents building anything better,
15263 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15268 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15269 # PIC is the default for these OSes.
15272 mingw* | cygwin* | pw32* | os2* | cegcc*)
15273 # This hack is so that the source file can tell whether it is being
15274 # built for inclusion in a dll (and should export symbols for example).
15275 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15276 # (--disable-auto-import) libraries
15277 lt_prog_compiler_pic='-DDLL_EXPORT'
15280 darwin* | rhapsody*)
15281 # PIC is the default on this platform
15282 # Common symbols not allowed in MH_DYLIB files
15283 lt_prog_compiler_pic='-fno-common'
15287 # PIC is the default for Haiku.
15288 # The "-static" flag exists, but is broken.
15289 lt_prog_compiler_static=
15293 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15294 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15295 # sets the default TLS model and affects inlining.
15301 lt_prog_compiler_pic='-fPIC'
15307 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15308 # Instead, we relocate shared libraries at runtime.
15312 # Just because we use GCC doesn't mean we suddenly get shared libraries
15313 # on systems that don't support them.
15314 lt_prog_compiler_can_build_shared=no
15319 # QNX uses GNU C++, but need to define -shared option too, otherwise
15320 # it will coredump.
15321 lt_prog_compiler_pic='-fPIC -shared'
15325 if test -d /usr/nec; then
15326 lt_prog_compiler_pic=-Kconform_pic
15331 lt_prog_compiler_pic='-fPIC'
15335 case $cc_basename in
15336 nvcc*) # Cuda Compiler Driver 2.2
15337 lt_prog_compiler_wl='-Xlinker '
15338 if test -n "$lt_prog_compiler_pic"; then
15339 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15344 # PORTME Check for flag to pass linker flags through the system compiler.
15347 lt_prog_compiler_wl='-Wl,'
15348 if test "$host_cpu" = ia64; then
15349 # AIX 5 now supports IA64 processor
15350 lt_prog_compiler_static='-Bstatic'
15352 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15356 mingw* | cygwin* | pw32* | os2* | cegcc*)
15357 # This hack is so that the source file can tell whether it is being
15358 # built for inclusion in a dll (and should export symbols for example).
15359 lt_prog_compiler_pic='-DDLL_EXPORT'
15362 hpux9* | hpux10* | hpux11*)
15363 lt_prog_compiler_wl='-Wl,'
15364 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15365 # not for PA HP-UX.
15371 lt_prog_compiler_pic='+Z'
15374 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15375 lt_prog_compiler_static='${wl}-a ${wl}archive'
15378 irix5* | irix6* | nonstopux*)
15379 lt_prog_compiler_wl='-Wl,'
15380 # PIC (with -KPIC) is the default.
15381 lt_prog_compiler_static='-non_shared'
15384 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15385 case $cc_basename in
15386 # old Intel for x86_64 which still supported -KPIC.
15388 lt_prog_compiler_wl='-Wl,'
15389 lt_prog_compiler_pic='-KPIC'
15390 lt_prog_compiler_static='-static'
15392 # icc used to be incompatible with GCC.
15393 # ICC 10 doesn't accept -KPIC any more.
15395 lt_prog_compiler_wl='-Wl,'
15396 lt_prog_compiler_pic='-fPIC'
15397 lt_prog_compiler_static='-static'
15399 # Lahey Fortran 8.1.
15401 lt_prog_compiler_wl='-Wl,'
15402 lt_prog_compiler_pic='--shared'
15403 lt_prog_compiler_static='--static'
15406 # NAG Fortran compiler
15407 lt_prog_compiler_wl='-Wl,-Wl,,'
15408 lt_prog_compiler_pic='-PIC'
15409 lt_prog_compiler_static='-Bstatic'
15411 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15412 # Portland Group compilers (*not* the Pentium gcc compiler,
15413 # which looks to be a dead project)
15414 lt_prog_compiler_wl='-Wl,'
15415 lt_prog_compiler_pic='-fpic'
15416 lt_prog_compiler_static='-Bstatic'
15419 lt_prog_compiler_wl='-Wl,'
15420 # All Alpha code is PIC.
15421 lt_prog_compiler_static='-non_shared'
15423 xl* | bgxl* | bgf* | mpixl*)
15424 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15425 lt_prog_compiler_wl='-Wl,'
15426 lt_prog_compiler_pic='-qpic'
15427 lt_prog_compiler_static='-qstaticlink'
15430 case `$CC -V 2>&1 | sed 5q` in
15431 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15432 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15433 lt_prog_compiler_pic='-KPIC'
15434 lt_prog_compiler_static='-Bstatic'
15435 lt_prog_compiler_wl=''
15437 *Sun\ F* | *Sun*Fortran*)
15438 lt_prog_compiler_pic='-KPIC'
15439 lt_prog_compiler_static='-Bstatic'
15440 lt_prog_compiler_wl='-Qoption ld '
15444 lt_prog_compiler_pic='-KPIC'
15445 lt_prog_compiler_static='-Bstatic'
15446 lt_prog_compiler_wl='-Wl,'
15448 *Intel*\ [CF]*Compiler*)
15449 lt_prog_compiler_wl='-Wl,'
15450 lt_prog_compiler_pic='-fPIC'
15451 lt_prog_compiler_static='-static'
15454 lt_prog_compiler_wl='-Wl,'
15455 lt_prog_compiler_pic='-fpic'
15456 lt_prog_compiler_static='-Bstatic'
15464 lt_prog_compiler_pic='-KPIC'
15465 lt_prog_compiler_static='-Bstatic'
15469 # QNX uses GNU C++, but need to define -shared option too, otherwise
15470 # it will coredump.
15471 lt_prog_compiler_pic='-fPIC -shared'
15474 osf3* | osf4* | osf5*)
15475 lt_prog_compiler_wl='-Wl,'
15476 # All OSF/1 code is PIC.
15477 lt_prog_compiler_static='-non_shared'
15481 lt_prog_compiler_static='-non_shared'
15485 lt_prog_compiler_pic='-KPIC'
15486 lt_prog_compiler_static='-Bstatic'
15487 case $cc_basename in
15488 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15489 lt_prog_compiler_wl='-Qoption ld ';;
15491 lt_prog_compiler_wl='-Wl,';;
15496 lt_prog_compiler_wl='-Qoption ld '
15497 lt_prog_compiler_pic='-PIC'
15498 lt_prog_compiler_static='-Bstatic'
15501 sysv4 | sysv4.2uw2* | sysv4.3*)
15502 lt_prog_compiler_wl='-Wl,'
15503 lt_prog_compiler_pic='-KPIC'
15504 lt_prog_compiler_static='-Bstatic'
15508 if test -d /usr/nec ;then
15509 lt_prog_compiler_pic='-Kconform_pic'
15510 lt_prog_compiler_static='-Bstatic'
15514 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15515 lt_prog_compiler_wl='-Wl,'
15516 lt_prog_compiler_pic='-KPIC'
15517 lt_prog_compiler_static='-Bstatic'
15521 lt_prog_compiler_wl='-Wl,'
15522 lt_prog_compiler_can_build_shared=no
15526 lt_prog_compiler_pic='-pic'
15527 lt_prog_compiler_static='-Bstatic'
15531 lt_prog_compiler_can_build_shared=no
15537 # For platforms which do not support PIC, -DPIC is meaningless:
15539 lt_prog_compiler_pic=
15542 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15547 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15548 if test "${lt_cv_prog_compiler_pic+set}" = set; then :
15549 $as_echo_n "(cached) " >&6
15551 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15554 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
15555 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15558 # Check to make sure the PIC flag actually works.
15560 if test -n "$lt_prog_compiler_pic"; then
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15562 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15563 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15564 $as_echo_n "(cached) " >&6
15566 lt_cv_prog_compiler_pic_works=no
15567 ac_outfile=conftest.$ac_objext
15568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15569 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15570 # Insert the option either (1) after the last *FLAGS variable, or
15571 # (2) before a word containing "conftest.", or (3) at the end.
15572 # Note that $ac_compile itself does not contain backslashes and begins
15573 # with a dollar sign (not a hyphen), so the echo should work correctly.
15574 # The option is referenced via a variable to avoid confusing sed.
15575 lt_compile=`echo "$ac_compile" | $SED \
15576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15578 -e 's:$: $lt_compiler_flag:'`
15579 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15580 (eval "$lt_compile" 2>conftest.err)
15582 cat conftest.err >&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 if (exit $ac_status) && test -s "$ac_outfile"; then
15585 # The compiler can only warn and ignore the option if not recognized
15586 # So say no if there are warnings other than the usual output.
15587 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15588 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15589 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15590 lt_cv_prog_compiler_pic_works=yes
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15597 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15599 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15600 case $lt_prog_compiler_pic in
15602 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15605 lt_prog_compiler_pic=
15606 lt_prog_compiler_can_build_shared=no
15622 # Check to make sure the static flag actually works.
15624 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15626 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15627 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15628 $as_echo_n "(cached) " >&6
15630 lt_cv_prog_compiler_static_works=no
15631 save_LDFLAGS="$LDFLAGS"
15632 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15633 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15634 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15635 # The linker can only warn and ignore the option if not recognized
15636 # So say no if there are warnings
15637 if test -s conftest.err; then
15638 # Append any errors to the config.log.
15639 cat conftest.err 1>&5
15640 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15642 if diff conftest.exp conftest.er2 >/dev/null; then
15643 lt_cv_prog_compiler_static_works=yes
15646 lt_cv_prog_compiler_static_works=yes
15650 LDFLAGS="$save_LDFLAGS"
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15654 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15656 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15659 lt_prog_compiler_static=
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15669 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15670 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15671 $as_echo_n "(cached) " >&6
15673 lt_cv_prog_compiler_c_o=no
15674 $RM -r conftest 2>/dev/null
15678 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15680 lt_compiler_flag="-o out/conftest2.$ac_objext"
15681 # Insert the option either (1) after the last *FLAGS variable, or
15682 # (2) before a word containing "conftest.", or (3) at the end.
15683 # Note that $ac_compile itself does not contain backslashes and begins
15684 # with a dollar sign (not a hyphen), so the echo should work correctly.
15685 lt_compile=`echo "$ac_compile" | $SED \
15686 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15687 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15688 -e 's:$: $lt_compiler_flag:'`
15689 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15690 (eval "$lt_compile" 2>out/conftest.err)
15692 cat out/conftest.err >&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15696 # The compiler can only warn and ignore the option if not recognized
15697 # So say no if there are warnings
15698 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15699 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15700 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15701 lt_cv_prog_compiler_c_o=yes
15706 # SGI C++ compiler will create directory out/ii_files/ for
15707 # template instantiation
15708 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15709 $RM out/* && rmdir out
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15716 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15724 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15725 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15726 $as_echo_n "(cached) " >&6
15728 lt_cv_prog_compiler_c_o=no
15729 $RM -r conftest 2>/dev/null
15733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15735 lt_compiler_flag="-o out/conftest2.$ac_objext"
15736 # Insert the option either (1) after the last *FLAGS variable, or
15737 # (2) before a word containing "conftest.", or (3) at the end.
15738 # Note that $ac_compile itself does not contain backslashes and begins
15739 # with a dollar sign (not a hyphen), so the echo should work correctly.
15740 lt_compile=`echo "$ac_compile" | $SED \
15741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15743 -e 's:$: $lt_compiler_flag:'`
15744 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15745 (eval "$lt_compile" 2>out/conftest.err)
15747 cat out/conftest.err >&5
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15751 # The compiler can only warn and ignore the option if not recognized
15752 # So say no if there are warnings
15753 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15754 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15755 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15756 lt_cv_prog_compiler_c_o=yes
15761 # SGI C++ compiler will create directory out/ii_files/ for
15762 # template instantiation
15763 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15764 $RM out/* && rmdir out
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15771 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15776 hard_links="nottested"
15777 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15778 # do not overwrite the value of need_locks provided by the user
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15780 $as_echo_n "checking if we can lock with hard links... " >&6; }
15783 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15785 ln conftest.a conftest.b 2>&5 || hard_links=no
15786 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15788 $as_echo "$hard_links" >&6; }
15789 if test "$hard_links" = no; then
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15791 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15804 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15807 allow_undefined_flag=
15808 always_export_symbols=no
15810 archive_expsym_cmds=
15811 compiler_needs_object=no
15812 enable_shared_with_static_runtimes=no
15813 export_dynamic_flag_spec=
15814 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15815 hardcode_automatic=no
15817 hardcode_direct_absolute=no
15818 hardcode_libdir_flag_spec=
15819 hardcode_libdir_separator=
15820 hardcode_minus_L=no
15821 hardcode_shlibpath_var=unsupported
15823 link_all_deplibs=unknown
15825 module_expsym_cmds=
15826 old_archive_from_new_cmds=
15827 old_archive_from_expsyms_cmds=
15828 thread_safe_flag_spec=
15829 whole_archive_flag_spec=
15830 # include_expsyms should be a list of space-separated symbols to be *always*
15831 # included in the symbol list
15833 # exclude_expsyms can be an extended regexp of symbols to exclude
15834 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15835 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15836 # as well as any symbol that contains `d'.
15837 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15838 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15839 # platforms (ab)use it in PIC code, but their linkers get confused if
15840 # the symbol is explicitly referenced. Since portable code cannot
15841 # rely on this symbol name, it's probably fine to never include it in
15842 # preloaded symbol tables.
15843 # Exclude shared library initialization/finalization symbols.
15844 extract_expsyms_cmds=
15847 cygwin* | mingw* | pw32* | cegcc*)
15848 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15849 # When not using gcc, we currently assume that we are using
15850 # Microsoft Visual C++.
15851 if test "$GCC" != yes; then
15856 # we just hope/assume this is gcc and not c89 (= MSVC++)
15866 # On some targets, GNU ld is compatible enough with the native linker
15867 # that we're better off using the native interface for both.
15868 lt_use_gnu_ld_interface=no
15869 if test "$with_gnu_ld" = yes; then
15872 # The AIX port of GNU ld has always aspired to compatibility
15873 # with the native linker. However, as the warning in the GNU ld
15874 # block says, versions before 2.19.5* couldn't really create working
15875 # shared libraries, regardless of the interface used.
15876 case `$LD -v 2>&1` in
15877 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15878 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15879 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15881 lt_use_gnu_ld_interface=yes
15886 lt_use_gnu_ld_interface=yes
15891 if test "$lt_use_gnu_ld_interface" = yes; then
15892 # If archive_cmds runs LD, not CC, wlarc should be empty
15895 # Set some defaults for GNU ld with shared library support. These
15896 # are reset later if shared libraries are not supported. Putting them
15897 # here allows them to be overridden if necessary.
15898 runpath_var=LD_RUN_PATH
15899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15900 export_dynamic_flag_spec='${wl}--export-dynamic'
15901 # ancient GNU ld didn't support --whole-archive et. al.
15902 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15903 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15905 whole_archive_flag_spec=
15907 supports_anon_versioning=no
15908 case `$LD -v 2>&1` in
15909 *GNU\ gold*) supports_anon_versioning=yes ;;
15910 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15911 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15912 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15913 *\ 2.11.*) ;; # other 2.11 versions
15914 *) supports_anon_versioning=yes ;;
15917 # See if GNU ld supports shared libraries.
15920 # On AIX/PPC, the GNU linker is very broken
15921 if test "$host_cpu" != ia64; then
15925 *** Warning: the GNU linker, at least up to release 2.19, is reported
15926 *** to be unable to reliably create shared libraries on AIX.
15927 *** Therefore, libtool is disabling shared libraries support. If you
15928 *** really care for shared libraries, you may want to install binutils
15929 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15930 *** You will then need to restart the configuration process.
15939 # see comment about AmigaOS4 .so support
15940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15941 archive_expsym_cmds=''
15944 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)'
15945 hardcode_libdir_flag_spec='-L$libdir'
15946 hardcode_minus_L=yes
15952 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15953 allow_undefined_flag=unsupported
15954 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15955 # support --undefined. This deserves some investigation. FIXME
15956 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15962 cygwin* | mingw* | pw32* | cegcc*)
15963 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15964 # as there is no search path for DLLs.
15965 hardcode_libdir_flag_spec='-L$libdir'
15966 export_dynamic_flag_spec='${wl}--export-all-symbols'
15967 allow_undefined_flag=unsupported
15968 always_export_symbols=no
15969 enable_shared_with_static_runtimes=yes
15970 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'
15971 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15973 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15974 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15975 # If the export-symbols file already is a .def file (1st line
15976 # is EXPORTS), use it as is; otherwise, prepend...
15977 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15978 cp $export_symbols $output_objdir/$soname.def;
15980 echo EXPORTS > $output_objdir/$soname.def;
15981 cat $export_symbols >> $output_objdir/$soname.def;
15983 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15991 link_all_deplibs=yes
15996 hardcode_shlibpath_var=no
15997 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15998 export_dynamic_flag_spec='${wl}-E'
15999 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16000 # Instead, shared libraries are loaded at an image base (0x10000000 by
16001 # default) and relocated if they conflict, which is a slow very memory
16002 # consuming and fragmenting process. To avoid this, we pick a random,
16003 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16004 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16005 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16006 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'
16009 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16011 if test "$host_os" = linux-dietlibc; then
16012 case $cc_basename in
16013 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16016 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16017 && test "$tmp_diet" = no
16019 tmp_addflag=' $pic_flag'
16020 tmp_sharedflag='-shared'
16021 case $cc_basename,$host_cpu in
16022 pgcc*) # Portland Group C compiler
16023 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'
16024 tmp_addflag=' $pic_flag'
16026 pgf77* | pgf90* | pgf95* | pgfortran*)
16027 # Portland Group f77 and f90 compilers
16028 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'
16029 tmp_addflag=' $pic_flag -Mnomain' ;;
16030 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16031 tmp_addflag=' -i_dynamic' ;;
16032 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16033 tmp_addflag=' -i_dynamic -nofor_main' ;;
16034 ifc* | ifort*) # Intel Fortran compiler
16035 tmp_addflag=' -nofor_main' ;;
16036 lf95*) # Lahey Fortran 8.1
16037 whole_archive_flag_spec=
16038 tmp_sharedflag='--shared' ;;
16039 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16040 tmp_sharedflag='-qmkshrobj'
16042 nvcc*) # Cuda Compiler Driver 2.2
16043 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'
16044 compiler_needs_object=yes
16047 case `$CC -V 2>&1 | sed 5q` in
16048 *Sun\ C*) # Sun C 5.9
16049 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'
16050 compiler_needs_object=yes
16051 tmp_sharedflag='-G' ;;
16052 *Sun\ F*) # Sun Fortran 8.3
16053 tmp_sharedflag='-G' ;;
16055 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16057 if test "x$supports_anon_versioning" = xyes; then
16058 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16059 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16060 echo "local: *; };" >> $output_objdir/$libname.ver~
16061 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16064 case $cc_basename in
16065 xlf* | bgf* | bgxlf* | mpixlf*)
16066 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16067 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16069 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16070 if test "x$supports_anon_versioning" = xyes; then
16071 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16072 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16073 echo "local: *; };" >> $output_objdir/$libname.ver~
16074 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16084 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16085 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16088 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16089 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16094 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16098 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16099 *** create shared libraries on Solaris systems. Therefore, libtool
16100 *** is disabling shared libraries support. We urge you to upgrade GNU
16101 *** binutils to release 2.9.1 or newer. Another option is to modify
16102 *** your PATH or compiler configuration so that the native linker is
16103 *** used, and then restart.
16106 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16107 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16108 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16115 case `$LD -v 2>&1` in
16116 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16120 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16121 *** reliably create shared libraries on SCO systems. Therefore, libtool
16122 *** is disabling shared libraries support. We urge you to upgrade GNU
16123 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16124 *** your PATH or compiler configuration so that the native linker is
16125 *** used, and then restart.
16130 # For security reasons, it is highly recommended that you always
16131 # use absolute paths for naming shared libraries, and exclude the
16132 # DT_RUNPATH tag from executables and libraries. But doing so
16133 # requires that you compile everything twice, which is a pain.
16134 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16137 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16146 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16148 hardcode_direct=yes
16149 hardcode_shlibpath_var=no
16153 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16154 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16155 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 test "$ld_shlibs" = no; then
16164 hardcode_libdir_flag_spec=
16165 export_dynamic_flag_spec=
16166 whole_archive_flag_spec=
16169 # PORTME fill in a description of your system's linker (not GNU ld)
16172 allow_undefined_flag=unsupported
16173 always_export_symbols=yes
16174 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'
16175 # Note: this linker hardcodes the directories in LIBPATH if there
16176 # are no directories specified by -L.
16177 hardcode_minus_L=yes
16178 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16179 # Neither direct hardcoding nor static linking is supported with a
16181 hardcode_direct=unsupported
16186 if test "$host_cpu" = ia64; then
16187 # On IA64, the linker does run time linking by default, so we don't
16188 # have to do anything special.
16189 aix_use_runtimelinking=no
16190 exp_sym_flag='-Bexport'
16193 # If we're using GNU nm, then we don't want the "-C" option.
16194 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16195 # Also, AIX nm treats weak defined symbols like other global
16196 # defined symbols, whereas GNU nm marks them as "W".
16197 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16198 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'
16200 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'
16202 aix_use_runtimelinking=no
16204 # Test if we are trying to use run time linking or normal
16205 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16206 # need to do runtime linking.
16207 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16208 for ld_flag in $LDFLAGS; do
16209 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16210 aix_use_runtimelinking=yes
16217 exp_sym_flag='-bexport'
16218 no_entry_flag='-bnoentry'
16221 # When large executables or shared objects are built, AIX ld can
16222 # have problems creating the table of contents. If linking a library
16223 # or program results in "error TOC overflow" add -mminimal-toc to
16224 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16225 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16228 hardcode_direct=yes
16229 hardcode_direct_absolute=yes
16230 hardcode_libdir_separator=':'
16231 link_all_deplibs=yes
16232 file_list_spec='${wl}-f,'
16234 if test "$GCC" = yes; then
16235 case $host_os in aix4.[012]|aix4.[012].*)
16236 # We only want to do this on AIX 4.2 and lower, the check
16237 # below for broken collect2 doesn't work under 4.3+
16238 collect2name=`${CC} -print-prog-name=collect2`
16239 if test -f "$collect2name" &&
16240 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16242 # We have reworked collect2
16245 # We have old collect2
16246 hardcode_direct=unsupported
16247 # It fails to find uninstalled libraries when the uninstalled
16248 # path is not listed in the libpath. Setting hardcode_minus_L
16249 # to unsupported forces relinking
16250 hardcode_minus_L=yes
16251 hardcode_libdir_flag_spec='-L$libdir'
16252 hardcode_libdir_separator=
16256 shared_flag='-shared'
16257 if test "$aix_use_runtimelinking" = yes; then
16258 shared_flag="$shared_flag "'${wl}-G'
16262 if test "$host_cpu" = ia64; then
16263 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16264 # chokes on -Wl,-G. The following line is correct:
16267 if test "$aix_use_runtimelinking" = yes; then
16268 shared_flag='${wl}-G'
16270 shared_flag='${wl}-bM:SRE'
16275 export_dynamic_flag_spec='${wl}-bexpall'
16276 # It seems that -bexpall does not export symbols beginning with
16277 # underscore (_), so it is better to generate a list of symbols to export.
16278 always_export_symbols=yes
16279 if test "$aix_use_runtimelinking" = yes; then
16280 # Warning - without using the other runtime loading flags (-brtl),
16281 # -berok will link without error, but may produce a broken library.
16282 allow_undefined_flag='-berok'
16283 # Determine the default libpath from the value encoded in an
16284 # empty executable.
16285 if test "${lt_cv_aix_libpath+set}" = set; then
16286 aix_libpath=$lt_cv_aix_libpath
16288 if test "${lt_cv_aix_libpath_+set}" = set; then :
16289 $as_echo_n "(cached) " >&6
16291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16292 /* end confdefs.h. */
16302 if ac_fn_c_try_link "$LINENO"; then :
16304 lt_aix_libpath_sed='
16305 /Import File Strings/,/^$/ {
16307 s/^0 *\([^ ]*\) *$/\1/
16311 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16312 # Check for a 64-bit object if we didn't find anything.
16313 if test -z "$lt_cv_aix_libpath_"; then
16314 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16317 rm -f core conftest.err conftest.$ac_objext \
16318 conftest$ac_exeext conftest.$ac_ext
16319 if test -z "$lt_cv_aix_libpath_"; then
16320 lt_cv_aix_libpath_="/usr/lib:/lib"
16325 aix_libpath=$lt_cv_aix_libpath_
16328 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16329 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"
16331 if test "$host_cpu" = ia64; then
16332 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16333 allow_undefined_flag="-z nodefs"
16334 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"
16336 # Determine the default libpath from the value encoded in an
16337 # empty executable.
16338 if test "${lt_cv_aix_libpath+set}" = set; then
16339 aix_libpath=$lt_cv_aix_libpath
16341 if test "${lt_cv_aix_libpath_+set}" = set; then :
16342 $as_echo_n "(cached) " >&6
16344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16345 /* end confdefs.h. */
16355 if ac_fn_c_try_link "$LINENO"; then :
16357 lt_aix_libpath_sed='
16358 /Import File Strings/,/^$/ {
16360 s/^0 *\([^ ]*\) *$/\1/
16364 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16365 # Check for a 64-bit object if we didn't find anything.
16366 if test -z "$lt_cv_aix_libpath_"; then
16367 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16370 rm -f core conftest.err conftest.$ac_objext \
16371 conftest$ac_exeext conftest.$ac_ext
16372 if test -z "$lt_cv_aix_libpath_"; then
16373 lt_cv_aix_libpath_="/usr/lib:/lib"
16378 aix_libpath=$lt_cv_aix_libpath_
16381 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16382 # Warning - without using the other run time loading flags,
16383 # -berok will link without error, but may produce a broken library.
16384 no_undefined_flag=' ${wl}-bernotok'
16385 allow_undefined_flag=' ${wl}-berok'
16386 if test "$with_gnu_ld" = yes; then
16387 # We only use this code for GNU lds that support --whole-archive.
16388 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16390 # Exported symbols can be pulled into shared objects from archives
16391 whole_archive_flag_spec='$convenience'
16393 archive_cmds_need_lc=yes
16394 # This is similar to how AIX traditionally builds its shared libraries.
16395 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'
16403 # see comment about AmigaOS4 .so support
16404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16405 archive_expsym_cmds=''
16408 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)'
16409 hardcode_libdir_flag_spec='-L$libdir'
16410 hardcode_minus_L=yes
16416 export_dynamic_flag_spec=-rdynamic
16419 cygwin* | mingw* | pw32* | cegcc*)
16420 # When not using gcc, we currently assume that we are using
16421 # Microsoft Visual C++.
16422 # hardcode_libdir_flag_spec is actually meaningless, as there is
16423 # no search path for DLLs.
16424 case $cc_basename in
16427 hardcode_libdir_flag_spec=' '
16428 allow_undefined_flag=unsupported
16429 always_export_symbols=yes
16431 # Tell ltmain to make .lib files, not .a files.
16433 # Tell ltmain to make .dll files, not .so files.
16435 # FIXME: Setting linknames here is a bad hack.
16436 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16437 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16438 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16440 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16442 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16444 # The linker will not automatically build a static lib if we build a DLL.
16445 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16446 enable_shared_with_static_runtimes=yes
16447 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16448 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16450 old_postinstall_cmds='chmod 644 $oldlib'
16451 postlink_cmds='lt_outputfile="@OUTPUT@"~
16452 lt_tool_outputfile="@TOOL_OUTPUT@"~
16453 case $lt_outputfile in
16456 lt_outputfile="$lt_outputfile.exe"
16457 lt_tool_outputfile="$lt_tool_outputfile.exe"
16460 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16461 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16462 $RM "$lt_outputfile.manifest";
16466 # Assume MSVC wrapper
16467 hardcode_libdir_flag_spec=' '
16468 allow_undefined_flag=unsupported
16469 # Tell ltmain to make .lib files, not .a files.
16471 # Tell ltmain to make .dll files, not .so files.
16473 # FIXME: Setting linknames here is a bad hack.
16474 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16475 # The linker will automatically build a .lib file if we build a DLL.
16476 old_archive_from_new_cmds='true'
16477 # FIXME: Should let the user specify the lib program.
16478 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16479 enable_shared_with_static_runtimes=yes
16484 darwin* | rhapsody*)
16487 archive_cmds_need_lc=no
16489 hardcode_automatic=yes
16490 hardcode_shlibpath_var=unsupported
16491 if test "$lt_cv_ld_force_load" = "yes"; then
16492 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\"`'
16495 whole_archive_flag_spec=''
16497 link_all_deplibs=yes
16498 allow_undefined_flag="$_lt_dar_allow_undefined"
16499 case $cc_basename in
16500 ifort*) _lt_dar_can_shared=yes ;;
16501 *) _lt_dar_can_shared=$GCC ;;
16503 if test "$_lt_dar_can_shared" = "yes"; then
16504 output_verbose_link_cmd=func_echo_all
16505 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16506 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16507 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}"
16508 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}"
16517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16518 hardcode_libdir_flag_spec='-L$libdir'
16519 hardcode_shlibpath_var=no
16522 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16523 # support. Future versions do this automatically, but an explicit c++rt0.o
16524 # does not break anything, and helps significantly (at the cost of a little
16527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16528 hardcode_libdir_flag_spec='-R$libdir'
16529 hardcode_direct=yes
16530 hardcode_shlibpath_var=no
16533 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16535 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16536 hardcode_direct=yes
16537 hardcode_minus_L=yes
16538 hardcode_shlibpath_var=no
16541 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16542 freebsd* | dragonfly*)
16543 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16544 hardcode_libdir_flag_spec='-R$libdir'
16545 hardcode_direct=yes
16546 hardcode_shlibpath_var=no
16550 if test "$GCC" = yes; then
16551 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'
16553 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'
16555 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16556 hardcode_libdir_separator=:
16557 hardcode_direct=yes
16559 # hardcode_minus_L: Not really in the search PATH,
16560 # but as the default location of the library.
16561 hardcode_minus_L=yes
16562 export_dynamic_flag_spec='${wl}-E'
16566 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16567 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16569 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16571 if test "$with_gnu_ld" = no; then
16572 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16573 hardcode_libdir_separator=:
16574 hardcode_direct=yes
16575 hardcode_direct_absolute=yes
16576 export_dynamic_flag_spec='${wl}-E'
16577 # hardcode_minus_L: Not really in the search PATH,
16578 # but as the default location of the library.
16579 hardcode_minus_L=yes
16584 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16587 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16590 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16593 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16599 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16602 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16606 # Older versions of the 11.00 compiler do not understand -b yet
16607 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16609 $as_echo_n "checking if $CC understands -b... " >&6; }
16610 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16611 $as_echo_n "(cached) " >&6
16613 lt_cv_prog_compiler__b=no
16614 save_LDFLAGS="$LDFLAGS"
16615 LDFLAGS="$LDFLAGS -b"
16616 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16617 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16618 # The linker can only warn and ignore the option if not recognized
16619 # So say no if there are warnings
16620 if test -s conftest.err; then
16621 # Append any errors to the config.log.
16622 cat conftest.err 1>&5
16623 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16624 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16625 if diff conftest.exp conftest.er2 >/dev/null; then
16626 lt_cv_prog_compiler__b=yes
16629 lt_cv_prog_compiler__b=yes
16633 LDFLAGS="$save_LDFLAGS"
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16637 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16639 if test x"$lt_cv_prog_compiler__b" = xyes; then
16640 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16642 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16648 if test "$with_gnu_ld" = no; then
16649 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16650 hardcode_libdir_separator=:
16655 hardcode_shlibpath_var=no
16658 hardcode_direct=yes
16659 hardcode_direct_absolute=yes
16660 export_dynamic_flag_spec='${wl}-E'
16662 # hardcode_minus_L: Not really in the search PATH,
16663 # but as the default location of the library.
16664 hardcode_minus_L=yes
16670 irix5* | irix6* | nonstopux*)
16671 if test "$GCC" = yes; then
16672 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'
16673 # Try to use the -exported_symbol ld option, if it does not
16674 # work, assume that -exports_file does not work either and
16675 # implicitly export all symbols.
16676 # This should be the same for all languages, so no per-tag cache variable.
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16678 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16679 if test "${lt_cv_irix_exported_symbol+set}" = set; then :
16680 $as_echo_n "(cached) " >&6
16682 save_LDFLAGS="$LDFLAGS"
16683 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16685 /* end confdefs.h. */
16686 int foo (void) { return 0; }
16688 if ac_fn_c_try_link "$LINENO"; then :
16689 lt_cv_irix_exported_symbol=yes
16691 lt_cv_irix_exported_symbol=no
16693 rm -f core conftest.err conftest.$ac_objext \
16694 conftest$ac_exeext conftest.$ac_ext
16695 LDFLAGS="$save_LDFLAGS"
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16698 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16699 if test "$lt_cv_irix_exported_symbol" = yes; then
16700 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'
16703 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'
16704 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'
16706 archive_cmds_need_lc='no'
16707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16708 hardcode_libdir_separator=:
16710 link_all_deplibs=yes
16714 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16715 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16717 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16719 hardcode_libdir_flag_spec='-R$libdir'
16720 hardcode_direct=yes
16721 hardcode_shlibpath_var=no
16725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16726 hardcode_direct=yes
16727 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16728 hardcode_libdir_separator=:
16729 hardcode_shlibpath_var=no
16736 if test -f /usr/libexec/ld.so; then
16737 hardcode_direct=yes
16738 hardcode_shlibpath_var=no
16739 hardcode_direct_absolute=yes
16740 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16741 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16742 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16743 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16744 export_dynamic_flag_spec='${wl}-E'
16747 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16748 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16749 hardcode_libdir_flag_spec='-R$libdir'
16752 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16753 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16763 hardcode_libdir_flag_spec='-L$libdir'
16764 hardcode_minus_L=yes
16765 allow_undefined_flag=unsupported
16766 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'
16767 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16771 if test "$GCC" = yes; then
16772 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16773 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'
16775 allow_undefined_flag=' -expect_unresolved \*'
16776 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'
16778 archive_cmds_need_lc='no'
16779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16780 hardcode_libdir_separator=:
16783 osf4* | osf5*) # as osf3* with the addition of -msym flag
16784 if test "$GCC" = yes; then
16785 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16786 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'
16787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16789 allow_undefined_flag=' -expect_unresolved \*'
16790 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'
16791 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~
16792 $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'
16794 # Both c and cxx compiler support -rpath directly
16795 hardcode_libdir_flag_spec='-rpath $libdir'
16797 archive_cmds_need_lc='no'
16798 hardcode_libdir_separator=:
16802 no_undefined_flag=' -z defs'
16803 if test "$GCC" = yes; then
16805 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16806 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16807 $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'
16809 case `$CC -V 2>&1` in
16812 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16813 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16814 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16818 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16819 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16820 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16824 hardcode_libdir_flag_spec='-R$libdir'
16825 hardcode_shlibpath_var=no
16827 solaris2.[0-5] | solaris2.[0-5].*) ;;
16829 # The compiler driver will combine and reorder linker options,
16830 # but understands `-z linker_flag'. GCC discards it without `$wl',
16831 # but is careful enough not to reorder.
16832 # Supported since Solaris 2.6 (maybe 2.5.1?)
16833 if test "$GCC" = yes; then
16834 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16836 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16840 link_all_deplibs=yes
16844 if test "x$host_vendor" = xsequent; then
16845 # Use $CC to link under sequent, because it throws in some extra .o
16846 # files that make .init and .fini sections work.
16847 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16849 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16851 hardcode_libdir_flag_spec='-L$libdir'
16852 hardcode_direct=yes
16853 hardcode_minus_L=yes
16854 hardcode_shlibpath_var=no
16858 case $host_vendor in
16860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16861 hardcode_direct=yes # is this really true???
16864 ## LD is ld it makes a PLAMLIB
16865 ## CC just makes a GrossModule.
16866 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16867 reload_cmds='$CC -r -o $output$reload_objs'
16871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16872 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16875 runpath_var='LD_RUN_PATH'
16876 hardcode_shlibpath_var=no
16880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16881 hardcode_shlibpath_var=no
16882 export_dynamic_flag_spec='-Bexport'
16886 if test -d /usr/nec; then
16887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16888 hardcode_shlibpath_var=no
16889 runpath_var=LD_RUN_PATH
16890 hardcode_runpath_var=yes
16895 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16896 no_undefined_flag='${wl}-z,text'
16897 archive_cmds_need_lc=no
16898 hardcode_shlibpath_var=no
16899 runpath_var='LD_RUN_PATH'
16901 if test "$GCC" = yes; then
16902 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16903 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16905 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16906 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16910 sysv5* | sco3.2v5* | sco5v6*)
16911 # Note: We can NOT use -z defs as we might desire, because we do not
16912 # link with -lc, and that would cause any symbols used from libc to
16913 # always be unresolved, which means just about no library would
16914 # ever link correctly. If we're not using GNU ld we use -z text
16915 # though, which does catch some bad symbols but isn't as heavy-handed
16917 no_undefined_flag='${wl}-z,text'
16918 allow_undefined_flag='${wl}-z,nodefs'
16919 archive_cmds_need_lc=no
16920 hardcode_shlibpath_var=no
16921 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16922 hardcode_libdir_separator=':'
16923 link_all_deplibs=yes
16924 export_dynamic_flag_spec='${wl}-Bexport'
16925 runpath_var='LD_RUN_PATH'
16927 if test "$GCC" = yes; then
16928 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16929 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16931 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16932 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16938 hardcode_libdir_flag_spec='-L$libdir'
16939 hardcode_shlibpath_var=no
16947 if test x$host_vendor = xsni; then
16949 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16950 export_dynamic_flag_spec='${wl}-Blargedynsym'
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16957 $as_echo "$ld_shlibs" >&6; }
16958 test "$ld_shlibs" = no && can_build_shared=no
16960 with_gnu_ld=$with_gnu_ld
16977 # Do we need to explicitly link libc?
16979 case "x$archive_cmds_need_lc" in
16981 # Assume -lc should be added
16982 archive_cmds_need_lc=yes
16984 if test "$enable_shared" = yes && test "$GCC" = yes; then
16985 case $archive_cmds in
16987 # FIXME: we may have to deal with multi-command sequences.
16990 # Test whether the compiler implicitly links with -lc since on some
16991 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16992 # to ld, don't add -lc before -lgcc.
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16994 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16995 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16996 $as_echo_n "(cached) " >&6
16999 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17002 (eval $ac_compile) 2>&5
17004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17005 test $ac_status = 0; } 2>conftest.err; then
17008 libobjs=conftest.$ac_objext
17010 wl=$lt_prog_compiler_wl
17011 pic_flag=$lt_prog_compiler_pic
17017 lt_save_allow_undefined_flag=$allow_undefined_flag
17018 allow_undefined_flag=
17019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17020 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17023 test $ac_status = 0; }
17025 lt_cv_archive_cmds_need_lc=no
17027 lt_cv_archive_cmds_need_lc=yes
17029 allow_undefined_flag=$lt_save_allow_undefined_flag
17031 cat conftest.err 1>&5
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17037 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17038 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17197 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17199 if test "$GCC" = yes; then
17201 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17202 *) lt_awk_arg="/^libraries:/" ;;
17205 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17206 *) lt_sed_strip_eq="s,=/,/,g" ;;
17208 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17209 case $lt_search_path_spec in
17211 # if the path contains ";" then we assume it to be the separator
17212 # otherwise default to the standard path separator (i.e. ":") - it is
17213 # assumed that no part of a normal pathname contains ";" but that should
17214 # okay in the real world where ";" in dirpaths is itself problematic.
17215 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17218 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17221 # Ok, now we have the path, separated by spaces, we can step through it
17222 # and add multilib dir if necessary.
17223 lt_tmp_lt_search_path_spec=
17224 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17225 for lt_sys_path in $lt_search_path_spec; do
17226 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17227 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17229 test -d "$lt_sys_path" && \
17230 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17233 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17234 BEGIN {RS=" "; FS="/|\n";} {
17237 for (lt_i = NF; lt_i > 0; lt_i--) {
17238 if ($lt_i != "" && $lt_i != ".") {
17239 if ($lt_i == "..") {
17242 if (lt_count == 0) {
17243 lt_foo="/" $lt_i lt_foo;
17250 if (lt_foo != "") { lt_freq[lt_foo]++; }
17251 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17253 # AWK program above erroneously prepends '/' to C:/dos/paths
17256 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17257 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17259 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17261 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17263 library_names_spec=
17264 libname_spec='lib$name'
17268 postuninstall_cmds=
17272 shlibpath_overrides_runpath=unknown
17274 dynamic_linker="$host_os ld.so"
17275 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17276 need_lib_prefix=unknown
17277 hardcode_into_libs=no
17279 # when you set need_version to no, make sure it does not cause -set_version
17280 # flags to be left without arguments
17281 need_version=unknown
17285 version_type=linux # correct to gnu/linux during the next big refactor
17286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17287 shlibpath_var=LIBPATH
17289 # AIX 3 has no versioning support, so we append a major version to the name.
17290 soname_spec='${libname}${release}${shared_ext}$major'
17294 version_type=linux # correct to gnu/linux during the next big refactor
17297 hardcode_into_libs=yes
17298 if test "$host_cpu" = ia64; then
17299 # AIX 5 supports IA64
17300 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17301 shlibpath_var=LD_LIBRARY_PATH
17303 # With GCC up to 2.95.x, collect2 would create an import file
17304 # for dependence libraries. The import file would start with
17305 # the line `#! .'. This would cause the generated library to
17306 # depend on `.', always an invalid library. This was fixed in
17307 # development snapshots of GCC prior to 3.0.
17309 aix4 | aix4.[01] | aix4.[01].*)
17310 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17312 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17315 can_build_shared=no
17319 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17320 # soname into executable. Probably we can add versioning support to
17321 # collect2, so additional links can be useful in future.
17322 if test "$aix_use_runtimelinking" = yes; then
17323 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17324 # instead of lib<name>.a to let people know that these are not
17325 # typical AIX shared libraries.
17326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17328 # We preserve .a as extension for shared libraries through AIX4.2
17329 # and later when we are not doing run time linking.
17330 library_names_spec='${libname}${release}.a $libname.a'
17331 soname_spec='${libname}${release}${shared_ext}$major'
17333 shlibpath_var=LIBPATH
17340 # Since July 2007 AmigaOS4 officially supports .so libraries.
17341 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17345 library_names_spec='$libname.ixlibrary $libname.a'
17346 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17347 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'
17353 library_names_spec='${libname}${shared_ext}'
17354 dynamic_linker="$host_os ld.so"
17355 shlibpath_var=LIBRARY_PATH
17359 version_type=linux # correct to gnu/linux during the next big refactor
17361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17362 soname_spec='${libname}${release}${shared_ext}$major'
17363 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17364 shlibpath_var=LD_LIBRARY_PATH
17365 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17366 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17367 # the default ld.so.conf also contains /usr/contrib/lib and
17368 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17369 # libtool to hard-code these into programs
17372 cygwin* | mingw* | pw32* | cegcc*)
17373 version_type=windows
17378 case $GCC,$cc_basename in
17381 library_names_spec='$libname.dll.a'
17382 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17383 postinstall_cmds='base_file=`basename \${file}`~
17384 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17385 dldir=$destdir/`dirname \$dlpath`~
17386 test -d \$dldir || mkdir -p \$dldir~
17387 $install_prog $dir/$dlname \$dldir/$dlname~
17388 chmod a+x \$dldir/$dlname~
17389 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17390 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17393 dlpath=$dir/\$dldll~
17395 shlibpath_overrides_runpath=yes
17399 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17400 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17402 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17405 # MinGW DLLs use traditional 'lib' prefix
17406 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17409 # pw32 DLLs use 'pw' prefix rather than 'lib'
17410 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17413 dynamic_linker='Win32 ld.exe'
17418 libname_spec='$name'
17419 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17420 library_names_spec='${libname}.dll.lib'
17424 sys_lib_search_path_spec=
17427 for lt_path in $LIB
17430 # Let DOS variable expansion print the short 8.3 style file name.
17431 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17432 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17435 # Convert to MSYS style.
17436 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17439 # Convert to unix form, then to dos form, then back to unix form
17440 # but this time dos style (no spaces!) so that the unix form looks
17441 # like /cygdrive/c/PROGRA~1:/cygdr...
17442 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17443 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17444 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17447 sys_lib_search_path_spec="$LIB"
17448 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17449 # It is most probably a Windows format PATH.
17450 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17452 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17454 # FIXME: find the short name or the path components, as spaces are
17455 # common. (e.g. "Program Files" -> "PROGRA~1")
17459 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17460 postinstall_cmds='base_file=`basename \${file}`~
17461 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17462 dldir=$destdir/`dirname \$dlpath`~
17463 test -d \$dldir || mkdir -p \$dldir~
17464 $install_prog $dir/$dlname \$dldir/$dlname'
17465 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17466 dlpath=$dir/\$dldll~
17468 shlibpath_overrides_runpath=yes
17469 dynamic_linker='Win32 link.exe'
17473 # Assume MSVC wrapper
17474 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17475 dynamic_linker='Win32 ld.exe'
17478 # FIXME: first we should search . and the directory the executable is in
17482 darwin* | rhapsody*)
17483 dynamic_linker="$host_os dyld"
17484 version_type=darwin
17487 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17488 soname_spec='${libname}${release}${major}$shared_ext'
17489 shlibpath_overrides_runpath=yes
17490 shlibpath_var=DYLD_LIBRARY_PATH
17491 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17493 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17494 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17498 version_type=linux # correct to gnu/linux during the next big refactor
17501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17502 soname_spec='${libname}${release}${shared_ext}$major'
17503 shlibpath_var=LD_LIBRARY_PATH
17506 freebsd* | dragonfly*)
17507 # DragonFly does not have aout. When/if they implement a new
17508 # versioning mechanism, adjust this.
17509 if test -x /usr/bin/objformat; then
17510 objformat=`/usr/bin/objformat`
17513 freebsd[23].*) objformat=aout ;;
17514 *) objformat=elf ;;
17517 version_type=freebsd-$objformat
17518 case $version_type in
17520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17525 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17529 shlibpath_var=LD_LIBRARY_PATH
17532 shlibpath_overrides_runpath=yes
17534 freebsd3.[01]* | freebsdelf3.[01]*)
17535 shlibpath_overrides_runpath=yes
17536 hardcode_into_libs=yes
17538 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17539 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17540 shlibpath_overrides_runpath=no
17541 hardcode_into_libs=yes
17543 *) # from 4.6 on, and DragonFly
17544 shlibpath_overrides_runpath=yes
17545 hardcode_into_libs=yes
17551 version_type=linux # correct to gnu/linux during the next big refactor
17554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17555 soname_spec='${libname}${release}${shared_ext}$major'
17556 shlibpath_var=LD_LIBRARY_PATH
17557 shlibpath_overrides_runpath=no
17558 hardcode_into_libs=yes
17562 version_type=linux # correct to gnu/linux during the next big refactor
17565 dynamic_linker="$host_os runtime_loader"
17566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17567 soname_spec='${libname}${release}${shared_ext}$major'
17568 shlibpath_var=LIBRARY_PATH
17569 shlibpath_overrides_runpath=yes
17570 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17571 hardcode_into_libs=yes
17574 hpux9* | hpux10* | hpux11*)
17575 # Give a soname corresponding to the major version so that dld.sl refuses to
17576 # link against other versions.
17583 hardcode_into_libs=yes
17584 dynamic_linker="$host_os dld.so"
17585 shlibpath_var=LD_LIBRARY_PATH
17586 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17588 soname_spec='${libname}${release}${shared_ext}$major'
17589 if test "X$HPUX_IA64_MODE" = X32; then
17590 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17592 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17594 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17598 hardcode_into_libs=yes
17599 dynamic_linker="$host_os dld.sl"
17600 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17601 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17603 soname_spec='${libname}${release}${shared_ext}$major'
17604 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17605 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17609 dynamic_linker="$host_os dld.sl"
17610 shlibpath_var=SHLIB_PATH
17611 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17613 soname_spec='${libname}${release}${shared_ext}$major'
17616 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17617 postinstall_cmds='chmod 555 $lib'
17618 # or fails outright, so override atomically:
17619 install_override_mode=555
17623 version_type=linux # correct to gnu/linux during the next big refactor
17626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17627 soname_spec='${libname}${release}${shared_ext}$major'
17628 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17629 shlibpath_var=LD_LIBRARY_PATH
17630 shlibpath_overrides_runpath=no
17631 hardcode_into_libs=yes
17634 irix5* | irix6* | nonstopux*)
17636 nonstopux*) version_type=nonstopux ;;
17638 if test "$lt_cv_prog_gnu_ld" = yes; then
17639 version_type=linux # correct to gnu/linux during the next big refactor
17646 soname_spec='${libname}${release}${shared_ext}$major'
17647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17649 irix5* | nonstopux*)
17650 libsuff= shlibsuff=
17653 case $LD in # libtool.m4 will add one of these switches to LD
17654 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17655 libsuff= shlibsuff= libmagic=32-bit;;
17656 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17657 libsuff=32 shlibsuff=N32 libmagic=N32;;
17658 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17659 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17660 *) libsuff= shlibsuff= libmagic=never-match;;
17664 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17665 shlibpath_overrides_runpath=no
17666 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17667 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17668 hardcode_into_libs=yes
17671 # No shared lib support for Linux oldld, aout, or coff.
17672 linux*oldld* | linux*aout* | linux*coff*)
17676 # This must be glibc/ELF.
17677 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17678 version_type=linux # correct to gnu/linux during the next big refactor
17681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17682 soname_spec='${libname}${release}${shared_ext}$major'
17683 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17684 shlibpath_var=LD_LIBRARY_PATH
17685 shlibpath_overrides_runpath=no
17687 # Some binutils ld are patched to set DT_RUNPATH
17688 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17689 $as_echo_n "(cached) " >&6
17691 lt_cv_shlibpath_overrides_runpath=no
17692 save_LDFLAGS=$LDFLAGS
17693 save_libdir=$libdir
17694 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17695 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17697 /* end confdefs.h. */
17707 if ac_fn_c_try_link "$LINENO"; then :
17708 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17709 lt_cv_shlibpath_overrides_runpath=yes
17712 rm -f core conftest.err conftest.$ac_objext \
17713 conftest$ac_exeext conftest.$ac_ext
17714 LDFLAGS=$save_LDFLAGS
17715 libdir=$save_libdir
17719 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17721 # This implies no fast_install, which is unacceptable.
17722 # Some rework will be needed to allow for fast_install
17723 # before this can be enabled.
17724 hardcode_into_libs=yes
17726 # Append ld.so.conf contents to the search path
17727 if test -f /etc/ld.so.conf; then
17728 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' ' '`
17729 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17732 # We used to test for /lib/ld.so.1 and disable shared libraries on
17733 # powerpc, because MkLinux only supported shared libraries with the
17734 # GNU dynamic linker. Since this was broken with cross compilers,
17735 # most powerpc-linux boxes support dynamic linking these days and
17736 # people can always --disable-shared, the test was removed, and we
17737 # assume the GNU/Linux dynamic linker is in use.
17738 dynamic_linker='GNU/Linux ld.so'
17745 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17748 dynamic_linker='NetBSD (a.out) ld.so'
17750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17751 soname_spec='${libname}${release}${shared_ext}$major'
17752 dynamic_linker='NetBSD ld.elf_so'
17754 shlibpath_var=LD_LIBRARY_PATH
17755 shlibpath_overrides_runpath=yes
17756 hardcode_into_libs=yes
17760 version_type=linux # correct to gnu/linux during the next big refactor
17761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17762 shlibpath_var=LD_LIBRARY_PATH
17763 shlibpath_overrides_runpath=yes
17770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17771 soname_spec='${libname}${release}${shared_ext}$major'
17772 shlibpath_var=LD_LIBRARY_PATH
17773 shlibpath_overrides_runpath=no
17774 hardcode_into_libs=yes
17775 dynamic_linker='ldqnx.so'
17780 sys_lib_dlsearch_path_spec="/usr/lib"
17782 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17784 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17785 *) need_version=no ;;
17787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17788 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17789 shlibpath_var=LD_LIBRARY_PATH
17790 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17792 openbsd2.[89] | openbsd2.[89].*)
17793 shlibpath_overrides_runpath=no
17796 shlibpath_overrides_runpath=yes
17800 shlibpath_overrides_runpath=yes
17805 libname_spec='$name'
17808 library_names_spec='$libname${shared_ext} $libname.a'
17809 dynamic_linker='OS/2 ld.exe'
17810 shlibpath_var=LIBPATH
17813 osf3* | osf4* | osf5*)
17817 soname_spec='${libname}${release}${shared_ext}$major'
17818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17819 shlibpath_var=LD_LIBRARY_PATH
17820 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17821 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17829 version_type=linux # correct to gnu/linux during the next big refactor
17832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17833 soname_spec='${libname}${release}${shared_ext}$major'
17834 shlibpath_var=LD_LIBRARY_PATH
17835 shlibpath_overrides_runpath=yes
17836 hardcode_into_libs=yes
17837 # ldd complains unless libraries are executable
17838 postinstall_cmds='chmod +x $lib'
17843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17844 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17845 shlibpath_var=LD_LIBRARY_PATH
17846 shlibpath_overrides_runpath=yes
17847 if test "$with_gnu_ld" = yes; then
17854 version_type=linux # correct to gnu/linux during the next big refactor
17855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17856 soname_spec='${libname}${release}${shared_ext}$major'
17857 shlibpath_var=LD_LIBRARY_PATH
17858 case $host_vendor in
17860 shlibpath_overrides_runpath=no
17862 runpath_var=LD_RUN_PATH
17870 shlibpath_overrides_runpath=no
17871 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17877 if test -d /usr/nec ;then
17878 version_type=linux # correct to gnu/linux during the next big refactor
17879 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17880 soname_spec='$libname${shared_ext}.$major'
17881 shlibpath_var=LD_LIBRARY_PATH
17885 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17886 version_type=freebsd-elf
17889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17890 soname_spec='${libname}${release}${shared_ext}$major'
17891 shlibpath_var=LD_LIBRARY_PATH
17892 shlibpath_overrides_runpath=yes
17893 hardcode_into_libs=yes
17894 if test "$with_gnu_ld" = yes; then
17895 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17897 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17900 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17904 sys_lib_dlsearch_path_spec='/usr/lib'
17908 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17909 version_type=linux # correct to gnu/linux during the next big refactor
17912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17913 shlibpath_var=LD_LIBRARY_PATH
17914 shlibpath_overrides_runpath=no
17915 hardcode_into_libs=yes
17919 version_type=linux # correct to gnu/linux during the next big refactor
17920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17921 soname_spec='${libname}${release}${shared_ext}$major'
17922 shlibpath_var=LD_LIBRARY_PATH
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17930 $as_echo "$dynamic_linker" >&6; }
17931 test "$dynamic_linker" = no && can_build_shared=no
17933 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17934 if test "$GCC" = yes; then
17935 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17938 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17939 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17941 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17942 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18037 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18039 if test -n "$hardcode_libdir_flag_spec" ||
18040 test -n "$runpath_var" ||
18041 test "X$hardcode_automatic" = "Xyes" ; then
18043 # We can hardcode non-existent directories.
18044 if test "$hardcode_direct" != no &&
18045 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18046 # have to relink, otherwise we might link with an installed library
18047 # when we should be linking with a yet-to-be-installed one
18048 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18049 test "$hardcode_minus_L" != no; then
18050 # Linking always hardcodes the temporary library directory.
18051 hardcode_action=relink
18053 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18054 hardcode_action=immediate
18057 # We cannot hardcode anything, or else we can only hardcode existing
18059 hardcode_action=unsupported
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18062 $as_echo "$hardcode_action" >&6; }
18064 if test "$hardcode_action" = relink ||
18065 test "$inherit_rpath" = yes; then
18066 # Fast installation is not supported
18067 enable_fast_install=no
18068 elif test "$shlibpath_overrides_runpath" = yes ||
18069 test "$enable_shared" = no; then
18070 # Fast installation is not necessary
18071 enable_fast_install=needless
18079 if test "x$enable_dlopen" != xyes; then
18080 enable_dlopen=unknown
18081 enable_dlopen_self=unknown
18082 enable_dlopen_self_static=unknown
18089 lt_cv_dlopen="load_add_on"
18091 lt_cv_dlopen_self=yes
18094 mingw* | pw32* | cegcc*)
18095 lt_cv_dlopen="LoadLibrary"
18100 lt_cv_dlopen="dlopen"
18105 # if libdl is installed we need to link against it
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18107 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18108 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18109 $as_echo_n "(cached) " >&6
18111 ac_check_lib_save_LIBS=$LIBS
18113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18114 /* end confdefs.h. */
18116 /* Override any GCC internal prototype to avoid an error.
18117 Use char because int might match the return type of a GCC
18118 builtin and then its argument prototype would still apply. */
18131 if ac_fn_c_try_link "$LINENO"; then :
18132 ac_cv_lib_dl_dlopen=yes
18134 ac_cv_lib_dl_dlopen=no
18136 rm -f core conftest.err conftest.$ac_objext \
18137 conftest$ac_exeext conftest.$ac_ext
18138 LIBS=$ac_check_lib_save_LIBS
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18141 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18142 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18143 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18146 lt_cv_dlopen="dyld"
18148 lt_cv_dlopen_self=yes
18155 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18156 if test "x$ac_cv_func_shl_load" = x""yes; then :
18157 lt_cv_dlopen="shl_load"
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18160 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18161 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18162 $as_echo_n "(cached) " >&6
18164 ac_check_lib_save_LIBS=$LIBS
18166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18167 /* end confdefs.h. */
18169 /* Override any GCC internal prototype to avoid an error.
18170 Use char because int might match the return type of a GCC
18171 builtin and then its argument prototype would still apply. */
18179 return shl_load ();
18184 if ac_fn_c_try_link "$LINENO"; then :
18185 ac_cv_lib_dld_shl_load=yes
18187 ac_cv_lib_dld_shl_load=no
18189 rm -f core conftest.err conftest.$ac_objext \
18190 conftest$ac_exeext conftest.$ac_ext
18191 LIBS=$ac_check_lib_save_LIBS
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18194 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18195 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18196 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18198 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18199 if test "x$ac_cv_func_dlopen" = x""yes; then :
18200 lt_cv_dlopen="dlopen"
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18203 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18204 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18205 $as_echo_n "(cached) " >&6
18207 ac_check_lib_save_LIBS=$LIBS
18209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18210 /* end confdefs.h. */
18212 /* Override any GCC internal prototype to avoid an error.
18213 Use char because int might match the return type of a GCC
18214 builtin and then its argument prototype would still apply. */
18227 if ac_fn_c_try_link "$LINENO"; then :
18228 ac_cv_lib_dl_dlopen=yes
18230 ac_cv_lib_dl_dlopen=no
18232 rm -f core conftest.err conftest.$ac_objext \
18233 conftest$ac_exeext conftest.$ac_ext
18234 LIBS=$ac_check_lib_save_LIBS
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18237 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18238 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18239 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18242 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18243 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18244 $as_echo_n "(cached) " >&6
18246 ac_check_lib_save_LIBS=$LIBS
18247 LIBS="-lsvld $LIBS"
18248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18249 /* end confdefs.h. */
18251 /* Override any GCC internal prototype to avoid an error.
18252 Use char because int might match the return type of a GCC
18253 builtin and then its argument prototype would still apply. */
18266 if ac_fn_c_try_link "$LINENO"; then :
18267 ac_cv_lib_svld_dlopen=yes
18269 ac_cv_lib_svld_dlopen=no
18271 rm -f core conftest.err conftest.$ac_objext \
18272 conftest$ac_exeext conftest.$ac_ext
18273 LIBS=$ac_check_lib_save_LIBS
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18276 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18277 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18278 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18281 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18282 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18283 $as_echo_n "(cached) " >&6
18285 ac_check_lib_save_LIBS=$LIBS
18287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18288 /* end confdefs.h. */
18290 /* Override any GCC internal prototype to avoid an error.
18291 Use char because int might match the return type of a GCC
18292 builtin and then its argument prototype would still apply. */
18300 return dld_link ();
18305 if ac_fn_c_try_link "$LINENO"; then :
18306 ac_cv_lib_dld_dld_link=yes
18308 ac_cv_lib_dld_dld_link=no
18310 rm -f core conftest.err conftest.$ac_objext \
18311 conftest$ac_exeext conftest.$ac_ext
18312 LIBS=$ac_check_lib_save_LIBS
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18315 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18316 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18317 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18338 if test "x$lt_cv_dlopen" != xno; then
18344 case $lt_cv_dlopen in
18346 save_CPPFLAGS="$CPPFLAGS"
18347 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18349 save_LDFLAGS="$LDFLAGS"
18350 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18353 LIBS="$lt_cv_dlopen_libs $LIBS"
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18356 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18357 if test "${lt_cv_dlopen_self+set}" = set; then :
18358 $as_echo_n "(cached) " >&6
18360 if test "$cross_compiling" = yes; then :
18361 lt_cv_dlopen_self=cross
18363 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18364 lt_status=$lt_dlunknown
18365 cat > conftest.$ac_ext <<_LT_EOF
18366 #line $LINENO "configure"
18367 #include "confdefs.h"
18376 # define LT_DLGLOBAL RTLD_GLOBAL
18379 # define LT_DLGLOBAL DL_GLOBAL
18381 # define LT_DLGLOBAL 0
18385 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18386 find out it does not work in some platform. */
18387 #ifndef LT_DLLAZY_OR_NOW
18389 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18392 # define LT_DLLAZY_OR_NOW DL_LAZY
18395 # define LT_DLLAZY_OR_NOW RTLD_NOW
18398 # define LT_DLLAZY_OR_NOW DL_NOW
18400 # define LT_DLLAZY_OR_NOW 0
18407 /* When -fvisbility=hidden is used, assume the code has been annotated
18408 correspondingly for the symbols needed. */
18409 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18410 int fnord () __attribute__((visibility("default")));
18413 int fnord () { return 42; }
18416 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18417 int status = $lt_dlunknown;
18421 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18424 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18425 else puts (dlerror ());
18427 /* dlclose (self); */
18435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18436 (eval $ac_link) 2>&5
18438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18439 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18440 (./conftest; exit; ) >&5 2>/dev/null
18442 case x$lt_status in
18443 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18444 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18445 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18448 # compilation failed
18449 lt_cv_dlopen_self=no
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18457 $as_echo "$lt_cv_dlopen_self" >&6; }
18459 if test "x$lt_cv_dlopen_self" = xyes; then
18460 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18462 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18463 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18464 $as_echo_n "(cached) " >&6
18466 if test "$cross_compiling" = yes; then :
18467 lt_cv_dlopen_self_static=cross
18469 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18470 lt_status=$lt_dlunknown
18471 cat > conftest.$ac_ext <<_LT_EOF
18472 #line $LINENO "configure"
18473 #include "confdefs.h"
18482 # define LT_DLGLOBAL RTLD_GLOBAL
18485 # define LT_DLGLOBAL DL_GLOBAL
18487 # define LT_DLGLOBAL 0
18491 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18492 find out it does not work in some platform. */
18493 #ifndef LT_DLLAZY_OR_NOW
18495 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18498 # define LT_DLLAZY_OR_NOW DL_LAZY
18501 # define LT_DLLAZY_OR_NOW RTLD_NOW
18504 # define LT_DLLAZY_OR_NOW DL_NOW
18506 # define LT_DLLAZY_OR_NOW 0
18513 /* When -fvisbility=hidden is used, assume the code has been annotated
18514 correspondingly for the symbols needed. */
18515 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18516 int fnord () __attribute__((visibility("default")));
18519 int fnord () { return 42; }
18522 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18523 int status = $lt_dlunknown;
18527 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18530 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18531 else puts (dlerror ());
18533 /* dlclose (self); */
18541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18542 (eval $ac_link) 2>&5
18544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18545 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18546 (./conftest; exit; ) >&5 2>/dev/null
18548 case x$lt_status in
18549 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18550 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18551 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18554 # compilation failed
18555 lt_cv_dlopen_self_static=no
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18563 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18566 CPPFLAGS="$save_CPPFLAGS"
18567 LDFLAGS="$save_LDFLAGS"
18572 case $lt_cv_dlopen_self in
18573 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18574 *) enable_dlopen_self=unknown ;;
18577 case $lt_cv_dlopen_self_static in
18578 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18579 *) enable_dlopen_self_static=unknown ;;
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18602 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18603 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18604 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18605 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18607 $as_echo "yes" >&6; }
18609 # FIXME - insert some real tests, host_os isn't really good enough
18612 if test -n "$STRIP" ; then
18613 striplib="$STRIP -x"
18614 old_striplib="$STRIP -S"
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18616 $as_echo "yes" >&6; }
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18619 $as_echo "no" >&6; }
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18624 $as_echo "no" >&6; }
18640 # Report which library types will actually be built
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18642 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18644 $as_echo "$can_build_shared" >&6; }
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18647 $as_echo_n "checking whether to build shared libraries... " >&6; }
18648 test "$can_build_shared" = "no" && enable_shared=no
18650 # On AIX, shared libraries and static libraries use the same namespace, and
18651 # are all built from PIC.
18654 test "$enable_shared" = yes && enable_static=no
18655 if test -n "$RANLIB"; then
18656 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18657 postinstall_cmds='$RANLIB $lib'
18662 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18663 test "$enable_shared" = yes && enable_static=no
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18668 $as_echo "$enable_shared" >&6; }
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18671 $as_echo_n "checking whether to build static libraries... " >&6; }
18672 # Make sure either enable_shared or enable_static is yes.
18673 test "$enable_shared" = yes || enable_static=yes
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18675 $as_echo "$enable_static" >&6; }
18682 ac_cpp='$CPP $CPPFLAGS'
18683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18689 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18690 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18691 (test "X$CXX" != "Xg++"))) ; then
18693 ac_cpp='$CXXCPP $CPPFLAGS'
18694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18698 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18699 if test -z "$CXXCPP"; then
18700 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18701 $as_echo_n "(cached) " >&6
18703 # Double quotes because CXXCPP needs to be expanded
18704 for CXXCPP in "$CXX -E" "/lib/cpp"
18706 ac_preproc_ok=false
18707 for ac_cxx_preproc_warn_flag in '' yes
18709 # Use a header file that comes with gcc, so configuring glibc
18710 # with a fresh cross-compiler works.
18711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18712 # <limits.h> exists even on freestanding compilers.
18713 # On the NeXT, cc -E runs the code through the compiler's parser,
18714 # not just through cpp. "Syntax error" is here to catch this case.
18715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18716 /* end confdefs.h. */
18718 # include <limits.h>
18720 # include <assert.h>
18724 if ac_fn_cxx_try_cpp "$LINENO"; then :
18727 # Broken: fails on valid input.
18730 rm -f conftest.err conftest.$ac_ext
18732 # OK, works on sane cases. Now check whether nonexistent headers
18733 # can be detected and how.
18734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18735 /* end confdefs.h. */
18736 #include <ac_nonexistent.h>
18738 if ac_fn_cxx_try_cpp "$LINENO"; then :
18739 # Broken: success on invalid input.
18742 # Passes both tests.
18746 rm -f conftest.err conftest.$ac_ext
18749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18750 rm -f conftest.err conftest.$ac_ext
18751 if $ac_preproc_ok; then :
18756 ac_cv_prog_CXXCPP=$CXXCPP
18759 CXXCPP=$ac_cv_prog_CXXCPP
18761 ac_cv_prog_CXXCPP=$CXXCPP
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18764 $as_echo "$CXXCPP" >&6; }
18765 ac_preproc_ok=false
18766 for ac_cxx_preproc_warn_flag in '' yes
18768 # Use a header file that comes with gcc, so configuring glibc
18769 # with a fresh cross-compiler works.
18770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18771 # <limits.h> exists even on freestanding compilers.
18772 # On the NeXT, cc -E runs the code through the compiler's parser,
18773 # not just through cpp. "Syntax error" is here to catch this case.
18774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18775 /* end confdefs.h. */
18777 # include <limits.h>
18779 # include <assert.h>
18783 if ac_fn_cxx_try_cpp "$LINENO"; then :
18786 # Broken: fails on valid input.
18789 rm -f conftest.err conftest.$ac_ext
18791 # OK, works on sane cases. Now check whether nonexistent headers
18792 # can be detected and how.
18793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18794 /* end confdefs.h. */
18795 #include <ac_nonexistent.h>
18797 if ac_fn_cxx_try_cpp "$LINENO"; then :
18798 # Broken: success on invalid input.
18801 # Passes both tests.
18805 rm -f conftest.err conftest.$ac_ext
18808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18809 rm -f conftest.err conftest.$ac_ext
18810 if $ac_preproc_ok; then :
18813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18815 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18816 See \`config.log' for more details." "$LINENO" 5; }
18820 ac_cpp='$CPP $CPPFLAGS'
18821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18826 _lt_caught_CXX_error=yes
18830 ac_cpp='$CXXCPP $CPPFLAGS'
18831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18835 archive_cmds_need_lc_CXX=no
18836 allow_undefined_flag_CXX=
18837 always_export_symbols_CXX=no
18838 archive_expsym_cmds_CXX=
18839 compiler_needs_object_CXX=no
18840 export_dynamic_flag_spec_CXX=
18841 hardcode_direct_CXX=no
18842 hardcode_direct_absolute_CXX=no
18843 hardcode_libdir_flag_spec_CXX=
18844 hardcode_libdir_separator_CXX=
18845 hardcode_minus_L_CXX=no
18846 hardcode_shlibpath_var_CXX=unsupported
18847 hardcode_automatic_CXX=no
18848 inherit_rpath_CXX=no
18850 module_expsym_cmds_CXX=
18851 link_all_deplibs_CXX=unknown
18852 old_archive_cmds_CXX=$old_archive_cmds
18853 reload_flag_CXX=$reload_flag
18854 reload_cmds_CXX=$reload_cmds
18855 no_undefined_flag_CXX=
18856 whole_archive_flag_spec_CXX=
18857 enable_shared_with_static_runtimes_CXX=no
18859 # Source file extension for C++ test sources.
18862 # Object file extension for compiled C++ test sources.
18866 # No sense in running all these tests if we already determined that
18867 # the CXX compiler isn't working. Some variables (like enable_shared)
18868 # are currently assumed to apply to all compilers on this platform,
18869 # and will be corrupted by setting them based on a non-working compiler.
18870 if test "$_lt_caught_CXX_error" != yes; then
18871 # Code to be used in simple compile tests
18872 lt_simple_compile_test_code="int some_variable = 0;"
18874 # Code to be used in simple link tests
18875 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18877 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18884 # If no C compiler was specified, use CC.
18887 # If no C compiler flags were specified, use CFLAGS.
18888 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18890 # Allow CC to be a program name with arguments.
18894 # save warnings/boilerplate of simple test code
18895 ac_outfile=conftest.$ac_objext
18896 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18897 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18898 _lt_compiler_boilerplate=`cat conftest.err`
18901 ac_outfile=conftest.$ac_objext
18902 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18903 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18904 _lt_linker_boilerplate=`cat conftest.err`
18908 # Allow CC to be a program name with arguments.
18910 lt_save_CFLAGS=$CFLAGS
18914 lt_save_with_gnu_ld=$with_gnu_ld
18915 lt_save_path_LD=$lt_cv_path_LD
18916 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18917 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18919 $as_unset lt_cv_prog_gnu_ld
18921 if test -n "${lt_cv_path_LDCXX+set}"; then
18922 lt_cv_path_LD=$lt_cv_path_LDCXX
18924 $as_unset lt_cv_path_LD
18926 test -z "${LDCXX+set}" || LD=$LDCXX
18931 for cc_temp in $compiler""; do
18933 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18934 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18939 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18942 if test -n "$compiler"; then
18943 # We don't want -fno-exception when compiling C++ code, so set the
18944 # no_builtin_flag separately
18945 if test "$GXX" = yes; then
18946 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18948 lt_prog_compiler_no_builtin_flag_CXX=
18951 if test "$GXX" = yes; then
18952 # Set up default GNU C++ configuration
18956 # Check whether --with-gnu-ld was given.
18957 if test "${with_gnu_ld+set}" = set; then :
18958 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18964 if test "$GCC" = yes; then
18965 # Check if gcc -print-prog-name=ld gives a path.
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18967 $as_echo_n "checking for ld used by $CC... " >&6; }
18970 # gcc leaves a trailing carriage return which upsets mingw
18971 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18973 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18976 # Accept absolute paths.
18978 re_direlt='/[^/][^/]*/\.\./'
18979 # Canonicalize the pathname of ld
18980 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18981 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18982 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18984 test -z "$LD" && LD="$ac_prog"
18987 # If it fails, then pretend we aren't using GCC.
18991 # If it is relative, then search for the first ld in PATH.
18992 with_gnu_ld=unknown
18995 elif test "$with_gnu_ld" = yes; then
18996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18997 $as_echo_n "checking for GNU ld... " >&6; }
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19000 $as_echo_n "checking for non-GNU ld... " >&6; }
19002 if test "${lt_cv_path_LD+set}" = set; then :
19003 $as_echo_n "(cached) " >&6
19005 if test -z "$LD"; then
19006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19007 for ac_dir in $PATH; do
19009 test -z "$ac_dir" && ac_dir=.
19010 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19011 lt_cv_path_LD="$ac_dir/$ac_prog"
19012 # Check to see if the program is GNU ld. I'd rather use --version,
19013 # but apparently some variants of GNU ld only accept -v.
19014 # Break only if it was the GNU/non-GNU ld that we prefer.
19015 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19016 *GNU* | *'with BFD'*)
19017 test "$with_gnu_ld" != no && break
19020 test "$with_gnu_ld" != yes && break
19027 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19031 LD="$lt_cv_path_LD"
19032 if test -n "$LD"; then
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19034 $as_echo "$LD" >&6; }
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19037 $as_echo "no" >&6; }
19039 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19041 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19042 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19043 $as_echo_n "(cached) " >&6
19045 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19046 case `$LD -v 2>&1 </dev/null` in
19047 *GNU* | *'with BFD'*)
19048 lt_cv_prog_gnu_ld=yes
19051 lt_cv_prog_gnu_ld=no
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19056 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19057 with_gnu_ld=$lt_cv_prog_gnu_ld
19065 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19066 # archiving commands below assume that GNU ld is being used.
19067 if test "$with_gnu_ld" = yes; then
19068 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19069 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'
19071 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19072 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19074 # If archive_cmds runs LD, not CC, wlarc should be empty
19075 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19076 # investigate it a little bit more. (MM)
19079 # ancient GNU ld didn't support --whole-archive et. al.
19080 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19081 $GREP 'no-whole-archive' > /dev/null; then
19082 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19084 whole_archive_flag_spec_CXX=
19090 # A generic and very simple default shared library creation
19091 # command for GNU C++ for the case where it uses the native
19092 # linker, instead of GNU ld. If possible, this setting should
19093 # overridden to take advantage of the native linker features on
19094 # the platform it is being used on.
19095 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19098 # Commands to make compiler produce verbose output that lists
19099 # what "hidden" libraries, object files and flags are used when
19100 # linking a shared library.
19101 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19109 # PORTME: fill in a description of your system's C++ link characteristics
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19111 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19115 # FIXME: insert proper C++ library support
19119 if test "$host_cpu" = ia64; then
19120 # On IA64, the linker does run time linking by default, so we don't
19121 # have to do anything special.
19122 aix_use_runtimelinking=no
19123 exp_sym_flag='-Bexport'
19126 aix_use_runtimelinking=no
19128 # Test if we are trying to use run time linking or normal
19129 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19130 # need to do runtime linking.
19131 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19132 for ld_flag in $LDFLAGS; do
19135 aix_use_runtimelinking=yes
19143 exp_sym_flag='-bexport'
19144 no_entry_flag='-bnoentry'
19147 # When large executables or shared objects are built, AIX ld can
19148 # have problems creating the table of contents. If linking a library
19149 # or program results in "error TOC overflow" add -mminimal-toc to
19150 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19151 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19153 archive_cmds_CXX=''
19154 hardcode_direct_CXX=yes
19155 hardcode_direct_absolute_CXX=yes
19156 hardcode_libdir_separator_CXX=':'
19157 link_all_deplibs_CXX=yes
19158 file_list_spec_CXX='${wl}-f,'
19160 if test "$GXX" = yes; then
19161 case $host_os in aix4.[012]|aix4.[012].*)
19162 # We only want to do this on AIX 4.2 and lower, the check
19163 # below for broken collect2 doesn't work under 4.3+
19164 collect2name=`${CC} -print-prog-name=collect2`
19165 if test -f "$collect2name" &&
19166 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19168 # We have reworked collect2
19171 # We have old collect2
19172 hardcode_direct_CXX=unsupported
19173 # It fails to find uninstalled libraries when the uninstalled
19174 # path is not listed in the libpath. Setting hardcode_minus_L
19175 # to unsupported forces relinking
19176 hardcode_minus_L_CXX=yes
19177 hardcode_libdir_flag_spec_CXX='-L$libdir'
19178 hardcode_libdir_separator_CXX=
19181 shared_flag='-shared'
19182 if test "$aix_use_runtimelinking" = yes; then
19183 shared_flag="$shared_flag "'${wl}-G'
19187 if test "$host_cpu" = ia64; then
19188 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19189 # chokes on -Wl,-G. The following line is correct:
19192 if test "$aix_use_runtimelinking" = yes; then
19193 shared_flag='${wl}-G'
19195 shared_flag='${wl}-bM:SRE'
19200 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19201 # It seems that -bexpall does not export symbols beginning with
19202 # underscore (_), so it is better to generate a list of symbols to
19204 always_export_symbols_CXX=yes
19205 if test "$aix_use_runtimelinking" = yes; then
19206 # Warning - without using the other runtime loading flags (-brtl),
19207 # -berok will link without error, but may produce a broken library.
19208 allow_undefined_flag_CXX='-berok'
19209 # Determine the default libpath from the value encoded in an empty
19211 if test "${lt_cv_aix_libpath+set}" = set; then
19212 aix_libpath=$lt_cv_aix_libpath
19214 if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
19215 $as_echo_n "(cached) " >&6
19217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19218 /* end confdefs.h. */
19228 if ac_fn_cxx_try_link "$LINENO"; then :
19230 lt_aix_libpath_sed='
19231 /Import File Strings/,/^$/ {
19233 s/^0 *\([^ ]*\) *$/\1/
19237 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19238 # Check for a 64-bit object if we didn't find anything.
19239 if test -z "$lt_cv_aix_libpath__CXX"; then
19240 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19243 rm -f core conftest.err conftest.$ac_objext \
19244 conftest$ac_exeext conftest.$ac_ext
19245 if test -z "$lt_cv_aix_libpath__CXX"; then
19246 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
19251 aix_libpath=$lt_cv_aix_libpath__CXX
19254 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19256 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"
19258 if test "$host_cpu" = ia64; then
19259 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19260 allow_undefined_flag_CXX="-z nodefs"
19261 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"
19263 # Determine the default libpath from the value encoded in an
19264 # empty executable.
19265 if test "${lt_cv_aix_libpath+set}" = set; then
19266 aix_libpath=$lt_cv_aix_libpath
19268 if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
19269 $as_echo_n "(cached) " >&6
19271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19272 /* end confdefs.h. */
19282 if ac_fn_cxx_try_link "$LINENO"; then :
19284 lt_aix_libpath_sed='
19285 /Import File Strings/,/^$/ {
19287 s/^0 *\([^ ]*\) *$/\1/
19291 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19292 # Check for a 64-bit object if we didn't find anything.
19293 if test -z "$lt_cv_aix_libpath__CXX"; then
19294 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19297 rm -f core conftest.err conftest.$ac_objext \
19298 conftest$ac_exeext conftest.$ac_ext
19299 if test -z "$lt_cv_aix_libpath__CXX"; then
19300 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
19305 aix_libpath=$lt_cv_aix_libpath__CXX
19308 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19309 # Warning - without using the other run time loading flags,
19310 # -berok will link without error, but may produce a broken library.
19311 no_undefined_flag_CXX=' ${wl}-bernotok'
19312 allow_undefined_flag_CXX=' ${wl}-berok'
19313 if test "$with_gnu_ld" = yes; then
19314 # We only use this code for GNU lds that support --whole-archive.
19315 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19317 # Exported symbols can be pulled into shared objects from archives
19318 whole_archive_flag_spec_CXX='$convenience'
19320 archive_cmds_need_lc_CXX=yes
19321 # This is similar to how AIX traditionally builds its shared
19323 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'
19329 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19330 allow_undefined_flag_CXX=unsupported
19331 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19332 # support --undefined. This deserves some investigation. FIXME
19333 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19340 case $cc_basename in
19342 # FIXME: insert proper C++ library support
19348 cygwin* | mingw* | pw32* | cegcc*)
19349 case $GXX,$cc_basename in
19352 # hardcode_libdir_flag_spec is actually meaningless, as there is
19353 # no search path for DLLs.
19354 hardcode_libdir_flag_spec_CXX=' '
19355 allow_undefined_flag_CXX=unsupported
19356 always_export_symbols_CXX=yes
19357 file_list_spec_CXX='@'
19358 # Tell ltmain to make .lib files, not .a files.
19360 # Tell ltmain to make .dll files, not .so files.
19362 # FIXME: Setting linknames here is a bad hack.
19363 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
19364 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19365 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
19367 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
19369 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19371 # The linker will not automatically build a static lib if we build a DLL.
19372 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
19373 enable_shared_with_static_runtimes_CXX=yes
19375 old_postinstall_cmds_CXX='chmod 644 $oldlib'
19376 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
19377 lt_tool_outputfile="@TOOL_OUTPUT@"~
19378 case $lt_outputfile in
19381 lt_outputfile="$lt_outputfile.exe"
19382 lt_tool_outputfile="$lt_tool_outputfile.exe"
19385 func_to_tool_file "$lt_outputfile"~
19386 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
19387 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19388 $RM "$lt_outputfile.manifest";
19393 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19394 # as there is no search path for DLLs.
19395 hardcode_libdir_flag_spec_CXX='-L$libdir'
19396 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19397 allow_undefined_flag_CXX=unsupported
19398 always_export_symbols_CXX=no
19399 enable_shared_with_static_runtimes_CXX=yes
19401 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19402 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'
19403 # If the export-symbols file already is a .def file (1st line
19404 # is EXPORTS), use it as is; otherwise, prepend...
19405 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19406 cp $export_symbols $output_objdir/$soname.def;
19408 echo EXPORTS > $output_objdir/$soname.def;
19409 cat $export_symbols >> $output_objdir/$soname.def;
19411 $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'
19418 darwin* | rhapsody*)
19421 archive_cmds_need_lc_CXX=no
19422 hardcode_direct_CXX=no
19423 hardcode_automatic_CXX=yes
19424 hardcode_shlibpath_var_CXX=unsupported
19425 if test "$lt_cv_ld_force_load" = "yes"; then
19426 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\"`'
19429 whole_archive_flag_spec_CXX=''
19431 link_all_deplibs_CXX=yes
19432 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19433 case $cc_basename in
19434 ifort*) _lt_dar_can_shared=yes ;;
19435 *) _lt_dar_can_shared=$GCC ;;
19437 if test "$_lt_dar_can_shared" = "yes"; then
19438 output_verbose_link_cmd=func_echo_all
19439 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}"
19440 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19441 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}"
19442 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}"
19443 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19444 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}"
19445 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}"
19455 case $cc_basename in
19457 # FIXME: insert proper C++ library support
19461 # Green Hills C++ Compiler
19462 # FIXME: insert proper C++ library support
19466 # FIXME: insert proper C++ library support
19473 # C++ shared libraries reported to be fairly broken before
19479 archive_cmds_need_lc_CXX=no
19482 freebsd* | dragonfly*)
19483 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19492 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19493 link_all_deplibs_CXX=yes
19497 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19498 hardcode_libdir_separator_CXX=:
19499 export_dynamic_flag_spec_CXX='${wl}-E'
19500 hardcode_direct_CXX=yes
19501 hardcode_minus_L_CXX=yes # Not in the search PATH,
19502 # but as the default
19503 # location of the library.
19505 case $cc_basename in
19507 # FIXME: insert proper C++ library support
19511 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'
19512 # Commands to make compiler produce verbose output that lists
19513 # what "hidden" libraries, object files and flags are used when
19514 # linking a shared library.
19516 # There doesn't appear to be a way to prevent this compiler from
19517 # explicitly linking system object files so we need to strip them
19518 # from the output so that they don't get included in the library
19520 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"'
19523 if test "$GXX" = yes; then
19524 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'
19526 # FIXME: insert proper C++ library support
19534 if test $with_gnu_ld = no; then
19535 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19536 hardcode_libdir_separator_CXX=:
19542 export_dynamic_flag_spec_CXX='${wl}-E'
19548 hardcode_direct_CXX=no
19549 hardcode_shlibpath_var_CXX=no
19552 hardcode_direct_CXX=yes
19553 hardcode_direct_absolute_CXX=yes
19554 hardcode_minus_L_CXX=yes # Not in the search PATH,
19555 # but as the default
19556 # location of the library.
19560 case $cc_basename in
19562 # FIXME: insert proper C++ library support
19568 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19571 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19574 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19577 # Commands to make compiler produce verbose output that lists
19578 # what "hidden" libraries, object files and flags are used when
19579 # linking a shared library.
19581 # There doesn't appear to be a way to prevent this compiler from
19582 # explicitly linking system object files so we need to strip them
19583 # from the output so that they don't get included in the library
19585 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"'
19588 if test "$GXX" = yes; then
19589 if test $with_gnu_ld = no; then
19592 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19595 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19598 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'
19603 # FIXME: insert proper C++ library support
19611 hardcode_direct_CXX=no
19612 hardcode_shlibpath_var_CXX=no
19613 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19614 export_dynamic_flag_spec_CXX='${wl}-E'
19615 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19616 # Instead, shared libraries are loaded at an image base (0x10000000 by
19617 # default) and relocated if they conflict, which is a slow very memory
19618 # consuming and fragmenting process. To avoid this, we pick a random,
19619 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19620 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19621 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'
19622 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'
19625 case $cc_basename in
19628 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'
19630 # Archives containing C++ object files must be created using
19631 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19632 # necessary to make sure instantiated templates are included
19634 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19637 if test "$GXX" = yes; then
19638 if test "$with_gnu_ld" = no; then
19639 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'
19641 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'
19644 link_all_deplibs_CXX=yes
19647 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19648 hardcode_libdir_separator_CXX=:
19649 inherit_rpath_CXX=yes
19652 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19653 case $cc_basename in
19655 # Kuck and Associates, Inc. (KAI) C++ Compiler
19657 # KCC will only create a shared library if the output file
19658 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19659 # to its proper name (with version) after linking.
19660 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'
19661 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'
19662 # Commands to make compiler produce verbose output that lists
19663 # what "hidden" libraries, object files and flags are used when
19664 # linking a shared library.
19666 # There doesn't appear to be a way to prevent this compiler from
19667 # explicitly linking system object files so we need to strip them
19668 # from the output so that they don't get included in the library
19670 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"'
19672 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19673 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19675 # Archives containing C++ object files must be created using
19676 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19677 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19682 # version 8.0 and above of icpc choke on multiply defined symbols
19683 # if we add $predep_objects and $postdep_objects, however 7.1 and
19684 # earlier do not add the objects themselves.
19685 case `$CC -V 2>&1` in
19687 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19688 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'
19690 *) # Version 8.0 or newer
19693 ia64*) tmp_idyn=' -i_dynamic';;
19695 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19696 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'
19699 archive_cmds_need_lc_CXX=no
19700 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19701 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19702 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19705 # Portland Group C++ compiler
19707 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19708 prelink_cmds_CXX='tpldir=Template.dir~
19710 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19711 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19712 old_archive_cmds_CXX='tpldir=Template.dir~
19714 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19715 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19717 archive_cmds_CXX='tpldir=Template.dir~
19719 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19720 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19721 archive_expsym_cmds_CXX='tpldir=Template.dir~
19723 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19724 $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'
19726 *) # Version 6 and above use weak symbols
19727 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19728 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'
19732 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19733 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19734 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'
19738 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19739 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'
19741 runpath_var=LD_RUN_PATH
19742 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19743 hardcode_libdir_separator_CXX=:
19745 # Commands to make compiler produce verbose output that lists
19746 # what "hidden" libraries, object files and flags are used when
19747 # linking a shared library.
19749 # There doesn't appear to be a way to prevent this compiler from
19750 # explicitly linking system object files so we need to strip them
19751 # from the output so that they don't get included in the library
19753 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'
19755 xl* | mpixl* | bgxl*)
19756 # IBM XL 8.0 on PPC, with GNU ld
19757 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19758 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19759 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19760 if test "x$supports_anon_versioning" = xyes; then
19761 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19762 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19763 echo "local: *; };" >> $output_objdir/$libname.ver~
19764 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19768 case `$CC -V 2>&1 | sed 5q` in
19771 no_undefined_flag_CXX=' -zdefs'
19772 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19773 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'
19774 hardcode_libdir_flag_spec_CXX='-R$libdir'
19775 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'
19776 compiler_needs_object_CXX=yes
19778 # Not sure whether something based on
19779 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19781 output_verbose_link_cmd='func_echo_all'
19783 # Archives containing C++ object files must be created using
19784 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19785 # necessary to make sure instantiated templates are included
19787 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19795 # FIXME: insert proper C++ library support
19800 # FIXME: insert proper C++ library support
19805 case $cc_basename in
19807 # FIXME: insert proper C++ library support
19811 # FIXME: insert proper C++ library support
19818 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19819 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19821 hardcode_libdir_flag_spec_CXX='-R$libdir'
19822 hardcode_direct_CXX=yes
19823 hardcode_shlibpath_var_CXX=no
19825 # Workaround some broken pre-1.5 toolchains
19826 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19834 # C++ shared libraries are fairly broken
19839 if test -f /usr/libexec/ld.so; then
19840 hardcode_direct_CXX=yes
19841 hardcode_shlibpath_var_CXX=no
19842 hardcode_direct_absolute_CXX=yes
19843 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19844 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19845 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19846 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19847 export_dynamic_flag_spec_CXX='${wl}-E'
19848 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19850 output_verbose_link_cmd=func_echo_all
19856 osf3* | osf4* | osf5*)
19857 case $cc_basename in
19859 # Kuck and Associates, Inc. (KAI) C++ Compiler
19861 # KCC will only create a shared library if the output file
19862 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19863 # to its proper name (with version) after linking.
19864 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'
19866 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19867 hardcode_libdir_separator_CXX=:
19869 # Archives containing C++ object files must be created using
19870 # the KAI C++ compiler.
19872 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19873 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19877 # Rational C++ 2.4.1
19878 # FIXME: insert proper C++ library support
19884 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19885 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'
19886 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19889 allow_undefined_flag_CXX=' -expect_unresolved \*'
19890 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'
19891 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19892 echo "-hidden">> $lib.exp~
19893 $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~
19895 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19899 hardcode_libdir_separator_CXX=:
19901 # Commands to make compiler produce verbose output that lists
19902 # what "hidden" libraries, object files and flags are used when
19903 # linking a shared library.
19905 # There doesn't appear to be a way to prevent this compiler from
19906 # explicitly linking system object files so we need to strip them
19907 # from the output so that they don't get included in the library
19909 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"'
19912 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19913 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19916 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'
19919 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'
19923 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19924 hardcode_libdir_separator_CXX=:
19926 # Commands to make compiler produce verbose output that lists
19927 # what "hidden" libraries, object files and flags are used when
19928 # linking a shared library.
19929 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19932 # FIXME: insert proper C++ library support
19940 # FIXME: insert proper C++ library support
19945 case $cc_basename in
19948 # FIXME: insert proper C++ library support
19953 # FIXME: insert proper C++ library support
19957 # FIXME: insert proper C++ library support
19964 case $cc_basename in
19966 # Sun C++ 4.2, 5.x and Centerline C++
19967 archive_cmds_need_lc_CXX=yes
19968 no_undefined_flag_CXX=' -zdefs'
19969 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19970 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19971 $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'
19973 hardcode_libdir_flag_spec_CXX='-R$libdir'
19974 hardcode_shlibpath_var_CXX=no
19976 solaris2.[0-5] | solaris2.[0-5].*) ;;
19978 # The compiler driver will combine and reorder linker options,
19979 # but understands `-z linker_flag'.
19980 # Supported since Solaris 2.6 (maybe 2.5.1?)
19981 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19984 link_all_deplibs_CXX=yes
19986 output_verbose_link_cmd='func_echo_all'
19988 # Archives containing C++ object files must be created using
19989 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19990 # necessary to make sure instantiated templates are included
19992 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19995 # Green Hills C++ Compiler
19996 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19998 # The C++ compiler must be used to create the archive.
19999 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20002 # GNU C++ compiler with Solaris linker
20003 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20004 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20005 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20006 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20007 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20008 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20010 # Commands to make compiler produce verbose output that lists
20011 # what "hidden" libraries, object files and flags are used when
20012 # linking a shared library.
20013 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20015 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20017 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20018 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20019 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20021 # Commands to make compiler produce verbose output that lists
20022 # what "hidden" libraries, object files and flags are used when
20023 # linking a shared library.
20024 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20027 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20029 solaris2.[0-5] | solaris2.[0-5].*) ;;
20031 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20039 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20040 no_undefined_flag_CXX='${wl}-z,text'
20041 archive_cmds_need_lc_CXX=no
20042 hardcode_shlibpath_var_CXX=no
20043 runpath_var='LD_RUN_PATH'
20045 case $cc_basename in
20047 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20048 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20051 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20052 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20057 sysv5* | sco3.2v5* | sco5v6*)
20058 # Note: We can NOT use -z defs as we might desire, because we do not
20059 # link with -lc, and that would cause any symbols used from libc to
20060 # always be unresolved, which means just about no library would
20061 # ever link correctly. If we're not using GNU ld we use -z text
20062 # though, which does catch some bad symbols but isn't as heavy-handed
20064 no_undefined_flag_CXX='${wl}-z,text'
20065 allow_undefined_flag_CXX='${wl}-z,nodefs'
20066 archive_cmds_need_lc_CXX=no
20067 hardcode_shlibpath_var_CXX=no
20068 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20069 hardcode_libdir_separator_CXX=':'
20070 link_all_deplibs_CXX=yes
20071 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20072 runpath_var='LD_RUN_PATH'
20074 case $cc_basename in
20076 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20077 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20078 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20079 '"$old_archive_cmds_CXX"
20080 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20081 '"$reload_cmds_CXX"
20084 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20085 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20091 case $cc_basename in
20093 # NonStop-UX NCC 3.20
20094 # FIXME: insert proper C++ library support
20098 # FIXME: insert proper C++ library support
20105 # FIXME: insert proper C++ library support
20110 # FIXME: insert proper C++ library support
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20116 $as_echo "$ld_shlibs_CXX" >&6; }
20117 test "$ld_shlibs_CXX" = no && can_build_shared=no
20123 ## There is no encapsulation within the following macros, do not change
20124 ## the running order or otherwise move them around unless you know exactly
20125 ## what you are doing...
20126 # Dependencies to place before and after the object being linked:
20127 predep_objects_CXX=
20128 postdep_objects_CXX=
20131 compiler_lib_search_path_CXX=
20133 cat > conftest.$ac_ext <<_LT_EOF
20137 Foo (void) { a = 0; }
20144 _lt_libdeps_save_CFLAGS=$CFLAGS
20145 case "$CC $CFLAGS " in #(
20146 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
20147 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
20148 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
20151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20152 (eval $ac_compile) 2>&5
20154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20155 test $ac_status = 0; }; then
20156 # Parse the compiler output and extract the necessary
20157 # objects, libraries and library flags.
20159 # Sentinel used to keep track of whether or not we are before
20160 # the conftest object file.
20161 pre_test_object_deps_done=no
20163 for p in `eval "$output_verbose_link_cmd"`; do
20164 case ${prev}${p} in
20167 # Some compilers place space between "-{L,R}" and the path.
20168 # Remove the space.
20169 if test $p = "-L" ||
20170 test $p = "-R"; then
20175 # Expand the sysroot to ease extracting the directories later.
20176 if test -z "$prev"; then
20178 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
20179 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
20180 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
20184 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
20186 if test "$pre_test_object_deps_done" = no; then
20189 # Internal compiler library paths should come after those
20190 # provided the user. The postdeps already come after the
20191 # user supplied libs so there is no need to process them.
20192 if test -z "$compiler_lib_search_path_CXX"; then
20193 compiler_lib_search_path_CXX="${prev}${p}"
20195 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20198 # The "-l" case would never come before the object being
20199 # linked, so don't bother handling this case.
20202 if test -z "$postdeps_CXX"; then
20203 postdeps_CXX="${prev}${p}"
20205 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20211 *.lto.$objext) ;; # Ignore GCC LTO objects
20213 # This assumes that the test object file only shows up
20214 # once in the compiler output.
20215 if test "$p" = "conftest.$objext"; then
20216 pre_test_object_deps_done=yes
20220 if test "$pre_test_object_deps_done" = no; then
20221 if test -z "$predep_objects_CXX"; then
20222 predep_objects_CXX="$p"
20224 predep_objects_CXX="$predep_objects_CXX $p"
20227 if test -z "$postdep_objects_CXX"; then
20228 postdep_objects_CXX="$p"
20230 postdep_objects_CXX="$postdep_objects_CXX $p"
20235 *) ;; # Ignore the rest.
20243 echo "libtool.m4: error: problem compiling CXX test program"
20246 $RM -f confest.$objext
20247 CFLAGS=$_lt_libdeps_save_CFLAGS
20249 # PORTME: override above test on systems where it is broken
20252 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20253 # hack all around it, let's just trust "g++" to DTRT.
20254 predep_objects_CXX=
20255 postdep_objects_CXX=
20260 case `$CC -V 2>&1 | sed 5q` in
20264 # The more standards-conforming stlport4 library is
20265 # incompatible with the Cstd library. Avoid specifying
20266 # it if it's in CXXFLAGS. Ignore libCrun as
20267 # -library=stlport4 depends on it.
20268 case " $CXX $CXXFLAGS " in
20269 *" -library=stlport4 "*)
20270 solaris_use_stlport4=yes
20274 if test "$solaris_use_stlport4" != yes; then
20275 postdeps_CXX='-library=Cstd -library=Crun'
20282 case $cc_basename in
20284 # The more standards-conforming stlport4 library is
20285 # incompatible with the Cstd library. Avoid specifying
20286 # it if it's in CXXFLAGS. Ignore libCrun as
20287 # -library=stlport4 depends on it.
20288 case " $CXX $CXXFLAGS " in
20289 *" -library=stlport4 "*)
20290 solaris_use_stlport4=yes
20294 # Adding this requires a known-good setup of shared libraries for
20295 # Sun compiler versions before 5.6, else PIC objects from an old
20296 # archive will be linked into the output, leading to subtle bugs.
20297 if test "$solaris_use_stlport4" != yes; then
20298 postdeps_CXX='-library=Cstd -library=Crun'
20306 case " $postdeps_CXX " in
20307 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20309 compiler_lib_search_dirs_CXX=
20310 if test -n "${compiler_lib_search_path_CXX}"; then
20311 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20344 lt_prog_compiler_wl_CXX=
20345 lt_prog_compiler_pic_CXX=
20346 lt_prog_compiler_static_CXX=
20349 # C++ specific cases for pic, static, wl, etc.
20350 if test "$GXX" = yes; then
20351 lt_prog_compiler_wl_CXX='-Wl,'
20352 lt_prog_compiler_static_CXX='-static'
20356 # All AIX code is PIC.
20357 if test "$host_cpu" = ia64; then
20358 # AIX 5 now supports IA64 processor
20359 lt_prog_compiler_static_CXX='-Bstatic'
20366 # see comment about AmigaOS4 .so support
20367 lt_prog_compiler_pic_CXX='-fPIC'
20370 # FIXME: we need at least 68020 code to build shared libraries, but
20371 # adding the `-m68020' flag to GCC prevents building anything better,
20373 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20378 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20379 # PIC is the default for these OSes.
20381 mingw* | cygwin* | os2* | pw32* | cegcc*)
20382 # This hack is so that the source file can tell whether it is being
20383 # built for inclusion in a dll (and should export symbols for example).
20384 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20385 # (--disable-auto-import) libraries
20386 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20388 darwin* | rhapsody*)
20389 # PIC is the default on this platform
20390 # Common symbols not allowed in MH_DYLIB files
20391 lt_prog_compiler_pic_CXX='-fno-common'
20394 # DJGPP does not support shared libraries at all
20395 lt_prog_compiler_pic_CXX=
20398 # PIC is the default for Haiku.
20399 # The "-static" flag exists, but is broken.
20400 lt_prog_compiler_static_CXX=
20403 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20404 # Instead, we relocate shared libraries at runtime.
20407 if test -d /usr/nec; then
20408 lt_prog_compiler_pic_CXX=-Kconform_pic
20412 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20413 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20414 # sets the default TLS model and affects inlining.
20419 lt_prog_compiler_pic_CXX='-fPIC'
20424 # QNX uses GNU C++, but need to define -shared option too, otherwise
20425 # it will coredump.
20426 lt_prog_compiler_pic_CXX='-fPIC -shared'
20429 lt_prog_compiler_pic_CXX='-fPIC'
20435 # All AIX code is PIC.
20436 if test "$host_cpu" = ia64; then
20437 # AIX 5 now supports IA64 processor
20438 lt_prog_compiler_static_CXX='-Bstatic'
20440 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20444 case $cc_basename in
20446 # Green Hills C++ Compiler
20447 # _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"
20451 mingw* | cygwin* | os2* | pw32* | cegcc*)
20452 # This hack is so that the source file can tell whether it is being
20453 # built for inclusion in a dll (and should export symbols for example).
20454 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20457 case $cc_basename in
20459 lt_prog_compiler_pic_CXX='-KPIC'
20462 # Green Hills C++ Compiler
20463 lt_prog_compiler_pic_CXX='-pic'
20469 freebsd* | dragonfly*)
20470 # FreeBSD uses GNU C++
20472 hpux9* | hpux10* | hpux11*)
20473 case $cc_basename in
20475 lt_prog_compiler_wl_CXX='-Wl,'
20476 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20477 if test "$host_cpu" != ia64; then
20478 lt_prog_compiler_pic_CXX='+Z'
20482 lt_prog_compiler_wl_CXX='-Wl,'
20483 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20489 lt_prog_compiler_pic_CXX='+Z'
20498 # This is c89, which is MS Visual C++ (no shared libs)
20499 # Anyone wants to do a port?
20501 irix5* | irix6* | nonstopux*)
20502 case $cc_basename in
20504 lt_prog_compiler_wl_CXX='-Wl,'
20505 lt_prog_compiler_static_CXX='-non_shared'
20506 # CC pic flag -KPIC is the default.
20512 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20513 case $cc_basename in
20516 lt_prog_compiler_wl_CXX='--backend -Wl,'
20517 lt_prog_compiler_pic_CXX='-fPIC'
20520 # old Intel C++ for x86_64 which still supported -KPIC.
20521 lt_prog_compiler_wl_CXX='-Wl,'
20522 lt_prog_compiler_pic_CXX='-KPIC'
20523 lt_prog_compiler_static_CXX='-static'
20526 # Intel C++, used to be incompatible with GCC.
20527 # ICC 10 doesn't accept -KPIC any more.
20528 lt_prog_compiler_wl_CXX='-Wl,'
20529 lt_prog_compiler_pic_CXX='-fPIC'
20530 lt_prog_compiler_static_CXX='-static'
20533 # Portland Group C++ compiler
20534 lt_prog_compiler_wl_CXX='-Wl,'
20535 lt_prog_compiler_pic_CXX='-fpic'
20536 lt_prog_compiler_static_CXX='-Bstatic'
20540 # Make sure the PIC flag is empty. It appears that all Alpha
20541 # Linux and Compaq Tru64 Unix objects are PIC.
20542 lt_prog_compiler_pic_CXX=
20543 lt_prog_compiler_static_CXX='-non_shared'
20545 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20546 # IBM XL 8.0, 9.0 on PPC and BlueGene
20547 lt_prog_compiler_wl_CXX='-Wl,'
20548 lt_prog_compiler_pic_CXX='-qpic'
20549 lt_prog_compiler_static_CXX='-qstaticlink'
20552 case `$CC -V 2>&1 | sed 5q` in
20555 lt_prog_compiler_pic_CXX='-KPIC'
20556 lt_prog_compiler_static_CXX='-Bstatic'
20557 lt_prog_compiler_wl_CXX='-Qoption ld '
20568 case $cc_basename in
20570 lt_prog_compiler_pic_CXX='-W c,exportall'
20579 # QNX uses GNU C++, but need to define -shared option too, otherwise
20580 # it will coredump.
20581 lt_prog_compiler_pic_CXX='-fPIC -shared'
20583 osf3* | osf4* | osf5*)
20584 case $cc_basename in
20586 lt_prog_compiler_wl_CXX='--backend -Wl,'
20589 # Rational C++ 2.4.1
20590 lt_prog_compiler_pic_CXX='-pic'
20593 # Digital/Compaq C++
20594 lt_prog_compiler_wl_CXX='-Wl,'
20595 # Make sure the PIC flag is empty. It appears that all Alpha
20596 # Linux and Compaq Tru64 Unix objects are PIC.
20597 lt_prog_compiler_pic_CXX=
20598 lt_prog_compiler_static_CXX='-non_shared'
20607 case $cc_basename in
20609 # Sun C++ 4.2, 5.x and Centerline C++
20610 lt_prog_compiler_pic_CXX='-KPIC'
20611 lt_prog_compiler_static_CXX='-Bstatic'
20612 lt_prog_compiler_wl_CXX='-Qoption ld '
20615 # Green Hills C++ Compiler
20616 lt_prog_compiler_pic_CXX='-PIC'
20623 case $cc_basename in
20626 lt_prog_compiler_pic_CXX='-pic'
20627 lt_prog_compiler_static_CXX='-Bstatic'
20631 lt_prog_compiler_pic_CXX='-pic'
20637 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20638 case $cc_basename in
20640 lt_prog_compiler_wl_CXX='-Wl,'
20641 lt_prog_compiler_pic_CXX='-KPIC'
20642 lt_prog_compiler_static_CXX='-Bstatic'
20647 case $cc_basename in
20649 # NonStop-UX NCC 3.20
20650 lt_prog_compiler_pic_CXX='-KPIC'
20659 lt_prog_compiler_can_build_shared_CXX=no
20665 # For platforms which do not support PIC, -DPIC is meaningless:
20667 lt_prog_compiler_pic_CXX=
20670 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20675 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20676 if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then :
20677 $as_echo_n "(cached) " >&6
20679 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20682 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20683 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
20686 # Check to make sure the PIC flag actually works.
20688 if test -n "$lt_prog_compiler_pic_CXX"; then
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20690 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20691 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20692 $as_echo_n "(cached) " >&6
20694 lt_cv_prog_compiler_pic_works_CXX=no
20695 ac_outfile=conftest.$ac_objext
20696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20697 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20698 # Insert the option either (1) after the last *FLAGS variable, or
20699 # (2) before a word containing "conftest.", or (3) at the end.
20700 # Note that $ac_compile itself does not contain backslashes and begins
20701 # with a dollar sign (not a hyphen), so the echo should work correctly.
20702 # The option is referenced via a variable to avoid confusing sed.
20703 lt_compile=`echo "$ac_compile" | $SED \
20704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20706 -e 's:$: $lt_compiler_flag:'`
20707 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20708 (eval "$lt_compile" 2>conftest.err)
20710 cat conftest.err >&5
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 if (exit $ac_status) && test -s "$ac_outfile"; then
20713 # The compiler can only warn and ignore the option if not recognized
20714 # So say no if there are warnings other than the usual output.
20715 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20717 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20718 lt_cv_prog_compiler_pic_works_CXX=yes
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20725 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20727 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20728 case $lt_prog_compiler_pic_CXX in
20730 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20733 lt_prog_compiler_pic_CXX=
20734 lt_prog_compiler_can_build_shared_CXX=no
20744 # Check to make sure the static flag actually works.
20746 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20748 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20749 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20750 $as_echo_n "(cached) " >&6
20752 lt_cv_prog_compiler_static_works_CXX=no
20753 save_LDFLAGS="$LDFLAGS"
20754 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20755 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20756 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20757 # The linker can only warn and ignore the option if not recognized
20758 # So say no if there are warnings
20759 if test -s conftest.err; then
20760 # Append any errors to the config.log.
20761 cat conftest.err 1>&5
20762 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20764 if diff conftest.exp conftest.er2 >/dev/null; then
20765 lt_cv_prog_compiler_static_works_CXX=yes
20768 lt_cv_prog_compiler_static_works_CXX=yes
20772 LDFLAGS="$save_LDFLAGS"
20775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20776 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20778 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20781 lt_prog_compiler_static_CXX=
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20788 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20789 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20790 $as_echo_n "(cached) " >&6
20792 lt_cv_prog_compiler_c_o_CXX=no
20793 $RM -r conftest 2>/dev/null
20797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20799 lt_compiler_flag="-o out/conftest2.$ac_objext"
20800 # Insert the option either (1) after the last *FLAGS variable, or
20801 # (2) before a word containing "conftest.", or (3) at the end.
20802 # Note that $ac_compile itself does not contain backslashes and begins
20803 # with a dollar sign (not a hyphen), so the echo should work correctly.
20804 lt_compile=`echo "$ac_compile" | $SED \
20805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20807 -e 's:$: $lt_compiler_flag:'`
20808 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20809 (eval "$lt_compile" 2>out/conftest.err)
20811 cat out/conftest.err >&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20815 # The compiler can only warn and ignore the option if not recognized
20816 # So say no if there are warnings
20817 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20818 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20819 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20820 lt_cv_prog_compiler_c_o_CXX=yes
20825 # SGI C++ compiler will create directory out/ii_files/ for
20826 # template instantiation
20827 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20828 $RM out/* && rmdir out
20834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20835 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20840 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20841 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20842 $as_echo_n "(cached) " >&6
20844 lt_cv_prog_compiler_c_o_CXX=no
20845 $RM -r conftest 2>/dev/null
20849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20851 lt_compiler_flag="-o out/conftest2.$ac_objext"
20852 # Insert the option either (1) after the last *FLAGS variable, or
20853 # (2) before a word containing "conftest.", or (3) at the end.
20854 # Note that $ac_compile itself does not contain backslashes and begins
20855 # with a dollar sign (not a hyphen), so the echo should work correctly.
20856 lt_compile=`echo "$ac_compile" | $SED \
20857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20859 -e 's:$: $lt_compiler_flag:'`
20860 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20861 (eval "$lt_compile" 2>out/conftest.err)
20863 cat out/conftest.err >&5
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20867 # The compiler can only warn and ignore the option if not recognized
20868 # So say no if there are warnings
20869 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20870 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20871 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20872 lt_cv_prog_compiler_c_o_CXX=yes
20877 # SGI C++ compiler will create directory out/ii_files/ for
20878 # template instantiation
20879 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20880 $RM out/* && rmdir out
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20887 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20892 hard_links="nottested"
20893 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20894 # do not overwrite the value of need_locks provided by the user
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20896 $as_echo_n "checking if we can lock with hard links... " >&6; }
20899 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20901 ln conftest.a conftest.b 2>&5 || hard_links=no
20902 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20904 $as_echo "$hard_links" >&6; }
20905 if test "$hard_links" = no; then
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20907 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20917 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20919 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20920 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20923 # If we're using GNU nm, then we don't want the "-C" option.
20924 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20925 # Also, AIX nm treats weak defined symbols like other global defined
20926 # symbols, whereas GNU nm marks them as "W".
20927 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20928 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'
20930 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'
20934 export_symbols_cmds_CXX="$ltdll_cmds"
20936 cygwin* | mingw* | cegcc*)
20937 case $cc_basename in
20939 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20942 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'
20943 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20948 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20953 $as_echo "$ld_shlibs_CXX" >&6; }
20954 test "$ld_shlibs_CXX" = no && can_build_shared=no
20956 with_gnu_ld_CXX=$with_gnu_ld
20964 # Do we need to explicitly link libc?
20966 case "x$archive_cmds_need_lc_CXX" in
20968 # Assume -lc should be added
20969 archive_cmds_need_lc_CXX=yes
20971 if test "$enable_shared" = yes && test "$GCC" = yes; then
20972 case $archive_cmds_CXX in
20974 # FIXME: we may have to deal with multi-command sequences.
20977 # Test whether the compiler implicitly links with -lc since on some
20978 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20979 # to ld, don't add -lc before -lgcc.
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20981 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20982 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20983 $as_echo_n "(cached) " >&6
20986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20989 (eval $ac_compile) 2>&5
20991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20992 test $ac_status = 0; } 2>conftest.err; then
20995 libobjs=conftest.$ac_objext
20997 wl=$lt_prog_compiler_wl_CXX
20998 pic_flag=$lt_prog_compiler_pic_CXX
21004 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21005 allow_undefined_flag_CXX=
21006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21007 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21010 test $ac_status = 0; }
21012 lt_cv_archive_cmds_need_lc_CXX=no
21014 lt_cv_archive_cmds_need_lc_CXX=yes
21016 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21018 cat conftest.err 1>&5
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21024 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21025 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21094 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21096 library_names_spec=
21097 libname_spec='lib$name'
21101 postuninstall_cmds=
21105 shlibpath_overrides_runpath=unknown
21107 dynamic_linker="$host_os ld.so"
21108 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21109 need_lib_prefix=unknown
21110 hardcode_into_libs=no
21112 # when you set need_version to no, make sure it does not cause -set_version
21113 # flags to be left without arguments
21114 need_version=unknown
21118 version_type=linux # correct to gnu/linux during the next big refactor
21119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21120 shlibpath_var=LIBPATH
21122 # AIX 3 has no versioning support, so we append a major version to the name.
21123 soname_spec='${libname}${release}${shared_ext}$major'
21127 version_type=linux # correct to gnu/linux during the next big refactor
21130 hardcode_into_libs=yes
21131 if test "$host_cpu" = ia64; then
21132 # AIX 5 supports IA64
21133 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21134 shlibpath_var=LD_LIBRARY_PATH
21136 # With GCC up to 2.95.x, collect2 would create an import file
21137 # for dependence libraries. The import file would start with
21138 # the line `#! .'. This would cause the generated library to
21139 # depend on `.', always an invalid library. This was fixed in
21140 # development snapshots of GCC prior to 3.0.
21142 aix4 | aix4.[01] | aix4.[01].*)
21143 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21145 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21148 can_build_shared=no
21152 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21153 # soname into executable. Probably we can add versioning support to
21154 # collect2, so additional links can be useful in future.
21155 if test "$aix_use_runtimelinking" = yes; then
21156 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21157 # instead of lib<name>.a to let people know that these are not
21158 # typical AIX shared libraries.
21159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21161 # We preserve .a as extension for shared libraries through AIX4.2
21162 # and later when we are not doing run time linking.
21163 library_names_spec='${libname}${release}.a $libname.a'
21164 soname_spec='${libname}${release}${shared_ext}$major'
21166 shlibpath_var=LIBPATH
21173 # Since July 2007 AmigaOS4 officially supports .so libraries.
21174 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21178 library_names_spec='$libname.ixlibrary $libname.a'
21179 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21180 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'
21186 library_names_spec='${libname}${shared_ext}'
21187 dynamic_linker="$host_os ld.so"
21188 shlibpath_var=LIBRARY_PATH
21192 version_type=linux # correct to gnu/linux during the next big refactor
21194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21195 soname_spec='${libname}${release}${shared_ext}$major'
21196 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21197 shlibpath_var=LD_LIBRARY_PATH
21198 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21199 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21200 # the default ld.so.conf also contains /usr/contrib/lib and
21201 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21202 # libtool to hard-code these into programs
21205 cygwin* | mingw* | pw32* | cegcc*)
21206 version_type=windows
21211 case $GCC,$cc_basename in
21214 library_names_spec='$libname.dll.a'
21215 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21216 postinstall_cmds='base_file=`basename \${file}`~
21217 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21218 dldir=$destdir/`dirname \$dlpath`~
21219 test -d \$dldir || mkdir -p \$dldir~
21220 $install_prog $dir/$dlname \$dldir/$dlname~
21221 chmod a+x \$dldir/$dlname~
21222 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21223 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21225 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21226 dlpath=$dir/\$dldll~
21228 shlibpath_overrides_runpath=yes
21232 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21233 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21237 # MinGW DLLs use traditional 'lib' prefix
21238 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21241 # pw32 DLLs use 'pw' prefix rather than 'lib'
21242 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21245 dynamic_linker='Win32 ld.exe'
21250 libname_spec='$name'
21251 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21252 library_names_spec='${libname}.dll.lib'
21256 sys_lib_search_path_spec=
21259 for lt_path in $LIB
21262 # Let DOS variable expansion print the short 8.3 style file name.
21263 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21264 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21267 # Convert to MSYS style.
21268 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21271 # Convert to unix form, then to dos form, then back to unix form
21272 # but this time dos style (no spaces!) so that the unix form looks
21273 # like /cygdrive/c/PROGRA~1:/cygdr...
21274 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21275 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21276 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21279 sys_lib_search_path_spec="$LIB"
21280 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21281 # It is most probably a Windows format PATH.
21282 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21284 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21286 # FIXME: find the short name or the path components, as spaces are
21287 # common. (e.g. "Program Files" -> "PROGRA~1")
21291 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21292 postinstall_cmds='base_file=`basename \${file}`~
21293 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21294 dldir=$destdir/`dirname \$dlpath`~
21295 test -d \$dldir || mkdir -p \$dldir~
21296 $install_prog $dir/$dlname \$dldir/$dlname'
21297 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21298 dlpath=$dir/\$dldll~
21300 shlibpath_overrides_runpath=yes
21301 dynamic_linker='Win32 link.exe'
21305 # Assume MSVC wrapper
21306 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21307 dynamic_linker='Win32 ld.exe'
21310 # FIXME: first we should search . and the directory the executable is in
21314 darwin* | rhapsody*)
21315 dynamic_linker="$host_os dyld"
21316 version_type=darwin
21319 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21320 soname_spec='${libname}${release}${major}$shared_ext'
21321 shlibpath_overrides_runpath=yes
21322 shlibpath_var=DYLD_LIBRARY_PATH
21323 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21325 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21329 version_type=linux # correct to gnu/linux during the next big refactor
21332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21333 soname_spec='${libname}${release}${shared_ext}$major'
21334 shlibpath_var=LD_LIBRARY_PATH
21337 freebsd* | dragonfly*)
21338 # DragonFly does not have aout. When/if they implement a new
21339 # versioning mechanism, adjust this.
21340 if test -x /usr/bin/objformat; then
21341 objformat=`/usr/bin/objformat`
21344 freebsd[23].*) objformat=aout ;;
21345 *) objformat=elf ;;
21348 version_type=freebsd-$objformat
21349 case $version_type in
21351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21356 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21360 shlibpath_var=LD_LIBRARY_PATH
21363 shlibpath_overrides_runpath=yes
21365 freebsd3.[01]* | freebsdelf3.[01]*)
21366 shlibpath_overrides_runpath=yes
21367 hardcode_into_libs=yes
21369 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21370 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21371 shlibpath_overrides_runpath=no
21372 hardcode_into_libs=yes
21374 *) # from 4.6 on, and DragonFly
21375 shlibpath_overrides_runpath=yes
21376 hardcode_into_libs=yes
21382 version_type=linux # correct to gnu/linux during the next big refactor
21385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21386 soname_spec='${libname}${release}${shared_ext}$major'
21387 shlibpath_var=LD_LIBRARY_PATH
21388 shlibpath_overrides_runpath=no
21389 hardcode_into_libs=yes
21393 version_type=linux # correct to gnu/linux during the next big refactor
21396 dynamic_linker="$host_os runtime_loader"
21397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21398 soname_spec='${libname}${release}${shared_ext}$major'
21399 shlibpath_var=LIBRARY_PATH
21400 shlibpath_overrides_runpath=yes
21401 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21402 hardcode_into_libs=yes
21405 hpux9* | hpux10* | hpux11*)
21406 # Give a soname corresponding to the major version so that dld.sl refuses to
21407 # link against other versions.
21414 hardcode_into_libs=yes
21415 dynamic_linker="$host_os dld.so"
21416 shlibpath_var=LD_LIBRARY_PATH
21417 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21419 soname_spec='${libname}${release}${shared_ext}$major'
21420 if test "X$HPUX_IA64_MODE" = X32; then
21421 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21423 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21425 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21429 hardcode_into_libs=yes
21430 dynamic_linker="$host_os dld.sl"
21431 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21434 soname_spec='${libname}${release}${shared_ext}$major'
21435 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21436 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21440 dynamic_linker="$host_os dld.sl"
21441 shlibpath_var=SHLIB_PATH
21442 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21444 soname_spec='${libname}${release}${shared_ext}$major'
21447 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21448 postinstall_cmds='chmod 555 $lib'
21449 # or fails outright, so override atomically:
21450 install_override_mode=555
21454 version_type=linux # correct to gnu/linux during the next big refactor
21457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21458 soname_spec='${libname}${release}${shared_ext}$major'
21459 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21460 shlibpath_var=LD_LIBRARY_PATH
21461 shlibpath_overrides_runpath=no
21462 hardcode_into_libs=yes
21465 irix5* | irix6* | nonstopux*)
21467 nonstopux*) version_type=nonstopux ;;
21469 if test "$lt_cv_prog_gnu_ld" = yes; then
21470 version_type=linux # correct to gnu/linux during the next big refactor
21477 soname_spec='${libname}${release}${shared_ext}$major'
21478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21480 irix5* | nonstopux*)
21481 libsuff= shlibsuff=
21484 case $LD in # libtool.m4 will add one of these switches to LD
21485 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21486 libsuff= shlibsuff= libmagic=32-bit;;
21487 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21488 libsuff=32 shlibsuff=N32 libmagic=N32;;
21489 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21490 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21491 *) libsuff= shlibsuff= libmagic=never-match;;
21495 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21496 shlibpath_overrides_runpath=no
21497 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21498 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21499 hardcode_into_libs=yes
21502 # No shared lib support for Linux oldld, aout, or coff.
21503 linux*oldld* | linux*aout* | linux*coff*)
21507 # This must be glibc/ELF.
21508 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21509 version_type=linux # correct to gnu/linux during the next big refactor
21512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21513 soname_spec='${libname}${release}${shared_ext}$major'
21514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21515 shlibpath_var=LD_LIBRARY_PATH
21516 shlibpath_overrides_runpath=no
21518 # Some binutils ld are patched to set DT_RUNPATH
21519 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21520 $as_echo_n "(cached) " >&6
21522 lt_cv_shlibpath_overrides_runpath=no
21523 save_LDFLAGS=$LDFLAGS
21524 save_libdir=$libdir
21525 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21526 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21528 /* end confdefs.h. */
21538 if ac_fn_cxx_try_link "$LINENO"; then :
21539 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21540 lt_cv_shlibpath_overrides_runpath=yes
21543 rm -f core conftest.err conftest.$ac_objext \
21544 conftest$ac_exeext conftest.$ac_ext
21545 LDFLAGS=$save_LDFLAGS
21546 libdir=$save_libdir
21550 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21552 # This implies no fast_install, which is unacceptable.
21553 # Some rework will be needed to allow for fast_install
21554 # before this can be enabled.
21555 hardcode_into_libs=yes
21557 # Append ld.so.conf contents to the search path
21558 if test -f /etc/ld.so.conf; then
21559 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' ' '`
21560 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21563 # We used to test for /lib/ld.so.1 and disable shared libraries on
21564 # powerpc, because MkLinux only supported shared libraries with the
21565 # GNU dynamic linker. Since this was broken with cross compilers,
21566 # most powerpc-linux boxes support dynamic linking these days and
21567 # people can always --disable-shared, the test was removed, and we
21568 # assume the GNU/Linux dynamic linker is in use.
21569 dynamic_linker='GNU/Linux ld.so'
21576 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21579 dynamic_linker='NetBSD (a.out) ld.so'
21581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21582 soname_spec='${libname}${release}${shared_ext}$major'
21583 dynamic_linker='NetBSD ld.elf_so'
21585 shlibpath_var=LD_LIBRARY_PATH
21586 shlibpath_overrides_runpath=yes
21587 hardcode_into_libs=yes
21591 version_type=linux # correct to gnu/linux during the next big refactor
21592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21593 shlibpath_var=LD_LIBRARY_PATH
21594 shlibpath_overrides_runpath=yes
21601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21602 soname_spec='${libname}${release}${shared_ext}$major'
21603 shlibpath_var=LD_LIBRARY_PATH
21604 shlibpath_overrides_runpath=no
21605 hardcode_into_libs=yes
21606 dynamic_linker='ldqnx.so'
21611 sys_lib_dlsearch_path_spec="/usr/lib"
21613 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21615 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21616 *) need_version=no ;;
21618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21620 shlibpath_var=LD_LIBRARY_PATH
21621 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21623 openbsd2.[89] | openbsd2.[89].*)
21624 shlibpath_overrides_runpath=no
21627 shlibpath_overrides_runpath=yes
21631 shlibpath_overrides_runpath=yes
21636 libname_spec='$name'
21639 library_names_spec='$libname${shared_ext} $libname.a'
21640 dynamic_linker='OS/2 ld.exe'
21641 shlibpath_var=LIBPATH
21644 osf3* | osf4* | osf5*)
21648 soname_spec='${libname}${release}${shared_ext}$major'
21649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21650 shlibpath_var=LD_LIBRARY_PATH
21651 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21652 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21660 version_type=linux # correct to gnu/linux during the next big refactor
21663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21664 soname_spec='${libname}${release}${shared_ext}$major'
21665 shlibpath_var=LD_LIBRARY_PATH
21666 shlibpath_overrides_runpath=yes
21667 hardcode_into_libs=yes
21668 # ldd complains unless libraries are executable
21669 postinstall_cmds='chmod +x $lib'
21674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21675 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21676 shlibpath_var=LD_LIBRARY_PATH
21677 shlibpath_overrides_runpath=yes
21678 if test "$with_gnu_ld" = yes; then
21685 version_type=linux # correct to gnu/linux during the next big refactor
21686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21687 soname_spec='${libname}${release}${shared_ext}$major'
21688 shlibpath_var=LD_LIBRARY_PATH
21689 case $host_vendor in
21691 shlibpath_overrides_runpath=no
21693 runpath_var=LD_RUN_PATH
21701 shlibpath_overrides_runpath=no
21702 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21708 if test -d /usr/nec ;then
21709 version_type=linux # correct to gnu/linux during the next big refactor
21710 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21711 soname_spec='$libname${shared_ext}.$major'
21712 shlibpath_var=LD_LIBRARY_PATH
21716 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21717 version_type=freebsd-elf
21720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21721 soname_spec='${libname}${release}${shared_ext}$major'
21722 shlibpath_var=LD_LIBRARY_PATH
21723 shlibpath_overrides_runpath=yes
21724 hardcode_into_libs=yes
21725 if test "$with_gnu_ld" = yes; then
21726 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21728 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21731 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21735 sys_lib_dlsearch_path_spec='/usr/lib'
21739 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21740 version_type=linux # correct to gnu/linux during the next big refactor
21743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21744 shlibpath_var=LD_LIBRARY_PATH
21745 shlibpath_overrides_runpath=no
21746 hardcode_into_libs=yes
21750 version_type=linux # correct to gnu/linux during the next big refactor
21751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21752 soname_spec='${libname}${release}${shared_ext}$major'
21753 shlibpath_var=LD_LIBRARY_PATH
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21761 $as_echo "$dynamic_linker" >&6; }
21762 test "$dynamic_linker" = no && can_build_shared=no
21764 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21765 if test "$GCC" = yes; then
21766 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21769 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21770 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21772 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21773 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21814 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21815 hardcode_action_CXX=
21816 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21817 test -n "$runpath_var_CXX" ||
21818 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21820 # We can hardcode non-existent directories.
21821 if test "$hardcode_direct_CXX" != no &&
21822 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21823 # have to relink, otherwise we might link with an installed library
21824 # when we should be linking with a yet-to-be-installed one
21825 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21826 test "$hardcode_minus_L_CXX" != no; then
21827 # Linking always hardcodes the temporary library directory.
21828 hardcode_action_CXX=relink
21830 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21831 hardcode_action_CXX=immediate
21834 # We cannot hardcode anything, or else we can only hardcode existing
21836 hardcode_action_CXX=unsupported
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21839 $as_echo "$hardcode_action_CXX" >&6; }
21841 if test "$hardcode_action_CXX" = relink ||
21842 test "$inherit_rpath_CXX" = yes; then
21843 # Fast installation is not supported
21844 enable_fast_install=no
21845 elif test "$shlibpath_overrides_runpath" = yes ||
21846 test "$enable_shared" = no; then
21847 # Fast installation is not necessary
21848 enable_fast_install=needless
21857 fi # test -n "$compiler"
21860 CFLAGS=$lt_save_CFLAGS
21864 with_gnu_ld=$lt_save_with_gnu_ld
21865 lt_cv_path_LDCXX=$lt_cv_path_LD
21866 lt_cv_path_LD=$lt_save_path_LD
21867 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21868 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21869 fi # test "$_lt_caught_CXX_error" != yes
21872 ac_cpp='$CPP $CPPFLAGS'
21873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21880 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21881 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21882 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21884 if test -z "$F77" || test "X$F77" = "Xno"; then
21885 _lt_disable_F77=yes
21888 archive_cmds_need_lc_F77=no
21889 allow_undefined_flag_F77=
21890 always_export_symbols_F77=no
21891 archive_expsym_cmds_F77=
21892 export_dynamic_flag_spec_F77=
21893 hardcode_direct_F77=no
21894 hardcode_direct_absolute_F77=no
21895 hardcode_libdir_flag_spec_F77=
21896 hardcode_libdir_separator_F77=
21897 hardcode_minus_L_F77=no
21898 hardcode_automatic_F77=no
21899 inherit_rpath_F77=no
21901 module_expsym_cmds_F77=
21902 link_all_deplibs_F77=unknown
21903 old_archive_cmds_F77=$old_archive_cmds
21904 reload_flag_F77=$reload_flag
21905 reload_cmds_F77=$reload_cmds
21906 no_undefined_flag_F77=
21907 whole_archive_flag_spec_F77=
21908 enable_shared_with_static_runtimes_F77=no
21910 # Source file extension for f77 test sources.
21913 # Object file extension for compiled f77 test sources.
21917 # No sense in running all these tests if we already determined that
21918 # the F77 compiler isn't working. Some variables (like enable_shared)
21919 # are currently assumed to apply to all compilers on this platform,
21920 # and will be corrupted by setting them based on a non-working compiler.
21921 if test "$_lt_disable_F77" != yes; then
21922 # Code to be used in simple compile tests
21923 lt_simple_compile_test_code="\
21929 # Code to be used in simple link tests
21930 lt_simple_link_test_code="\
21935 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21942 # If no C compiler was specified, use CC.
21945 # If no C compiler flags were specified, use CFLAGS.
21946 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21948 # Allow CC to be a program name with arguments.
21952 # save warnings/boilerplate of simple test code
21953 ac_outfile=conftest.$ac_objext
21954 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21955 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21956 _lt_compiler_boilerplate=`cat conftest.err`
21959 ac_outfile=conftest.$ac_objext
21960 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21961 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21962 _lt_linker_boilerplate=`cat conftest.err`
21966 # Allow CC to be a program name with arguments.
21969 lt_save_CFLAGS=$CFLAGS
21974 for cc_temp in $compiler""; do
21976 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21977 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21982 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21985 if test -n "$compiler"; then
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
21987 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
21989 $as_echo "$can_build_shared" >&6; }
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
21992 $as_echo_n "checking whether to build shared libraries... " >&6; }
21993 test "$can_build_shared" = "no" && enable_shared=no
21995 # On AIX, shared libraries and static libraries use the same namespace, and
21996 # are all built from PIC.
21999 test "$enable_shared" = yes && enable_static=no
22000 if test -n "$RANLIB"; then
22001 archive_cmds="$archive_cmds~\$RANLIB \$lib"
22002 postinstall_cmds='$RANLIB $lib'
22006 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
22007 test "$enable_shared" = yes && enable_static=no
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
22012 $as_echo "$enable_shared" >&6; }
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
22015 $as_echo_n "checking whether to build static libraries... " >&6; }
22016 # Make sure either enable_shared or enable_static is yes.
22017 test "$enable_shared" = yes || enable_static=yes
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
22019 $as_echo "$enable_static" >&6; }
22025 ## There is no encapsulation within the following macros, do not change
22026 ## the running order or otherwise move them around unless you know exactly
22027 ## what you are doing...
22028 lt_prog_compiler_wl_F77=
22029 lt_prog_compiler_pic_F77=
22030 lt_prog_compiler_static_F77=
22033 if test "$GCC" = yes; then
22034 lt_prog_compiler_wl_F77='-Wl,'
22035 lt_prog_compiler_static_F77='-static'
22039 # All AIX code is PIC.
22040 if test "$host_cpu" = ia64; then
22041 # AIX 5 now supports IA64 processor
22042 lt_prog_compiler_static_F77='-Bstatic'
22049 # see comment about AmigaOS4 .so support
22050 lt_prog_compiler_pic_F77='-fPIC'
22053 # FIXME: we need at least 68020 code to build shared libraries, but
22054 # adding the `-m68020' flag to GCC prevents building anything better,
22056 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
22061 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22062 # PIC is the default for these OSes.
22065 mingw* | cygwin* | pw32* | os2* | cegcc*)
22066 # This hack is so that the source file can tell whether it is being
22067 # built for inclusion in a dll (and should export symbols for example).
22068 # Although the cygwin gcc ignores -fPIC, still need this for old-style
22069 # (--disable-auto-import) libraries
22070 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
22073 darwin* | rhapsody*)
22074 # PIC is the default on this platform
22075 # Common symbols not allowed in MH_DYLIB files
22076 lt_prog_compiler_pic_F77='-fno-common'
22080 # PIC is the default for Haiku.
22081 # The "-static" flag exists, but is broken.
22082 lt_prog_compiler_static_F77=
22086 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
22087 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
22088 # sets the default TLS model and affects inlining.
22094 lt_prog_compiler_pic_F77='-fPIC'
22100 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22101 # Instead, we relocate shared libraries at runtime.
22105 # Just because we use GCC doesn't mean we suddenly get shared libraries
22106 # on systems that don't support them.
22107 lt_prog_compiler_can_build_shared_F77=no
22112 # QNX uses GNU C++, but need to define -shared option too, otherwise
22113 # it will coredump.
22114 lt_prog_compiler_pic_F77='-fPIC -shared'
22118 if test -d /usr/nec; then
22119 lt_prog_compiler_pic_F77=-Kconform_pic
22124 lt_prog_compiler_pic_F77='-fPIC'
22128 case $cc_basename in
22129 nvcc*) # Cuda Compiler Driver 2.2
22130 lt_prog_compiler_wl_F77='-Xlinker '
22131 if test -n "$lt_prog_compiler_pic_F77"; then
22132 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
22137 # PORTME Check for flag to pass linker flags through the system compiler.
22140 lt_prog_compiler_wl_F77='-Wl,'
22141 if test "$host_cpu" = ia64; then
22142 # AIX 5 now supports IA64 processor
22143 lt_prog_compiler_static_F77='-Bstatic'
22145 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
22149 mingw* | cygwin* | pw32* | os2* | cegcc*)
22150 # This hack is so that the source file can tell whether it is being
22151 # built for inclusion in a dll (and should export symbols for example).
22152 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
22155 hpux9* | hpux10* | hpux11*)
22156 lt_prog_compiler_wl_F77='-Wl,'
22157 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22158 # not for PA HP-UX.
22164 lt_prog_compiler_pic_F77='+Z'
22167 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22168 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
22171 irix5* | irix6* | nonstopux*)
22172 lt_prog_compiler_wl_F77='-Wl,'
22173 # PIC (with -KPIC) is the default.
22174 lt_prog_compiler_static_F77='-non_shared'
22177 linux* | k*bsd*-gnu | kopensolaris*-gnu)
22178 case $cc_basename in
22179 # old Intel for x86_64 which still supported -KPIC.
22181 lt_prog_compiler_wl_F77='-Wl,'
22182 lt_prog_compiler_pic_F77='-KPIC'
22183 lt_prog_compiler_static_F77='-static'
22185 # icc used to be incompatible with GCC.
22186 # ICC 10 doesn't accept -KPIC any more.
22188 lt_prog_compiler_wl_F77='-Wl,'
22189 lt_prog_compiler_pic_F77='-fPIC'
22190 lt_prog_compiler_static_F77='-static'
22192 # Lahey Fortran 8.1.
22194 lt_prog_compiler_wl_F77='-Wl,'
22195 lt_prog_compiler_pic_F77='--shared'
22196 lt_prog_compiler_static_F77='--static'
22199 # NAG Fortran compiler
22200 lt_prog_compiler_wl_F77='-Wl,-Wl,,'
22201 lt_prog_compiler_pic_F77='-PIC'
22202 lt_prog_compiler_static_F77='-Bstatic'
22204 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
22205 # Portland Group compilers (*not* the Pentium gcc compiler,
22206 # which looks to be a dead project)
22207 lt_prog_compiler_wl_F77='-Wl,'
22208 lt_prog_compiler_pic_F77='-fpic'
22209 lt_prog_compiler_static_F77='-Bstatic'
22212 lt_prog_compiler_wl_F77='-Wl,'
22213 # All Alpha code is PIC.
22214 lt_prog_compiler_static_F77='-non_shared'
22216 xl* | bgxl* | bgf* | mpixl*)
22217 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
22218 lt_prog_compiler_wl_F77='-Wl,'
22219 lt_prog_compiler_pic_F77='-qpic'
22220 lt_prog_compiler_static_F77='-qstaticlink'
22223 case `$CC -V 2>&1 | sed 5q` in
22224 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
22225 # Sun Fortran 8.3 passes all unrecognized flags to the linker
22226 lt_prog_compiler_pic_F77='-KPIC'
22227 lt_prog_compiler_static_F77='-Bstatic'
22228 lt_prog_compiler_wl_F77=''
22230 *Sun\ F* | *Sun*Fortran*)
22231 lt_prog_compiler_pic_F77='-KPIC'
22232 lt_prog_compiler_static_F77='-Bstatic'
22233 lt_prog_compiler_wl_F77='-Qoption ld '
22237 lt_prog_compiler_pic_F77='-KPIC'
22238 lt_prog_compiler_static_F77='-Bstatic'
22239 lt_prog_compiler_wl_F77='-Wl,'
22241 *Intel*\ [CF]*Compiler*)
22242 lt_prog_compiler_wl_F77='-Wl,'
22243 lt_prog_compiler_pic_F77='-fPIC'
22244 lt_prog_compiler_static_F77='-static'
22247 lt_prog_compiler_wl_F77='-Wl,'
22248 lt_prog_compiler_pic_F77='-fpic'
22249 lt_prog_compiler_static_F77='-Bstatic'
22257 lt_prog_compiler_pic_F77='-KPIC'
22258 lt_prog_compiler_static_F77='-Bstatic'
22262 # QNX uses GNU C++, but need to define -shared option too, otherwise
22263 # it will coredump.
22264 lt_prog_compiler_pic_F77='-fPIC -shared'
22267 osf3* | osf4* | osf5*)
22268 lt_prog_compiler_wl_F77='-Wl,'
22269 # All OSF/1 code is PIC.
22270 lt_prog_compiler_static_F77='-non_shared'
22274 lt_prog_compiler_static_F77='-non_shared'
22278 lt_prog_compiler_pic_F77='-KPIC'
22279 lt_prog_compiler_static_F77='-Bstatic'
22280 case $cc_basename in
22281 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
22282 lt_prog_compiler_wl_F77='-Qoption ld ';;
22284 lt_prog_compiler_wl_F77='-Wl,';;
22289 lt_prog_compiler_wl_F77='-Qoption ld '
22290 lt_prog_compiler_pic_F77='-PIC'
22291 lt_prog_compiler_static_F77='-Bstatic'
22294 sysv4 | sysv4.2uw2* | sysv4.3*)
22295 lt_prog_compiler_wl_F77='-Wl,'
22296 lt_prog_compiler_pic_F77='-KPIC'
22297 lt_prog_compiler_static_F77='-Bstatic'
22301 if test -d /usr/nec ;then
22302 lt_prog_compiler_pic_F77='-Kconform_pic'
22303 lt_prog_compiler_static_F77='-Bstatic'
22307 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22308 lt_prog_compiler_wl_F77='-Wl,'
22309 lt_prog_compiler_pic_F77='-KPIC'
22310 lt_prog_compiler_static_F77='-Bstatic'
22314 lt_prog_compiler_wl_F77='-Wl,'
22315 lt_prog_compiler_can_build_shared_F77=no
22319 lt_prog_compiler_pic_F77='-pic'
22320 lt_prog_compiler_static_F77='-Bstatic'
22324 lt_prog_compiler_can_build_shared_F77=no
22330 # For platforms which do not support PIC, -DPIC is meaningless:
22332 lt_prog_compiler_pic_F77=
22335 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
22340 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
22341 if test "${lt_cv_prog_compiler_pic_F77+set}" = set; then :
22342 $as_echo_n "(cached) " >&6
22344 lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
22347 $as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
22348 lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
22351 # Check to make sure the PIC flag actually works.
22353 if test -n "$lt_prog_compiler_pic_F77"; then
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
22355 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
22356 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then :
22357 $as_echo_n "(cached) " >&6
22359 lt_cv_prog_compiler_pic_works_F77=no
22360 ac_outfile=conftest.$ac_objext
22361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22362 lt_compiler_flag="$lt_prog_compiler_pic_F77"
22363 # Insert the option either (1) after the last *FLAGS variable, or
22364 # (2) before a word containing "conftest.", or (3) at the end.
22365 # Note that $ac_compile itself does not contain backslashes and begins
22366 # with a dollar sign (not a hyphen), so the echo should work correctly.
22367 # The option is referenced via a variable to avoid confusing sed.
22368 lt_compile=`echo "$ac_compile" | $SED \
22369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22371 -e 's:$: $lt_compiler_flag:'`
22372 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22373 (eval "$lt_compile" 2>conftest.err)
22375 cat conftest.err >&5
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 if (exit $ac_status) && test -s "$ac_outfile"; then
22378 # The compiler can only warn and ignore the option if not recognized
22379 # So say no if there are warnings other than the usual output.
22380 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
22381 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22382 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22383 lt_cv_prog_compiler_pic_works_F77=yes
22389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
22390 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
22392 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
22393 case $lt_prog_compiler_pic_F77 in
22395 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
22398 lt_prog_compiler_pic_F77=
22399 lt_prog_compiler_can_build_shared_F77=no
22409 # Check to make sure the static flag actually works.
22411 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
22412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22413 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22414 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then :
22415 $as_echo_n "(cached) " >&6
22417 lt_cv_prog_compiler_static_works_F77=no
22418 save_LDFLAGS="$LDFLAGS"
22419 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22420 echo "$lt_simple_link_test_code" > conftest.$ac_ext
22421 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22422 # The linker can only warn and ignore the option if not recognized
22423 # So say no if there are warnings
22424 if test -s conftest.err; then
22425 # Append any errors to the config.log.
22426 cat conftest.err 1>&5
22427 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
22428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22429 if diff conftest.exp conftest.er2 >/dev/null; then
22430 lt_cv_prog_compiler_static_works_F77=yes
22433 lt_cv_prog_compiler_static_works_F77=yes
22437 LDFLAGS="$save_LDFLAGS"
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
22441 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
22443 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
22446 lt_prog_compiler_static_F77=
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22453 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22454 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
22455 $as_echo_n "(cached) " >&6
22457 lt_cv_prog_compiler_c_o_F77=no
22458 $RM -r conftest 2>/dev/null
22462 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22464 lt_compiler_flag="-o out/conftest2.$ac_objext"
22465 # Insert the option either (1) after the last *FLAGS variable, or
22466 # (2) before a word containing "conftest.", or (3) at the end.
22467 # Note that $ac_compile itself does not contain backslashes and begins
22468 # with a dollar sign (not a hyphen), so the echo should work correctly.
22469 lt_compile=`echo "$ac_compile" | $SED \
22470 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22472 -e 's:$: $lt_compiler_flag:'`
22473 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22474 (eval "$lt_compile" 2>out/conftest.err)
22476 cat out/conftest.err >&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22480 # The compiler can only warn and ignore the option if not recognized
22481 # So say no if there are warnings
22482 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22483 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22484 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22485 lt_cv_prog_compiler_c_o_F77=yes
22490 # SGI C++ compiler will create directory out/ii_files/ for
22491 # template instantiation
22492 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22493 $RM out/* && rmdir out
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
22500 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22505 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22506 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
22507 $as_echo_n "(cached) " >&6
22509 lt_cv_prog_compiler_c_o_F77=no
22510 $RM -r conftest 2>/dev/null
22514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22516 lt_compiler_flag="-o out/conftest2.$ac_objext"
22517 # Insert the option either (1) after the last *FLAGS variable, or
22518 # (2) before a word containing "conftest.", or (3) at the end.
22519 # Note that $ac_compile itself does not contain backslashes and begins
22520 # with a dollar sign (not a hyphen), so the echo should work correctly.
22521 lt_compile=`echo "$ac_compile" | $SED \
22522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22524 -e 's:$: $lt_compiler_flag:'`
22525 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22526 (eval "$lt_compile" 2>out/conftest.err)
22528 cat out/conftest.err >&5
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22532 # The compiler can only warn and ignore the option if not recognized
22533 # So say no if there are warnings
22534 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22535 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22536 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22537 lt_cv_prog_compiler_c_o_F77=yes
22542 # SGI C++ compiler will create directory out/ii_files/ for
22543 # template instantiation
22544 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22545 $RM out/* && rmdir out
22551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
22552 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
22557 hard_links="nottested"
22558 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22559 # do not overwrite the value of need_locks provided by the user
22560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22561 $as_echo_n "checking if we can lock with hard links... " >&6; }
22564 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22566 ln conftest.a conftest.b 2>&5 || hard_links=no
22567 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22569 $as_echo "$hard_links" >&6; }
22570 if test "$hard_links" = no; then
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22572 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22582 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22585 allow_undefined_flag_F77=
22586 always_export_symbols_F77=no
22588 archive_expsym_cmds_F77=
22589 compiler_needs_object_F77=no
22590 enable_shared_with_static_runtimes_F77=no
22591 export_dynamic_flag_spec_F77=
22592 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22593 hardcode_automatic_F77=no
22594 hardcode_direct_F77=no
22595 hardcode_direct_absolute_F77=no
22596 hardcode_libdir_flag_spec_F77=
22597 hardcode_libdir_separator_F77=
22598 hardcode_minus_L_F77=no
22599 hardcode_shlibpath_var_F77=unsupported
22600 inherit_rpath_F77=no
22601 link_all_deplibs_F77=unknown
22603 module_expsym_cmds_F77=
22604 old_archive_from_new_cmds_F77=
22605 old_archive_from_expsyms_cmds_F77=
22606 thread_safe_flag_spec_F77=
22607 whole_archive_flag_spec_F77=
22608 # include_expsyms should be a list of space-separated symbols to be *always*
22609 # included in the symbol list
22610 include_expsyms_F77=
22611 # exclude_expsyms can be an extended regexp of symbols to exclude
22612 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22613 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22614 # as well as any symbol that contains `d'.
22615 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22616 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22617 # platforms (ab)use it in PIC code, but their linkers get confused if
22618 # the symbol is explicitly referenced. Since portable code cannot
22619 # rely on this symbol name, it's probably fine to never include it in
22620 # preloaded symbol tables.
22621 # Exclude shared library initialization/finalization symbols.
22622 extract_expsyms_cmds=
22625 cygwin* | mingw* | pw32* | cegcc*)
22626 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22627 # When not using gcc, we currently assume that we are using
22628 # Microsoft Visual C++.
22629 if test "$GCC" != yes; then
22634 # we just hope/assume this is gcc and not c89 (= MSVC++)
22644 # On some targets, GNU ld is compatible enough with the native linker
22645 # that we're better off using the native interface for both.
22646 lt_use_gnu_ld_interface=no
22647 if test "$with_gnu_ld" = yes; then
22650 # The AIX port of GNU ld has always aspired to compatibility
22651 # with the native linker. However, as the warning in the GNU ld
22652 # block says, versions before 2.19.5* couldn't really create working
22653 # shared libraries, regardless of the interface used.
22654 case `$LD -v 2>&1` in
22655 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
22656 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
22657 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
22659 lt_use_gnu_ld_interface=yes
22664 lt_use_gnu_ld_interface=yes
22669 if test "$lt_use_gnu_ld_interface" = yes; then
22670 # If archive_cmds runs LD, not CC, wlarc should be empty
22673 # Set some defaults for GNU ld with shared library support. These
22674 # are reset later if shared libraries are not supported. Putting them
22675 # here allows them to be overridden if necessary.
22676 runpath_var=LD_RUN_PATH
22677 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22678 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22679 # ancient GNU ld didn't support --whole-archive et. al.
22680 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
22681 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22683 whole_archive_flag_spec_F77=
22685 supports_anon_versioning=no
22686 case `$LD -v 2>&1` in
22687 *GNU\ gold*) supports_anon_versioning=yes ;;
22688 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22689 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22690 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22691 *\ 2.11.*) ;; # other 2.11 versions
22692 *) supports_anon_versioning=yes ;;
22695 # See if GNU ld supports shared libraries.
22698 # On AIX/PPC, the GNU linker is very broken
22699 if test "$host_cpu" != ia64; then
22703 *** Warning: the GNU linker, at least up to release 2.19, is reported
22704 *** to be unable to reliably create shared libraries on AIX.
22705 *** Therefore, libtool is disabling shared libraries support. If you
22706 *** really care for shared libraries, you may want to install binutils
22707 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
22708 *** You will then need to restart the configuration process.
22717 # see comment about AmigaOS4 .so support
22718 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22719 archive_expsym_cmds_F77=''
22722 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)'
22723 hardcode_libdir_flag_spec_F77='-L$libdir'
22724 hardcode_minus_L_F77=yes
22730 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22731 allow_undefined_flag_F77=unsupported
22732 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22733 # support --undefined. This deserves some investigation. FIXME
22734 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22740 cygwin* | mingw* | pw32* | cegcc*)
22741 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22742 # as there is no search path for DLLs.
22743 hardcode_libdir_flag_spec_F77='-L$libdir'
22744 export_dynamic_flag_spec_F77='${wl}--export-all-symbols'
22745 allow_undefined_flag_F77=unsupported
22746 always_export_symbols_F77=no
22747 enable_shared_with_static_runtimes_F77=yes
22748 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'
22749 exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
22751 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
22752 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22753 # If the export-symbols file already is a .def file (1st line
22754 # is EXPORTS), use it as is; otherwise, prepend...
22755 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22756 cp $export_symbols $output_objdir/$soname.def;
22758 echo EXPORTS > $output_objdir/$soname.def;
22759 cat $export_symbols >> $output_objdir/$soname.def;
22761 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22768 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22769 link_all_deplibs_F77=yes
22773 hardcode_direct_F77=no
22774 hardcode_shlibpath_var_F77=no
22775 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22776 export_dynamic_flag_spec_F77='${wl}-E'
22777 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22778 # Instead, shared libraries are loaded at an image base (0x10000000 by
22779 # default) and relocated if they conflict, which is a slow very memory
22780 # consuming and fragmenting process. To avoid this, we pick a random,
22781 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22782 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22783 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'
22784 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'
22787 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
22789 if test "$host_os" = linux-dietlibc; then
22790 case $cc_basename in
22791 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
22794 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
22795 && test "$tmp_diet" = no
22797 tmp_addflag=' $pic_flag'
22798 tmp_sharedflag='-shared'
22799 case $cc_basename,$host_cpu in
22800 pgcc*) # Portland Group C compiler
22801 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'
22802 tmp_addflag=' $pic_flag'
22804 pgf77* | pgf90* | pgf95* | pgfortran*)
22805 # Portland Group f77 and f90 compilers
22806 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'
22807 tmp_addflag=' $pic_flag -Mnomain' ;;
22808 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22809 tmp_addflag=' -i_dynamic' ;;
22810 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22811 tmp_addflag=' -i_dynamic -nofor_main' ;;
22812 ifc* | ifort*) # Intel Fortran compiler
22813 tmp_addflag=' -nofor_main' ;;
22814 lf95*) # Lahey Fortran 8.1
22815 whole_archive_flag_spec_F77=
22816 tmp_sharedflag='--shared' ;;
22817 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
22818 tmp_sharedflag='-qmkshrobj'
22820 nvcc*) # Cuda Compiler Driver 2.2
22821 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'
22822 compiler_needs_object_F77=yes
22825 case `$CC -V 2>&1 | sed 5q` in
22826 *Sun\ C*) # Sun C 5.9
22827 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'
22828 compiler_needs_object_F77=yes
22829 tmp_sharedflag='-G' ;;
22830 *Sun\ F*) # Sun Fortran 8.3
22831 tmp_sharedflag='-G' ;;
22833 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22835 if test "x$supports_anon_versioning" = xyes; then
22836 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
22837 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22838 echo "local: *; };" >> $output_objdir/$libname.ver~
22839 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22842 case $cc_basename in
22843 xlf* | bgf* | bgxlf* | mpixlf*)
22844 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
22845 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
22846 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22847 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
22848 if test "x$supports_anon_versioning" = xyes; then
22849 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
22850 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22851 echo "local: *; };" >> $output_objdir/$libname.ver~
22852 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
22862 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22863 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22866 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22867 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'
22872 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
22876 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22877 *** create shared libraries on Solaris systems. Therefore, libtool
22878 *** is disabling shared libraries support. We urge you to upgrade GNU
22879 *** binutils to release 2.9.1 or newer. Another option is to modify
22880 *** your PATH or compiler configuration so that the native linker is
22881 *** used, and then restart.
22884 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22885 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22886 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'
22892 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22893 case `$LD -v 2>&1` in
22894 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22898 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22899 *** reliably create shared libraries on SCO systems. Therefore, libtool
22900 *** is disabling shared libraries support. We urge you to upgrade GNU
22901 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22902 *** your PATH or compiler configuration so that the native linker is
22903 *** used, and then restart.
22908 # For security reasons, it is highly recommended that you always
22909 # use absolute paths for naming shared libraries, and exclude the
22910 # DT_RUNPATH tag from executables and libraries. But doing so
22911 # requires that you compile everything twice, which is a pain.
22912 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22913 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22914 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22915 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22924 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22926 hardcode_direct_F77=yes
22927 hardcode_shlibpath_var_F77=no
22931 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22932 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22933 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 test "$ld_shlibs_F77" = no; then
22942 hardcode_libdir_flag_spec_F77=
22943 export_dynamic_flag_spec_F77=
22944 whole_archive_flag_spec_F77=
22947 # PORTME fill in a description of your system's linker (not GNU ld)
22950 allow_undefined_flag_F77=unsupported
22951 always_export_symbols_F77=yes
22952 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'
22953 # Note: this linker hardcodes the directories in LIBPATH if there
22954 # are no directories specified by -L.
22955 hardcode_minus_L_F77=yes
22956 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22957 # Neither direct hardcoding nor static linking is supported with a
22959 hardcode_direct_F77=unsupported
22964 if test "$host_cpu" = ia64; then
22965 # On IA64, the linker does run time linking by default, so we don't
22966 # have to do anything special.
22967 aix_use_runtimelinking=no
22968 exp_sym_flag='-Bexport'
22971 # If we're using GNU nm, then we don't want the "-C" option.
22972 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22973 # Also, AIX nm treats weak defined symbols like other global
22974 # defined symbols, whereas GNU nm marks them as "W".
22975 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22976 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'
22978 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'
22980 aix_use_runtimelinking=no
22982 # Test if we are trying to use run time linking or normal
22983 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22984 # need to do runtime linking.
22985 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
22986 for ld_flag in $LDFLAGS; do
22987 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22988 aix_use_runtimelinking=yes
22995 exp_sym_flag='-bexport'
22996 no_entry_flag='-bnoentry'
22999 # When large executables or shared objects are built, AIX ld can
23000 # have problems creating the table of contents. If linking a library
23001 # or program results in "error TOC overflow" add -mminimal-toc to
23002 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23003 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23005 archive_cmds_F77=''
23006 hardcode_direct_F77=yes
23007 hardcode_direct_absolute_F77=yes
23008 hardcode_libdir_separator_F77=':'
23009 link_all_deplibs_F77=yes
23010 file_list_spec_F77='${wl}-f,'
23012 if test "$GCC" = yes; then
23013 case $host_os in aix4.[012]|aix4.[012].*)
23014 # We only want to do this on AIX 4.2 and lower, the check
23015 # below for broken collect2 doesn't work under 4.3+
23016 collect2name=`${CC} -print-prog-name=collect2`
23017 if test -f "$collect2name" &&
23018 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
23020 # We have reworked collect2
23023 # We have old collect2
23024 hardcode_direct_F77=unsupported
23025 # It fails to find uninstalled libraries when the uninstalled
23026 # path is not listed in the libpath. Setting hardcode_minus_L
23027 # to unsupported forces relinking
23028 hardcode_minus_L_F77=yes
23029 hardcode_libdir_flag_spec_F77='-L$libdir'
23030 hardcode_libdir_separator_F77=
23034 shared_flag='-shared'
23035 if test "$aix_use_runtimelinking" = yes; then
23036 shared_flag="$shared_flag "'${wl}-G'
23040 if test "$host_cpu" = ia64; then
23041 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23042 # chokes on -Wl,-G. The following line is correct:
23045 if test "$aix_use_runtimelinking" = yes; then
23046 shared_flag='${wl}-G'
23048 shared_flag='${wl}-bM:SRE'
23053 export_dynamic_flag_spec_F77='${wl}-bexpall'
23054 # It seems that -bexpall does not export symbols beginning with
23055 # underscore (_), so it is better to generate a list of symbols to export.
23056 always_export_symbols_F77=yes
23057 if test "$aix_use_runtimelinking" = yes; then
23058 # Warning - without using the other runtime loading flags (-brtl),
23059 # -berok will link without error, but may produce a broken library.
23060 allow_undefined_flag_F77='-berok'
23061 # Determine the default libpath from the value encoded in an
23062 # empty executable.
23063 if test "${lt_cv_aix_libpath+set}" = set; then
23064 aix_libpath=$lt_cv_aix_libpath
23066 if test "${lt_cv_aix_libpath__F77+set}" = set; then :
23067 $as_echo_n "(cached) " >&6
23069 cat > conftest.$ac_ext <<_ACEOF
23074 if ac_fn_f77_try_link "$LINENO"; then :
23076 lt_aix_libpath_sed='
23077 /Import File Strings/,/^$/ {
23079 s/^0 *\([^ ]*\) *$/\1/
23083 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23084 # Check for a 64-bit object if we didn't find anything.
23085 if test -z "$lt_cv_aix_libpath__F77"; then
23086 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23089 rm -f core conftest.err conftest.$ac_objext \
23090 conftest$ac_exeext conftest.$ac_ext
23091 if test -z "$lt_cv_aix_libpath__F77"; then
23092 lt_cv_aix_libpath__F77="/usr/lib:/lib"
23097 aix_libpath=$lt_cv_aix_libpath__F77
23100 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
23101 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"
23103 if test "$host_cpu" = ia64; then
23104 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
23105 allow_undefined_flag_F77="-z nodefs"
23106 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"
23108 # Determine the default libpath from the value encoded in an
23109 # empty executable.
23110 if test "${lt_cv_aix_libpath+set}" = set; then
23111 aix_libpath=$lt_cv_aix_libpath
23113 if test "${lt_cv_aix_libpath__F77+set}" = set; then :
23114 $as_echo_n "(cached) " >&6
23116 cat > conftest.$ac_ext <<_ACEOF
23121 if ac_fn_f77_try_link "$LINENO"; then :
23123 lt_aix_libpath_sed='
23124 /Import File Strings/,/^$/ {
23126 s/^0 *\([^ ]*\) *$/\1/
23130 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23131 # Check for a 64-bit object if we didn't find anything.
23132 if test -z "$lt_cv_aix_libpath__F77"; then
23133 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23136 rm -f core conftest.err conftest.$ac_objext \
23137 conftest$ac_exeext conftest.$ac_ext
23138 if test -z "$lt_cv_aix_libpath__F77"; then
23139 lt_cv_aix_libpath__F77="/usr/lib:/lib"
23144 aix_libpath=$lt_cv_aix_libpath__F77
23147 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
23148 # Warning - without using the other run time loading flags,
23149 # -berok will link without error, but may produce a broken library.
23150 no_undefined_flag_F77=' ${wl}-bernotok'
23151 allow_undefined_flag_F77=' ${wl}-berok'
23152 if test "$with_gnu_ld" = yes; then
23153 # We only use this code for GNU lds that support --whole-archive.
23154 whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
23156 # Exported symbols can be pulled into shared objects from archives
23157 whole_archive_flag_spec_F77='$convenience'
23159 archive_cmds_need_lc_F77=yes
23160 # This is similar to how AIX traditionally builds its shared libraries.
23161 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'
23169 # see comment about AmigaOS4 .so support
23170 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23171 archive_expsym_cmds_F77=''
23174 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)'
23175 hardcode_libdir_flag_spec_F77='-L$libdir'
23176 hardcode_minus_L_F77=yes
23182 export_dynamic_flag_spec_F77=-rdynamic
23185 cygwin* | mingw* | pw32* | cegcc*)
23186 # When not using gcc, we currently assume that we are using
23187 # Microsoft Visual C++.
23188 # hardcode_libdir_flag_spec is actually meaningless, as there is
23189 # no search path for DLLs.
23190 case $cc_basename in
23193 hardcode_libdir_flag_spec_F77=' '
23194 allow_undefined_flag_F77=unsupported
23195 always_export_symbols_F77=yes
23196 file_list_spec_F77='@'
23197 # Tell ltmain to make .lib files, not .a files.
23199 # Tell ltmain to make .dll files, not .so files.
23201 # FIXME: Setting linknames here is a bad hack.
23202 archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
23203 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23204 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
23206 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
23208 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
23210 # The linker will not automatically build a static lib if we build a DLL.
23211 # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
23212 enable_shared_with_static_runtimes_F77=yes
23213 exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
23214 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
23216 old_postinstall_cmds_F77='chmod 644 $oldlib'
23217 postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
23218 lt_tool_outputfile="@TOOL_OUTPUT@"~
23219 case $lt_outputfile in
23222 lt_outputfile="$lt_outputfile.exe"
23223 lt_tool_outputfile="$lt_tool_outputfile.exe"
23226 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
23227 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
23228 $RM "$lt_outputfile.manifest";
23232 # Assume MSVC wrapper
23233 hardcode_libdir_flag_spec_F77=' '
23234 allow_undefined_flag_F77=unsupported
23235 # Tell ltmain to make .lib files, not .a files.
23237 # Tell ltmain to make .dll files, not .so files.
23239 # FIXME: Setting linknames here is a bad hack.
23240 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
23241 # The linker will automatically build a .lib file if we build a DLL.
23242 old_archive_from_new_cmds_F77='true'
23243 # FIXME: Should let the user specify the lib program.
23244 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
23245 enable_shared_with_static_runtimes_F77=yes
23250 darwin* | rhapsody*)
23253 archive_cmds_need_lc_F77=no
23254 hardcode_direct_F77=no
23255 hardcode_automatic_F77=yes
23256 hardcode_shlibpath_var_F77=unsupported
23257 if test "$lt_cv_ld_force_load" = "yes"; then
23258 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\"`'
23259 compiler_needs_object_F77=yes
23261 whole_archive_flag_spec_F77=''
23263 link_all_deplibs_F77=yes
23264 allow_undefined_flag_F77="$_lt_dar_allow_undefined"
23265 case $cc_basename in
23266 ifort*) _lt_dar_can_shared=yes ;;
23267 *) _lt_dar_can_shared=$GCC ;;
23269 if test "$_lt_dar_can_shared" = "yes"; then
23270 output_verbose_link_cmd=func_echo_all
23271 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}"
23272 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
23273 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}"
23274 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}"
23283 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23284 hardcode_libdir_flag_spec_F77='-L$libdir'
23285 hardcode_shlibpath_var_F77=no
23288 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23289 # support. Future versions do this automatically, but an explicit c++rt0.o
23290 # does not break anything, and helps significantly (at the cost of a little
23293 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23294 hardcode_libdir_flag_spec_F77='-R$libdir'
23295 hardcode_direct_F77=yes
23296 hardcode_shlibpath_var_F77=no
23299 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23301 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23302 hardcode_direct_F77=yes
23303 hardcode_minus_L_F77=yes
23304 hardcode_shlibpath_var_F77=no
23307 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23308 freebsd* | dragonfly*)
23309 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23310 hardcode_libdir_flag_spec_F77='-R$libdir'
23311 hardcode_direct_F77=yes
23312 hardcode_shlibpath_var_F77=no
23316 if test "$GCC" = yes; then
23317 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'
23319 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'
23321 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23322 hardcode_libdir_separator_F77=:
23323 hardcode_direct_F77=yes
23325 # hardcode_minus_L: Not really in the search PATH,
23326 # but as the default location of the library.
23327 hardcode_minus_L_F77=yes
23328 export_dynamic_flag_spec_F77='${wl}-E'
23332 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
23333 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23335 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23337 if test "$with_gnu_ld" = no; then
23338 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23339 hardcode_libdir_separator_F77=:
23340 hardcode_direct_F77=yes
23341 hardcode_direct_absolute_F77=yes
23342 export_dynamic_flag_spec_F77='${wl}-E'
23343 # hardcode_minus_L: Not really in the search PATH,
23344 # but as the default location of the library.
23345 hardcode_minus_L_F77=yes
23350 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
23353 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23356 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23359 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23365 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23368 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23371 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23375 if test "$with_gnu_ld" = no; then
23376 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23377 hardcode_libdir_separator_F77=:
23381 hardcode_direct_F77=no
23382 hardcode_shlibpath_var_F77=no
23385 hardcode_direct_F77=yes
23386 hardcode_direct_absolute_F77=yes
23387 export_dynamic_flag_spec_F77='${wl}-E'
23389 # hardcode_minus_L: Not really in the search PATH,
23390 # but as the default location of the library.
23391 hardcode_minus_L_F77=yes
23397 irix5* | irix6* | nonstopux*)
23398 if test "$GCC" = yes; then
23399 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'
23400 # Try to use the -exported_symbol ld option, if it does not
23401 # work, assume that -exports_file does not work either and
23402 # implicitly export all symbols.
23403 # This should be the same for all languages, so no per-tag cache variable.
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
23405 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
23406 if test "${lt_cv_irix_exported_symbol+set}" = set; then :
23407 $as_echo_n "(cached) " >&6
23409 save_LDFLAGS="$LDFLAGS"
23410 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
23411 cat > conftest.$ac_ext <<_ACEOF
23416 if ac_fn_f77_try_link "$LINENO"; then :
23417 lt_cv_irix_exported_symbol=yes
23419 lt_cv_irix_exported_symbol=no
23421 rm -f core conftest.err conftest.$ac_objext \
23422 conftest$ac_exeext conftest.$ac_ext
23423 LDFLAGS="$save_LDFLAGS"
23425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
23426 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
23427 if test "$lt_cv_irix_exported_symbol" = yes; then
23428 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'
23431 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'
23432 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'
23434 archive_cmds_need_lc_F77='no'
23435 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23436 hardcode_libdir_separator_F77=:
23437 inherit_rpath_F77=yes
23438 link_all_deplibs_F77=yes
23442 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
23443 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23445 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23447 hardcode_libdir_flag_spec_F77='-R$libdir'
23448 hardcode_direct_F77=yes
23449 hardcode_shlibpath_var_F77=no
23453 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23454 hardcode_direct_F77=yes
23455 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23456 hardcode_libdir_separator_F77=:
23457 hardcode_shlibpath_var_F77=no
23464 if test -f /usr/libexec/ld.so; then
23465 hardcode_direct_F77=yes
23466 hardcode_shlibpath_var_F77=no
23467 hardcode_direct_absolute_F77=yes
23468 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23469 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23470 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23471 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23472 export_dynamic_flag_spec_F77='${wl}-E'
23475 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23476 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23477 hardcode_libdir_flag_spec_F77='-R$libdir'
23480 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23481 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23491 hardcode_libdir_flag_spec_F77='-L$libdir'
23492 hardcode_minus_L_F77=yes
23493 allow_undefined_flag_F77=unsupported
23494 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'
23495 old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23499 if test "$GCC" = yes; then
23500 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23501 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'
23503 allow_undefined_flag_F77=' -expect_unresolved \*'
23504 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'
23506 archive_cmds_need_lc_F77='no'
23507 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23508 hardcode_libdir_separator_F77=:
23511 osf4* | osf5*) # as osf3* with the addition of -msym flag
23512 if test "$GCC" = yes; then
23513 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23514 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'
23515 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23517 allow_undefined_flag_F77=' -expect_unresolved \*'
23518 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'
23519 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~
23520 $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'
23522 # Both c and cxx compiler support -rpath directly
23523 hardcode_libdir_flag_spec_F77='-rpath $libdir'
23525 archive_cmds_need_lc_F77='no'
23526 hardcode_libdir_separator_F77=:
23530 no_undefined_flag_F77=' -z defs'
23531 if test "$GCC" = yes; then
23533 archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23534 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23535 $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'
23537 case `$CC -V 2>&1` in
23540 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23541 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23542 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
23546 archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
23547 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23548 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
23552 hardcode_libdir_flag_spec_F77='-R$libdir'
23553 hardcode_shlibpath_var_F77=no
23555 solaris2.[0-5] | solaris2.[0-5].*) ;;
23557 # The compiler driver will combine and reorder linker options,
23558 # but understands `-z linker_flag'. GCC discards it without `$wl',
23559 # but is careful enough not to reorder.
23560 # Supported since Solaris 2.6 (maybe 2.5.1?)
23561 if test "$GCC" = yes; then
23562 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23564 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
23568 link_all_deplibs_F77=yes
23572 if test "x$host_vendor" = xsequent; then
23573 # Use $CC to link under sequent, because it throws in some extra .o
23574 # files that make .init and .fini sections work.
23575 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23577 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23579 hardcode_libdir_flag_spec_F77='-L$libdir'
23580 hardcode_direct_F77=yes
23581 hardcode_minus_L_F77=yes
23582 hardcode_shlibpath_var_F77=no
23586 case $host_vendor in
23588 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23589 hardcode_direct_F77=yes # is this really true???
23592 ## LD is ld it makes a PLAMLIB
23593 ## CC just makes a GrossModule.
23594 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23595 reload_cmds_F77='$CC -r -o $output$reload_objs'
23596 hardcode_direct_F77=no
23599 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23600 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
23603 runpath_var='LD_RUN_PATH'
23604 hardcode_shlibpath_var_F77=no
23608 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23609 hardcode_shlibpath_var_F77=no
23610 export_dynamic_flag_spec_F77='-Bexport'
23614 if test -d /usr/nec; then
23615 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23616 hardcode_shlibpath_var_F77=no
23617 runpath_var=LD_RUN_PATH
23618 hardcode_runpath_var=yes
23623 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
23624 no_undefined_flag_F77='${wl}-z,text'
23625 archive_cmds_need_lc_F77=no
23626 hardcode_shlibpath_var_F77=no
23627 runpath_var='LD_RUN_PATH'
23629 if test "$GCC" = yes; then
23630 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23631 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23633 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23634 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23638 sysv5* | sco3.2v5* | sco5v6*)
23639 # Note: We can NOT use -z defs as we might desire, because we do not
23640 # link with -lc, and that would cause any symbols used from libc to
23641 # always be unresolved, which means just about no library would
23642 # ever link correctly. If we're not using GNU ld we use -z text
23643 # though, which does catch some bad symbols but isn't as heavy-handed
23645 no_undefined_flag_F77='${wl}-z,text'
23646 allow_undefined_flag_F77='${wl}-z,nodefs'
23647 archive_cmds_need_lc_F77=no
23648 hardcode_shlibpath_var_F77=no
23649 hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
23650 hardcode_libdir_separator_F77=':'
23651 link_all_deplibs_F77=yes
23652 export_dynamic_flag_spec_F77='${wl}-Bexport'
23653 runpath_var='LD_RUN_PATH'
23655 if test "$GCC" = yes; then
23656 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23657 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23659 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23660 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23665 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23666 hardcode_libdir_flag_spec_F77='-L$libdir'
23667 hardcode_shlibpath_var_F77=no
23675 if test x$host_vendor = xsni; then
23677 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23678 export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
23684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
23685 $as_echo "$ld_shlibs_F77" >&6; }
23686 test "$ld_shlibs_F77" = no && can_build_shared=no
23688 with_gnu_ld_F77=$with_gnu_ld
23696 # Do we need to explicitly link libc?
23698 case "x$archive_cmds_need_lc_F77" in
23700 # Assume -lc should be added
23701 archive_cmds_need_lc_F77=yes
23703 if test "$enable_shared" = yes && test "$GCC" = yes; then
23704 case $archive_cmds_F77 in
23706 # FIXME: we may have to deal with multi-command sequences.
23709 # Test whether the compiler implicitly links with -lc since on some
23710 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23711 # to ld, don't add -lc before -lgcc.
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
23713 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
23714 if test "${lt_cv_archive_cmds_need_lc_F77+set}" = set; then :
23715 $as_echo_n "(cached) " >&6
23718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23721 (eval $ac_compile) 2>&5
23723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23724 test $ac_status = 0; } 2>conftest.err; then
23727 libobjs=conftest.$ac_objext
23729 wl=$lt_prog_compiler_wl_F77
23730 pic_flag=$lt_prog_compiler_pic_F77
23736 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23737 allow_undefined_flag_F77=
23738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
23739 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
23741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23742 test $ac_status = 0; }
23744 lt_cv_archive_cmds_need_lc_F77=no
23746 lt_cv_archive_cmds_need_lc_F77=yes
23748 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23750 cat conftest.err 1>&5
23755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
23756 $as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
23757 archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
23826 $as_echo_n "checking dynamic linker characteristics... " >&6; }
23828 library_names_spec=
23829 libname_spec='lib$name'
23833 postuninstall_cmds=
23837 shlibpath_overrides_runpath=unknown
23839 dynamic_linker="$host_os ld.so"
23840 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23841 need_lib_prefix=unknown
23842 hardcode_into_libs=no
23844 # when you set need_version to no, make sure it does not cause -set_version
23845 # flags to be left without arguments
23846 need_version=unknown
23850 version_type=linux # correct to gnu/linux during the next big refactor
23851 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23852 shlibpath_var=LIBPATH
23854 # AIX 3 has no versioning support, so we append a major version to the name.
23855 soname_spec='${libname}${release}${shared_ext}$major'
23859 version_type=linux # correct to gnu/linux during the next big refactor
23862 hardcode_into_libs=yes
23863 if test "$host_cpu" = ia64; then
23864 # AIX 5 supports IA64
23865 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23866 shlibpath_var=LD_LIBRARY_PATH
23868 # With GCC up to 2.95.x, collect2 would create an import file
23869 # for dependence libraries. The import file would start with
23870 # the line `#! .'. This would cause the generated library to
23871 # depend on `.', always an invalid library. This was fixed in
23872 # development snapshots of GCC prior to 3.0.
23874 aix4 | aix4.[01] | aix4.[01].*)
23875 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23877 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
23880 can_build_shared=no
23884 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23885 # soname into executable. Probably we can add versioning support to
23886 # collect2, so additional links can be useful in future.
23887 if test "$aix_use_runtimelinking" = yes; then
23888 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23889 # instead of lib<name>.a to let people know that these are not
23890 # typical AIX shared libraries.
23891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23893 # We preserve .a as extension for shared libraries through AIX4.2
23894 # and later when we are not doing run time linking.
23895 library_names_spec='${libname}${release}.a $libname.a'
23896 soname_spec='${libname}${release}${shared_ext}$major'
23898 shlibpath_var=LIBPATH
23905 # Since July 2007 AmigaOS4 officially supports .so libraries.
23906 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
23907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23910 library_names_spec='$libname.ixlibrary $libname.a'
23911 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23912 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'
23918 library_names_spec='${libname}${shared_ext}'
23919 dynamic_linker="$host_os ld.so"
23920 shlibpath_var=LIBRARY_PATH
23924 version_type=linux # correct to gnu/linux during the next big refactor
23926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23927 soname_spec='${libname}${release}${shared_ext}$major'
23928 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23929 shlibpath_var=LD_LIBRARY_PATH
23930 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23931 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23932 # the default ld.so.conf also contains /usr/contrib/lib and
23933 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23934 # libtool to hard-code these into programs
23937 cygwin* | mingw* | pw32* | cegcc*)
23938 version_type=windows
23943 case $GCC,$cc_basename in
23946 library_names_spec='$libname.dll.a'
23947 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23948 postinstall_cmds='base_file=`basename \${file}`~
23949 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
23950 dldir=$destdir/`dirname \$dlpath`~
23951 test -d \$dldir || mkdir -p \$dldir~
23952 $install_prog $dir/$dlname \$dldir/$dlname~
23953 chmod a+x \$dldir/$dlname~
23954 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
23955 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
23957 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23958 dlpath=$dir/\$dldll~
23960 shlibpath_overrides_runpath=yes
23964 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23965 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23969 # MinGW DLLs use traditional 'lib' prefix
23970 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23973 # pw32 DLLs use 'pw' prefix rather than 'lib'
23974 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23977 dynamic_linker='Win32 ld.exe'
23982 libname_spec='$name'
23983 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23984 library_names_spec='${libname}.dll.lib'
23988 sys_lib_search_path_spec=
23991 for lt_path in $LIB
23994 # Let DOS variable expansion print the short 8.3 style file name.
23995 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
23996 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
23999 # Convert to MSYS style.
24000 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
24003 # Convert to unix form, then to dos form, then back to unix form
24004 # but this time dos style (no spaces!) so that the unix form looks
24005 # like /cygdrive/c/PROGRA~1:/cygdr...
24006 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
24007 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
24008 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24011 sys_lib_search_path_spec="$LIB"
24012 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
24013 # It is most probably a Windows format PATH.
24014 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24016 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24018 # FIXME: find the short name or the path components, as spaces are
24019 # common. (e.g. "Program Files" -> "PROGRA~1")
24023 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24024 postinstall_cmds='base_file=`basename \${file}`~
24025 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
24026 dldir=$destdir/`dirname \$dlpath`~
24027 test -d \$dldir || mkdir -p \$dldir~
24028 $install_prog $dir/$dlname \$dldir/$dlname'
24029 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24030 dlpath=$dir/\$dldll~
24032 shlibpath_overrides_runpath=yes
24033 dynamic_linker='Win32 link.exe'
24037 # Assume MSVC wrapper
24038 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24039 dynamic_linker='Win32 ld.exe'
24042 # FIXME: first we should search . and the directory the executable is in
24046 darwin* | rhapsody*)
24047 dynamic_linker="$host_os dyld"
24048 version_type=darwin
24051 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24052 soname_spec='${libname}${release}${major}$shared_ext'
24053 shlibpath_overrides_runpath=yes
24054 shlibpath_var=DYLD_LIBRARY_PATH
24055 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24057 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24061 version_type=linux # correct to gnu/linux during the next big refactor
24064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24065 soname_spec='${libname}${release}${shared_ext}$major'
24066 shlibpath_var=LD_LIBRARY_PATH
24069 freebsd* | dragonfly*)
24070 # DragonFly does not have aout. When/if they implement a new
24071 # versioning mechanism, adjust this.
24072 if test -x /usr/bin/objformat; then
24073 objformat=`/usr/bin/objformat`
24076 freebsd[23].*) objformat=aout ;;
24077 *) objformat=elf ;;
24080 version_type=freebsd-$objformat
24081 case $version_type in
24083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24088 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24092 shlibpath_var=LD_LIBRARY_PATH
24095 shlibpath_overrides_runpath=yes
24097 freebsd3.[01]* | freebsdelf3.[01]*)
24098 shlibpath_overrides_runpath=yes
24099 hardcode_into_libs=yes
24101 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24102 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24103 shlibpath_overrides_runpath=no
24104 hardcode_into_libs=yes
24106 *) # from 4.6 on, and DragonFly
24107 shlibpath_overrides_runpath=yes
24108 hardcode_into_libs=yes
24114 version_type=linux # correct to gnu/linux during the next big refactor
24117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24118 soname_spec='${libname}${release}${shared_ext}$major'
24119 shlibpath_var=LD_LIBRARY_PATH
24120 shlibpath_overrides_runpath=no
24121 hardcode_into_libs=yes
24125 version_type=linux # correct to gnu/linux during the next big refactor
24128 dynamic_linker="$host_os runtime_loader"
24129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24130 soname_spec='${libname}${release}${shared_ext}$major'
24131 shlibpath_var=LIBRARY_PATH
24132 shlibpath_overrides_runpath=yes
24133 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
24134 hardcode_into_libs=yes
24137 hpux9* | hpux10* | hpux11*)
24138 # Give a soname corresponding to the major version so that dld.sl refuses to
24139 # link against other versions.
24146 hardcode_into_libs=yes
24147 dynamic_linker="$host_os dld.so"
24148 shlibpath_var=LD_LIBRARY_PATH
24149 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24151 soname_spec='${libname}${release}${shared_ext}$major'
24152 if test "X$HPUX_IA64_MODE" = X32; then
24153 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24155 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24157 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24161 hardcode_into_libs=yes
24162 dynamic_linker="$host_os dld.sl"
24163 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24164 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24166 soname_spec='${libname}${release}${shared_ext}$major'
24167 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24168 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24172 dynamic_linker="$host_os dld.sl"
24173 shlibpath_var=SHLIB_PATH
24174 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24176 soname_spec='${libname}${release}${shared_ext}$major'
24179 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24180 postinstall_cmds='chmod 555 $lib'
24181 # or fails outright, so override atomically:
24182 install_override_mode=555
24186 version_type=linux # correct to gnu/linux during the next big refactor
24189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24190 soname_spec='${libname}${release}${shared_ext}$major'
24191 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24192 shlibpath_var=LD_LIBRARY_PATH
24193 shlibpath_overrides_runpath=no
24194 hardcode_into_libs=yes
24197 irix5* | irix6* | nonstopux*)
24199 nonstopux*) version_type=nonstopux ;;
24201 if test "$lt_cv_prog_gnu_ld" = yes; then
24202 version_type=linux # correct to gnu/linux during the next big refactor
24209 soname_spec='${libname}${release}${shared_ext}$major'
24210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24212 irix5* | nonstopux*)
24213 libsuff= shlibsuff=
24216 case $LD in # libtool.m4 will add one of these switches to LD
24217 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24218 libsuff= shlibsuff= libmagic=32-bit;;
24219 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24220 libsuff=32 shlibsuff=N32 libmagic=N32;;
24221 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24222 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24223 *) libsuff= shlibsuff= libmagic=never-match;;
24227 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24228 shlibpath_overrides_runpath=no
24229 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24230 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24231 hardcode_into_libs=yes
24234 # No shared lib support for Linux oldld, aout, or coff.
24235 linux*oldld* | linux*aout* | linux*coff*)
24239 # This must be glibc/ELF.
24240 linux* | k*bsd*-gnu | kopensolaris*-gnu)
24241 version_type=linux # correct to gnu/linux during the next big refactor
24244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24245 soname_spec='${libname}${release}${shared_ext}$major'
24246 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24247 shlibpath_var=LD_LIBRARY_PATH
24248 shlibpath_overrides_runpath=no
24250 # Some binutils ld are patched to set DT_RUNPATH
24251 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
24252 $as_echo_n "(cached) " >&6
24254 lt_cv_shlibpath_overrides_runpath=no
24255 save_LDFLAGS=$LDFLAGS
24256 save_libdir=$libdir
24257 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
24258 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
24259 cat > conftest.$ac_ext <<_ACEOF
24264 if ac_fn_f77_try_link "$LINENO"; then :
24265 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
24266 lt_cv_shlibpath_overrides_runpath=yes
24269 rm -f core conftest.err conftest.$ac_objext \
24270 conftest$ac_exeext conftest.$ac_ext
24271 LDFLAGS=$save_LDFLAGS
24272 libdir=$save_libdir
24276 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24278 # This implies no fast_install, which is unacceptable.
24279 # Some rework will be needed to allow for fast_install
24280 # before this can be enabled.
24281 hardcode_into_libs=yes
24283 # Append ld.so.conf contents to the search path
24284 if test -f /etc/ld.so.conf; then
24285 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' ' '`
24286 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24289 # We used to test for /lib/ld.so.1 and disable shared libraries on
24290 # powerpc, because MkLinux only supported shared libraries with the
24291 # GNU dynamic linker. Since this was broken with cross compilers,
24292 # most powerpc-linux boxes support dynamic linking these days and
24293 # people can always --disable-shared, the test was removed, and we
24294 # assume the GNU/Linux dynamic linker is in use.
24295 dynamic_linker='GNU/Linux ld.so'
24302 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
24303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24305 dynamic_linker='NetBSD (a.out) ld.so'
24307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24308 soname_spec='${libname}${release}${shared_ext}$major'
24309 dynamic_linker='NetBSD ld.elf_so'
24311 shlibpath_var=LD_LIBRARY_PATH
24312 shlibpath_overrides_runpath=yes
24313 hardcode_into_libs=yes
24317 version_type=linux # correct to gnu/linux during the next big refactor
24318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24319 shlibpath_var=LD_LIBRARY_PATH
24320 shlibpath_overrides_runpath=yes
24327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24328 soname_spec='${libname}${release}${shared_ext}$major'
24329 shlibpath_var=LD_LIBRARY_PATH
24330 shlibpath_overrides_runpath=no
24331 hardcode_into_libs=yes
24332 dynamic_linker='ldqnx.so'
24337 sys_lib_dlsearch_path_spec="/usr/lib"
24339 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24341 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24342 *) need_version=no ;;
24344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24346 shlibpath_var=LD_LIBRARY_PATH
24347 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24349 openbsd2.[89] | openbsd2.[89].*)
24350 shlibpath_overrides_runpath=no
24353 shlibpath_overrides_runpath=yes
24357 shlibpath_overrides_runpath=yes
24362 libname_spec='$name'
24365 library_names_spec='$libname${shared_ext} $libname.a'
24366 dynamic_linker='OS/2 ld.exe'
24367 shlibpath_var=LIBPATH
24370 osf3* | osf4* | osf5*)
24374 soname_spec='${libname}${release}${shared_ext}$major'
24375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24376 shlibpath_var=LD_LIBRARY_PATH
24377 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24378 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24386 version_type=linux # correct to gnu/linux during the next big refactor
24389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24390 soname_spec='${libname}${release}${shared_ext}$major'
24391 shlibpath_var=LD_LIBRARY_PATH
24392 shlibpath_overrides_runpath=yes
24393 hardcode_into_libs=yes
24394 # ldd complains unless libraries are executable
24395 postinstall_cmds='chmod +x $lib'
24400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24401 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24402 shlibpath_var=LD_LIBRARY_PATH
24403 shlibpath_overrides_runpath=yes
24404 if test "$with_gnu_ld" = yes; then
24411 version_type=linux # correct to gnu/linux during the next big refactor
24412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24413 soname_spec='${libname}${release}${shared_ext}$major'
24414 shlibpath_var=LD_LIBRARY_PATH
24415 case $host_vendor in
24417 shlibpath_overrides_runpath=no
24419 runpath_var=LD_RUN_PATH
24427 shlibpath_overrides_runpath=no
24428 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24434 if test -d /usr/nec ;then
24435 version_type=linux # correct to gnu/linux during the next big refactor
24436 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24437 soname_spec='$libname${shared_ext}.$major'
24438 shlibpath_var=LD_LIBRARY_PATH
24442 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24443 version_type=freebsd-elf
24446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24447 soname_spec='${libname}${release}${shared_ext}$major'
24448 shlibpath_var=LD_LIBRARY_PATH
24449 shlibpath_overrides_runpath=yes
24450 hardcode_into_libs=yes
24451 if test "$with_gnu_ld" = yes; then
24452 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24454 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24457 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24461 sys_lib_dlsearch_path_spec='/usr/lib'
24465 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
24466 version_type=linux # correct to gnu/linux during the next big refactor
24469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24470 shlibpath_var=LD_LIBRARY_PATH
24471 shlibpath_overrides_runpath=no
24472 hardcode_into_libs=yes
24476 version_type=linux # correct to gnu/linux during the next big refactor
24477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24478 soname_spec='${libname}${release}${shared_ext}$major'
24479 shlibpath_var=LD_LIBRARY_PATH
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
24487 $as_echo "$dynamic_linker" >&6; }
24488 test "$dynamic_linker" = no && can_build_shared=no
24490 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24491 if test "$GCC" = yes; then
24492 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24495 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
24496 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
24498 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
24499 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
24540 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
24541 hardcode_action_F77=
24542 if test -n "$hardcode_libdir_flag_spec_F77" ||
24543 test -n "$runpath_var_F77" ||
24544 test "X$hardcode_automatic_F77" = "Xyes" ; then
24546 # We can hardcode non-existent directories.
24547 if test "$hardcode_direct_F77" != no &&
24548 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24549 # have to relink, otherwise we might link with an installed library
24550 # when we should be linking with a yet-to-be-installed one
24551 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
24552 test "$hardcode_minus_L_F77" != no; then
24553 # Linking always hardcodes the temporary library directory.
24554 hardcode_action_F77=relink
24556 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24557 hardcode_action_F77=immediate
24560 # We cannot hardcode anything, or else we can only hardcode existing
24562 hardcode_action_F77=unsupported
24564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
24565 $as_echo "$hardcode_action_F77" >&6; }
24567 if test "$hardcode_action_F77" = relink ||
24568 test "$inherit_rpath_F77" = yes; then
24569 # Fast installation is not supported
24570 enable_fast_install=no
24571 elif test "$shlibpath_overrides_runpath" = yes ||
24572 test "$enable_shared" = no; then
24573 # Fast installation is not necessary
24574 enable_fast_install=needless
24583 fi # test -n "$compiler"
24587 CFLAGS="$lt_save_CFLAGS"
24588 fi # test "$_lt_disable_F77" != yes
24591 ac_cpp='$CPP $CPPFLAGS'
24592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24608 ac_config_commands="$ac_config_commands libtool"
24613 # Only expand once:
24617 # Generate an error here if attempting to build both shared and static when
24618 # $libname.a is in $library_names_spec (as mentioned above), rather than
24619 # wait for ar or ld to fail.
24621 if test "$enable_shared" = yes && test "$enable_static" = yes; then
24622 case $library_names_spec in
24624 as_fn_error "cannot create both shared and static libraries on this system, --disable one of the two" "$LINENO" 5
24629 if test "$enable_static" = yes; then
24630 ENABLE_STATIC_TRUE=
24631 ENABLE_STATIC_FALSE='#'
24633 ENABLE_STATIC_TRUE='#'
24634 ENABLE_STATIC_FALSE=
24639 # Many of these library and header checks are for the benefit of
24640 # supplementary programs. libgmp doesn't use anything too weird.
24642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24643 $as_echo_n "checking for ANSI C header files... " >&6; }
24644 if test "${ac_cv_header_stdc+set}" = set; then :
24645 $as_echo_n "(cached) " >&6
24647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24648 /* end confdefs.h. */
24649 #include <stdlib.h>
24650 #include <stdarg.h>
24651 #include <string.h>
24662 if ac_fn_c_try_compile "$LINENO"; then :
24663 ac_cv_header_stdc=yes
24665 ac_cv_header_stdc=no
24667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24669 if test $ac_cv_header_stdc = yes; then
24670 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24672 /* end confdefs.h. */
24673 #include <string.h>
24676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24677 $EGREP "memchr" >/dev/null 2>&1; then :
24680 ac_cv_header_stdc=no
24686 if test $ac_cv_header_stdc = yes; then
24687 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24689 /* end confdefs.h. */
24690 #include <stdlib.h>
24693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24694 $EGREP "free" >/dev/null 2>&1; then :
24697 ac_cv_header_stdc=no
24703 if test $ac_cv_header_stdc = yes; then
24704 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24705 if test "$cross_compiling" = yes; then :
24708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24709 /* end confdefs.h. */
24711 #include <stdlib.h>
24712 #if ((' ' & 0x0FF) == 0x020)
24713 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24714 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24716 # define ISLOWER(c) \
24717 (('a' <= (c) && (c) <= 'i') \
24718 || ('j' <= (c) && (c) <= 'r') \
24719 || ('s' <= (c) && (c) <= 'z'))
24720 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24723 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24728 for (i = 0; i < 256; i++)
24729 if (XOR (islower (i), ISLOWER (i))
24730 || toupper (i) != TOUPPER (i))
24735 if ac_fn_c_try_run "$LINENO"; then :
24738 ac_cv_header_stdc=no
24740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24741 conftest.$ac_objext conftest.beam conftest.$ac_ext
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
24747 $as_echo "$ac_cv_header_stdc" >&6; }
24748 if test $ac_cv_header_stdc = yes; then
24750 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
24754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
24755 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
24756 if test "${ac_cv_header_time+set}" = set; then :
24757 $as_echo_n "(cached) " >&6
24759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24760 /* end confdefs.h. */
24761 #include <sys/types.h>
24762 #include <sys/time.h>
24768 if ((struct tm *) 0)
24774 if ac_fn_c_try_compile "$LINENO"; then :
24775 ac_cv_header_time=yes
24777 ac_cv_header_time=no
24779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
24782 $as_echo "$ac_cv_header_time" >&6; }
24783 if test $ac_cv_header_time = yes; then
24785 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
24790 # Reasons for testing:
24791 # float.h - not in SunOS bundled cc
24792 # invent.h - IRIX specific
24793 # langinfo.h - X/Open standard only, not in djgpp for instance
24794 # locale.h - old systems won't have this
24795 # nl_types.h - X/Open standard only, not in djgpp for instance
24796 # (usually langinfo.h gives nl_item etc, but not on netbsd 1.4.1)
24797 # sys/attributes.h - IRIX specific
24798 # sys/iograph.h - IRIX specific
24799 # sys/mman.h - not in Cray Unicos
24800 # sys/param.h - not in mingw
24801 # sys/processor.h - solaris specific, though also present in macos
24802 # sys/pstat.h - HPUX specific
24803 # sys/resource.h - not in mingw
24804 # sys/sysctl.h - not in mingw
24805 # sys/sysinfo.h - OSF specific
24806 # sys/syssgi.h - IRIX specific
24807 # sys/systemcfg.h - AIX specific
24808 # sys/time.h - autoconf suggests testing, don't know anywhere without it
24809 # sys/times.h - not in mingw
24810 # machine/hal_sysinfo.h - OSF specific
24812 # inttypes.h, stdint.h, unistd.h and sys/types.h are already in the autoconf
24815 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
24817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24818 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24819 eval as_val=\$$as_ac_Header
24820 if test "x$as_val" = x""yes; then :
24821 cat >>confdefs.h <<_ACEOF
24822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24830 # On SunOS, sys/resource.h needs sys/time.h (for struct timeval)
24831 for ac_header in sys/resource.h
24833 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "#if TIME_WITH_SYS_TIME
24834 # include <sys/time.h>
24837 # if HAVE_SYS_TIME_H
24838 # include <sys/time.h>
24844 if test "x$ac_cv_header_sys_resource_h" = x""yes; then :
24845 cat >>confdefs.h <<_ACEOF
24846 #define HAVE_SYS_RESOURCE_H 1
24854 # On NetBSD and OpenBSD, sys/sysctl.h needs sys/param.h for various constants
24855 for ac_header in sys/sysctl.h
24857 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if HAVE_SYS_PARAM_H
24858 # include <sys/param.h>
24861 if test "x$ac_cv_header_sys_sysctl_h" = x""yes; then :
24862 cat >>confdefs.h <<_ACEOF
24863 #define HAVE_SYS_SYSCTL_H 1
24871 # On OSF 4.0, <machine/hal_sysinfo.h> must have <sys/sysinfo.h> for ulong_t
24872 for ac_header in machine/hal_sysinfo.h
24874 ac_fn_c_check_header_compile "$LINENO" "machine/hal_sysinfo.h" "ac_cv_header_machine_hal_sysinfo_h" "#if HAVE_SYS_SYSINFO_H
24875 # include <sys/sysinfo.h>
24878 if test "x$ac_cv_header_machine_hal_sysinfo_h" = x""yes; then :
24879 cat >>confdefs.h <<_ACEOF
24880 #define HAVE_MACHINE_HAL_SYSINFO_H 1
24888 # Reasons for testing:
24889 # optarg - not declared in mingw
24890 # fgetc, fscanf, ungetc, vfprintf - not declared in SunOS 4
24891 # sys_errlist, sys_nerr - not declared in SunOS 4
24893 # optarg should be in unistd.h and the rest in stdio.h, both of which are
24894 # in the autoconf default includes.
24896 # sys_errlist and sys_nerr are supposed to be in <errno.h> on SunOS according
24897 # to the man page (but aren't), in glibc they're in stdio.h.
24899 ac_fn_c_check_decl "$LINENO" "fgetc" "ac_cv_have_decl_fgetc" "$ac_includes_default"
24900 if test "x$ac_cv_have_decl_fgetc" = x""yes; then :
24906 cat >>confdefs.h <<_ACEOF
24907 #define HAVE_DECL_FGETC $ac_have_decl
24909 ac_fn_c_check_decl "$LINENO" "fscanf" "ac_cv_have_decl_fscanf" "$ac_includes_default"
24910 if test "x$ac_cv_have_decl_fscanf" = x""yes; then :
24916 cat >>confdefs.h <<_ACEOF
24917 #define HAVE_DECL_FSCANF $ac_have_decl
24919 ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "$ac_includes_default"
24920 if test "x$ac_cv_have_decl_optarg" = x""yes; then :
24926 cat >>confdefs.h <<_ACEOF
24927 #define HAVE_DECL_OPTARG $ac_have_decl
24929 ac_fn_c_check_decl "$LINENO" "ungetc" "ac_cv_have_decl_ungetc" "$ac_includes_default"
24930 if test "x$ac_cv_have_decl_ungetc" = x""yes; then :
24936 cat >>confdefs.h <<_ACEOF
24937 #define HAVE_DECL_UNGETC $ac_have_decl
24939 ac_fn_c_check_decl "$LINENO" "vfprintf" "ac_cv_have_decl_vfprintf" "$ac_includes_default"
24940 if test "x$ac_cv_have_decl_vfprintf" = x""yes; then :
24946 cat >>confdefs.h <<_ACEOF
24947 #define HAVE_DECL_VFPRINTF $ac_have_decl
24950 ac_fn_c_check_decl "$LINENO" "sys_errlist" "ac_cv_have_decl_sys_errlist" "#include <stdio.h>
24953 if test "x$ac_cv_have_decl_sys_errlist" = x""yes; then :
24959 cat >>confdefs.h <<_ACEOF
24960 #define HAVE_DECL_SYS_ERRLIST $ac_have_decl
24962 ac_fn_c_check_decl "$LINENO" "sys_nerr" "ac_cv_have_decl_sys_nerr" "#include <stdio.h>
24965 if test "x$ac_cv_have_decl_sys_nerr" = x""yes; then :
24971 cat >>confdefs.h <<_ACEOF
24972 #define HAVE_DECL_SYS_NERR $ac_have_decl
24976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
24977 $as_echo_n "checking return type of signal handlers... " >&6; }
24978 if test "${ac_cv_type_signal+set}" = set; then :
24979 $as_echo_n "(cached) " >&6
24981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24982 /* end confdefs.h. */
24983 #include <sys/types.h>
24984 #include <signal.h>
24989 return *(signal (0, 0)) (0) == 1;
24994 if ac_fn_c_try_compile "$LINENO"; then :
24995 ac_cv_type_signal=int
24997 ac_cv_type_signal=void
24999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
25002 $as_echo "$ac_cv_type_signal" >&6; }
25004 cat >>confdefs.h <<_ACEOF
25005 #define RETSIGTYPE $ac_cv_type_signal
25010 # Reasons for testing:
25012 # long double - not in the HP bundled K&R cc
25013 # long long - only in reasonably recent compilers
25014 # ptrdiff_t - seems to be everywhere, maybe don't need to check this
25015 # quad_t - BSD specific
25016 # uint_least32_t - C99
25018 # the default includes are sufficient for all these types
25020 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
25021 if test "x$ac_cv_type_intmax_t" = x""yes; then :
25023 cat >>confdefs.h <<_ACEOF
25024 #define HAVE_INTMAX_T 1
25029 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
25030 if test "x$ac_cv_type_long_double" = x""yes; then :
25032 cat >>confdefs.h <<_ACEOF
25033 #define HAVE_LONG_DOUBLE 1
25038 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
25039 if test "x$ac_cv_type_long_long" = x""yes; then :
25041 cat >>confdefs.h <<_ACEOF
25042 #define HAVE_LONG_LONG 1
25047 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
25048 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
25050 cat >>confdefs.h <<_ACEOF
25051 #define HAVE_PTRDIFF_T 1
25056 ac_fn_c_check_type "$LINENO" "quad_t" "ac_cv_type_quad_t" "$ac_includes_default"
25057 if test "x$ac_cv_type_quad_t" = x""yes; then :
25059 cat >>confdefs.h <<_ACEOF
25060 #define HAVE_QUAD_T 1
25065 ac_fn_c_check_type "$LINENO" "uint_least32_t" "ac_cv_type_uint_least32_t" "$ac_includes_default"
25066 if test "x$ac_cv_type_uint_least32_t" = x""yes; then :
25068 cat >>confdefs.h <<_ACEOF
25069 #define HAVE_UINT_LEAST32_T 1
25074 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
25075 if test "x$ac_cv_type_intptr_t" = x""yes; then :
25077 cat >>confdefs.h <<_ACEOF
25078 #define HAVE_INTPTR_T 1
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
25086 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
25087 if test "${ac_cv_c_stringize+set}" = set; then :
25088 $as_echo_n "(cached) " >&6
25090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25091 /* end confdefs.h. */
25094 char *s = x(teststring);
25096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25097 $EGREP "#teststring" >/dev/null 2>&1; then :
25098 ac_cv_c_stringize=no
25100 ac_cv_c_stringize=yes
25105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
25106 $as_echo "$ac_cv_c_stringize" >&6; }
25107 if test $ac_cv_c_stringize = yes; then
25109 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
25114 # FIXME: Really want #ifndef __cplusplus around the #define volatile
25115 # replacement autoconf gives, since volatile is always available in C++.
25116 # But we don't use it in C++ currently.
25117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
25118 $as_echo_n "checking for working volatile... " >&6; }
25119 if test "${ac_cv_c_volatile+set}" = set; then :
25120 $as_echo_n "(cached) " >&6
25122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25123 /* end confdefs.h. */
25130 int * volatile y = (int *) 0;
25136 if ac_fn_c_try_compile "$LINENO"; then :
25137 ac_cv_c_volatile=yes
25139 ac_cv_c_volatile=no
25141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
25144 $as_echo "$ac_cv_c_volatile" >&6; }
25145 if test $ac_cv_c_volatile = no; then
25147 $as_echo "#define volatile /**/" >>confdefs.h
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
25153 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
25154 if test "${ac_cv_c_restrict+set}" = set; then :
25155 $as_echo_n "(cached) " >&6
25157 ac_cv_c_restrict=no
25158 # The order here caters to the fact that C++ does not require restrict.
25159 for ac_kw in __restrict __restrict__ _Restrict restrict; do
25160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25161 /* end confdefs.h. */
25162 typedef int * int_ptr;
25163 int foo (int_ptr $ac_kw ip) {
25170 int * $ac_kw t = s;
25177 if ac_fn_c_try_compile "$LINENO"; then :
25178 ac_cv_c_restrict=$ac_kw
25180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25181 test "$ac_cv_c_restrict" != no && break
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
25186 $as_echo "$ac_cv_c_restrict" >&6; }
25188 case $ac_cv_c_restrict in
25190 no) $as_echo "#define restrict /**/" >>confdefs.h
25192 *) cat >>confdefs.h <<_ACEOF
25193 #define restrict $ac_cv_c_restrict
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <stdarg.h> exists and works" >&5
25200 $as_echo_n "checking whether <stdarg.h> exists and works... " >&6; }
25201 if test "${gmp_cv_c_stdarg+set}" = set; then :
25202 $as_echo_n "(cached) " >&6
25204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25205 /* end confdefs.h. */
25206 #include <stdarg.h>
25207 int foo (int x, ...)
25212 y = va_arg (ap, int);
25224 if ac_fn_c_try_compile "$LINENO"; then :
25225 gmp_cv_c_stdarg=yes
25229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_stdarg" >&5
25233 $as_echo "$gmp_cv_c_stdarg" >&6; }
25234 if test $gmp_cv_c_stdarg = yes; then
25236 $as_echo "#define HAVE_STDARG 1" >>confdefs.h
25240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((const)) works" >&5
25241 $as_echo_n "checking whether gcc __attribute__ ((const)) works... " >&6; }
25242 if test "${gmp_cv_c_attribute_const+set}" = set; then :
25243 $as_echo_n "(cached) " >&6
25245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25246 /* end confdefs.h. */
25247 int foo (int x) __attribute__ ((const));
25256 if ac_fn_c_try_compile "$LINENO"; then :
25257 gmp_cv_c_attribute_const=yes
25259 gmp_cv_c_attribute_const=no
25261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_const" >&5
25265 $as_echo "$gmp_cv_c_attribute_const" >&6; }
25266 if test $gmp_cv_c_attribute_const = yes; then
25268 $as_echo "#define HAVE_ATTRIBUTE_CONST 1" >>confdefs.h
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((malloc)) works" >&5
25273 $as_echo_n "checking whether gcc __attribute__ ((malloc)) works... " >&6; }
25274 if test "${gmp_cv_c_attribute_malloc+set}" = set; then :
25275 $as_echo_n "(cached) " >&6
25277 cat >conftest.c <<EOF
25278 void *foo (int x) __attribute__ ((malloc));
25280 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1"
25281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
25282 (eval $gmp_compile) 2>&5
25284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25285 test $ac_status = 0; }; then
25286 if grep "attribute directive ignored" conftest.out >/dev/null; then
25287 gmp_cv_c_attribute_malloc=no
25289 gmp_cv_c_attribute_malloc=yes
25292 gmp_cv_c_attribute_malloc=no
25294 cat conftest.out >&5
25298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_malloc" >&5
25299 $as_echo "$gmp_cv_c_attribute_malloc" >&6; }
25300 if test $gmp_cv_c_attribute_malloc = yes; then
25302 $as_echo "#define HAVE_ATTRIBUTE_MALLOC 1" >>confdefs.h
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5
25307 $as_echo_n "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; }
25308 if test "${gmp_cv_c_attribute_mode+set}" = set; then :
25309 $as_echo_n "(cached) " >&6
25311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25312 /* end confdefs.h. */
25313 typedef int SItype __attribute__ ((mode (SI)));
25322 if ac_fn_c_try_compile "$LINENO"; then :
25323 gmp_cv_c_attribute_mode=yes
25325 gmp_cv_c_attribute_mode=no
25327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5
25331 $as_echo "$gmp_cv_c_attribute_mode" >&6; }
25332 if test $gmp_cv_c_attribute_mode = yes; then
25334 $as_echo "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((noreturn)) works" >&5
25339 $as_echo_n "checking whether gcc __attribute__ ((noreturn)) works... " >&6; }
25340 if test "${gmp_cv_c_attribute_noreturn+set}" = set; then :
25341 $as_echo_n "(cached) " >&6
25343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25344 /* end confdefs.h. */
25345 void foo (int x) __attribute__ ((noreturn));
25354 if ac_fn_c_try_compile "$LINENO"; then :
25355 gmp_cv_c_attribute_noreturn=yes
25357 gmp_cv_c_attribute_noreturn=no
25359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_noreturn" >&5
25363 $as_echo "$gmp_cv_c_attribute_noreturn" >&6; }
25364 if test $gmp_cv_c_attribute_noreturn = yes; then
25366 $as_echo "#define HAVE_ATTRIBUTE_NORETURN 1" >>confdefs.h
25371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
25372 $as_echo_n "checking for inline... " >&6; }
25373 if test "${ac_cv_c_inline+set}" = set; then :
25374 $as_echo_n "(cached) " >&6
25377 for ac_kw in inline __inline__ __inline; do
25378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25379 /* end confdefs.h. */
25380 #ifndef __cplusplus
25382 static $ac_kw foo_t static_foo () {return 0; }
25383 $ac_kw foo_t foo () {return 0; }
25387 if ac_fn_c_try_compile "$LINENO"; then :
25388 ac_cv_c_inline=$ac_kw
25390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25391 test "$ac_cv_c_inline" != no && break
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
25396 $as_echo "$ac_cv_c_inline" >&6; }
25398 case $ac_cv_c_inline in
25401 case $ac_cv_c_inline in
25403 *) ac_val=$ac_cv_c_inline;;
25405 cat >>confdefs.h <<_ACEOF
25406 #ifndef __cplusplus
25407 #define inline $ac_val
25414 case $ac_cv_c_inline in
25417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25418 /* end confdefs.h. */
25419 #define __GMP_WITHIN_CONFIGURE_INLINE 1
25420 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
25421 #define GMP_NAIL_BITS $GMP_NAIL_BITS
25422 #define GMP_LIMB_BITS 123
25423 $DEFN_LONG_LONG_LIMB
25424 #include "$srcdir/gmp-h.in"
25426 #ifndef __GMP_EXTERN_INLINE
25438 if ac_fn_c_try_compile "$LINENO"; then :
25441 case $ac_cv_c_inline in
25442 yes) tmp_inline=inline ;;
25443 *) tmp_inline=$ac_cv_c_inline ;;
25445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&5
25446 $as_echo "$as_me: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&2;}
25448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25456 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
25457 # These system don't have libm, or don't need it
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
25461 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
25462 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
25463 $as_echo_n "(cached) " >&6
25465 ac_check_lib_save_LIBS=$LIBS
25467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25468 /* end confdefs.h. */
25470 /* Override any GCC internal prototype to avoid an error.
25471 Use char because int might match the return type of a GCC
25472 builtin and then its argument prototype would still apply. */
25476 char _mwvalidcheckl ();
25480 return _mwvalidcheckl ();
25485 if ac_fn_c_try_link "$LINENO"; then :
25486 ac_cv_lib_mw__mwvalidcheckl=yes
25488 ac_cv_lib_mw__mwvalidcheckl=no
25490 rm -f core conftest.err conftest.$ac_objext \
25491 conftest$ac_exeext conftest.$ac_ext
25492 LIBS=$ac_check_lib_save_LIBS
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
25495 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
25496 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
25501 $as_echo_n "checking for cos in -lm... " >&6; }
25502 if test "${ac_cv_lib_m_cos+set}" = set; then :
25503 $as_echo_n "(cached) " >&6
25505 ac_check_lib_save_LIBS=$LIBS
25507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25508 /* end confdefs.h. */
25510 /* Override any GCC internal prototype to avoid an error.
25511 Use char because int might match the return type of a GCC
25512 builtin and then its argument prototype would still apply. */
25525 if ac_fn_c_try_link "$LINENO"; then :
25526 ac_cv_lib_m_cos=yes
25530 rm -f core conftest.err conftest.$ac_objext \
25531 conftest$ac_exeext conftest.$ac_ext
25532 LIBS=$ac_check_lib_save_LIBS
25534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
25535 $as_echo "$ac_cv_lib_m_cos" >&6; }
25536 if test "x$ac_cv_lib_m_cos" = x""yes; then :
25542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
25543 $as_echo_n "checking for cos in -lm... " >&6; }
25544 if test "${ac_cv_lib_m_cos+set}" = set; then :
25545 $as_echo_n "(cached) " >&6
25547 ac_check_lib_save_LIBS=$LIBS
25549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25550 /* end confdefs.h. */
25552 /* Override any GCC internal prototype to avoid an error.
25553 Use char because int might match the return type of a GCC
25554 builtin and then its argument prototype would still apply. */
25567 if ac_fn_c_try_link "$LINENO"; then :
25568 ac_cv_lib_m_cos=yes
25572 rm -f core conftest.err conftest.$ac_objext \
25573 conftest$ac_exeext conftest.$ac_ext
25574 LIBS=$ac_check_lib_save_LIBS
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
25577 $as_echo "$ac_cv_lib_m_cos" >&6; }
25578 if test "x$ac_cv_lib_m_cos" = x""yes; then :
25588 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
25589 # for constant arguments. Useless!
25590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
25591 $as_echo_n "checking for working alloca.h... " >&6; }
25592 if test "${gmp_cv_header_alloca+set}" = set; then :
25593 $as_echo_n "(cached) " >&6
25595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25596 /* end confdefs.h. */
25597 #include <alloca.h>
25601 char *p = (char *) alloca (2 * sizeof (int));
25606 if ac_fn_c_try_link "$LINENO"; then :
25607 gmp_cv_header_alloca=yes
25609 gmp_cv_header_alloca=no
25611 rm -f core conftest.err conftest.$ac_objext \
25612 conftest$ac_exeext conftest.$ac_ext
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_header_alloca" >&5
25615 $as_echo "$gmp_cv_header_alloca" >&6; }
25616 if test $gmp_cv_header_alloca = yes; then
25618 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
25623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca (via gmp-impl.h)" >&5
25624 $as_echo_n "checking for alloca (via gmp-impl.h)... " >&6; }
25625 if test "${gmp_cv_func_alloca+set}" = set; then :
25626 $as_echo_n "(cached) " >&6
25628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25629 /* end confdefs.h. */
25630 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
25631 #define GMP_NAIL_BITS $GMP_NAIL_BITS
25632 #define GMP_LIMB_BITS 123
25633 $DEFN_LONG_LONG_LIMB
25634 #include "$srcdir/gmp-h.in"
25636 #include "$srcdir/gmp-impl.h"
25641 char *p = (char *) alloca (1);
25646 if ac_fn_c_try_link "$LINENO"; then :
25647 gmp_cv_func_alloca=yes
25649 gmp_cv_func_alloca=no
25651 rm -f core conftest.err conftest.$ac_objext \
25652 conftest$ac_exeext conftest.$ac_ext
25654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_alloca" >&5
25655 $as_echo "$gmp_cv_func_alloca" >&6; }
25656 if test $gmp_cv_func_alloca = yes; then
25658 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
25663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to allocate temporary memory" >&5
25664 $as_echo_n "checking how to allocate temporary memory... " >&6; }
25665 if test "${gmp_cv_option_alloca+set}" = set; then :
25666 $as_echo_n "(cached) " >&6
25668 case $enable_alloca in
25670 gmp_cv_option_alloca=alloca
25673 gmp_cv_option_alloca=malloc-reentrant
25675 reentrant | notreentrant)
25676 case $gmp_cv_func_alloca in
25677 yes) gmp_cv_option_alloca=alloca ;;
25678 *) gmp_cv_option_alloca=malloc-$enable_alloca ;;
25682 gmp_cv_option_alloca=$enable_alloca
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_option_alloca" >&5
25688 $as_echo "$gmp_cv_option_alloca" >&6; }
25692 case $gmp_cv_option_alloca in
25694 if test $gmp_cv_func_alloca = no; then
25695 as_fn_error "--enable-alloca=alloca specified, but alloca not available" "$LINENO" 5
25697 $as_echo "#define WANT_TMP_ALLOCA 1" >>confdefs.h
25699 TAL_OBJECT=tal-reent$U.lo
25702 $as_echo "#define WANT_TMP_REENTRANT 1" >>confdefs.h
25704 TAL_OBJECT=tal-reent$U.lo
25706 malloc-notreentrant)
25707 $as_echo "#define WANT_TMP_NOTREENTRANT 1" >>confdefs.h
25709 TAL_OBJECT=tal-notreent$U.lo
25712 $as_echo "#define WANT_TMP_DEBUG 1" >>confdefs.h
25714 TAL_OBJECT=tal-debug$U.lo
25717 # checks at the start of configure.in should protect us
25718 as_fn_error "unrecognised --enable-alloca=$gmp_cv_option_alloca" "$LINENO" 5
25724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25725 /* end confdefs.h. */
25727 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
25728 #define GMP_NAIL_BITS $GMP_NAIL_BITS
25729 #define GMP_LIMB_BITS 123
25730 $DEFN_LONG_LONG_LIMB
25731 #include "$srcdir/gmp-h.in"
25733 #if ! _GMP_H_HAVE_FILE
25745 if ac_fn_c_try_compile "$LINENO"; then :
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&5
25749 $as_echo "$as_me: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&2;}
25751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25755 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25756 if test "${ac_cv_c_bigendian+set}" = set; then :
25757 $as_echo_n "(cached) " >&6
25759 ac_cv_c_bigendian=unknown
25760 # See if we're dealing with a universal compiler.
25761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25762 /* end confdefs.h. */
25763 #ifndef __APPLE_CC__
25764 not a universal capable compiler
25769 if ac_fn_c_try_compile "$LINENO"; then :
25771 # Check for potential -arch flags. It is not universal unless
25772 # there are at least two -arch flags with different values.
25775 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25776 if test -n "$ac_prev"; then
25778 i?86 | x86_64 | ppc | ppc64)
25779 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25782 ac_cv_c_bigendian=universal
25788 elif test "x$ac_word" = "x-arch"; then
25793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25794 if test $ac_cv_c_bigendian = unknown; then
25795 # See if sys/param.h defines the BYTE_ORDER macro.
25796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25797 /* end confdefs.h. */
25798 #include <sys/types.h>
25799 #include <sys/param.h>
25804 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25805 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25807 bogus endian macros
25814 if ac_fn_c_try_compile "$LINENO"; then :
25815 # It does; now see whether it defined to BIG_ENDIAN or not.
25816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25817 /* end confdefs.h. */
25818 #include <sys/types.h>
25819 #include <sys/param.h>
25824 #if BYTE_ORDER != BIG_ENDIAN
25832 if ac_fn_c_try_compile "$LINENO"; then :
25833 ac_cv_c_bigendian=yes
25835 ac_cv_c_bigendian=no
25837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25841 if test $ac_cv_c_bigendian = unknown; then
25842 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
25843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25844 /* end confdefs.h. */
25845 #include <limits.h>
25850 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
25851 bogus endian macros
25858 if ac_fn_c_try_compile "$LINENO"; then :
25859 # It does; now see whether it defined to _BIG_ENDIAN or not.
25860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25861 /* end confdefs.h. */
25862 #include <limits.h>
25867 #ifndef _BIG_ENDIAN
25875 if ac_fn_c_try_compile "$LINENO"; then :
25876 ac_cv_c_bigendian=yes
25878 ac_cv_c_bigendian=no
25880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25884 if test $ac_cv_c_bigendian = unknown; then
25885 # Compile a test program.
25886 if test "$cross_compiling" = yes; then :
25887 # Try to guess by grepping values from an object file.
25888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25889 /* end confdefs.h. */
25890 short int ascii_mm[] =
25891 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25892 short int ascii_ii[] =
25893 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25894 int use_ascii (int i) {
25895 return ascii_mm[i] + ascii_ii[i];
25897 short int ebcdic_ii[] =
25898 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25899 short int ebcdic_mm[] =
25900 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25901 int use_ebcdic (int i) {
25902 return ebcdic_mm[i] + ebcdic_ii[i];
25909 return use_ascii (foo) == use_ebcdic (foo);
25914 if ac_fn_c_try_compile "$LINENO"; then :
25915 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
25916 ac_cv_c_bigendian=yes
25918 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25919 if test "$ac_cv_c_bigendian" = unknown; then
25920 ac_cv_c_bigendian=no
25922 # finding both strings is unlikely to happen, but who knows?
25923 ac_cv_c_bigendian=unknown
25927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25930 /* end confdefs.h. */
25931 $ac_includes_default
25936 /* Are we little or big endian? From Harbison&Steele. */
25940 char c[sizeof (long int)];
25943 return u.c[sizeof (long int) - 1] == 1;
25949 if ac_fn_c_try_run "$LINENO"; then :
25950 ac_cv_c_bigendian=no
25952 ac_cv_c_bigendian=yes
25954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25955 conftest.$ac_objext conftest.beam conftest.$ac_ext
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
25961 $as_echo "$ac_cv_c_bigendian" >&6; }
25962 case $ac_cv_c_bigendian in #(
25964 $as_echo "#define HAVE_LIMB_BIG_ENDIAN 1" >>confdefs.h
25967 echo "define_not_for_expansion(\`HAVE_LIMB_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
25970 $as_echo "#define HAVE_LIMB_LITTLE_ENDIAN 1" >>confdefs.h
25973 echo "define_not_for_expansion(\`HAVE_LIMB_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
25978 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
25989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking format of \`double' floating point" >&5
25990 $as_echo_n "checking format of \`double' floating point... " >&6; }
25991 if test "${gmp_cv_c_double_format+set}" = set; then :
25992 $as_echo_n "(cached) " >&6
25994 gmp_cv_c_double_format=unknown
25995 cat >conftest.c <<\EOF
26001 extern struct foo foo;
26003 { '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
26005 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' },
26008 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
26009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
26010 (eval $gmp_compile) 2>&5
26012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26013 test $ac_status = 0; }; then
26014 cat >conftest.awk <<\EOF
26021 for (f = 2; f <= NF; f++)
26023 for (i = 0; i < 23; i++)
26027 # match the special begin and end sequences
26028 if (got[0] != "001") continue
26029 if (got[1] != "043") continue
26030 if (got[2] != "105") continue
26031 if (got[3] != "147") continue
26032 if (got[4] != "211") continue
26033 if (got[5] != "253") continue
26034 if (got[6] != "315") continue
26035 if (got[7] != "357") continue
26036 if (got[16] != "376") continue
26037 if (got[17] != "334") continue
26038 if (got[18] != "272") continue
26039 if (got[19] != "230") continue
26040 if (got[20] != "166") continue
26041 if (got[21] != "124") continue
26042 if (got[22] != "062") continue
26043 if (got[23] != "020") continue
26045 saw = " (" got[8] " " got[9] " " got[10] " " got[11] " " got[12] " " got[13] " " got[14] " " got[15] ")"
26047 if (got[8] == "000" && \
26048 got[9] == "000" && \
26049 got[10] == "000" && \
26050 got[11] == "124" && \
26051 got[12] == "064" && \
26052 got[13] == "157" && \
26053 got[14] == "235" && \
26056 print "IEEE little endian"
26061 # Little endian with the two 4-byte halves swapped, as used by ARM
26062 # when the chip is in little endian mode.
26064 if (got[8] == "064" && \
26065 got[9] == "157" && \
26066 got[10] == "235" && \
26067 got[11] == "301" && \
26068 got[12] == "000" && \
26069 got[13] == "000" && \
26070 got[14] == "000" && \
26073 print "IEEE little endian, swapped halves"
26078 # gcc 2.95.4 on one GNU/Linux ARM system was seen generating 000 in
26079 # the last byte, whereas 124 is correct. Not sure where the bug
26080 # actually lies, but a running program didn't seem to get a full
26081 # mantissa worth of working bits.
26083 # We match this case explicitly so we can give a nice result message,
26084 # but we deliberately exclude it from the normal IEEE double setups
26085 # since it's too broken.
26087 if (got[8] == "064" && \
26088 got[9] == "157" && \
26089 got[10] == "235" && \
26090 got[11] == "301" && \
26091 got[12] == "000" && \
26092 got[13] == "000" && \
26093 got[14] == "000" && \
26096 print "bad ARM software floats"
26101 if (got[8] == "301" && \
26102 got[9] == "235" && \
26103 got[10] == "157" && \
26104 got[11] == "064" && \
26105 got[12] == "124" && \
26106 got[13] == "000" && \
26107 got[14] == "000" && \
26110 print "IEEE big endian"
26115 if (got[8] == "353" && \
26116 got[9] == "315" && \
26117 got[10] == "242" && \
26118 got[11] == "171" && \
26119 got[12] == "000" && \
26120 got[13] == "240" && \
26121 got[14] == "000" && \
26129 if (got[8] == "275" && \
26130 got[9] == "301" && \
26131 got[10] == "064" && \
26132 got[11] == "157" && \
26133 got[12] == "000" && \
26134 got[13] == "124" && \
26135 got[14] == "000" && \
26143 if (got[8] == "300" && \
26144 got[9] == "033" && \
26145 got[10] == "353" && \
26146 got[11] == "171" && \
26147 got[12] == "242" && \
26148 got[13] == "240" && \
26149 got[14] == "000" && \
26161 print "unknown", saw
26165 gmp_cv_c_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
26166 case $gmp_cv_c_double_format in
26168 echo "cannot match anything, conftest.$OBJEXT contains" >&5
26169 od -b conftest.$OBJEXT >&5
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
26174 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
26179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_double_format" >&5
26180 $as_echo "$gmp_cv_c_double_format" >&6; }
26184 case $gmp_cv_c_double_format in
26186 $as_echo "#define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1" >>confdefs.h
26189 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
26192 "IEEE little endian")
26193 $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1" >>confdefs.h
26196 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
26199 "IEEE little endian, swapped halves")
26200 $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_SWAPPED 1" >>confdefs.h
26203 $as_echo "#define HAVE_DOUBLE_VAX_D 1" >>confdefs.h
26206 $as_echo "#define HAVE_DOUBLE_VAX_G 1" >>confdefs.h
26209 $as_echo "#define HAVE_DOUBLE_CRAY_CFP 1" >>confdefs.h
26211 "bad ARM software floats")
26214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine float format." >&5
26215 $as_echo "$as_me: WARNING: Could not determine float format." >&2;}
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Conversions to and from \"double\" may be slow." >&5
26217 $as_echo "$as_me: WARNING: Conversions to and from \"double\" may be slow." >&2;}
26220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&5
26221 $as_echo "$as_me: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&2;}
26227 # Reasons for testing:
26228 # alarm - not in mingw
26229 # attr_get - IRIX specific
26230 # clock_gettime - not in glibc 2.2.4, only very recent systems
26231 # cputime - not in glibc
26232 # getsysinfo - OSF specific
26233 # getrusage - not in mingw
26234 # gettimeofday - not in mingw
26235 # mmap - not in mingw, djgpp
26236 # nl_langinfo - X/Open standard only, not in djgpp for instance
26237 # obstack_vprintf - glibc specific
26238 # processor_info - solaris specific
26239 # pstat_getprocessor - HPUX specific (10.x and up)
26240 # raise - an ANSI-ism, though probably almost universal by now
26241 # read_real_time - AIX specific
26242 # sigaction - not in mingw
26243 # sigaltstack - not in mingw, or old AIX (reputedly)
26244 # sigstack - not in mingw
26245 # strerror - not in SunOS
26246 # strnlen - glibc extension (some other systems too)
26247 # syssgi - IRIX specific
26248 # times - not in mingw
26250 # clock_gettime is in librt on *-*-osf5.1. We could look for it
26251 # there, but that's not worth bothering with unless it has a decent
26252 # resolution (in a quick test clock_getres said only 1 millisecond).
26254 # AC_FUNC_STRNLEN is not used because we don't want the AC_LIBOBJ
26255 # replacement setups it gives. It detects a faulty strnlen on AIX, but
26256 # missing out on that test is ok since our only use of strnlen is in
26257 # __gmp_replacement_vsnprintf which is not required on AIX since it has a
26260 for ac_func in alarm attr_get clock clock_gettime 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
26262 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26263 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26264 eval as_val=\$$as_ac_var
26265 if test "x$as_val" = x""yes; then :
26266 cat >>confdefs.h <<_ACEOF
26267 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26275 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
26276 if test "x$ac_cv_func_vsnprintf" = x""yes; then :
26277 gmp_vsnprintf_exists=yes
26279 gmp_vsnprintf_exists=no
26282 if test "$gmp_vsnprintf_exists" = no; then
26283 gmp_cv_func_vsnprintf=no
26285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf works" >&5
26286 $as_echo_n "checking whether vsnprintf works... " >&6; }
26287 if test "${gmp_cv_func_vsnprintf+set}" = set; then :
26288 $as_echo_n "(cached) " >&6
26290 gmp_cv_func_vsnprintf=yes
26291 for i in 'return check ("hello world");' 'int n; return check ("%nhello world", &n);'; do
26292 if test "$cross_compiling" = yes; then :
26293 gmp_cv_func_vsnprintf=probably; break
26295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26296 /* end confdefs.h. */
26298 #include <string.h> /* for strcmp */
26299 #include <stdio.h> /* for vsnprintf */
26302 #include <stdarg.h>
26304 #include <varargs.h>
26309 check (const char *fmt, ...)
26315 static char buf[128];
26320 va_start (ap, fmt);
26324 fmt = va_arg (ap, char *);
26327 ret = vsnprintf (buf, 4, fmt, ap);
26329 if (strcmp (buf, "hel") != 0)
26332 /* allowed return values */
26333 if (ret != -1 && ret != 3 && ret != 11)
26346 if ac_fn_c_try_run "$LINENO"; then :
26349 gmp_cv_func_vsnprintf=no; break
26351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26352 conftest.$ac_objext conftest.beam conftest.$ac_ext
26358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_vsnprintf" >&5
26359 $as_echo "$gmp_cv_func_vsnprintf" >&6; }
26360 if test "$gmp_cv_func_vsnprintf" = probably; then
26361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&5
26362 $as_echo "$as_me: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&2;}
26364 if test "$gmp_cv_func_vsnprintf" != no; then
26366 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
26371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sscanf needs writable input" >&5
26372 $as_echo_n "checking whether sscanf needs writable input... " >&6; }
26373 if test "${gmp_cv_func_sscanf_writable_input+set}" = set; then :
26374 $as_echo_n "(cached) " >&6
26377 *-*-hpux9 | *-*-hpux9.*)
26378 gmp_cv_func_sscanf_writable_input=yes ;;
26379 *) gmp_cv_func_sscanf_writable_input=no ;;
26383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_sscanf_writable_input" >&5
26384 $as_echo "$gmp_cv_func_sscanf_writable_input" >&6; }
26385 case $gmp_cv_func_sscanf_writable_input in
26387 $as_echo "#define SSCANF_WRITABLE_INPUT 1" >>confdefs.h
26390 *) as_fn_error "unrecognised \$gmp_cv_func_sscanf_writable_input" "$LINENO" 5 ;;
26394 # Reasons for checking:
26395 # pst_processor psp_iticksperclktick - not in hpux 9
26397 ac_fn_c_check_member "$LINENO" "struct pst_processor" "psp_iticksperclktick" "ac_cv_member_struct_pst_processor_psp_iticksperclktick" "#include <sys/pstat.h>
26399 if test "x$ac_cv_member_struct_pst_processor_psp_iticksperclktick" = x""yes; then :
26401 $as_echo "#define HAVE_PSP_ITICKSPERCLKTICK 1" >>confdefs.h
26406 # C++ tests, when required
26408 if test $enable_cxx = yes; then
26410 ac_cpp='$CXXCPP $CPPFLAGS'
26411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26416 # Reasons for testing:
26417 # <sstream> - not in g++ 2.95.2
26418 # std::locale - not in g++ 2.95.4
26421 for ac_header in sstream
26423 ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default"
26424 if test "x$ac_cv_header_sstream" = x""yes; then :
26425 cat >>confdefs.h <<_ACEOF
26426 #define HAVE_SSTREAM 1
26433 ac_fn_cxx_check_type "$LINENO" "std::locale" "ac_cv_type_std__locale" "#include <locale>
26435 if test "x$ac_cv_type_std__locale" = x""yes; then :
26437 cat >>confdefs.h <<_ACEOF
26438 #define HAVE_STD__LOCALE 1
26446 ac_cpp='$CPP $CPPFLAGS'
26447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26454 # Pick the correct source files in $path and link them to mpn/.
26455 # $gmp_mpn_functions lists all functions we need.
26457 # The rule is to find a file with the function name and a .asm, .S,
26458 # .s, or .c extension. Certain multi-function files with special names
26459 # can provide some functions too. (mpn/Makefile.am passes
26460 # -DOPERATION_<func> to get them to generate the right code.)
26462 # Note: $gmp_mpn_functions must have mod_1 before pre_mod_1 so the former
26463 # can optionally provide the latter as an extra entrypoint. Likewise
26464 # divrem_1 and pre_divrem_1.
26466 gmp_mpn_functions_optional="umul udiv \
26467 invert_limb sqr_diagonal \
26468 mul_2 mul_3 mul_4 \
26469 addmul_2 addmul_3 addmul_4 addmul_5 addmul_6 addmul_7 addmul_8 \
26470 addlsh1_n sublsh1_n rsblsh1_n rsh1add_n rsh1sub_n \
26471 addlsh2_n sublsh2_n rsblsh2_n \
26472 addlsh_n sublsh_n rsblsh_n \
26473 add_n_sub_n addaddmul_1msb0"
26475 gmp_mpn_functions="$extra_functions \
26476 add add_1 add_n sub sub_1 sub_n neg com mul_1 addmul_1 \
26477 submul_1 lshift rshift dive_1 diveby3 divis divrem divrem_1 divrem_2 \
26478 fib2_ui mod_1 mod_34lsub1 mode1o pre_divrem_1 pre_mod_1 dump \
26479 mod_1_1 mod_1_2 mod_1_3 mod_1_4 lshiftc \
26480 mul mul_fft mul_n sqr mul_basecase sqr_basecase nussbaumer_mul \
26481 random random2 pow_1 \
26482 rootrem sqrtrem get_str set_str scan0 scan1 popcount hamdist cmp \
26484 gcd_1 gcd gcdext_1 gcdext gcd_lehmer gcd_subdiv_step \
26485 gcdext_lehmer gcdext_subdiv_step \
26486 div_q tdiv_qr jacbase get_d \
26487 matrix22_mul hgcd2 hgcd mullo_n mullo_basecase \
26488 toom22_mul toom32_mul toom42_mul toom52_mul toom62_mul \
26489 toom33_mul toom43_mul toom53_mul toom63_mul \
26491 toom6h_mul toom6_sqr toom8h_mul toom8_sqr \
26492 toom_couple_handling \
26493 toom2_sqr toom3_sqr toom4_sqr \
26494 toom_eval_dgr3_pm1 toom_eval_dgr3_pm2 \
26495 toom_eval_pm1 toom_eval_pm2 toom_eval_pm2exp toom_eval_pm2rexp \
26496 toom_interpolate_5pts toom_interpolate_6pts toom_interpolate_7pts \
26497 toom_interpolate_8pts toom_interpolate_12pts toom_interpolate_16pts \
26498 invertappr invert binvert mulmod_bnm1 sqrmod_bnm1 \
26499 sbpi1_div_q sbpi1_div_qr sbpi1_divappr_q \
26500 dcpi1_div_q dcpi1_div_qr dcpi1_divappr_q \
26501 mu_div_qr mu_divappr_q mu_div_q \
26503 sbpi1_bdiv_q sbpi1_bdiv_qr \
26504 dcpi1_bdiv_q dcpi1_bdiv_qr \
26505 mu_bdiv_q mu_bdiv_qr \
26507 divexact bdiv_dbm1c redc_1 redc_2 redc_n powm powlo powm_sec subcnd_n \
26508 redc_1_sec trialdiv remove \
26509 and_n andn_n nand_n ior_n iorn_n nior_n xor_n xnor_n \
26511 $gmp_mpn_functions_optional"
26515 # the list of all object files used by mpn/Makefile.in and the
26516 # top-level Makefile.in, respectively
26518 mpn_objs_in_libgmp=
26520 # links from the sources, to be removed by "make distclean"
26524 # mpn_relative_top_srcdir is $top_srcdir, but for use from within the mpn
26525 # build directory. If $srcdir is relative then we use a relative path too,
26526 # so the two trees can be moved together.
26528 [\\/]* | ?:[\\/]*) # absolute, as per autoconf
26529 mpn_relative_top_srcdir=$srcdir ;;
26531 mpn_relative_top_srcdir=../$srcdir ;;
26539 # Fat binary setups.
26541 # We proceed through each $fat_path directory, and look for $fat_function
26542 # routines there. Those found are incorporated in the build by generating a
26543 # little mpn/<foo>.asm or mpn/<foo>.c file in the build directory, with
26544 # suitable function renaming, and adding that to $mpn_objects (the same as a
26545 # normal mpn file).
26547 # fat.h is generated with macros to let internal calls to each $fat_function
26548 # go directly through __gmpn_cpuvec, plus macros and declarations helping to
26549 # setup that structure, on a per-directory basis ready for
26550 # mpn/<cpu>/fat/fat.c.
26552 # fat.h includes thresholds listed in $fat_thresholds, extracted from
26553 # gmp-mparam.h in each directory. An overall maximum for each threshold is
26554 # established, for use in making fixed size arrays of temporary space.
26555 # (Eg. MUL_TOOM33_THRESHOLD_LIMIT used by mpn/generic/mul.c.)
26557 # It'd be possible to do some of this manually, but when there's more than a
26558 # few functions and a few directories it becomes very tedious, and very
26559 # prone to having some routine accidentally omitted. On that basis it seems
26560 # best to automate as much as possible, even if the code to do so is a bit
26564 if test -n "$fat_path"; then
26565 # Usually the mpn build directory is created with mpn/Makefile
26566 # instantiation, but we want to write to it sooner.
26567 mkdir mpn 2>/dev/null
26569 echo "/* fat.h - setups for fat binaries." >fat.h
26570 echo " Generated by configure - DO NOT EDIT. */" >>fat.h
26573 $as_echo "#define WANT_FAT_BINARY 1" >>confdefs.h
26576 echo 'define(<WANT_FAT_BINARY>, <yes>)' >>$gmp_tmpconfigm4
26579 # Don't want normal copies of fat functions
26580 for tmp_fn in $fat_functions; do
26581 remove_from_list_tmp=
26582 for remove_from_list_i in $gmp_mpn_functions; do
26583 if test $remove_from_list_i = $tmp_fn; then :;
26585 remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i"
26588 gmp_mpn_functions=$remove_from_list_tmp
26590 remove_from_list_tmp=
26591 for remove_from_list_i in $gmp_mpn_functions_optional; do
26592 if test $remove_from_list_i = $tmp_fn; then :;
26594 remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i"
26597 gmp_mpn_functions_optional=$remove_from_list_tmp
26601 for tmp_fn in $fat_functions; do
26603 dive_1) tmp_fbase=divexact_1 ;;
26604 diveby3) tmp_fbase=divexact_by3c ;;
26605 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
26606 mode1o) tmp_fbase=modexact_1c_odd ;;
26607 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
26608 *) tmp_fbase=$tmp_fn ;;
26612 #ifndef OPERATION_$tmp_fn
26613 #undef mpn_$tmp_fbase
26614 #define mpn_$tmp_fbase (*__gmpn_cpuvec.$tmp_fbase)
26616 DECL_$tmp_fbase (__MPN(${tmp_fbase}_init));" >>fat.h
26617 # encourage various macros to use fat functions
26618 cat >>confdefs.h <<_ACEOF
26619 #define HAVE_NATIVE_mpn_$tmp_fbase 1
26625 echo "/* variable thresholds */" >>fat.h
26626 for tmp_tn in $fat_thresholds; do
26627 echo "#undef $tmp_tn" >>fat.h
26628 echo "#define $tmp_tn CPUVEC_THRESHOLD (`echo $tmp_tn | tr [A-Z] [a-z]`)" >>fat.h
26632 /* Copy all fields into __gmpn_cpuvec.
26633 memcpy is not used because it might operate byte-wise (depending on its
26634 implementation), and we need the function pointer writes to be atomic.
26635 "volatile" discourages the compiler from trying to optimize this. */
26636 #define CPUVEC_INSTALL(vec) \\
26638 volatile struct cpuvec_t *p = &__gmpn_cpuvec; \\" >>fat.h
26639 for tmp_fn in $fat_functions; do
26641 dive_1) tmp_fbase=divexact_1 ;;
26642 diveby3) tmp_fbase=divexact_by3c ;;
26643 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
26644 mode1o) tmp_fbase=modexact_1c_odd ;;
26645 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
26646 *) tmp_fbase=$tmp_fn ;;
26649 echo " p->$tmp_fbase = vec.$tmp_fbase; \\" >>fat.h
26651 for tmp_tn in $fat_thresholds; do
26652 tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]`
26653 echo " p->$tmp_field_name = vec.$tmp_field_name; \\" >>fat.h
26655 echo " } while (0)" >>fat.h
26658 /* A helper to check all fields are filled. */
26659 #define ASSERT_CPUVEC(vec) \\
26661 for tmp_fn in $fat_functions; do
26663 dive_1) tmp_fbase=divexact_1 ;;
26664 diveby3) tmp_fbase=divexact_by3c ;;
26665 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
26666 mode1o) tmp_fbase=modexact_1c_odd ;;
26667 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
26668 *) tmp_fbase=$tmp_fn ;;
26671 echo " ASSERT (vec.$tmp_fbase != NULL); \\" >>fat.h
26673 for tmp_tn in $fat_thresholds; do
26674 tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]`
26675 echo " ASSERT (vec.$tmp_field_name != 0); \\" >>fat.h
26677 echo " } while (0)" >>fat.h
26680 /* Call ITERATE(field) for each fat threshold field. */
26681 #define ITERATE_FAT_THRESHOLDS() \\
26683 for tmp_tn in $fat_thresholds; do
26684 tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]`
26685 echo " ITERATE ($tmp_tn, $tmp_field_name); \\" >>fat.h
26687 echo " } while (0)" >>fat.h
26689 for tmp_dir in $fat_path; do
26693 tmp_suffix=`echo $tmp_dir | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
26695 # In order to keep names unique on a DOS 8.3 filesystem, use a prefix
26696 # (rather than a suffix) for the generated file names, and abbreviate.
26697 case $tmp_suffix in
26698 pentium) tmp_prefix=p ;;
26699 pentium_mmx) tmp_prefix=pm ;;
26700 p6_mmx) tmp_prefix=p2 ;;
26701 p6_p3mmx) tmp_prefix=p3 ;;
26702 pentium4) tmp_prefix=p4 ;;
26703 pentium4_mmx) tmp_prefix=p4m ;;
26704 pentium4_sse2) tmp_prefix=p4s ;;
26705 k6_mmx) tmp_prefix=k6m ;;
26706 k6_k62mmx) tmp_prefix=k62 ;;
26707 k7_mmx) tmp_prefix=k7m ;;
26708 *) tmp_prefix=$tmp_suffix ;;
26711 # Extract desired thresholds from gmp-mparam.h file in this directory,
26713 tmp_mparam=$srcdir/mpn/$tmp_dir/gmp-mparam.h
26714 if test -f $tmp_mparam; then
26715 for tmp_tn in $fat_thresholds; do
26716 tmp_thresh=`sed -n "s/^#define $tmp_tn[ ]*\\([0-9][0-9]*\\).*$/\\1/p" $tmp_mparam`
26717 if test -n "$tmp_thresh"; then
26718 THRESH_ASM_SETUP="${THRESH_ASM_SETUP}define($tmp_tn,$tmp_thresh)
26720 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.`echo $tmp_tn | tr [A-Z] [a-z]` = $tmp_thresh; \\
26722 eval tmp_limit=\$${tmp_tn}_LIMIT
26723 if test -z "$tmp_limit"; then
26726 if test $tmp_thresh -gt $tmp_limit; then
26727 eval ${tmp_tn}_LIMIT=$tmp_thresh
26733 for tmp_fn in $fat_functions; do
26734 # functions that can be provided by multi-function files
26737 add_n|sub_n) tmp_mulfunc="aors_n" ;;
26738 addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
26739 popcount|hamdist) tmp_mulfunc="popham" ;;
26740 and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
26741 tmp_mulfunc="logops_n" ;;
26742 lshift|rshift) tmp_mulfunc="lorrshift";;
26744 tmp_mulfunc="aorslsh1_n aorrlsh1_n";;
26746 tmp_mulfunc="aorslsh1_n sorrlsh1_n";;
26748 tmp_mulfunc="aorrlsh1_n sorrlsh1_n";;
26750 tmp_mulfunc="aorslsh2_n aorrlsh2_n";;
26752 tmp_mulfunc="aorslsh2_n sorrlsh2_n";;
26754 tmp_mulfunc="aorrlsh2_n sorrlsh2_n";;
26756 tmp_mulfunc="aorslsh_n aorrlsh_n";;
26758 tmp_mulfunc="aorslsh_n sorrlsh_n";;
26760 tmp_mulfunc="aorrlsh_n sorrlsh_n";;
26761 rsh1add_n|rsh1sub_n)
26762 tmp_mulfunc="rsh1aors_n";;
26766 for tmp_base in $tmp_fn $tmp_mulfunc; do
26767 for tmp_ext in asm S s c; do
26768 tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
26769 if test -f $tmp_file; then
26771 mpn_objects="$mpn_objects ${tmp_prefix}_$tmp_fn.lo"
26772 mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/${tmp_prefix}_$tmp_fn.lo"
26775 dive_1) tmp_fbase=divexact_1 ;;
26776 diveby3) tmp_fbase=divexact_by3c ;;
26777 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
26778 mode1o) tmp_fbase=modexact_1c_odd ;;
26779 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
26780 *) tmp_fbase=$tmp_fn ;;
26784 # carry-in variant, eg. divrem_1c or modexact_1c_odd
26786 *_1*) tmp_fbasec=`echo $tmp_fbase | sed 's/_1/_1c/'` ;;
26787 *) tmp_fbasec=${tmp_fbase}c ;;
26790 # Create a little file doing an include from srcdir. The
26791 # OPERATION and renamings aren't all needed all the time, but
26792 # they don't hurt if unused.
26794 # FIXME: Should generate these via config.status commands.
26795 # Would need them all in one AC_CONFIG_COMMANDS though, since
26796 # that macro doesn't accept a set of separate commands generated
26801 # hide the d-n-l from autoconf's error checking
26803 echo "$tmp_d_n_l mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
26804 $tmp_d_n_l Generated by configure - DO NOT EDIT.
26806 define(OPERATION_$tmp_fn)
26807 define(__gmpn_$tmp_fbase, __gmpn_${tmp_fbase}_$tmp_suffix)
26808 define(__gmpn_$tmp_fbasec,__gmpn_${tmp_fbasec}_${tmp_suffix})
26809 define(__gmpn_preinv_${tmp_fbase},__gmpn_preinv_${tmp_fbase}_${tmp_suffix})
26811 $tmp_d_n_l For k6 and k7 gcd_1 calling their corresponding mpn_modexact_1_odd
26812 ifdef(\`__gmpn_modexact_1_odd',,
26813 \`define(__gmpn_modexact_1_odd,__gmpn_modexact_1_odd_${tmp_suffix})')
26816 include($mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.asm)
26817 " >mpn/${tmp_prefix}_$tmp_fn.asm
26820 echo "/* mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
26821 Generated by configure - DO NOT EDIT. */
26823 #define OPERATION_$tmp_fn 1
26824 #define __gmpn_$tmp_fbase __gmpn_${tmp_fbase}_$tmp_suffix
26825 #define __gmpn_$tmp_fbasec __gmpn_${tmp_fbasec}_${tmp_suffix}
26826 #define __gmpn_preinv_${tmp_fbase} __gmpn_preinv_${tmp_fbase}_${tmp_suffix}
26828 #include \"$mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.c\"
26829 " >mpn/${tmp_prefix}_$tmp_fn.c
26833 # Prototype, and append to CPUVEC_SETUP for this directory.
26834 echo "DECL_$tmp_fbase (__gmpn_${tmp_fbase}_$tmp_suffix);" >>fat.h
26835 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.$tmp_fbase = __gmpn_${tmp_fbase}_${tmp_suffix}; \\
26837 # Ditto for any preinv variant (preinv_divrem_1, preinv_mod_1).
26838 if grep "^PROLOGUE(mpn_preinv_$tmp_fn)" $tmp_file >/dev/null; then
26839 echo "DECL_preinv_$tmp_fbase (__gmpn_preinv_${tmp_fbase}_$tmp_suffix);" >>fat.h
26840 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.preinv_$tmp_fbase = __gmpn_preinv_${tmp_fbase}_${tmp_suffix}; \\
26848 # Emit CPUVEC_SETUP for this directory
26850 echo "#define CPUVEC_SETUP_$tmp_suffix \\" >>fat.h
26851 echo " do { \\" >>fat.h
26852 echo "$CPUVEC_SETUP } while (0)" >>fat.h
26855 # Emit threshold limits
26857 for tmp_tn in $fat_thresholds; do
26858 eval tmp_limit=\$${tmp_tn}_LIMIT
26859 echo "#define ${tmp_tn}_LIMIT $tmp_limit" >>fat.h
26864 # Normal binary setups.
26867 for tmp_ext in asm S s c; do
26868 eval found_$tmp_ext=no
26871 for tmp_fn in $gmp_mpn_functions; do
26872 for tmp_ext in asm S s c; do
26873 test "$no_create" = yes || rm -f mpn/$tmp_fn.$tmp_ext
26876 # mpn_preinv_divrem_1 might have been provided by divrem_1.asm, likewise
26877 # mpn_preinv_mod_1 by mod_1.asm.
26880 if test "$HAVE_NATIVE_mpn_preinv_divrem_1" = yes; then continue; fi ;;
26882 if test "$HAVE_NATIVE_mpn_preinv_mod_1" = yes; then continue; fi ;;
26885 # functions that can be provided by multi-function files
26888 add_n|sub_n) tmp_mulfunc="aors_n" ;;
26889 addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
26890 popcount|hamdist) tmp_mulfunc="popham" ;;
26891 and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
26892 tmp_mulfunc="logops_n" ;;
26893 lshift|rshift) tmp_mulfunc="lorrshift";;
26895 tmp_mulfunc="aorslsh1_n aorrlsh1_n";;
26897 tmp_mulfunc="aorslsh1_n sorrlsh1_n";;
26899 tmp_mulfunc="aorrlsh1_n sorrlsh1_n";;
26901 tmp_mulfunc="aorslsh2_n aorrlsh2_n";;
26903 tmp_mulfunc="aorslsh2_n sorrlsh2_n";;
26905 tmp_mulfunc="aorrlsh2_n sorrlsh2_n";;
26907 tmp_mulfunc="aorslsh_n aorrlsh_n";;
26909 tmp_mulfunc="aorslsh_n sorrlsh_n";;
26911 tmp_mulfunc="aorrlsh_n sorrlsh_n";;
26912 rsh1add_n|rsh1sub_n)
26913 tmp_mulfunc="rsh1aors_n";;
26918 for tmp_dir in $path; do
26919 for tmp_base in $tmp_fn $tmp_mulfunc; do
26920 for tmp_ext in asm S s c; do
26921 tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
26922 if test -f $tmp_file; then
26924 # For a nails build, check if the file supports our nail bits.
26925 # Generic code always supports all nails.
26927 # FIXME: When a multi-function file is selected to provide one of
26928 # the nails-neutral routines, like logops_n for and_n, the
26929 # PROLOGUE grepping will create HAVE_NATIVE_mpn_<foo> defines for
26930 # all functions in that file, even if they haven't all been
26931 # nailified. Not sure what to do about this, it's only really a
26932 # problem for logops_n, and it's not too terrible to insist those
26933 # get nailified always.
26935 if test $GMP_NAIL_BITS != 0 && test $tmp_dir != generic; then
26937 and_n | ior_n | xor_n | andn_n | \
26939 popcount | hamdist | \
26940 udiv | udiv_w_sdiv | umul | \
26941 cntlz | invert_limb)
26942 # these operations are either unaffected by nails or defined
26943 # to operate on full limbs
26946 nails=`sed -n 's/^[ ]*NAILS_SUPPORT(\(.*\))/\1/p' $tmp_file `
26947 for n in $nails; do
26950 n_start=`echo "$n" | sed -n 's/\(.*\)-.*/\1/p'`
26951 n_end=`echo "$n" | sed -n 's/.*-\(.*\)/\1/p'`
26958 if test $GMP_NAIL_BITS -ge $n_start && test $GMP_NAIL_BITS -le $n_end; then
26963 if test $found != yes; then
26971 eval found_$tmp_ext=yes
26973 if test $tmp_ext = c; then
26979 mpn_objects="$mpn_objects $tmp_fn$tmp_u.lo"
26980 mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/$tmp_fn$tmp_u.lo"
26981 ac_config_links="$ac_config_links mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext"
26983 gmp_srclinks="$gmp_srclinks mpn/$tmp_fn.$tmp_ext"
26985 # Duplicate AC_DEFINEs are harmless, so it doesn't matter
26986 # that multi-function files get grepped here repeatedly.
26987 # The PROLOGUE pattern excludes the optional second parameter.
26989 sed -n 's/^[ ]*MULFUNC_PROLOGUE(\(.*\))/\1/p' $tmp_file ;
26990 sed -n 's/^[ ]*PROLOGUE(\([^,]*\).*)/\1/p' $tmp_file
26992 for gmp_tmp in $gmp_ep; do
26993 cat >>confdefs.h <<_ACEOF
26994 #define HAVE_NATIVE_$gmp_tmp 1
26997 eval HAVE_NATIVE_$gmp_tmp=yes
27001 sqr_basecase) sqr_basecase_source=$tmp_file ;;
27007 if test $found = yes; then break ; fi
27009 if test $found = yes; then break ; fi
27012 if test $found = no; then
27013 for tmp_optional in $gmp_mpn_functions_optional; do
27014 if test $tmp_optional = $tmp_fn; then
27018 if test $found = no; then
27019 as_fn_error "no version of $tmp_fn found in path: $path" "$LINENO" 5
27024 # All cycle counters are .asm files currently
27025 if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
27033 # Don't demand an m4 unless it's actually needed.
27034 if test $found_asm = yes; then
27036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable m4" >&5
27037 $as_echo_n "checking for suitable m4... " >&6; }
27038 if test "${gmp_cv_prog_m4+set}" = set; then :
27039 $as_echo_n "(cached) " >&6
27041 if test -n "$M4"; then
27042 gmp_cv_prog_m4="$M4"
27044 cat >conftest.m4 <<\EOF
27045 define(dollarhash,``$#'')ifelse(dollarhash(x),1,`define(t1,Y)',
27046 ``bad: $# not supported (SunOS /usr/bin/m4)
27047 '')ifelse(eval(89),89,`define(t2,Y)',
27048 `bad: eval() doesnt support 8 or 9 in a constant (OpenBSD 2.6 m4)
27049 ')ifelse(t1`'t2,YY,`good
27052 echo "trying m4" >&5
27053 gmp_tmp_val=`(m4 conftest.m4) 2>&5`
27054 echo "$gmp_tmp_val" >&5
27055 if test "$gmp_tmp_val" = good; then
27056 gmp_cv_prog_m4="m4"
27058 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
27059 ac_dummy="$PATH:/usr/5bin"
27060 for ac_dir in $ac_dummy; do
27061 test -z "$ac_dir" && ac_dir=.
27062 echo "trying $ac_dir/m4" >&5
27063 gmp_tmp_val=`($ac_dir/m4 conftest.m4) 2>&5`
27064 echo "$gmp_tmp_val" >&5
27065 if test "$gmp_tmp_val" = good; then
27066 gmp_cv_prog_m4="$ac_dir/m4"
27071 if test -z "$gmp_cv_prog_m4"; then
27072 as_fn_error "No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." "$LINENO" 5
27078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_m4" >&5
27079 $as_echo "$gmp_cv_prog_m4" >&6; }
27080 M4="$gmp_cv_prog_m4"
27084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if m4wrap produces spurious output" >&5
27085 $as_echo_n "checking if m4wrap produces spurious output... " >&6; }
27086 if test "${gmp_cv_m4_m4wrap_spurious+set}" = set; then :
27087 $as_echo_n "(cached) " >&6
27089 # hide the d-n-l from autoconf's error checking
27091 cat >conftest.m4 <<EOF
27092 changequote({,})define(x,)m4wrap({x})$tmp_d_n_l
27094 echo test input is >&5
27095 cat conftest.m4 >&5
27096 tmp_chars=`$M4 conftest.m4 | wc -c`
27097 echo produces $tmp_chars chars output >&5
27099 if test $tmp_chars = 0; then
27100 gmp_cv_m4_m4wrap_spurious=no
27102 gmp_cv_m4_m4wrap_spurious=yes
27106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_m4_m4wrap_spurious" >&5
27107 $as_echo "$gmp_cv_m4_m4wrap_spurious" >&6; }
27109 echo "define(<M4WRAP_SPURIOUS>,<$gmp_cv_m4_m4wrap_spurious>)" >> $gmp_tmpconfigm4
27113 # It's unclear why this m4-not-needed stuff was ever done.
27114 # if test -z "$M4" ; then
27119 # Only do the GMP_ASM checks if there's a .S or .asm wanting them.
27120 if test $found_asm = no && test $found_S = no; then
27121 gmp_asm_syntax_testing=no
27124 if test "$gmp_asm_syntax_testing" != no; then
27125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to text section" >&5
27126 $as_echo_n "checking how to switch to text section... " >&6; }
27127 if test "${gmp_cv_asm_text+set}" = set; then :
27128 $as_echo_n "(cached) " >&6
27130 for i in ".text" ".code" ".csect .text[PR]"; do
27131 echo "trying $i" >&5
27132 cat >conftest.s <<EOF
27135 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27137 (eval $gmp_assemble) 2>&5
27139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27140 test $ac_status = 0; }; then
27141 cat conftest.out >&5
27146 cat conftest.out >&5
27147 echo "configure: failed program was:" >&5
27154 if test -z "$gmp_cv_asm_text"; then
27155 as_fn_error "Cannot determine text section directive" "$LINENO" 5
27159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_text" >&5
27160 $as_echo "$gmp_cv_asm_text" >&6; }
27161 echo "define(<TEXT>, <$gmp_cv_asm_text>)" >> $gmp_tmpconfigm4
27163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to data section" >&5
27164 $as_echo_n "checking how to switch to data section... " >&6; }
27165 if test "${gmp_cv_asm_data+set}" = set; then :
27166 $as_echo_n "(cached) " >&6
27169 *-*-aix*) gmp_cv_asm_data=".csect .data[RW]" ;;
27170 *) gmp_cv_asm_data=".data" ;;
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_data" >&5
27175 $as_echo "$gmp_cv_asm_data" >&6; }
27176 echo "define(<DATA>, <$gmp_cv_asm_data>)" >> $gmp_tmpconfigm4
27179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler label suffix" >&5
27180 $as_echo_n "checking for assembler label suffix... " >&6; }
27181 if test "${gmp_cv_asm_label_suffix+set}" = set; then :
27182 $as_echo_n "(cached) " >&6
27184 gmp_cv_asm_label_suffix=unknown
27185 for i in "" ":"; do
27186 echo "trying $i" >&5
27187 cat >conftest.s <<EOF
27191 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27193 (eval $gmp_assemble) 2>&5
27195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27196 test $ac_status = 0; }; then
27197 cat conftest.out >&5
27198 gmp_cv_asm_label_suffix=$i
27202 cat conftest.out >&5
27203 echo "configure: failed program was:" >&5
27205 cat conftest.out >&5
27210 if test "$gmp_cv_asm_label_suffix" = "unknown"; then
27211 as_fn_error "Cannot determine label suffix" "$LINENO" 5
27215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_label_suffix" >&5
27216 $as_echo "$gmp_cv_asm_label_suffix" >&6; }
27217 echo "define(<LABEL_SUFFIX>, <$gmp_cv_asm_label_suffix>)" >> $gmp_tmpconfigm4
27220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global directive" >&5
27221 $as_echo_n "checking for assembler global directive... " >&6; }
27222 if test "${gmp_cv_asm_globl+set}" = set; then :
27223 $as_echo_n "(cached) " >&6
27226 hppa*-*-*) gmp_cv_asm_globl=.export ;;
27227 ia64*-*-* | itanium-*-* | itanium2-*-*) gmp_cv_asm_globl=.global ;;
27228 *) gmp_cv_asm_globl=.globl ;;
27232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_globl" >&5
27233 $as_echo "$gmp_cv_asm_globl" >&6; }
27234 echo "define(<GLOBL>, <$gmp_cv_asm_globl>)" >> $gmp_tmpconfigm4
27237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global directive attribute" >&5
27238 $as_echo_n "checking for assembler global directive attribute... " >&6; }
27239 if test "${gmp_cv_asm_globl_attr+set}" = set; then :
27240 $as_echo_n "(cached) " >&6
27242 case $gmp_cv_asm_globl in
27243 .export) gmp_cv_asm_globl_attr=",entry" ;;
27244 *) gmp_cv_asm_globl_attr="" ;;
27248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_globl_attr" >&5
27249 $as_echo "$gmp_cv_asm_globl_attr" >&6; }
27250 echo "define(<GLOBL_ATTR>, <$gmp_cv_asm_globl_attr>)" >> $gmp_tmpconfigm4
27253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if globals are prefixed by underscore" >&5
27254 $as_echo_n "checking if globals are prefixed by underscore... " >&6; }
27255 if test "${gmp_cv_asm_underscore+set}" = set; then :
27256 $as_echo_n "(cached) " >&6
27258 gmp_cv_asm_underscore="unknown"
27259 cat >conftest.c <<EOF
27262 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5"
27263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
27264 (eval $gmp_compile) 2>&5
27266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27267 test $ac_status = 0; }; then
27268 $NM conftest.$OBJEXT >conftest.out
27269 if grep _gurkmacka conftest.out >/dev/null; then
27270 gmp_cv_asm_underscore=yes
27271 elif grep gurkmacka conftest.out >/dev/null; then
27272 gmp_cv_asm_underscore=no
27274 echo "configure: $NM doesn't have gurkmacka:" >&5
27275 cat conftest.out >&5
27278 echo "configure: failed program was:" >&5
27284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_underscore" >&5
27285 $as_echo "$gmp_cv_asm_underscore" >&6; }
27286 case $gmp_cv_asm_underscore in
27289 echo 'define(<GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
27293 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
27297 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Cannot determine global symbol prefix." >&5
27299 $as_echo "$as_me: WARNING: | Cannot determine global symbol prefix." >&2;}
27300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $NM output doesn't contain a global data symbol." >&5
27301 $as_echo "$as_me: WARNING: | $NM output doesn't contain a global data symbol." >&2;}
27302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Will proceed with no underscore." >&5
27303 $as_echo "$as_me: WARNING: | Will proceed with no underscore." >&2;}
27304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | If this is wrong then you'll get link errors referring" >&5
27305 $as_echo "$as_me: WARNING: | If this is wrong then you'll get link errors referring" >&2;}
27306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | to ___gmpn_add_n (note three underscores)." >&5
27307 $as_echo "$as_me: WARNING: | to ___gmpn_add_n (note three underscores)." >&2;}
27308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | In this case do a fresh build with an override," >&5
27309 $as_echo "$as_me: WARNING: | In this case do a fresh build with an override," >&2;}
27310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&5
27311 $as_echo "$as_me: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&2;}
27312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
27313 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
27315 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
27324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to read-only data section" >&5
27325 $as_echo_n "checking how to switch to read-only data section... " >&6; }
27326 if test "${gmp_cv_asm_rodata+set}" = set; then :
27327 $as_echo_n "(cached) " >&6
27331 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | x86_64-*-*)
27332 gmp_cv_asm_rodata="$gmp_cv_asm_data" ;;
27334 gmp_cv_asm_rodata="$gmp_cv_asm_text" ;;
27337 cat >conftest.c <<EOF
27338 extern const int foo[]; /* Suppresses C++'s suppression of foo */
27339 const int foo[] = {1,2,3};
27341 echo "Test program:" >&5
27343 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
27344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
27345 (eval $gmp_compile) 2>&5
27347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27348 test $ac_status = 0; }; then
27349 echo "Compiler output:" >&5
27351 if test $gmp_cv_asm_underscore = yes; then
27356 # must see our label
27357 if grep "^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" conftest.s >/dev/null 2>&5; then
27358 # take the last directive before our label (hence skipping segments
27359 # getting debugging info etc)
27360 tmp_match=`sed -n "/^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix/q
27366 /^[. ]*CSECT/p" conftest.s | sed -n '$p'`
27367 echo "Match: $tmp_match" >&5
27368 if test -n "$tmp_match"; then
27369 gmp_cv_asm_rodata=$tmp_match
27372 echo "Couldn't find label: ^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" >&5
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_rodata" >&5
27379 $as_echo "$gmp_cv_asm_rodata" >&6; }
27380 echo "define(<RODATA>, <$gmp_cv_asm_rodata>)" >> $gmp_tmpconfigm4
27382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .type directive" >&5
27383 $as_echo_n "checking for assembler .type directive... " >&6; }
27384 if test "${gmp_cv_asm_type+set}" = set; then :
27385 $as_echo_n "(cached) " >&6
27388 for gmp_tmp_prefix in @ \# %; do
27389 cat >conftest.s <<EOF
27390 .type sym,${gmp_tmp_prefix}function
27392 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27394 (eval $gmp_assemble) 2>&5
27396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27397 test $ac_status = 0; }; then
27398 cat conftest.out >&5
27399 if grep "\.type pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
27401 gmp_cv_asm_type=".type \$1,${gmp_tmp_prefix}\$2"
27405 cat conftest.out >&5
27406 echo "configure: failed program was:" >&5
27416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_type" >&5
27417 $as_echo "$gmp_cv_asm_type" >&6; }
27418 echo "define(<TYPE>, <$gmp_cv_asm_type>)" >> $gmp_tmpconfigm4
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .size directive" >&5
27421 $as_echo_n "checking for assembler .size directive... " >&6; }
27422 if test "${gmp_cv_asm_size+set}" = set; then :
27423 $as_echo_n "(cached) " >&6
27426 cat >conftest.s <<EOF
27429 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27431 (eval $gmp_assemble) 2>&5
27433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27434 test $ac_status = 0; }; then
27435 cat conftest.out >&5
27436 if grep "\.size pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
27438 gmp_cv_asm_size=".size \$1,\$2"
27441 cat conftest.out >&5
27442 echo "configure: failed program was:" >&5
27450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_size" >&5
27451 $as_echo "$gmp_cv_asm_size" >&6; }
27452 echo "define(<SIZE>, <$gmp_cv_asm_size>)" >> $gmp_tmpconfigm4
27457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler local label prefix" >&5
27458 $as_echo_n "checking for assembler local label prefix... " >&6; }
27459 if test "${gmp_cv_asm_lsym_prefix+set}" = set; then :
27460 $as_echo_n "(cached) " >&6
27462 gmp_tmp_pre_appears=yes
27463 for gmp_tmp_pre in L .L $L $ L$; do
27464 echo "Trying $gmp_tmp_pre" >&5
27465 cat >conftest.s <<EOF
27467 dummy${gmp_cv_asm_label_suffix}
27468 ${gmp_tmp_pre}gurkmacka${gmp_cv_asm_label_suffix}
27470 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27472 (eval $gmp_assemble) 2>&5
27474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27475 test $ac_status = 0; }; then
27476 cat conftest.out >&5
27477 if $NM conftest.$OBJEXT >conftest.nm 2>&5; then : ; else
27478 cat conftest.nm >&5
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$NM\" failure" >&5
27480 $as_echo "$as_me: WARNING: \"$NM\" failure" >&2;}
27483 cat conftest.nm >&5
27484 if grep gurkmacka conftest.nm >/dev/null; then : ; else
27485 # no mention of the symbol, this is good
27486 echo "$gmp_tmp_pre label doesn't appear in object file at all (good)" >&5
27487 gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
27488 gmp_tmp_pre_appears=no
27491 if grep ' [a-zN] .*gurkmacka' conftest.nm >/dev/null; then
27492 # symbol mentioned as a local, use this if nothing better
27493 echo "$gmp_tmp_pre label is local but still in object file" >&5
27494 if test -z "$gmp_cv_asm_lsym_prefix"; then
27495 gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
27498 echo "$gmp_tmp_pre label is something unknown" >&5
27502 cat conftest.out >&5
27503 echo "configure: failed program was:" >&5
27511 if test -z "$gmp_cv_asm_lsym_prefix"; then
27512 gmp_cv_asm_lsym_prefix=L
27513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&5
27514 $as_echo "$as_me: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&2;}
27516 # for development purposes, note whether we got a purely temporary local label
27517 echo "Local label appears in object files: $gmp_tmp_pre_appears" >&5
27520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_lsym_prefix" >&5
27521 $as_echo "$gmp_cv_asm_lsym_prefix" >&6; }
27522 echo "define(<LSYM_PREFIX>, <${gmp_cv_asm_lsym_prefix}>)" >> $gmp_tmpconfigm4
27524 cat >>confdefs.h <<_ACEOF
27525 #define LSYM_PREFIX "$gmp_cv_asm_lsym_prefix"
27531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler byte directive" >&5
27532 $as_echo_n "checking for assembler byte directive... " >&6; }
27533 if test "${gmp_cv_asm_byte+set}" = set; then :
27534 $as_echo_n "(cached) " >&6
27536 for i in .byte data1; do
27537 echo "trying $i" >&5
27538 cat >conftest.s <<EOF
27543 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27545 (eval $gmp_assemble) 2>&5
27547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27548 test $ac_status = 0; }; then
27549 cat conftest.out >&5
27554 cat conftest.out >&5
27555 echo "configure: failed program was:" >&5
27557 cat conftest.out >&5
27562 if test -z "$gmp_cv_asm_byte"; then
27563 as_fn_error "Cannot determine how to emit a data byte" "$LINENO" 5
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_byte" >&5
27568 $as_echo "$gmp_cv_asm_byte" >&6; }
27575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a 32-bit word" >&5
27576 $as_echo_n "checking how to define a 32-bit word... " >&6; }
27577 if test "${gmp_cv_asm_w32+set}" = set; then :
27578 $as_echo_n "(cached) " >&6
27582 # FIXME: HPUX puts first symbol at 0x40000000, breaking our assumption
27583 # that it's at 0x0. We'll have to declare another symbol before the
27584 # .long/.word and look at the distance between the two symbols. The
27585 # only problem is that the sed expression(s) barfs (on Solaris, for
27586 # example) for the symbol with value 0. For now, HPUX uses .word.
27587 gmp_cv_asm_w32=".word"
27591 for gmp_tmp_op in .long .word data4; do
27592 cat >conftest.s <<EOF
27594 $gmp_cv_asm_globl foo
27596 foo$gmp_cv_asm_label_suffix
27599 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27601 (eval $gmp_assemble) 2>&5
27603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27604 test $ac_status = 0; }; then
27605 cat conftest.out >&5
27606 gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
27607 sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
27608 if test "$gmp_tmp_val" = 4; then
27609 gmp_cv_asm_w32="$gmp_tmp_op"
27613 cat conftest.out >&5
27614 echo "configure: failed program was:" >&5
27624 if test -z "$gmp_cv_asm_w32"; then
27625 as_fn_error "cannot determine how to define a 32-bit word" "$LINENO" 5
27629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_w32" >&5
27630 $as_echo "$gmp_cv_asm_w32" >&6; }
27631 echo "define(<W32>, <$gmp_cv_asm_w32>)" >> $gmp_tmpconfigm4
27638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align assembly directive is logarithmic" >&5
27639 $as_echo_n "checking if .align assembly directive is logarithmic... " >&6; }
27640 if test "${gmp_cv_asm_align_log+set}" = set; then :
27641 $as_echo_n "(cached) " >&6
27643 cat >conftest.s <<EOF
27646 $gmp_cv_asm_globl foo
27649 foo$gmp_cv_asm_label_suffix
27652 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27654 (eval $gmp_assemble) 2>&5
27656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27657 test $ac_status = 0; }; then
27658 cat conftest.out >&5
27659 gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
27660 sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
27661 if test "$gmp_tmp_val" = "10" || test "$gmp_tmp_val" = "16"; then
27662 gmp_cv_asm_align_log=yes
27664 gmp_cv_asm_align_log=no
27667 cat conftest.out >&5
27668 echo "configure: failed program was:" >&5
27670 as_fn_error "cannot assemble alignment test" "$LINENO" 5
27675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_align_log" >&5
27676 $as_echo "$gmp_cv_asm_align_log" >&6; }
27679 echo "define(<ALIGN_LOGARITHMIC>,<$gmp_cv_asm_align_log>)" >> $gmp_tmpconfigm4
27685 # for both pa32 and pa64
27687 echo "include_mpn(\`pa32/pa-defs.m4')" >> $gmp_tmpconfigm4i
27690 ia64*-*-* | itanium-*-* | itanium2-*-*)
27691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler .align padding is good" >&5
27692 $as_echo_n "checking whether assembler .align padding is good... " >&6; }
27693 if test "${gmp_cv_asm_ia64_align_ok+set}" = set; then :
27694 $as_echo_n "(cached) " >&6
27696 cat >conftest.awk <<\EOF
27752 for (f = 2; f <= NF; f++)
27754 for (i = 0; i < 47; i++)
27759 for (i = 0; i < 48; i++)
27760 if (got[i] != want[i])
27776 cat >conftest.s <<EOF
27779 { .mmi; add r14 = r15, r16
27781 add r20 = r21, r22 ;; }
27783 { .mmi; add r23 = r24, r25
27785 add r29 = r30, r31 ;; }
27788 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27790 (eval $gmp_assemble) 2>&5
27792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27793 test $ac_status = 0; }; then
27794 cat conftest.out >&5
27795 gmp_cv_asm_ia64_align_ok=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
27797 cat conftest.out >&5
27798 echo "configure: failed program was:" >&5
27800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
27801 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
27802 gmp_cv_asm_ia64_align_ok=yes
27808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_ia64_align_ok" >&5
27809 $as_echo "$gmp_cv_asm_ia64_align_ok" >&6; }
27811 echo "define(<IA64_ALIGN_OK>, <\`$gmp_cv_asm_ia64_align_ok'>)" >> $gmp_tmpconfigm4
27815 m68k-*-* | m68[0-9][0-9][0-9]-*-*)
27817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler instruction and register style" >&5
27818 $as_echo_n "checking assembler instruction and register style... " >&6; }
27819 if test "${gmp_cv_asm_m68k_instruction+set}" = set; then :
27820 $as_echo_n "(cached) " >&6
27822 for i in "addl %d0,%d1" "add.l %d0,%d1" "addl d0,d1" "add.l d0,d1"; do
27823 cat >conftest.s <<EOF
27827 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27829 (eval $gmp_assemble) 2>&5
27831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27832 test $ac_status = 0; }; then
27833 cat conftest.out >&5
27834 gmp_cv_asm_m68k_instruction=$i
27838 cat conftest.out >&5
27839 echo "configure: failed program was:" >&5
27846 if test -z "$gmp_cv_asm_m68k_instruction"; then
27847 as_fn_error "cannot determine assembler instruction and register style" "$LINENO" 5
27851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_instruction" >&5
27852 $as_echo "$gmp_cv_asm_m68k_instruction" >&6; }
27853 case $gmp_cv_asm_m68k_instruction in
27854 "addl d0,d1") want_dot_size=no; want_register_percent=no ;;
27855 "addl %d0,%d1") want_dot_size=no; want_register_percent=yes ;;
27856 "add.l d0,d1") want_dot_size=yes; want_register_percent=no ;;
27857 "add.l %d0,%d1") want_dot_size=yes; want_register_percent=yes ;;
27858 *) as_fn_error "oops, unrecognised instruction and register style" "$LINENO" 5 ;;
27861 echo "define(<WANT_REGISTER_PERCENT>, <\`$want_register_percent'>)" >> $gmp_tmpconfigm4
27864 echo "define(<WANT_DOT_SIZE>, <\`$want_dot_size'>)" >> $gmp_tmpconfigm4
27869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler addressing style" >&5
27870 $as_echo_n "checking assembler addressing style... " >&6; }
27871 if test "${gmp_cv_asm_m68k_addressing+set}" = set; then :
27872 $as_echo_n "(cached) " >&6
27874 case $gmp_cv_asm_m68k_instruction in
27875 addl*) movel=movel ;;
27876 add.l*) movel=move.l ;;
27877 *) as_fn_error "oops, unrecognised gmp_cv_asm_m68k_instruction" "$LINENO" 5 ;;
27879 case $gmp_cv_asm_m68k_instruction in
27880 *"%d0,%d1") dreg=%d0; areg=%a0 ;;
27881 *"d0,d1") dreg=d0; areg=a0 ;;
27882 *) as_fn_error "oops, unrecognised gmp_cv_asm_m68k_instruction" "$LINENO" 5 ;;
27884 cat >conftest.s <<EOF
27886 $movel $dreg, $areg@-
27888 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27890 (eval $gmp_assemble) 2>&5
27892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27893 test $ac_status = 0; }; then
27894 cat conftest.out >&5
27895 gmp_cv_asm_m68k_addressing=mit
27897 cat conftest.out >&5
27898 echo "configure: failed program was:" >&5
27900 cat >conftest.s <<EOF
27902 $movel $dreg, -($areg)
27904 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27906 (eval $gmp_assemble) 2>&5
27908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27909 test $ac_status = 0; }; then
27910 cat conftest.out >&5
27911 gmp_cv_asm_m68k_addressing=motorola
27913 cat conftest.out >&5
27914 echo "configure: failed program was:" >&5
27916 as_fn_error "cannot determine assembler addressing style" "$LINENO" 5
27925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_addressing" >&5
27926 $as_echo "$gmp_cv_asm_m68k_addressing" >&6; }
27928 echo "define(<WANT_ADDRESSING>, <\`$gmp_cv_asm_m68k_addressing'>)" >> $gmp_tmpconfigm4
27932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler shortest branches" >&5
27933 $as_echo_n "checking assembler shortest branches... " >&6; }
27934 if test "${gmp_cv_asm_m68k_branches+set}" = set; then :
27935 $as_echo_n "(cached) " >&6
27937 for i in jra jbra bra; do
27938 cat >conftest.s <<EOF
27940 foo$gmp_cv_asm_label_suffix
27943 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27945 (eval $gmp_assemble) 2>&5
27947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27948 test $ac_status = 0; }; then
27949 cat conftest.out >&5
27950 gmp_cv_asm_m68k_branches=$i
27954 cat conftest.out >&5
27955 echo "configure: failed program was:" >&5
27962 if test -z "$gmp_cv_asm_m68k_branches"; then
27963 as_fn_error "cannot determine assembler branching style" "$LINENO" 5
27967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_branches" >&5
27968 $as_echo "$gmp_cv_asm_m68k_branches" >&6; }
27970 echo "define(<WANT_BRANCHES>, <\`$gmp_cv_asm_m68k_branches'>)" >> $gmp_tmpconfigm4
27974 powerpc*-*-* | power[3-9]-*-*)
27976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler output is PIC by default" >&5
27977 $as_echo_n "checking whether compiler output is PIC by default... " >&6; }
27978 if test "${gmp_cv_asm_powerpc_pic+set}" = set; then :
27979 $as_echo_n "(cached) " >&6
27981 gmp_cv_asm_powerpc_pic=yes
27982 cat >conftest.c <<EOF
27984 int *bar() { return &foo; }
27986 echo "Test program:" >&5
27988 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
27989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
27990 (eval $gmp_compile) 2>&5
27992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27993 test $ac_status = 0; }; then
27994 echo "Compiler output:" >&5
27996 if grep 'foo@ha' conftest.s >/dev/null 2>&5; then
27997 gmp_cv_asm_powerpc_pic=no
27999 if grep 'ha16(_foo)' conftest.s >/dev/null 2>&5; then
28000 gmp_cv_asm_powerpc_pic=no
28006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_pic" >&5
28007 $as_echo "$gmp_cv_asm_powerpc_pic" >&6; }
28009 echo "define(<PIC_ALWAYS>,<$gmp_cv_asm_powerpc_pic>)" >> $gmp_tmpconfigm4
28013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler needs r on registers" >&5
28014 $as_echo_n "checking if the assembler needs r on registers... " >&6; }
28015 if test "${gmp_cv_asm_powerpc_r_registers+set}" = set; then :
28016 $as_echo_n "(cached) " >&6
28018 cat >conftest.s <<EOF
28022 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28024 (eval $gmp_assemble) 2>&5
28026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28027 test $ac_status = 0; }; then
28028 cat conftest.out >&5
28029 gmp_cv_asm_powerpc_r_registers=no
28031 cat conftest.out >&5
28032 echo "configure: failed program was:" >&5
28034 cat >conftest.s <<EOF
28038 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28040 (eval $gmp_assemble) 2>&5
28042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28043 test $ac_status = 0; }; then
28044 cat conftest.out >&5
28045 gmp_cv_asm_powerpc_r_registers=yes
28047 cat conftest.out >&5
28048 echo "configure: failed program was:" >&5
28050 as_fn_error "neither \"mtctr 6\" nor \"mtctr r6\" works" "$LINENO" 5
28058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_r_registers" >&5
28059 $as_echo "$gmp_cv_asm_powerpc_r_registers" >&6; }
28062 echo "define(<WANT_R_REGISTERS>,<$gmp_cv_asm_powerpc_r_registers>)" >> $gmp_tmpconfigm4
28066 echo "include_mpn(\`powerpc32/powerpc-defs.m4')" >> $gmp_tmpconfigm4i
28072 echo "include_mpn(\`powerpc64/aix.m4')" >> $gmp_tmpconfigm4i
28075 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
28079 *-*-linux* | *-*-*bsd*)
28082 echo "include_mpn(\`powerpc64/elf.m4')" >> $gmp_tmpconfigm4i
28085 echo "include_mpn(\`powerpc32/elf.m4')" >> $gmp_tmpconfigm4i
28092 echo "include_mpn(\`powerpc64/darwin.m4')" >> $gmp_tmpconfigm4i
28095 echo "include_mpn(\`powerpc32/darwin.m4')" >> $gmp_tmpconfigm4i
28100 # Assume unrecognized operating system is the powerpc eABI
28102 echo "include_mpn(\`powerpc32/eabi.m4')" >> $gmp_tmpconfigm4i
28109 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
28112 sparcv9*-*-* | ultrasparc*-*-* | sparc64-*-*)
28116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler accepts \".register\"" >&5
28117 $as_echo_n "checking if the assembler accepts \".register\"... " >&6; }
28118 if test "${gmp_cv_asm_sparc_register+set}" = set; then :
28119 $as_echo_n "(cached) " >&6
28121 cat >conftest.s <<EOF
28123 .register %g2,#scratch
28126 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28128 (eval $gmp_assemble) 2>&5
28130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28131 test $ac_status = 0; }; then
28132 cat conftest.out >&5
28133 gmp_cv_asm_sparc_register=yes
28135 cat conftest.out >&5
28136 echo "configure: failed program was:" >&5
28138 gmp_cv_asm_sparc_register=no
28143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_sparc_register" >&5
28144 $as_echo "$gmp_cv_asm_sparc_register" >&6; }
28147 echo "define(<HAVE_REGISTER>,<$gmp_cv_asm_sparc_register>)" >> $gmp_tmpconfigm4
28153 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*)
28155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the .align directive accepts an 0x90 fill in .text" >&5
28156 $as_echo_n "checking if the .align directive accepts an 0x90 fill in .text... " >&6; }
28157 if test "${gmp_cv_asm_align_fill_0x90+set}" = set; then :
28158 $as_echo_n "(cached) " >&6
28160 cat >conftest.s <<EOF
28166 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28168 (eval $gmp_assemble) 2>&5
28170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28171 test $ac_status = 0; }; then
28172 cat conftest.out >&5
28173 if grep "Warning: Fill parameter ignored for executable section" conftest.out >/dev/null; then
28174 echo "Supressing this warning by omitting 0x90" 1>&5
28175 gmp_cv_asm_align_fill_0x90=no
28177 gmp_cv_asm_align_fill_0x90=yes
28180 cat conftest.out >&5
28181 echo "configure: failed program was:" >&5
28183 gmp_cv_asm_align_fill_0x90=no
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_align_fill_0x90" >&5
28189 $as_echo "$gmp_cv_asm_align_fill_0x90" >&6; }
28192 echo "define(<ALIGN_FILL_0x90>,<$gmp_cv_asm_align_fill_0x90>)" >> $gmp_tmpconfigm4
28198 echo "include_mpn(\`x86/x86-defs.m4')" >> $gmp_tmpconfigm4i
28200 $as_echo "#define HAVE_HOST_CPU_FAMILY_x86 1" >>confdefs.h
28207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler COFF type directives" >&5
28208 $as_echo_n "checking for assembler COFF type directives... " >&6; }
28209 if test "${gmp_cv_asm_x86_coff_type+set}" = set; then :
28210 $as_echo_n "(cached) " >&6
28212 cat >conftest.s <<EOF
28214 $gmp_cv_asm_globl ${tmp_gsym_prefix}foo$gmp_cv_asm_globl_attr
28215 .def ${tmp_gsym_prefix}foo
28219 ${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix
28222 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28224 (eval $gmp_assemble) 2>&5
28226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28227 test $ac_status = 0; }; then
28228 cat conftest.out >&5
28229 gmp_cv_asm_x86_coff_type=yes
28231 cat conftest.out >&5
28232 echo "configure: failed program was:" >&5
28234 gmp_cv_asm_x86_coff_type=no
28240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_coff_type" >&5
28241 $as_echo "$gmp_cv_asm_x86_coff_type" >&6; }
28242 echo "define(<HAVE_COFF_TYPE>, <$gmp_cv_asm_x86_coff_type>)" >> $gmp_tmpconfigm4
28251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore" >&5
28252 $as_echo_n "checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore... " >&6; }
28253 if test "${gmp_cv_asm_x86_got_underscore+set}" = set; then :
28254 $as_echo_n "(cached) " >&6
28256 gmp_cv_asm_x86_got_underscore="not applicable"
28257 if test $gmp_cv_asm_underscore = yes; then
28262 for tmp_underscore in "" "_"; do
28263 cat >conftest.s <<EOF
28265 $gmp_cv_asm_globl ${tmp_gsym_prefix}main$gmp_cv_asm_globl_attr
28266 ${tmp_gsym_prefix}main$gmp_cv_asm_label_suffix
28267 addl $ ${tmp_underscore}_GLOBAL_OFFSET_TABLE_, %ebx
28269 gmp_compile="$CCAS $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.s >&5 && $CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.$OBJEXT >&5"
28270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
28271 (eval $gmp_compile) 2>&5
28273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28274 test $ac_status = 0; }; then
28275 if test "$tmp_underscore" = "_"; then
28276 gmp_cv_asm_x86_got_underscore=yes
28278 gmp_cv_asm_x86_got_underscore=no
28283 rm -f conftest* a.out b.out a.exe a_out.exe
28286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_got_underscore" >&5
28287 $as_echo "$gmp_cv_asm_x86_got_underscore" >&6; }
28288 if test "$gmp_cv_asm_x86_got_underscore" = "yes"; then
28290 echo 'define(<GOT_GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
28294 echo 'define(<GOT_GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
28299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler takes cl with shldl" >&5
28300 $as_echo_n "checking if the assembler takes cl with shldl... " >&6; }
28301 if test "${gmp_cv_asm_x86_shldl_cl+set}" = set; then :
28302 $as_echo_n "(cached) " >&6
28304 cat >conftest.s <<EOF
28306 shldl %cl, %eax, %ebx
28308 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
28309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
28310 (eval $gmp_assemble) 2>&5
28312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28313 test $ac_status = 0; }; then
28314 cat conftest.out >&5
28315 gmp_cv_asm_x86_shldl_cl=yes
28317 cat conftest.out >&5
28318 echo "configure: failed program was:" >&5
28320 gmp_cv_asm_x86_shldl_cl=no
28326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_shldl_cl" >&5
28327 $as_echo "$gmp_cv_asm_x86_shldl_cl" >&6; }
28328 if test "$gmp_cv_asm_x86_shldl_cl" = "yes"; then
28330 echo 'define(<WANT_SHLDL_CL>, <1>)' >>$gmp_tmpconfigm4
28334 echo 'define(<WANT_SHLDL_CL>, <0>)' >>$gmp_tmpconfigm4
28338 case $enable_profiling in
28339 prof | gprof) # Check whether --enable-shared was given.
28340 if test "${enable_shared+set}" = set; then :
28341 enableval=$enable_shared; p=${PACKAGE-default}
28343 yes) enable_shared=yes ;;
28344 no) enable_shared=no ;;
28347 # Look at the argument we got. We use all the common list separators.
28348 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
28349 for pkg in $enableval; do
28351 if test "X$pkg" = "X$p"; then
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to call x86 mcount" >&5
28370 $as_echo_n "checking how to call x86 mcount... " >&6; }
28371 cat >conftest.c <<EOF
28375 if test "$enable_static" = yes; then
28376 gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c 1>&5"
28377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_asmout_compile\""; } >&5
28378 (eval $gmp_asmout_compile) 2>&5
28380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28381 test $ac_status = 0; }; then
28382 if grep '\.data' conftest.s >/dev/null; then
28383 mcount_nonpic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
28387 mcount_nonpic_call=`grep 'call.*mcount' conftest.s`
28388 if test -z "$mcount_nonpic_call"; then
28389 as_fn_error "Cannot find mcount call for non-PIC" "$LINENO" 5
28392 as_fn_error "Cannot compile test program for non-PIC" "$LINENO" 5
28396 if test "$enable_shared" = yes; then
28397 gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic -S conftest.c 1>&5"
28398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_asmout_compile\""; } >&5
28399 (eval $gmp_asmout_compile) 2>&5
28401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28402 test $ac_status = 0; }; then
28403 if grep '\.data' conftest.s >/dev/null; then
28404 case $lt_prog_compiler_pic in
28406 # Windows DLLs have non-PIC style mcount
28407 mcount_pic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
28410 mcount_pic_reg=`sed -n 's/.*GOTOFF.*,\(%[a-z]*\).*$/\1/p' conftest.s`
28416 mcount_pic_call=`grep 'call.*mcount' conftest.s`
28417 if test -z "$mcount_pic_call"; then
28418 as_fn_error "Cannot find mcount call for PIC" "$LINENO" 5
28421 as_fn_error "Cannot compile test program for PIC" "$LINENO" 5
28426 echo "define(<MCOUNT_NONPIC_REG>, <\`$mcount_nonpic_reg'>)" >> $gmp_tmpconfigm4
28429 echo "define(<MCOUNT_NONPIC_CALL>,<\`$mcount_nonpic_call'>)" >> $gmp_tmpconfigm4
28432 echo "define(<MCOUNT_PIC_REG>, <\`$mcount_pic_reg'>)" >> $gmp_tmpconfigm4
28435 echo "define(<MCOUNT_PIC_CALL>, <\`$mcount_pic_call'>)" >> $gmp_tmpconfigm4
28439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: determined" >&5
28440 $as_echo "determined" >&6; }
28446 echo "include_mpn(\`x86/darwin.m4')" >> $gmp_tmpconfigm4i
28452 echo "include_mpn(\`x86_64/x86_64-defs.m4')" >> $gmp_tmpconfigm4i
28454 $as_echo "#define HAVE_HOST_CPU_FAMILY_x86_64 1" >>confdefs.h
28459 echo "include_mpn(\`x86_64/darwin.m4')" >> $gmp_tmpconfigm4i
28468 # For --enable-minithres, prepend "minithres" to path so that its special
28469 # gmp-mparam.h will be used.
28470 if test $enable_minithres = yes; then
28471 path="minithres $path"
28474 # Create link for gmp-mparam.h.
28476 for gmp_mparam_dir in $path; do
28477 test "$no_create" = yes || rm -f gmp-mparam.h
28478 tmp_file=$srcdir/mpn/$gmp_mparam_dir/gmp-mparam.h
28479 if test -f $tmp_file; then
28480 ac_config_links="$ac_config_links gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h"
28482 gmp_srclinks="$gmp_srclinks gmp-mparam.h"
28483 gmp_mparam_source=$tmp_file
28487 if test -z "$gmp_mparam_source"; then
28488 as_fn_error "no version of gmp-mparam.h found in path: $path" "$LINENO" 5
28491 # For a helpful message from tune/tuneup.c
28492 gmp_mparam_suggest=$gmp_mparam_source
28493 if test "$gmp_mparam_dir" = generic; then
28494 for i in $path; do break; done
28495 if test "$i" != generic; then
28496 gmp_mparam_suggest="new file $srcdir/mpn/$i/gmp-mparam.h"
28500 cat >>confdefs.h <<_ACEOF
28501 #define GMP_MPARAM_H_SUGGEST "$gmp_mparam_source"
28506 # Copy any SQR_TOOM2_THRESHOLD from gmp-mparam.h to config.m4.
28507 # Some versions of sqr_basecase.asm use this.
28508 # Fat binaries do this on a per-file basis, so skip in that case.
28510 if test -z "$fat_path"; then
28511 tmp_gmp_karatsuba_sqr_threshold=`sed -n 's/^#define SQR_TOOM2_THRESHOLD[ ]*\([0-9][0-9]*\).*$/\1/p' $gmp_mparam_source`
28512 if test -n "$tmp_gmp_karatsuba_sqr_threshold"; then
28514 echo "define(<SQR_TOOM2_THRESHOLD>,<$tmp_gmp_karatsuba_sqr_threshold>)" >> $gmp_tmpconfigm4
28520 # Sizes of some types, needed at preprocessing time.
28522 # FIXME: The assumption that GMP_LIMB_BITS is 8*sizeof(mp_limb_t) might
28523 # be slightly rash, but it's true everywhere we know of and ought to be true
28524 # of any sensible system. In a generic C build, grepping LONG_BIT out of
28525 # <limits.h> might be an alternative, for maximum portability.
28527 # The cast to long int works around a bug in the HP C Compiler
28528 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28529 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28530 # This bug is HP SR number 8606223364.
28531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
28532 $as_echo_n "checking size of void *... " >&6; }
28533 if test "${ac_cv_sizeof_void_p+set}" = set; then :
28534 $as_echo_n "(cached) " >&6
28536 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
28539 if test "$ac_cv_type_void_p" = yes; then
28540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28542 { as_fn_set_status 77
28543 as_fn_error "cannot compute sizeof (void *)
28544 See \`config.log' for more details." "$LINENO" 5; }; }
28546 ac_cv_sizeof_void_p=0
28551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
28552 $as_echo "$ac_cv_sizeof_void_p" >&6; }
28556 cat >>confdefs.h <<_ACEOF
28557 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
28561 # The cast to long int works around a bug in the HP C Compiler
28562 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28563 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28564 # This bug is HP SR number 8606223364.
28565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
28566 $as_echo_n "checking size of unsigned short... " >&6; }
28567 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
28568 $as_echo_n "(cached) " >&6
28570 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
28573 if test "$ac_cv_type_unsigned_short" = yes; then
28574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28576 { as_fn_set_status 77
28577 as_fn_error "cannot compute sizeof (unsigned short)
28578 See \`config.log' for more details." "$LINENO" 5; }; }
28580 ac_cv_sizeof_unsigned_short=0
28585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
28586 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
28590 cat >>confdefs.h <<_ACEOF
28591 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
28595 # The cast to long int works around a bug in the HP C Compiler
28596 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28597 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28598 # This bug is HP SR number 8606223364.
28599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5
28600 $as_echo_n "checking size of unsigned... " >&6; }
28601 if test "${ac_cv_sizeof_unsigned+set}" = set; then :
28602 $as_echo_n "(cached) " >&6
28604 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned" "$ac_includes_default"; then :
28607 if test "$ac_cv_type_unsigned" = yes; then
28608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28610 { as_fn_set_status 77
28611 as_fn_error "cannot compute sizeof (unsigned)
28612 See \`config.log' for more details." "$LINENO" 5; }; }
28614 ac_cv_sizeof_unsigned=0
28619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5
28620 $as_echo "$ac_cv_sizeof_unsigned" >&6; }
28624 cat >>confdefs.h <<_ACEOF
28625 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
28629 # The cast to long int works around a bug in the HP C Compiler
28630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28632 # This bug is HP SR number 8606223364.
28633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
28634 $as_echo_n "checking size of unsigned long... " >&6; }
28635 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
28636 $as_echo_n "(cached) " >&6
28638 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
28641 if test "$ac_cv_type_unsigned_long" = yes; then
28642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28644 { as_fn_set_status 77
28645 as_fn_error "cannot compute sizeof (unsigned long)
28646 See \`config.log' for more details." "$LINENO" 5; }; }
28648 ac_cv_sizeof_unsigned_long=0
28653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
28654 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
28658 cat >>confdefs.h <<_ACEOF
28659 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
28663 # The cast to long int works around a bug in the HP C Compiler
28664 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28665 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28666 # This bug is HP SR number 8606223364.
28667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of mp_limb_t" >&5
28668 $as_echo_n "checking size of mp_limb_t... " >&6; }
28669 if test "${ac_cv_sizeof_mp_limb_t+set}" = set; then :
28670 $as_echo_n "(cached) " >&6
28672 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 */
28673 #define GMP_NAIL_BITS $GMP_NAIL_BITS
28674 #define GMP_LIMB_BITS 123
28675 $DEFN_LONG_LONG_LIMB
28676 #include \"$srcdir/gmp-h.in\"
28681 if test "$ac_cv_type_mp_limb_t" = yes; then
28682 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28684 { as_fn_set_status 77
28685 as_fn_error "cannot compute sizeof (mp_limb_t)
28686 See \`config.log' for more details." "$LINENO" 5; }; }
28688 ac_cv_sizeof_mp_limb_t=0
28693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_mp_limb_t" >&5
28694 $as_echo "$ac_cv_sizeof_mp_limb_t" >&6; }
28698 cat >>confdefs.h <<_ACEOF
28699 #define SIZEOF_MP_LIMB_T $ac_cv_sizeof_mp_limb_t
28703 if test "$ac_cv_sizeof_mp_limb_t" = 0; then
28704 as_fn_error "Oops, mp_limb_t doesn't seem to work" "$LINENO" 5
28706 GMP_LIMB_BITS=`expr 8 \* $ac_cv_sizeof_mp_limb_t`
28709 echo "define(<SIZEOF_UNSIGNED>,<$ac_cv_sizeof_unsigned>)" >> $gmp_tmpconfigm4
28712 # Check compiler limb size matches gmp-mparam.h
28714 # FIXME: Some of the cycle counter objects in the tune directory depend on
28715 # the size of ulong, it'd be possible to check that here, though a mismatch
28716 # probably wouldn't want to be fatal, none of the libgmp assembler code
28717 # depends on ulong.
28719 mparam_bits=`sed -n 's/^#define GMP_LIMB_BITS[ ][ ]*\([0-9]*\).*$/\1/p' $gmp_mparam_source`
28720 if test -n "$mparam_bits" && test "$mparam_bits" -ne $GMP_LIMB_BITS; then
28721 if test "$test_CFLAGS" = set; then
28722 as_fn_error "Oops, mp_limb_t is $GMP_LIMB_BITS bits, but the assembler code
28723 in this configuration expects $mparam_bits bits.
28724 You appear to have set \$CFLAGS, perhaps you also need to tell GMP the
28725 intended ABI, see \"ABI and ISA\" in the manual." "$LINENO" 5
28727 as_fn_error "Oops, mp_limb_t is $GMP_LIMB_BITS bits, but the assembler code
28728 in this configuration expects $mparam_bits bits." "$LINENO" 5
28733 echo "define(<GMP_LIMB_BITS>,$GMP_LIMB_BITS)" >> $gmp_tmpconfigm4
28736 echo "define(<GMP_NAIL_BITS>,$GMP_NAIL_BITS)" >> $gmp_tmpconfigm4
28739 echo "define(<GMP_NUMB_BITS>,eval(GMP_LIMB_BITS-GMP_NAIL_BITS))" >> $gmp_tmpconfigm4
28743 # Exclude the mpn random functions from mpbsd since that would drag in the
28744 # top-level rand things, all of which are unnecessary for libmp. There's
28745 # other unnecessary objects too actually, if we could be bothered figuring
28746 # out exactly which they are.
28749 for i in $mpn_objs_in_libgmp; do
28752 *) mpn_objs_in_libmp="$mpn_objs_in_libmp $i" ;;
28762 # A recompiled sqr_basecase for use in the tune program, if necessary.
28764 test -d tune || mkdir tune
28765 case $sqr_basecase_source in
28767 sqr_max=`sed -n 's/^def...(SQR_TOOM2_THRESHOLD_MAX, *\([0-9]*\))/\1/p' $sqr_basecase_source`
28768 if test -n "$sqr_max"; then
28769 TUNE_SQR_OBJ=sqr_asm.o
28771 cat >>confdefs.h <<_ACEOF
28772 #define TUNE_SQR_TOOM2_MAX $sqr_max
28776 cat >tune/sqr_basecase.c <<EOF
28777 /* not sure that an empty file can compile, so put in a dummy */
28778 int sqr_basecase_dummy;
28783 $as_echo "#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC" >>confdefs.h
28785 cat >tune/sqr_basecase.c <<EOF
28786 #define TUNE_PROGRAM_BUILD 1
28787 #define TUNE_PROGRAM_BUILD_SQR 1
28788 #include "mpn/sqr_basecase.c"
28795 # Configs for demos/pexpr.c.
28797 ac_config_files="$ac_config_files demos/pexpr-config.h:demos/pexpr-config-h.in"
28799 case $ac_cv_func_clock in
28800 yes) HAVE_CLOCK_01=1
28802 no) HAVE_CLOCK_01=0 ;;
28805 case $ac_cv_func_cputime in
28806 yes) HAVE_CPUTIME_01=1
28808 no) HAVE_CPUTIME_01=0 ;;
28811 case $ac_cv_func_getrusage in
28812 yes) HAVE_GETRUSAGE_01=1
28814 no) HAVE_GETRUSAGE_01=0 ;;
28817 case $ac_cv_func_gettimeofday in
28818 yes) HAVE_GETTIMEOFDAY_01=1
28820 no) HAVE_GETTIMEOFDAY_01=0 ;;
28823 case $ac_cv_func_sigaction in
28824 yes) HAVE_SIGACTION_01=1
28826 no) HAVE_SIGACTION_01=0 ;;
28829 case $ac_cv_func_sigaltstack in
28830 yes) HAVE_SIGALTSTACK_01=1
28832 no) HAVE_SIGALTSTACK_01=0 ;;
28835 case $ac_cv_func_sigstack in
28836 yes) HAVE_SIGSTACK_01=1
28838 no) HAVE_SIGSTACK_01=0 ;;
28842 case $ac_cv_header_sys_resource_h in
28843 yes) HAVE_SYS_RESOURCE_H_01=1
28845 no) HAVE_SYS_RESOURCE_H_01=0 ;;
28849 ac_fn_c_check_type "$LINENO" "stack_t" "ac_cv_type_stack_t" "#include <signal.h>
28851 if test "x$ac_cv_type_stack_t" = x""yes; then :
28853 cat >>confdefs.h <<_ACEOF
28854 #define HAVE_STACK_T 1
28864 # Configs for demos/calc directory
28866 # AC_SUBST+AC_CONFIG_FILES is used for calc-config.h, rather than AC_DEFINE+
28867 # AC_CONFIG_HEADERS, since with the latter automake (1.8) will then put the
28868 # directory (ie. demos/calc) into $(DEFAULT_INCLUDES) for every Makefile.in,
28869 # which would look very strange.
28871 # -lcurses is required by libreadline. On a typical SVR4 style system this
28872 # normally doesn't have to be given explicitly, since libreadline.so will
28873 # have a NEEDED record for it. But if someone for some reason is using only
28874 # a static libreadline.a then we must give -lcurses. Readline (as of
28875 # version 4.3) doesn't use libtool, so we can't rely on a .la to cover
28876 # necessary dependencies.
28878 # On a couple of systems we've seen libreadline available, but the headers
28879 # not in the default include path, so check for readline/readline.h. We've
28880 # also seen readline/history.h missing, not sure if that's just a broken
28881 # install or a very old version, but check that too.
28883 ac_config_files="$ac_config_files demos/calc/calc-config.h:demos/calc/calc-config-h.in"
28886 if test $with_readline != no; then
28887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lncurses" >&5
28888 $as_echo_n "checking for tputs in -lncurses... " >&6; }
28889 if test "${ac_cv_lib_ncurses_tputs+set}" = set; then :
28890 $as_echo_n "(cached) " >&6
28892 ac_check_lib_save_LIBS=$LIBS
28893 LIBS="-lncurses $LIBS"
28894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28895 /* end confdefs.h. */
28897 /* Override any GCC internal prototype to avoid an error.
28898 Use char because int might match the return type of a GCC
28899 builtin and then its argument prototype would still apply. */
28912 if ac_fn_c_try_link "$LINENO"; then :
28913 ac_cv_lib_ncurses_tputs=yes
28915 ac_cv_lib_ncurses_tputs=no
28917 rm -f core conftest.err conftest.$ac_objext \
28918 conftest$ac_exeext conftest.$ac_ext
28919 LIBS=$ac_check_lib_save_LIBS
28921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tputs" >&5
28922 $as_echo "$ac_cv_lib_ncurses_tputs" >&6; }
28923 if test "x$ac_cv_lib_ncurses_tputs" = x""yes; then :
28924 LIBCURSES=-lncurses
28926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lcurses" >&5
28927 $as_echo_n "checking for tputs in -lcurses... " >&6; }
28928 if test "${ac_cv_lib_curses_tputs+set}" = set; then :
28929 $as_echo_n "(cached) " >&6
28931 ac_check_lib_save_LIBS=$LIBS
28932 LIBS="-lcurses $LIBS"
28933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28934 /* end confdefs.h. */
28936 /* Override any GCC internal prototype to avoid an error.
28937 Use char because int might match the return type of a GCC
28938 builtin and then its argument prototype would still apply. */
28951 if ac_fn_c_try_link "$LINENO"; then :
28952 ac_cv_lib_curses_tputs=yes
28954 ac_cv_lib_curses_tputs=no
28956 rm -f core conftest.err conftest.$ac_objext \
28957 conftest$ac_exeext conftest.$ac_ext
28958 LIBS=$ac_check_lib_save_LIBS
28960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tputs" >&5
28961 $as_echo "$ac_cv_lib_curses_tputs" >&6; }
28962 if test "x$ac_cv_lib_curses_tputs" = x""yes; then :
28970 use_readline=$with_readline
28971 if test $with_readline = detect; then
28973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
28974 $as_echo_n "checking for readline in -lreadline... " >&6; }
28975 if test "${ac_cv_lib_readline_readline+set}" = set; then :
28976 $as_echo_n "(cached) " >&6
28978 ac_check_lib_save_LIBS=$LIBS
28979 LIBS="-lreadline $LIBCURSES $LIBS"
28980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28981 /* end confdefs.h. */
28983 /* Override any GCC internal prototype to avoid an error.
28984 Use char because int might match the return type of a GCC
28985 builtin and then its argument prototype would still apply. */
28993 return readline ();
28998 if ac_fn_c_try_link "$LINENO"; then :
28999 ac_cv_lib_readline_readline=yes
29001 ac_cv_lib_readline_readline=no
29003 rm -f core conftest.err conftest.$ac_objext \
29004 conftest$ac_exeext conftest.$ac_ext
29005 LIBS=$ac_check_lib_save_LIBS
29007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
29008 $as_echo "$ac_cv_lib_readline_readline" >&6; }
29009 if test "x$ac_cv_lib_readline_readline" = x""yes; then :
29010 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
29011 if test "x$ac_cv_header_readline_readline_h" = x""yes; then :
29012 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
29013 if test "x$ac_cv_header_readline_history_h" = x""yes; then :
29023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking readline detected" >&5
29024 $as_echo_n "checking readline detected... " >&6; }
29025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_readline" >&5
29026 $as_echo "$use_readline" >&6; }
29028 if test $use_readline = yes; then
29031 LIBREADLINE=-lreadline
29036 for ac_prog in 'bison -y' byacc
29038 # Extract the first word of "$ac_prog", so it can be a program name with args.
29039 set dummy $ac_prog; ac_word=$2
29040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29041 $as_echo_n "checking for $ac_word... " >&6; }
29042 if test "${ac_cv_prog_YACC+set}" = set; then :
29043 $as_echo_n "(cached) " >&6
29045 if test -n "$YACC"; then
29046 ac_cv_prog_YACC="$YACC" # Let the user override the test.
29048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29049 for as_dir in $PATH
29052 test -z "$as_dir" && as_dir=.
29053 for ac_exec_ext in '' $ac_executable_extensions; do
29054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29055 ac_cv_prog_YACC="$ac_prog"
29056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29065 YACC=$ac_cv_prog_YACC
29066 if test -n "$YACC"; then
29067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
29068 $as_echo "$YACC" >&6; }
29070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29071 $as_echo "no" >&6; }
29075 test -n "$YACC" && break
29077 test -n "$YACC" || YACC="yacc"
29079 for ac_prog in flex lex
29081 # Extract the first word of "$ac_prog", so it can be a program name with args.
29082 set dummy $ac_prog; ac_word=$2
29083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29084 $as_echo_n "checking for $ac_word... " >&6; }
29085 if test "${ac_cv_prog_LEX+set}" = set; then :
29086 $as_echo_n "(cached) " >&6
29088 if test -n "$LEX"; then
29089 ac_cv_prog_LEX="$LEX" # Let the user override the test.
29091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29092 for as_dir in $PATH
29095 test -z "$as_dir" && as_dir=.
29096 for ac_exec_ext in '' $ac_executable_extensions; do
29097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29098 ac_cv_prog_LEX="$ac_prog"
29099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29108 LEX=$ac_cv_prog_LEX
29109 if test -n "$LEX"; then
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
29111 $as_echo "$LEX" >&6; }
29113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29114 $as_echo "no" >&6; }
29118 test -n "$LEX" && break
29120 test -n "$LEX" || LEX=":"
29122 if test "x$LEX" != "x:"; then
29123 cat >conftest.l <<_ACEOF
29129 e { yyless (input () != 0); }
29130 f { unput (yytext[0]); }
29131 . { BEGIN INITIAL; }
29133 #ifdef YYTEXT_POINTER
29134 extern char *yytext;
29139 return ! yylex () + ! yywrap ();
29142 { { ac_try="$LEX conftest.l"
29143 case "(($ac_try" in
29144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29145 *) ac_try_echo=$ac_try;;
29147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
29148 $as_echo "$ac_try_echo"; } >&5
29149 (eval "$LEX conftest.l") 2>&5
29151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29152 test $ac_status = 0; }
29153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
29154 $as_echo_n "checking lex output file root... " >&6; }
29155 if test "${ac_cv_prog_lex_root+set}" = set; then :
29156 $as_echo_n "(cached) " >&6
29159 if test -f lex.yy.c; then
29160 ac_cv_prog_lex_root=lex.yy
29161 elif test -f lexyy.c; then
29162 ac_cv_prog_lex_root=lexyy
29164 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
29167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
29168 $as_echo "$ac_cv_prog_lex_root" >&6; }
29169 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
29171 if test -z "${LEXLIB+set}"; then
29172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
29173 $as_echo_n "checking lex library... " >&6; }
29174 if test "${ac_cv_lib_lex+set}" = set; then :
29175 $as_echo_n "(cached) " >&6
29179 ac_cv_lib_lex='none needed'
29180 for ac_lib in '' -lfl -ll; do
29181 LIBS="$ac_lib $ac_save_LIBS"
29182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29183 /* end confdefs.h. */
29184 `cat $LEX_OUTPUT_ROOT.c`
29186 if ac_fn_c_try_link "$LINENO"; then :
29187 ac_cv_lib_lex=$ac_lib
29189 rm -f core conftest.err conftest.$ac_objext \
29190 conftest$ac_exeext conftest.$ac_ext
29191 test "$ac_cv_lib_lex" != 'none needed' && break
29196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
29197 $as_echo "$ac_cv_lib_lex" >&6; }
29198 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
29202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
29203 $as_echo_n "checking whether yytext is a pointer... " >&6; }
29204 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
29205 $as_echo_n "(cached) " >&6
29207 # POSIX says lex can declare yytext either as a pointer or an array; the
29208 # default is implementation-dependent. Figure out which it is, since
29209 # not all implementations provide the %pointer and %array declarations.
29210 ac_cv_prog_lex_yytext_pointer=no
29212 LIBS="$LEXLIB $ac_save_LIBS"
29213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29214 /* end confdefs.h. */
29215 #define YYTEXT_POINTER 1
29216 `cat $LEX_OUTPUT_ROOT.c`
29218 if ac_fn_c_try_link "$LINENO"; then :
29219 ac_cv_prog_lex_yytext_pointer=yes
29221 rm -f core conftest.err conftest.$ac_objext \
29222 conftest$ac_exeext conftest.$ac_ext
29226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
29227 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
29228 if test $ac_cv_prog_lex_yytext_pointer = yes; then
29230 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
29233 rm -f conftest.l $LEX_OUTPUT_ROOT.c
29236 if test "$LEX" = :; then
29237 LEX=${am_missing_run}flex
29240 # Configs for demos/expr directory
29242 # Libtool already runs an AC_CHECK_TOOL for ranlib, but we give
29243 # AC_PROG_RANLIB anyway since automake is supposed to complain if it's not
29244 # called. (Automake 1.8.4 doesn't, at least not when the only library is in
29245 # an EXTRA_LIBRARIES.)
29247 if test -n "$ac_tool_prefix"; then
29248 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
29249 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
29250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29251 $as_echo_n "checking for $ac_word... " >&6; }
29252 if test "${ac_cv_prog_RANLIB+set}" = set; then :
29253 $as_echo_n "(cached) " >&6
29255 if test -n "$RANLIB"; then
29256 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
29258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29259 for as_dir in $PATH
29262 test -z "$as_dir" && as_dir=.
29263 for ac_exec_ext in '' $ac_executable_extensions; do
29264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29265 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
29266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29275 RANLIB=$ac_cv_prog_RANLIB
29276 if test -n "$RANLIB"; then
29277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
29278 $as_echo "$RANLIB" >&6; }
29280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29281 $as_echo "no" >&6; }
29286 if test -z "$ac_cv_prog_RANLIB"; then
29287 ac_ct_RANLIB=$RANLIB
29288 # Extract the first word of "ranlib", so it can be a program name with args.
29289 set dummy ranlib; ac_word=$2
29290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29291 $as_echo_n "checking for $ac_word... " >&6; }
29292 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
29293 $as_echo_n "(cached) " >&6
29295 if test -n "$ac_ct_RANLIB"; then
29296 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
29298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29299 for as_dir in $PATH
29302 test -z "$as_dir" && as_dir=.
29303 for ac_exec_ext in '' $ac_executable_extensions; do
29304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29305 ac_cv_prog_ac_ct_RANLIB="ranlib"
29306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29315 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
29316 if test -n "$ac_ct_RANLIB"; then
29317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
29318 $as_echo "$ac_ct_RANLIB" >&6; }
29320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29321 $as_echo "no" >&6; }
29324 if test "x$ac_ct_RANLIB" = x; then
29327 case $cross_compiling:$ac_tool_warned in
29329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29331 ac_tool_warned=yes ;;
29333 RANLIB=$ac_ct_RANLIB
29336 RANLIB="$ac_cv_prog_RANLIB"
29341 # Create config.m4.
29343 echo "creating $gmp_configm4"
29344 echo "d""nl $gmp_configm4. Generated automatically by configure." > $gmp_configm4
29345 if test -f $gmp_tmpconfigm4; then
29346 echo "changequote(<,>)" >> $gmp_configm4
29347 echo "ifdef(<__CONFIG_M4_INCLUDED__>,,<" >> $gmp_configm4
29348 cat $gmp_tmpconfigm4 >> $gmp_configm4
29349 echo ">)" >> $gmp_configm4
29350 echo "changequote(\`,')" >> $gmp_configm4
29351 rm $gmp_tmpconfigm4
29353 echo "ifdef(\`__CONFIG_M4_INCLUDED__',,\`" >> $gmp_configm4
29354 if test -f $gmp_tmpconfigm4i; then
29355 cat $gmp_tmpconfigm4i >> $gmp_configm4
29356 rm $gmp_tmpconfigm4i
29358 if test -f $gmp_tmpconfigm4p; then
29359 cat $gmp_tmpconfigm4p >> $gmp_configm4
29360 rm $gmp_tmpconfigm4p
29362 echo "')" >> $gmp_configm4
29363 echo "define(\`__CONFIG_M4_INCLUDED__')" >> $gmp_configm4
29367 # FIXME: Upcoming version of autoconf/automake may not like broken lines.
29368 # Right now automake isn't accepting the new AC_CONFIG_FILES scheme.
29370 ac_config_files="$ac_config_files Makefile mpbsd/Makefile mpf/Makefile mpn/Makefile mpq/Makefile mpz/Makefile printf/Makefile scanf/Makefile cxx/Makefile tests/Makefile tests/devel/Makefile tests/mpbsd/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 mp.h:mp-h.in"
29372 cat >confcache <<\_ACEOF
29373 # This file is a shell script that caches the results of configure
29374 # tests run on this system so they can be shared between configure
29375 # scripts and configure runs, see configure's option --config-cache.
29376 # It is not useful on other systems. If it contains results you don't
29377 # want to keep, you may remove or edit it.
29379 # config.status only pays attention to the cache file if you give it
29380 # the --recheck option to rerun configure.
29382 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29383 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29384 # following values.
29388 # The following way of writing the cache mishandles newlines in values,
29389 # but we know of no workaround that is simple, portable, and efficient.
29390 # So, we kill variables containing newlines.
29391 # Ultrix sh set writes to stderr and can't be redirected directly,
29392 # and sets the high bit in the cache file unless we assign to the vars.
29394 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29395 eval ac_val=\$$ac_var
29399 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29400 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29403 _ | IFS | as_nl) ;; #(
29404 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29405 *) { eval $ac_var=; unset $ac_var;} ;;
29411 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29412 *${as_nl}ac_space=\ *)
29413 # `set' does not quote correctly, so add quotes: double-quote
29414 # substitution turns \\\\ into \\, and sed turns \\ into \.
29417 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29420 # `set' quotes correctly as required by POSIX, so do not add quotes.
29421 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29430 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29432 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29434 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29435 if test -w "$cache_file"; then
29436 test "x$cache_file" != "x/dev/null" &&
29437 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29438 $as_echo "$as_me: updating cache $cache_file" >&6;}
29439 cat confcache >$cache_file
29441 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29442 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29447 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29448 # Let make expand exec_prefix.
29449 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29451 DEFS=-DHAVE_CONFIG_H
29455 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29456 # 1. Remove the extension, and $U if already installed.
29457 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29458 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29459 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29460 # will be set to the directory where LIBOBJS objects are built.
29461 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29462 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29464 LIBOBJS=$ac_libobjs
29466 LTLIBOBJS=$ac_ltlibobjs
29469 if test -n "$EXEEXT"; then
29471 am__EXEEXT_FALSE='#'
29473 am__EXEEXT_TRUE='#'
29477 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29478 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
29479 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29481 if test -z "${WANT_MPBSD_TRUE}" && test -z "${WANT_MPBSD_FALSE}"; then
29482 as_fn_error "conditional \"WANT_MPBSD\" was never defined.
29483 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29485 if test -z "${WANT_CXX_TRUE}" && test -z "${WANT_CXX_FALSE}"; then
29486 as_fn_error "conditional \"WANT_CXX\" was never defined.
29487 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29489 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
29490 as_fn_error "conditional \"ENABLE_STATIC\" was never defined.
29491 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29495 : ${CONFIG_STATUS=./config.status}
29497 ac_clean_files_save=$ac_clean_files
29498 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29499 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29500 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29502 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29504 # Generated by $as_me.
29505 # Run this file to recreate the current configuration.
29506 # Compiler output produced by configure, useful for debugging
29507 # configure, is in config.log if it exists.
29510 ac_cs_recheck=false
29513 SHELL=\${CONFIG_SHELL-$SHELL}
29516 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29517 ## -------------------- ##
29518 ## M4sh Initialization. ##
29519 ## -------------------- ##
29521 # Be more Bourne compatible
29522 DUALCASE=1; export DUALCASE # for MKS sh
29523 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29526 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29527 # is contrary to our usage. Disable this feature.
29528 alias -g '${1+"$@"}'='"$@"'
29529 setopt NO_GLOB_SUBST
29531 case `(set -o) 2>/dev/null` in #(
29543 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29544 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29545 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29546 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29547 # Prefer a ksh shell builtin over an external printf program on Solaris,
29548 # but without wasting forks for bash or zsh.
29549 if test -z "$BASH_VERSION$ZSH_VERSION" \
29550 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29551 as_echo='print -r --'
29552 as_echo_n='print -rn --'
29553 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29554 as_echo='printf %s\n'
29555 as_echo_n='printf %s'
29557 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29558 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29559 as_echo_n='/usr/ucb/echo -n'
29561 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29562 as_echo_n_body='eval
29566 expr "X$arg" : "X\\(.*\\)$as_nl";
29567 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29569 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29571 export as_echo_n_body
29572 as_echo_n='sh -c $as_echo_n_body as_echo'
29574 export as_echo_body
29575 as_echo='sh -c $as_echo_body as_echo'
29578 # The user is always right.
29579 if test "${PATH_SEPARATOR+set}" != set; then
29581 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29582 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29589 # We need space, tab and new line, in precisely that order. Quoting is
29590 # there to prevent editors from complaining about space-tab.
29591 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29592 # splitting by setting IFS to empty value.)
29595 # Find who we are. Look in the path if we contain no directory separator.
29597 *[\\/]* ) as_myself=$0 ;;
29598 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29599 for as_dir in $PATH
29602 test -z "$as_dir" && as_dir=.
29603 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29609 # We did not find ourselves, most probably we were run as `sh COMMAND'
29610 # in which case we are not to be found in the path.
29611 if test "x$as_myself" = x; then
29614 if test ! -f "$as_myself"; then
29615 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29619 # Unset variables that we do not need and which cause bugs (e.g. in
29620 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29621 # suppresses any "Segmentation fault" message there. '((' could
29622 # trigger a bug in pdksh 5.2.14.
29623 for as_var in BASH_ENV ENV MAIL MAILPATH
29624 do eval test x\${$as_var+set} = xset \
29625 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29638 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29641 # as_fn_error ERROR [LINENO LOG_FD]
29642 # ---------------------------------
29643 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29644 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29645 # script with status $?, using 1 if that was 0.
29648 as_status=$?; test $as_status -eq 0 && as_status=1
29650 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29651 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29653 $as_echo "$as_me: error: $1" >&2
29654 as_fn_exit $as_status
29658 # as_fn_set_status STATUS
29659 # -----------------------
29660 # Set $? to STATUS, without forking.
29661 as_fn_set_status ()
29664 } # as_fn_set_status
29666 # as_fn_exit STATUS
29667 # -----------------
29668 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29672 as_fn_set_status $1
29678 # Portably unset VAR.
29681 { eval $1=; unset $1;}
29683 as_unset=as_fn_unset
29684 # as_fn_append VAR VALUE
29685 # ----------------------
29686 # Append the text in VALUE to the end of the definition contained in VAR. Take
29687 # advantage of any shell optimizations that allow amortized linear growth over
29688 # repeated appends, instead of the typical quadratic growth present in naive
29690 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29691 eval 'as_fn_append ()
29702 # as_fn_arith ARG...
29703 # ------------------
29704 # Perform arithmetic evaluation on the ARGs, and store the result in the
29705 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29706 # must be portable across $(()) and expr.
29707 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29708 eval 'as_fn_arith ()
29715 as_val=`expr "$@" || test $? -eq 1`
29720 if expr a : '\(a\)' >/dev/null 2>&1 &&
29721 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29727 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29728 as_basename=basename
29733 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29739 as_me=`$as_basename -- "$0" ||
29740 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29741 X"$0" : 'X\(//\)$' \| \
29742 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29744 sed '/^.*\/\([^/][^/]*\)\/*$/{
29758 # Avoid depending upon Character Ranges.
29759 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29760 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29761 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29762 as_cr_digits='0123456789'
29763 as_cr_alnum=$as_cr_Letters$as_cr_digits
29765 ECHO_C= ECHO_N= ECHO_T=
29766 case `echo -n x` in #(((((
29768 case `echo 'xy\c'` in
29769 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29771 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29778 rm -f conf$$ conf$$.exe conf$$.file
29779 if test -d conf$$.dir; then
29780 rm -f conf$$.dir/conf$$.file
29783 mkdir conf$$.dir 2>/dev/null
29785 if (echo >conf$$.file) 2>/dev/null; then
29786 if ln -s conf$$.file conf$$ 2>/dev/null; then
29788 # ... but there are two gotchas:
29789 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29790 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29791 # In both cases, we have to default to `cp -p'.
29792 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29794 elif ln conf$$.file conf$$ 2>/dev/null; then
29802 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29803 rmdir conf$$.dir 2>/dev/null
29808 # Create "$as_dir" as a directory, including parents if necessary.
29813 -*) as_dir=./$as_dir;;
29815 test -d "$as_dir" || eval $as_mkdir_p || {
29819 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29820 *) as_qdir=$as_dir;;
29822 as_dirs="'$as_qdir' $as_dirs"
29823 as_dir=`$as_dirname -- "$as_dir" ||
29824 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29825 X"$as_dir" : 'X\(//\)[^/]' \| \
29826 X"$as_dir" : 'X\(//\)$' \| \
29827 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29828 $as_echo X"$as_dir" |
29829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29833 /^X\(\/\/\)[^/].*/{
29846 test -d "$as_dir" && break
29848 test -z "$as_dirs" || eval "mkdir $as_dirs"
29849 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29853 if mkdir -p . 2>/dev/null; then
29854 as_mkdir_p='mkdir -p "$as_dir"'
29856 test -d ./-p && rmdir ./-p
29860 if test -x / >/dev/null 2>&1; then
29861 as_test_x='test -x'
29863 if ls -dL / >/dev/null 2>&1; then
29870 if test -d "$1"; then
29876 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29877 ???[sx]*):;;*)false;;esac;fi
29881 as_executable_p=$as_test_x
29883 # Sed expression to map a string onto a valid CPP name.
29884 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29886 # Sed expression to map a string onto a valid variable name.
29887 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29891 ## ----------------------------------- ##
29892 ## Main body of $CONFIG_STATUS script. ##
29893 ## ----------------------------------- ##
29895 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29898 # Save the log message, to keep $0 and so on meaningful, and to
29899 # report actual input values of CONFIG_FILES etc. instead of their
29900 # values after options handling.
29902 This file was extended by GNU MP $as_me 5.0.5, which was
29903 generated by GNU Autoconf 2.65. Invocation command line was
29905 CONFIG_FILES = $CONFIG_FILES
29906 CONFIG_HEADERS = $CONFIG_HEADERS
29907 CONFIG_LINKS = $CONFIG_LINKS
29908 CONFIG_COMMANDS = $CONFIG_COMMANDS
29911 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29916 case $ac_config_files in *"
29917 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29920 case $ac_config_headers in *"
29921 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29926 # Files that config.status was made for.
29927 config_files="$ac_config_files"
29928 config_headers="$ac_config_headers"
29929 config_links="$ac_config_links"
29930 config_commands="$ac_config_commands"
29934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29936 \`$as_me' instantiates files and other configuration actions
29937 from templates according to the current configuration. Unless the files
29938 and actions are specified as TAGs, all are instantiated by default.
29940 Usage: $0 [OPTION]... [TAG]...
29942 -h, --help print this help, then exit
29943 -V, --version print version number and configuration settings, then exit
29944 --config print configuration, then exit
29945 -q, --quiet, --silent
29946 do not print progress messages
29947 -d, --debug don't remove temporary files
29948 --recheck update $as_me by reconfiguring in the same conditions
29949 --file=FILE[:TEMPLATE]
29950 instantiate the configuration file FILE
29951 --header=FILE[:TEMPLATE]
29952 instantiate the configuration header FILE
29954 Configuration files:
29957 Configuration headers:
29960 Configuration links:
29963 Configuration commands:
29966 Report bugs to <gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html>.
29967 GNU MP home page: <http://www.gnu.org/software/gmp/>.
29968 General help using GNU software: <http://www.gnu.org/gethelp/>."
29971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29972 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29974 GNU MP config.status 5.0.5
29975 configured by $0, generated by GNU Autoconf 2.65,
29976 with options \\"\$ac_cs_config\\"
29978 Copyright (C) 2009 Free Software Foundation, Inc.
29979 This config.status script is free software; the Free Software Foundation
29980 gives unlimited permission to copy, distribute and modify it."
29987 test -n "\$AWK" || AWK=awk
29990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29991 # The default lists apply if the user does not specify any file.
29997 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29998 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30009 # Handling of the options.
30010 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30012 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30013 $as_echo "$ac_cs_version"; exit ;;
30014 --config | --confi | --conf | --con | --co | --c )
30015 $as_echo "$ac_cs_config"; exit ;;
30016 --debug | --debu | --deb | --de | --d | -d )
30018 --file | --fil | --fi | --f )
30021 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30023 as_fn_append CONFIG_FILES " '$ac_optarg'"
30024 ac_need_defaults=false;;
30025 --header | --heade | --head | --hea )
30028 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30030 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30031 ac_need_defaults=false;;
30033 # Conflict between --help and --header
30034 as_fn_error "ambiguous option: \`$1'
30035 Try \`$0 --help' for more information.";;
30036 --help | --hel | -h )
30037 $as_echo "$ac_cs_usage"; exit ;;
30038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30039 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30042 # This is an error.
30043 -*) as_fn_error "unrecognized option: \`$1'
30044 Try \`$0 --help' for more information." ;;
30046 *) as_fn_append ac_config_targets " $1"
30047 ac_need_defaults=false ;;
30053 ac_configure_extra_args=
30055 if $ac_cs_silent; then
30057 ac_configure_extra_args="$ac_configure_extra_args --silent"
30061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30062 if \$ac_cs_recheck; then
30063 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30065 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30066 CONFIG_SHELL='$SHELL'
30067 export CONFIG_SHELL
30072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30076 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30077 ## Running $as_me. ##
30083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30089 # The HP-UX ksh and POSIX shell print the target directory to stdout
30090 # if CDPATH is set.
30091 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30093 sed_quote_subst='$sed_quote_subst'
30094 double_quote_subst='$double_quote_subst'
30095 delay_variable_subst='$delay_variable_subst'
30096 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
30097 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
30098 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
30099 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
30100 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
30101 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
30102 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
30103 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
30104 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
30105 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
30106 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
30107 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
30108 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
30109 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
30110 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
30111 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
30112 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
30113 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
30114 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
30115 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
30116 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
30117 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
30118 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
30119 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
30120 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
30121 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
30122 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
30123 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
30124 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
30125 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
30126 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
30127 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
30128 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
30129 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
30130 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
30131 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
30132 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
30133 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
30134 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
30135 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
30136 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
30137 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
30138 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
30139 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
30140 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
30141 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
30142 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
30143 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
30144 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
30145 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
30146 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
30147 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
30148 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
30149 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
30150 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
30151 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
30152 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
30153 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"`'
30154 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
30155 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
30156 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
30157 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
30158 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
30159 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
30160 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
30161 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
30162 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
30163 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
30164 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
30165 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
30166 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
30167 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
30168 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
30169 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
30170 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
30171 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
30172 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
30173 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
30174 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
30175 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
30176 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
30177 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
30178 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
30179 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
30180 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
30181 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
30182 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
30183 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
30184 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
30185 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
30186 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
30187 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
30188 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
30189 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
30190 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
30191 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
30192 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
30193 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
30194 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
30195 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
30196 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
30197 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
30198 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
30199 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
30200 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
30201 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
30202 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
30203 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
30204 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
30205 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
30206 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
30207 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
30208 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
30209 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
30210 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
30211 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
30212 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
30213 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
30214 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
30215 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
30216 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
30217 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
30218 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
30219 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
30220 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
30221 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
30222 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
30223 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
30224 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
30225 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
30226 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
30227 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
30228 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
30229 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
30230 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
30231 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
30232 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
30233 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
30234 LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
30235 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
30236 reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
30237 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30238 reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
30239 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30240 old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
30241 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
30242 compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
30243 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
30244 GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
30245 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
30246 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
30247 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
30248 lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
30249 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
30250 lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
30251 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
30252 lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
30253 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
30254 lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
30255 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
30256 archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
30257 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
30258 enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
30259 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
30260 export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
30261 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
30262 whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
30263 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
30264 compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
30265 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30266 old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
30267 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30268 old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
30269 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30270 archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
30271 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30272 archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
30273 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30274 module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
30275 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30276 module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
30277 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
30278 with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
30279 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
30280 allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
30281 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
30282 no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
30283 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
30284 hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
30285 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
30286 hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
30287 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
30288 hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
30289 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
30290 hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
30291 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
30292 hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
30293 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
30294 hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
30295 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
30296 hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
30297 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
30298 inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
30299 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
30300 link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
30301 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
30302 always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
30303 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30304 export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
30305 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
30306 exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
30307 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
30308 include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
30309 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30310 prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
30311 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30312 postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
30313 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
30314 file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
30315 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
30316 hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
30317 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
30318 compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`'
30319 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
30320 predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`'
30321 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
30322 postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`'
30323 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
30324 predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`'
30325 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
30326 postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`'
30327 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
30328 compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`'
30331 LTCFLAGS='$LTCFLAGS'
30332 compiler='$compiler_DEFAULT'
30334 # A function that is used when there is no print builtin or printf.
30335 func_fallback_echo ()
30337 eval 'cat <<_LTECHO_EOF
30342 # Quote evaled strings.
30359 deplibs_check_method \
30363 sharedlib_from_linklib_cmd \
30366 archiver_list_spec \
30372 lt_cv_sys_global_symbol_pipe \
30373 lt_cv_sys_global_symbol_to_cdecl \
30374 lt_cv_sys_global_symbol_to_c_name_address \
30375 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30376 nm_file_list_spec \
30377 lt_prog_compiler_no_builtin_flag \
30378 lt_prog_compiler_pic \
30379 lt_prog_compiler_wl \
30380 lt_prog_compiler_static \
30381 lt_cv_prog_compiler_c_o \
30390 export_dynamic_flag_spec \
30391 whole_archive_flag_spec \
30392 compiler_needs_object \
30394 allow_undefined_flag \
30395 no_undefined_flag \
30396 hardcode_libdir_flag_spec \
30397 hardcode_libdir_separator \
30401 variables_saved_for_relink \
30403 library_names_spec \
30405 install_override_mode \
30409 compiler_lib_search_dirs \
30414 compiler_lib_search_path \
30421 lt_prog_compiler_no_builtin_flag_CXX \
30422 lt_prog_compiler_no_builtin_flag_F77 \
30423 lt_prog_compiler_pic_CXX \
30424 lt_prog_compiler_pic_F77 \
30425 lt_prog_compiler_wl_CXX \
30426 lt_prog_compiler_wl_F77 \
30427 lt_prog_compiler_static_CXX \
30428 lt_prog_compiler_static_F77 \
30429 lt_cv_prog_compiler_c_o_CXX \
30430 lt_cv_prog_compiler_c_o_F77 \
30431 export_dynamic_flag_spec_CXX \
30432 export_dynamic_flag_spec_F77 \
30433 whole_archive_flag_spec_CXX \
30434 whole_archive_flag_spec_F77 \
30435 compiler_needs_object_CXX \
30436 compiler_needs_object_F77 \
30439 allow_undefined_flag_CXX \
30440 allow_undefined_flag_F77 \
30441 no_undefined_flag_CXX \
30442 no_undefined_flag_F77 \
30443 hardcode_libdir_flag_spec_CXX \
30444 hardcode_libdir_flag_spec_F77 \
30445 hardcode_libdir_separator_CXX \
30446 hardcode_libdir_separator_F77 \
30447 exclude_expsyms_CXX \
30448 exclude_expsyms_F77 \
30449 include_expsyms_CXX \
30450 include_expsyms_F77 \
30451 file_list_spec_CXX \
30452 file_list_spec_F77 \
30453 compiler_lib_search_dirs_CXX \
30454 compiler_lib_search_dirs_F77 \
30455 predep_objects_CXX \
30456 predep_objects_F77 \
30457 postdep_objects_CXX \
30458 postdep_objects_F77 \
30463 compiler_lib_search_path_CXX \
30464 compiler_lib_search_path_F77; do
30465 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
30466 *[\\\\\\\`\\"\\\$]*)
30467 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30470 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30475 # Double-quote double-evaled strings.
30476 for var in reload_cmds \
30477 old_postinstall_cmds \
30478 old_postuninstall_cmds \
30480 extract_expsyms_cmds \
30481 old_archive_from_new_cmds \
30482 old_archive_from_expsyms_cmds \
30484 archive_expsym_cmds \
30486 module_expsym_cmds \
30487 export_symbols_cmds \
30491 postuninstall_cmds \
30493 sys_lib_search_path_spec \
30494 sys_lib_dlsearch_path_spec \
30497 old_archive_cmds_CXX \
30498 old_archive_cmds_F77 \
30499 old_archive_from_new_cmds_CXX \
30500 old_archive_from_new_cmds_F77 \
30501 old_archive_from_expsyms_cmds_CXX \
30502 old_archive_from_expsyms_cmds_F77 \
30505 archive_expsym_cmds_CXX \
30506 archive_expsym_cmds_F77 \
30509 module_expsym_cmds_CXX \
30510 module_expsym_cmds_F77 \
30511 export_symbols_cmds_CXX \
30512 export_symbols_cmds_F77 \
30515 postlink_cmds_CXX \
30516 postlink_cmds_F77; do
30517 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
30518 *[\\\\\\\`\\"\\\$]*)
30519 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30522 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30527 ac_aux_dir='$ac_aux_dir'
30528 xsi_shell='$xsi_shell'
30529 lt_shell_append='$lt_shell_append'
30531 # See if we are running on zsh, and set the options which allow our
30532 # commands through without removal of \ escapes INIT.
30533 if test -n "\${ZSH_VERSION+set}" ; then
30534 setopt NO_GLOB_SUBST
30540 TIMESTAMP='$TIMESTAMP'
30553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30555 # Handling of arguments.
30556 for ac_config_target in $ac_config_targets
30558 case $ac_config_target in
30559 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
30560 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30561 "mpn/$tmp_fn.$tmp_ext") CONFIG_LINKS="$CONFIG_LINKS mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext" ;;
30562 "gmp-mparam.h") CONFIG_LINKS="$CONFIG_LINKS gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h" ;;
30563 "demos/pexpr-config.h") CONFIG_FILES="$CONFIG_FILES demos/pexpr-config.h:demos/pexpr-config-h.in" ;;
30564 "demos/calc/calc-config.h") CONFIG_FILES="$CONFIG_FILES demos/calc/calc-config.h:demos/calc/calc-config-h.in" ;;
30565 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30566 "mpbsd/Makefile") CONFIG_FILES="$CONFIG_FILES mpbsd/Makefile" ;;
30567 "mpf/Makefile") CONFIG_FILES="$CONFIG_FILES mpf/Makefile" ;;
30568 "mpn/Makefile") CONFIG_FILES="$CONFIG_FILES mpn/Makefile" ;;
30569 "mpq/Makefile") CONFIG_FILES="$CONFIG_FILES mpq/Makefile" ;;
30570 "mpz/Makefile") CONFIG_FILES="$CONFIG_FILES mpz/Makefile" ;;
30571 "printf/Makefile") CONFIG_FILES="$CONFIG_FILES printf/Makefile" ;;
30572 "scanf/Makefile") CONFIG_FILES="$CONFIG_FILES scanf/Makefile" ;;
30573 "cxx/Makefile") CONFIG_FILES="$CONFIG_FILES cxx/Makefile" ;;
30574 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
30575 "tests/devel/Makefile") CONFIG_FILES="$CONFIG_FILES tests/devel/Makefile" ;;
30576 "tests/mpbsd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpbsd/Makefile" ;;
30577 "tests/mpf/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpf/Makefile" ;;
30578 "tests/mpn/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpn/Makefile" ;;
30579 "tests/mpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpq/Makefile" ;;
30580 "tests/mpz/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpz/Makefile" ;;
30581 "tests/rand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rand/Makefile" ;;
30582 "tests/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
30583 "tests/cxx/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxx/Makefile" ;;
30584 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
30585 "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
30586 "demos/Makefile") CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;;
30587 "demos/calc/Makefile") CONFIG_FILES="$CONFIG_FILES demos/calc/Makefile" ;;
30588 "demos/expr/Makefile") CONFIG_FILES="$CONFIG_FILES demos/expr/Makefile" ;;
30589 "gmp.h") CONFIG_FILES="$CONFIG_FILES gmp.h:gmp-h.in" ;;
30590 "mp.h") CONFIG_FILES="$CONFIG_FILES mp.h:mp-h.in" ;;
30592 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30597 # If the user did not use the arguments to specify the items to instantiate,
30598 # then the envvar interface is used. Set only those that are not.
30599 # We use the long form for the default assignment because of an extremely
30600 # bizarre bug on SunOS 4.1.3.
30601 if $ac_need_defaults; then
30602 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30603 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30604 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30605 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30608 # Have a temporary directory for convenience. Make it in the build tree
30609 # simply because there is no reason against having it here, and in addition,
30610 # creating and moving files from /tmp can sometimes cause problems.
30611 # Hook for its removal unless debugging.
30612 # Note that there is a small window in which the directory will not be cleaned:
30613 # after its creation but before its name has been assigned to `$tmp'.
30617 trap 'exit_status=$?
30618 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30620 trap 'as_fn_exit 1' 1 2 13 15
30622 # Create a (secure) tmp directory for tmp files.
30625 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30626 test -n "$tmp" && test -d "$tmp"
30629 tmp=./conf$$-$RANDOM
30630 (umask 077 && mkdir "$tmp")
30631 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30633 # Set up the scripts for CONFIG_FILES section.
30634 # No need to generate them if there are no CONFIG_FILES.
30635 # This happens for instance with `./config.status config.h'.
30636 if test -n "$CONFIG_FILES"; then
30639 ac_cr=`echo X | tr X '\015'`
30640 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30641 # But we know of no other shell where ac_cr would be empty at this
30642 # point, so we can use a bashism as a fallback.
30643 if test "x$ac_cr" = x; then
30644 eval ac_cr=\$\'\\r\'
30646 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30647 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30650 ac_cs_awk_cr=$ac_cr
30653 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30658 echo "cat >conf$$subs.awk <<_ACEOF" &&
30659 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30661 } >conf$$subs.sh ||
30662 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30663 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30665 for ac_last_try in false false false false false :; do
30666 . ./conf$$subs.sh ||
30667 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30669 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30670 if test $ac_delim_n = $ac_delim_num; then
30672 elif $ac_last_try; then
30673 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30675 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30678 rm -f conf$$subs.sh
30680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30681 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30685 s/^/S["/; s/!.*/"]=/
30695 s/\(.\{148\}\)..*/\1/
30697 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30702 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30709 s/\(.\{148\}\)..*/\1/
30711 s/["\\]/\\&/g; s/^/"/; s/$/"/
30715 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30720 ' <conf$$subs.awk | sed '
30725 ' >>$CONFIG_STATUS || ac_write_fail=1
30726 rm -f conf$$subs.awk
30727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30729 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30730 for (key in S) S_is_set[key] = 1
30736 nfields = split(line, field, "@")
30738 len = length(field[1])
30739 for (i = 2; i < nfields; i++) {
30741 keylen = length(key)
30742 if (S_is_set[key]) {
30744 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30745 len += length(value) + length(field[++i])
30756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30757 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30758 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30761 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30762 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30765 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30766 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30767 # trailing colons and then remove the whole line if VPATH becomes empty
30768 # (actually we leave an empty line to preserve line numbers).
30769 if test "x$srcdir" = x.; then
30770 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30771 s/:*\$(srcdir):*/:/
30772 s/:*\${srcdir}:*/:/
30774 s/^\([^=]*=[ ]*\):*/\1/
30780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30781 fi # test -n "$CONFIG_FILES"
30783 # Set up the scripts for CONFIG_HEADERS section.
30784 # No need to generate them if there are no CONFIG_HEADERS.
30785 # This happens for instance with `./config.status Makefile'.
30786 if test -n "$CONFIG_HEADERS"; then
30787 cat >"$tmp/defines.awk" <<\_ACAWK ||
30791 # Transform confdefs.h into an awk script `defines.awk', embedded as
30792 # here-document in config.status, that substitutes the proper values into
30793 # config.h.in to produce config.h.
30795 # Create a delimiter string that does not exist in confdefs.h, to ease
30796 # handling of long lines.
30798 for ac_last_try in false false :; do
30799 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30800 if test -z "$ac_t"; then
30802 elif $ac_last_try; then
30803 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30805 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30809 # For the awk script, D is an array of macro values keyed by name,
30810 # likewise P contains macro parameters if any. Preserve backslash
30811 # newline sequences.
30813 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30815 s/.\{148\}/&'"$ac_delim"'/g
30818 s/^[ ]*#[ ]*define[ ][ ]*/ /
30825 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30827 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30831 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30832 D["\1"]=" \3\\\\\\n"\\/p
30834 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30839 s/.\{148\}/&'"$ac_delim"'/g
30844 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30847 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30849 ' <confdefs.h | sed '
30850 s/'"$ac_delim"'/"\\\
30851 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30854 for (key in D) D_is_set[key] = 1
30857 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30859 split(line, arg, " ")
30860 if (arg[1] == "#") {
30864 defundef = substr(arg[1], 2)
30867 split(mac1, mac2, "(") #)
30869 prefix = substr(line, 1, index(line, defundef) - 1)
30870 if (D_is_set[macro]) {
30871 # Preserve the white space surrounding the "#".
30872 print prefix "define", macro P[macro] D[macro]
30875 # Replace #undef with comments. This is necessary, for example,
30876 # in the case of _POSIX_SOURCE, which is predefined and required
30877 # on some systems where configure will not decide to define it.
30878 if (defundef == "undef") {
30879 print "/*", prefix defundef, macro, "*/"
30887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30888 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30889 fi # test -n "$CONFIG_HEADERS"
30892 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30897 :[FHLC]) ac_mode=$ac_tag; continue;;
30899 case $ac_mode$ac_tag in
30901 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30902 :[FH]-) ac_tag=-:-;;
30903 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30920 -) ac_f="$tmp/stdin";;
30921 *) # Look for the file first in the build tree, then in the source tree
30922 # (if the path is not absolute). The absolute path cannot be DOS-style,
30923 # because $ac_f cannot contain `:'.
30927 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30929 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30931 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30932 as_fn_append ac_file_inputs " '$ac_f'"
30935 # Let's still pretend it is `configure' which instantiates (i.e., don't
30936 # use $as_me), people would be surprised to read:
30937 # /* config.h. Generated by config.status. */
30938 configure_input='Generated from '`
30939 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30941 if test x"$ac_file" != x-; then
30942 configure_input="$ac_file. $configure_input"
30943 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30944 $as_echo "$as_me: creating $ac_file" >&6;}
30946 # Neutralize special characters interpreted by sed in replacement strings.
30947 case $configure_input in #(
30948 *\&* | *\|* | *\\* )
30949 ac_sed_conf_input=`$as_echo "$configure_input" |
30950 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30951 *) ac_sed_conf_input=$configure_input;;
30955 *:-:* | *:-) cat >"$tmp/stdin" \
30956 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30961 ac_dir=`$as_dirname -- "$ac_file" ||
30962 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30963 X"$ac_file" : 'X\(//\)[^/]' \| \
30964 X"$ac_file" : 'X\(//\)$' \| \
30965 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30966 $as_echo X"$ac_file" |
30967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30971 /^X\(\/\/\)[^/].*/{
30984 as_dir="$ac_dir"; as_fn_mkdir_p
30988 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30990 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30991 # A ".." for each directory in $ac_dir_suffix.
30992 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30993 case $ac_top_builddir_sub in
30994 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30995 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30998 ac_abs_top_builddir=$ac_pwd
30999 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31000 # for backward compatibility:
31001 ac_top_builddir=$ac_top_build_prefix
31004 .) # We are building in place.
31006 ac_top_srcdir=$ac_top_builddir_sub
31007 ac_abs_top_srcdir=$ac_pwd ;;
31008 [\\/]* | ?:[\\/]* ) # Absolute name.
31009 ac_srcdir=$srcdir$ac_dir_suffix;
31010 ac_top_srcdir=$srcdir
31011 ac_abs_top_srcdir=$srcdir ;;
31012 *) # Relative name.
31013 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31014 ac_top_srcdir=$ac_top_build_prefix$srcdir
31015 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31017 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31027 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31028 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31030 ac_MKDIR_P=$MKDIR_P
31032 [\\/$]* | ?:[\\/]* ) ;;
31033 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31038 # If the template does not know about datarootdir, expand it.
31039 # FIXME: This hack should be removed a few years after 2.60.
31040 ac_datarootdir_hack=; ac_datarootdir_seen=
31051 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31052 *datarootdir*) ac_datarootdir_seen=yes;;
31053 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31055 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31058 ac_datarootdir_hack='
31059 s&@datadir@&$datadir&g
31060 s&@docdir@&$docdir&g
31061 s&@infodir@&$infodir&g
31062 s&@localedir@&$localedir&g
31063 s&@mandir@&$mandir&g
31064 s&\\\${datarootdir}&$datarootdir&g' ;;
31068 # Neutralize VPATH when `$srcdir' = `.'.
31069 # Shell code in configure.ac might set extrasub.
31070 # FIXME: do we really want to maintain this feature?
31071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31072 ac_sed_extra="$ac_vpsub
31075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31077 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31078 s|@configure_input@|$ac_sed_conf_input|;t t
31079 s&@top_builddir@&$ac_top_builddir_sub&;t t
31080 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31081 s&@srcdir@&$ac_srcdir&;t t
31082 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31083 s&@top_srcdir@&$ac_top_srcdir&;t t
31084 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31085 s&@builddir@&$ac_builddir&;t t
31086 s&@abs_builddir@&$ac_abs_builddir&;t t
31087 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31088 s&@INSTALL@&$ac_INSTALL&;t t
31089 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31090 $ac_datarootdir_hack
31092 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31093 || as_fn_error "could not create $ac_file" "$LINENO" 5
31095 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31096 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31097 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31099 which seems to be undefined. Please make sure it is defined." >&5
31100 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31101 which seems to be undefined. Please make sure it is defined." >&2;}
31105 -) cat "$tmp/out" && rm -f "$tmp/out";;
31106 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31108 || as_fn_error "could not create $ac_file" "$LINENO" 5
31114 if test x"$ac_file" != x-; then
31116 $as_echo "/* $configure_input */" \
31117 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31118 } >"$tmp/config.h" \
31119 || as_fn_error "could not create $ac_file" "$LINENO" 5
31120 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31121 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31122 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31125 mv "$tmp/config.h" "$ac_file" \
31126 || as_fn_error "could not create $ac_file" "$LINENO" 5
31129 $as_echo "/* $configure_input */" \
31130 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31131 || as_fn_error "could not create -" "$LINENO" 5
31133 # Compute "$ac_file"'s index in $config_headers.
31136 for _am_header in $config_headers :; do
31137 case $_am_header in
31138 $_am_arg | $_am_arg:* )
31141 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31144 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31145 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31146 X"$_am_arg" : 'X\(//\)[^/]' \| \
31147 X"$_am_arg" : 'X\(//\)$' \| \
31148 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31149 $as_echo X"$_am_arg" |
31150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31154 /^X\(\/\/\)[^/].*/{
31166 s/.*/./; q'`/stamp-h$_am_stamp_count
31173 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31176 # Prefer the file from the source tree if names are identical.
31177 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31178 ac_source=$srcdir/$ac_source
31181 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31182 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31184 if test ! -r "$ac_source"; then
31185 as_fn_error "$ac_source: file not found" "$LINENO" 5
31189 # Try a relative symlink, then a hard link, then a copy.
31191 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31192 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31194 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31195 ln "$ac_source" "$ac_file" 2>/dev/null ||
31196 cp -p "$ac_source" "$ac_file" ||
31197 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31200 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31201 $as_echo "$as_me: executing $ac_file commands" >&6;}
31206 case $ac_file$ac_mode in
31209 # See if we are running on zsh, and set the options which allow our
31210 # commands through without removal of \ escapes.
31211 if test -n "${ZSH_VERSION+set}" ; then
31212 setopt NO_GLOB_SUBST
31215 cfgfile="${ofile}T"
31216 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31219 cat <<_LT_EOF >> "$cfgfile"
31222 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31223 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31224 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31225 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31227 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31228 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
31230 # Written by Gordon Matzigkeit, 1996
31232 # This file is part of GNU Libtool.
31234 # GNU Libtool is free software; you can redistribute it and/or
31235 # modify it under the terms of the GNU General Public License as
31236 # published by the Free Software Foundation; either version 2 of
31237 # the License, or (at your option) any later version.
31239 # As a special exception to the GNU General Public License,
31240 # if you distribute this file as part of a program or library that
31241 # is built using GNU Libtool, you may include this file under the
31242 # same distribution terms that you use for the rest of that program.
31244 # GNU Libtool is distributed in the hope that it will be useful,
31245 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31246 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31247 # GNU General Public License for more details.
31249 # You should have received a copy of the GNU General Public License
31250 # along with GNU Libtool; see the file COPYING. If not, a copy
31251 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31252 # obtained by writing to the Free Software Foundation, Inc.,
31253 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31256 # The names of the tagged configurations supported by this script.
31257 available_tags="CXX F77 "
31259 # ### BEGIN LIBTOOL CONFIG
31261 # A BSD- or MS-compatible name lister.
31264 # Assembler program.
31267 # DLL creation program.
31268 DLLTOOL=$lt_DLLTOOL
31270 # Object dumper program.
31271 OBJDUMP=$lt_OBJDUMP
31273 # Which release of libtool.m4 was used?
31274 macro_version=$macro_version
31275 macro_revision=$macro_revision
31277 # Whether or not to build shared libraries.
31278 build_libtool_libs=$enable_shared
31280 # Whether or not to build static libraries.
31281 build_old_libs=$enable_static
31283 # What type of objects to build.
31286 # Whether or not to optimize for fast installation.
31287 fast_install=$enable_fast_install
31289 # Shell to use when invoking shell scripts.
31292 # An echo program that protects backslashes.
31295 # The PATH separator for the build system.
31296 PATH_SEPARATOR=$lt_PATH_SEPARATOR
31299 host_alias=$host_alias
31303 # The build system.
31304 build_alias=$build_alias
31308 # A sed program that does not truncate output.
31311 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31312 Xsed="\$SED -e 1s/^X//"
31314 # A grep program that handles long lines.
31320 # A literal string matcher.
31323 # Whether we need soft or hard links.
31326 # What is the maximum length of a command?
31327 max_cmd_len=$max_cmd_len
31329 # Object file suffix (normally "o").
31332 # Executable file suffix (normally "").
31335 # whether the shell understands "unset".
31338 # turn spaces into newlines.
31341 # turn newlines into spaces.
31344 # convert \$build file names to \$host format.
31345 to_host_file_cmd=$lt_cv_to_host_file_cmd
31347 # convert \$build files to toolchain format.
31348 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
31350 # Method to check whether dependent libraries are shared objects.
31351 deplibs_check_method=$lt_deplibs_check_method
31353 # Command to use when deplibs_check_method = "file_magic".
31354 file_magic_cmd=$lt_file_magic_cmd
31356 # How to find potential files when deplibs_check_method = "file_magic".
31357 file_magic_glob=$lt_file_magic_glob
31359 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
31360 want_nocaseglob=$lt_want_nocaseglob
31362 # Command to associate shared and link libraries.
31363 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
31368 # Flags to create an archive.
31369 AR_FLAGS=$lt_AR_FLAGS
31371 # How to feed a file listing to the archiver.
31372 archiver_list_spec=$lt_archiver_list_spec
31374 # A symbol stripping program.
31377 # Commands used to install an old-style archive.
31379 old_postinstall_cmds=$lt_old_postinstall_cmds
31380 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31382 # Whether to use a lock for old archive extraction.
31383 lock_old_archive_extraction=$lock_old_archive_extraction
31388 # LTCC compiler flags.
31389 LTCFLAGS=$lt_CFLAGS
31391 # Take the output of nm and produce a listing of raw symbols and C names.
31392 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31394 # Transform the output of nm in a proper C declaration.
31395 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31397 # Transform the output of nm in a C name address pair.
31398 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31400 # Transform the output of nm in a C name address pair when lib prefix is needed.
31401 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31403 # Specify filename containing input files for \$NM.
31404 nm_file_list_spec=$lt_nm_file_list_spec
31406 # The root where to search for dependent libraries,and in which our libraries should be installed.
31407 lt_sysroot=$lt_sysroot
31409 # The name of the directory that contains temporary libtool files.
31412 # Used to examine libraries when file_magic_cmd begins with "file".
31413 MAGIC_CMD=$MAGIC_CMD
31415 # Must we lock files when doing compilation?
31416 need_locks=$lt_need_locks
31419 MANIFEST_TOOL=$lt_MANIFEST_TOOL
31421 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31422 DSYMUTIL=$lt_DSYMUTIL
31424 # Tool to change global to local symbols on Mac OS X.
31427 # Tool to manipulate fat objects and archives on Mac OS X.
31430 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31433 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31434 OTOOL64=$lt_OTOOL64
31436 # Old archive suffix (normally "a").
31439 # Shared library suffix (normally ".so").
31440 shrext_cmds=$lt_shrext_cmds
31442 # The commands to extract the exported symbol list from a shared archive.
31443 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31445 # Variables whose values should be saved in libtool wrapper scripts and
31446 # restored at link time.
31447 variables_saved_for_relink=$lt_variables_saved_for_relink
31449 # Do we need the "lib" prefix for modules?
31450 need_lib_prefix=$need_lib_prefix
31452 # Do we need a version for libraries?
31453 need_version=$need_version
31455 # Library versioning type.
31456 version_type=$version_type
31458 # Shared library runtime path variable.
31459 runpath_var=$runpath_var
31461 # Shared library path variable.
31462 shlibpath_var=$shlibpath_var
31464 # Is shlibpath searched before the hard-coded library search path?
31465 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31467 # Format of library name prefix.
31468 libname_spec=$lt_libname_spec
31470 # List of archive names. First name is the real one, the rest are links.
31471 # The last name is the one that the linker finds with -lNAME
31472 library_names_spec=$lt_library_names_spec
31474 # The coded name of the library, if different from the real name.
31475 soname_spec=$lt_soname_spec
31477 # Permission mode override for installation of shared libraries.
31478 install_override_mode=$lt_install_override_mode
31480 # Command to use after installation of a shared archive.
31481 postinstall_cmds=$lt_postinstall_cmds
31483 # Command to use after uninstallation of a shared archive.
31484 postuninstall_cmds=$lt_postuninstall_cmds
31486 # Commands used to finish a libtool library installation in a directory.
31487 finish_cmds=$lt_finish_cmds
31489 # As "finish_cmds", except a single script fragment to be evaled but
31491 finish_eval=$lt_finish_eval
31493 # Whether we should hardcode library paths into libraries.
31494 hardcode_into_libs=$hardcode_into_libs
31496 # Compile-time system search path for libraries.
31497 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31499 # Run-time system search path for libraries.
31500 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31502 # Whether dlopen is supported.
31503 dlopen_support=$enable_dlopen
31505 # Whether dlopen of programs is supported.
31506 dlopen_self=$enable_dlopen_self
31508 # Whether dlopen of statically linked programs is supported.
31509 dlopen_self_static=$enable_dlopen_self_static
31511 # Commands to strip libraries.
31512 old_striplib=$lt_old_striplib
31513 striplib=$lt_striplib
31516 # The linker used to build libraries.
31519 # How to create reloadable object files.
31520 reload_flag=$lt_reload_flag
31521 reload_cmds=$lt_reload_cmds
31523 # Commands used to build an old-style archive.
31524 old_archive_cmds=$lt_old_archive_cmds
31526 # A language specific compiler.
31529 # Is the compiler the GNU compiler?
31532 # Compiler flag to turn off builtin functions.
31533 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31535 # Additional compiler flags for building library objects.
31536 pic_flag=$lt_lt_prog_compiler_pic
31538 # How to pass a linker flag through the compiler.
31539 wl=$lt_lt_prog_compiler_wl
31541 # Compiler flag to prevent dynamic linking.
31542 link_static_flag=$lt_lt_prog_compiler_static
31544 # Does compiler simultaneously support -c and -o options?
31545 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31547 # Whether or not to add -lc for building shared libraries.
31548 build_libtool_need_lc=$archive_cmds_need_lc
31550 # Whether or not to disallow shared libs when runtime libs are static.
31551 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31553 # Compiler flag to allow reflexive dlopens.
31554 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31556 # Compiler flag to generate shared objects directly from archives.
31557 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31559 # Whether the compiler copes with passing no objects directly.
31560 compiler_needs_object=$lt_compiler_needs_object
31562 # Create an old-style archive from a shared archive.
31563 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31565 # Create a temporary old-style archive to link instead of a shared archive.
31566 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31568 # Commands used to build a shared archive.
31569 archive_cmds=$lt_archive_cmds
31570 archive_expsym_cmds=$lt_archive_expsym_cmds
31572 # Commands used to build a loadable module if different from building
31573 # a shared archive.
31574 module_cmds=$lt_module_cmds
31575 module_expsym_cmds=$lt_module_expsym_cmds
31577 # Whether we are building with GNU ld or not.
31578 with_gnu_ld=$lt_with_gnu_ld
31580 # Flag that allows shared libraries with undefined symbols to be built.
31581 allow_undefined_flag=$lt_allow_undefined_flag
31583 # Flag that enforces no undefined symbols.
31584 no_undefined_flag=$lt_no_undefined_flag
31586 # Flag to hardcode \$libdir into a binary during linking.
31587 # This must work even if \$libdir does not exist
31588 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31590 # Whether we need a single "-rpath" flag with a separated argument.
31591 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31593 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31594 # DIR into the resulting binary.
31595 hardcode_direct=$hardcode_direct
31597 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31598 # DIR into the resulting binary and the resulting library dependency is
31599 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31600 # library is relocated.
31601 hardcode_direct_absolute=$hardcode_direct_absolute
31603 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31604 # into the resulting binary.
31605 hardcode_minus_L=$hardcode_minus_L
31607 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31608 # into the resulting binary.
31609 hardcode_shlibpath_var=$hardcode_shlibpath_var
31611 # Set to "yes" if building a shared library automatically hardcodes DIR
31612 # into the library and all subsequent libraries and executables linked
31614 hardcode_automatic=$hardcode_automatic
31616 # Set to yes if linker adds runtime paths of dependent libraries
31617 # to runtime path list.
31618 inherit_rpath=$inherit_rpath
31620 # Whether libtool must link a program against all its dependency libraries.
31621 link_all_deplibs=$link_all_deplibs
31623 # Set to "yes" if exported symbols are required.
31624 always_export_symbols=$always_export_symbols
31626 # The commands to list exported symbols.
31627 export_symbols_cmds=$lt_export_symbols_cmds
31629 # Symbols that should not be listed in the preloaded symbols.
31630 exclude_expsyms=$lt_exclude_expsyms
31632 # Symbols that must always be exported.
31633 include_expsyms=$lt_include_expsyms
31635 # Commands necessary for linking programs (against libraries) with templates.
31636 prelink_cmds=$lt_prelink_cmds
31638 # Commands necessary for finishing linking programs.
31639 postlink_cmds=$lt_postlink_cmds
31641 # Specify filename containing input files.
31642 file_list_spec=$lt_file_list_spec
31644 # How to hardcode a shared library path into an executable.
31645 hardcode_action=$hardcode_action
31647 # The directories searched by this compiler when creating a shared library.
31648 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31650 # Dependencies to place before and after the objects being linked to
31651 # create a shared library.
31652 predep_objects=$lt_predep_objects
31653 postdep_objects=$lt_postdep_objects
31654 predeps=$lt_predeps
31655 postdeps=$lt_postdeps
31657 # The library search path used internally by the compiler when linking
31658 # a shared library.
31659 compiler_lib_search_path=$lt_compiler_lib_search_path
31661 # ### END LIBTOOL CONFIG
31667 cat <<\_LT_EOF >> "$cfgfile"
31668 # AIX sometimes has problems with the GCC collect2 program. For some
31669 # reason, if we set the COLLECT_NAMES environment variable, the problems
31670 # vanish in a puff of smoke.
31671 if test "X${COLLECT_NAMES+set}" != Xset; then
31673 export COLLECT_NAMES
31680 ltmain="$ac_aux_dir/ltmain.sh"
31683 # We use sed instead of cat because bash on DJGPP gets confused if
31684 # if finds mixed CR/LF and LF-only lines. Since sed operates in
31685 # text mode, it properly converts lines to CR/LF. This bash problem
31686 # is reportedly fixed, but why not run on old versions too?
31687 sed '$q' "$ltmain" >> "$cfgfile" \
31688 || (rm -f "$cfgfile"; exit 1)
31690 if test x"$xsi_shell" = xyes; then
31691 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
31695 \ */*) func_dirname_result="${1%/*}${2}" ;;\
31696 \ * ) func_dirname_result="${3}" ;;\
31698 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
31699 && mv -f "$cfgfile.tmp" "$cfgfile" \
31700 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31701 test 0 -eq $? || _lt_function_replace_fail=:
31704 sed -e '/^func_basename ()$/,/^} # func_basename /c\
31707 \ func_basename_result="${1##*/}"\
31708 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
31709 && mv -f "$cfgfile.tmp" "$cfgfile" \
31710 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31711 test 0 -eq $? || _lt_function_replace_fail=:
31714 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
31715 func_dirname_and_basename ()\
31718 \ */*) func_dirname_result="${1%/*}${2}" ;;\
31719 \ * ) func_dirname_result="${3}" ;;\
31721 \ func_basename_result="${1##*/}"\
31722 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
31723 && mv -f "$cfgfile.tmp" "$cfgfile" \
31724 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31725 test 0 -eq $? || _lt_function_replace_fail=:
31728 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
31731 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
31732 \ # positional parameters, so assign one to ordinary parameter first.\
31733 \ func_stripname_result=${3}\
31734 \ func_stripname_result=${func_stripname_result#"${1}"}\
31735 \ func_stripname_result=${func_stripname_result%"${2}"}\
31736 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
31737 && mv -f "$cfgfile.tmp" "$cfgfile" \
31738 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31739 test 0 -eq $? || _lt_function_replace_fail=:
31742 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
31743 func_split_long_opt ()\
31745 \ func_split_long_opt_name=${1%%=*}\
31746 \ func_split_long_opt_arg=${1#*=}\
31747 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
31748 && mv -f "$cfgfile.tmp" "$cfgfile" \
31749 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31750 test 0 -eq $? || _lt_function_replace_fail=:
31753 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
31754 func_split_short_opt ()\
31756 \ func_split_short_opt_arg=${1#??}\
31757 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
31758 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
31759 && mv -f "$cfgfile.tmp" "$cfgfile" \
31760 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31761 test 0 -eq $? || _lt_function_replace_fail=:
31764 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
31768 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
31769 \ *) func_lo2o_result=${1} ;;\
31771 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
31772 && mv -f "$cfgfile.tmp" "$cfgfile" \
31773 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31774 test 0 -eq $? || _lt_function_replace_fail=:
31777 sed -e '/^func_xform ()$/,/^} # func_xform /c\
31780 func_xform_result=${1%.*}.lo\
31781 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
31782 && mv -f "$cfgfile.tmp" "$cfgfile" \
31783 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31784 test 0 -eq $? || _lt_function_replace_fail=:
31787 sed -e '/^func_arith ()$/,/^} # func_arith /c\
31790 func_arith_result=$(( $* ))\
31791 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
31792 && mv -f "$cfgfile.tmp" "$cfgfile" \
31793 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31794 test 0 -eq $? || _lt_function_replace_fail=:
31797 sed -e '/^func_len ()$/,/^} # func_len /c\
31800 func_len_result=${#1}\
31801 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
31802 && mv -f "$cfgfile.tmp" "$cfgfile" \
31803 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31804 test 0 -eq $? || _lt_function_replace_fail=:
31808 if test x"$lt_shell_append" = xyes; then
31809 sed -e '/^func_append ()$/,/^} # func_append /c\
31812 eval "${1}+=\\${2}"\
31813 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
31814 && mv -f "$cfgfile.tmp" "$cfgfile" \
31815 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31816 test 0 -eq $? || _lt_function_replace_fail=:
31819 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
31820 func_append_quoted ()\
31822 \ func_quote_for_eval "${2}"\
31823 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
31824 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
31825 && mv -f "$cfgfile.tmp" "$cfgfile" \
31826 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31827 test 0 -eq $? || _lt_function_replace_fail=:
31830 # Save a `func_append' function call where possible by direct use of '+='
31831 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
31832 && mv -f "$cfgfile.tmp" "$cfgfile" \
31833 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31834 test 0 -eq $? || _lt_function_replace_fail=:
31836 # Save a `func_append' function call even when '+=' is not available
31837 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
31838 && mv -f "$cfgfile.tmp" "$cfgfile" \
31839 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31840 test 0 -eq $? || _lt_function_replace_fail=:
31843 if test x"$_lt_function_replace_fail" = x":"; then
31844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
31845 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
31849 mv -f "$cfgfile" "$ofile" ||
31850 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31854 cat <<_LT_EOF >> "$ofile"
31856 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31858 # The linker used to build libraries.
31861 # How to create reloadable object files.
31862 reload_flag=$lt_reload_flag_CXX
31863 reload_cmds=$lt_reload_cmds_CXX
31865 # Commands used to build an old-style archive.
31866 old_archive_cmds=$lt_old_archive_cmds_CXX
31868 # A language specific compiler.
31869 CC=$lt_compiler_CXX
31871 # Is the compiler the GNU compiler?
31874 # Compiler flag to turn off builtin functions.
31875 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31877 # Additional compiler flags for building library objects.
31878 pic_flag=$lt_lt_prog_compiler_pic_CXX
31880 # How to pass a linker flag through the compiler.
31881 wl=$lt_lt_prog_compiler_wl_CXX
31883 # Compiler flag to prevent dynamic linking.
31884 link_static_flag=$lt_lt_prog_compiler_static_CXX
31886 # Does compiler simultaneously support -c and -o options?
31887 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31889 # Whether or not to add -lc for building shared libraries.
31890 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31892 # Whether or not to disallow shared libs when runtime libs are static.
31893 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31895 # Compiler flag to allow reflexive dlopens.
31896 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31898 # Compiler flag to generate shared objects directly from archives.
31899 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31901 # Whether the compiler copes with passing no objects directly.
31902 compiler_needs_object=$lt_compiler_needs_object_CXX
31904 # Create an old-style archive from a shared archive.
31905 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31907 # Create a temporary old-style archive to link instead of a shared archive.
31908 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31910 # Commands used to build a shared archive.
31911 archive_cmds=$lt_archive_cmds_CXX
31912 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31914 # Commands used to build a loadable module if different from building
31915 # a shared archive.
31916 module_cmds=$lt_module_cmds_CXX
31917 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31919 # Whether we are building with GNU ld or not.
31920 with_gnu_ld=$lt_with_gnu_ld_CXX
31922 # Flag that allows shared libraries with undefined symbols to be built.
31923 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31925 # Flag that enforces no undefined symbols.
31926 no_undefined_flag=$lt_no_undefined_flag_CXX
31928 # Flag to hardcode \$libdir into a binary during linking.
31929 # This must work even if \$libdir does not exist
31930 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31932 # Whether we need a single "-rpath" flag with a separated argument.
31933 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31935 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31936 # DIR into the resulting binary.
31937 hardcode_direct=$hardcode_direct_CXX
31939 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31940 # DIR into the resulting binary and the resulting library dependency is
31941 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31942 # library is relocated.
31943 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31945 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31946 # into the resulting binary.
31947 hardcode_minus_L=$hardcode_minus_L_CXX
31949 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31950 # into the resulting binary.
31951 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31953 # Set to "yes" if building a shared library automatically hardcodes DIR
31954 # into the library and all subsequent libraries and executables linked
31956 hardcode_automatic=$hardcode_automatic_CXX
31958 # Set to yes if linker adds runtime paths of dependent libraries
31959 # to runtime path list.
31960 inherit_rpath=$inherit_rpath_CXX
31962 # Whether libtool must link a program against all its dependency libraries.
31963 link_all_deplibs=$link_all_deplibs_CXX
31965 # Set to "yes" if exported symbols are required.
31966 always_export_symbols=$always_export_symbols_CXX
31968 # The commands to list exported symbols.
31969 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31971 # Symbols that should not be listed in the preloaded symbols.
31972 exclude_expsyms=$lt_exclude_expsyms_CXX
31974 # Symbols that must always be exported.
31975 include_expsyms=$lt_include_expsyms_CXX
31977 # Commands necessary for linking programs (against libraries) with templates.
31978 prelink_cmds=$lt_prelink_cmds_CXX
31980 # Commands necessary for finishing linking programs.
31981 postlink_cmds=$lt_postlink_cmds_CXX
31983 # Specify filename containing input files.
31984 file_list_spec=$lt_file_list_spec_CXX
31986 # How to hardcode a shared library path into an executable.
31987 hardcode_action=$hardcode_action_CXX
31989 # The directories searched by this compiler when creating a shared library.
31990 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31992 # Dependencies to place before and after the objects being linked to
31993 # create a shared library.
31994 predep_objects=$lt_predep_objects_CXX
31995 postdep_objects=$lt_postdep_objects_CXX
31996 predeps=$lt_predeps_CXX
31997 postdeps=$lt_postdeps_CXX
31999 # The library search path used internally by the compiler when linking
32000 # a shared library.
32001 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32003 # ### END LIBTOOL TAG CONFIG: CXX
32007 cat <<_LT_EOF >> "$ofile"
32009 # ### BEGIN LIBTOOL TAG CONFIG: F77
32011 # The linker used to build libraries.
32014 # How to create reloadable object files.
32015 reload_flag=$lt_reload_flag_F77
32016 reload_cmds=$lt_reload_cmds_F77
32018 # Commands used to build an old-style archive.
32019 old_archive_cmds=$lt_old_archive_cmds_F77
32021 # A language specific compiler.
32022 CC=$lt_compiler_F77
32024 # Is the compiler the GNU compiler?
32027 # Compiler flag to turn off builtin functions.
32028 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
32030 # Additional compiler flags for building library objects.
32031 pic_flag=$lt_lt_prog_compiler_pic_F77
32033 # How to pass a linker flag through the compiler.
32034 wl=$lt_lt_prog_compiler_wl_F77
32036 # Compiler flag to prevent dynamic linking.
32037 link_static_flag=$lt_lt_prog_compiler_static_F77
32039 # Does compiler simultaneously support -c and -o options?
32040 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
32042 # Whether or not to add -lc for building shared libraries.
32043 build_libtool_need_lc=$archive_cmds_need_lc_F77
32045 # Whether or not to disallow shared libs when runtime libs are static.
32046 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
32048 # Compiler flag to allow reflexive dlopens.
32049 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
32051 # Compiler flag to generate shared objects directly from archives.
32052 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
32054 # Whether the compiler copes with passing no objects directly.
32055 compiler_needs_object=$lt_compiler_needs_object_F77
32057 # Create an old-style archive from a shared archive.
32058 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
32060 # Create a temporary old-style archive to link instead of a shared archive.
32061 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
32063 # Commands used to build a shared archive.
32064 archive_cmds=$lt_archive_cmds_F77
32065 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
32067 # Commands used to build a loadable module if different from building
32068 # a shared archive.
32069 module_cmds=$lt_module_cmds_F77
32070 module_expsym_cmds=$lt_module_expsym_cmds_F77
32072 # Whether we are building with GNU ld or not.
32073 with_gnu_ld=$lt_with_gnu_ld_F77
32075 # Flag that allows shared libraries with undefined symbols to be built.
32076 allow_undefined_flag=$lt_allow_undefined_flag_F77
32078 # Flag that enforces no undefined symbols.
32079 no_undefined_flag=$lt_no_undefined_flag_F77
32081 # Flag to hardcode \$libdir into a binary during linking.
32082 # This must work even if \$libdir does not exist
32083 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
32085 # Whether we need a single "-rpath" flag with a separated argument.
32086 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
32088 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32089 # DIR into the resulting binary.
32090 hardcode_direct=$hardcode_direct_F77
32092 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32093 # DIR into the resulting binary and the resulting library dependency is
32094 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32095 # library is relocated.
32096 hardcode_direct_absolute=$hardcode_direct_absolute_F77
32098 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32099 # into the resulting binary.
32100 hardcode_minus_L=$hardcode_minus_L_F77
32102 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32103 # into the resulting binary.
32104 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
32106 # Set to "yes" if building a shared library automatically hardcodes DIR
32107 # into the library and all subsequent libraries and executables linked
32109 hardcode_automatic=$hardcode_automatic_F77
32111 # Set to yes if linker adds runtime paths of dependent libraries
32112 # to runtime path list.
32113 inherit_rpath=$inherit_rpath_F77
32115 # Whether libtool must link a program against all its dependency libraries.
32116 link_all_deplibs=$link_all_deplibs_F77
32118 # Set to "yes" if exported symbols are required.
32119 always_export_symbols=$always_export_symbols_F77
32121 # The commands to list exported symbols.
32122 export_symbols_cmds=$lt_export_symbols_cmds_F77
32124 # Symbols that should not be listed in the preloaded symbols.
32125 exclude_expsyms=$lt_exclude_expsyms_F77
32127 # Symbols that must always be exported.
32128 include_expsyms=$lt_include_expsyms_F77
32130 # Commands necessary for linking programs (against libraries) with templates.
32131 prelink_cmds=$lt_prelink_cmds_F77
32133 # Commands necessary for finishing linking programs.
32134 postlink_cmds=$lt_postlink_cmds_F77
32136 # Specify filename containing input files.
32137 file_list_spec=$lt_file_list_spec_F77
32139 # How to hardcode a shared library path into an executable.
32140 hardcode_action=$hardcode_action_F77
32142 # The directories searched by this compiler when creating a shared library.
32143 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
32145 # Dependencies to place before and after the objects being linked to
32146 # create a shared library.
32147 predep_objects=$lt_predep_objects_F77
32148 postdep_objects=$lt_postdep_objects_F77
32149 predeps=$lt_predeps_F77
32150 postdeps=$lt_postdeps_F77
32152 # The library search path used internally by the compiler when linking
32153 # a shared library.
32154 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
32156 # ### END LIBTOOL TAG CONFIG: F77
32167 ac_clean_files=$ac_clean_files_save
32169 test $ac_write_fail = 0 ||
32170 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
32173 # configure is writing to config.log, and then calls config.status.
32174 # config.status does its own redirection, appending to config.log.
32175 # Unfortunately, on DOS this fails, as config.log is still kept open
32176 # by configure, so config.status won't be able to write to it; its
32177 # output is simply discarded. So we exec the FD to /dev/null,
32178 # effectively closing config.log, so it can be properly (re)opened and
32179 # appended to by config.status. When coming back to configure, we
32180 # need to make the FD available again.
32181 if test "$no_create" != yes; then
32183 ac_config_status_args=
32184 test "$silent" = yes &&
32185 ac_config_status_args="$ac_config_status_args --quiet"
32187 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32189 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32190 # would make configure fail if this is the last instruction.
32191 $ac_cs_success || as_fn_exit $?
32193 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32195 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}